Documentation
¶
Index ¶
- Variables
- func Handler(registries Registries) http.HandlerFunc
- func Routes(r chi.Router, conf config.Docker) error
- type AuthMethod
- type DockerHub
- type GHCR
- func (g *GHCR) Authenticator(ctx context.Context, _ string) (authn.Authenticator, error)
- func (g *GHCR) GetOwner(repo string) string
- func (g *GHCR) GetRepoURL(repo string) *url.URL
- func (g *GHCR) GetTagURL(repo, _ string) *url.URL
- func (g *GHCR) Match(repo string) bool
- func (g *GHCR) RefreshAppToken(ctx context.Context) error
- type Registries
- type Registry
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidRegistry = errors.New("no registry for repo")
Functions ¶
func Handler ¶
func Handler(registries Registries) http.HandlerFunc
Types ¶
type DockerHub ¶
type DockerHub struct {
// contains filtered or unexported fields
}
func (DockerHub) Authenticator ¶
type GHCR ¶ added in v1.6.1
type GHCR struct {
// contains filtered or unexported fields
}
func (*GHCR) Authenticator ¶ added in v1.6.1
type Registries ¶
type Registries []Registry
func NewRegistries ¶
func NewRegistries(conf config.Docker) (Registries, error)
Click to show internal directories.
Click to hide internal directories.