Documentation ¶
Index ¶
- Constants
- func API() *api
- func ImplementationList() []string
- func Init(ctx context.Context, insecureRegistry, skipTlsVerifyRegistry bool) error
- func IsBlobUnknownError(err error) bool
- func IsHarbor404Error(err error) bool
- func IsManifestUnknownError(err error) bool
- func IsNameUnknownError(err error) bool
- func IsNotFoundError(err error) bool
- func ResolveImplementation(repository, implementation string) (string, error)
- type AzureCrNotFoundError
- type DockerHubNotFoundError
- type DockerHubUnauthorizedError
- type DockerRegistry
- type DockerRegistryOptions
- type GcrOptions
- type GitHubPackagesUnauthorizedError
- type HarborNotFoundError
- type PushImageOptions
- type QuayNotFoundError
Constants ¶
View Source
const ( MultirepoRepoMode = "multirepo" MonorepoRepoMode = "monorepo" )
View Source
const AwsEcrImplementationName = "ecr"
View Source
const AzureCrImplementationName = "acr"
View Source
const DefaultImplementationName = "default"
View Source
const DockerHubImplementationName = "dockerhub"
View Source
const GcrImplementationName = "gcr"
View Source
const GitHubPackagesImplementationName = "github"
View Source
const GitLabRegistryImplementationName = "gitlab"
View Source
const HarborImplementationName = "harbor"
View Source
const QuayImplementationName = "quay"
Variables ¶
This section is empty.
Functions ¶
func ImplementationList ¶
func ImplementationList() []string
func IsBlobUnknownError ¶ added in v1.1.24
func IsHarbor404Error ¶ added in v1.1.29
func IsManifestUnknownError ¶
func IsNameUnknownError ¶
func IsNotFoundError ¶ added in v1.1.23
func ResolveImplementation ¶
Types ¶
type AzureCrNotFoundError ¶
type AzureCrNotFoundError apiError
type DockerHubNotFoundError ¶
type DockerHubNotFoundError apiError
type DockerHubUnauthorizedError ¶
type DockerHubUnauthorizedError apiError
type DockerRegistry ¶
type DockerRegistry interface { CreateRepo(ctx context.Context, reference string) error DeleteRepo(ctx context.Context, reference string) error Tags(ctx context.Context, reference string) ([]string, error) GetRepoImage(ctx context.Context, reference string) (*image.Info, error) TryGetRepoImage(ctx context.Context, reference string) (*image.Info, error) IsRepoImageExists(ctx context.Context, reference string) (bool, error) DeleteRepoImage(ctx context.Context, repoImage *image.Info) error PushImage(ctx context.Context, reference string, opts PushImageOptions) error ResolveRepoMode(ctx context.Context, registryOrRepositoryAddress, repoMode string) (string, error) String() string }
func NewDockerRegistry ¶
func NewDockerRegistry(repositoryAddress string, implementation string, options DockerRegistryOptions) (DockerRegistry, error)
type DockerRegistryOptions ¶
type GcrOptions ¶
type GcrOptions struct {
// contains filtered or unexported fields
}
type GitHubPackagesUnauthorizedError ¶
type GitHubPackagesUnauthorizedError apiError
type HarborNotFoundError ¶
type HarborNotFoundError apiError
type PushImageOptions ¶
type QuayNotFoundError ¶
type QuayNotFoundError apiError
Source Files ¶
Click to show internal directories.
Click to hide internal directories.