_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c4600
// Exists returns true if the directory for this state exists.
c4601
// 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.
c4602
// start is a method on ManifoldConfig because that feels a bit cleaner // than closing over config in Manifold.
c4603
// Manifold returns a dependency.Manifold that runs an applicationscaler worker.
c4604
// ResourceTags returns tags to set on an infrastructure resource // for the specified Juju environment.
c4605
// Validate ensures that the origin type is correct.
c4606
// ValidateName ensures that the given origin name is valid within the // context of the origin type.
c4607
// OriginForMachineAgent populates a new origin for the agent.
c4608
// OriginForUnitAgent populates a new origin for the agent.
c4609
// OriginForJuju populates a new origin for the juju client.
c4610
// Validate ensures that the origin is correct.
c4611
// Validate ensures that the software info is correct.
c4612
// Handle is part of the watcher.NotifyHandler interface.
c4613
// AllInstances only returns running containers.
c4614
// 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.
c4615
// LXDProfileNames returns all the profiles for a container that the broker // currently is aware of. // LXDProfileNames implements environs.LXDProfiler.
c4616
// coreChange returns the core package representation of this change. // Stored keys are unescaped.
c4617
// Config returns all changed charm configuration for the generation. // The persisted objects are converted to core changes.
c4618
// AssignApplication indicates that the application with the input name has had // changes in this generation.
c4619
// AssignAllUnits ensures that all units of the input application are // designated as tracking the branch, by adding the unit names // to the generation.
c4620
// AssignUnit indicates that the unit with the input name is tracking this // branch, by adding the name to the generation.
c4621
// 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.
c4622
// Commit marks the generation as completed and assigns it the next value from // the generation sequence. The new generation ID is returned.
c4623
// Refresh refreshes the contents of the generation from the underlying state.
c4624
// AddBranch creates a new branch in the current model.
c4625
// 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.
c4626
// Branches returns all "in-flight" branches for the model.
c4627
// Branches returns all "in-flight" branches.
c4628
// makeItemChanges generates a persistable collection of changes from a core // settings representation, with keys escaped for Mongo.
c4629
// NewPodSpecSetCommand makes a pod-spec-set command.
c4630
// Id returns the id of the machine being tracked.
c4631
// Addresses returns the machine addresses from state.
c4632
// 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.
c4633
// GetPotentialMongoHostPorts simply returns all the available addresses // with the Mongo port appended.
c4634
// AllLinkLayerDevices mocks base method
c4635
// AllSpaces mocks base method
c4636
// ContainerType mocks base method
c4637
// IsManual mocks base method
c4638
// LinkLayerDevicesForSpaces mocks base method
c4639
// Raw mocks base method
c4640
// Raw indicates an expected call of Raw
c4641
// RemoveAllAddresses mocks base method
c4642
// SetConstraints mocks base method
c4643
// SetConstraints indicates an expected call of SetConstraints
c4644
// SetDevicesAddresses mocks base method
c4645
// SetLinkLayerDevices mocks base method
c4646
// SetParentLinkLayerDevicesBeforeTheirChildren mocks base method
c4647
// 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.
c4648
// Run is part of the Executor interface.
c4649
// Skip is part of the Executor interface.
c4650
// 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.
c4651
// ensureModelUUIDIfString will call ensureModelUUID, but only if the id // is a string. The id will be left untouched otherwise.
c4652
// 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.
c4653
// 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.
c4654
// addAddress appends a new server derived from the given // address to servers if the address is not already found // there.
c4655
// Client returns an object that can be used // to access client-specific functionality.
c4656
// Uniter returns a version of the state that provides functionality // required by the uniter worker.
c4657
// Reboot returns access to the Reboot API
c4658
// 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.
c4659
// Config returns a new ociCommon.ConfigurationProvider instance
c4660
// NewValidator returns a new constraints Validator instance.
c4661
// RegisterConflicts is defined on Validator.
c4662
// RegisterUnsupported is defined on Validator.
c4663
// RegisterVocabulary is defined on Validator.
c4664
// UpdateVocabulary is defined on Validator.
c4665
// checkConflicts returns an error if the constraints Value contains conflicting attributes.
c4666
// checkUnsupported returns any unsupported attributes.
c4667
// 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.
c4668
// checkInVocab returns an error if the attribute value is not allowed by the // vocab which may have been registered for it.
c4669
// withFallbacks returns a copy of v with nil values taken from vFallback.
c4670
// Validate is defined on Validator.
c4671
// Merge is defined on Validator.
c4672
// createAPI returns a new image metadata API facade.
c4673
// List returns all found cloud image metadata that satisfy // given filter. // Returned list contains metadata ordered by priority.
c4674
// Save stores given cloud image metadata. // It supports bulk calls.
c4675
// Delete deletes cloud image metadata for given image ids. // It supports bulk calls.
c4676
// CreateFilesystems is specified on the storage.FilesystemSource interface.
c4677
// parseFilesystemId parses the given filesystem ID, returning the underlying // LXD storage pool name and volume name.
c4678
// ReleaseFilesystems is specified on the storage.FilesystemSource interface.
c4679
// AttachFilesystems is specified on the storage.FilesystemSource interface.
c4680
// ImportFilesystem is part of the storage.FilesystemImporter interface.
c4681
// newConstraints creates new CloudSigma constraints from juju common constraints
c4682
// GenerateContent returns a new Content for the given data stream.
c4683
// CreateDisks implements storage section of gceConnection.
c4684
// Disks implements storage section of gceConnection.
c4685
// Disk implements storage section of gceConnection.
c4686
// SetDiskLabels implements storage section of gceConnection.
c4687
// AttachDisk implements storage section of gceConnection.
c4688
// DetachDisk implements storage section of gceConnection. // disk existence is checked but not instance nor is attachment.
c4689
// InstanceDisks implements storage section of gceConnection.
c4690
// NetworkInfo implements hooks.Context.
c4691
// AddMetricLabels implements hooks.Context.
c4692
// ControllerTag mocks base method
c4693
// NewMockModel creates a new mock instance
c4694
// Branch mocks base method
c4695
// Branches mocks base method
c4696
// ModelTag indicates an expected call of ModelTag
c4697
// NewMockGeneration creates a new mock instance
c4698
// AssignAllUnits mocks base method
c4699
// AssignUnit indicates an expected call of AssignUnit