dockerauth

package
v0.0.0-...-6dabecf Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2019 License: Apache-2.0 Imports: 5 Imported by: 6

Documentation

Index

Constants

View Source
const (
	DockerRegistryV2 = "https://index.docker.io/v2/"
)

Variables

View Source
var ErrNoAuthenticator = errors.New("Unable to make authenticator for this registry")

Functions

func GetRegistryAuthenticator

func GetRegistryAuthenticator(opts CheckAccessOptions) (auth.Authenticator, error)

func NormalizeRegistry

func NormalizeRegistry(address string) string

Types

type CheckAccessOptions

type CheckAccessOptions struct {
	Username               string `yaml:"username"`
	Password               string `yaml:"password"`
	Registry               string `yaml:"registry"`
	AwsRegistryID          string `yaml:"aws-registry-id"`
	AwsRegion              string `yaml:"aws-region"`
	AwsAccessKey           string `yaml:"aws-access-key"`
	AwsSecretKey           string `yaml:"aws-secret-key"`
	AwsStrictAuth          bool   `yaml:"aws-strict-auth"`
	AzureLoginServer       string `yaml:"azure-login-server"`
	AzureRegistryName      string `yaml:"azure-registry-name"`
	AzureClientID          string `yaml:"azure-client-id"`
	AzureClientSecret      string `yaml:"azure-client-secret"`
	AzureSubscriptionID    string `yaml:"azure-subscription-id"`
	AzureTenantID          string `yaml:"azure-tenant-id"`
	AzureResourceGroupName string `yaml:"azure-resource-group"`
}

func (*CheckAccessOptions) Interpolate

func (a *CheckAccessOptions) Interpolate(env *util.Environment)

Jump to

Keyboard shortcuts

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