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 EncodeDockerCfgJson ¶
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(implementer kubernetes.Implementer, defaultDockerConfig DockerCfg) *DefaultGetter
NewGetter - create new default getter
func (*DefaultGetter) Get ¶
func (g *DefaultGetter) Get(image *types.TrackedImage) (*types.Credentials, error)
Get - get secret for tracked image
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
Click to show internal directories.
Click to hide internal directories.