_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c154900
train
// UpgradeCharmProfileCharmURL indicates an expected call of UpgradeCharmProfileCharmURL
{ "resource": "" }
c154901
train
// NewMockProfileBackend creates a new mock instance
{ "resource": "" }
c154902
train
// Charm indicates an expected call of Charm
{ "resource": "" }
c154903
train
// NewMockProfileCharm creates a new mock instance
{ "resource": "" }
c154904
train
// Meta mocks base method
{ "resource": "" }
c154905
train
// Meta indicates an expected call of Meta
{ "resource": "" }
c154906
train
// Revision mocks base method
{ "resource": "" }
c154907
train
// unitAssignedMachine returns the tag of the machine that the unit // is assigned to, or an error if the unit cannot be obtained or is // not assigned to a machine.
{ "resource": "" }
c154908
train
// Put implements autocert.Cache.Put.
{ "resource": "" }
c154909
train
// Get implements autocert.Cache.Get.
{ "resource": "" }
c154910
train
// Delete implements autocert.Cache.Delete.
{ "resource": "" }
c154911
train
// AllowedTargetVersion checks if targetVersion is too different from // curVersion to allow a downgrade.
{ "resource": "" }
c154912
train
// NewCleanupWorker returns a worker that ensures a cleanup function // is run after the underlying worker is finished.
{ "resource": "" }
c154913
train
// Wait ensures the cleanup func is run after the worker finishes.
{ "resource": "" }
c154914
train
// NewRequestObserver returns a new RPCObserver.
{ "resource": "" }
c154915
train
// Leave implements Observer.
{ "resource": "" }
c154916
train
// ServerRequest implements rpc.Observer.
{ "resource": "" }
c154917
train
// ServerReply implements rpc.Observer.
{ "resource": "" }
c154918
train
// NewCertificateUpdater returns a worker.Worker that watches for changes to // machine addresses and then generates a new controller certificate with those // addresses in the certificate's SAN value.
{ "resource": "" }
c154919
train
// SetUp is defined on the NotifyWatchHandler interface.
{ "resource": "" }
c154920
train
// Handle is defined on the NotifyWatchHandler interface.
{ "resource": "" }
c154921
train
// updateRequired returns true and a list of merged addresses if any of the // new addresses are not yet contained in the server cert SAN list.
{ "resource": "" }
c154922
train
// startUnitsWorkers starts 2 workers to watch for unit settings or departed changes; // one worker is for the local model, the other for the remote model.
{ "resource": "" }
c154923
train
// processConsumingRelation starts the sub-workers necessary to listen and publish // local unit settings changes, and watch and consume remote unit settings changes. // Ths will be called when a new relation is created or when a relation resumes // after being suspended.
{ "resource": "" }
c154924
train
// MaskError is used to signify that an error // should not be reported back to the caller.
{ "resource": "" }
c154925
train
// NewShowOfferedEndpointCommand constructs command that // allows to show details of offered application's endpoint.
{ "resource": "" }
c154926
train
// convertOffers takes any number of api-formatted remote applications and // creates a collection of ui-formatted offers.
{ "resource": "" }
c154927
train
// getSystemIdValues returns a url.Values object with all the 'system_ids' // from the given instanceIds stored under the specified key. This is used // to filter out instances when listing the nodes objects.
{ "resource": "" }
c154928
train
// cloudinitRunCmd returns the shell command that, when run, will create the // "machine info" file containing the hostname of a machine. // That command is destined to be used by cloudinit.
{ "resource": "" }
c154929
train
// Machine implements Machine.
{ "resource": "" }
c154930
train
// ToBase64 just transforms whatever userdata it gets to base64 format
{ "resource": "" }
c154931
train
// RenderScript renders the given cloud-config as a script, and then passes the // script through the given decorators.
{ "resource": "" }
c154932
train
// Verify ensures that the actual resource content details match // the expected ones.
{ "resource": "" }
c154933
train
// NewContentChecker returns a Checker for the provided data.
{ "resource": "" }
c154934
train
// WrapReader implements ContentChecker.
{ "resource": "" }
c154935
train
// Verify implements ContentChecker.
{ "resource": "" }
c154936
train
// NewMockCounter creates a new mock instance
{ "resource": "" }
c154937
train
// Describe indicates an expected call of Describe
{ "resource": "" }
c154938
train
// NewMockGauge creates a new mock instance
{ "resource": "" }
c154939
train
// Desc mocks base method
{ "resource": "" }
c154940
train
// Sub mocks base method
{ "resource": "" }
c154941
train
// Sub indicates an expected call of Sub
{ "resource": "" }
c154942
train
// new creates a uniquely identified type-agnostic cache resident, // registers it in the internal map, then returns it.
{ "resource": "" }
c154943
train
// mark sets all of the manager's residents to be stale. // If there were residents to mark, we set "marked" to be true.
{ "resource": "" }
c154944
train
// sweep removes stale cache residents in descending order of ID. // Lock protection of the resident map is done in "evictions" and in the // the ultimate "evict" invocations.
{ "resource": "" }
c154945
train
// evictions iterates over the cache residents and generates a map of // eviction messages and a slice for determining order of eviction. // Because the IDs are supplied in increasing order, // this ensures we never remove a resident's model before the resident itself.
{ "resource": "" }
c154946
train
// evict cleans up any resources created by this resident, // then deregisters it.
{ "resource": "" }
c154947
train
// cleanup performs all resource maintenance associated with a resident // being evicted from the cache. // Note that this method does not deregister the resident from the manager.
{ "resource": "" }
c154948
train
// cleanupWorkers calls "Stop" on all registered workers. // Note that the deregistration method should have been added the the worker's // tomb cleanup method - stopping the worker cleanly is enough to deregister.
{ "resource": "" }
c154949
train
// deregisterWorker informs the resident that we no longer care about this // worker. We expect this call to come from workers stopped by other actors // other than the resident, so we ensure Goroutine safety.
{ "resource": "" }
c154950
train
// UserFriendlyDuration translates a time in the past into a user // friendly string representation relative to the "now" time argument.
{ "resource": "" }
c154951
train
// FormatTime returns a string with the local time formatted // in an arbitrary format used for status or and localized tz // or in UTC timezone and format RFC3339 if u is specified.
{ "resource": "" }
c154952
train
// List returns image metadata that matches filter. // Empty filter will return all image metadata.
{ "resource": "" }
c154953
train
// Save saves specified image metadata. // Supports bulk saves for scenarios like cloud image metadata caching at bootstrap.
{ "resource": "" }
c154954
train
// Delete removes image metadata for given image id from stored metadata.
{ "resource": "" }
c154955
train
// FindExactTools returns only the tools that match the supplied version.
{ "resource": "" }
c154956
train
// checkToolsSeries verifies that all the given possible tools are for the // given OS series.
{ "resource": "" }
c154957
train
// PreferredStreams returns the tools streams that should be searched // for tools, based on the required version, whether devel mode is // required, and any user specified stream. The streams are in // fallback order - if there are no matching tools in one stream the // next should be checked.
{ "resource": "" }
c154958
train
// forUnitWithNames returns a selector that matches any payloads for the // supplied unit that have the supplied names.
{ "resource": "" }
c154959
train
// asDoc converts a FullPayloadInfo into an independent payloadDoc.
{ "resource": "" }
c154960
train
// asPayload converts a payloadDoc into an independent FullPayloadInfo.
{ "resource": "" }
c154961
train
// asPayloads converts a slice of payloadDocs into a corresponding slice // of independent FullPayloadInfos.
{ "resource": "" }
c154962
train
// asResults converts a slice of payloadDocs into a corresponding slice // of independent payload.Results.
{ "resource": "" }
c154963
train
// orderedResults converts payloadDocs into payload.Results, in the // order defined by names, and represents missing names in the highly // baroque fashion apparently designed into Results.
{ "resource": "" }
c154964
train
// trackOp returns a txn.Op that will either insert or update the // supplied payload, and fail if the observed precondition changes.
{ "resource": "" }
c154965
train
// untrackOp returns a txn.Op that will unconditionally remove the // identified document. If the payload doesn't exist, it returns // errAlreadyRemoved.
{ "resource": "" }
c154966
train
// setStatusOp returns a txn.Op that updates the status of the // identified payload. If the payload doesn't exist, it returns // errAlreadyRemoved.
{ "resource": "" }
c154967
train
// NewUpdateStatusTimer returns a func returning timed signal suitable for update-status hook.
{ "resource": "" }
c154968
train
// NewLoginCommand returns a new cmd.Command to handle "juju login".
{ "resource": "" }
c154969
train
// publicControllerLogin logs into the public controller at the given // host. The currentAccountDetails parameter holds existing account // information about the controller account.
{ "resource": "" }
c154970
train
// login logs into a controller using the given account details by // default, but falling back to prompting for a username and password if // necessary. The details of making an API connection are abstracted out // into the dial function because we need to dial differently depending // on whether we have some existing...
{ "resource": "" }
c154971
train
// getKnownControllerDomain returns the list of known // controller domain aliases.
{ "resource": "" }
c154972
train
// ensureNotKnownEndpoint checks whether any controllers in the local client // cache contain the provided endpoint and returns an error if that is the // case.
{ "resource": "" }
c154973
train
// NewEgressAddressWatcher creates an EgressAddressWatcher.
{ "resource": "" }
c154974
train
// Manifold returns a dependency.Manifold that will run a Worker as // configured.
{ "resource": "" }
c154975
train
// bounceErrChanged converts ErrModelRemoved to dependency.ErrUninstall.
{ "resource": "" }
c154976
train
// NewMachineAddressWatcher is the function that non-test code should // pass into ManifoldConfig.NewMachineAddressWatcher.
{ "resource": "" }
c154977
train
// ModelConfig returns the complete config for the model
{ "resource": "" }
c154978
train
// AgentVersion returns the agent version for the model config. // If no agent version is found, it returns NotFound error.
{ "resource": "" }
c154979
train
// checkModelConfig returns an error if the config is definitely invalid.
{ "resource": "" }
c154980
train
// inheritedConfigAttributes returns the merged collection of inherited config // values used as model defaults when adding models or unsetting values.
{ "resource": "" }
c154981
train
// modelConfigValues returns the values and source for the supplied model config // when combined with controller and Juju defaults.
{ "resource": "" }
c154982
train
// UpdateModelConfigDefaultValues updates the inherited settings used when creating a new model.
{ "resource": "" }
c154983
train
// ModelConfigValues returns the config values for the model represented // by this state.
{ "resource": "" }
c154984
train
// ModelConfigDefaultValues returns the default config values to be used // when creating a new model, and the origin of those values.
{ "resource": "" }
c154985
train
// checkControllerInheritedConfig returns an error if the shared local cloud config is definitely invalid.
{ "resource": "" }
c154986
train
// UpdateModelConfig adds, updates or removes attributes in the current // configuration of the model with the provided updateAttrs and // removeAttrs.
{ "resource": "" }
c154987
train
// modelConfigSources returns a slice of named model config // sources, in hierarchical order. Starting from the first source, // config is retrieved and each subsequent source adds to the // overall config values, later values override earlier ones.
{ "resource": "" }
c154988
train
// defaultInheritedConfig returns config values which are defined // as defaults in either Juju or the cloud's environ provider.
{ "resource": "" }
c154989
train
// controllerInheritedConfig returns the inherited config values // sourced from the local cloud config.
{ "resource": "" }
c154990
train
// regionInheritedConfig returns the configuration attributes for the region in // the cloud where the model is targeted.
{ "resource": "" }
c154991
train
// regionSpec returns a suitable environs.CloudRegionSpec for use in // regionInheritedConfig.
{ "resource": "" }
c154992
train
// composeModelConfigAttributes returns a set of model config settings composed from known // sources of default values overridden by model specific attributes.
{ "resource": "" }
c154993
train
// ComposeNewModelConfig returns a complete map of config attributes suitable for // creating a new model, by combining user specified values with system defaults.
{ "resource": "" }
c154994
train
// ConfigureBasic implements UserdataConfig.ConfigureBasic
{ "resource": "" }
c154995
train
// ConfigureJuju implements UserdataConfig.ConfigureJuju
{ "resource": "" }
c154996
train
// createJujuRegistryKeyCmds is going to create a juju registry key and set // permissions on it such that it's only accessible to administrators
{ "resource": "" }
c154997
train
// GetBackend wraps a State to provide a Backend interface implementation.
{ "resource": "" }
c154998
train
// Bootstrap is part of the environs.Environ interface.
{ "resource": "" }
c154999
train
// PrepareHook is part of the operation.Callbacks interface.
{ "resource": "" }