_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c176900
// Down brings down all endpoints and stops serving HTTP requests.
c176901
// Start an HTTP server for the endpoint associated with the given code.
c176902
// Stop the HTTP server of the endpoint associated with the given code. The // associated socket will be shutdown too.
c176903
// Use the listeners associated with the file descriptors passed via // socket-based activation.
c176904
// CandidServer returns all the Candid settings needed to connect to a server.
c176905
// RBACServer returns all the Candid settings needed to connect to a server.
c176906
// AutoUpdateInterval returns the configured images auto update interval.
c176907
// MAASController the configured MAAS url and key, if any.
c176908
// OfflineThreshold returns the configured heartbeat threshold, i.e. the // number of seconds before after which an unresponsive node is considered // offline..
c176909
// ConfigGetString is a convenience for loading the cluster configuration and // returning the value of a particular key. // // It's a deprecated API meant to be used by call sites that are not // interacting with the database in a transactional way.
c176910
// ConfigGetBool is a convenience for loading the cluster configuration and // returning the value of a particular boolean key. // // It's a deprecated API meant to be used by call sites that are not // interacting with the database in a transactional way.
c176911
// ConfigGetInt64 is a convenience for loading the cluster configuration and // returning the value of a particular key. // // It's a deprecated API meant to be used by call sites that are not // interacting with the database in a transactional way.
c176912
// ClusterAddress returns the cluster addresss of the cluster endpoint, or an // empty string if there's no cluster endpoint.
c176913
// General wrappers around Logger interface functions.
c176914
// RestServer creates an http.Server capable of handling requests against the LXD REST // API endpoint.
c176915
// Extract the project query parameter from the given request.
c176916
// Extract the given query parameter directly from the URL, never from an // encoded body.
c176917
// Return a new db command.
c176918
// Description return a human-readable description of the operation type.
c176919
// Permission returns the needed RBAC permission to cancel the oepration
c176920
// OperationsUUIDs returns the UUIDs of all operations associated with this // node.
c176921
// OperationNodes returns a list of nodes that have running operations
c176922
// OperationByUUID returns the operation with the given UUID.
c176923
// OperationAdd adds a new operations to the table.
c176924
// OperationRemove removes the operation with the given UUID.
c176925
// Operations returns all operations in the cluster, filtered by the given clause.
c176926
// This task function expires logs when executed. It's started by the Daemon // and will run once every 24h.
c176927
// Given its relative path with respect to the LXD surce tree, return the full // path of a file.
c176928
// Keys returns all keys defined in the schema
c176929
// Defaults returns a map of all key names in the schema along with their default // values.
c176930
// Get the Key associated with the given name, or panic.
c176931
// Assert that the Key with the given name as the given type. Panic if no Key // with such name exists, or if it does not match the tiven type.
c176932
// Tells if the given value can be assigned to this particular Value instance.
c176933
// GetStoragePoolVolumes returns a list of StorageVolume entries for the provided pool
c176934
// GetStoragePoolVolume returns a StorageVolume entry for the provided pool and volume name
c176935
// CreateStoragePoolVolume defines a new storage volume
c176936
// CreateStoragePoolVolumeSnapshot defines a new storage volume
c176937
// GetStoragePoolVolumeSnapshots returns a list of snapshots for the storage // volume
c176938
// GetStoragePoolVolumeSnapshot returns a snapshots for the storage volume
c176939
// UpdateStoragePoolVolumeSnapshot updates the volume to match the provided StoragePoolVolume struct
c176940
// MigrateStoragePoolVolume requests that LXD prepares for a storage volume migration
c176941
// MoveStoragePoolVolume renames or moves an existing storage volume
c176942
// UpdateStoragePoolVolume updates the volume to match the provided StoragePoolVolume struct
c176943
// DeleteStoragePoolVolume deletes a storage pool
c176944
// RenameStoragePoolVolume renames a storage volume
c176945
// This performs all non-db related work needed to create the pool.
c176946
// Helper functions // Returns the parent container name, snapshot name, and whether it actually was // a snapshot name.
c176947
// Load all containers across all projects.
c176948
// Load all containers of this nodes.
c176949
// Load all containers of this nodes under the given project.
c176950
// Perform a single heartbeat request against the node with the given address.
c176951
// This seems a little excessive.
c176952
// Things we don't need to care about
c176953
// Things we do have to care about
c176954
// AskChoice asks the user to select one of multiple options
c176955
// AskInt asks the user to enter an integer between a min and max value
c176956
// AskString asks the user to enter a string, which optionally // conforms to a validation function.
c176957
// AskPassword asks the user to enter a password.
c176958
// AskPasswordOnce asks the user to enter a password. // // It's the same as AskPassword, but it won't ask to enter it again.
c176959
// Ask a question on the output stream and read the answer from the input stream
c176960
// Read the user's answer from the input stream, trimming newline and providing a default.
c176961
// The handler for the post operation.
c176962
// The handler for the delete operation.
c176963
// IsRootDiskDevice returns true if the given device representation is // configured as root disk for a container. It typically get passed a specific // entry of api.Container.Devices.
c176964
// GetRootDiskDevice returns the container device that is configured as root disk
c176965
// ForwardedResponse takes a request directed to a node and forwards it to // another node, writing back the response it gegs.
c176966
// ForwardedResponseIfTargetIsRemote redirects a request to the request has a // targetNode parameter pointing to a node which is not the local one.
c176967
// ForwardedResponseIfContainerIsRemote redirects a request to the node running // the container with the given name. If the container is local, nothing gets // done and nil is returned.
c176968
// ForwardedOperationResponse creates a response that forwards the metadata of // an operation created on another node.
c176969
// Done prints the final status and prevents any update
c176970
// Update changes the status message to the provided string
c176971
// Warn shows a temporary message instead of the status
c176972
// UpdateProgress is a helper to update the status using an iopgress instance
c176973
// UpdateOp is a helper to update the status using a LXD API operation
c176974
// The zfs.pool_name config key is node-specific, and needs to be linked to // nodes.
c176975
// Create a new net.Listener bound to the unix socket of the local endpoint.
c176976
// NewStmt return a new statement code snippet for running the given kind of // query against the given database entity.
c176977
// Generate plumbing and wiring code for the desired statement.
c176978
// Output a line of code that registers the given statement and declares the // associated statement code global variable.
c176979
// Internal function called by ConnectLXD and ConnectPublicLXD
c176980
// IsActive checks whether the container state indicates the container is active
c176981
// RaftNodeAddress returns the address of the LXD raft node with the given ID, // if any matching row exists.
c176982
// RaftNodeFirst adds a the first node of the cluster. It ensures that the // database ID is 1, to match the server ID of first raft log entry. // // This method is supposed to be called when there are no rows in raft_nodes, // and it will replace whatever existing row has ID 1.
c176983
// RaftNodeAdd adds a node to the current list of LXD nodes that are part of the // dqlite Raft cluster. It returns the ID of the newly inserted row.
c176984
// RaftNodeDelete removes a node from the current list of LXD nodes that are // part of the dqlite Raft cluster.
c176985
// RaftNodesReplace replaces the current list of raft nodes.
c176986
// Detect CGroup support.
c176987
// Configure the sqlite connection so that it's safe to access the // dqlite-managed sqlite file, also without setting up raft.
c176988
// ContainerGet returns the container with the given key.
c176989
// ContainerID return the ID of the container with the given key.
c176990
// ContainerExists checks if a container with the given key exists.
c176991
// ContainsFields checks that the mapping contains fields with the same type // and name of given ones.
c176992
// FieldByName returns the field with the given name, if any.
c176993
// FieldColumnName returns the column name of the field with the given name, // prefixed with the entity's table name.
c176994
// FilterFieldByName returns the field with the given name if that field can be // used as query filter, an error otherwise.
c176995
// ColumnFields returns the fields that map directly to a database column, // either on this table or on a joined one.
c176996
// ScalarFields returns the fields that map directly to a single database // column on another table that can be joined to this one.
c176997
// RefFields returns the fields that are one-to-many references to other // tables.
c176998
// Column returns the name of the database column the field maps to. The type // code of the field must be TypeColumn.
c176999
// ZeroValue returns the literal representing the zero value for this field. The type // code of the field must be TypeColumn.