secrets

package
v0.0.0-...-c5ab296 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2019 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNamespaceNotSpecified = errors.New("namespace not specified")
	ErrSecretsNotSpecified   = errors.New("no secrets were specified")
)

common errors

Functions

func EncodeBase64Secret

func EncodeBase64Secret(username, password string) string

func EncodeDockerCfgJson

func EncodeDockerCfgJson(cfg *DockerCfg) ([]byte, error)

Types

type Auth

type Auth struct {
	Username string `json:"username"`
	Password string `json:"password"`
	Email    string `json:"email"`
	Auth     string `json:"auth"`
}

Auth - auth

type DefaultGetter

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

DefaultGetter - default kubernetes secret getter implementation

func NewGetter

func NewGetter(defaultDockerConfig DockerCfg) *DefaultGetter

NewGetter - create new default getter

func (*DefaultGetter) Get

Get - get secret for tracked image

type DockerCfg

type DockerCfg map[string]*Auth

DockerCfg - registry_name=auth

func DecodeDockerCfgJson

func DecodeDockerCfgJson(data []byte) (DockerCfg, error)

type DockerCfgJSON

type DockerCfgJSON struct {
	Auths DockerCfg `json:"auths"`
}

DockerCfgJSON - secret structure when dockerconfigjson is used

type Getter

type Getter interface {
	Get(image *types.TrackedImage) (*types.Credentials, error)
}

Getter - generic secret getter interface

Jump to

Keyboard shortcuts

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