_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c154600 | train | // ListPendinglResources returns the resource data for the given
// application ID for pending resources only. | {
"resource": ""
} | ||
c154601 | train | // GetResource returns the resource data for the identified resource. | {
"resource": ""
} | ||
c154602 | train | // GetPendingResource returns the resource data for the identified resource. | {
"resource": ""
} | ||
c154603 | train | // SetUnitResource sets the resource metadata for a specific unit. | {
"resource": ""
} | ||
c154604 | train | // AddPendingResource stores the resource in the Juju model. | {
"resource": ""
} | ||
c154605 | train | // UpdatePendingResource stores the resource in the Juju model. | {
"resource": ""
} | ||
c154606 | train | // OpenResource returns metadata about the resource, and a reader for
// the resource. | {
"resource": ""
} | ||
c154607 | train | // OpenResourceForUniter returns metadata about the resource and
// a reader for the resource. The resource is associated with
// the unit once the reader is completely exhausted. | {
"resource": ""
} | ||
c154608 | train | // SetCharmStoreResources sets the "polled" resources for the
// application to the provided values. | {
"resource": ""
} | ||
c154609 | train | // NewActionFailCommand returns a new ActionFailCommand with the given context. | {
"resource": ""
} | ||
c154610 | train | // Init sets the fail message and checks for malformed invocations. | {
"resource": ""
} | ||
c154611 | train | // Run sets the Action's fail state. | {
"resource": ""
} | ||
c154612 | train | // MarkForRemoval requests that this machine be removed after any
// needed provider-level cleanup is done. | {
"resource": ""
} | ||
c154613 | train | // CompleteMachineRemovals finishes the removal of the specified
// machines. The machines must have been marked for removal
// previously. Valid-looking-but-unknown machine ids are ignored so
// that this is idempotent. | {
"resource": ""
} | ||
c154614 | train | // Init reads and verifies the cli arguments for the SetMeterStatusCommand | {
"resource": ""
} | ||
c154615 | train | // NewShowCloudCommand returns a command to list cloud information. | {
"resource": ""
} | ||
c154616 | train | // GetAllCloudDetails returns a list of all cloud details. | {
"resource": ""
} | ||
c154617 | train | // formatVolumeListTabular returns a tabular summary of volume instances. | {
"resource": ""
} | ||
c154618 | train | // SaveSpacesFromProvider loads providerSpaces into state.
// Currently it does not delete removed spaces. | {
"resource": ""
} | ||
c154619 | train | // NewActionAPIV2 returns an initialized ActionAPI for version 2. | {
"resource": ""
} | ||
c154620 | train | // NewActionAPIV3 returns an initialized ActionAPI for version 3. | {
"resource": ""
} | ||
c154621 | train | // Actions takes a list of ActionTags, and returns the full Action for
// each ID. | {
"resource": ""
} | ||
c154622 | train | // Enqueue takes a list of Actions and queues them up to be executed by
// the designated ActionReceiver, returning the params.Action for each
// enqueued Action, or an error if there was a problem enqueueing the
// Action. | {
"resource": ""
} | ||
c154623 | train | // ListAll takes a list of Entities representing ActionReceivers and
// returns all of the Actions that have been enqueued or run by each of
// those Entities. | {
"resource": ""
} | ||
c154624 | train | // ListPending takes a list of Entities representing ActionReceivers
// and returns all of the Actions that are enqueued for each of those
// Entities. | {
"resource": ""
} | ||
c154625 | train | // ListRunning takes a list of Entities representing ActionReceivers and
// returns all of the Actions that have are running on each of those
// Entities. | {
"resource": ""
} | ||
c154626 | train | // ListCompleted takes a list of Entities representing ActionReceivers
// and returns all of the Actions that have been run on each of those
// Entities. | {
"resource": ""
} | ||
c154627 | train | // Cancel attempts to cancel enqueued Actions from running. | {
"resource": ""
} | ||
c154628 | train | // ApplicationsCharmsActions returns a slice of charm Actions for a slice of
// services. | {
"resource": ""
} | ||
c154629 | train | // internalList takes a list of Entities representing ActionReceivers
// and returns all of the Actions the extractorFn can get out of the
// ActionReceiver. | {
"resource": ""
} | ||
c154630 | train | // combine takes multiple extractorFn's and combines them into one
// function. | {
"resource": ""
} | ||
c154631 | train | // newWorker is an engine.AgentAPIStartFunc that draws context from the
// ManifoldConfig on which it is defined. | {
"resource": ""
} | ||
c154632 | train | // isModelManager returns whether the agent has JobManageModel,
// or an error. | {
"resource": ""
} | ||
c154633 | train | // Manifold returns a dependency.Manifold that runs a machine
// undertaker. | {
"resource": ""
} | ||
c154634 | train | // AllController implements ControllerGetter.AllController | {
"resource": ""
} | ||
c154635 | train | // ControllerByName implements ControllerGetter.ControllerByName | {
"resource": ""
} | ||
c154636 | train | // ControllerByAPIEndpoints implements ControllersGetter.ControllerByAPIEndpoints | {
"resource": ""
} | ||
c154637 | train | // CurrentController implements ControllerGetter.CurrentController | {
"resource": ""
} | ||
c154638 | train | // SetCurrentController implements ControllerUpdater.SetCurrentController | {
"resource": ""
} | ||
c154639 | train | // AddController implements ControllerUpdater.AddController | {
"resource": ""
} | ||
c154640 | train | // RemoveController implements ControllerRemover.RemoveController | {
"resource": ""
} | ||
c154641 | train | // SetCurrentModel implements ModelUpdater. | {
"resource": ""
} | ||
c154642 | train | // CurrentModel implements ModelGetter. | {
"resource": ""
} | ||
c154643 | train | // AccountDetails implements AccountGetter. | {
"resource": ""
} | ||
c154644 | train | // UpdateCredential implements CredentialsUpdater. | {
"resource": ""
} | ||
c154645 | train | // CredentialForCloud implements CredentialsGetter. | {
"resource": ""
} | ||
c154646 | train | // AllCredentials implements CredentialsGetter. | {
"resource": ""
} | ||
c154647 | train | // NewResumeRelationCommand returns a command to resume a relation. | {
"resource": ""
} | ||
c154648 | train | // NewDeployer returns a Worker that deploys and recalls unit agents
// via ctx, taking a machine id to operate on. | {
"resource": ""
} | ||
c154649 | train | // changed ensures that the named unit is deployed, recalled, or removed, as
// indicated by its state. | {
"resource": ""
} | ||
c154650 | train | // deploy will deploy the supplied unit with the deployer's manager. It will
// panic if it observes inconsistent internal state. | {
"resource": ""
} | ||
c154651 | train | // recall will recall the named unit with the deployer's manager. It will
// panic if it observes inconsistent internal state. | {
"resource": ""
} | ||
c154652 | train | // remove will remove the supplied unit from state. It will panic if it
// observes inconsistent internal state. | {
"resource": ""
} | ||
c154653 | train | // asyncCreationRespondDecorator returns an autorest.RespondDecorator
// that replaces non-failure provisioning states with "Succeeded", to
// prevent the autorest code from blocking until the resource is completely
// provisioned. | {
"resource": ""
} | ||
c154654 | train | // SetEnabled turns the wrench feature on or off globally.
//
// If false is given, all future IsActive calls will unconditionally
// return false. If true is given, all future IsActive calls will
// return true for active wrenches.
//
// The previous value for the global wrench enable flag is returned. | {
"resource": ""
} | ||
c154655 | train | // makeStatusDoc assumes status is non-nil. | {
"resource": ""
} | ||
c154656 | train | // newConfig builds a new environConfig from the provided Config
// filling in default values, if any. It returns an error if the
// resulting configuration is not valid. | {
"resource": ""
} | ||
c154657 | train | // constructMetadataParam returns cloud image metadata as a param. | {
"resource": ""
} | ||
c154658 | train | // Validate returns an error if the config cannot be expected to run a
// raftflag.Worker. | {
"resource": ""
} | ||
c154659 | train | // ParseContainerTypeOrNone converts the specified string into a supported
// ContainerType instance or returns an error if the container type is invalid.
// For this version of the function, 'none' is a valid value. | {
"resource": ""
} | ||
c154660 | train | // ParseContainerType converts the specified string into a supported
// ContainerType instance or returns an error if the container type is invalid. | {
"resource": ""
} | ||
c154661 | train | // Validate checks that all the values have been set. | {
"resource": ""
} | ||
c154662 | train | // Report returns the same information as the introspection report
// but in the map for for the dependency engine report. | {
"resource": ""
} | ||
c154663 | train | // NewFacade returns a new api client facade instance. | {
"resource": ""
} | ||
c154664 | train | // Dial dials a new vSphere client connection using the given URL,
// scoped to the specified dataceter. The resulting Client's Close
// method must be called in order to release resources allocated by
// Dial. | {
"resource": ""
} | ||
c154665 | train | // Close logs out and closes the client connection. | {
"resource": ""
} | ||
c154666 | train | // RemoveVirtualMachines removes VMs matching the given path from the
// system. The path may include wildcards, to match multiple VMs. | {
"resource": ""
} | ||
c154667 | train | // VirtualMachines return list of all VMs in the system matching the given path. | {
"resource": ""
} | ||
c154668 | train | // ComputeResources returns list of all root compute resources in the system. | {
"resource": ""
} | ||
c154669 | train | // Datastores returns list of all datastores in the system. | {
"resource": ""
} | ||
c154670 | train | // EnsureVMFolder creates the a VM folder with the given path if it doesn't
// already exist. | {
"resource": ""
} | ||
c154671 | train | // DestroyVMFolder destroys a folder rooted at the datacenter's base VM folder. | {
"resource": ""
} | ||
c154672 | train | // MoveVMFolderInto moves one VM folder into another. | {
"resource": ""
} | ||
c154673 | train | // MoveVMsInto moves a set of VMs into a folder. | {
"resource": ""
} | ||
c154674 | train | // UpdateVirtualMachineExtraConfig updates the "ExtraConfig" attributes
// of the specified virtual machine. Keys with empty values will be
// removed from the config; existing keys that are unspecified in the
// map will be untouched. | {
"resource": ""
} | ||
c154675 | train | // DeleteDatastoreFile deletes a file or directory in the datastore. | {
"resource": ""
} | ||
c154676 | train | // scheduleAction will do a reboot or shutdown after given number of seconds
// this function executes the operating system's reboot binary with appropriate
// parameters to schedule the reboot
// If action is params.ShouldDoNothing, it will return immediately. | {
"resource": ""
} | ||
c154677 | train | // AddKeys adds the authorised ssh keys for the specified user. | {
"resource": ""
} | ||
c154678 | train | // NewMockTag creates a new mock instance | {
"resource": ""
} | ||
c154679 | train | // Id indicates an expected call of Id | {
"resource": ""
} | ||
c154680 | train | // NewMockLXDProfiler creates a new mock instance | {
"resource": ""
} | ||
c154681 | train | // NewMockInstanceBroker creates a new mock instance | {
"resource": ""
} | ||
c154682 | train | // AllInstances indicates an expected call of AllInstances | {
"resource": ""
} | ||
c154683 | train | // NetworkConfigFromInterfaceInfo converts a slice of network.InterfaceInfo into
// the equivalent params.NetworkConfig slice. | {
"resource": ""
} | ||
c154684 | train | // NetworkConfigsToStateArgs splits the given networkConfig into a slice of
// state.LinkLayerDeviceArgs and a slice of state.LinkLayerDeviceAddress. The
// input is expected to come from MergeProviderAndObservedNetworkConfigs and to
// be sorted. | {
"resource": ""
} | ||
c154685 | train | // MergeProviderAndObservedNetworkConfigs returns the effective network configs,
// using observedConfigs as a base and selectively updating it using the
// matching providerConfigs for each interface. | {
"resource": ""
} | ||
c154686 | train | // NewMeterStatusFacade provides the signature required for facade registration. | {
"resource": ""
} | ||
c154687 | train | // NewMeterStatusAPI creates a new API endpoint for dealing with unit meter status. | {
"resource": ""
} | ||
c154688 | train | // WatchMeterStatus returns a NotifyWatcher for observing changes
// to each unit's meter status. | {
"resource": ""
} | ||
c154689 | train | // GetMeterStatus returns meter status information for each unit. | {
"resource": ""
} | ||
c154690 | train | // New contructs an annotation. | {
"resource": ""
} | ||
c154691 | train | // HasAll checks if all the provided key value pairs exist in this annotation or not. | {
"resource": ""
} | ||
c154692 | train | // Add inserts a new key value pair. | {
"resource": ""
} | ||
c154693 | train | // Merge merges an annotation with current one. | {
"resource": ""
} | ||
c154694 | train | // ToMap returns the map format of the annotation. | {
"resource": ""
} | ||
c154695 | train | // CheckKeysNonEmpty checks if the provided keys are all set to non empty value. | {
"resource": ""
} | ||
c154696 | train | // getVal returns the value for the specified key and also indicates if it exists. | {
"resource": ""
} | ||
c154697 | train | // GetFilesToBackUp returns the paths that should be included in the
// backup archive. | {
"resource": ""
} | ||
c154698 | train | // replaceableFoldersFunc will return a map with the folders that need to
// be replaced so they can be deleted prior to a restore.
// Mongo 2.4 requires that the database directory be removed, while
// Mongo 3.2 requires that it not be removed | {
"resource": ""
} | ||
c154699 | train | // ModelCredential gets the cloud credential that a given model uses, including
// useful data such as "is this credential valid"...
// Some clouds do not require a credential and support the "empty" authentication
// type. Models on these clouds will have no credentials set, and thus, will return
// a false as 2nd arg... | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.