_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c4600
train
// Exists returns true if the directory for this state exists.
{ "resource": "" }
c4601
train
// Write atomically writes to disk the relation state change in hi. // It must be called after the respective hook was executed successfully. // Write doesn't validate hi but guarantees that successive writes of // the same hi are idempotent.
{ "resource": "" }
c4602
train
// start is a method on ManifoldConfig because that feels a bit cleaner // than closing over config in Manifold.
{ "resource": "" }
c4603
train
// Manifold returns a dependency.Manifold that runs an applicationscaler worker.
{ "resource": "" }
c4604
train
// ResourceTags returns tags to set on an infrastructure resource // for the specified Juju environment.
{ "resource": "" }
c4605
train
// Validate ensures that the origin type is correct.
{ "resource": "" }
c4606
train
// ValidateName ensures that the given origin name is valid within the // context of the origin type.
{ "resource": "" }
c4607
train
// OriginForMachineAgent populates a new origin for the agent.
{ "resource": "" }
c4608
train
// OriginForUnitAgent populates a new origin for the agent.
{ "resource": "" }
c4609
train
// OriginForJuju populates a new origin for the juju client.
{ "resource": "" }
c4610
train
// Validate ensures that the origin is correct.
{ "resource": "" }
c4611
train
// Validate ensures that the software info is correct.
{ "resource": "" }
c4612
train
// Handle is part of the watcher.NotifyHandler interface.
{ "resource": "" }
c4613
train
// AllInstances only returns running containers.
{ "resource": "" }
c4614
train
// MaintainInstance ensures the container's host has the required iptables and // routing rules to make the container visible to both the host and other // machines on the same subnet.
{ "resource": "" }
c4615
train
// LXDProfileNames returns all the profiles for a container that the broker // currently is aware of. // LXDProfileNames implements environs.LXDProfiler.
{ "resource": "" }
c4616
train
// coreChange returns the core package representation of this change. // Stored keys are unescaped.
{ "resource": "" }
c4617
train
// Config returns all changed charm configuration for the generation. // The persisted objects are converted to core changes.
{ "resource": "" }
c4618
train
// AssignApplication indicates that the application with the input name has had // changes in this generation.
{ "resource": "" }
c4619
train
// AssignAllUnits ensures that all units of the input application are // designated as tracking the branch, by adding the unit names // to the generation.
{ "resource": "" }
c4620
train
// AssignUnit indicates that the unit with the input name is tracking this // branch, by adding the name to the generation.
{ "resource": "" }
c4621
train
// UpdateCharmConfig applies the input changes to the input application's // charm configuration under this branch. // the incoming charm settings are assumed to have been validated.
{ "resource": "" }
c4622
train
// Commit marks the generation as completed and assigns it the next value from // the generation sequence. The new generation ID is returned.
{ "resource": "" }
c4623
train
// Refresh refreshes the contents of the generation from the underlying state.
{ "resource": "" }
c4624
train
// AddBranch creates a new branch in the current model.
{ "resource": "" }
c4625
train
// AddBranch creates a new branch in the current model. // A branch cannot be created with the same name as another "in-flight" branch. // The input user indicates the operator who invoked the creation.
{ "resource": "" }
c4626
train
// Branches returns all "in-flight" branches for the model.
{ "resource": "" }
c4627
train
// Branches returns all "in-flight" branches.
{ "resource": "" }
c4628
train
// makeItemChanges generates a persistable collection of changes from a core // settings representation, with keys escaped for Mongo.
{ "resource": "" }
c4629
train
// NewPodSpecSetCommand makes a pod-spec-set command.
{ "resource": "" }
c4630
train
// Id returns the id of the machine being tracked.
{ "resource": "" }
c4631
train
// Addresses returns the machine addresses from state.
{ "resource": "" }
c4632
train
// SelectMongoAddress returns the best address on the machine for MongoDB peer // use, using the input space. // An error is returned if the empty space is supplied.
{ "resource": "" }
c4633
train
// GetPotentialMongoHostPorts simply returns all the available addresses // with the Mongo port appended.
{ "resource": "" }
c4634
train
// AllLinkLayerDevices mocks base method
{ "resource": "" }
c4635
train
// AllSpaces mocks base method
{ "resource": "" }
c4636
train
// ContainerType mocks base method
{ "resource": "" }
c4637
train
// IsManual mocks base method
{ "resource": "" }
c4638
train
// LinkLayerDevicesForSpaces mocks base method
{ "resource": "" }
c4639
train
// Raw mocks base method
{ "resource": "" }
c4640
train
// Raw indicates an expected call of Raw
{ "resource": "" }
c4641
train
// RemoveAllAddresses mocks base method
{ "resource": "" }
c4642
train
// SetConstraints mocks base method
{ "resource": "" }
c4643
train
// SetConstraints indicates an expected call of SetConstraints
{ "resource": "" }
c4644
train
// SetDevicesAddresses mocks base method
{ "resource": "" }
c4645
train
// SetLinkLayerDevices mocks base method
{ "resource": "" }
c4646
train
// SetParentLinkLayerDevicesBeforeTheirChildren mocks base method
{ "resource": "" }
c4647
train
// NewExecutor returns an Executor which takes its starting state from the // supplied path, and records state changes there. If no state file exists, // the executor's starting state will include a queued Install hook, for // the charm identified by the supplied func.
{ "resource": "" }
c4648
train
// Run is part of the Executor interface.
{ "resource": "" }
c4649
train
// Skip is part of the Executor interface.
{ "resource": "" }
c4650
train
// This file contains utility functions related to documents and // collections that contain data for multiple models. // ensureModelUUID returns an model UUID prefixed document ID. The // prefix is only added if it isn't already there.
{ "resource": "" }
c4651
train
// ensureModelUUIDIfString will call ensureModelUUID, but only if the id // is a string. The id will be left untouched otherwise.
{ "resource": "" }
c4652
train
// splitDocID returns the 2 parts of model UUID prefixed // document ID. If the id is not in the expected format the final // return value will be false.
{ "resource": "" }
c4653
train
// toBsonD converts an arbitrary value to a bson.D via marshaling // through BSON. This is still done even if the input is already a // bson.D so that we end up with a copy of the input.
{ "resource": "" }
c4654
train
// addAddress appends a new server derived from the given // address to servers if the address is not already found // there.
{ "resource": "" }
c4655
train
// Client returns an object that can be used // to access client-specific functionality.
{ "resource": "" }
c4656
train
// Uniter returns a version of the state that provides functionality // required by the uniter worker.
{ "resource": "" }
c4657
train
// Reboot returns access to the Reboot API
{ "resource": "" }
c4658
train
// ServerVersion holds the version of the API server that we are connected to. // It is possible that this version is Zero if the server does not report this // during login. The second result argument indicates if the version number is // set.
{ "resource": "" }
c4659
train
// Config returns a new ociCommon.ConfigurationProvider instance
{ "resource": "" }
c4660
train
// NewValidator returns a new constraints Validator instance.
{ "resource": "" }
c4661
train
// RegisterConflicts is defined on Validator.
{ "resource": "" }
c4662
train
// RegisterUnsupported is defined on Validator.
{ "resource": "" }
c4663
train
// RegisterVocabulary is defined on Validator.
{ "resource": "" }
c4664
train
// UpdateVocabulary is defined on Validator.
{ "resource": "" }
c4665
train
// checkConflicts returns an error if the constraints Value contains conflicting attributes.
{ "resource": "" }
c4666
train
// checkUnsupported returns any unsupported attributes.
{ "resource": "" }
c4667
train
// checkValidValues returns an error if the constraints value contains an // attribute value which is not allowed by the vocab which may have been // registered for it.
{ "resource": "" }
c4668
train
// checkInVocab returns an error if the attribute value is not allowed by the // vocab which may have been registered for it.
{ "resource": "" }
c4669
train
// withFallbacks returns a copy of v with nil values taken from vFallback.
{ "resource": "" }
c4670
train
// Validate is defined on Validator.
{ "resource": "" }
c4671
train
// Merge is defined on Validator.
{ "resource": "" }
c4672
train
// createAPI returns a new image metadata API facade.
{ "resource": "" }
c4673
train
// List returns all found cloud image metadata that satisfy // given filter. // Returned list contains metadata ordered by priority.
{ "resource": "" }
c4674
train
// Save stores given cloud image metadata. // It supports bulk calls.
{ "resource": "" }
c4675
train
// Delete deletes cloud image metadata for given image ids. // It supports bulk calls.
{ "resource": "" }
c4676
train
// CreateFilesystems is specified on the storage.FilesystemSource interface.
{ "resource": "" }
c4677
train
// parseFilesystemId parses the given filesystem ID, returning the underlying // LXD storage pool name and volume name.
{ "resource": "" }
c4678
train
// ReleaseFilesystems is specified on the storage.FilesystemSource interface.
{ "resource": "" }
c4679
train
// AttachFilesystems is specified on the storage.FilesystemSource interface.
{ "resource": "" }
c4680
train
// ImportFilesystem is part of the storage.FilesystemImporter interface.
{ "resource": "" }
c4681
train
// newConstraints creates new CloudSigma constraints from juju common constraints
{ "resource": "" }
c4682
train
// GenerateContent returns a new Content for the given data stream.
{ "resource": "" }
c4683
train
// CreateDisks implements storage section of gceConnection.
{ "resource": "" }
c4684
train
// Disks implements storage section of gceConnection.
{ "resource": "" }
c4685
train
// Disk implements storage section of gceConnection.
{ "resource": "" }
c4686
train
// SetDiskLabels implements storage section of gceConnection.
{ "resource": "" }
c4687
train
// AttachDisk implements storage section of gceConnection.
{ "resource": "" }
c4688
train
// DetachDisk implements storage section of gceConnection. // disk existence is checked but not instance nor is attachment.
{ "resource": "" }
c4689
train
// InstanceDisks implements storage section of gceConnection.
{ "resource": "" }
c4690
train
// NetworkInfo implements hooks.Context.
{ "resource": "" }
c4691
train
// AddMetricLabels implements hooks.Context.
{ "resource": "" }
c4692
train
// ControllerTag mocks base method
{ "resource": "" }
c4693
train
// NewMockModel creates a new mock instance
{ "resource": "" }
c4694
train
// Branch mocks base method
{ "resource": "" }
c4695
train
// Branches mocks base method
{ "resource": "" }
c4696
train
// ModelTag indicates an expected call of ModelTag
{ "resource": "" }
c4697
train
// NewMockGeneration creates a new mock instance
{ "resource": "" }
c4698
train
// AssignAllUnits mocks base method
{ "resource": "" }
c4699
train
// AssignUnit indicates an expected call of AssignUnit
{ "resource": "" }