View Source K8s.Conn.PKI (k8s v1.1.1)
Retrieves information from certificates
Link to this section Summary
Functions
Decodes the certificate from a base64 encoded string
Reads the certificate from PEM file or base64 encoding
Reads the certificate from a PEM file
Decodes private key from a base64 encoded string
Reads private key from a PEM file
Link to this section Types
Specs
Link to this section Functions
Specs
cert_from_base64(binary()) :: {:ok, binary()} | {:enoent | K8s.Conn.Error.t()}
Decodes the certificate from a base64 encoded string
Specs
cert_from_map(map(), binary()) :: {:error, :enoent | K8s.Conn.Error.t()} | {:ok, binary() | nil}
Reads the certificate from PEM file or base64 encoding
Specs
cert_from_pem(String.t()) :: {:ok, binary()} | {:error, :enoent | K8s.Conn.Error.t()}
Reads the certificate from a PEM file
Specs
private_key_from_base64(String.t()) :: {:ok, private_key_data_t()} | {:error, K8s.Conn.Error.t()}
Decodes private key from a base64 encoded string
Specs
private_key_from_pem(String.t()) :: {:ok, private_key_data_t()} | {:error, :enoent | K8s.Conn.Error.t()}
Reads private key from a PEM file