Documentation ¶
Index ¶
- Variables
- func Handler(w http.ResponseWriter, r *http.Request)
- func Routes(r chi.Router)
- func SetupRegistries() error
- type AuthMethod
- type DescriptionValues
- type DockerHub
- func (d DockerHub) ApiUrl() string
- func (d DockerHub) GetOwner(repo string) string
- func (d DockerHub) GetRepoUrl(repo string) string
- func (d DockerHub) GetTagUrl(repo, tag string) string
- func (d DockerHub) Names() []string
- func (d DockerHub) NormalizeRepo(repo string) string
- func (d DockerHub) TokenUrl(repo string) string
- func (d DockerHub) Transport(_ context.Context, repo string) (http.RoundTripper, error)
- type Ghcr
- func (g Ghcr) ApiUrl() string
- func (g Ghcr) GetOwner(repo string) string
- func (g Ghcr) GetRepoUrl(repo string) string
- func (g Ghcr) GetTagUrl(repo, tag string) string
- func (g Ghcr) Names() []string
- func (g Ghcr) NormalizeRepo(repo string) string
- func (g *Ghcr) RefreshAppToken(ctx context.Context) error
- func (g Ghcr) TokenUrl(repo string) string
- func (g Ghcr) Transport(ctx context.Context, repo string) (http.RoundTripper, error)
- type Registry
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidRegistry = errors.New("no registry for repo")
Functions ¶
func SetupRegistries ¶ added in v1.3.0
func SetupRegistries() error
Types ¶
type AuthMethod ¶ added in v1.3.0
type AuthMethod uint8
const ( AuthNone AuthMethod = iota AuthToken AuthApp )
type DescriptionValues ¶
type DockerHub ¶
type DockerHub struct{}
func (DockerHub) GetRepoUrl ¶
func (DockerHub) NormalizeRepo ¶
type Ghcr ¶
type Ghcr struct {
// contains filtered or unexported fields
}
func (Ghcr) GetRepoUrl ¶
func (Ghcr) NormalizeRepo ¶
func (*Ghcr) RefreshAppToken ¶ added in v1.3.0
type Registry ¶
type Registry interface { Names() []string ApiUrl() string TokenUrl(repo string) string Transport(ctx context.Context, repo string) (http.RoundTripper, error) NormalizeRepo(repo string) string GetRepoUrl(repo string) string GetTagUrl(repo, tag string) string GetOwner(repo string) string }
func FindRegistry ¶
Click to show internal directories.
Click to hide internal directories.