_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c154300 | train | // AvailabilityZones returns the list of availability zones for a given
// GCE region. If none are found the the list is empty. Any failure in
// the low-level request is returned as an error. | {
"resource": ""
} | ||
c154301 | train | // NewHookLogger creates a new hook logger. | {
"resource": ""
} | ||
c154302 | train | // Run starts the hook logger. | {
"resource": ""
} | ||
c154303 | train | // Stop stops the hook logger. | {
"resource": ""
} | ||
c154304 | train | // Validate returns an error if the value is not known. | {
"resource": ""
} | ||
c154305 | train | // NewSuspendRelationCommand returns a command to suspend a relation. | {
"resource": ""
} | ||
c154306 | train | // Refresh updates the cached local copy of the machine's data. | {
"resource": ""
} | ||
c154307 | train | // SetMachineAddresses sets the machine determined addresses of the machine. | {
"resource": ""
} | ||
c154308 | train | // Watch returns a watcher for observing changes to the machine. | {
"resource": ""
} | ||
c154309 | train | // Jobs returns a list of jobs for the machine. | {
"resource": ""
} | ||
c154310 | train | // SetObservedNetworkConfig sets the machine network config as observed on the
// machine. | {
"resource": ""
} | ||
c154311 | train | // Validate validates that the CloudSpec is well-formed. It does
// not ensure that the cloud type and credentials are valid. | {
"resource": ""
} | ||
c154312 | train | // MakeCloudSpec returns a CloudSpec from the given
// Cloud, cloud and region names, and credential. | {
"resource": ""
} | ||
c154313 | train | // NewCloudRegionSpec returns a CloudRegionSpec ensuring cloud arg is not empty. | {
"resource": ""
} | ||
c154314 | train | // Validate ensures that the config is currently valid. | {
"resource": ""
} | ||
c154315 | train | // PrecheckInstance performs a preflight check on the specified
// series and constraints, ensuring that they are possibly valid for
// creating an instance in this model.
//
// PrecheckInstance is best effort, and not guaranteed to eliminate
// all invalid parameters. If PrecheckInstance returns nil, it is not
// guar... | {
"resource": ""
} | ||
c154316 | train | // Validate ensures the controller has the right values to be created. | {
"resource": ""
} | ||
c154317 | train | // NewController creates a new cached controller instance.
// The changes channel is what is used to supply the cache with the changes
// in order for the cache to be kept up to date. | {
"resource": ""
} | ||
c154318 | train | // newController is the internal constructor that allows supply of a manager. | {
"resource": ""
} | ||
c154319 | train | // ModelUUIDs returns the UUIDs of the models in the cache. | {
"resource": ""
} | ||
c154320 | train | // Model returns the model for the specified UUID.
// If the model isn't found, a NotFoundError is returned. | {
"resource": ""
} | ||
c154321 | train | // updateModel will add or update the model details as
// described in the ModelChange. | {
"resource": ""
} | ||
c154322 | train | // removeModel removes the model from the cache. | {
"resource": ""
} | ||
c154323 | train | // updateApplication adds or updates the application in the specified model. | {
"resource": ""
} | ||
c154324 | train | // removeApplication removes the application for the cached model.
// If the cache does not have the model loaded for the application yet,
// then it will not have the application cached. | {
"resource": ""
} | ||
c154325 | train | // updateUnit adds or updates the unit in the specified model. | {
"resource": ""
} | ||
c154326 | train | // removeUnit removes the unit from the cached model.
// If the cache does not have the model loaded for the unit yet,
// then it will not have the unit cached. | {
"resource": ""
} | ||
c154327 | train | // updateMachine adds or updates the machine in the specified model. | {
"resource": ""
} | ||
c154328 | train | // removeMachine removes the machine from the cached model.
// If the cache does not have the model loaded for the machine yet,
// then it will not have the machine cached. | {
"resource": ""
} | ||
c154329 | train | // ensureModel retrieves the cached model for the input UUID,
// or adds it if not found.
// It is likely that we will receive a change update for the model before we
// get an update for one of its entities, but the cache needs to be resilient
// enough to make sure that we can handle when this is not the case.
// No ... | {
"resource": ""
} | ||
c154330 | train | // IsChooseCloudRegionError reports whether or not the given
// error was returned from ChooseCloudRegion. | {
"resource": ""
} | ||
c154331 | train | // CloudOrProvider finds and returns cloud or provider. | {
"resource": ""
} | ||
c154332 | train | // ChooseCloudRegion returns the cloud.Region to use, based on the specified
// region name. If no region name is specified, and there is at least one
// region, we use the first region in the list. If there are no regions, then
// we return a region with no name, having the same endpoints as the cloud. | {
"resource": ""
} | ||
c154333 | train | // BuiltInClouds returns cloud information for those
// providers which are built in to Juju. | {
"resource": ""
} | ||
c154334 | train | // CloudByName returns a cloud for given name
// regardless of whether it's public, private or builtin cloud.
// Not to be confused with cloud.CloudByName which does not cater
// for built-in clouds like localhost. | {
"resource": ""
} | ||
c154335 | train | // CloudSchemaByType returns the Schema for a given cloud type.
// If the ProviderSchema is not implemented for the given cloud
// type, a NotFound error is returned. | {
"resource": ""
} | ||
c154336 | train | // ProviderConfigSchemaSourceByType returns a config.ConfigSchemaSource
// for the environ provider, found for the given cloud type, or an error. | {
"resource": ""
} | ||
c154337 | train | // Unlock implements Unlocker. | {
"resource": ""
} | ||
c154338 | train | // VolumeParams returns the parameters for creating or destroying
// the given volume. | {
"resource": ""
} | ||
c154339 | train | // StoragePoolConfig returns the storage provider type and
// configuration for a named storage pool. If there is no
// such pool with the specified name, but it identifies a
// storage provider, then that type will be returned with a
// nil configuration. | {
"resource": ""
} | ||
c154340 | train | // VolumesToState converts a slice of params.Volume to a mapping
// of volume tags to state.VolumeInfo. | {
"resource": ""
} | ||
c154341 | train | // VolumeToState converts a params.Volume to state.VolumeInfo
// and names.VolumeTag. | {
"resource": ""
} | ||
c154342 | train | // VolumeFromState converts a state.Volume to params.Volume. | {
"resource": ""
} | ||
c154343 | train | // VolumeInfoFromState converts a state.VolumeInfo to params.VolumeInfo. | {
"resource": ""
} | ||
c154344 | train | // VolumeAttachmentPlanFromState converts a state.VolumeAttachmentPlan to params.VolumeAttachmentPlan. | {
"resource": ""
} | ||
c154345 | train | // VolumeAttachmentFromState converts a state.VolumeAttachment to params.VolumeAttachment. | {
"resource": ""
} | ||
c154346 | train | // VolumeAttachmentInfoFromState converts a state.VolumeAttachmentInfo to params.VolumeAttachmentInfo. | {
"resource": ""
} | ||
c154347 | train | // VolumeAttachmentInfosToState converts a map of volume tags to
// params.VolumeAttachmentInfo to a map of volume tags to
// state.VolumeAttachmentInfo. | {
"resource": ""
} | ||
c154348 | train | // VolumeAttachmentToState converts a params.VolumeAttachment
// to a state.VolumeAttachmentInfo and tags. | {
"resource": ""
} | ||
c154349 | train | // VolumeAttachmentInfoToState converts a params.VolumeAttachmentInfo
// to a state.VolumeAttachmentInfo. | {
"resource": ""
} | ||
c154350 | train | // ParseVolumeAttachmentIds parses the strings, returning machine storage IDs. | {
"resource": ""
} | ||
c154351 | train | // stateStepsFor222 returns upgrade steps for Juju 2.2.2 that manipulate state directly. | {
"resource": ""
} | ||
c154352 | train | // OpenPorts is part of the environs.Firewaller interface. | {
"resource": ""
} | ||
c154353 | train | // IngressPorts is part of the environs.Firewaller interface. | {
"resource": ""
} | ||
c154354 | train | // destroyOp returns errNotAlive if the identified entity is not Alive;
// or a txn.Op that will fail if the condition no longer holds, and
// otherwise set Life to Dying and make any other updates supplied in
// update. | {
"resource": ""
} | ||
c154355 | train | // dieOp returns errNotDying if the identified entity is Alive, or
// errAlreadyDead if the entity is Dead or gone; or a txn.Op that will
// fail if the condition no longer holds, and otherwise set Life to
// Dead, and make any other updates supplied in update. | {
"resource": ""
} | ||
c154356 | train | // aliveOp returns errNotAlive if the identified entity is not Alive; or
// a txn.Op that will fail if the condition no longer holds. | {
"resource": ""
} | ||
c154357 | train | // dyingOp returns errNotDying if the identified entity is not Dying; or
// a txn.Op that will fail if the condition no longer holds. | {
"resource": ""
} | ||
c154358 | train | // notDeadOp returns errDeadOrGone if the identified entity is not Alive
// or Dying, or a txn.Op that will fail if the condition no longer
// holds. | {
"resource": ""
} | ||
c154359 | train | // stateStepsFor20 returns upgrade steps for Juju 2.0 that manipulate state directly. | {
"resource": ""
} | ||
c154360 | train | // stepsFor20 returns upgrade steps for Juju 2.0 that only need the API. | {
"resource": ""
} | ||
c154361 | train | // removeCharmGetCache removes the cache directory that was previously
// used by the charms API endpoint. It is no longer necessary. | {
"resource": ""
} | ||
c154362 | train | // CloudCredential returns the cloud credential for the given tag. | {
"resource": ""
} | ||
c154363 | train | // CloudCredentials returns the user's cloud credentials for a given cloud,
// keyed by credential name. | {
"resource": ""
} | ||
c154364 | train | // UpdateCloudCredential adds or updates a cloud credential with the given tag. | {
"resource": ""
} | ||
c154365 | train | // InvalidateCloudCredential marks a cloud credential with the given tag as invalid. | {
"resource": ""
} | ||
c154366 | train | // RemoveCloudCredential removes a cloud credential with the given tag. | {
"resource": ""
} | ||
c154367 | train | // createCloudCredentialOp returns a txn.Op that will create
// a cloud credential. | {
"resource": ""
} | ||
c154368 | train | // updateCloudCredentialOp returns a txn.Op that will update
// a cloud credential. | {
"resource": ""
} | ||
c154369 | train | // removeCloudCredentialOp returns a txn.Op that will remove
// a cloud credential. | {
"resource": ""
} | ||
c154370 | train | // WatchCredential returns a new NotifyWatcher watching for
// changes to the specified credential. | {
"resource": ""
} | ||
c154371 | train | // AllCloudCredentials returns all cloud credentials stored on the controller
// for a given user. | {
"resource": ""
} | ||
c154372 | train | // CredentialModels returns all models that use given cloud credential. | {
"resource": ""
} | ||
c154373 | train | // CredentialModelsAndOwnerAccess returns all models that use given cloud credential as well as
// what access the credential owner has on these models. | {
"resource": ""
} | ||
c154374 | train | // Manifold returns a dependency manifold that runs a proxy updater worker,
// using the api connection resource named in the supplied config. | {
"resource": ""
} | ||
c154375 | train | // ListMachineTypes returns a list of MachineType available for the
// given zone. | {
"resource": ""
} | ||
c154376 | train | // NewTarget is a shim to construct a raftlease.NotifyTarget for testability. | {
"resource": ""
} | ||
c154377 | train | // ExportBundle exports the current model configuration. | {
"resource": ""
} | ||
c154378 | train | // AddUser adds a user to the database. | {
"resource": ""
} | ||
c154379 | train | // AddUserWithSecretKey adds the user with the specified name, and assigns it
// a randomly generated secret key. This secret key may be used for the user
// and controller to mutually authenticate one another, without without relying
// on TLS certificates.
//
// The new user will not have a password. A password must ... | {
"resource": ""
} | ||
c154380 | train | // RemoveUser marks the user as deleted. This obviates the ability of a user
// to function, but keeps the userDoc retaining provenance, i.e. auditing. | {
"resource": ""
} | ||
c154381 | train | // getUser fetches information about the user with the
// given name into the provided userDoc. | {
"resource": ""
} | ||
c154382 | train | // User returns the state User for the given name. | {
"resource": ""
} | ||
c154383 | train | // AllUsers returns a slice of state.User. This includes all active users. If
// includeDeactivated is true it also returns inactive users. At this point it
// never returns deleted users. | {
"resource": ""
} | ||
c154384 | train | // UserTag returns the Tag for the User. | {
"resource": ""
} | ||
c154385 | train | // LastLogin returns when this User last connected through the API in UTC.
// The resulting time will be nil if the user has never logged in. In the
// normal case, the LastLogin is the last time that the user connected through
// the API server. | {
"resource": ""
} | ||
c154386 | train | // IsNeverLoggedInError returns true if err is of type NeverLoggedInError. | {
"resource": ""
} | ||
c154387 | train | // SetPassword sets the password associated with the User. | {
"resource": ""
} | ||
c154388 | train | // SetPasswordHash stores the hash and the salt of the
// password. If the User has a secret key set then it
// will be cleared. | {
"resource": ""
} | ||
c154389 | train | // PasswordValid returns whether the given password is valid for the User. The
// caller should call user.Refresh before calling this. | {
"resource": ""
} | ||
c154390 | train | // Refresh refreshes information about the User from the state. | {
"resource": ""
} | ||
c154391 | train | // Disable deactivates the user. Disabled identities cannot log in. | {
"resource": ""
} | ||
c154392 | train | // Enable reactivates the user, setting disabled to false. | {
"resource": ""
} | ||
c154393 | train | // ensureNotDeleted refreshes the user to ensure it wasn't deleted since we
// acquired it. | {
"resource": ""
} | ||
c154394 | train | // generateSecretKey generates a random, 32-byte secret key. | {
"resource": ""
} | ||
c154395 | train | // NewLogger returns a worker.Worker that uses the notify watcher returned
// from the setup. | {
"resource": ""
} | ||
c154396 | train | // stateStepsFor24 returns upgrade steps for Juju 2.4.0 that manipulate state directly. | {
"resource": ""
} | ||
c154397 | train | // stepsFor24 returns upgrade steps for Juju 2.4. | {
"resource": ""
} | ||
c154398 | train | // RegisterAll registers all romulus commands with the
// provided command registry. | {
"resource": ""
} | ||
c154399 | train | // ControllerDialOpts returns dial parameters suitable for connecting
// from the source controller to the target controller during model
// migrations. The total attempt time can't be too long because the
// areas of the code which make these connections need to be
// interruptable but a number of retries is useful to... | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.