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.
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
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.Client, namespace *common.NamespaceQuery, pQuery *common.PaginationQuery) (*SecretList, error)
GetSecretList - return all secrets in the given namespace.
func NewSecretList ¶ added in v1.1.1
func NewSecretList(secrets []api.Secret, pQuery *common.PaginationQuery) *SecretList
NewSecret - creates a new instance of SecretList struct based on K8s Secrets array.
Source Files
¶
- secretcommon.go
- secretdetail.go
- secretlist.go