_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c176600
test
// TrimBelow returns a slice of the Trace with all entries below pc removed.
{ "resource": "" }
c176601
test
// TrimAbove returns a slice of the Trace with all entries above pc removed.
{ "resource": "" }
c176602
test
// TrimBelowName returns a slice of the Trace with all entries below the // lowest with function name name removed.
{ "resource": "" }
c176603
test
// TrimAboveName returns a slice of the Trace with all entries above the // highest with function name name removed.
{ "resource": "" }
c176604
test
// TrimRuntime returns a slice of the Trace with the topmost entries from the // go runtime removed. It considers any calls originating from files under // GOROOT as part of the runtime.
{ "resource": "" }
c176605
test
// GetCaps extracts the list of capabilities effective on the file
{ "resource": "" }
c176606
test
// SetCaps applies the caps for a particular root uid
{ "resource": "" }
c176607
test
// Read in ProgressReader is the same as io.Read
{ "resource": "" }
c176608
test
// Supported check if the given path supports project quotas
{ "resource": "" }
c176609
test
// GetProject returns the project quota ID for the given path
{ "resource": "" }
c176610
test
// SetProject sets the project quota ID for the given path
{ "resource": "" }
c176611
test
// DeleteProject unsets the project id from the path and clears the quota for the project id
{ "resource": "" }
c176612
test
// GetProjectUsage returns the current consumption
{ "resource": "" }
c176613
test
// SetProjectQuota sets the quota on the project id
{ "resource": "" }
c176614
test
// Load a backup from the database
{ "resource": "" }
c176615
test
// Create a new backup
{ "resource": "" }
c176616
test
// Rename renames a container backup
{ "resource": "" }
c176617
test
// Delete removes a container backup
{ "resource": "" }
c176618
test
// fixBackupStoragePool changes the pool information in the backup.yaml. This // is done only if the provided pool doesn't exist. In this case, the pool of // the default profile will be used.
{ "resource": "" }
c176619
test
// Count returns the number of rows in the given table.
{ "resource": "" }
c176620
test
// CountAll returns a map associating each table name in the database // with the total count of its rows.
{ "resource": "" }
c176621
test
// InitTLSConfig returns a tls.Config populated with default encryption // parameters. This is used as baseline config for both client and server // certificates used by LXD.
{ "resource": "" }
c176622
test
// Copy a container on a storage pool that does use a thinpool.
{ "resource": "" }
c176623
test
// Copy a container on a storage pool that does not use a thinpool.
{ "resource": "" }
c176624
test
// Copy an lvm container.
{ "resource": "" }
c176625
test
// Copy an LVM custom volume.
{ "resource": "" }
c176626
test
// GetPrivateImage isn't relevant for the simplestreams protocol
{ "resource": "" }
c176627
test
// GetPrivateImageFile isn't relevant for the simplestreams protocol
{ "resource": "" }
c176628
test
// GetImageAliasNames returns the list of available alias names
{ "resource": "" }
c176629
test
// ProtoRecv gets a protobuf message from a websocket
{ "resource": "" }
c176630
test
// ProtoSend sends a protobuf message over a websocket
{ "resource": "" }
c176631
test
// ProtoSendControl sends a migration control message over a websocket
{ "resource": "" }
c176632
test
// The pty has been switched to raw mode so we will only ever read a single // byte. The buffer size is therefore uninteresting to us.
{ "resource": "" }
c176633
test
// Fetch information about the containers on the given remote node, using the // rest API and with a timeout of 30 seconds.
{ "resource": "" }
c176634
test
// Retry wraps a function that interacts with the database, and retries it in // case a transient error is hit. // // This should by typically used to wrap transactions.
{ "resource": "" }
c176635
test
// IsRetriableError returns true if the given error might be transient and the // interaction can be safely retried.
{ "resource": "" }
c176636
test
// AppArmorProfile returns the current apparmor profile.
{ "resource": "" }
c176637
test
// Functions dealing with storage volumes.
{ "resource": "" }
c176638
test
// Functions dealing with container storage.
{ "resource": "" }
c176639
test
// And this function is why I started hating on btrfs...
{ "resource": "" }
c176640
test
// ContainerSnapshotRename renames a snapshot of a container.
{ "resource": "" }
c176641
test
// Needed for live migration where an empty snapshot needs to be created before // rsyncing into it.
{ "resource": "" }
c176642
test
// btrfsPoolVolumesDelete is the recursive variant on btrfsPoolVolumeDelete, // it first deletes subvolumes of the subvolume and then the // subvolume itself.
{ "resource": "" }
c176643
test
// isBtrfsSubVolume returns true if the given Path is a btrfs subvolume else // false.
{ "resource": "" }
c176644
test
// SelectConfig executes a query statement against a "config" table, which must // have 'key' and 'value' columns. By default this query returns all keys, but // additional WHERE filters can be specified. // // Returns a map of key names to their associated values.
{ "resource": "" }
c176645
test
// UpdateConfig updates the given keys in the given table. Config keys set to // empty values will be deleted.
{ "resource": "" }
c176646
test
// Delete the given key rows from the given config table.
{ "resource": "" }
c176647
test
// FormatSection properly indents a text section
{ "resource": "" }
c176648
test
// GetProjects returns a list of available Project structs
{ "resource": "" }
c176649
test
// GetProject returns a Project entry for the provided name
{ "resource": "" }
c176650
test
// CreateProject defines a new container project
{ "resource": "" }
c176651
test
// UpdateProject updates the project to match the provided Project struct
{ "resource": "" }
c176652
test
// RenameProject renames an existing project entry
{ "resource": "" }
c176653
test
// Read behaves like io.Reader.Read but will retry on EAGAIN
{ "resource": "" }
c176654
test
// Write behaves like io.Writer.Write but will retry on EAGAIN
{ "resource": "" }
c176655
test
// NewCanceler returns a new Canceler struct
{ "resource": "" }
c176656
test
// Cancelable indicates whether there are operations that support cancelation
{ "resource": "" }
c176657
test
// Cancel will attempt to cancel all ongoing operations
{ "resource": "" }
c176658
test
// CancelableDownload performs an http request and allows for it to be canceled at any time
{ "resource": "" }
c176659
test
// Return information about the cluster.
{ "resource": "" }
c176660
test
// Fetch information about all node-specific configuration keys set on the // storage pools and networks of this cluster.
{ "resource": "" }
c176661
test
// Disable clustering on a node.
{ "resource": "" }
c176662
test
// This function is used to notify the leader that a node was removed, it will // decide whether to promote a new node as database node.
{ "resource": "" }
c176663
test
// Used to update the cluster after a database node has been removed, and // possibly promote another one as database node.
{ "resource": "" }
c176664
test
// Used to promote the local non-database node to be a database one.
{ "resource": "" }
c176665
test
// Filters parses all filtering statement defined for the given entity. It // returns all supported combinations of filters, sorted by number of criteria.
{ "resource": "" }
c176666
test
// Parse the structure declaration with the given name found in the given Go // package.
{ "resource": "" }
c176667
test
// Find the StructType node for the structure with the given name
{ "resource": "" }
c176668
test
// Extract field information from the given structure.
{ "resource": "" }
c176669
test
// Profile handling functions // GetProfileNames returns a list of available profile names
{ "resource": "" }
c176670
test
// GetProfiles returns a list of available Profile structs
{ "resource": "" }
c176671
test
// GetProfile returns a Profile entry for the provided name
{ "resource": "" }
c176672
test
// CreateProfile defines a new container profile
{ "resource": "" }
c176673
test
// UpdateProfile updates the profile to match the provided Profile struct
{ "resource": "" }
c176674
test
// RenameProfile renames an existing profile entry
{ "resource": "" }
c176675
test
// Load creates a new configuration Map with the given schema and initial // values. It is meant to be called with a set of initial values that were set // at a previous time and persisted to some storage like a database. // // If one or more keys fail to be loaded, return an ErrorList describing what // went wrong. No...
{ "resource": "" }
c176676
test
// Dump the current configuration held by this Map. // // Keys that match their default value will not be included in the dump. Also, // if a Key has its Hidden attribute set to true, it will be rendered as // "true", for obfuscating the actual value.
{ "resource": "" }
c176677
test
// GetRaw returns the value of the given key, which must be of type String.
{ "resource": "" }
c176678
test
// GetString returns the value of the given key, which must be of type String.
{ "resource": "" }
c176679
test
// GetBool returns the value of the given key, which must be of type Bool.
{ "resource": "" }
c176680
test
// GetInt64 returns the value of the given key, which must be of type Int64.
{ "resource": "" }
c176681
test
// Update the current values in the map using the newly provided ones. Return a // list of key names that were actually changed and an ErrorList with possible // errors.
{ "resource": "" }
c176682
test
// Set or change an individual key. Empty string means delete this value and // effectively revert it to the default. Return a boolean indicating whether // the value has changed, and error if something went wrong.
{ "resource": "" }
c176683
test
// DoesSchemaTableExist return whether the schema table is present in the // database.
{ "resource": "" }
c176684
test
// Return all versions in the schema table, in increasing order.
{ "resource": "" }
c176685
test
// Return a list of SQL statements that can be used to create all tables in the // database.
{ "resource": "" }
c176686
test
// Create the schema table.
{ "resource": "" }
c176687
test
// Insert a new version into the schema table.
{ "resource": "" }
c176688
test
// NewState returns a new State object with the given database and operating // system components.
{ "resource": "" }
c176689
test
// Unload is called by the garbage collector
{ "resource": "" }
c176690
test
// Create a container struct without initializing it.
{ "resource": "" }
c176691
test
// Initialize storage interface for this container
{ "resource": "" }
c176692
test
// OnNetworkUp is called by the LXD callhook when the LXC network up script is run.
{ "resource": "" }
c176693
test
// setupHostVethDevice configures a nic device's host side veth settings.
{ "resource": "" }
c176694
test
// Get lxc container state, with 1 second timeout // If we don't get a reply, assume the lxc monitor is hung
{ "resource": "" }
c176695
test
// Kill this function as soon as zfs is fixed.
{ "resource": "" }
c176696
test
// Check if the unix device already exists.
{ "resource": "" }
c176697
test
// Disk device handling
{ "resource": "" }
c176698
test
// setNetworkRoutes applies any static routes configured from the host to the container nic.
{ "resource": "" }
c176699
test
// Various container paths
{ "resource": "" }