secret

package
v0.0.1-alpha.2 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

func NewSecretManager

func NewSecretManager(clientset kubernetes.Interface) *Manager

NewSecretManager constructs new Manager with the specified Kubernetes Clientset.

func (*Manager) GetImages

func (s *Manager) GetImages(spec core.PodSpec) (images []string)

GetImages gets a slice of images for the specified PodSpec.

func (*Manager) GetImagesWithCredentials

func (s *Manager) GetImagesWithCredentials(namespace string, spec core.PodSpec) (credentials map[string]docker.ServerCredentials, err error)

GetImagesWithCredentials gets private images for the specified PodSpec and maps them to the Docker ServerCredentials.

func (*Manager) GetServerFromImage

func (s *Manager) GetServerFromImage(image string) string

func (*Manager) GetServersWithCredentials

func (s *Manager) GetServersWithCredentials(namespace string, imagePullSecrets []core.LocalObjectReference) (credentials map[string]docker.ServerCredentials, err error)

Jump to

Keyboard shortcuts

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