ExIncus. StoragePools
(ex_incus v1.0.0)
Copy Markdown
Manage storage pools. For volumes inside a pool see
ExIncus.StorageVolumes.
Summary
Functions
Creates a storage pool from a StoragePoolsPost params map, e.g.
%{"name" => "fast", "driver" => "zfs", "config" => %{...}}.
Deletes a storage pool.
Fetches a single storage pool.
Lists storage pools (full objects by default).
Partially updates the pool configuration (PATCH).
Fetches usage information for a pool.
Replaces the pool configuration (PUT).
Types
@type result() :: {:ok, term()} | {:error, ExIncus.Error.t()}
Functions
@spec create(ExIncus.Client.t(), map(), keyword()) :: result()
Creates a storage pool from a StoragePoolsPost params map, e.g.
%{"name" => "fast", "driver" => "zfs", "config" => %{...}}.
@spec delete(ExIncus.Client.t(), String.t(), keyword()) :: result()
Deletes a storage pool.
@spec get(ExIncus.Client.t(), String.t(), keyword()) :: result()
Fetches a single storage pool.
@spec list( ExIncus.Client.t(), keyword() ) :: result()
Lists storage pools (full objects by default).
@spec patch(ExIncus.Client.t(), String.t(), map(), keyword()) :: result()
Partially updates the pool configuration (PATCH).
@spec resources(ExIncus.Client.t(), String.t(), keyword()) :: result()
Fetches usage information for a pool.
@spec update(ExIncus.Client.t(), String.t(), map(), keyword()) :: result()
Replaces the pool configuration (PUT).