Opsmaru.Incus.Files (opsmaru_incus v0.1.0)

Copy Markdown View Source

Native file/directory and backup handoff with host-owned bounded binary sources/sinks.

Summary

Functions

backup_download(client, instance, name, sink)

backup_import(client, source, opts \\ [])

backup_stream(client, resource, body, sink)

Direct native backup POST to a binary sink; resource is an instance, volume or bucket tuple.

bucket_backup_download(client, pool, name, backup, sink)

bucket_import(client, pool, source, opts \\ [])

create(client, instance, path, source, opts \\ [])

head(client, instance, path)

Native HEAD /1.0/instances/{name}/files?path=...: the file's metadata from the response headers (uid, gid, mode, type, modification time and, for a file, its size), with no body. The pinned client has no HEAD method. Returns {:ok, %Opsmaru.Incus.Transfer{result: metadata}}.

read(client, instance, path, sink)

volume_backup_download(client, pool, type, name, backup, sink)

volume_create(client, pool, type, name, path, source, opts \\ [])

volume_delete(client, pool, type, name, path)

volume_head(client, pool, type, name, path)

Native HEAD of a storage volume file; see head/3.

volume_import(client, pool, source, opts \\ [])

volume_read(client, pool, type, name, path, sink)