registry

package
v1.1.1-0...-9418116 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRegistryAuthSecretName added in v1.0.0

func GetRegistryAuthSecretName(registryURL string) string

GetRegistryAuthSecretName returns the name of the image pull secret for a registry

func GetRegistryFromImageName

func GetRegistryFromImageName(imageName string) (string, error)

GetRegistryFromImageName retrieves the registry name from an imageName

func GetStrippedDockerImageName

func GetStrippedDockerImageName(imageName string) (string, error)

GetStrippedDockerImageName returns a tag stripped image name and checks if it's a valid image name

Types

type Client

type Client interface {
	CreatePullSecrets() error
	CreatePullSecret(options *PullSecretOptions) error
}

Client communicates with a registry

func NewClient

func NewClient(config *latest.Config, kubeClient kubectl.Client, dockerClient docker.Client, log log.Logger) Client

NewClient creates a client for a registry

type PullSecretOptions

type PullSecretOptions struct {
	Namespace, RegistryURL, Username, PasswordOrToken, Email string
}

PullSecretOptions has all options neccessary to create a pullSecret

Jump to

Keyboard shortcuts

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