docker_registry

package
v1.1.21 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: Apache-2.0 Imports: 26 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(insecureRegistry, skipTlsVerifyRegistry bool) error

func IsManifestUnknownError

func IsManifestUnknownError(err error) bool

func IsNameUnknownError

func IsNameUnknownError(err error) bool

func NewManifestOnlyImage

func NewManifestOnlyImage(labels map[string]string) v1.Image

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(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
	PushImage(reference string, opts PushImageOptions) error

	ResolveRepoMode(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

Jump to

Keyboard shortcuts

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