registry

package
v0.2.28 Latest Latest
Warning

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

Go to latest
Published: May 20, 2023 License: MIT Imports: 18 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 {
	Namespace string `yaml:"namespace" env:"DOCKERHUB_NAMESPACE"`
	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) GetAuthConfig added in v0.0.12

func (r Dockerhub) GetAuthConfig() registry.AuthConfig

func (Dockerhub) GetAuthInfo

func (r Dockerhub) GetAuthInfo() string

func (Dockerhub) Login

func (r Dockerhub) Login(client docker.Client) error

func (Dockerhub) Name

func (r Dockerhub) Name() string

func (Dockerhub) PushImage

func (Dockerhub) PushImage(client docker.Client, auth, image string) 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,omitempty" 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) GetAuthConfig added in v0.0.12

func (r *ECR) GetAuthConfig() registry.AuthConfig

func (*ECR) GetAuthInfo

func (r *ECR) GetAuthInfo() string

func (*ECR) Login

func (r *ECR) Login(client docker.Client) error

func (*ECR) Name

func (r *ECR) Name() string

func (ECR) PushImage

func (ECR) PushImage(client docker.Client, auth, image string) error

func (ECR) RegistryUrl

func (r ECR) RegistryUrl() string

type GCR added in v0.0.18

type GCR struct {
	Url            string `yaml:"url" env:"GCR_URL"`
	KeyFileContent string `yaml:"keyfileContent,omitempty" env:"GCR_KEYFILE_CONTENT"`
	// contains filtered or unexported fields
}

func (*GCR) Configured added in v0.0.18

func (r *GCR) Configured() bool

func (GCR) Create added in v0.0.18

func (r GCR) Create(repository string) error

func (*GCR) GetAuthConfig added in v0.0.18

func (r *GCR) GetAuthConfig() registry.AuthConfig

func (*GCR) GetAuthInfo added in v0.0.18

func (r *GCR) GetAuthInfo() string

func (*GCR) Login added in v0.0.18

func (r *GCR) Login(client docker.Client) error

func (*GCR) Name added in v0.0.18

func (r *GCR) Name() string

func (GCR) PushImage added in v0.0.18

func (GCR) PushImage(client docker.Client, auth, image string) error

func (GCR) RegistryUrl added in v0.0.18

func (r GCR) 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_OWNER"`
	// 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) GetAuthConfig added in v0.0.12

func (r Github) GetAuthConfig() registry.AuthConfig

func (Github) GetAuthInfo

func (r Github) GetAuthInfo() string

func (Github) Login

func (r Github) Login(client docker.Client) error

func (Github) Name

func (r Github) Name() string

func (Github) PushImage

func (Github) PushImage(client docker.Client, auth, image string) error

func (Github) RegistryUrl

func (r Github) RegistryUrl() string

type Gitlab

type Gitlab struct {
	Registry   string `yaml:"registry" env:"CI_REGISTRY"`
	User       string `yaml:"user" env:"CI_REGISTRY_USER"`
	Repository string `yaml:"repository" env:"CI_REGISTRY_IMAGE"`
	Token      string `yaml:"token,omitempty" env:"CI_JOB_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) GetAuthConfig added in v0.0.12

func (r Gitlab) GetAuthConfig() registry.AuthConfig

func (Gitlab) GetAuthInfo

func (r Gitlab) GetAuthInfo() string

func (Gitlab) Login

func (r Gitlab) Login(client docker.Client) error

func (Gitlab) Name

func (r Gitlab) Name() string

func (Gitlab) PushImage

func (Gitlab) PushImage(client docker.Client, auth, image string) 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) GetAuthConfig added in v0.0.12

func (n NoDockerRegistry) GetAuthConfig() registry.AuthConfig

func (NoDockerRegistry) GetAuthInfo

func (n NoDockerRegistry) GetAuthInfo() string

func (NoDockerRegistry) Login

func (n NoDockerRegistry) Login(client docker.Client) error

func (NoDockerRegistry) Name

func (n NoDockerRegistry) Name() string

func (NoDockerRegistry) PushImage

func (n NoDockerRegistry) PushImage(client docker.Client, auth, image string) 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) GetAuthConfig added in v0.0.12

func (r Quay) GetAuthConfig() registry.AuthConfig

func (Quay) GetAuthInfo

func (r Quay) GetAuthInfo() string

func (*Quay) Login

func (r *Quay) Login(client docker.Client) error

func (*Quay) Name

func (r *Quay) Name() string

func (Quay) PushImage

func (Quay) PushImage(client docker.Client, auth, image string) error

func (Quay) RegistryUrl

func (r Quay) RegistryUrl() string

type Registry

type Registry interface {
	Configured() bool
	Name() string
	Login(client docker.Client) error
	GetAuthConfig() registry.AuthConfig
	GetAuthInfo() string
	RegistryUrl() string
	Create(repository string) error
	PushImage(client docker.Client, auth, image string) error
}

Jump to

Keyboard shortcuts

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