_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c176600
// TrimBelow returns a slice of the Trace with all entries below pc removed.
c176601
// TrimAbove returns a slice of the Trace with all entries above pc removed.
c176602
// TrimBelowName returns a slice of the Trace with all entries below the // lowest with function name name removed.
c176603
// TrimAboveName returns a slice of the Trace with all entries above the // highest with function name name removed.
c176604
// 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.
c176605
// GetCaps extracts the list of capabilities effective on the file
c176606
// SetCaps applies the caps for a particular root uid
c176607
// Read in ProgressReader is the same as io.Read
c176608
// Supported check if the given path supports project quotas
c176609
// GetProject returns the project quota ID for the given path
c176610
// SetProject sets the project quota ID for the given path
c176611
// DeleteProject unsets the project id from the path and clears the quota for the project id
c176612
// GetProjectUsage returns the current consumption
c176613
// SetProjectQuota sets the quota on the project id
c176614
// Load a backup from the database
c176615
// Create a new backup
c176616
// Rename renames a container backup
c176617
// Delete removes a container backup
c176618
// 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.
c176619
// Count returns the number of rows in the given table.
c176620
// CountAll returns a map associating each table name in the database // with the total count of its rows.
c176621
// 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.
c176622
// Copy a container on a storage pool that does use a thinpool.
c176623
// Copy a container on a storage pool that does not use a thinpool.
c176624
// Copy an lvm container.
c176625
// Copy an LVM custom volume.
c176626
// GetPrivateImage isn't relevant for the simplestreams protocol
c176627
// GetPrivateImageFile isn't relevant for the simplestreams protocol
c176628
// GetImageAliasNames returns the list of available alias names
c176629
// ProtoRecv gets a protobuf message from a websocket
c176630
// ProtoSend sends a protobuf message over a websocket
c176631
// ProtoSendControl sends a migration control message over a websocket
c176632
// 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.
c176633
// Fetch information about the containers on the given remote node, using the // rest API and with a timeout of 30 seconds.
c176634
// 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.
c176635
// IsRetriableError returns true if the given error might be transient and the // interaction can be safely retried.
c176636
// AppArmorProfile returns the current apparmor profile.
c176637
// Functions dealing with storage volumes.
c176638
// Functions dealing with container storage.
c176639
// And this function is why I started hating on btrfs...
c176640
// ContainerSnapshotRename renames a snapshot of a container.
c176641
// Needed for live migration where an empty snapshot needs to be created before // rsyncing into it.
c176642
// btrfsPoolVolumesDelete is the recursive variant on btrfsPoolVolumeDelete, // it first deletes subvolumes of the subvolume and then the // subvolume itself.
c176643
// isBtrfsSubVolume returns true if the given Path is a btrfs subvolume else // false.
c176644
// 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.
c176645
// UpdateConfig updates the given keys in the given table. Config keys set to // empty values will be deleted.
c176646
// Delete the given key rows from the given config table.
c176647
// FormatSection properly indents a text section
c176648
// GetProjects returns a list of available Project structs
c176649
// GetProject returns a Project entry for the provided name
c176650
// CreateProject defines a new container project
c176651
// UpdateProject updates the project to match the provided Project struct
c176652
// RenameProject renames an existing project entry
c176653
// Read behaves like io.Reader.Read but will retry on EAGAIN
c176654
// Write behaves like io.Writer.Write but will retry on EAGAIN
c176655
// NewCanceler returns a new Canceler struct
c176656
// Cancelable indicates whether there are operations that support cancelation
c176657
// Cancel will attempt to cancel all ongoing operations
c176658
// CancelableDownload performs an http request and allows for it to be canceled at any time
c176659
// Return information about the cluster.
c176660
// Fetch information about all node-specific configuration keys set on the // storage pools and networks of this cluster.
c176661
// Disable clustering on a node.
c176662
// 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.
c176663
// Used to update the cluster after a database node has been removed, and // possibly promote another one as database node.
c176664
// Used to promote the local non-database node to be a database one.
c176665
// Filters parses all filtering statement defined for the given entity. It // returns all supported combinations of filters, sorted by number of criteria.
c176666
// Parse the structure declaration with the given name found in the given Go // package.
c176667
// Find the StructType node for the structure with the given name
c176668
// Extract field information from the given structure.
c176669
// Profile handling functions // GetProfileNames returns a list of available profile names
c176670
// GetProfiles returns a list of available Profile structs
c176671
// GetProfile returns a Profile entry for the provided name
c176672
// CreateProfile defines a new container profile
c176673
// UpdateProfile updates the profile to match the provided Profile struct
c176674
// RenameProfile renames an existing profile entry
c176675
// 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...
c176676
// 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.
c176677
// GetRaw returns the value of the given key, which must be of type String.
c176678
// GetString returns the value of the given key, which must be of type String.
c176679
// GetBool returns the value of the given key, which must be of type Bool.
c176680
// GetInt64 returns the value of the given key, which must be of type Int64.
c176681
// 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.
c176682
// 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.
c176683
// DoesSchemaTableExist return whether the schema table is present in the // database.
c176684
// Return all versions in the schema table, in increasing order.
c176685
// Return a list of SQL statements that can be used to create all tables in the // database.
c176686
// Create the schema table.
c176687
// Insert a new version into the schema table.
c176688
// NewState returns a new State object with the given database and operating // system components.
c176689
// Unload is called by the garbage collector
c176690
// Create a container struct without initializing it.
c176691
// Initialize storage interface for this container
c176692
// OnNetworkUp is called by the LXD callhook when the LXC network up script is run.
c176693
// setupHostVethDevice configures a nic device's host side veth settings.
c176694
// Get lxc container state, with 1 second timeout // If we don't get a reply, assume the lxc monitor is hung
c176695
// Kill this function as soon as zfs is fixed.
c176696
// Check if the unix device already exists.
c176697
// Disk device handling
c176698
// setNetworkRoutes applies any static routes configured from the host to the container nic.
c176699
// Various container paths