_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c154700 | train | // WatchCredential provides a notify watcher that is responsive to changes
// to a given cloud credential. | {
"resource": ""
} | ||
c154701 | train | // InvalidateModelCredential invalidates cloud credential for the model that made a connection. | {
"resource": ""
} | ||
c154702 | train | // WatchModelCredential provides a notify watcher that is responsive to changes
// to a given cloud credential. | {
"resource": ""
} | ||
c154703 | train | // Prepare ensures that the action is valid and can be executed. If not, it
// will return ErrSkipExecute. It preserves any hook recorded in the supplied
// state.
// Prepare is part of the Operation interface. | {
"resource": ""
} | ||
c154704 | train | // Execute runs the action, and preserves any hook recorded in the supplied state.
// Execute is part of the Operation interface. | {
"resource": ""
} | ||
c154705 | train | // addPackageProxyCmd is a helper method which returns the corresponding runcmd
// to apply the package proxy settings for OpenSUSE | {
"resource": ""
} | ||
c154706 | train | // finishMachineConfig updates args.MachineConfig in place. Setting up
// the API, StateServing, and SSHkeys information. | {
"resource": ""
} | ||
c154707 | train | // NewDirectorySpec returns a new directory spec for the given info. | {
"resource": ""
} | ||
c154708 | train | // Resolve returns the fully resolved file path, relative to the directory. | {
"resource": ""
} | ||
c154709 | train | // Initialize preps the spec'ed directory and returns it. | {
"resource": ""
} | ||
c154710 | train | // NewTempDirectorySpec creates a new temp directory spec
// for the given resource. | {
"resource": ""
} | ||
c154711 | train | // NewDirectory returns a new directory for the provided spec. | {
"resource": ""
} | ||
c154712 | train | // Write writes all relevant files from the given source
// to the directory. | {
"resource": ""
} | ||
c154713 | train | // WriteContent writes the resource file to the given path
// within the directory. | {
"resource": ""
} | ||
c154714 | train | // NewConnectedStatusWorker creates a new worker that monitors the meter status of the
// unit and runs the meter-status-changed hook appropriately. | {
"resource": ""
} | ||
c154715 | train | // NewConnectedStatusHandler creates a new meter status handler for handling meter status
// changes as provided by the API. | {
"resource": ""
} | ||
c154716 | train | // SetUp is part of the worker.NotifyWatchHandler interface. | {
"resource": ""
} | ||
c154717 | train | // Handle is part of the worker.NotifyWatchHandler interface. | {
"resource": ""
} | ||
c154718 | train | // ListResources returns the info for each non-pending resource of the
// identified application. | {
"resource": ""
} | ||
c154719 | train | // ListPendingResources returns the extended, model-related info for
// each pending resource of the identifies application. | {
"resource": ""
} | ||
c154720 | train | // GetResource returns the extended, model-related info for the non-pending
// resource. | {
"resource": ""
} | ||
c154721 | train | // StageResource adds the resource in a separate staging area
// if the resource isn't already staged. If it is then
// errors.AlreadyExists is returned. A wrapper around the staged
// resource is returned which supports both finalizing and removing
// the staged resource. | {
"resource": ""
} | ||
c154722 | train | // SetResource sets the info for the resource. | {
"resource": ""
} | ||
c154723 | train | // SetCharmStoreResource stores the resource info that was retrieved
// from the charm store. | {
"resource": ""
} | ||
c154724 | train | // SetUnitResource stores the resource info for a particular unit. The
// resource must already be set for the application. | {
"resource": ""
} | ||
c154725 | train | // SetUnitResource stores the resource info for a particular unit. The
// resource must already be set for the application. The provided progress
// is stored in the DB. | {
"resource": ""
} | ||
c154726 | train | // NewRemoveUnitResourcesOps returns mgo transaction operations
// that remove resource information specific to the unit from state. | {
"resource": ""
} | ||
c154727 | train | // NewRemoveResourcesOps returns mgo transaction operations that
// remove all the applications's resources from state. | {
"resource": ""
} | ||
c154728 | train | // NewRemovePendingResourcesOps returns mgo transaction operations to
// clean up pending resources for the application from state. We pass
// in the pending IDs to avoid removing the wrong resources if there's
// a race to deploy the same application. | {
"resource": ""
} | ||
c154729 | train | // NewClient creates a new client for accessing the metricsadder API. | {
"resource": ""
} | ||
c154730 | train | // AddMetricBatches implements the MetricsAdderClient interface. | {
"resource": ""
} | ||
c154731 | train | // New returns a worker which periodically prunes the data for
// completed transactions. | {
"resource": ""
} | ||
c154732 | train | // FormatTabular writes a tabular summary of machines, applications, and
// units. Any subordinate items are indented by two spaces beneath
// their superior. | {
"resource": ""
} | ||
c154733 | train | // printOffers prints a tabular summary of the offers. | {
"resource": ""
} | ||
c154734 | train | // FormatMachineTabular writes a tabular summary of machine | {
"resource": ""
} | ||
c154735 | train | // agentDoing returns what hook or action, if any,
// the agent is currently executing.
// The hook name or action is extracted from the agent message. | {
"resource": ""
} | ||
c154736 | train | // findInstanceSpec returns an InstanceSpec satisfying the supplied instanceConstraint. | {
"resource": ""
} | ||
c154737 | train | // NewGetCmd creates a new GetCmd for the given hook context. | {
"resource": ""
} | ||
c154738 | train | // NewWhoAmICommand returns a command to print login details. | {
"resource": ""
} | ||
c154739 | train | // IsUserAbortedError returns true if err is of type userAbortedError. | {
"resource": ""
} | ||
c154740 | train | // UserConfirmYes returns an error if we do not read a "y" or "yes" from user
// input. | {
"resource": ""
} | ||
c154741 | train | // NewClient returns a new Client for the given raw API caller. | {
"resource": ""
} | ||
c154742 | train | // ListResources calls the ListResources API server method with
// the given application names. | {
"resource": ""
} | ||
c154743 | train | // newListResourcesArgs returns the arguments for the ListResources endpoint. | {
"resource": ""
} | ||
c154744 | train | // Upload sends the provided resource blob up to Juju. | {
"resource": ""
} | ||
c154745 | train | // AddPendingResources sends the provided resource info up to Juju
// without making it available yet. | {
"resource": ""
} | ||
c154746 | train | // newAddPendingResourcesArgs returns the arguments for the
// AddPendingResources API endpoint. | {
"resource": ""
} | ||
c154747 | train | // UploadPendingResource sends the provided resource blob up to Juju
// and makes it available. | {
"resource": ""
} | ||
c154748 | train | // NewMockMutaterMachine creates a new mock instance | {
"resource": ""
} | ||
c154749 | train | // CharmProfilingInfo mocks base method | {
"resource": ""
} | ||
c154750 | train | // Refresh mocks base method | {
"resource": ""
} | ||
c154751 | train | // SetCharmProfiles indicates an expected call of SetCharmProfiles | {
"resource": ""
} | ||
c154752 | train | // SetModificationStatus indicates an expected call of SetModificationStatus | {
"resource": ""
} | ||
c154753 | train | // WatchApplications returns a StringsWatcher that notifies of
// changes to the lifecycles of CAAS applications in the current model. | {
"resource": ""
} | ||
c154754 | train | // ApplicationConfig returns the config for the specified application. | {
"resource": ""
} | ||
c154755 | train | // WatchApplicationScale returns a NotifyWatcher that notifies of
// changes to the lifecycles of units of the specified
// CAAS application in the current model. | {
"resource": ""
} | ||
c154756 | train | // ApplicationScale returns the scale for the specified application. | {
"resource": ""
} | ||
c154757 | train | // ProvisioningInfo returns the provisioning info for the specified CAAS
// application in the current model. | {
"resource": ""
} | ||
c154758 | train | // maybeNotFound returns an error satisfying errors.IsNotFound
// if the supplied error has a CodeNotFound error. | {
"resource": ""
} | ||
c154759 | train | // UpdateUnits updates the state model to reflect the state of the units
// as reported by the cloud. | {
"resource": ""
} | ||
c154760 | train | // UpdateApplicationService updates the state model to reflect the state of the application's
// service as reported by the cloud. | {
"resource": ""
} | ||
c154761 | train | // SetOperatorStatus updates the provisioning status of an operator. | {
"resource": ""
} | ||
c154762 | train | // New returns a new worker that maintains the mongo replica set
// with respect to the given state. | {
"resource": ""
} | ||
c154763 | train | // watchForControllerChanges starts two watchers for changes to controller
// info and status.
// It returns a channel which will receive events if any of the watchers fires. | {
"resource": ""
} | ||
c154764 | train | // watchForConfigChanges starts a watcher for changes to controller config.
// It returns a channel which will receive events if the watcher fires.
// This is separate from watchForControllerChanges because of the worker loop
// logic. If controller machines have not changed, then further processing
// does not occur, ... | {
"resource": ""
} | ||
c154765 | train | // updateControllerMachines updates the peergrouper's current list of
// controller machines, as well as starting and stopping trackers for
// them as they are added and removed. | {
"resource": ""
} | ||
c154766 | train | // apiServerHostPorts returns the host-ports for each apiserver machine. | {
"resource": ""
} | ||
c154767 | train | // peerGroupInfo collates current session information about the
// mongo peer group with information from state machines. | {
"resource": ""
} | ||
c154768 | train | // setHasVote sets the HasVote status of all the given machines to hasVote. | {
"resource": ""
} | ||
c154769 | train | // getAPI either uses the fake API set at test time or that is nil, gets a real
// API and sets that as the API. | {
"resource": ""
} | ||
c154770 | train | // resetConfig is the run action when we are resetting attributes. | {
"resource": ""
} | ||
c154771 | train | // setConfig is the run action when we are setting new attribute values as args
// or as a file passed in. | {
"resource": ""
} | ||
c154772 | train | // setConfigFromFile sets the application configuration from settings passed
// in a YAML file. | {
"resource": ""
} | ||
c154773 | train | // getConfig is the run action to return one or all configuration values. | {
"resource": ""
} | ||
c154774 | train | // validateValues reads the values provided as args and validates that they are
// valid UTF-8. | {
"resource": ""
} | ||
c154775 | train | // readValue reads the value of an option out of the named file.
// An empty content is valid, like in parsing the options. The upper
// size is 5M. | {
"resource": ""
} | ||
c154776 | train | // NewDialCollector returns a new DialCollector. | {
"resource": ""
} | ||
c154777 | train | // PostDialServer is a function that may be used in
// mongo.DialOpts.PostDialServer, to update metrics. | {
"resource": ""
} | ||
c154778 | train | // New starts a logsender worker which reads log message structs from
// a channel and sends them to the JES via the logsink API. | {
"resource": ""
} | ||
c154779 | train | // ToParams returns the type as multiwatcher.BlockType. | {
"resource": ""
} | ||
c154780 | train | // MigrationValue converts the block type value into a useful human readable
// string for model migration. | {
"resource": ""
} | ||
c154781 | train | // ParseBlockType returns BlockType from humanly readable type representation. | {
"resource": ""
} | ||
c154782 | train | // Tag is part of the state.Block interface. | {
"resource": ""
} | ||
c154783 | train | // SwitchBlockOn enables block of specified type for the
// current model. | {
"resource": ""
} | ||
c154784 | train | // GetBlockForType returns the Block of the specified type for the current model
// where
// not found -> nil, false, nil
// found -> block, true, nil
// error -> nil, false, err | {
"resource": ""
} | ||
c154785 | train | // AllBlocks returns all blocks in the model. | {
"resource": ""
} | ||
c154786 | train | // AllBlocksForController returns all blocks in any models on
// the controller. | {
"resource": ""
} | ||
c154787 | train | // setModelBlock updates the blocks collection with the
// specified block.
// Only one instance of each block type can exist in model. | {
"resource": ""
} | ||
c154788 | train | // newBlockId returns a sequential block id for this model. | {
"resource": ""
} | ||
c154789 | train | // MongoIndexes returns the indexes to apply to the MongoDB collection. | {
"resource": ""
} | ||
c154790 | train | // ExpireAfter implements ExpirableStorage.ExpireAfter. | {
"resource": ""
} | ||
c154791 | train | // RootKey implements Storage.RootKey | {
"resource": ""
} | ||
c154792 | train | // legacyGet is attempted as the id we're looking for was created in a previous
// version of Juju while using v1 versions of the macaroon-bakery. | {
"resource": ""
} | ||
c154793 | train | // FlattenStanzas flattens all stanzas, and recursively for all
// 'source' and 'source-directory' stanzas, returning a single slice. | {
"resource": ""
} | ||
c154794 | train | // FormatStanzas returns a string representing all stanzas
// definitions, recursively expanding stanzas found in both source and
// source-directory definitions. | {
"resource": ""
} | ||
c154795 | train | // FormatDefinition formats the complete stanza, indenting any options
// with count leading spaces. | {
"resource": ""
} | ||
c154796 | train | // ValidateLXDProfile will validate the profile to determin if the configuration
// is valid or not before passing continuing on. | {
"resource": ""
} | ||
c154797 | train | // NotEmpty will return false if the profiler containers a profile, that is
// empty. If the profile is empty, we'll return false.
// If there is no valid profile in the profiler, it will return false | {
"resource": ""
} | ||
c154798 | train | // NewRegisterCmd returns a new RegisterCmd that wraps the given context. | {
"resource": ""
} | ||
c154799 | train | // NewFacade create a new server-side MachineManager API facade. This
// is used for facade registration. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.