secret

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerConfig

type DockerConfig map[string]DockerConfigEntry

DockerConfig represents the config file used by the docker CLI. This config that represents the credentials that should be used when pulling images from specific image repositories.

type DockerConfigEntry

type DockerConfigEntry struct {
	Username string `json:"username,omitempty"`
	Password string `json:"password,omitempty" datapolicy:"password"`
	Email    string `json:"email,omitempty"`
	Auth     string `json:"auth,omitempty" datapolicy:"token"`
}

DockerConfigEntry is a entry for a config of docker registry

type DockerConfigJSON

type DockerConfigJSON struct {
	Auths DockerConfig `json:"auths" datapolicy:"token"`
}

DockerConfigJSON represents a local docker auth config file for pulling images.

type ImgPullSecretClient

type ImgPullSecretClient struct {
	// contains filtered or unexported fields
}

ImgPullSecretClient is a client for Kubernetes APIs

func NewImgPullSecretClient

func NewImgPullSecretClient(set kubernetes.Interface, rec record.EventRecorder) *ImgPullSecretClient

NewImgPullSecretClient is a constructor

func (*ImgPullSecretClient) CreateSecret

func (c *ImgPullSecretClient) CreateSecret(name, server, user, password, email, namespace string) error

CreateSecret is

func (*ImgPullSecretClient) DeleteSecret

func (c *ImgPullSecretClient) DeleteSecret(secret *corev1.Secret) error

DeleteSecret is

Jump to

Keyboard shortcuts

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