_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c155900
train
// unitStorageConstraints returns storage constraints for this unit, // or an error if the unit or its constraints cannot be obtained.
{ "resource": "" }
c155901
train
// NewMockPinner creates a new mock instance
{ "resource": "" }
c155902
train
// PinLeadership mocks base method
{ "resource": "" }
c155903
train
// PinLeadership indicates an expected call of PinLeadership
{ "resource": "" }
c155904
train
// PinnedLeadership mocks base method
{ "resource": "" }
c155905
train
// PinnedLeadership indicates an expected call of PinnedLeadership
{ "resource": "" }
c155906
train
// NewStorageImporter returns a new StorageImporter, // given a StorageCommandBase.
{ "resource": "" }
c155907
train
// New returns a new unitAssigner api instance.
{ "resource": "" }
c155908
train
// AssignUnits assigns the units with the given ids to the correct machine. The // error results are returned in the same order as the given entities.
{ "resource": "" }
c155909
train
// WatchUnitAssignments returns a strings watcher that is notified when new unit // assignments are added to the db.
{ "resource": "" }
c155910
train
// SetAgentStatus will set status for agents of Units passed in args, if one // of the args is not an Unit it will fail.
{ "resource": "" }
c155911
train
// HandleAction receives a name and a map of parameters for a given machine action. // It will handle that action in a specific way and return a results map suitable for ActionFinish.
{ "resource": "" }
c155912
train
// UploadTools prepends the model UUID to the args passed to the migration client.
{ "resource": "" }
c155913
train
// UploadCharm prepends the model UUID to the args passed to the migration client.
{ "resource": "" }
c155914
train
// UploadResource prepends the model UUID to the args passed to the migration client.
{ "resource": "" }
c155915
train
// SetPlaceholderResource prepends the model UUID to the args passed to the migration client.
{ "resource": "" }
c155916
train
// SetUnitResource prepends the model UUID to the args passed to the migration client.
{ "resource": "" }
c155917
train
// EntityId returns a unique identifier for a machine across // models.
{ "resource": "" }
c155918
train
// NewStatusInfo return a new multiwatcher StatusInfo from a // status StatusInfo.
{ "resource": "" }
c155919
train
// EntityId returns a unique identifier for an application across // models.
{ "resource": "" }
c155920
train
// EntityId returns a unique identifier for an charm across // models.
{ "resource": "" }
c155921
train
// EntityId returns a unique identifier for a remote application across models.
{ "resource": "" }
c155922
train
// EntityId returns a unique identifier for an application offer across models.
{ "resource": "" }
c155923
train
// EntityId returns a unique identifier for a unit across // models.
{ "resource": "" }
c155924
train
// EntityId returns a unique identifier for an action across // models.
{ "resource": "" }
c155925
train
// EntityId returns a unique identifier for a relation across // models.
{ "resource": "" }
c155926
train
// EntityId returns a unique identifier for an annotation across // models.
{ "resource": "" }
c155927
train
// AnyJobNeedsState returns true if any of the provided jobs // require a state connection.
{ "resource": "" }
c155928
train
// EntityId returns a unique identifier for a block across // models.
{ "resource": "" }
c155929
train
// EntityId returns a unique identifier for an model.
{ "resource": "" }
c155930
train
// SetFlags sets utc and format flags based on user specified options.
{ "resource": "" }
c155931
train
// Run implements Command.Run for baseMachinesCommand.
{ "resource": "" }
c155932
train
//generateListVolumeOutput returns a map of volume info
{ "resource": "" }
c155933
train
// convertToVolumeInfo returns a map of volume IDs to volume info.
{ "resource": "" }
c155934
train
// ReadAttrs reads attributes from the specified files, and then overlays // the results with the k=v attributes.
{ "resource": "" }
c155935
train
// ReadConfigPairs returns just the k=v attributes.
{ "resource": "" }
c155936
train
// AbsoluteFileNames returns the absolute path of any file names specified.
{ "resource": "" }
c155937
train
// WarnConstraintAliases shows a warning to the user that they have used an // alias for a constraint that might go away sometime.
{ "resource": "" }
c155938
train
// ParseConstraints parses the given constraints and uses WarnConstraintAliases // if any aliases were used.
{ "resource": "" }
c155939
train
// Manifold builds a dependency.Manifold for running a lease manager.
{ "resource": "" }
c155940
train
// NewWorker wraps NewManager to return worker.Worker for testability.
{ "resource": "" }
c155941
train
// NewFanConfigurerAPI creates a new FanConfigurer API endpoint on server-side.
{ "resource": "" }
c155942
train
// FanConfig returns current FAN configuration.
{ "resource": "" }
c155943
train
// SetRebootFlag sets the reboot flag of a machine to a boolean value. It will also // do a lazy create of a reboot document if needed; i.e. If a document // does not exist yet for this machine, it will create it.
{ "resource": "" }
c155944
train
// GetRebootFlag returns the reboot flag for this machine.
{ "resource": "" }
c155945
train
// newAPIWithBacking creates a new server-side Spaces API facade with // the given Backing.
{ "resource": "" }
c155946
train
// NewAPIV2 is a wrapper that creates a V2 spaces API.
{ "resource": "" }
c155947
train
// ListSpaces lists all the available spaces and their associated subnets.
{ "resource": "" }
c155948
train
// RefreshSpaces refreshes spaces from substrate
{ "resource": "" }
c155949
train
// NewMockCheckoutCommandAPI creates a new mock instance
{ "resource": "" }
c155950
train
// HasActiveBranch mocks base method
{ "resource": "" }
c155951
train
// HasActiveBranch indicates an expected call of HasActiveBranch
{ "resource": "" }
c155952
train
// newAPIConnWorker returns a worker that exists for as long as the associated // connection, and provides access to a base.APICaller via its manifold's Output // func. If the worker is killed, the connection will be closed; and if the // connection is broken, the worker will be killed. // // The lack of error return i...
{ "resource": "" }
c155953
train
// Validate validates the observer factory configuration.
{ "resource": "" }
c155954
train
// NewObserverFactory returns a function that, when called, returns a new // Observer. NewObserverFactory registers the API request metrics, and // each Observer updates those metrics.
{ "resource": "" }
c155955
train
// RPCObserver is part of the observer.Observer interface.
{ "resource": "" }
c155956
train
// ServerRequest is part of the rpc.Observer interface.
{ "resource": "" }
c155957
train
// ServerReply is part of the rpc.Observer interface.
{ "resource": "" }
c155958
train
// WatchBlockDevices returns a new NotifyWatcher watching for // changes to block devices associated with the specified machine.
{ "resource": "" }
c155959
train
// BlockDevices returns the BlockDeviceInfo for the specified machine.
{ "resource": "" }
c155960
train
// setMachineBlockDevices updates the blockdevices collection with the // currently attached block devices. Previously recorded block devices // not in the list will be removed.
{ "resource": "" }
c155961
train
// NewMockLock creates a new mock instance
{ "resource": "" }
c155962
train
// Report mocks base method
{ "resource": "" }
c155963
train
// NewClient creates a new client-side CrossModelRelations facade.
{ "resource": "" }
c155964
train
// NewClientWithCache creates a new client-side CrossModelRelations facade // with the specified cache.
{ "resource": "" }
c155965
train
// handleError is used to process an error obtained when making a facade call. // If the error indicates that a macaroon discharge is required, this is done // and the resulting discharge macaroons passed back so the api call can be retried.
{ "resource": "" }
c155966
train
// PublishRelationChange publishes relation changes to the // model hosting the remote application involved in the relation.
{ "resource": "" }
c155967
train
// RegisterRemoteRelations sets up the remote model to participate // in the specified relations.
{ "resource": "" }
c155968
train
// WatchRelationUnits returns a watcher that notifies of changes to the // units in the remote model for the relation with the given remote token.
{ "resource": "" }
c155969
train
// RelationUnitSettings returns the relation unit settings for the given relation units in the remote model.
{ "resource": "" }
c155970
train
// WatchRelationSuspendedStatus starts a RelationStatusWatcher for watching the life and // suspended status of the specified relation in the remote model.
{ "resource": "" }
c155971
train
// WatchOfferStatus starts an OfferStatusWatcher for watching the status // of the specified offer in the remote model.
{ "resource": "" }
c155972
train
// NewRemoteEndpointsAPI returns a remote endpoints api for the root api endpoint // that the command returns.
{ "resource": "" }
c155973
train
// convertRemoteEndpoints takes any number of api-formatted remote applications' endpoints and // creates a collection of ui-formatted endpoints.
{ "resource": "" }
c155974
train
// finishInstanceConfig updates args.InstanceConfig in place. Setting up // the API, StateServing, and SSHkeys information.
{ "resource": "" }
c155975
train
// buildInstanceSpec builds an instance spec from the provided args // and returns it. This includes pulling the simplestreams data for the // machine type, region, and other constraints.
{ "resource": "" }
c155976
train
// findInstanceSpec initializes a new instance spec for the given // constraints and returns it. This only covers populating the // initial data for the spec.
{ "resource": "" }
c155977
train
// getDisks builds the raw spec for the disks that should be attached to // the new instances and returns it. This will always include a root // disk with characteristics determined by the provides args and // constraints.
{ "resource": "" }
c155978
train
// Remove deletes the backups defined by ID from the database.
{ "resource": "" }
c155979
train
// New returns a worker that exposes the result of the configured // predicate when applied to the configured entity's life value, // and fails with ErrValueChanged when the result changes.
{ "resource": "" }
c155980
train
// GetNewPolicyFunc returns a state.NewPolicyFunc that will return // a state.Policy implemented in terms of either environs.Environ // or caas.Broker and related types.
{ "resource": "" }
c155981
train
// Prechecker implements state.Policy.
{ "resource": "" }
c155982
train
// ConfigValidator implements state.Policy.
{ "resource": "" }
c155983
train
// ProviderConfigSchemaSource implements state.Policy.
{ "resource": "" }
c155984
train
// ConstraintsValidator implements state.Policy.
{ "resource": "" }
c155985
train
// InstanceDistributor implements state.Policy.
{ "resource": "" }
c155986
train
// StorageProviderRegistry implements state.Policy.
{ "resource": "" }
c155987
train
// NewStorageProviderRegistryForModel returns a storage provider registry // for the specified model.
{ "resource": "" }
c155988
train
// NewStorageProviderRegistry returns a storage.ProviderRegistry that chains // the provided registry with the common storage providers.
{ "resource": "" }
c155989
train
// IsBootstrapAttribute reports whether or not the specified // attribute name is only relevant during bootstrap.
{ "resource": "" }
c155990
train
// Validate validates the controller configuration.
{ "resource": "" }
c155991
train
// readFileAttr reads the contents of an attribute from a file, if the // corresponding "-path" attribute is set, or otherwise from a default // path.
{ "resource": "" }
c155992
train
// NewLoopDeviceManager returns a new LoopDeviceManager for dealing // with storage loop devices on the local machine.
{ "resource": "" }
c155993
train
// DetachLoopDevices detaches loop devices that are backed by files // inside the given root filesystem with the given prefix.
{ "resource": "" }
c155994
train
// dispose closes all dbloggers in the map, and clears the memory. This // must not be called concurrently with any other dbloggers methods.
{ "resource": "" }
c155995
train
// logToFile writes a single log message to the logsink log file.
{ "resource": "" }
c155996
train
// Validate checks that the state initialization parameters are valid.
{ "resource": "" }
c155997
train
// InitDatabase creates all the collections and indices in a Juju database.
{ "resource": "" }
c155998
train
// Execute implements the svc.Handler interface
{ "resource": "" }
c155999
train
// checkInstanceType is used to ensure the the provided constraints // specify a recognized instance type.
{ "resource": "" }