registry/tools/publisher/auth/dns.go
adam jones 60c75b6591
Disable ireturn linter rule (#307)
## Summary

- Disable the `ireturn` linter rule in golangci-lint configuration
- Remove all related `nolint:ireturn` comments from the codebase

The `ireturn` rule was flagging factory functions that intentionally
return interfaces for dependency injection, which is a common and valid
Go pattern. Since this pattern is used extensively throughout the
codebase for good architectural reasons, it makes sense to disable this
rule entirely.

It also seems buggy, and seems to conflict with other lint rules -
causing unnecessary toil.See:
https://stackoverflow.com/questions/72385337/golang-linter-always-complains
2025-08-26 15:16:43 +01:00

22 lines
454 B
Go

package auth
type DNSProvider struct {
*CryptoProvider
}
// NewDNSProvider creates a new DNS-based auth provider
func NewDNSProvider(registryURL, domain, hexSeed string) Provider {
return &DNSProvider{
CryptoProvider: &CryptoProvider{
registryURL: registryURL,
domain: domain,
hexSeed: hexSeed,
authMethod: "dns",
},
}
}
// Name returns the name of this auth provider
func (d *DNSProvider) Name() string {
return "dns"
}