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