This module contains functions for interacting with RabbitMQ policies.
Summary
Functions
Delete a policy.
Get an individual policy.
Get a list of all policies.
Get a list of policies in a virtual host.
Create or update a policy.
Functions
@spec delete_policy( client :: Tesla.Client.t(), vhost :: String.t(), name :: String.t() ) :: {:ok, Tesla.Env.t()} | {:error, term()}
Delete a policy.
@spec get_policy(client :: Tesla.Client.t(), vhost :: String.t(), name :: String.t()) :: {:ok, Tesla.Env.t()} | {:error, term()}
Get an individual policy.
@spec list_policies(client :: Tesla.Client.t()) :: {:ok, Tesla.Env.t()} | {:error, term()}
Get a list of all policies.
@spec list_vhost_policies(client :: Tesla.Client.t(), vhost :: String.t()) :: {:ok, Tesla.Env.t()} | {:error, term()}
Get a list of policies in a virtual host.
@spec put_policy( client :: Tesla.Client.t(), vhost :: String.t(), name :: String.t(), opts :: Keyword.t() ) :: {:ok, Tesla.Env.t()} | no_return()
Create or update a policy.
:pattern(String.t/0) - Required. A regular expression matching resource names to apply the policy to.:definition(map ofString.t/0keys andterm/0values) - Required. The policy definition as a map of policy keys and values.:priority(non_neg_integer/0) - Policy priority. Higher value means higher priority. The default value is0.:apply_to- What type of resources the policy applies to. The default value is:all.