_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c3400 | train | // PlanInfo is required to implement VolumeAttachment. | {
"resource": ""
} | ||
c3401 | train | // Volume is required to implement VolumeAttachment. | {
"resource": ""
} | ||
c3402 | train | // Info is required to implement VolumeAttachment. | {
"resource": ""
} | ||
c3403 | train | // Params is required to implement VolumeAttachment. | {
"resource": ""
} | ||
c3404 | train | // Volume returns the Volume with the specified name. | {
"resource": ""
} | ||
c3405 | train | // StorageInstanceVolume returns the Volume assigned to the specified
// storage instance. | {
"resource": ""
} | ||
c3406 | train | // VolumeAttachment returns the VolumeAttachment corresponding to
// the specified volume and machine. | {
"resource": ""
} | ||
c3407 | train | // MachineVolumeAttachments returns all of the VolumeAttachments for the
// specified machine. | {
"resource": ""
} | ||
c3408 | train | // UnitVolumeAttachments returns all of the VolumeAttachments for the
// specified unit. | {
"resource": ""
} | ||
c3409 | train | // VolumeAttachments returns all of the VolumeAttachments for the specified
// volume. | {
"resource": ""
} | ||
c3410 | train | // VolumeAttachmentPlans returns all of the VolumeAttachmentPlans for the specified
// volume. | {
"resource": ""
} | ||
c3411 | train | // 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. | {
"resource": ""
} | ||
c3412 | train | // isDetachableVolumeTag reports whether or not the volume with the specified
// tag is detachable. | {
"resource": ""
} | ||
c3413 | train | // 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. | {
"resource": ""
} | ||
c3414 | train | // 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
// inhere... | {
"resource": ""
} | ||
c3415 | train | // RemoveVolumeAttachment removes the volume attachment from state.
// RemoveVolumeAttachment will fail if the attachment is not Dying. | {
"resource": ""
} | ||
c3416 | train | // 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. | {
"resource": ""
} | ||
c3417 | train | // RemoveVolume removes the volume from state. RemoveVolume will fail if
// the volume is not Dead, which implies that it still has attachments. | {
"resource": ""
} | ||
c3418 | train | // 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. | {
"resource": ""
} | ||
c3419 | train | // validateVolumeParams validates the volume parameters, and returns the
// machine ID to use as the scope in the volume tag. | {
"resource": ""
} | ||
c3420 | train | // ParseVolumeAttachmentId parses a string as a volume attachment ID,
// returning the host and volume components. | {
"resource": ""
} | ||
c3421 | train | // 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. | {
"resource": ""
} | ||
c3422 | train | // 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. | {
"resource": ""
} | ||
c3423 | train | // SetVolumeAttachmentInfo sets the VolumeAttachmentInfo for the specified
// volume attachment. | {
"resource": ""
} | ||
c3424 | train | // RemoveVolumeAttachmentPlan removes the volume attachment plan from state. | {
"resource": ""
} | ||
c3425 | train | // 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. | {
"resource": ""
} | ||
c3426 | train | // setProvisionedVolumeInfo sets the initial info for newly
// provisioned volumes. If non-empty, machineId must be the
// machine ID associated with the volumes. | {
"resource": ""
} | ||
c3427 | train | // SetVolumeInfo sets the VolumeInfo for the specified volume. | {
"resource": ""
} | ||
c3428 | train | // AllVolumes returns all Volumes scoped to the model. | {
"resource": ""
} | ||
c3429 | train | // 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. | {
"resource": ""
} | ||
c3430 | train | // runMachine processes the address and status publishing for a given machine.
// We assume that the machine is alive when this is first called. | {
"resource": ""
} | ||
c3431 | train | // pollInstanceInfo checks the current provider addresses and status
// for the given machine's instance, and sets them on the machine if they've changed. | {
"resource": ""
} | ||
c3432 | train | // addressesEqual compares the addresses of the machine and the instance information. | {
"resource": ""
} | ||
c3433 | train | // Count returns the number of documents in the collection that belong
// to the model that the modelStateCollection is filtering on. | {
"resource": ""
} | ||
c3434 | train | // 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. | {
"resource": ""
} | ||
c3435 | train | // 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. | {
"resource": ""
} | ||
c3436 | train | // 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. | {
"resource": ""
} | ||
c3437 | train | // Run the commands specified on the machines identified through the
// list of machines, units and services. | {
"resource": ""
} | ||
c3438 | train | // RunOnAllMachines attempts to run the specified command on all the machines. | {
"resource": ""
} | ||
c3439 | train | // bounceErrChanged converts ErrChanged to dependency.ErrBounce. | {
"resource": ""
} | ||
c3440 | train | // stateStepsFor237 returns upgrade steps for Juju 2.3.7 that manipulate state directly. | {
"resource": ""
} | ||
c3441 | train | // 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. | {
"resource": ""
} | ||
c3442 | train | // Main registers subcommands for the jujud executable, and hands over control
// to the cmd package. | {
"resource": ""
} | ||
c3443 | train | // These helper methods protect the provisioners map so we can access for testing. | {
"resource": ""
} | ||
c3444 | train | // RunOnAllMachines runs the command on all the machines with the specified
// timeout. | {
"resource": ""
} | ||
c3445 | train | // Run the Commands specified on the machines identified through the ids
// provided in the machines, applications and units slices. | {
"resource": ""
} | ||
c3446 | train | // CloudAPIVersion returns the cloud API version for the cloud with the given spec. | {
"resource": ""
} | ||
c3447 | train | // GetNewEnvironFunc returns a NewEnvironFunc, that constructs Environs
// using the given environs.NewEnvironFunc. | {
"resource": ""
} | ||
c3448 | train | // GetNewCAASBrokerFunc returns a NewCAASBrokerFunc, that constructs CAAS brokers
// using the given caas.NewContainerBrokerFunc. | {
"resource": ""
} | ||
c3449 | train | // setModelAccess changes the user's access permissions on the model. | {
"resource": ""
} | ||
c3450 | train | // 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. | {
"resource": ""
} | ||
c3451 | train | // IsNeverConnectedError returns true if err is of type NeverConnectedError. | {
"resource": ""
} | ||
c3452 | train | // UpdateLastModelConnection updates the last connection time of the model user. | {
"resource": ""
} | ||
c3453 | train | // ModelUser a model userAccessDoc. | {
"resource": ""
} | ||
c3454 | train | // removeModelUser removes a user from the database. | {
"resource": ""
} | ||
c3455 | train | // isUserSuperuser if this user has the Superuser access on the controller. | {
"resource": ""
} | ||
c3456 | train | // 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. | {
"resource": ""
} | ||
c3457 | train | // 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. | {
"resource": ""
} | ||
c3458 | train | // IsControllerAdmin returns true if the user specified has Super User Access. | {
"resource": ""
} | ||
c3459 | train | // SetAPIHostPorts is the APIAddressSetter interface. | {
"resource": ""
} | ||
c3460 | train | // Migrate assigns the directory locations specified from the new path configuration. | {
"resource": ""
} | ||
c3461 | train | // NewPathsWithDefaults returns a Paths struct initialized with default locations if not otherwise specified. | {
"resource": ""
} | ||
c3462 | train | // LogFileName returns the filename for the Agent's log file. | {
"resource": ""
} | ||
c3463 | train | // MachineLockLogFilename returns the filename for the machine lock log file. | {
"resource": ""
} | ||
c3464 | train | // NewAgentConfig returns a new config object suitable for use for a
// machine or unit agent. | {
"resource": ""
} | ||
c3465 | train | // NewStateMachineConfig returns a configuration suitable for
// a machine running the controller. | {
"resource": ""
} | ||
c3466 | train | // Dir returns the agent-specific data directory. | {
"resource": ""
} | ||
c3467 | train | // ReadConfig reads configuration data from the given location. | {
"resource": ""
} | ||
c3468 | train | // MongoVersion implements Config. | {
"resource": ""
} | ||
c3469 | train | // MongoMemoryProfile implements Config. | {
"resource": ""
} | ||
c3470 | train | // SetMongoVersion implements configSetterOnly. | {
"resource": ""
} | ||
c3471 | train | // SetMongoMemoryProfile implements configSetterOnly. | {
"resource": ""
} | ||
c3472 | train | // WriteCommands is defined on Config interface. | {
"resource": ""
} | ||
c3473 | train | // APIInfo is defined on Config interface. | {
"resource": ""
} | ||
c3474 | train | // MongoInfo is defined on Config interface. | {
"resource": ""
} | ||
c3475 | train | // isCAASModelFacade reports whether the given facade name can be accessed
// using the controller connection. | {
"resource": ""
} | ||
c3476 | train | // UserErr returns an error containing a user-friendly message describing how
// to agree to required terms. | {
"resource": ""
} | ||
c3477 | train | // String returns a human readable form of this InstanceConstraint. | {
"resource": ""
} | ||
c3478 | train | // match returns true if the image can run on the supplied instance type. | {
"resource": ""
} | ||
c3479 | train | // New returns a new external controller updater worker. | {
"resource": ""
} | ||
c3480 | train | // NewMockAvailabilityZone creates a new mock instance | {
"resource": ""
} | ||
c3481 | train | // Available mocks base method | {
"resource": ""
} | ||
c3482 | train | // Available indicates an expected call of Available | {
"resource": ""
} | ||
c3483 | train | // NewMockMetricsCollector creates a new mock instance | {
"resource": ""
} | ||
c3484 | train | // Connections mocks base method | {
"resource": ""
} | ||
c3485 | train | // LogReadCount mocks base method | {
"resource": ""
} | ||
c3486 | train | // LogReadCount indicates an expected call of LogReadCount | {
"resource": ""
} | ||
c3487 | train | // PingFailureCount mocks base method | {
"resource": ""
} | ||
c3488 | train | // TotalConnections mocks base method | {
"resource": ""
} | ||
c3489 | train | // NewFacade creates a Facade from a base.APICaller.
// It's a sensible value for ManifoldConfig.NewFacade. | {
"resource": ""
} | ||
c3490 | train | // Close closes the layer. | {
"resource": ""
} | ||
c3491 | train | // Addr returns the local address for the layer. | {
"resource": ""
} | ||
c3492 | train | // RegisterForServer is the top-level registration method
// for the component in a jujud context. | {
"resource": ""
} | ||
c3493 | train | // registerAgentWorkers adds the resources workers to the agents. | {
"resource": ""
} | ||
c3494 | train | // NewMockZonedEnviron creates a new mock instance | {
"resource": ""
} | ||
c3495 | train | // AdoptResources mocks base method | {
"resource": ""
} | ||
c3496 | train | // AvailabilityZones mocks base method | {
"resource": ""
} | ||
c3497 | train | // ConstraintsValidator mocks base method | {
"resource": ""
} | ||
c3498 | train | // DeriveAvailabilityZones mocks base method | {
"resource": ""
} | ||
c3499 | train | // Destroy mocks base method | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.