package kubecaml

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

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

type t
val to_yojson : t -> Yojson.Safe.t
val make : ?type_:string -> ?string_data:Object.Of_strings.t -> ?metadata:Kubernetes.Definitions.Apimachinery.Pkg.Apis.Meta.V1.Object_meta.t -> ?kind:string -> ?data:Object.Of_strings.t -> ?api_version:string -> unit -> t
val api_version : t -> string option

Api_version 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

val data : t -> Object.Of_strings.t option

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

val kind : t -> string option

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 Camel_case. 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

val string_data : t -> Object.Of_strings.t option

string_data 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.

val type_ : t -> string option

Used to facilitate programmatic handling of secret data.

module Object : Object.S with type value := t
OCaml

Innovation. Community. Security.