Documentation
¶
Overview ¶
Package registrygithub provides the GitHub Container Registry (GHCR) provider.
Index ¶
- func New() registry.RegistryProvider
- type GHCRProvider
- func (g *GHCRProvider) Login(ctx registry.Context, cfg registry.ProviderConfig) error
- func (g *GHCRProvider) Logout(ctx registry.Context, cfg registry.ProviderConfig) error
- func (g *GHCRProvider) Name() string
- func (g *GHCRProvider) Prune(ctx registry.Context, cfg registry.ProviderConfig) error
- func (g *GHCRProvider) Push(ctx registry.Context, cfg registry.ProviderConfig, imageRef string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GHCRProvider ¶
type GHCRProvider struct{}
GHCRProvider implements registry.RegistryProvider for GitHub Container Registry.
func (*GHCRProvider) Login ¶
func (g *GHCRProvider) Login(ctx registry.Context, cfg registry.ProviderConfig) error
func (*GHCRProvider) Logout ¶
func (g *GHCRProvider) Logout(ctx registry.Context, cfg registry.ProviderConfig) error
func (*GHCRProvider) Name ¶
func (g *GHCRProvider) Name() string
func (*GHCRProvider) Prune ¶
func (g *GHCRProvider) Prune(ctx registry.Context, cfg registry.ProviderConfig) error
Prune deletes package versions beyond retention.keep_latest via the GH API.
func (*GHCRProvider) Push ¶
func (g *GHCRProvider) Push(ctx registry.Context, cfg registry.ProviderConfig, imageRef string) error
Click to show internal directories.
Click to hide internal directories.