Documentation ¶
Index ¶
- Constants
- Variables
- func ImplementationList() []string
- func Init(ctx context.Context, insecureRegistry, skipTlsVerifyRegistry bool) error
- func IsAzureCrRepositoryNotFoundErr(err error) bool
- func IsBrokenImageError(err error) bool
- func IsDockerHubRepositoryNotFoundErr(err error) bool
- func IsDockerHubUnauthorizedErr(err error) bool
- func IsGitHubPackagesForbiddenErr(err error) bool
- func IsGitHubPackagesUnauthorizedErr(err error) bool
- func IsHarborNotFoundError(err error) bool
- func IsHarborRepositoryNotFoundErr(err error) bool
- func IsImageNotFoundError(err error) bool
- func IsQuayRepositoryNotFoundErr(err error) bool
- func IsQuayTagExpiredErr(err error) bool
- func IsSelectelRepositoryNotFoundErr(err error) bool
- func IsSelectelUnauthorizedErr(err error) bool
- func IsStatusNotFoundErr(err error) bool
- func NewImageInfoFromRegistryConfig(ref string, cfg *v1.ConfigFile) *image.Info
- func ResolveImplementation(repository, implementation string) (string, error)
- func ValidateRepositoryReference(reference string) error
- type ArchiveOpener
- type AzureCrRepositoryNotFoundErr
- type CopyImageOptions
- type DockerHubRepositoryNotFoundErr
- type DockerHubUnauthorizedErr
- type DockerRegistryOptions
- type DockerRegistryTracer
- func (r *DockerRegistryTracer) CopyImage(ctx context.Context, sourceReference, destinationReference string, ...) (err error)
- func (r *DockerRegistryTracer) CreateRepo(ctx context.Context, reference string) (err error)
- func (r *DockerRegistryTracer) DeleteRepo(ctx context.Context, reference string) (err error)
- func (r *DockerRegistryTracer) DeleteRepoImage(ctx context.Context, repoImage *image.Info) (err error)
- func (r *DockerRegistryTracer) GetRepoImage(ctx context.Context, reference string) (res *image.Info, err error)
- func (r *DockerRegistryTracer) GetRepoImageConfigFile(ctx context.Context, reference string) (res *v1.ConfigFile, err error)
- func (r *DockerRegistryTracer) IsTagExist(ctx context.Context, reference string, opts ...Option) (res bool, err error)
- func (r *DockerRegistryTracer) MutateAndPushImage(ctx context.Context, sourceReference, destinationReference string, ...) (err error)
- func (r *DockerRegistryTracer) PullImageArchive(ctx context.Context, archiveWriter io.Writer, reference string) (err error)
- func (r *DockerRegistryTracer) PushImage(ctx context.Context, reference string, opts *PushImageOptions) (err error)
- func (r *DockerRegistryTracer) PushImageArchive(ctx context.Context, archiveOpener ArchiveOpener, reference string) (err error)
- func (r *DockerRegistryTracer) PushManifestList(ctx context.Context, reference string, opts ManifestListOptions) (err error)
- func (r *DockerRegistryTracer) String() (res string)
- func (r *DockerRegistryTracer) TagRepoImage(ctx context.Context, repoImage *image.Info, tag string) (err error)
- func (r *DockerRegistryTracer) Tags(ctx context.Context, reference string, opts ...Option) (res []string, err error)
- func (r *DockerRegistryTracer) TryGetRepoImage(ctx context.Context, reference string) (res *image.Info, err error)
- type DockerRegistryWithCache
- func (r *DockerRegistryWithCache) DeleteRepoImage(ctx context.Context, repoImage *image.Info) error
- func (r *DockerRegistryWithCache) IsTagExist(ctx context.Context, reference string, opts ...Option) (bool, error)
- func (r *DockerRegistryWithCache) MutateAndPushImage(ctx context.Context, sourceReference, destinationReference string, ...) error
- func (r *DockerRegistryWithCache) PushImage(ctx context.Context, reference string, opts *PushImageOptions) error
- func (r *DockerRegistryWithCache) TagRepoImage(ctx context.Context, repoImage *image.Info, tag string) error
- func (r *DockerRegistryWithCache) Tags(ctx context.Context, reference string, opts ...Option) ([]string, error)
- type GcrOptions
- type GenericApiInterface
- type GetRepoImageOptions
- type GitHubPackagesForbiddenErr
- type GitHubPackagesUnauthorizedErr
- type HarborRepositoryNotFoundErr
- type Interface
- type ManifestListOptions
- type Option
- type Options
- type PushImageOptions
- type QuayRepositoryNotFoundErr
- type SelectelRepositoryNotFoundErr
- type SelectelUnauthorizedErr
Constants ¶
View Source
const ( GitHubPackagesImplementationName = "github" GitHubPackagesRegistryAddress = "ghcr.io" )
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 GitLabRegistryImplementationName = "gitlab"
View Source
const (
HarborImplementationName = "harbor"
)
View Source
const OptionCachedTagsDefault = false
View Source
const (
QuayImplementationName = "quay"
)
View Source
const SelectelImplementationName = "selectel"
Variables ¶
View Source
var ( BrokenImageCodes = []transport.ErrorCode{ transport.BlobUnknownErrorCode, transport.BlobUploadInvalidErrorCode, transport.BlobUploadUnknownErrorCode, transport.DigestInvalidErrorCode, transport.ManifestBlobUnknownErrorCode, transport.ManifestInvalidErrorCode, transport.ManifestUnverifiedErrorCode, transport.NameInvalidErrorCode, } NotFoundImageCodes = []transport.ErrorCode{ transport.ManifestUnknownErrorCode, transport.NameUnknownErrorCode, } )
Functions ¶
func ImplementationList ¶
func ImplementationList() []string
func IsAzureCrRepositoryNotFoundErr ¶ added in v1.2.14
func IsBrokenImageError ¶ added in v1.2.232
func IsDockerHubRepositoryNotFoundErr ¶ added in v1.2.14
func IsDockerHubUnauthorizedErr ¶ added in v1.2.14
func IsGitHubPackagesForbiddenErr ¶ added in v1.2.14
func IsGitHubPackagesUnauthorizedErr ¶ added in v1.2.14
func IsHarborNotFoundError ¶ added in v1.2.52
func IsHarborRepositoryNotFoundErr ¶ added in v1.2.14
func IsImageNotFoundError ¶ added in v1.2.232
func IsQuayRepositoryNotFoundErr ¶ added in v1.2.14
func IsQuayTagExpiredErr ¶ added in v1.2.59
func IsSelectelRepositoryNotFoundErr ¶ added in v1.2.148
func IsSelectelUnauthorizedErr ¶ added in v1.2.148
func IsStatusNotFoundErr ¶ added in v1.2.84
func NewImageInfoFromRegistryConfig ¶ added in v1.2.236
func NewImageInfoFromRegistryConfig(ref string, cfg *v1.ConfigFile) *image.Info
func ResolveImplementation ¶
func ValidateRepositoryReference ¶ added in v1.2.84
Types ¶
type ArchiveOpener ¶ added in v1.2.169
type ArchiveOpener interface {
Open() (io.ReadCloser, error)
}
type AzureCrRepositoryNotFoundErr ¶ added in v1.2.14
type AzureCrRepositoryNotFoundErr apiError
func NewAzureCrRepositoryNotFoundErr ¶ added in v1.2.14
func NewAzureCrRepositoryNotFoundErr(err error) AzureCrRepositoryNotFoundErr
type CopyImageOptions ¶ added in v1.2.225
type CopyImageOptions struct{}
type DockerHubRepositoryNotFoundErr ¶ added in v1.2.14
type DockerHubRepositoryNotFoundErr apiError
func NewDockerHubRepositoryNotFoundErr ¶ added in v1.2.14
func NewDockerHubRepositoryNotFoundErr(err error) DockerHubRepositoryNotFoundErr
type DockerHubUnauthorizedErr ¶ added in v1.2.14
type DockerHubUnauthorizedErr apiError
func NewDockerHubUnauthorizedErr ¶ added in v1.2.14
func NewDockerHubUnauthorizedErr(err error) DockerHubUnauthorizedErr
type DockerRegistryOptions ¶
type DockerRegistryOptions struct { InsecureRegistry bool SkipTlsVerifyRegistry bool DockerHubToken string DockerHubUsername string DockerHubPassword string GitHubToken string HarborUsername string HarborPassword string QuayToken string SelectelAccount string SelectelVPC string SelectelVPCID string SelectelUsername string SelectelPassword string }
type DockerRegistryTracer ¶ added in v1.2.241
type DockerRegistryTracer struct { DockerRegistry Interface DockerRegistryApi GenericApiInterface }
func NewDockerRegistryTracer ¶ added in v1.2.241
func NewDockerRegistryTracer(dockerRegistry Interface, dockerRegistryApi GenericApiInterface) *DockerRegistryTracer
func (*DockerRegistryTracer) CopyImage ¶ added in v1.2.241
func (r *DockerRegistryTracer) CopyImage(ctx context.Context, sourceReference, destinationReference string, opts CopyImageOptions) (err error)
func (*DockerRegistryTracer) CreateRepo ¶ added in v1.2.241
func (r *DockerRegistryTracer) CreateRepo(ctx context.Context, reference string) (err error)
func (*DockerRegistryTracer) DeleteRepo ¶ added in v1.2.241
func (r *DockerRegistryTracer) DeleteRepo(ctx context.Context, reference string) (err error)
func (*DockerRegistryTracer) DeleteRepoImage ¶ added in v1.2.241
func (*DockerRegistryTracer) GetRepoImage ¶ added in v1.2.241
func (*DockerRegistryTracer) GetRepoImageConfigFile ¶ added in v1.2.241
func (r *DockerRegistryTracer) GetRepoImageConfigFile(ctx context.Context, reference string) (res *v1.ConfigFile, err error)
func (*DockerRegistryTracer) IsTagExist ¶ added in v1.2.241
func (*DockerRegistryTracer) MutateAndPushImage ¶ added in v1.2.241
func (*DockerRegistryTracer) PullImageArchive ¶ added in v1.2.241
func (*DockerRegistryTracer) PushImage ¶ added in v1.2.241
func (r *DockerRegistryTracer) PushImage(ctx context.Context, reference string, opts *PushImageOptions) (err error)
func (*DockerRegistryTracer) PushImageArchive ¶ added in v1.2.241
func (r *DockerRegistryTracer) PushImageArchive(ctx context.Context, archiveOpener ArchiveOpener, reference string) (err error)
func (*DockerRegistryTracer) PushManifestList ¶ added in v1.2.241
func (r *DockerRegistryTracer) PushManifestList(ctx context.Context, reference string, opts ManifestListOptions) (err error)
func (*DockerRegistryTracer) String ¶ added in v1.2.241
func (r *DockerRegistryTracer) String() (res string)
func (*DockerRegistryTracer) TagRepoImage ¶ added in v1.2.241
func (*DockerRegistryTracer) TryGetRepoImage ¶ added in v1.2.241
type DockerRegistryWithCache ¶ added in v1.2.77
type DockerRegistryWithCache struct { Interface // contains filtered or unexported fields }
func (*DockerRegistryWithCache) DeleteRepoImage ¶ added in v1.2.77
func (*DockerRegistryWithCache) IsTagExist ¶ added in v1.2.77
func (*DockerRegistryWithCache) MutateAndPushImage ¶ added in v1.2.77
func (*DockerRegistryWithCache) PushImage ¶ added in v1.2.77
func (r *DockerRegistryWithCache) PushImage(ctx context.Context, reference string, opts *PushImageOptions) error
func (*DockerRegistryWithCache) TagRepoImage ¶ added in v1.2.77
type GcrOptions ¶
type GcrOptions struct {
// contains filtered or unexported fields
}
type GenericApiInterface ¶ added in v1.2.241
type GenericApiInterface interface { GetRepoImageConfigFile(ctx context.Context, reference string) (*v1.ConfigFile, error) // contains filtered or unexported methods }
func API ¶
func API() GenericApiInterface
type GetRepoImageOptions ¶ added in v1.2.226
type GetRepoImageOptions struct {
IsImageIndex bool
}
type GitHubPackagesForbiddenErr ¶ added in v1.2.14
type GitHubPackagesForbiddenErr apiError
func NewGitHubPackagesForbiddenErr ¶ added in v1.2.14
func NewGitHubPackagesForbiddenErr(err error) GitHubPackagesForbiddenErr
type GitHubPackagesUnauthorizedErr ¶ added in v1.2.14
type GitHubPackagesUnauthorizedErr apiError
func NewGitHubPackagesUnauthorizedErr ¶ added in v1.2.14
func NewGitHubPackagesUnauthorizedErr(err error) GitHubPackagesUnauthorizedErr
type HarborRepositoryNotFoundErr ¶ added in v1.2.14
type HarborRepositoryNotFoundErr apiError
func NewHarborRepositoryNotFoundErr ¶ added in v1.2.14
func NewHarborRepositoryNotFoundErr(err error) HarborRepositoryNotFoundErr
type Interface ¶ added in v1.2.77
type Interface interface { CreateRepo(ctx context.Context, reference string) error DeleteRepo(ctx context.Context, reference string) error Tags(ctx context.Context, reference string, opts ...Option) ([]string, error) IsTagExist(ctx context.Context, reference string, opts ...Option) (bool, error) TagRepoImage(ctx context.Context, repoImage *image.Info, tag string) error TryGetRepoImage(ctx context.Context, reference string) (*image.Info, error) DeleteRepoImage(ctx context.Context, repoImage *image.Info) error PushImage(ctx context.Context, reference string, opts *PushImageOptions) error CopyImage(ctx context.Context, sourceReference, destinationReference string, opts CopyImageOptions) error PushImageArchive(ctx context.Context, archiveOpener ArchiveOpener, reference string) error PullImageArchive(ctx context.Context, archiveWriter io.Writer, reference string) error PushManifestList(ctx context.Context, reference string, opts ManifestListOptions) error String() string // contains filtered or unexported methods }
func NewDockerRegistry ¶
func NewDockerRegistry(repositoryAddress, implementation string, options DockerRegistryOptions) (Interface, error)
type ManifestListOptions ¶ added in v1.2.220
type Option ¶ added in v1.2.77
type Option func(*Options)
func WithCachedTags ¶ added in v1.2.77
func WithCachedTags() Option
type PushImageOptions ¶
type QuayRepositoryNotFoundErr ¶ added in v1.2.14
type QuayRepositoryNotFoundErr apiError
func NewQuayRepositoryNotFoundErr ¶ added in v1.2.14
func NewQuayRepositoryNotFoundErr(err error) QuayRepositoryNotFoundErr
type SelectelRepositoryNotFoundErr ¶ added in v1.2.148
type SelectelRepositoryNotFoundErr apiError
func NewSelectelRepositoryNotFoundErr ¶ added in v1.2.148
func NewSelectelRepositoryNotFoundErr(err error) SelectelRepositoryNotFoundErr
type SelectelUnauthorizedErr ¶ added in v1.2.148
type SelectelUnauthorizedErr apiError
func NewSelectelUnauthorizedErr ¶ added in v1.2.148
func NewSelectelUnauthorizedErr(err error) SelectelUnauthorizedErr
Source Files ¶
- api.go
- aws_ecr.go
- azure_cr.go
- common_api.go
- debug.go
- default.go
- docker_hub.go
- docker_hub_api.go
- docker_registry.go
- docker_registry_with_cache.go
- errors.go
- gcr.go
- generic_api.go
- github_packages.go
- github_packages_api.go
- gitlab_registry.go
- harbor.go
- harbor_api.go
- image_info.go
- interface.go
- main.go
- options.go
- quay.go
- quay_api.go
- selectel.go
- selectel_api.go
Click to show internal directories.
Click to hide internal directories.