registry

package
Version: v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2019 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dockerhub

type Dockerhub struct {
	Repository string `yaml:"repository" env:"DOCKERHUB_REPOSITORY"`
	Username   string `yaml:"username" env:"DOCKERHUB_USERNAME"`
	Password   string `yaml:"password" env:"DOCKERHUB_PASSWORD"`
	// contains filtered or unexported fields
}

func (Dockerhub) Configured

func (r Dockerhub) Configured() bool

func (*Dockerhub) Create

func (r *Dockerhub) Create(repository string) error

func (Dockerhub) GetAuthInfo

func (r Dockerhub) GetAuthInfo() string

func (Dockerhub) Login

func (r Dockerhub) Login(client docker.Client, out io.Writer) error

func (Dockerhub) Name

func (r Dockerhub) Name() string

func (Dockerhub) PushImage

func (Dockerhub) PushImage(client docker.Client, auth, image string, ow, eout io.Writer) error

func (Dockerhub) RegistryUrl

func (r Dockerhub) RegistryUrl() string

type ECR

type ECR struct {
	Url    string `yaml:"url" env:"ECR_URL"`
	Region string `yaml:"region" env:"ECR_REGION"`
	// contains filtered or unexported fields
}

func (*ECR) Configured

func (r *ECR) Configured() bool

func (ECR) Create

func (r ECR) Create(repository string) error

func (*ECR) GetAuthInfo

func (r *ECR) GetAuthInfo() string

func (*ECR) Login

func (r *ECR) Login(client docker.Client, out io.Writer) error

func (*ECR) Name

func (r *ECR) Name() string

func (ECR) PushImage

func (ECR) PushImage(client docker.Client, auth, image string, ow, eout io.Writer) error

func (ECR) RegistryUrl

func (r ECR) RegistryUrl() string

type Github

type Github struct {
	Username   string `yaml:"username" env:"GITHUB_USERNAME"`
	Password   string `yaml:"password" env:"GITHUB_PASSWORD"`
	Token      string `yaml:"token" env:"GITHUB_TOKEN"`
	Repository string `yaml:"repository" env:"GITHUB_REPOSITORY"`
	// contains filtered or unexported fields
}

func (Github) Configured

func (r Github) Configured() bool

func (*Github) Create

func (r *Github) Create(repository string) error

func (Github) GetAuthInfo

func (r Github) GetAuthInfo() string

func (Github) Login

func (r Github) Login(client docker.Client, out io.Writer) error

func (Github) Name

func (r Github) Name() string

func (Github) PushImage

func (Github) PushImage(client docker.Client, auth, image string, ow, eout io.Writer) error

func (Github) RegistryUrl

func (r Github) RegistryUrl() string

type Gitlab

type Gitlab struct {
	Registry   string `yaml:"registry" env:"CI_REGISTRY"`
	Repository string `yaml:"repository" env:"CI_REGISTRY_IMAGE"`
	Token      string `yaml:"token" env:"CI_TOKEN"`
	// contains filtered or unexported fields
}

func (Gitlab) Configured

func (r Gitlab) Configured() bool

func (*Gitlab) Create

func (r *Gitlab) Create(repository string) error

func (Gitlab) GetAuthInfo

func (r Gitlab) GetAuthInfo() string

func (Gitlab) Login

func (r Gitlab) Login(client docker.Client, out io.Writer) error

func (Gitlab) Name

func (r Gitlab) Name() string

func (Gitlab) PushImage

func (Gitlab) PushImage(client docker.Client, auth, image string, ow, eout io.Writer) error

func (Gitlab) RegistryUrl

func (r Gitlab) RegistryUrl() string

type NoDockerRegistry

type NoDockerRegistry struct{}

func (NoDockerRegistry) Configured

func (n NoDockerRegistry) Configured() bool

func (NoDockerRegistry) Create

func (n NoDockerRegistry) Create(repository string) error

func (NoDockerRegistry) GetAuthInfo

func (n NoDockerRegistry) GetAuthInfo() string

func (NoDockerRegistry) Login

func (n NoDockerRegistry) Login(client docker.Client, out io.Writer) error

func (NoDockerRegistry) Name

func (n NoDockerRegistry) Name() string

func (NoDockerRegistry) PushImage

func (n NoDockerRegistry) PushImage(client docker.Client, auth, image string, out, eout io.Writer) error

func (NoDockerRegistry) RegistryUrl

func (n NoDockerRegistry) RegistryUrl() string

type Quay

type Quay struct {
	Repository string `yaml:"repository" env:"QUAY_REPOSITORY"`
	Username   string `yaml:"username" env:"QUAY_USERNAME"`
	Password   string `yaml:"password" env:"QUAY_PASSWORD"`
	// contains filtered or unexported fields
}

func (*Quay) Configured

func (r *Quay) Configured() bool

func (*Quay) Create

func (r *Quay) Create(repository string) error

func (Quay) GetAuthInfo

func (r Quay) GetAuthInfo() string

func (*Quay) Login

func (r *Quay) Login(client docker.Client, out io.Writer) error

func (*Quay) Name

func (r *Quay) Name() string

func (Quay) PushImage

func (Quay) PushImage(client docker.Client, auth, image string, ow, eout io.Writer) error

func (Quay) RegistryUrl

func (r Quay) RegistryUrl() string

type Registry

type Registry interface {
	Configured() bool
	Name() string
	Login(client docker.Client, out io.Writer) error
	GetAuthInfo() string
	RegistryUrl() string
	Create(repository string) error
	PushImage(client docker.Client, auth, image string, out, eout io.Writer) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL