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