secrethelper

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DockerConfigAuthKey     = "auth"
	DockerConfigUserKey     = "user"
	DockerConfigPasswordKey = "password"
)

Variables

This section is empty.

Functions

func GetCert

func GetCert(secret *corev1.Secret, certKey string) ([]byte, error)

func GetPrivateKey

func GetPrivateKey(secret *corev1.Secret, keyKey string) ([]byte, error)

Types

type DockerConfigJson

type DockerConfigJson struct {
	Auths map[string]DockerLoginCredential `json:"auths"`
}

type DockerLoginCredential

type DockerLoginCredential map[string]string

type ImagePullSecret

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

func NewImagePullSecret

func NewImagePullSecret(secret *corev1.Secret) (*ImagePullSecret, error)

func (*ImagePullSecret) GetHostCredential

func (s *ImagePullSecret) GetHostCredential(host string) (*LoginCredential, error)

type LoginCredential

type LoginCredential struct {
	Auth     []byte
	Username string
	Password []byte
}

Jump to

Keyboard shortcuts

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