registry

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// AdminRegistryCmdName is used in the labels to mark the resource this command created
	AdminRegistryCmdName = "kn-admin-registry"
	// DockerJSONName is used to represent ".dockerconfigjson" in secret data
	DockerJSONName = ".dockerconfigjson"
	// ImagePullServiceAccount is used to store service account name which use this secret
	// as ImagePullSecret in this secret's label
	ImagePullServiceAccount = "image-pull-service-account"
)
View Source
var AdminRegistryLabels = map[string]string{
	pkg.LabelManagedBy: AdminRegistryCmdName,
}

AdminRegistryLabels is a set of labels which will be added to the registry resources to indicate that these resources are managed by admin registry command.

Functions

func NewPrivateRegistryCmd

func NewPrivateRegistryCmd(p *pkg.AdminParams) *cobra.Command

NewPrivateRegistryCmd represents the privateRegistry command

func NewRegistryAddCommand

func NewRegistryAddCommand(p *pkg.AdminParams) *cobra.Command

NewRegistryAddCommand represents the add command

func NewRegistryListCommand

func NewRegistryListCommand(p *pkg.AdminParams) *cobra.Command

NewRegistryListCommand represents the list command

func NewRegistryRmCommand

func NewRegistryRmCommand(p *pkg.AdminParams) *cobra.Command

NewRegistryRmCommand represents the remove command

func RegistryListHandlers

func RegistryListHandlers(h hprinters.PrintHandler)

RegistryListHandlers adds print handlers for registry list command

Types

type Auths

type Auths map[string]registryCred

Auths is a map of docker credentials indexed by server url

type Registry

type Registry struct {
	Auths Auths `json:"auths"`
}

Registry contains data for secret creation

Jump to

Keyboard shortcuts

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