_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c3300
// UnsetApplicationConfig resets configuration options on an application.
c3301
// ResolveUnitErrors clears errors on one or more units. // Either specify one or more units, or all.
c3302
// ApplicationsInfo retrieves applications information.
c3303
// NewFacadeV7 is used for API registration.
c3304
// NewFacadeV6 is used for API registration.
c3305
// NewFacadeV4 is used for API registration.
c3306
// NewModelManagerAPI creates a new api server endpoint for managing // models.
c3307
// authCheck checks if the user is acting on their own behalf, or if they // are an administrator acting on behalf of another user.
c3308
// 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.
c3309
// DestroyModels will try to destroy the specified models. // If there is a block on destruction, this method will return an error.
c3310
// 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.
c3311
// ModelInfo returns information about the specified models.
c3312
// ModifyModelAccess changes the model access granted to users.
c3313
// changeModelAccess performs the requested access grant or revoke action for the // specified user on the specified model.
c3314
// ModelDefaults returns the default config values for the specified clouds.
c3315
// ModelDefaults returns the default config values used when creating a new model.
c3316
// SetModelDefaults writes new values for the specified default model settings.
c3317
// UnsetModelDefaults removes the specified default model settings.
c3318
// makeRegionSpec is a helper method for methods that call // state.UpdateModelConfigDefaultValues.
c3319
// ChangeModelCredentials changes cloud credential reference for models. // These new cloud credentials must already exist on the controller.
c3320
// UnitStatus gets the status details of the unit.
c3321
// AddMetrics adds the metrics for the unit.
c3322
// AddMetricsBatches makes an api call to the uniter requesting it to store metrics batches in state.
c3323
// Watch returns a watcher for observing changes to the unit.
c3324
// Application returns the unit's application.
c3325
// ApplicationName returns the application name.
c3326
// DestroyAllSubordinates destroys all subordinates of the unit.
c3327
// HasSubordinates returns the tags of any subordinate units.
c3328
// ClosePorts sets the policy of the port range with protocol to be // closed.
c3329
// 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.
c3330
// UpgradeSeriesStatus returns the upgrade series status of a unit from remote state
c3331
// SetUpgradeSeriesStatus sets the upgrade series status of the unit in the remote state
c3332
// RequestReboot sets the reboot flag for its machine agent
c3333
// RelationsInScope returns the tags of the relations the unit has joined // and entered scope, or the relation is suspended.
c3334
// WatchStorage returns a watcher for observing changes to the // unit's storage attachments.
c3335
// AddStorage adds desired storage instances to a unit.
c3336
// StoreArchive sends the backup archive and its metadata to storage. // It also sets the metadata's ID and Stored values.
c3337
// NewBackups creates a new Backups value using the FileStorage provided.
c3338
// Add stores the backup archive and returns its new ID.
c3339
// 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.
c3340
// List returns the metadata for all stored backups.
c3341
// Remove deletes the backup from storage.
c3342
// NewFileWriter returns an io.WriteCloser that will write log messages to disk.
c3343
// primeLogFile ensures the logsink log file is created with the // correct mode and ownership.
c3344
// NewClient returns a new Client based on an existing API connection.
c3345
// Watch returns a watcher which reports when a migration is active // for the model associated with the API connection.
c3346
// SetPhase updates the phase of the currently active model migration.
c3347
// SetStatusMessage sets a human readable message regarding the // progress of a migration.
c3348
// ModelInfo return basic information about the model to migrated.
c3349
// Export returns a serialized representation of the model associated // with the API connection. The charms used by the model are also // returned.
c3350
// OpenResource downloads the named resource for an application.
c3351
// 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.
c3352
// 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 connected. // NewUpgraderFacade provides the signature required for facade registration.
c3353
// NewUpgraderAPI creates a new server-side UpgraderAPI facade.
c3354
// WatchAPIVersion starts a watcher to track if there is a new version // of the API that we want to upgrade to
c3355
// DesiredVersion reports the Agent Version that we want that agent to be running
c3356
// newValidConfig builds a new environConfig from the provided Config // and returns it. The resulting config values are validated.
c3357
// validate checks vmware-specific config values.
c3358
// update applies changes from the provided config to the env config. // Changes to any immutable attributes result in an error.
c3359
// Validate returns an error if the ControllerInfo contains bad data.
c3360
// NewFacade exists to provide the required signature for API // registration, converting st to backend.
c3361
// ModelName implements Backend.
c3362
// ModelOwner implements Backend.
c3363
// AgentVersion implements Backend.
c3364
// ensureHostedModel ensures hosted model.
c3365
// initMongo dials the initial MongoDB connection, setting a // password for the admin user, and returning the session.
c3366
// initBootstrapMachine initializes the initial bootstrap machine in state.
c3367
// initControllerCloudService creates cloud service for controller service.
c3368
// EncodeUserdata implements renderers.ProviderRenderer.
c3369
// preallocOplog preallocates the Mongo oplog in the // specified Mongo datadabase directory.
c3370
// 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 1GB // for larger ones.
c3371
// fsAvailSpace returns the available space in MB on the // filesystem containing the specified directory.
c3372
// 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.
c3373
// 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.
c3374
// 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.
c3375
// NewMockExtensionsV1beta1Interface creates a new mock instance
c3376
// DaemonSets indicates an expected call of DaemonSets
c3377
// Ingresses mocks base method
c3378
// PodSecurityPolicies mocks base method
c3379
// PodSecurityPolicies indicates an expected call of PodSecurityPolicies
c3380
// Scales mocks base method
c3381
// NewMockIngressInterface creates a new mock instance
c3382
// UpdateStatus indicates an expected call of UpdateStatus
c3383
// ConstructClient is a constructor function for a machine manager client
c3384
// NewClient returns a new machinemanager client.
c3385
// AddMachines adds new machines with the supplied parameters, creating any requested disks.
c3386
// 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.
c3387
// UpgradeSeriesComplete notifies the controller that a given machine has // successfully completed the managed series upgrade process.
c3388
// GetUpgradeSeriesMessages returns a StringsWatcher for observing the state of // a series upgrade.
c3389
// NewClient returns a client used to access the CAAS Operator API.
c3390
// SetStatus sets the status of the specified application.
c3391
// Charm returns information about the charm currently assigned // to the application, including url, force upgrade and sha etc.
c3392
// WatchUnits returns a StringsWatcher that notifies of // changes to the lifecycles of units of the specified // CAAS application in the current model.
c3393
// RemoveUnit removes the specified unit from the current model.
c3394
// SetVersion sets the tools version associated with // the given application.
c3395
// VolumeTag is required to implement Volume.
c3396
// StorageInstance is required to implement Volume.
c3397
// Info is required to implement Volume.
c3398
// Params is required to implement Volume.
c3399
// Machine is required to implement VolumeAttachmentPlan.