Struct k8s_openapi::v1_8::api::core::v1::Secret[][src]

pub struct Secret {
    pub api_version: Option<String>,
    pub data: Option<BTreeMap<String, ByteString>>,
    pub kind: Option<String>,
    pub metadata: Option<ObjectMeta>,
    pub string_data: Option<BTreeMap<String, String>>,
    pub type_: Option<String>,
}

Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.

Fields

APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4

Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API.

Used to facilitate programmatic handling of secret data.

Methods

impl Secret
[src]

create a Secret

Use CreateCoreV1NamespacedSecretResponse to parse the HTTP response.

impl Secret
[src]

delete collection of Secret

Use DeleteCoreV1CollectionNamespacedSecretResponse to parse the HTTP response.

impl Secret
[src]

delete a Secret

Use DeleteCoreV1NamespacedSecretResponse to parse the HTTP response.

impl Secret
[src]

list or watch objects of kind Secret

Use ListCoreV1NamespacedSecretResponse to parse the HTTP response.

impl Secret
[src]

list or watch objects of kind Secret

Use ListCoreV1SecretForAllNamespacesResponse to parse the HTTP response.

impl Secret
[src]

partially update the specified Secret

Use PatchCoreV1NamespacedSecretResponse to parse the HTTP response.

impl Secret
[src]

read the specified Secret

Use ReadCoreV1NamespacedSecretResponse to parse the HTTP response.

impl Secret
[src]

replace the specified Secret

Use ReplaceCoreV1NamespacedSecretResponse to parse the HTTP response.

impl Secret
[src]

watch changes to an object of kind Secret

Use WatchCoreV1NamespacedSecretResponse to parse the HTTP response.

impl Secret
[src]

watch individual changes to a list of Secret

Use WatchCoreV1NamespacedSecretListResponse to parse the HTTP response.

impl Secret
[src]

watch individual changes to a list of Secret

Use WatchCoreV1SecretListForAllNamespacesResponse to parse the HTTP response.

Trait Implementations

impl Clone for Secret
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Secret
[src]

Formats the value using the given formatter. Read more

impl Default for Secret
[src]

Returns the "default value" for a type. Read more

impl PartialEq for Secret
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'de> Deserialize<'de> for Secret
[src]

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for Secret
[src]

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

impl Send for Secret

impl Sync for Secret