_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c3300 | train | // UnsetApplicationConfig resets configuration options on an application. | {
"resource": ""
} | ||
c3301 | train | // ResolveUnitErrors clears errors on one or more units.
// Either specify one or more units, or all. | {
"resource": ""
} | ||
c3302 | train | // ApplicationsInfo retrieves applications information. | {
"resource": ""
} | ||
c3303 | train | // NewFacadeV7 is used for API registration. | {
"resource": ""
} | ||
c3304 | train | // NewFacadeV6 is used for API registration. | {
"resource": ""
} | ||
c3305 | train | // NewFacadeV4 is used for API registration. | {
"resource": ""
} | ||
c3306 | train | // NewModelManagerAPI creates a new api server endpoint for managing
// models. | {
"resource": ""
} | ||
c3307 | train | // authCheck checks if the user is acting on their own behalf, or if they
// are an administrator acting on behalf of another user. | {
"resource": ""
} | ||
c3308 | train | // DumpModelsDB will gather all documents from all model collections
// for the specified model. The map result contains a map of collection
// names to lists of documents represented as maps. | {
"resource": ""
} | ||
c3309 | train | // DestroyModels will try to destroy the specified models.
// If there is a block on destruction, this method will return an error. | {
"resource": ""
} | ||
c3310 | train | // DestroyModels will try to destroy the specified models.
// If there is a block on destruction, this method will return an error.
// From ModelManager v7 onwards, DestroyModels gains 'force' and 'max-wait' parameters. | {
"resource": ""
} | ||
c3311 | train | // ModelInfo returns information about the specified models. | {
"resource": ""
} | ||
c3312 | train | // ModifyModelAccess changes the model access granted to users. | {
"resource": ""
} | ||
c3313 | train | // changeModelAccess performs the requested access grant or revoke action for the
// specified user on the specified model. | {
"resource": ""
} | ||
c3314 | train | // ModelDefaults returns the default config values for the specified clouds. | {
"resource": ""
} | ||
c3315 | train | // ModelDefaults returns the default config values used when creating a new model. | {
"resource": ""
} | ||
c3316 | train | // SetModelDefaults writes new values for the specified default model settings. | {
"resource": ""
} | ||
c3317 | train | // UnsetModelDefaults removes the specified default model settings. | {
"resource": ""
} | ||
c3318 | train | // makeRegionSpec is a helper method for methods that call
// state.UpdateModelConfigDefaultValues. | {
"resource": ""
} | ||
c3319 | train | // ChangeModelCredentials changes cloud credential reference for models.
// These new cloud credentials must already exist on the controller. | {
"resource": ""
} | ||
c3320 | train | // UnitStatus gets the status details of the unit. | {
"resource": ""
} | ||
c3321 | train | // AddMetrics adds the metrics for the unit. | {
"resource": ""
} | ||
c3322 | train | // AddMetricsBatches makes an api call to the uniter requesting it to store metrics batches in state. | {
"resource": ""
} | ||
c3323 | train | // Watch returns a watcher for observing changes to the unit. | {
"resource": ""
} | ||
c3324 | train | // Application returns the unit's application. | {
"resource": ""
} | ||
c3325 | train | // ApplicationName returns the application name. | {
"resource": ""
} | ||
c3326 | train | // DestroyAllSubordinates destroys all subordinates of the unit. | {
"resource": ""
} | ||
c3327 | train | // HasSubordinates returns the tags of any subordinate units. | {
"resource": ""
} | ||
c3328 | train | // ClosePorts sets the policy of the port range with protocol to be
// closed. | {
"resource": ""
} | ||
c3329 | train | // WatchActionNotifications returns a StringsWatcher for observing the
// ids of Actions added to the Unit. The initial event will contain the
// ids of any Actions pending at the time the Watcher is made. | {
"resource": ""
} | ||
c3330 | train | // UpgradeSeriesStatus returns the upgrade series status of a unit from remote state | {
"resource": ""
} | ||
c3331 | train | // SetUpgradeSeriesStatus sets the upgrade series status of the unit in the remote state | {
"resource": ""
} | ||
c3332 | train | // RequestReboot sets the reboot flag for its machine agent | {
"resource": ""
} | ||
c3333 | train | // RelationsInScope returns the tags of the relations the unit has joined
// and entered scope, or the relation is suspended. | {
"resource": ""
} | ||
c3334 | train | // WatchStorage returns a watcher for observing changes to the
// unit's storage attachments. | {
"resource": ""
} | ||
c3335 | train | // AddStorage adds desired storage instances to a unit. | {
"resource": ""
} | ||
c3336 | train | // StoreArchive sends the backup archive and its metadata to storage.
// It also sets the metadata's ID and Stored values. | {
"resource": ""
} | ||
c3337 | train | // NewBackups creates a new Backups value using the FileStorage provided. | {
"resource": ""
} | ||
c3338 | train | // Add stores the backup archive and returns its new ID. | {
"resource": ""
} | ||
c3339 | train | // Get retrieves the associated metadata and archive file from model storage.
// There are two cases, the archive file can be in the juju database or
// a file on the machine. | {
"resource": ""
} | ||
c3340 | train | // List returns the metadata for all stored backups. | {
"resource": ""
} | ||
c3341 | train | // Remove deletes the backup from storage. | {
"resource": ""
} | ||
c3342 | train | // NewFileWriter returns an io.WriteCloser that will write log messages to disk. | {
"resource": ""
} | ||
c3343 | train | // primeLogFile ensures the logsink log file is created with the
// correct mode and ownership. | {
"resource": ""
} | ||
c3344 | train | // NewClient returns a new Client based on an existing API connection. | {
"resource": ""
} | ||
c3345 | train | // Watch returns a watcher which reports when a migration is active
// for the model associated with the API connection. | {
"resource": ""
} | ||
c3346 | train | // SetPhase updates the phase of the currently active model migration. | {
"resource": ""
} | ||
c3347 | train | // SetStatusMessage sets a human readable message regarding the
// progress of a migration. | {
"resource": ""
} | ||
c3348 | train | // ModelInfo return basic information about the model to migrated. | {
"resource": ""
} | ||
c3349 | train | // Export returns a serialized representation of the model associated
// with the API connection. The charms used by the model are also
// returned. | {
"resource": ""
} | ||
c3350 | train | // OpenResource downloads the named resource for an application. | {
"resource": ""
} | ||
c3351 | train | // StreamModelLog takes a starting time and returns a channel that
// will yield the logs on or after that time - these are the logs that
// need to be transferred to the target after the migration is
// successful. | {
"resource": ""
} | ||
c3352 | train | // The upgrader facade is a bit unique vs the other API Facades, as it
// has two implementations that actually expose the same API and which
// one gets returned depends on who is calling. Both of them conform
// to the exact Upgrader API, so the actual calls that are available
// do not depend on who is currently co... | {
"resource": ""
} | ||
c3353 | train | // NewUpgraderAPI creates a new server-side UpgraderAPI facade. | {
"resource": ""
} | ||
c3354 | train | // WatchAPIVersion starts a watcher to track if there is a new version
// of the API that we want to upgrade to | {
"resource": ""
} | ||
c3355 | train | // DesiredVersion reports the Agent Version that we want that agent to be running | {
"resource": ""
} | ||
c3356 | train | // newValidConfig builds a new environConfig from the provided Config
// and returns it. The resulting config values are validated. | {
"resource": ""
} | ||
c3357 | train | // validate checks vmware-specific config values. | {
"resource": ""
} | ||
c3358 | train | // update applies changes from the provided config to the env config.
// Changes to any immutable attributes result in an error. | {
"resource": ""
} | ||
c3359 | train | // Validate returns an error if the ControllerInfo contains bad data. | {
"resource": ""
} | ||
c3360 | train | // NewFacade exists to provide the required signature for API
// registration, converting st to backend. | {
"resource": ""
} | ||
c3361 | train | // ModelName implements Backend. | {
"resource": ""
} | ||
c3362 | train | // ModelOwner implements Backend. | {
"resource": ""
} | ||
c3363 | train | // AgentVersion implements Backend. | {
"resource": ""
} | ||
c3364 | train | // ensureHostedModel ensures hosted model. | {
"resource": ""
} | ||
c3365 | train | // initMongo dials the initial MongoDB connection, setting a
// password for the admin user, and returning the session. | {
"resource": ""
} | ||
c3366 | train | // initBootstrapMachine initializes the initial bootstrap machine in state. | {
"resource": ""
} | ||
c3367 | train | // initControllerCloudService creates cloud service for controller service. | {
"resource": ""
} | ||
c3368 | train | // EncodeUserdata implements renderers.ProviderRenderer. | {
"resource": ""
} | ||
c3369 | train | // preallocOplog preallocates the Mongo oplog in the
// specified Mongo datadabase directory. | {
"resource": ""
} | ||
c3370 | train | // defaultOplogSize returns the default size in MB for the
// mongo oplog based on the directory of the mongo database.
//
// Since we limit the maximum oplog size to 1GB and every change
// in opLogSize requires mongo restart we are not using the default
// MongoDB formula but simply using 512MB for small disks and 1G... | {
"resource": ""
} | ||
c3371 | train | // fsAvailSpace returns the available space in MB on the
// filesystem containing the specified directory. | {
"resource": ""
} | ||
c3372 | train | // preallocFiles preallocates n data files, zeroed to make
// up the specified sizes in bytes. The file sizes must be
// multiples of 4096 bytes.
//
// The filenames are constructed by appending the file index
// to the specified prefix. | {
"resource": ""
} | ||
c3373 | train | // preallocFileSizes returns a slice of file sizes
// that make up the specified total size, exceeding
// the specified total as necessary to pad the
// remainder to a multiple of 4096 bytes. | {
"resource": ""
} | ||
c3374 | train | // doPreallocFile creates a file and writes zeroes up to the specified
// extent. If the file exists already, nothing is done and no error
// is returned. | {
"resource": ""
} | ||
c3375 | train | // NewMockExtensionsV1beta1Interface creates a new mock instance | {
"resource": ""
} | ||
c3376 | train | // DaemonSets indicates an expected call of DaemonSets | {
"resource": ""
} | ||
c3377 | train | // Ingresses mocks base method | {
"resource": ""
} | ||
c3378 | train | // PodSecurityPolicies mocks base method | {
"resource": ""
} | ||
c3379 | train | // PodSecurityPolicies indicates an expected call of PodSecurityPolicies | {
"resource": ""
} | ||
c3380 | train | // Scales mocks base method | {
"resource": ""
} | ||
c3381 | train | // NewMockIngressInterface creates a new mock instance | {
"resource": ""
} | ||
c3382 | train | // UpdateStatus indicates an expected call of UpdateStatus | {
"resource": ""
} | ||
c3383 | train | // ConstructClient is a constructor function for a machine manager client | {
"resource": ""
} | ||
c3384 | train | // NewClient returns a new machinemanager client. | {
"resource": ""
} | ||
c3385 | train | // AddMachines adds new machines with the supplied parameters, creating any requested disks. | {
"resource": ""
} | ||
c3386 | train | // UpgradeSeriesPrepare notifies the controller that a series upgrade is taking
// place for a given machine and as such the machine is guarded against
// operations that would impede, fail, or interfere with the upgrade process. | {
"resource": ""
} | ||
c3387 | train | // UpgradeSeriesComplete notifies the controller that a given machine has
// successfully completed the managed series upgrade process. | {
"resource": ""
} | ||
c3388 | train | // GetUpgradeSeriesMessages returns a StringsWatcher for observing the state of
// a series upgrade. | {
"resource": ""
} | ||
c3389 | train | // NewClient returns a client used to access the CAAS Operator API. | {
"resource": ""
} | ||
c3390 | train | // SetStatus sets the status of the specified application. | {
"resource": ""
} | ||
c3391 | train | // Charm returns information about the charm currently assigned
// to the application, including url, force upgrade and sha etc. | {
"resource": ""
} | ||
c3392 | train | // WatchUnits returns a StringsWatcher that notifies of
// changes to the lifecycles of units of the specified
// CAAS application in the current model. | {
"resource": ""
} | ||
c3393 | train | // RemoveUnit removes the specified unit from the current model. | {
"resource": ""
} | ||
c3394 | train | // SetVersion sets the tools version associated with
// the given application. | {
"resource": ""
} | ||
c3395 | train | // VolumeTag is required to implement Volume. | {
"resource": ""
} | ||
c3396 | train | // StorageInstance is required to implement Volume. | {
"resource": ""
} | ||
c3397 | train | // Info is required to implement Volume. | {
"resource": ""
} | ||
c3398 | train | // Params is required to implement Volume. | {
"resource": ""
} | ||
c3399 | train | // Machine is required to implement VolumeAttachmentPlan. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.