docker_registry

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: Apache-2.0 Imports: 24 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 added in v1.1.9

func API() *api

func ImplementationList added in v1.1.9

func ImplementationList() []string

func Init

func Init(insecureRegistry, skipTlsVerifyRegistry bool) error

func IsManifestUnknownError added in v1.1.10

func IsManifestUnknownError(err error) bool

func ResolveImplementation added in v1.1.9

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

Types

type AzureCrNotFoundError added in v1.1.9

type AzureCrNotFoundError apiError

type DockerHubNotFoundError added in v1.1.9

type DockerHubNotFoundError apiError

type DockerHubUnauthorizedError added in v1.1.9

type DockerHubUnauthorizedError apiError

type DockerRegistry added in v1.1.9

type DockerRegistry interface {
	CreateRepo(reference string) error
	DeleteRepo(reference string) error
	Tags(reference string) ([]string, error)
	GetRepoImage(reference string) (*image.Info, error)
	TryGetRepoImage(reference string) (*image.Info, error)
	IsRepoImageExists(reference string) (bool, error)
	GetRepoImageList(reference string) ([]*image.Info, error)
	SelectRepoImageList(reference string, f func(string, *image.Info, error) (bool, error)) ([]*image.Info, error)
	DeleteRepoImage(repoImageList ...*image.Info) error

	ResolveRepoMode(registryOrRepositoryAddress, repoMode string) (string, error)
	String() string
}

func NewDockerRegistry added in v1.1.9

func NewDockerRegistry(repositoryAddress string, implementation string, options DockerRegistryOptions) (DockerRegistry, error)

type DockerRegistryOptions added in v1.1.9

type DockerRegistryOptions struct {
	InsecureRegistry      bool
	SkipTlsVerifyRegistry bool
	DockerHubToken        string
	DockerHubUsername     string
	DockerHubPassword     string
	GitHubToken           string
	HarborUsername        string
	HarborPassword        string
	QuayToken             string
}

type GcrOptions added in v1.1.9

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

type GitHubPackagesUnauthorizedError added in v1.1.9

type GitHubPackagesUnauthorizedError apiError

type HarborNotFoundError added in v1.1.9

type HarborNotFoundError apiError

type QuayNotFoundError added in v1.1.9

type QuayNotFoundError apiError

Jump to

Keyboard shortcuts

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