# Packages
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
AllowedUnprivilegedOnlyMap checks that root user is not mapped into instance.
BackupLoadByName load an instance backup from the database.
CreateInternal creates an instance record and storage volume record in the database and sets up devices.
DeviceNextInterfaceHWAddr generates a random MAC address.
FilterFull returns a filtered list of full instances that match the given clauses.
IsSameLogicalInstance returns true if the supplied Instance and db.Instance have the same project and name or if they have the same volatile.uuid values.
LoadByID loads an instance by ID.
LoadByProjectAndName loads an instance by project and name.
LoadFromBackup loads from a mounted instance's backup file.
LoadInstanceDatabaseObject loads a db.Instance object, accounting for snapshots.
LoadNodeAll loads all instances on this server.
MoveTemporaryName returns a name derived from the instance's volatile.uuid, to use when moving an instance across pools or cluster members which can be used for the naming the temporary copy before deleting the original instance and renaming the copy to the original name.
NextSnapshotName finds the next snapshot for an instance.
ResolveImage takes an instance source and returns a hash suitable for instance creation or download.
SnapshotProtobufToInstanceArgs converts a migration snapshot record to DB instance record format.
SnapshotToProtobuf converts a snapshot record to a migration snapshot record.
SuitableArchitectures returns a slice of architecture ids based on an instance create request.
ValidConfig validates an instance's config.
ValidName validates an instance name.
# Constants
Possible values for the protocol argument of the Instance.Console() method.
Possible values for the protocol argument of the Instance.Console() method.
HookStart hook used when instance has started.
HookStop hook used when instance has stopped.
HookStopNS hook used when instance has stopped but before namespaces have been destroyed.
PowerStateRunning represents the power state stored when an instance is running.
PowerStateStopped represents the power state stored when an instance is stopped.
TemplateTriggerCopy for when an instance is copied.
TemplateTriggerCreate for when an instance is created.
TemplateTriggerRename for when an instance is renamed.
# Variables
Create is linked from instance/drivers.create to allow difference instance types to be created.
ErrNotImplemented is the "Not implemented" error.
Load is linked from instance/drivers.load to allow different instance types to be loaded.
ValidDevices is linked from instance/drivers.validDevices to validate device config.
# Structs
CriuMigrationArgs arguments for CRIU migration.
Info represents information about an instance driver.
MigrateArgs represent arguments for instance migration send and receive.
MigrateReceiveArgs represent arguments for instance migration receive.
MigrateSendArgs represent arguments for instance migration send.
# Interfaces
Cmd represents a local or remote command being run.
ConfigReader is used to read instance config.
Container interface is for container specific functions.
Instance interface.
VM interface is for VM specific functions.
# Type aliases
TemplateTrigger trigger name.