Documentation
¶
Index ¶
- type ACR
- func (r *ACR) Configured() bool
- func (r *ACR) Create(_ string) error
- func (r *ACR) GetAuthConfig() registry.AuthConfig
- func (r *ACR) GetAuthInfo() string
- func (r *ACR) Login(client docker.Client) error
- func (r *ACR) Name() string
- func (ACR) PushImage(client docker.Client, auth, image string) error
- func (r *ACR) RegistryUrl() string
- type Credential
- type Dockerhub
- func (r Dockerhub) Configured() bool
- func (r *Dockerhub) Create(repository string) error
- func (r Dockerhub) GetAuthConfig() registry.AuthConfig
- func (r Dockerhub) GetAuthInfo() string
- func (r Dockerhub) Login(client docker.Client) error
- func (r Dockerhub) Name() string
- func (Dockerhub) PushImage(client docker.Client, auth, image string) error
- func (r Dockerhub) RegistryUrl() string
- type ECR
- func (r *ECR) Configured() bool
- func (r ECR) Create(repository string) error
- func (r *ECR) GetAuthConfig() registry.AuthConfig
- func (r *ECR) GetAuthInfo() string
- func (r *ECR) Login(client docker.Client) error
- func (r *ECR) Name() string
- func (ECR) PushImage(client docker.Client, auth, image string) error
- func (r ECR) RegistryUrl() string
- type ECRClient
- type GCR
- func (r *GCR) Configured() bool
- func (r GCR) Create(repository string) error
- func (r *GCR) GetAuthConfig() registry.AuthConfig
- func (r *GCR) GetAuthInfo() string
- func (r *GCR) Login(client docker.Client) error
- func (r *GCR) Name() string
- func (GCR) PushImage(client docker.Client, auth, image string) error
- func (r GCR) RegistryUrl() string
- type Github
- func (r Github) Configured() bool
- func (r *Github) Create(repository string) error
- func (r Github) GetAuthConfig() registry.AuthConfig
- func (r Github) GetAuthInfo() string
- func (r Github) Login(client docker.Client) error
- func (r Github) Name() string
- func (Github) PushImage(client docker.Client, auth, image string) error
- func (r Github) RegistryUrl() string
- type Gitlab
- func (r Gitlab) Configured() bool
- func (r *Gitlab) Create(repository string) error
- func (r Gitlab) GetAuthConfig() registry.AuthConfig
- func (r Gitlab) GetAuthInfo() string
- func (r Gitlab) Login(client docker.Client) error
- func (r Gitlab) Name() string
- func (Gitlab) PushImage(client docker.Client, auth, image string) error
- func (r Gitlab) RegistryUrl() string
- type NoDockerRegistry
- func (n NoDockerRegistry) Configured() bool
- func (n NoDockerRegistry) Create(repository string) error
- func (n NoDockerRegistry) GetAuthConfig() registry.AuthConfig
- func (n NoDockerRegistry) GetAuthInfo() string
- func (n NoDockerRegistry) Login(client docker.Client) error
- func (n NoDockerRegistry) Name() string
- func (n NoDockerRegistry) PushImage(client docker.Client, auth, image string) error
- func (n NoDockerRegistry) RegistryUrl() string
- type Quay
- func (r *Quay) Configured() bool
- func (r *Quay) Create(repository string) error
- func (r Quay) GetAuthConfig() registry.AuthConfig
- func (r Quay) GetAuthInfo() string
- func (r *Quay) Login(client docker.Client) error
- func (r *Quay) Name() string
- func (Quay) PushImage(client docker.Client, auth, image string) error
- func (r Quay) RegistryUrl() string
- type Registry
- type STSClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ACR ¶ added in v0.3.0
type ACR struct {
TenantId string `yaml:"tenantId" env:"ACR_TENANT_ID"`
Url string `yaml:"url" env:"ACR_URL"`
// contains filtered or unexported fields
}
func (*ACR) Configured ¶ added in v0.3.0
func (*ACR) GetAuthConfig ¶ added in v0.3.0
func (r *ACR) GetAuthConfig() registry.AuthConfig
func (*ACR) GetAuthInfo ¶ added in v0.3.0
func (*ACR) RegistryUrl ¶ added in v0.3.0
type Credential ¶ added in v0.3.0
type Credential interface {
GetToken(ctx context.Context, opts policy.TokenRequestOptions) (azcore.AccessToken, error)
}
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 (Dockerhub) GetAuthConfig ¶ added in v0.0.12
func (r Dockerhub) GetAuthConfig() registry.AuthConfig
func (Dockerhub) GetAuthInfo ¶
func (Dockerhub) RegistryUrl ¶
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 (*ECR) GetAuthConfig ¶ added in v0.0.12
func (r *ECR) GetAuthConfig() registry.AuthConfig
func (*ECR) GetAuthInfo ¶
func (ECR) RegistryUrl ¶
type ECRClient ¶ added in v0.3.0
type ECRClient interface {
GetAuthorizationToken(ctx context.Context, params *ecr.GetAuthorizationTokenInput, optFns ...func(*ecr.Options)) (*ecr.GetAuthorizationTokenOutput, error)
DescribeRepositories(ctx context.Context, params *ecr.DescribeRepositoriesInput, optFns ...func(*ecr.Options)) (*ecr.DescribeRepositoriesOutput, error)
CreateRepository(ctx context.Context, params *ecr.CreateRepositoryInput, optFns ...func(*ecr.Options)) (*ecr.CreateRepositoryOutput, error)
PutLifecyclePolicy(ctx context.Context, params *ecr.PutLifecyclePolicyInput, optFns ...func(*ecr.Options)) (*ecr.PutLifecyclePolicyOutput, error)
}
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 (*GCR) GetAuthConfig ¶ added in v0.0.18
func (r *GCR) GetAuthConfig() registry.AuthConfig
func (*GCR) GetAuthInfo ¶ added in v0.0.18
func (GCR) RegistryUrl ¶ added in v0.0.18
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 (Github) GetAuthConfig ¶ added in v0.0.12
func (r Github) GetAuthConfig() registry.AuthConfig
func (Github) GetAuthInfo ¶
func (Github) RegistryUrl ¶
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 (Gitlab) GetAuthConfig ¶ added in v0.0.12
func (r Gitlab) GetAuthConfig() registry.AuthConfig
func (Gitlab) GetAuthInfo ¶
func (Gitlab) RegistryUrl ¶
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) 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 (Quay) GetAuthConfig ¶ added in v0.0.12
func (r Quay) GetAuthConfig() registry.AuthConfig
func (Quay) GetAuthInfo ¶
func (Quay) RegistryUrl ¶
Click to show internal directories.
Click to hide internal directories.