secret

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImagePullSecretSpec

type ImagePullSecretSpec struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
	// The value of the .dockercfg property. It must be Base64 encoded.
	Data []byte `json:"data"`
}

ImagePullSecretSpec - specification of an image pull secret implements SecretSpec

func (*ImagePullSecretSpec) GetData

func (spec *ImagePullSecretSpec) GetData() map[string][]byte

GetData - return the data the secret carries, it is a single key-value pair

func (*ImagePullSecretSpec) GetName

func (spec *ImagePullSecretSpec) GetName() string

GetName - return the name of the ImagePullSecret

func (*ImagePullSecretSpec) GetNamespace

func (spec *ImagePullSecretSpec) GetNamespace() string

GetNamespace - return the namespace of the ImagePullSecret

func (*ImagePullSecretSpec) GetType

func (spec *ImagePullSecretSpec) GetType() api.SecretType

GetType - return the type of the ImagePullSecret, which is always api.SecretTypeDockercfg

type Secret

type Secret struct {
	Name string `json:"name"`
}

Secret - a single secret returned to the frontend.

func CreateSecret

func CreateSecret(client *client.Client, spec SecretSpec) (*Secret, error)

CreateSecret - create a single secret using the cluster API client

type SecretSpec

type SecretSpec interface {
	GetName() string
	GetType() api.SecretType
	GetNamespace() string
	GetData() map[string][]byte
}

SecretSpec - common interface for the specification of different secrets.

type SecretsList

type SecretsList struct {
	Secrets []string `json:"secrets"`
}

SecretsList - response structure for a queried secrets list.

func GetSecrets

func GetSecrets(client *client.Client, namespace string) (*SecretsList,
	error)

GetSecrets - return all secrets in the given namespace.

Jump to

Keyboard shortcuts

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