_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c155000
train
// CommitHook is part of the operation.Callbacks interface.
{ "resource": "" }
c155001
train
// NotifyHookCompleted is part of the operation.Callbacks interface.
{ "resource": "" }
c155002
train
// NotifyHookFailed is part of the operation.Callbacks interface.
{ "resource": "" }
c155003
train
// FailAction is part of the operation.Callbacks interface.
{ "resource": "" }
c155004
train
// GetArchiveInfo is part of the operation.Callbacks interface.
{ "resource": "" }
c155005
train
// SetCurrentCharm is part of the operation.Callbacks interface.
{ "resource": "" }
c155006
train
// SetExecutingStatus is part of the operation.Callbacks interface.
{ "resource": "" }
c155007
train
// SetUpgradeSeriesStatus is part of the operation.Callbacks interface.
{ "resource": "" }
c155008
train
// makeContainer makes the environment's control container, the // place where bootstrap information and deployed charms // are stored. To avoid two round trips on every PUT operation, // we do this only once for each environ.
{ "resource": "" }
c155009
train
// ShouldRetry is specified in the StorageReader interface.
{ "resource": "" }
c155010
train
// RemoveAll is specified in the StorageWriter interface.
{ "resource": "" }
c155011
train
// maybeNotFound returns a errors.NotFoundError if the root cause of the specified error is due to a file or // container not being found.
{ "resource": "" }
c155012
train
// ReadAccountsFile loads all accounts defined in a given file. // If the file is not found, it is not an error.
{ "resource": "" }
c155013
train
// WriteAccountsFile marshals to YAML details of the given accounts // and writes it to the accounts file.
{ "resource": "" }
c155014
train
// ParseAccounts parses the given YAML bytes into accounts metadata.
{ "resource": "" }
c155015
train
// exec runs the given command using Exec if specified, or // os.exec.Command.
{ "resource": "" }
c155016
train
// run attempts to execute "az" with the given arguments. Unmarshalling // the json output into v.
{ "resource": "" }
c155017
train
// Token creates an adal.Token from the AccessToken. This token can be // used with go-autorest to access azure endpoints.
{ "resource": "" }
c155018
train
// GetAccessToken gets an access token from the Azure CLI to access the // given resource using the given subscription. Either subscription or // resource may be empty in which case the default from the az // application are used.
{ "resource": "" }
c155019
train
// ShowAccount returns the account details for the account with the given // subscription ID. If the subscription is empty then the default Azure // CLI account is returned.
{ "resource": "" }
c155020
train
// ListAccounts returns the details for all accounts available in the // Azure CLI.
{ "resource": "" }
c155021
train
// FindAccountsWithCloudName returns the details for all accounts with // the given cloud name..
{ "resource": "" }
c155022
train
// ShowCloud returns the details of the cloud with the given name. If the // name is empty then the details of the default cloud will be returned.
{ "resource": "" }
c155023
train
// FindCloudsWithResourceManagerEndpoint returns a list of clouds which // use the given url for it's resource manager endpoint.
{ "resource": "" }
c155024
train
// ListClouds returns the details for all clouds available in the Azure // CLI.
{ "resource": "" }
c155025
train
// IsEmpty checks all collections on FullStatus to determine if the status is empty. // Note that only the collections are checked here as Model information will always be populated.
{ "resource": "" }
c155026
train
// DefaultSource creates a new signed simplestreams datasource for use with the // image-downloads datatype.
{ "resource": "" }
c155027
train
// NewDataSource returns a datasourceFunc from the baseURL provided.
{ "resource": "" }
c155028
train
// DownloadURL returns the URL representing the image.
{ "resource": "" }
c155029
train
// Fetch gets product results as Metadata from the provided datasources, given // some constraints and an optional filter function.
{ "resource": "" }
c155030
train
// Filter collects only matching products. Series and Arch are filtered by // imagemetadata.ImageConstraints. So this really only let's us filter on a // file type.
{ "resource": "" }
c155031
train
// NewListCloudsCommand returns a command to list cloud information.
{ "resource": "" }
c155032
train
// formatCloudsTabular writes a tabular summary of cloud information.
{ "resource": "" }
c155033
train
// Validate checks the payload info to ensure it is correct.
{ "resource": "" }
c155034
train
// IsRunning returns whether or not upstart is the local init system.
{ "resource": "" }
c155035
train
// ListServices returns the name of all installed services on the // local host.
{ "resource": "" }
c155036
train
// confPath returns the path to the service's configuration file.
{ "resource": "" }
c155037
train
// Validate returns an error if the service is not adequately defined.
{ "resource": "" }
c155038
train
// render returns the upstart configuration for the application as a slice of bytes.
{ "resource": "" }
c155039
train
// Installed returns whether the service configuration exists in the // init directory.
{ "resource": "" }
c155040
train
// Exists returns whether the service configuration exists in the // init directory with the same content that this Service would have // if installed.
{ "resource": "" }
c155041
train
// Running returns true if the Service appears to be running.
{ "resource": "" }
c155042
train
// Remove deletes the service configuration from the init directory.
{ "resource": "" }
c155043
train
// Serialize renders the conf as raw bytes.
{ "resource": "" }
c155044
train
// NewAttachStorageCommandWithAPI returns a command // used to attach storage to application units.
{ "resource": "" }
c155045
train
// NewAttachStorageCommand returns a command used to // attach storage to application units.
{ "resource": "" }
c155046
train
// Report allows a migration minion to submit whether it succeeded or // failed for a specific migration phase.
{ "resource": "" }
c155047
train
// LoggingConfig returns the loggo configuration string for the agent // specified by agentTag.
{ "resource": "" }
c155048
train
// NewDeviceBackend creates a backend for managing device.
{ "resource": "" }
c155049
train
// DeviceConstraints returns the device constraints for the specified application.
{ "resource": "" }
c155050
train
// DetermineCurrentController returns current controller on this client. // It considers commandline flags, environment variables, and current config.
{ "resource": "" }
c155051
train
// SetControllerName implements ControllerCommand.SetControllerName.
{ "resource": "" }
c155052
train
// ControllerName implements the ControllerCommand interface.
{ "resource": "" }
c155053
train
// NewControllerAPIClient returns an API client for the Controller on // the current controller using the current credentials.
{ "resource": "" }
c155054
train
// NewUserManagerAPIClient returns an API client for the UserManager on the // current controller using the current credentials.
{ "resource": "" }
c155055
train
// NewAPIRoot returns a new connection to the API server for the named model // in the specified controller.
{ "resource": "" }
c155056
train
// CurrentAccountDetails returns details of the account associated with // the current controller.
{ "resource": "" }
c155057
train
// WrapController wraps the specified ControllerCommand, returning a Command // that proxies to each of the ControllerCommand methods.
{ "resource": "" }
c155058
train
// SetFlags implements Command.SetFlags, then calls the wrapped command's SetFlags.
{ "resource": "" }
c155059
train
// Init implements Command.Init, then calls the wrapped command's Init.
{ "resource": "" }
c155060
train
// Download returns an io.ReadCloser for the given backup id.
{ "resource": "" }
c155061
train
// refresh makes a leadership request, and updates Tracker state to conform to // latest known reality.
{ "resource": "" }
c155062
train
// setLeader arranges for lease renewal.
{ "resource": "" }
c155063
train
// setMinion arranges for lease acquisition when there's an opportunity.
{ "resource": "" }
c155064
train
// isLeader returns true if leadership is guaranteed for the Tracker's duration.
{ "resource": "" }
c155065
train
// resolveClaim will send true on the supplied channel if leadership can be // successfully verified, and will always close it whether or not it sent.
{ "resource": "" }
c155066
train
// resolveWaitLeader will send true on the supplied channel if leadership can be // guaranteed for the Tracker's duration. It will then close the channel. If // leadership cannot be guaranteed, the channel is left untouched until either // the termination of the Tracker or the next invocation of setLeader; at which // ...
{ "resource": "" }
c155067
train
// resolveWaitMinion will close the supplied channel as soon as leadership cannot // be guaranteed beyond the Tracker's duration.
{ "resource": "" }
c155068
train
// NewInstanceTypeConstraints returns an instanceTypeConstraints with the passed // parameters.
{ "resource": "" }
c155069
train
// InstanceTypes returns a list of the available instance types in the provider according // to the passed constraints.
{ "resource": "" }
c155070
train
// NewServerFactory creates a new ServerFactory with sane defaults.
{ "resource": "" }
c155071
train
// isSupportedAPIVersion defines what API versions we support.
{ "resource": "" }
c155072
train
// NewEnableCommand returns a new command that eanbles previously disabled // command sets.
{ "resource": "" }
c155073
train
// Info implementsCommand.
{ "resource": "" }
c155074
train
// NewRebootAPI creates a new server-side RebootAPI facade.
{ "resource": "" }
c155075
train
// start is used by engine.AgentAPIManifold to create a StartFunc.
{ "resource": "" }
c155076
train
// Manifold returns a dependency.Manifold as configured.
{ "resource": "" }
c155077
train
// Apply runs the supplied Change against the supplied Database. If it // returns no error, the change succeeded.
{ "resource": "" }
c155078
train
// Create causes all recorded collections to be created and indexed as specified
{ "resource": "" }
c155079
train
// createCollection swallows collection-already-exists errors.
{ "resource": "" }
c155080
train
// CopyForModel is part of the Database interface.
{ "resource": "" }
c155081
train
// GetCollection is part of the Database interface.
{ "resource": "" }
c155082
train
// GetCollectionFor is part of the Database interface.
{ "resource": "" }
c155083
train
// GetRawCollection is part of the Database interface.
{ "resource": "" }
c155084
train
// TransactionRunner is part of the Database interface.
{ "resource": "" }
c155085
train
// RunTransaction is part of the Database interface.
{ "resource": "" }
c155086
train
// RunTransactionFor is part of the Database interface.
{ "resource": "" }
c155087
train
// RunRawTransaction is part of the Database interface.
{ "resource": "" }
c155088
train
// Run is part of the Database interface.
{ "resource": "" }
c155089
train
// Machine wraps state.Machine to return an implementation // of the LeadershipMachine indirection.
{ "resource": "" }
c155090
train
// NewLeadershipPinningFacade creates and returns a new leadership API. // This signature is suitable for facade registration.
{ "resource": "" }
c155091
train
// NewLeadershipPinningAPI creates and returns a new leadership API from the // input tag, Pinner implementation and facade Authorizer.
{ "resource": "" }
c155092
train
// PinnedLeadership returns all pinned applications and the entities that // require their pinned behaviour, for leadership in the current model.
{ "resource": "" }
c155093
train
// UnpinMachineApplications unpins leadership for applications represented by // units running on the auth'd machine.
{ "resource": "" }
c155094
train
// QualifiedModelName returns a Qualified model name, given either // an unqualified or qualified model name. If the input is a // fully qualified name, it is returned untouched; otherwise it is // return qualified with the logged-in user name.
{ "resource": "" }
c155095
train
// portStrings returns a list of stringified ports in the set // for the given protocol.
{ "resource": "" }
c155096
train
// union returns a new protocolPorts combining the port // ranges from both.
{ "resource": "" }
c155097
train
// remove returns a new protocolPorts with the port ranges // in the specified protocolPorts removed.
{ "resource": "" }
c155098
train
// Get implements storage.StorageReader
{ "resource": "" }
c155099
train
// List implements storage.StorageReader
{ "resource": "" }