_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c155100 | train | // URL implements storage.StorageReader | {
"resource": ""
} | ||
c155101 | train | // Put implements storage.StorageWriter | {
"resource": ""
} | ||
c155102 | train | // Remove implements storage.StorageWriter | {
"resource": ""
} | ||
c155103 | train | // will list resource groups used by the passed clusters | {
"resource": ""
} | ||
c155104 | train | // NewMockAgent creates a new mock instance | {
"resource": ""
} | ||
c155105 | train | // ChangeConfig mocks base method | {
"resource": ""
} | ||
c155106 | train | // ChangeConfig indicates an expected call of ChangeConfig | {
"resource": ""
} | ||
c155107 | train | // CurrentConfig mocks base method | {
"resource": ""
} | ||
c155108 | train | // NewMockConfig creates a new mock instance | {
"resource": ""
} | ||
c155109 | train | // APIAddresses mocks base method | {
"resource": ""
} | ||
c155110 | train | // APIAddresses indicates an expected call of APIAddresses | {
"resource": ""
} | ||
c155111 | train | // APIInfo mocks base method | {
"resource": ""
} | ||
c155112 | train | // Jobs mocks base method | {
"resource": ""
} | ||
c155113 | train | // MongoInfo mocks base method | {
"resource": ""
} | ||
c155114 | train | // MongoMemoryProfile mocks base method | {
"resource": ""
} | ||
c155115 | train | // MongoVersion mocks base method | {
"resource": ""
} | ||
c155116 | train | // StateServingInfo mocks base method | {
"resource": ""
} | ||
c155117 | train | // SystemIdentityPath mocks base method | {
"resource": ""
} | ||
c155118 | train | // UpgradedToVersion mocks base method | {
"resource": ""
} | ||
c155119 | train | // Value mocks base method | {
"resource": ""
} | ||
c155120 | train | // Value indicates an expected call of Value | {
"resource": ""
} | ||
c155121 | train | // WriteCommands mocks base method | {
"resource": ""
} | ||
c155122 | train | // Validate returns an errors if status' value is not known. | {
"resource": ""
} | ||
c155123 | train | // Status returns the current Restore doc status | {
"resource": ""
} | ||
c155124 | train | // PurgeTxn purges missing transition from restoreInfoC collection.
// These can be caused because this collection is heavy use while backing
// up and mongo 3.2 does not like this. | {
"resource": ""
} | ||
c155125 | train | // SetStatus sets the status of the current restore. Checks are made
// to ensure that status changes are performed in the correct order. | {
"resource": ""
} | ||
c155126 | train | // setRestoreStatusOps checks the validity of the supplied transition,
// and returns either an error or a list of transaction operations that
// will apply the transition. | {
"resource": ""
} | ||
c155127 | train | // createRestoreStatusFinishedOps is useful when setting finished on
// a non initated restore document. | {
"resource": ""
} | ||
c155128 | train | // createRestoreStatusPendingOps is the only valid way to create a
// restore document. | {
"resource": ""
} | ||
c155129 | train | // updateRestoreStatusChangeOps will set the restore doc status to
// after, so long as the doc's status is before. | {
"resource": ""
} | ||
c155130 | train | // ExportPartial the current model for the State optionally skipping
// aspects as defined by the ExportConfig. | {
"resource": ""
} | ||
c155131 | train | // getAnnotations doesn't really care if there are any there or not
// for the key, but if they were there, they are removed so we can
// check at the end of the export for anything we have forgotten. | {
"resource": ""
} | ||
c155132 | train | // New returns a new environment based on the provided configuration. | {
"resource": ""
} | ||
c155133 | train | // Open creates an Environ instance and errors if the provider is not for a cloud. | {
"resource": ""
} | ||
c155134 | train | // Destroy destroys the controller and, if successful,
// its associated configuration data from the given store. | {
"resource": ""
} | ||
c155135 | train | // NewDeployCommand returns a command to deploy applications. | {
"resource": ""
} | ||
c155136 | train | // resolveBundleURL tries to interpret maybeBundle as a charmstore
// bundle. If it turns out to be a bundle, the resolved URL and
// channel are returned. If it isn't but there wasn't a problem
// checking it, it returns a nil charm URL. | {
"resource": ""
} | ||
c155137 | train | // getFlags returns the flags with the given names. Only flags that are set and
// whose name is included in flagNames are included. | {
"resource": ""
} | ||
c155138 | train | // Run connects to the environment specified on the command line and destroys
// units therein. | {
"resource": ""
} | ||
c155139 | train | // ReadControllersFile loads all controllers defined in a given file.
// If the file is not found, it is not an error. | {
"resource": ""
} | ||
c155140 | train | // WriteControllersFile marshals to YAML details of the given controllers
// and writes it to the controllers file. | {
"resource": ""
} | ||
c155141 | train | // ParseControllers parses the given YAML bytes into controllers metadata. | {
"resource": ""
} | ||
c155142 | train | // NewContextFactory returns a ContextFactory capable of creating execution contexts backed
// by the supplied unit's supplied API connection. | {
"resource": ""
} | ||
c155143 | train | // newId returns a probably-unique identifier for a new context, containing the
// supplied string. | {
"resource": ""
} | ||
c155144 | train | // coreContext creates a new context with all unspecialised fields filled in. | {
"resource": ""
} | ||
c155145 | train | // ActionContext is part of the ContextFactory interface. | {
"resource": ""
} | ||
c155146 | train | // HookContext is part of the ContextFactory interface. | {
"resource": ""
} | ||
c155147 | train | // CommandContext is part of the ContextFactory interface. | {
"resource": ""
} | ||
c155148 | train | // getContextRelations updates the factory's relation caches, and uses them
// to construct ContextRelations for a fresh context. | {
"resource": ""
} | ||
c155149 | train | // MachineStatus returns the machine agent status for a given
// machine, with special handling for agent presence. | {
"resource": ""
} | ||
c155150 | train | // GetBSON returns the structure to be serialized for the tools as a generic
// interface. | {
"resource": ""
} | ||
c155151 | train | // SetBSON updates the internal members with the data stored in the bson.Raw
// parameter. | {
"resource": ""
} | ||
c155152 | train | // CreateModel creates a new model using the model config,
// cloud region and credential specified in the args. | {
"resource": ""
} | ||
c155153 | train | // DumpModel returns the serialized database agnostic model representation. | {
"resource": ""
} | ||
c155154 | train | // DestroyModel puts the specified model into a "dying" state, which will
// cause the model's resources to be cleaned up, after which the model will
// be removed. | {
"resource": ""
} | ||
c155155 | train | // GrantModel grants a user access to the specified models. | {
"resource": ""
} | ||
c155156 | train | // RevokeModel revokes a user's access to the specified models. | {
"resource": ""
} | ||
c155157 | train | // ModelDefaults returns the default values for various sources used when
// creating a new model on the specified cloud. | {
"resource": ""
} | ||
c155158 | train | // SetModelDefaults updates the specified default model config values. | {
"resource": ""
} | ||
c155159 | train | // UnsetModelDefaults removes the specified default model config values. | {
"resource": ""
} | ||
c155160 | train | // ChangeModelCredential replaces cloud credential for a given model with the provided one. | {
"resource": ""
} | ||
c155161 | train | // Validate returns an error if the config cannot be expected to run a
// FlagWorker. | {
"resource": ""
} | ||
c155162 | train | // run invokes a suitable runFunc, depending on the value of .valid. | {
"resource": ""
} | ||
c155163 | train | // keepOccupied is a runFunc that tries to keep a flag valid. | {
"resource": ""
} | ||
c155164 | train | // claim claims model ownership on behalf of a controller, and returns
// true if the attempt succeeded. | {
"resource": ""
} | ||
c155165 | train | // wait is a runFunc that ignores its abort chan and always returns an error;
// either because of a failed api call, or a successful one, which indicates
// that no lease is held; hence, that the worker should be bounced. | {
"resource": ""
} | ||
c155166 | train | // ModelEnvironVersion returns the current version of the environ corresponding
// to the specified model. | {
"resource": ""
} | ||
c155167 | train | // SetModelEnvironVersion sets the current version of the environ corresponding
// to the specified model. | {
"resource": ""
} | ||
c155168 | train | // WatchModelEnvironVersion starts a NotifyWatcher that notifies the caller upon
// changes to the environ version of the model with the specified tag. | {
"resource": ""
} | ||
c155169 | train | // Abort mocks base method | {
"resource": ""
} | ||
c155170 | train | // Abort indicates an expected call of Abort | {
"resource": ""
} | ||
c155171 | train | // EnableHA ensures the availability of Juju controllers. | {
"resource": ""
} | ||
c155172 | train | // MongoUpgradeMode will make all Slave members of the HA
// to shut down their mongo server. | {
"resource": ""
} | ||
c155173 | train | // ResumeHAReplicationAfterUpgrade makes all members part of HA again. | {
"resource": ""
} | ||
c155174 | train | // Advance adds the given duration to the global clock, ensuring
// that the clock has not been updated concurrently.
//
// Advance will return ErrConcurrentUpdate if another updater
// updates the clock concurrently. In this case, the updater
// will refresh its view of the clock, and the caller can
// attempt Advance... | {
"resource": ""
} | ||
c155175 | train | // ensureClock creates the initial epoch document if it doesn't already exist.
// Otherwise, the most recently written time is returned. | {
"resource": ""
} | ||
c155176 | train | // Register adds a single named facade at a given version to the registry.
// Factory will be called when someone wants to instantiate an object of
// this facade, and facadeType defines the concrete type that the returned object will be.
// The Type information is used to define what methods will be exported in the
//... | {
"resource": ""
} | ||
c155177 | train | // lookup translates a facade name and version into a record. | {
"resource": ""
} | ||
c155178 | train | // GetFactory returns just the Factory for a given Facade name and version.
// See also GetType for getting the type information instead of the creation factory. | {
"resource": ""
} | ||
c155179 | train | // List returns a slice describing each of the registered Facades. | {
"resource": ""
} | ||
c155180 | train | // ListDetails returns information about all the facades
// registered in f, ordered lexically by name. | {
"resource": ""
} | ||
c155181 | train | // Discard gets rid of a registration that has already been done. Calling
// discard on an entry that is not present is not considered an error. | {
"resource": ""
} | ||
c155182 | train | // validateNewFacade ensures that the facade factory we have has the right
// input and output parameters for being used as a NewFoo function. | {
"resource": ""
} | ||
c155183 | train | // match returns whether the receiving watch key,
// which may refer to a particular item or
// an entire collection, matches k1, which refers
// to a particular item. | {
"resource": ""
} | ||
c155184 | train | // WatchCollection starts watching the given collection.
// An event will be sent onto ch whenever the txn-revno field is observed
// to change after a transaction is applied for any document in the collection. | {
"resource": ""
} | ||
c155185 | train | // WatchCollectionWithFilter starts watching the given collection.
// An event will be sent onto ch whenever the txn-revno field is observed
// to change after a transaction is applied for any document in the collection, so long as the
// specified filter function returns true when called with the document id value. | {
"resource": ""
} | ||
c155186 | train | // Unwatch stops watching the given collection and document id via ch. | {
"resource": ""
} | ||
c155187 | train | // initLastId reads the most recent changelog document and initializes
// lastId with it. This causes all history that precedes the creation
// of the watcher to be ignored. | {
"resource": ""
} | ||
c155188 | train | // NewAPI creates a new instance of the API with the given context | {
"resource": ""
} | ||
c155189 | train | // NewUpgradeSeriesAPI creates a new instance of the API server using the
// dedicated state indirection. | {
"resource": ""
} | ||
c155190 | train | // MachineStatus gets the current upgrade-series status of a machine. | {
"resource": ""
} | ||
c155191 | train | // SetMachineStatus sets the current upgrade-series status of a machine. | {
"resource": ""
} | ||
c155192 | train | // TargetSeries returns the series that a machine has been locked
// for upgrading to. | {
"resource": ""
} | ||
c155193 | train | // StartUnitCompletion starts the upgrade series completion phase for all subordinate
// units of a given machine. | {
"resource": ""
} | ||
c155194 | train | // FinishUpgradeSeries is the last action in the upgrade workflow and is
// called after all machine and unit statuses are "completed".
// It updates the machine series to reflect the completed upgrade, then
// removes the upgrade-series lock. | {
"resource": ""
} | ||
c155195 | train | // UnitsCompleted returns the units running on this machine that have completed
// the upgrade-series workflow and are in their normal running state. | {
"resource": ""
} | ||
c155196 | train | // Status is specified in the Instance interface. | {
"resource": ""
} | ||
c155197 | train | // setInstanceAddresses queries Azure for the NICs and public IPs associated
// with the given set of instances. This assumes that the instances'
// VirtualMachines are up-to-date, and that there are no concurrent accesses
// to the instances. | {
"resource": ""
} | ||
c155198 | train | // instanceNetworkInterfaces lists all network interfaces in the resource
// group, and returns a mapping from instance ID to the network interfaces
// associated with that instance. | {
"resource": ""
} | ||
c155199 | train | // interfacePublicIPAddresses lists all public IP addresses in the resource
// group, and returns a mapping from instance ID to the public IP addresses
// associated with that instance. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.