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