registry/tools/publisher/auth/http.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
462 B
Go

package auth
type HTTPProvider struct {
*CryptoProvider
}
// NewHTTPProvider creates a new HTTP-based auth provider
func NewHTTPProvider(registryURL, domain, hexSeed string) Provider {
return &HTTPProvider{
CryptoProvider: &CryptoProvider{
registryURL: registryURL,
domain: domain,
hexSeed: hexSeed,
authMethod: "http",
},
}
}
// Name returns the name of this auth provider
func (h *HTTPProvider) Name() string {
return "http"
}