secret

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2017 License: Apache-2.0 Imports: 8 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 {
	common.ObjectMeta `json:"objectMeta"`
	common.TypeMeta   `json:"typeMeta"`
}

Secret - a single secret returned to the frontend.

func CreateSecret

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

CreateSecret - create a single secret using the cluster API client

func NewSecret added in v1.1.1

func NewSecret(secret *api.Secret) *Secret

NewSecret - creates a new instance of Secret struct based on K8s Secret.

type SecretCell added in v1.4.0

type SecretCell api.Secret

func (SecretCell) GetProperty added in v1.4.0

type SecretDetail added in v1.1.1

type SecretDetail struct {
	ObjectMeta common.ObjectMeta `json:"objectMeta"`
	TypeMeta   common.TypeMeta   `json:"typeMeta"`

	// Data contains the secret data.  Each key must be a valid DNS_SUBDOMAIN
	// or leading dot followed by valid DNS_SUBDOMAIN.
	// The serialized form of the secret data is a base64 encoded string,
	// representing the arbitrary (possibly non-string) data value here.
	Data map[string][]byte `json:"data"`

	// Used to facilitate programmatic handling of secret data.
	Type api.SecretType `json:"type"`
}

SecretDetail API resource provides mechanisms to inject containers with configuration data while keeping containers agnostic of Kubernetes

func GetSecretDetail added in v1.1.1

func GetSecretDetail(client *client.Clientset, namespace, name string) (*SecretDetail, error)

GetSecretDetail returns returns detailed information about a secret

type SecretList added in v1.1.1

type SecretList struct {
	common.ListMeta `json:"listMeta"`

	// Unordered list of Secrets.
	Secrets []Secret `json:"secrets"`
}

SecretsList - response structure for a queried secrets list.

func GetSecretList added in v1.1.1

func GetSecretList(client *client.Clientset, namespace *common.NamespaceQuery,
	dsQuery *dataselect.DataSelectQuery) (*SecretList, error)

GetSecretList - return all secrets in the given namespace.

func GetSecretListFromChannels added in v1.4.0

func GetSecretListFromChannels(channels *common.ResourceChannels, dsQuery *dataselect.DataSelectQuery) (
	*SecretList, error)

GetSecretListFromChannels returns a list of all Config Maps in the cluster reading required resource list once from the channels.

func NewSecretList added in v1.1.1

func NewSecretList(secrets []api.Secret, dsQuery *dataselect.DataSelectQuery) *SecretList

NewSecret - creates a new instance of SecretList struct based on K8s Secrets array.

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.

Jump to

Keyboard shortcuts

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