_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c157500
train
// SetResource implements charmstore.EntityCache.
{ "resource": "" }
c157501
train
// OpenResource implements charmstore.EntityCache.
{ "resource": "" }
c157502
train
// NewClient opens a new charm store client.
{ "resource": "" }
c157503
train
// GetResource returns a reader for the resource's data.
{ "resource": "" }
c157504
train
// Metadata returns the value from container config for the input key. // Such values are stored with the "user" namespace prefix.
{ "resource": "" }
c157505
train
// CPUs returns the configured limit for number of container CPU cores. // If unset, zero is returned.
{ "resource": "" }
c157506
train
// Mem returns the configured limit for container memory in MiB.
{ "resource": "" }
c157507
train
// AddDisk modifies updates the container's devices map to represent a disk // device described by the input arguments. // If the device already exists, an error is returned.
{ "resource": "" }
c157508
train
// AliveContainers returns the list of containers based on the input namespace // prefixed that are in a status indicating they are "alive".
{ "resource": "" }
c157509
train
// FilterContainers retrieves the list of containers from the server and filters // them based on the input namespace prefix and any supplied statuses.
{ "resource": "" }
c157510
train
// ContainerAddresses gets usable network addresses for the container // identified by the input name.
{ "resource": "" }
c157511
train
// CreateContainerFromSpec creates a new container based on the input spec, // and starts it immediately. // If the container fails to be started, it is removed. // Upon successful creation and start, the container is returned.
{ "resource": "" }
c157512
train
// StartContainer starts the extant container identified by the input name.
{ "resource": "" }
c157513
train
// Remove containers stops and deletes containers matching the input list of // names. Any failed removals are indicated in the returned error.
{ "resource": "" }
c157514
train
// Remove container first ensures that the container is stopped, // then deletes it.
{ "resource": "" }
c157515
train
// WriteContainer writes the current representation of the input container to // the server.
{ "resource": "" }
c157516
train
// containerHasStatus returns true if the input container has a status // matching one from the input list.
{ "resource": "" }
c157517
train
// Clouds returns the details of all clouds supported by the controller.
{ "resource": "" }
c157518
train
// Cloud returns the details of the cloud with the given tag.
{ "resource": "" }
c157519
train
// UserCredentials returns the tags for cloud credentials available to a user for // use with a specific cloud.
{ "resource": "" }
c157520
train
// UpdateCredentialsCheckModels updates a cloud credential content // stored on the controller. This call validates that the new content works // for all models that are using this credential.
{ "resource": "" }
c157521
train
// Credentials returns a slice of credential values for the specified tags. // Secrets are excluded from the credential attributes.
{ "resource": "" }
c157522
train
// AddCredential adds a credential to the controller with a given tag. // This can be a credential for a cloud that is not the same cloud as the controller's host.
{ "resource": "" }
c157523
train
// AddCloud adds a new cloud to current controller.
{ "resource": "" }
c157524
train
// UpdateCloud updates an existing cloud on a current controller.
{ "resource": "" }
c157525
train
// RemoveCloud removes a cloud from the current controller.
{ "resource": "" }
c157526
train
// CredentialContents returns contents of the credential values for the specified // cloud and credential name. Secrets will be included if requested.
{ "resource": "" }
c157527
train
// GrantCloud grants a user access to a cloud.
{ "resource": "" }
c157528
train
// RevokeCloud revokes a user's access to a cloud.
{ "resource": "" }
c157529
train
// Namespaces returns names of the namespaces on the cluster.
{ "resource": "" }
c157530
train
// GetNamespace returns the namespace for the specified name.
{ "resource": "" }
c157531
train
// listNamespacesByAnnotations filters namespaces by annotations.
{ "resource": "" }
c157532
train
// createNamespace creates a named namespace.
{ "resource": "" }
c157533
train
// WatchNamespace returns a watcher which notifies when there // are changes to current namespace.
{ "resource": "" }
c157534
train
// Keys returns the current keys in alphabetical order.
{ "resource": "" }
c157535
train
// Get returns the value of key and whether it was found.
{ "resource": "" }
c157536
train
// Set sets key to value
{ "resource": "" }
c157537
train
// settingsUpdateOps returns the item changes and txn ops necessary // to write the changes made to settings back to the database.
{ "resource": "" }
c157538
train
// changes compares the live settings with those that were retrieved from the // database in order to generate a set of changes.
{ "resource": "" }
c157539
train
// cacheKeys returns the keys of all caches as a key=>true map.
{ "resource": "" }
c157540
train
// Write writes changes made to c back onto its node. Changes are written // as a delta applied on top of the latest version of the node, to prevent // overwriting unrelated changes made to the node since it was last read.
{ "resource": "" }
c157541
train
// readSettingsDoc reads the settings doc with the given key.
{ "resource": "" }
c157542
train
// readSettingsDocInto reads the settings doc with the given key // into the provided output structure.
{ "resource": "" }
c157543
train
// applyChanges modifies the live settings // based on the input collection of changes.
{ "resource": "" }
c157544
train
// ReadSettings returns the settings for the given key.
{ "resource": "" }
c157545
train
// readSettings returns the Settings for key.
{ "resource": "" }
c157546
train
// createSettings writes an initial config node.
{ "resource": "" }
c157547
train
// removeSettings removes the Settings for key.
{ "resource": "" }
c157548
train
// replaceSettings replaces the settings values for key.
{ "resource": "" }
c157549
train
// listSettings returns all the settings with the specified key prefix.
{ "resource": "" }
c157550
train
// subDocKeys returns a new map based on the input, // with keys indicating nesting within an MongoDB sub-document.
{ "resource": "" }
c157551
train
// copyMap copies the keys and values of one map into a new one. // If the input replacement function is non-nil, each key in the new map will // be the result of applying the function to its original.
{ "resource": "" }
c157552
train
// subDocReplacer returns a replacement function suitable for modifying input // keys to indicate MongoDB sub-documents.
{ "resource": "" }
c157553
train
// CreateSettings exposes createSettings on state for use outside the state package.
{ "resource": "" }
c157554
train
// ReadSettings exposes readSettings on state for use outside the state package.
{ "resource": "" }
c157555
train
// RemoveSettings exposes removeSettings on state for use outside the state package.
{ "resource": "" }
c157556
train
// ReplaceSettings exposes replaceSettings on state for use outside the state package.
{ "resource": "" }
c157557
train
// ListSettings exposes listSettings on state for use outside the state package.
{ "resource": "" }
c157558
train
// Enqueue takes a list of Actions and queues them up to be executed by // the designated ActionReceiver, returning the params.Action for each // queued Action, or an error if there was a problem queueing up the // Action.
{ "resource": "" }
c157559
train
// FindActionsByNames takes a list of action names and returns actions for // every name.
{ "resource": "" }
c157560
train
// ListAll takes a list of Entities representing ActionReceivers and returns // all of the Actions that have been queued or run by each of those // Entities.
{ "resource": "" }
c157561
train
// applicationsCharmActions is a batched query for the charm.Actions for a slice // of applications by Entity.
{ "resource": "" }
c157562
train
// ApplicationCharmActions is a single query which uses ApplicationsCharmsActions to // get the charm.Actions for a single Application by tag.
{ "resource": "" }
c157563
train
// NewTxnCollector returns a new TxnCollector.
{ "resource": "" }
c157564
train
// RemoveAll is a default implementation for StorageWriter.RemoveAll. // Providers may have more efficient implementations, or better error handling, // or safeguards against races with other users of the same storage medium. // But a simple way to implement RemoveAll would be to delegate to here.
{ "resource": "" }
c157565
train
// Get gets the named file from stor using the stor's default consistency strategy.
{ "resource": "" }
c157566
train
// List lists the files matching prefix from stor using the stor's default consistency strategy.
{ "resource": "" }
c157567
train
// NewStorageSimpleStreamsDataSource returns a new datasource reading from the specified storage.
{ "resource": "" }
c157568
train
// Read reads the current meter status information from disk.
{ "resource": "" }
c157569
train
// Write stores the supplied status information to disk.
{ "resource": "" }
c157570
train
// NewContainerManager returns a manager object that can start and stop kvm // containers.
{ "resource": "" }
c157571
train
// ParseConstraintsToStartParams takes a constraints object and returns a bare // StartParams object that has Memory, Cpu, and Disk populated. If there are // no defined values in the constraints for those fields, default values are // used. Other constrains cause a warning to be emitted.
{ "resource": "" }
c157572
train
// unitAccessor creates a accessUnit function for accessing a unit
{ "resource": "" }
c157573
train
// NewUniterAPIV11 creates an instance of the V11 uniter API.
{ "resource": "" }
c157574
train
// NewUniterAPIV10 creates an instance of the V10 uniter API.
{ "resource": "" }
c157575
train
// NewUniterAPIV9 creates an instance of the V9 uniter API.
{ "resource": "" }
c157576
train
// NewUniterAPIV8 creates an instance of the V8 uniter API.
{ "resource": "" }
c157577
train
// NewUniterAPIV7 creates an instance of the V7 uniter API.
{ "resource": "" }
c157578
train
// NewUniterAPIV6 creates an instance of the V6 uniter API.
{ "resource": "" }
c157579
train
// NewUniterAPIV5 creates an instance of the V5 uniter API.
{ "resource": "" }
c157580
train
// NewUniterAPIV4 creates an instance of the V4 uniter API.
{ "resource": "" }
c157581
train
// PublicAddress returns the public address for each given unit, if set.
{ "resource": "" }
c157582
train
// AvailabilityZone returns the availability zone for each given unit, if applicable.
{ "resource": "" }
c157583
train
// Resolved returns the current resolved setting for each given unit.
{ "resource": "" }
c157584
train
// ClearResolved removes any resolved setting from each given unit.
{ "resource": "" }
c157585
train
// HasSubordinates returns the whether each given unit has any subordinates.
{ "resource": "" }
c157586
train
// CharmModifiedVersion returns the most CharmModifiedVersion for all given // units or applications.
{ "resource": "" }
c157587
train
// CharmURL returns the charm URL for all given units or applications.
{ "resource": "" }
c157588
train
// SetCharmURL sets the charm URL for each given unit. An error will // be returned if a unit is dead, or the charm URL is not know.
{ "resource": "" }
c157589
train
// WorkloadVersion returns the workload version for all given units or applications.
{ "resource": "" }
c157590
train
// SetWorkloadVersion sets the workload version for each given unit. An error will // be returned if a unit is dead.
{ "resource": "" }
c157591
train
// ConfigSettings returns the complete set of application charm config // settings available to each given unit.
{ "resource": "" }
c157592
train
// Actions returns the Actions by Tags passed and ensures that the Unit asking // for them is the same Unit that has the Actions.
{ "resource": "" }
c157593
train
// RelationById returns information about all given relations, // specified by their ids, including their key and the local // endpoint.
{ "resource": "" }
c157594
train
// RelationsStatus returns for each unit the corresponding relation and status information.
{ "resource": "" }
c157595
train
// Refresh retrieves the latest values for attributes on this unit.
{ "resource": "" }
c157596
train
// UpdateSettings persists all changes made to the local settings of // all given pairs of relation and unit. Keys with empty values are // considered a signal to delete these values.
{ "resource": "" }
c157597
train
// WatchUnitAddresses returns a NotifyWatcher for observing changes // to each unit's addresses.
{ "resource": "" }
c157598
train
// AddMetricBatches adds the metrics for the specified unit.
{ "resource": "" }
c157599
train
// V4 specific methods. // specific methods - the new SLALevel, NetworkInfo and // WatchUnitRelations methods. // SLALevel returns the model's SLA level.
{ "resource": "" }