docker_registry

package
v1.1.32 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2022 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

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 API

func API() *api

func ImplementationList

func ImplementationList() []string

func Init

func Init(ctx context.Context, insecureRegistry, skipTlsVerifyRegistry bool) error

func IsBlobUnknownError added in v1.1.24

func IsBlobUnknownError(err error) bool

func IsHarbor404Error added in v1.1.29

func IsHarbor404Error(err error) bool

func IsManifestUnknownError

func IsManifestUnknownError(err error) bool

func IsNameUnknownError

func IsNameUnknownError(err error) bool

func IsNotFoundError added in v1.1.23

func IsNotFoundError(err error) bool

func ResolveImplementation

func ResolveImplementation(repository, implementation string) (string, error)

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 DockerRegistryOptions struct {
	InsecureRegistry      bool
	SkipTlsVerifyRegistry bool
	DockerHubToken        string
	DockerHubUsername     string
	DockerHubPassword     string
	GitHubToken           string
	HarborUsername        string
	HarborPassword        string
	QuayToken             string
}

type GcrOptions

type GcrOptions struct {
	// contains filtered or unexported fields
}

type GitHubPackagesUnauthorizedError

type GitHubPackagesUnauthorizedError apiError

type HarborNotFoundError

type HarborNotFoundError apiError

type PushImageOptions

type PushImageOptions struct {
	Labels map[string]string
}

type QuayNotFoundError

type QuayNotFoundError apiError

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL