_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c176800
test
// StoragePoolNodeVolumesGetType returns all storage volumes attached to a // given storage pool of a given volume type, on the current node.
{ "resource": "" }
c176801
test
// StoragePoolVolumeGetType returns a single storage volume attached to a // given storage pool of a given type, on the node with the given ID.
{ "resource": "" }
c176802
test
// StoragePoolNodeVolumeGetType gets a single storage volume attached to a // given storage pool of a given type, on the current node.
{ "resource": "" }
c176803
test
// StoragePoolNodeVolumeGetTypeByProject gets a single storage volume attached to a // given storage pool of a given type, on the current node in the given project.
{ "resource": "" }
c176804
test
// StoragePoolVolumeUpdate updates the storage volume attached to a given storage // pool.
{ "resource": "" }
c176805
test
// StoragePoolVolumeDelete deletes the storage volume attached to a given storage // pool.
{ "resource": "" }
c176806
test
// StoragePoolVolumeRename renames the storage volume attached to a given storage pool.
{ "resource": "" }
c176807
test
// This a convenience to replicate a certain volume change to all nodes if the // underlying driver is ceph.
{ "resource": "" }
c176808
test
// StoragePoolVolumeCreate creates a new storage volume attached to a given // storage pool.
{ "resource": "" }
c176809
test
// StoragePoolVolumeGetTypeID returns the ID of a storage volume on a given // storage pool of a given storage volume type, on the given node.
{ "resource": "" }
c176810
test
// StoragePoolNodeVolumeGetTypeID get the ID of a storage volume on a given // storage pool of a given storage volume type, on the current node.
{ "resource": "" }
c176811
test
// StoragePoolVolumeTypeToName converts a volume integer type code to its // human-readable name.
{ "resource": "" }
c176812
test
// DevicesAdd adds a new device.
{ "resource": "" }
c176813
test
// Devices returns the devices matching the given filters.
{ "resource": "" }
c176814
test
// Patches returns the names of all patches currently applied on this node.
{ "resource": "" }
c176815
test
// PatchesMarkApplied marks the patch with the given name as applied on this node.
{ "resource": "" }
c176816
test
// Return Go type of the given database entity.
{ "resource": "" }
c176817
test
// Return the name of the Post struct for the given entity.
{ "resource": "" }
c176818
test
// Return the name of the global variable holding the registration code for // the given kind of statement aganst the given entity.
{ "resource": "" }
c176819
test
// Return the code for a "dest" function, to be passed as parameter to // query.SelectObjects in order to scan a single row.
{ "resource": "" }
c176820
test
// CompareConfigs compares two config maps and returns an error if they differ.
{ "resource": "" }
c176821
test
// CopyConfig creates a new map with a copy of the given config.
{ "resource": "" }
c176822
test
// NewNotifier builds a Notifier that can be used to notify other peers using // the given policy.
{ "resource": "" }
c176823
test
// Events starts a task that continuously monitors the list of cluster nodes and // maintains a pool of websocket connections against all of them, in order to // get notified about events. // // Whenever an event is received the given callback is invoked.
{ "resource": "" }
c176824
test
// Establish a client connection to get events from the given node.
{ "resource": "" }
c176825
test
// Initialize a full storage interface.
{ "resource": "" }
c176826
test
// getProfileContent generates the apparmor profile template from the given // container. This includes the stock lxc includes as well as stuff from // raw.apparmor.
{ "resource": "" }
c176827
test
// Ensure that the container's policy is loaded into the kernel so the // container can boot.
{ "resource": "" }
c176828
test
// Ensure that the container's policy namespace is unloaded to free kernel // memory. This does not delete the policy from disk or cache.
{ "resource": "" }
c176829
test
// Parse the profile without loading it into the kernel.
{ "resource": "" }
c176830
test
// getSystemHandler on Windows does nothing.
{ "resource": "" }
c176831
test
// NotifyUpgradeCompleted sends a notification to all other nodes in the // cluster that any possible pending database update has been applied, and any // nodes which was waiting for this node to be upgraded should re-check if it's // okay to move forward.
{ "resource": "" }
c176832
test
// KeepUpdated is a task that continuously monitor this node's version to see it // it's out of date with respect to other nodes. In the node is out of date, // and the LXD_CLUSTER_UPDATE environment variable is set, then the task // executes the executable that the variable is pointing at.
{ "resource": "" }
c176833
test
// Check this node's version and possibly run LXD_CLUSTER_UPDATE.
{ "resource": "" }
c176834
test
// NewServer returns a new RBAC server instance.
{ "resource": "" }
c176835
test
// StartStatusCheck starts a periodic status checker.
{ "resource": "" }
c176836
test
// SyncProjects updates the list of projects in RBAC
{ "resource": "" }
c176837
test
// AddProject adds a new project resource to RBAC.
{ "resource": "" }
c176838
test
// DeleteProject adds a new project resource to RBAC.
{ "resource": "" }
c176839
test
// RenameProject renames an existing project resource in RBAC.
{ "resource": "" }
c176840
test
// IsAdmin returns whether or not the provided user is an admin.
{ "resource": "" }
c176841
test
// HasPermission returns whether or not the user has the permission to perform a certain task.
{ "resource": "" }
c176842
test
// Send an rsync stream of a path over a websocket
{ "resource": "" }
c176843
test
// Spawn the rsync process
{ "resource": "" }
c176844
test
// Return a TLS configuration suitable for establishing inter-node network // connections using the cluster certificate.
{ "resource": "" }
c176845
test
// Return true if the given request is presenting the given cluster certificate.
{ "resource": "" }
c176846
test
// Notification that a container was moved. // // At the moment it's used for ceph-based containers, where the target node needs // to create the appropriate mount points.
{ "resource": "" }
c176847
test
// Used after to create the appropriate mounts point after a container has been // moved.
{ "resource": "" }
c176848
test
// Contains checks if a given device exists in the set and if it's // identical to that provided
{ "resource": "" }
c176849
test
// Update returns the difference between two sets
{ "resource": "" }
c176850
test
// DeviceNames returns the name of all devices in the set, sorted properly
{ "resource": "" }
c176851
test
// Infof logs at the INFO log level using a standard printf format string
{ "resource": "" }
c176852
test
// Debugf logs at the DEBUG log level using a standard printf format string
{ "resource": "" }
c176853
test
// Warnf logs at the WARNING log level using a standard printf format string
{ "resource": "" }
c176854
test
// Errorf logs at the ERROR log level using a standard printf format string
{ "resource": "" }
c176855
test
// Critf logs at the CRITICAL log level using a standard printf format string
{ "resource": "" }
c176856
test
// Forward to the local events dispatcher an event received from another node .
{ "resource": "" }
c176857
test
// StorageProgressReader reports the read progress.
{ "resource": "" }
c176858
test
// StorageProgressWriter reports the write progress.
{ "resource": "" }
c176859
test
// GetLSBRelease returns a map with Linux distribution information
{ "resource": "" }
c176860
test
// Reset an auto-generated source file, writing a new empty file header.
{ "resource": "" }
c176861
test
// Append a code snippet to a file.
{ "resource": "" }
c176862
test
// ContainerToArgs is a convenience to convert the new Container db struct into // the legacy ContainerArgs.
{ "resource": "" }
c176863
test
// ContainerNames returns the names of all containers the given project.
{ "resource": "" }
c176864
test
// ContainerNodeAddress returns the address of the node hosting the container // with the given name in the given project. // // It returns the empty string if the container is hosted on this node.
{ "resource": "" }
c176865
test
// ContainersListByNodeAddress returns the names of all containers grouped by // cluster node address. // // The node address of containers running on the local node is set to the empty // string, to distinguish it from remote nodes. // // Containers whose node is down are addeded to the special address "0.0.0.0".
{ "resource": "" }
c176866
test
// ContainerListExpanded loads all containers across all projects and expands // their config and devices using the profiles they are associated to.
{ "resource": "" }
c176867
test
// ContainersByNodeName returns a map associating each container to the name of // its node.
{ "resource": "" }
c176868
test
// SnapshotIDsAndNames returns a map of snapshot IDs to snapshot names for the // container with the given name.
{ "resource": "" }
c176869
test
// ContainerNodeList returns all container objects on the local node.
{ "resource": "" }
c176870
test
// ContainerNodeProjectList returns all container objects on the local node within the given project.
{ "resource": "" }
c176871
test
// ContainerRemove removes the container with the given name from the database.
{ "resource": "" }
c176872
test
// ContainerProjectAndName returns the project and the name of the container // with the given ID.
{ "resource": "" }
c176873
test
// ContainerConfigClear removes any config associated with the container with // the given ID.
{ "resource": "" }
c176874
test
// ContainerConfigGet returns the value of the given key in the configuration // of the container with the given ID.
{ "resource": "" }
c176875
test
// ContainerConfigRemove removes the given key from the config of the container // with the given ID.
{ "resource": "" }
c176876
test
// ContainerSetStateful toggles the stateful flag of the container with the // given ID.
{ "resource": "" }
c176877
test
// ContainerProfilesInsert associates the container with the given ID with the // profiles with the given names in the given project.
{ "resource": "" }
c176878
test
// ContainerProfiles returns a list of profiles for a given container ID.
{ "resource": "" }
c176879
test
// ContainerConfig gets the container configuration map from the DB
{ "resource": "" }
c176880
test
// ContainerSetState sets the the power state of the container with the given ID.
{ "resource": "" }
c176881
test
// ContainerUpdate updates the description, architecture and ephemeral flag of // the container with the given ID.
{ "resource": "" }
c176882
test
// ContainerLastUsedUpdate updates the last_use_date field of the container // with the given ID.
{ "resource": "" }
c176883
test
// ContainerGetSnapshots returns the names of all snapshots of the container // in the given project with the given name.
{ "resource": "" }
c176884
test
// ContainerGetSnapshotsFull returns all container objects for snapshots of a given container
{ "resource": "" }
c176885
test
// ContainerNextSnapshot returns the index the next snapshot of the container // with the given name and pattern should have.
{ "resource": "" }
c176886
test
// ContainerPool returns the storage pool of a given container.
{ "resource": "" }
c176887
test
// ContainerGetBackup returns the backup with the given name.
{ "resource": "" }
c176888
test
// ContainerGetBackups returns the names of all backups of the container // with the given name.
{ "resource": "" }
c176889
test
// ContainerBackupCreate creates a new backup
{ "resource": "" }
c176890
test
// ContainerBackupRemove removes the container backup with the given name from // the database.
{ "resource": "" }
c176891
test
// ContainerBackupRename renames a container backup from the given current name // to the new one.
{ "resource": "" }
c176892
test
// ContainerBackupsGetExpired returns a list of expired container backups.
{ "resource": "" }
c176893
test
// DefaultOS returns a fresh uninitialized OS instance with default values.
{ "resource": "" }
c176894
test
// Init our internal data structures.
{ "resource": "" }
c176895
test
// GetWebsocket returns a raw websocket connection from the operation
{ "resource": "" }
c176896
test
// Refresh pulls the current version of the operation and updates the struct
{ "resource": "" }
c176897
test
// CancelTarget attempts to cancel the target operation
{ "resource": "" }
c176898
test
// GetTarget returns the target operation
{ "resource": "" }
c176899
test
// Up brings up all configured endpoints and starts accepting HTTP requests.
{ "resource": "" }