secret

package
Version: v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2018 License: Apache-2.0 Imports: 8 Imported by: 19

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 is a specification of an image pull secret implements SecretSpec

func (*ImagePullSecretSpec) GetData

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

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

func (*ImagePullSecretSpec) GetName

func (spec *ImagePullSecretSpec) GetName() string

GetName returns the name of the ImagePullSecret

func (*ImagePullSecretSpec) GetNamespace

func (spec *ImagePullSecretSpec) GetNamespace() string

GetNamespace returns the namespace of the ImagePullSecret

func (*ImagePullSecretSpec) GetType

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

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

type Secret

type Secret struct {
	ObjectMeta api.ObjectMeta `json:"objectMeta"`
	TypeMeta   api.TypeMeta   `json:"typeMeta"`
	Type       v1.SecretType  `json:"type"`
}

Secret is a single secret returned to the frontend.

func CreateSecret

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

CreateSecret creates a single secret using the cluster API client

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 api.ObjectMeta `json:"objectMeta"`
	TypeMeta   api.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 v1.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 kubernetes.Interface, namespace, name string) (*SecretDetail, error)

GetSecretDetail returns detailed information about a secret

type SecretList added in v1.1.1

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

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

	// List of non-critical errors, that occurred during resource retrieval.
	Errors []error `json:"errors"`
}

SecretsList is a response structure for a queried secrets list.

func GetSecretList added in v1.1.1

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

GetSecretList returns 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 Secrets in the cluster reading required resource list once from the channels.

type SecretSpec

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

SecretSpec is a 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