Kubegen.K8sClient.Core.V1.ConfigMap (kubegen v0.1.3)

Copy Markdown View Source

Summary

Functions

Server-Side applies the given resources of kind configmaps in apiVersion v1.

Create a resource of kind configmaps in apiVersion v1.

Deletes the resource of kind configmaps in apiVersion v1 with name in namespace.

Deletes all the resources of kind configmaps in apiVersion v1 in namespace.

Get the resource of kind configmaps in apiVersion v1 by name.

Patches the given resource of kind configmaps in apiVersion v1 with the given json_patch.

List resources of kind configmaps in apiVersion v1 in all namespaces.

List resources of kind configmaps in apiVersion v1 in all namespaces.

List resources of kind configmaps in apiVersion v1 in the given namespace.

Patches the given resource of kind configmaps in apiVersion v1 with the given merge_patch.

Updates the given resource of kind configmaps in apiVersion v1.

Wait until the given callback resolves to true for a resource of kind configmaps in apiVersion v1.

Watches for events on all resources of kind configmaps in apiVersion v1 in all namespaces.

Watches for events on all resources of kind configmaps in apiVersion v1 in all namespaces.

Watches for events on all resources of kind configmaps in apiVersion v1 in the given namespace.

Watches for events on a single resource of kind configmaps in apiVersion v1 in the given namespace.

Functions

apply(resource, field_manager \\ "Elixir", force \\ true)

@spec apply(resource :: map(), field_manager :: String.t(), force :: boolean()) ::
  Kubereq.response()

Server-Side applies the given resources of kind configmaps in apiVersion v1.

In order to understand field_manager and force, refer to the Kubernetes documentation about Field Management

create(resource)

@spec create(resource :: map()) :: Kubereq.response()

Create a resource of kind configmaps in apiVersion v1.

delete(namespace, name)

@spec delete(namespace :: String.t(), name :: Kubereq.namespace()) ::
  Kubereq.response()

Deletes the resource of kind configmaps in apiVersion v1 with name in namespace.

delete_all(namespace, opts \\ [])

@spec delete_all(namespace :: Kubereq.namespace(), opts :: keyword()) ::
  Kubereq.response()

Deletes all the resources of kind configmaps in apiVersion v1 in namespace.

Options

get(namespace, name)

@spec get(namespace :: Kubereq.namespace(), name :: String.t()) :: Kubereq.response()

Get the resource of kind configmaps in apiVersion v1 by name.

json_patch(name, namespace, json_patch)

@spec json_patch(
  name :: String.t(),
  namespace :: Kubereq.namespace(),
  json_patch :: map()
) ::
  Kubereq.response()

Patches the given resource of kind configmaps in apiVersion v1 with the given json_patch.

list()

@spec list() :: Kubereq.response()

List resources of kind configmaps in apiVersion v1 in all namespaces.

list(opts)

@spec list(opts :: Keyword.t()) :: Kubereq.response()
@spec list(namespace :: Kubereq.namespace()) :: Kubereq.response()

List resources of kind configmaps in apiVersion v1 in all namespaces.

Options

list(namespace, opts \\ [])

@spec list(namespace :: Kubereq.namespace(), opts :: Keyword.t()) ::
  Kubereq.response()

List resources of kind configmaps in apiVersion v1 in the given namespace.

Options

merge_patch(name, namespace, merge_patch)

@spec merge_patch(
  name :: String.t(),
  namespace :: Kubereq.namespace(),
  merge_patch :: String.t()
) :: Kubereq.response()

Patches the given resource of kind configmaps in apiVersion v1 with the given merge_patch.

update(resource)

@spec update(resource :: map()) :: Kubereq.response()

Updates the given resource of kind configmaps in apiVersion v1.

wait_until(namespace, name, callback, timeout \\ 10000)

@spec wait_until(
  namespace :: Kubereq.namespace(),
  name :: String.t(),
  callback :: Kubereq.wait_until_callback(),
  timeout :: integer()
) :: Kubereq.wait_until_response()

Wait until the given callback resolves to true for a resource of kind configmaps in apiVersion v1.

Callback Args and Result

The given callback is called with the resource as argument. If the resource was deleted, :deleted is passed as argument. The callback should return a boolean.

Options

  • timeout - Timeout in ms after function terminates with {:error, :timeout}. Defaults to 10_000.

watch()

@spec watch() :: Kubereq.watch_response()

Watches for events on all resources of kind configmaps in apiVersion v1 in all namespaces.

watch(opts)

@spec watch(opts :: keyword()) :: Kubereq.watch_response()

Watches for events on all resources of kind configmaps in apiVersion v1 in all namespaces.

Options

  • :resource_version - If given, starts to stream from the given resourceVersion of the resource list. Otherwise starts streaming from HEAD.
  • :stream_to - If set to a pid, streams events to the given pid. If set to {pid, ref}, the messages are in the form {ref, event}.
  • :field_selectors - A list of field selectors. See Kubereq.Step.FieldSelector for more infos.
  • :label_selectors - A list of field selectors. See Kubereq.Step.LabelSelector for more infos.

watch(namespace, opts \\ [])

@spec watch(namespace :: Kubereq.namespace(), opts :: keyword()) ::
  Kubereq.watch_response()

Watches for events on all resources of kind configmaps in apiVersion v1 in the given namespace.

Options

  • :resource_version - If given, starts to stream from the given resourceVersion of the resource list. Otherwise starts streaming from HEAD.
  • :stream_to - If set to a pid, streams events to the given pid. If set to {pid, ref}, the messages are in the form {ref, event}.
  • :field_selectors - A list of field selectors. See Kubereq.Step.FieldSelector for more infos.
  • :label_selectors - A list of field selectors. See Kubereq.Step.LabelSelector for more infos.

watch_single(namespace, name, opts \\ [])

@spec watch_single(namespace :: binary(), name :: binary(), opts :: keyword()) ::
  Kubereq.watch_response()

Watches for events on a single resource of kind configmaps in apiVersion v1 in the given namespace.

Options

  • :resource_version - If given, starts to stream from the given resourceVersion of the resource list. Otherwise starts streaming from HEAD.
  • :stream_to - If set to a pid, streams events to the given pid. If set to {pid, ref}, the messages are in the form {ref, event}.
  • :field_selectors - A list of field selectors. See Kubereq.Step.FieldSelector for more infos.
  • :label_selectors - A list of field selectors. See Kubereq.Step.LabelSelector for more infos.