_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c176400
// UpdateContainer updates the container definition
c176401
// RenameContainer requests that LXD renames the container
c176402
// ExecContainer requests that LXD spawns a command inside the container
c176403
// GetContainerFile retrieves the provided path from the container
c176404
// CreateContainerFile tells LXD to create a file in the container
c176405
// DeleteContainerFile deletes a file in the container
c176406
// GetContainerSnapshotNames returns a list of snapshot names for the container
c176407
// GetContainerSnapshots returns a list of snapshots for the container
c176408
// GetContainerSnapshot returns a Snapshot struct for the provided container and snapshot names
c176409
// CreateContainerSnapshot requests that LXD creates a new snapshot for the container
c176410
// MigrateContainerSnapshot requests that LXD prepares for a snapshot migration
c176411
// UpdateContainerSnapshot requests that LXD updates the container snapshot
c176412
// GetContainerState returns a ContainerState entry for the provided container name
c176413
// UpdateContainerState updates the container to match the requested state
c176414
// GetContainerLogfiles returns a list of logfiles for the container
c176415
// GetContainerLogfile returns the content of the requested logfile // // Note that it's the caller's responsibility to close the returned ReadCloser
c176416
// GetContainerMetadata returns container metadata.
c176417
// SetContainerMetadata sets the content of the container metadata file.
c176418
// GetContainerTemplateFiles returns the list of names of template files for a container.
c176419
// CreateContainerTemplateFile creates an a template for a container.
c176420
// DeleteContainerTemplateFile deletes a template file for a container.
c176421
// ConsoleContainer requests that LXD attaches to the console device of a container.
c176422
// GetContainerConsoleLog requests that LXD attaches to the console device of a container. // // Note that it's the caller's responsibility to close the returned ReadCloser
c176423
// DeleteContainerConsoleLog deletes the requested container's console log
c176424
// GetContainerBackups returns a list of backups for the container
c176425
// GetContainerBackup returns a Backup struct for the provided container and backup names
c176426
// CreateContainerBackup requests that LXD creates a new backup for the container
c176427
// RenameContainerBackup requests that LXD renames the backup
c176428
// DeleteContainerBackup requests that LXD deletes the container backup
c176429
// GetContainerBackupFile requests the container backup content
c176430
// RsyncSend sets up the sending half of an rsync, to recursively send the // directory pointed to by path over the websocket.
c176431
// Return the names of all available patches.
c176432
// Patches begin here
c176433
// The lvm.thinpool_name and lvm.vg_name config keys are node-specific and need // to be linked to nodes.
c176434
// GetHTTPClient returns the http client used for the connection. This can be used to set custom http options.
c176435
// Do performs a Request, using macaroon authentication if set.
c176436
// RawQuery allows directly querying the LXD API // // This should only be used by internal LXD tools.
c176437
// RawWebsocket allows directly connection to LXD API websockets // // This should only be used by internal LXD tools.
c176438
// RawOperation allows direct querying of a LXD API endpoint returning // background operations.
c176439
// ProfileToAPI is a convenience to convert a Profile db struct into // an API profile struct.
c176440
// Profiles returns a string list of profiles.
c176441
// ProfileGet returns the profile with the given name.
c176442
// ProfilesGet returns the profiles with the given names in the given project.
c176443
// ProfileConfig gets the profile configuration map from the DB.
c176444
// ProfileConfigClear resets the config of the profile with the given ID.
c176445
// ProfileConfigAdd adds a config to the profile with the given ID.
c176446
// ProfileContainersGet gets the names of the containers associated with the // profile with the given name.
c176447
// ProfileCleanupLeftover removes unreferenced profiles.
c176448
// ProfilesExpandConfig expands the given container config with the config // values of the given profiles.
c176449
// ProfilesExpandDevices expands the given container devices with the devices // defined in the given profiles.
c176450
// Server handling functions // GetServer returns the server status as a Server struct
c176451
// UpdateServer updates the server status to match the provided Server struct
c176452
// HasExtension returns true if the server supports a given API extension
c176453
// GetServerResources returns the resources available to a given LXD server
c176454
// UseProject returns a client that will use a specific project.
c176455
// Opens the node-level database with the correct parameters for LXD.
c176456
// Rebalance the raft cluster, trying to see if we have a spare online node // that we can promote to database node if we are below membershipMaxRaftNodes. // // If there's such spare node, return its address as well as the new list of // raft nodes.
c176457
// Promote makes a LXD node which is not a database node, become part of the // raft cluster.
c176458
// Purge removes a node entirely from the cluster database.
c176459
// List the nodes of the cluster.
c176460
// Count is a convenience for checking the current number of nodes in the // cluster.
c176461
// Enabled is a convenience that returns true if clustering is enabled on this // node.
c176462
// Check that node-related preconditions are met for bootstrapping or joining a // cluster.
c176463
// Check that cluster-related preconditions are met for bootstrapping or // joining a cluster.
c176464
// Check that cluster-related preconditions are met for accepting a new node.
c176465
// Check that cluster-related preconditions are met for leaving a cluster.
c176466
// Check that there is no left-over cluster certificate in the LXD var dir of // this node.
c176467
// ConfigLoad loads a new Config object with the current node-local configuration // values fetched from the database. An optional list of config value triggers // can be passed, each config key must have at most one trigger.
c176468
// Replace the current configuration with the given values.
c176469
// Patch changes only the configuration keys in the given map.
c176470
// HTTPSAddress is a convenience for loading the node configuration and // returning the value of core.https_address.
c176471
// CertificatesGet returns all certificates from the DB as CertBaseInfo objects.
c176472
// CertificateGet gets an CertBaseInfo object from the database. // The argument fingerprint will be queried with a LIKE query, means you can // pass a shortform and will get the full fingerprint. // There can never be more than one image with a given fingerprint, as it is // enforced by a UNIQUE constraint in the sche...
c176473
// CertSave stores a CertBaseInfo object in the db, // it will ignore the ID field from the CertInfo.
c176474
// CertDelete deletes a certificate from the db.
c176475
// CertUpdate updates the certificate with the given fingerprint.
c176476
// Create a new net.Listener bound to the unix socket of the devlxd endpoint.
c176477
// Servers returns the servers that are currently part of the cluster. // // If this raft instance is not the leader, an error is returned.
c176478
// Shutdown raft and any raft-related resource we have instantiated.
c176479
// Create a network raft transport that will handle connections using a // rafthttp.Handler.
c176480
// Create a base raft configuration tweaked for a network with the given latency measure.
c176481
// Helper to bootstrap the raft cluster if needed.
c176482
// CPUResource returns the system CPU information
c176483
// MemoryResource returns the system memory information
c176484
// GetOperationUUIDs returns a list of operation uuids
c176485
// GetOperations returns a list of Operation struct
c176486
// GetOperation returns an Operation entry for the provided uuid
c176487
// GetOperationWebsocket returns a websocket connection for the provided operation
c176488
// Useful functions for unreliable backends
c176489
// Detect whether LXD already uses the given storage pool.
c176490
// ProjectURIs returns all available project URIs.
c176491
// ProjectList returns all available projects.
c176492
// ProjectGet returns the project with the given key.
c176493
// ProjectExists checks if a project with the given key exists.
c176494
// ProjectCreate adds a new project to the database.
c176495
// ProjectUsedByRef returns entities used by projects.
c176496
// ProjectRename renames the project matching the given key parameters.
c176497
// ProjectDelete deletes the project matching the given key parameters.
c176498
// PasswordCheck validates the provided password against the encoded secret
c176499
// LoadCert reads the LXD server certificate from the given var dir. // // If a cluster certificate is found it will be loaded instead.