# Packages
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
BucketDBCreate creates a bucket in the database.
BucketDBDelete deletes a bucket from the database.
BucketDBGet loads a bucket from the database.
BucketKeysDBGet loads the keys for a bucket from the database.
CompareSnapshots returns a list of snapshot indexes (from the associated input slices) to sync from the source and to delete from the target respectively.
ConfigDiff returns a diff of the provided configs.
CreateContainerMountpoint creates the provided container mountpoint and symlink.
CreateSnapshotMountpoint creates the provided container snapshot mountpoint and symlink.
FallbackMigrationType returns the fallback migration transport to use based on volume content type.
GetImageMountPoint returns the mountpoint of the given image.
GetSnapshotMountPoint returns the mountpoint of the given container snapshot.
GetStoragePoolMountPoint returns the mountpoint of the given pool.
GetStoragePoolVolumeSnapshotMountPoint returns the mountpoint of the given pool volume snapshot.
ImageUnpack unpacks a filesystem image into the destination path.
InstanceContentType returns the instance's content type.
InstanceDiskBlockSize returns the block device size for the instance's disk.
InstanceImportingFilePath returns the file path used to indicate an instance import is in progress.
InstanceMount mounts an instance's storage volume (if not already mounted).
InstancePath returns the directory of an instance or snapshot.
InstanceTypeToVolumeType converts instance type to storage driver volume type.
InstanceUnmount unmounts an instance's storage volume (if not in use).
IsAvailable checks if a pool is available.
LoadByInstance retrieves the pool from the database using the instance's pool.
LoadByName retrieves the pool from the database by its name and returns a Pool interface.
LoadByRecord instantiates a pool from its record and returns a Pool interface.
LoadByType loads a network by driver type.
NewTemporary instantiates a temporary pool from config supplied and returns a Pool interface.
Patch applies specified patch to all storage pools.
RenderSnapshotUsage can be used as an optional argument to Instance.Render() to return snapshot usage.
UsedBy returns list of API resources using storage pool.
VolumeContentTypeNameToContentType converts volume content type string internal code.
VolumeContentTypeToDBContentType converts volume type to internal code.
VolumeDBContentTypeToContentType converts internal content type DB code to driver representation.
VolumeDBCreate creates a volume in the database.
VolumeDBDelete deletes a volume from the database.
VolumeDBGet loads a volume from the database.
VolumeDBSnapshotsGet loads a list of snapshots volumes from the database.
VolumeDBTypeToType converts internal volume type DB code to storage driver volume type.
VolumeTypeNameToDBType converts a volume type string to internal volume type DB code.
VolumeTypeToAPIInstanceType converts storage driver volume type to API instance type type.
VolumeTypeToDBType converts volume type to internal volume type DB code.
VolumeUsedByDaemon indicates whether the volume is used by daemon storage.
VolumeUsedByExclusiveRemoteInstancesWithProfiles checks if custom volume is exclusively attached to a remote instance.
VolumeUsedByInstanceDevices finds instances using a volume (either directly or via their expanded profiles if expandDevices is true) and passes them to instanceFunc for evaluation.
VolumeUsedByProfileDevices finds profiles using a volume and passes them to profileFunc for evaluation.
# Constants
PoolIDTemporary is used to indicate a temporary pool instance that is not in the database.
# Variables
ErrBackupSnapshotsMismatch is the "Backup snapshots mismatch" error.
ErrNilValue is the "Nil value provided" error.
# Structs
ComparableSnapshot is used when comparing snapshots on different pools to see whether they differ.
MountInfo represents info about the result of a mount operation.
VolumeUsage contains the used and total size of a volume.