_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c3400 | // PlanInfo is required to implement VolumeAttachment. | |
c3401 | // Volume is required to implement VolumeAttachment. | |
c3402 | // Info is required to implement VolumeAttachment. | |
c3403 | // Params is required to implement VolumeAttachment. | |
c3404 | // Volume returns the Volume with the specified name. | |
c3405 | // StorageInstanceVolume returns the Volume assigned to the specified
// storage instance. | |
c3406 | // VolumeAttachment returns the VolumeAttachment corresponding to
// the specified volume and machine. | |
c3407 | // MachineVolumeAttachments returns all of the VolumeAttachments for the
// specified machine. | |
c3408 | // UnitVolumeAttachments returns all of the VolumeAttachments for the
// specified unit. | |
c3409 | // VolumeAttachments returns all of the VolumeAttachments for the specified
// volume. | |
c3410 | // VolumeAttachmentPlans returns all of the VolumeAttachmentPlans for the specified
// volume. | |
c3411 | // removeMachineVolumesOps returns txn.Ops to remove non-persistent volumes
// bound or attached to the specified machine. This is used when the given
// machine is being removed from state. | |
c3412 | // isDetachableVolumeTag reports whether or not the volume with the specified
// tag is detachable. | |
c3413 | // isDetachableVolumePool reports whether or not the given storage
// pool will create a volume that is not inherently bound to a machine,
// and therefore can be detached. | |
c3414 | // DetachVolume marks the volume attachment identified by the specified machine
// and volume tags as Dying, if it is Alive. DetachVolume will fail with a
// IsContainsFilesystem error if the volume contains an attached filesystem; the
// filesystem attachment must be removed first. DetachVolume will fail for
// inherently machine-bound volumes. | |
c3415 | // RemoveVolumeAttachment removes the volume attachment from state.
// RemoveVolumeAttachment will fail if the attachment is not Dying. | |
c3416 | // DestroyVolume ensures that the volume and any attachments to it will be
// destroyed and removed from state at some point in the future. DestroyVolume
// will fail with an IsContainsFilesystem error if the volume contains a
// filesystem; the filesystem must be fully removed first. | |
c3417 | // RemoveVolume removes the volume from state. RemoveVolume will fail if
// the volume is not Dead, which implies that it still has attachments. | |
c3418 | // addVolumeOps returns txn.Ops to create a new volume with the specified
// parameters. If the supplied host ID is non-empty, and the storage
// provider is machine-scoped, then the volume will be scoped to that
// machine. | |
c3419 | // validateVolumeParams validates the volume parameters, and returns the
// machine ID to use as the scope in the volume tag. | |
c3420 | // ParseVolumeAttachmentId parses a string as a volume attachment ID,
// returning the host and volume components. | |
c3421 | // createMachineVolumeAttachmentInfo creates volume attachments
// for the specified host, and attachment parameters keyed
// by volume tags. The caller is responsible for incrementing
// the volume's attachmentcount field. | |
c3422 | // setMachineVolumeAttachmentInfo sets the volume attachment
// info for the specified machine. Each volume attachment info
// structure is keyed by the name of the volume it corresponds
// to. | |
c3423 | // SetVolumeAttachmentInfo sets the VolumeAttachmentInfo for the specified
// volume attachment. | |
c3424 | // RemoveVolumeAttachmentPlan removes the volume attachment plan from state. | |
c3425 | // removeVolumeAttachmentPlanOps removes the plan from state and sets the volume attachment to Dying.
// this will trigger the storageprovisioner on the controller to eventually detach the volume from
// the machine. | |
c3426 | // setProvisionedVolumeInfo sets the initial info for newly
// provisioned volumes. If non-empty, machineId must be the
// machine ID associated with the volumes. | |
c3427 | // SetVolumeInfo sets the VolumeInfo for the specified volume. | |
c3428 | // AllVolumes returns all Volumes scoped to the model. | |
c3429 | // watchMachinesLoop watches for changes provided by the given
// machinesWatcher and starts machine goroutines to deal with them,
// using the provided newMachineContext function to create the
// appropriate context for each new machine tag. | |
c3430 | // runMachine processes the address and status publishing for a given machine.
// We assume that the machine is alive when this is first called. | |
c3431 | // pollInstanceInfo checks the current provider addresses and status
// for the given machine's instance, and sets them on the machine if they've changed. | |
c3432 | // addressesEqual compares the addresses of the machine and the instance information. | |
c3433 | // Count returns the number of documents in the collection that belong
// to the model that the modelStateCollection is filtering on. | |
c3434 | // Insert adds one or more documents to a collection. If the document
// id is a string the model UUID prefix will be automatically
// added to it. The model-uuid field will also be automatically added if
// it is missing. An error will be returned if an model-uuid field is
// provided but is the wrong value. | |
c3435 | // UpdateId finds a single document by _id and modifies it according to the
// update document. The id must be a string or bson.ObjectId. The model
// UUID will be automatically prefixed on to the id if it's a string and the
// prefix isn't there already. | |
c3436 | // getAllUnitNames returns a sequence of valid Unit objects from state. If any
// of the application names or unit names are not found, an error is returned. | |
c3437 | // Run the commands specified on the machines identified through the
// list of machines, units and services. | |
c3438 | // RunOnAllMachines attempts to run the specified command on all the machines. | |
c3439 | // bounceErrChanged converts ErrChanged to dependency.ErrBounce. | |
c3440 | // stateStepsFor237 returns upgrade steps for Juju 2.3.7 that manipulate state directly. | |
c3441 | // hookToolMain uses JUJU_CONTEXT_ID and JUJU_AGENT_SOCKET to ask a running unit agent
// to execute a Command on our behalf. Individual commands should be exposed
// by symlinking the command name to this executable. | |
c3442 | // Main registers subcommands for the jujud executable, and hands over control
// to the cmd package. | |
c3443 | // These helper methods protect the provisioners map so we can access for testing. | |
c3444 | // RunOnAllMachines runs the command on all the machines with the specified
// timeout. | |
c3445 | // Run the Commands specified on the machines identified through the ids
// provided in the machines, applications and units slices. | |
c3446 | // CloudAPIVersion returns the cloud API version for the cloud with the given spec. | |
c3447 | // GetNewEnvironFunc returns a NewEnvironFunc, that constructs Environs
// using the given environs.NewEnvironFunc. | |
c3448 | // GetNewCAASBrokerFunc returns a NewCAASBrokerFunc, that constructs CAAS brokers
// using the given caas.NewContainerBrokerFunc. | |
c3449 | // setModelAccess changes the user's access permissions on the model. | |
c3450 | // LastModelConnection returns when this User last connected through the API
// in UTC. The resulting time will be nil if the user has never logged in. | |
c3451 | // IsNeverConnectedError returns true if err is of type NeverConnectedError. | |
c3452 | // UpdateLastModelConnection updates the last connection time of the model user. | |
c3453 | // ModelUser a model userAccessDoc. | |
c3454 | // removeModelUser removes a user from the database. | |
c3455 | // isUserSuperuser if this user has the Superuser access on the controller. | |
c3456 | // modelsForUser gives you the information about all models that a user has access to.
// This includes the name and UUID, as well as the last time the user connected to that model. | |
c3457 | // ModelBasicInfoForUser gives you the information about all models that a user has access to.
// This includes the name and UUID, as well as the last time the user connected to that model. | |
c3458 | // IsControllerAdmin returns true if the user specified has Super User Access. | |
c3459 | // SetAPIHostPorts is the APIAddressSetter interface. | |
c3460 | // Migrate assigns the directory locations specified from the new path configuration. | |
c3461 | // NewPathsWithDefaults returns a Paths struct initialized with default locations if not otherwise specified. | |
c3462 | // LogFileName returns the filename for the Agent's log file. | |
c3463 | // MachineLockLogFilename returns the filename for the machine lock log file. | |
c3464 | // NewAgentConfig returns a new config object suitable for use for a
// machine or unit agent. | |
c3465 | // NewStateMachineConfig returns a configuration suitable for
// a machine running the controller. | |
c3466 | // Dir returns the agent-specific data directory. | |
c3467 | // ReadConfig reads configuration data from the given location. | |
c3468 | // MongoVersion implements Config. | |
c3469 | // MongoMemoryProfile implements Config. | |
c3470 | // SetMongoVersion implements configSetterOnly. | |
c3471 | // SetMongoMemoryProfile implements configSetterOnly. | |
c3472 | // WriteCommands is defined on Config interface. | |
c3473 | // APIInfo is defined on Config interface. | |
c3474 | // MongoInfo is defined on Config interface. | |
c3475 | // isCAASModelFacade reports whether the given facade name can be accessed
// using the controller connection. | |
c3476 | // UserErr returns an error containing a user-friendly message describing how
// to agree to required terms. | |
c3477 | // String returns a human readable form of this InstanceConstraint. | |
c3478 | // match returns true if the image can run on the supplied instance type. | |
c3479 | // New returns a new external controller updater worker. | |
c3480 | // NewMockAvailabilityZone creates a new mock instance | |
c3481 | // Available mocks base method | |
c3482 | // Available indicates an expected call of Available | |
c3483 | // NewMockMetricsCollector creates a new mock instance | |
c3484 | // Connections mocks base method | |
c3485 | // LogReadCount mocks base method | |
c3486 | // LogReadCount indicates an expected call of LogReadCount | |
c3487 | // PingFailureCount mocks base method | |
c3488 | // TotalConnections mocks base method | |
c3489 | // NewFacade creates a Facade from a base.APICaller.
// It's a sensible value for ManifoldConfig.NewFacade. | |
c3490 | // Close closes the layer. | |
c3491 | // Addr returns the local address for the layer. | |
c3492 | // RegisterForServer is the top-level registration method
// for the component in a jujud context. | |
c3493 | // registerAgentWorkers adds the resources workers to the agents. | |
c3494 | // NewMockZonedEnviron creates a new mock instance | |
c3495 | // AdoptResources mocks base method | |
c3496 | // AvailabilityZones mocks base method | |
c3497 | // ConstraintsValidator mocks base method | |
c3498 | // DeriveAvailabilityZones mocks base method | |
c3499 | // Destroy mocks base method |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.