_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c155400
train
// Add address to a device in list or create a new device with this address.
{ "resource": "" }
c155401
train
// MigrationPhase is part of the Backend interface.
{ "resource": "" }
c155402
train
// ToolsStorage returns a new binarystorage.StorageCloser that stores tools // metadata in the "juju" database "toolsmetadata" collection.
{ "resource": "" }
c155403
train
// GUIStorage returns a new binarystorage.StorageCloser that stores GUI archive // metadata in the "juju" database "guimetadata" collection.
{ "resource": "" }
c155404
train
// NewMockStateModel creates a new mock instance
{ "resource": "" }
c155405
train
// ModelConfig mocks base method
{ "resource": "" }
c155406
train
// ModelConfig indicates an expected call of ModelConfig
{ "resource": "" }
c155407
train
// pinOp creates a pin instance from the input lease name, // then sends it on the input channel.
{ "resource": "" }
c155408
train
// leaseKey returns a key for the manager's binding and the input lease name.
{ "resource": "" }
c155409
train
// remoteRelationsFacadeForModelFunc returns a function that // can be used to construct instances which manage remote relation // changes for a given model. // For now we use a facade, but in future this may evolve into a REST caller.
{ "resource": "" }
c155410
train
// NewInstance builds an instance from the provided summary and spec // and returns it.
{ "resource": "" }
c155411
train
// RootDisk returns an AttachedDisk
{ "resource": "" }
c155412
train
// RootDiskGB returns the size of the instance's root disk. If it // cannot be determined then 0 is returned.
{ "resource": "" }
c155413
train
// NetworkInterfaces returns the details of the network connection for // this instance.
{ "resource": "" }
c155414
train
// packMetadata composes the provided data into the format required // by the GCE API.
{ "resource": "" }
c155415
train
// unpackMetadata decomposes the provided data from the format used // in the GCE API.
{ "resource": "" }
c155416
train
// NewFacade returns a new Facade based on an existing API connection.
{ "resource": "" }
c155417
train
// PublicAddress returns the public address for the SSH target // provided. The target may be provided as a machine ID or unit name.
{ "resource": "" }
c155418
train
// AllAddresses returns all addresses for the SSH target provided. The target // may be provided as a machine ID or unit name.
{ "resource": "" }
c155419
train
// PublicKeys returns the SSH public host keys for the SSH target // provided. The target may be provided as a machine ID or unit name.
{ "resource": "" }
c155420
train
// Proxy returns whether SSH connections should be proxied through the // controller hosts for the associated model.
{ "resource": "" }
c155421
train
// NewLeadershipSettingsAccessor returns a new LeadershipSettingsAccessor.
{ "resource": "" }
c155422
train
// Merge merges the provided settings into the leadership settings for // the given application and unit. Only leaders of a given application may perform // this operation.
{ "resource": "" }
c155423
train
// Read retrieves the leadership settings for the given application // ID. Anyone may perform this operation.
{ "resource": "" }
c155424
train
// WatchLeadershipSettings returns a watcher which can be used to wait // for leadership settings changes to be made for a given application ID.
{ "resource": "" }
c155425
train
// // Prepare functions for building bulk-calls. //
{ "resource": "" }
c155426
train
// StorageDetails retrieves details about desired storage instances.
{ "resource": "" }
c155427
train
// ListStorageDetails lists all storage.
{ "resource": "" }
c155428
train
// ListPools returns a list of pools that matches given filter. // If no filter was provided, a list of all pools is returned.
{ "resource": "" }
c155429
train
// CreatePool creates pool with specified parameters.
{ "resource": "" }
c155430
train
// RemovePool removes the named pool
{ "resource": "" }
c155431
train
// UpdatePool updates a pool with specified parameters.
{ "resource": "" }
c155432
train
// ListVolumes lists volumes for desired machines. // If no machines provided, a list of all volumes is returned.
{ "resource": "" }
c155433
train
// ListFilesystems lists filesystems for desired machines. // If no machines provided, a list of all filesystems is returned.
{ "resource": "" }
c155434
train
// Attach attaches existing storage to a unit.
{ "resource": "" }
c155435
train
// Remove removes the specified storage entities from the model, // optionally destroying them.
{ "resource": "" }
c155436
train
// Detach detaches the specified storage entities.
{ "resource": "" }
c155437
train
// Import imports storage into the model.
{ "resource": "" }
c155438
train
// Set updates the stored settings to the new ones passed in.
{ "resource": "" }
c155439
train
// InstallInDefaultTransport sets the proxy resolution used by the // default HTTP transport to use the proxy details stored in this // ProxyConfig. Requests made without an explicit transport will // respect these proxy settings.
{ "resource": "" }
c155440
train
// getBlockAPI returns a block api for listing blocks.
{ "resource": "" }
c155441
train
// tryAPI attempts to open the API and makes a trivial call // to check if the API is available yet.
{ "resource": "" }
c155442
train
// BootstrapEndpointAddresses returns the addresses of the bootstrapped instance.
{ "resource": "" }
c155443
train
// ValidateIaasController returns an error if the controller // is not an IAAS controller.
{ "resource": "" }
c155444
train
// charmStoreResources returns which resources revisions will need to be retrieved // either as they where explicitly requested by the user for that rev or they // weren't provided by the user.
{ "resource": "" }
c155445
train
// getDockerDetailsData determines if path is a local file path and extracts the // details from that otherwise path is considered to be a registry path.
{ "resource": "" }
c155446
train
// NewFacadeV1 provides the signature required for facade registration // version 1.
{ "resource": "" }
c155447
train
// NewFacadeV2 provides the signature required for facade registration // for version 2.
{ "resource": "" }
c155448
train
// NewBundleAPI returns the new Bundle API facade.
{ "resource": "" }
c155449
train
// NewBundleAPIv1 returns the new Bundle APIv1 facade.
{ "resource": "" }
c155450
train
// GetChanges returns the list of changes required to deploy the given bundle // data. The changes are sorted by requirements, so that they can be applied in // order.
{ "resource": "" }
c155451
train
// ExportBundle exports the current model configuration as bundle.
{ "resource": "" }
c155452
train
// CopyRemoteImage accepts an image sourced from a remote server and copies it // to the local cache
{ "resource": "" }
c155453
train
// seriesRemoteAliases returns the aliases to look for in remotes.
{ "resource": "" }
c155454
train
// NewFacade creates a new server-side machineactions API end point.
{ "resource": "" }
c155455
train
// Actions returns the Actions by Tags passed and ensures that the machine asking // for them is the machine that has the actions
{ "resource": "" }
c155456
train
// BeginActions marks the actions represented by the passed in Tags as running.
{ "resource": "" }
c155457
train
// FinishActions saves the result of a completed Action
{ "resource": "" }
c155458
train
// WatchActionNotifications returns a StringsWatcher for observing // incoming action calls to a machine.
{ "resource": "" }
c155459
train
// ParentDevice implements LinkLayerDevice by wrapping the response from the // inner device's call in a new instance of linkLayerDevice.
{ "resource": "" }
c155460
train
// LinkLayerDevicesForSpaces implements Machine by unwrapping the inner // state.Machine call and wrapping the raw state.LinkLayerDevice references // with the local LinkLayerDevice implementation.
{ "resource": "" }
c155461
train
// AllLinkLayerDevices implements Machine by wrapping each // state.LinkLayerDevice reference in returned collection with the local // LinkLayerDevice implementation.
{ "resource": "" }
c155462
train
// Add the named component factory func to the registry.
{ "resource": "" }
c155463
train
// Component implements hooks.Context.
{ "resource": "" }
c155464
train
// UnitStatus will return the status for the current Unit.
{ "resource": "" }
c155465
train
// ApplicationStatus returns the status for the application and all the units on // the application to which this context unit belongs, only if this unit is // the leader.
{ "resource": "" }
c155466
train
// SetUnitStatus will set the given status for this unit.
{ "resource": "" }
c155467
train
// SetApplicationStatus will set the given status to the application to which this // unit's belong, only if this unit is the leader.
{ "resource": "" }
c155468
train
// CloudSpec return the cloud specification for the running unit's model
{ "resource": "" }
c155469
train
// ActionName returns the name of the action.
{ "resource": "" }
c155470
train
// ActionParams simply returns the arguments to the Action.
{ "resource": "" }
c155471
train
// SetActionMessage sets a message for the Action, usually an error message.
{ "resource": "" }
c155472
train
// SetActionFailed sets the fail state of the action.
{ "resource": "" }
c155473
train
// UpdateActionResults inserts new values for use with action-set and // action-fail. The results struct will be delivered to the controller // upon completion of the Action. It returns an error if not called on an // Action-containing HookContext.
{ "resource": "" }
c155474
train
// AddMetric adds metrics to the hook context.
{ "resource": "" }
c155475
train
// AddMetricLabels adds metrics with labels to the hook context.
{ "resource": "" }
c155476
train
// ActionData returns the context's internal action data. It's meant to be // transitory; it exists to allow uniter and runner code to keep working as // it did; it should be considered deprecated, and not used by new clients.
{ "resource": "" }
c155477
train
// HookVars returns an os.Environ-style list of strings necessary to run a hook // such that it can know what environment it's operating in, and can call back // into context.
{ "resource": "" }
c155478
train
// Prepare implements the Context interface.
{ "resource": "" }
c155479
train
// Flush implements the Context interface.
{ "resource": "" }
c155480
train
// finalizeAction passes back the final status of an Action hook to state. // It wraps any errors which occurred in normal behavior of the Action run; // only errors passed in unhandledErr will be returned.
{ "resource": "" }
c155481
train
// killCharmHook tries to kill the current running charm hook.
{ "resource": "" }
c155482
train
// UnitWorkloadVersion returns the version of the workload reported by // the current unit.
{ "resource": "" }
c155483
train
// SetUnitWorkloadVersion sets the current unit's workload version to // the specified value.
{ "resource": "" }
c155484
train
// NetworkInfo returns the network info for the given bindings on the given relation.
{ "resource": "" }
c155485
train
// ImageMetadata returns an array of imagemetadata.ImageMetadata for // all images that are currently in cache, matching the provided series // If defaultVirtType is specified, all generic images will inherit the // value of defaultVirtType.
{ "resource": "" }
c155486
train
// SupportedShapes returns the InstanceTypes available for images matching // the supplied series
{ "resource": "" }
c155487
train
// name returns the name of the current model for the specified controller // if one is set, otherwise the controller name with an indicator that it // is the name of a controller and not a model.
{ "resource": "" }
c155488
train
// String returns the details of the connection.
{ "resource": "" }
c155489
train
// AddOfferConnection creates a new offer connection record, which records details about a // relation made from a remote model to an offer in the local model.
{ "resource": "" }
c155490
train
// OfferConnections returns the offer connections for an offer.
{ "resource": "" }
c155491
train
// OfferConnectionForRelation returns the offer connection for the specified relation.
{ "resource": "" }
c155492
train
// OfferConnectionsForUser returns the offer connections for the specified user.
{ "resource": "" }
c155493
train
// RemoteConnectionStatus returns summary information about connections to the specified offer.
{ "resource": "" }
c155494
train
// NewMultiwatcher creates a new watcher that can observe // changes to an underlying store manager.
{ "resource": "" }
c155495
train
// newStoreManagerNoRun creates the store manager // but does not start its run loop.
{ "resource": "" }
c155496
train
// newDeadStoreManager returns a store manager instance // that is already dead and always returns the given error.
{ "resource": "" }
c155497
train
// newStoreManager returns a new storeManager that retrieves information // using the given backing.
{ "resource": "" }
c155498
train
// handle processes a request from a Multiwatcher to the storeManager.
{ "resource": "" }
c155499
train
// respond responds to all outstanding requests that are satisfiable.
{ "resource": "" }