_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c177000 | test | // FieldColumns converts thegiven fields to list of column names separated
// by a comma. | {
"resource": ""
} | ||
c177001 | test | // FieldArgs converts the given fields to function arguments, rendering their
// name and type. | {
"resource": ""
} | ||
c177002 | test | // FieldParams converts the given fields to function parameters, rendering their
// name. | {
"resource": ""
} | ||
c177003 | test | // FieldCriteria converts the given fields to AND-separated WHERE criteria. | {
"resource": ""
} | ||
c177004 | test | // Helper to initialize LXD clustering.
//
// Used by the 'lxd init' command. | {
"resource": ""
} | ||
c177005 | test | // formatValue formats a value for serialization | {
"resource": ""
} | ||
c177006 | test | // ResolveTarget is a convenience for handling the value ?targetNode query
// parameter. It returns the address of the given node, or the empty string if
// the given node is the local one. | {
"resource": ""
} | ||
c177007 | test | // Write in ProgressWriter is the same as io.Write | {
"resource": ""
} | ||
c177008 | test | // Update the schema and api_extensions columns of the row in the nodes table
// that matches the given id.
//
// If not such row is found, an error is returned. | {
"resource": ""
} | ||
c177009 | test | // Return a slice of binary integer tuples. Each tuple contains the schema
// version and number of api extensions of a node in the cluster. | {
"resource": ""
} | ||
c177010 | test | // GetArchitectures returns the list of supported architectures. | {
"resource": ""
} | ||
c177011 | test | // RuntimeLiblxcVersionAtLeast checks if the system's liblxc matches the
// provided version requirement | {
"resource": ""
} | ||
c177012 | test | // GetExecPath returns the path to the current binary | {
"resource": ""
} | ||
c177013 | test | // Connect is a convenience around lxd.ConnectLXD that configures the client
// with the correct parameters for node-to-node communication.
//
// If 'notify' switch is true, then the user agent will be set to the special
// value 'lxd-cluster-notifier', which can be used in some cases to distinguish
// between a regula... | {
"resource": ""
} | ||
c177014 | test | // ConnectIfContainerIsRemote figures out the address of the node which is
// running the container with the given name. If it's not the local node will
// connect to it and return the connected client, otherwise it will just return
// nil. | {
"resource": ""
} | ||
c177015 | test | // ConnectIfVolumeIsRemote figures out the address of the node on which the
// volume with the given name is defined. If it's not the local node will
// connect to it and return the connected client, otherwise it will just return
// nil.
//
// If there is more than one node with a matching volume name, an error is
// r... | {
"resource": ""
} | ||
c177016 | test | // SetupTrust is a convenience around ContainerServer.CreateCertificate that
// adds the given client certificate to the trusted pool of the cluster at the
// given address, using the given password. | {
"resource": ""
} | ||
c177017 | test | // GetStoragePools returns a list of StoragePool entries | {
"resource": ""
} | ||
c177018 | test | // GetStoragePool returns a StoragePool entry for the provided pool name | {
"resource": ""
} | ||
c177019 | test | // CreateStoragePool defines a new storage pool using the provided StoragePool struct | {
"resource": ""
} | ||
c177020 | test | // UpdateStoragePool updates the pool to match the provided StoragePool struct | {
"resource": ""
} | ||
c177021 | test | // DeleteStoragePool deletes a storage pool | {
"resource": ""
} | ||
c177022 | test | // GetStoragePoolResources gets the resources available to a given storage pool | {
"resource": ""
} | ||
c177023 | test | // Make sure all our directories are available. | {
"resource": ""
} | ||
c177024 | test | // Config fetches all LXD node-level config keys. | {
"resource": ""
} | ||
c177025 | test | // UpdateConfig updates the given LXD node-level configuration keys in the
// config table. Config keys set to empty values will be deleted. | {
"resource": ""
} | ||
c177026 | test | // Config fetches all LXD cluster config keys. | {
"resource": ""
} | ||
c177027 | test | // UpdateConfig updates the given LXD cluster configuration keys in the
// config table. Config keys set to empty values will be deleted. | {
"resource": ""
} | ||
c177028 | test | // This helper deletes any node-specific values from the config object, since
// they should not be part of the calculated etag. | {
"resource": ""
} | ||
c177029 | test | // Event handling functions
// GetEvents connects to the LXD monitoring interface | {
"resource": ""
} | ||
c177030 | test | // LogfmtFormat return a formatter for a text log file | {
"resource": ""
} | ||
c177031 | test | // StorageVolumeNodeAddresses returns the addresses of all nodes on which the
// volume with the given name if defined.
//
// The empty string is used in place of the address of the current node. | {
"resource": ""
} | ||
c177032 | test | // StorageVolumeNodeGet returns the name of the node a storage volume is on. | {
"resource": ""
} | ||
c177033 | test | // StorageVolumeConfigGet gets the config of a storage volume. | {
"resource": ""
} | ||
c177034 | test | // StorageVolumeDescriptionGet gets the description of a storage volume. | {
"resource": ""
} | ||
c177035 | test | // StorageVolumeIsAvailable checks that if a custom volume available for being attached.
//
// Always return true for non-Ceph volumes.
//
// For Ceph volumes, return true if the volume is either not attached to any
// other container, or attached to containers on this node. | {
"resource": ""
} | ||
c177036 | test | // StorageVolumeDescriptionUpdate updates the description of a storage volume. | {
"resource": ""
} | ||
c177037 | test | // StorageVolumeConfigAdd adds a new storage volume config into database. | {
"resource": ""
} | ||
c177038 | test | // StorageVolumeConfigClear deletes storage volume config. | {
"resource": ""
} | ||
c177039 | test | // Get the IDs of all volumes with the given name and type associated with the
// given pool, regardless of their node_id column. | {
"resource": ""
} | ||
c177040 | test | // StorageVolumeCleanupImages removes the volumes with the given fingerprints. | {
"resource": ""
} | ||
c177041 | test | // StorageVolumeMoveToLVMThinPoolNameKey upgrades the config keys of LVM
// volumes. | {
"resource": ""
} | ||
c177042 | test | // L accumulates a single line of source code. | {
"resource": ""
} | ||
c177043 | test | // Returns the source code to add to the target file. | {
"resource": ""
} | ||
c177044 | test | // Pretty will attempt to convert any Go structure into a string suitable for logging | {
"resource": ""
} | ||
c177045 | test | // NetworkPublicKey returns the public key of the TLS certificate used by the
// network endpoint. | {
"resource": ""
} | ||
c177046 | test | // NetworkPrivateKey returns the private key of the TLS certificate used by the
// network endpoint. | {
"resource": ""
} | ||
c177047 | test | // NetworkCert returns the full TLS certificate information for this endpoint. | {
"resource": ""
} | ||
c177048 | test | // NetworkAddress returns the network addresss of the network endpoint, or an
// empty string if there's no network endpoint | {
"resource": ""
} | ||
c177049 | test | // NetworkUpdateAddress updates the address for the network endpoint, shutting
// it down and restarting it. | {
"resource": ""
} | ||
c177050 | test | // NetworkUpdateCert updates the TLS keypair and CA used by the network
// endpoint.
//
// If the network endpoint is active, in-flight requests will continue using
// the old certificate, and only new requests will use the new one. | {
"resource": ""
} | ||
c177051 | test | // Create a new net.Listener bound to the tcp socket of the network endpoint. | {
"resource": ""
} | ||
c177052 | test | // Accept waits for and returns the next incoming TLS connection then use the
// current TLS configuration to handle it. | {
"resource": ""
} | ||
c177053 | test | // Config safely swaps the underlying TLS configuration. | {
"resource": ""
} | ||
c177054 | test | // IsOffline returns true if the last successful heartbeat time of the node is
// older than the given threshold. | {
"resource": ""
} | ||
c177055 | test | // NodeByAddress returns the node with the given network address. | {
"resource": ""
} | ||
c177056 | test | // NodePendingByAddress returns the pending node with the given network address. | {
"resource": ""
} | ||
c177057 | test | // NodeByName returns the node with the given name. | {
"resource": ""
} | ||
c177058 | test | // NodeName returns the name of the node this method is invoked on. | {
"resource": ""
} | ||
c177059 | test | // NodeAddress returns the address of the node this method is invoked on. | {
"resource": ""
} | ||
c177060 | test | // NodeIsOutdated returns true if there's some cluster node having an API or
// schema version greater than the node this method is invoked on. | {
"resource": ""
} | ||
c177061 | test | // NodesCount returns the number of nodes in the LXD cluster.
//
// Since there's always at least one node row, even when not-clustered, the
// return value is greater than zero | {
"resource": ""
} | ||
c177062 | test | // NodeRename changes the name of an existing node.
//
// Return an error if a node with the same name already exists. | {
"resource": ""
} | ||
c177063 | test | // Nodes returns all LXD nodes part of the cluster. | {
"resource": ""
} | ||
c177064 | test | // NodeAdd adds a node to the current list of LXD nodes that are part of the
// cluster. It returns the ID of the newly inserted row. | {
"resource": ""
} | ||
c177065 | test | // NodePending toggles the pending flag for the node. A node is pending when
// it's been accepted in the cluster, but has not yet actually joined it. | {
"resource": ""
} | ||
c177066 | test | // NodeUpdate updates the name an address of a node. | {
"resource": ""
} | ||
c177067 | test | // NodeRemove removes the node with the given id. | {
"resource": ""
} | ||
c177068 | test | // NodeHeartbeat updates the heartbeat column of the node with the given address. | {
"resource": ""
} | ||
c177069 | test | // NodeIsEmpty returns an empty string if the node with the given ID has no
// containers or images associated with it. Otherwise, it returns a message
// say what's left. | {
"resource": ""
} | ||
c177070 | test | // NodeClear removes any container or image associated with this node. | {
"resource": ""
} | ||
c177071 | test | // NodeOfflineThreshold returns the amount of time that needs to elapse after
// which a series of unsuccessful heartbeat will make the node be considered
// offline. | {
"resource": ""
} | ||
c177072 | test | // NodeUpdateVersion updates the schema and API version of the node with the
// given id. This is used only in tests. | {
"resource": ""
} | ||
c177073 | test | // Transaction executes the given function within a database transaction. | {
"resource": ""
} | ||
c177074 | test | // Rollback a transaction after the given error occurred. If the rollback
// succeeds the given error is returned, otherwise a new error that wraps it
// gets generated and returned. | {
"resource": ""
} | ||
c177075 | test | // ProfileURIs returns all available profile URIs. | {
"resource": ""
} | ||
c177076 | test | // ProfileGet returns the profile with the given key. | {
"resource": ""
} | ||
c177077 | test | // ProfileExists checks if a profile with the given key exists. | {
"resource": ""
} | ||
c177078 | test | // ProfileConfigRef returns entities used by profiles. | {
"resource": ""
} | ||
c177079 | test | // ProfileUsedByRef returns entities used by profiles. | {
"resource": ""
} | ||
c177080 | test | // ProfileCreate adds a new profile to the database. | {
"resource": ""
} | ||
c177081 | test | // ProfileRename renames the profile matching the given key parameters. | {
"resource": ""
} | ||
c177082 | test | // ProfileDelete deletes the profile matching the given key parameters. | {
"resource": ""
} | ||
c177083 | test | // ServerTLSConfig returns a new server-side tls.Config generated from the give
// certificate info. | {
"resource": ""
} | ||
c177084 | test | // NetworkInterfaceAddress returns the first non-loopback address of any of the
// system network interfaces.
//
// Return the empty string if none is found. | {
"resource": ""
} | ||
c177085 | test | // IsAddressCovered detects if network address1 is actually covered by
// address2, in the sense that they are either the same address or address2 is
// specified using a wildcard with the same port of address1. | {
"resource": ""
} | ||
c177086 | test | // SelectObjects executes a statement which must yield rows with a specific
// columns schema. It invokes the given Dest hook for each yielded row. | {
"resource": ""
} | ||
c177087 | test | // DeleteObject removes the row identified by the given ID. The given table
// must have a primary key column called 'id'.
//
// It returns a flag indicating if a matching row was actually found and
// deleted or not. | {
"resource": ""
} | ||
c177088 | test | // Execute the our task function according to our schedule, until the given
// context gets cancelled. | {
"resource": ""
} | ||
c177089 | test | // IsTerminal returns true if the given file descriptor is a terminal. | {
"resource": ""
} | ||
c177090 | test | // Bind to the given unix socket path. | {
"resource": ""
} | ||
c177091 | test | // Remove any stale socket file at the given path. | {
"resource": ""
} | ||
c177092 | test | // Change the file mode of the given unix socket file, | {
"resource": ""
} | ||
c177093 | test | // Change the ownership of the given unix socket file, | {
"resource": ""
} | ||
c177094 | test | // cephOSDPoolExists checks whether a given OSD pool exists. | {
"resource": ""
} | ||
c177095 | test | // cephOSDPoolDestroy destroys an OSD pool.
// - A call to cephOSDPoolDestroy will destroy a pool including any storage
// volumes that still exist in the pool.
// - In case the OSD pool that is supposed to be deleted does not exist this
// command will still exit 0. This means that if the caller wants to be sure
/... | {
"resource": ""
} | ||
c177096 | test | // cephRBDVolumeExists checks whether a given RBD storage volume exists. | {
"resource": ""
} | ||
c177097 | test | // cephRBDSnapshotProtect protects a given snapshot from being deleted
// This is a precondition to be able to create RBD clones from a given snapshot. | {
"resource": ""
} | ||
c177098 | test | // cephRBDCloneCreate creates a clone from a protected RBD snapshot | {
"resource": ""
} | ||
c177099 | test | // cephRBDSnapshotListClones list all clones of an RBD snapshot | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.