K8s.Conn.PKI (k8s v2.7.0)

View Source

Retrieves information from certificates

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

Types

private_key_data_t()

@type private_key_data_t() :: {atom(), binary()}

Functions

cert_from_base64(data)

@spec cert_from_base64(binary()) :: {:ok, binary()} | {:enoent | K8s.Conn.Error.t()}

Decodes the certificate from a base64 encoded string

cert_from_map(arg1, base_path)

@spec cert_from_map(map(), binary()) ::
  {:error, :enoent | K8s.Conn.Error.t()} | {:ok, binary() | nil}

Reads the certificate from PEM file or base64 encoding

cert_from_pem(file)

@spec cert_from_pem(String.t()) ::
  {:ok, binary()} | {:error, :enoent | K8s.Conn.Error.t()}

Reads the certificate from a PEM file

private_key_from_base64(encoded_key)

@spec private_key_from_base64(String.t()) ::
  {:ok, private_key_data_t()} | {:error, K8s.Conn.Error.t()}

Decodes private key from a base64 encoded string

private_key_from_pem(file)

@spec private_key_from_pem(String.t()) ::
  {:ok, private_key_data_t()} | {:error, :enoent | K8s.Conn.Error.t()}

Reads private key from a PEM file