registry

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AmazonECR

type AmazonECR struct {
	AccountID string `yaml:"account_id"`
	Region    string
}

AmazonECR Amazon ECR registry config

func (*AmazonECR) Contains

func (registry *AmazonECR) Contains(repository string, tag string) bool

Contains checks to see if the registry contains the image with matching repository and tag

func (*AmazonECR) Prefix

func (registry *AmazonECR) Prefix() string

Prefix returns the leading part of the image name for this registry

type Config

type Config struct {
	// Standard Docker Registry v2
	RegistryV2 DockerV2 `yaml:"registry_v2"`

	// Amazon ECR
	ECR AmazonECR
}

Config configuration for various registries

func (*Config) ConfiguredRegistry

func (config *Config) ConfiguredRegistry() Registry

ConfiguredRegistry determines which registry type is configured and returns Registry

func (*Config) RegistryPrefix

func (config *Config) RegistryPrefix() string

RegistryPrefix return the prefix for this registry that is configured

type DockerV2

type DockerV2 struct {
	URL      string
	Insecure bool
}

DockerV2 configuration information for an official Docker Registry v2

func (*DockerV2) Contains

func (docker *DockerV2) Contains(repository string, tag string) bool

Contains checks to see if the registry contains the image with matching repository and tag

func (*DockerV2) Prefix

func (docker *DockerV2) Prefix() string

Prefix returns the leading part of the image name for this registry

type Registry

type Registry interface {
	Prefix() string
	Contains(repository string, tag string) bool
}

Registry operations that can be performed on a registry

Jump to

Keyboard shortcuts

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