_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c156900 | train | // UpdateOperation returns a model operation that will update a unit. | {
"resource": ""
} | ||
c156901 | train | // Destroy, when called on a Alive unit, advances its lifecycle as far as
// possible; it otherwise has no effect. In most situations, the unit's
// life is just set to Dying; but if a principal unit that is not assigned
// to a provisioned machine is Destroyed, it will be removed from state
// directly. | {
"resource": ""
} | ||
c156902 | train | // DestroyOperation returns a model operation that will destroy the unit. | {
"resource": ""
} | ||
c156903 | train | // removeOps returns the operations necessary to remove the unit, assuming
// the supplied asserts apply to the unit document.
// When 'force' is set, this call will return needed operations
// accumulating all operational errors in the operation.
// If the 'force' is not set, any error will be fatal and no operations ... | {
"resource": ""
} | ||
c156904 | train | // EnsureDead sets the unit lifecycle to Dead if it is Alive or Dying.
// It does nothing otherwise. If the unit has subordinates, it will
// return ErrUnitHasSubordinates; otherwise, if it has storage instances,
// it will return ErrUnitHasStorageInstances. | {
"resource": ""
} | ||
c156905 | train | // RemoveOperation returns a model operation that will remove the unit. | {
"resource": ""
} | ||
c156906 | train | // AddError adds an error to the collection of errors for this operation. | {
"resource": ""
} | ||
c156907 | train | // Remove removes the unit from state, and may remove its application as well, if
// the application is Dying and no other references to it exist. It will fail if
// the unit is not Dead. | {
"resource": ""
} | ||
c156908 | train | // When 'force' is set, this call will return needed operations
// and all operational errors will be accumulated in operation itself.
// If the 'force' is not set, any error will be fatal and no operations will be returned. | {
"resource": ""
} | ||
c156909 | train | // SubordinateNames returns the names of any subordinate units. | {
"resource": ""
} | ||
c156910 | train | // RelationsJoined returns the relations for which the unit has entered scope
// and neither left it nor prepared to leave it | {
"resource": ""
} | ||
c156911 | train | // RelationsInScope returns the relations for which the unit has entered scope
// and not left it. | {
"resource": ""
} | ||
c156912 | train | // relations implements RelationsJoined and RelationsInScope. | {
"resource": ""
} | ||
c156913 | train | // DeployerTag returns the tag of the agent responsible for deploying
// the unit. If no such entity can be determined, false is returned. | {
"resource": ""
} | ||
c156914 | train | // PrincipalName returns the name of the unit's principal.
// If the unit is not a subordinate, false is returned. | {
"resource": ""
} | ||
c156915 | train | // machine returns the unit's machine.
//
// machine is part of the machineAssignable interface. | {
"resource": ""
} | ||
c156916 | train | // noAssignedMachineOp is part of the machineAssignable interface. | {
"resource": ""
} | ||
c156917 | train | // PublicAddress returns the public address of the unit. | {
"resource": ""
} | ||
c156918 | train | // containerAddress returns the address of the pod's container. | {
"resource": ""
} | ||
c156919 | train | // serviceAddress returns the address of the service
// managing the pods in which the unit workload is running. | {
"resource": ""
} | ||
c156920 | train | // AvailabilityZone returns the name of the availability zone into which
// the unit's machine instance was provisioned. | {
"resource": ""
} | ||
c156921 | train | // Refresh refreshes the contents of the Unit from the underlying
// state. It an error that satisfies errors.IsNotFound if the unit has
// been removed. | {
"resource": ""
} | ||
c156922 | train | // Agent Returns an agent by its unit's name. | {
"resource": ""
} | ||
c156923 | train | // SetAgentStatus calls SetStatus for this unit's agent, this call
// is equivalent to the former call to SetStatus when Agent and Unit
// where not separate entities. | {
"resource": ""
} | ||
c156924 | train | // AgentStatus calls Status for this unit's agent, this call
// is equivalent to the former call to Status when Agent and Unit
// where not separate entities. | {
"resource": ""
} | ||
c156925 | train | // Status returns the status of the unit.
// This method relies on globalKey instead of globalAgentKey since it is part of
// the effort to separate Unit from UnitAgent. Now the Status for UnitAgent is in
// the UnitAgent struct. | {
"resource": ""
} | ||
c156926 | train | // SetStatus sets the status of the unit agent. The optional values
// allow to pass additional helpful status data.
// This method relies on globalKey instead of globalAgentKey since it is part of
// the effort to separate Unit from UnitAgent. Now the SetStatus for UnitAgent is in
// the UnitAgent struct. | {
"resource": ""
} | ||
c156927 | train | // OpenPortsOnSubnet opens the given port range and protocol for the unit on the
// given subnet, which can be empty. When non-empty, subnetID must refer to an
// existing, alive subnet, otherwise an error is returned. Returns an error if
// opening the requested range conflicts with another already opened range on
// ... | {
"resource": ""
} | ||
c156928 | train | // OpenPortOnSubnet opens the given port and protocol for the unit on the given
// subnet, which can be empty. When non-empty, subnetID must refer to an
// existing, alive subnet, otherwise an error is returned. | {
"resource": ""
} | ||
c156929 | train | // ClosePortOnSubnet closes the given port and protocol for the unit on the given
// subnet, which can be empty. When non-empty, subnetID must refer to an
// existing, alive subnet, otherwise an error is returned. | {
"resource": ""
} | ||
c156930 | train | // OpenedPortsOnSubnet returns a slice containing the open port ranges of the
// unit on the given subnet ID, which can be empty. When subnetID is not empty,
// it must refer to an existing, alive subnet, otherwise an error is returned.
// Also, when no ports are yet open for the unit on that subnet, no error and
// em... | {
"resource": ""
} | ||
c156931 | train | // CharmURL returns the charm URL this unit is currently using. | {
"resource": ""
} | ||
c156932 | train | // charm returns the charm for the unit, or the application if the unit's charm
// has not been set yet. | {
"resource": ""
} | ||
c156933 | train | // assertCharmOps returns txn.Ops to assert the current charm of the unit.
// If the unit currently has no charm URL set, then the application's charm
// URL will be checked by the txn.Ops also. | {
"resource": ""
} | ||
c156934 | train | // WaitAgentPresence blocks until the respective agent is alive.
// This should really only be used in the test suite. | {
"resource": ""
} | ||
c156935 | train | // SetAgentPresence signals that the agent for unit u is alive.
// It returns the started pinger. | {
"resource": ""
} | ||
c156936 | train | // AssignedMachineId returns the id of the assigned machine. | {
"resource": ""
} | ||
c156937 | train | // assignToMachine is the internal version of AssignToMachine. | {
"resource": ""
} | ||
c156938 | train | // validateUnitMachineAssignment validates the parameters for assigning a unit
// to a specified machine. | {
"resource": ""
} | ||
c156939 | train | // validateDynamicMachineStorageParams validates that the provided machine
// storage parameters are compatible with the specified machine. | {
"resource": ""
} | ||
c156940 | train | // storagePools returns the names of storage pools in each of the
// volume, filesystem and attachments in the machine storage parameters. | {
"resource": ""
} | ||
c156941 | train | // validateDynamicMachineStoragePools validates that all of the specified
// storage pools support dynamic storage provisioning. If any provider doesn't
// support dynamic storage, then an IsNotSupported error is returned. | {
"resource": ""
} | ||
c156942 | train | // validateDynamicStoragePools validates that all of the specified storage
// providers support dynamic storage provisioning. If any provider doesn't
// support dynamic storage, then an IsNotSupported error is returned. | {
"resource": ""
} | ||
c156943 | train | // AssignToMachine assigns this unit to a given machine. | {
"resource": ""
} | ||
c156944 | train | // Constraints returns the unit's deployment constraints. | {
"resource": ""
} | ||
c156945 | train | // AssignToNewMachineOrContainer assigns the unit to a new machine,
// with constraints determined according to the application and
// model constraints at the time of unit creation. If a
// container is required, a clean, empty machine instance is required
// on which to create the container. An existing clean, empty ... | {
"resource": ""
} | ||
c156946 | train | // AssignToNewMachine assigns the unit to a new machine, with constraints
// determined according to the application and model constraints at the
// time of unit creation. | {
"resource": ""
} | ||
c156947 | train | // assignToNewMachine assigns the unit to a new machine with the
// optional placement directive, with constraints determined according
// to the application and model constraints at the time of unit creation. | {
"resource": ""
} | ||
c156948 | train | // assignToCleanMaybeEmptyMachine implements AssignToCleanMachine and AssignToCleanEmptyMachine.
// A 'machine' may be a machine instance or container depending on the application constraints. | {
"resource": ""
} | ||
c156949 | train | // UnassignFromMachine removes the assignment between this unit and the
// machine it's assigned to. | {
"resource": ""
} | ||
c156950 | train | // AddAction adds a new Action of type name and using arguments payload to
// this Unit, and returns its ID. Note that the use of spec.InsertDefaults
// mutates payload. | {
"resource": ""
} | ||
c156951 | train | // ActionSpecs gets the ActionSpec map for the Unit's charm. | {
"resource": ""
} | ||
c156952 | train | // CancelAction removes a pending Action from the queue for this
// ActionReceiver and marks it as cancelled. | {
"resource": ""
} | ||
c156953 | train | // Resolve marks the unit as having had any previous state transition
// problems resolved, and informs the unit that it may attempt to
// reestablish normal workflow. The retryHooks parameter informs
// whether to attempt to reexecute previous failed hooks or to continue
// as if they had succeeded before. | {
"resource": ""
} | ||
c156954 | train | // SetResolved marks the unit as having had any previous state transition
// problems resolved, and informs the unit that it may attempt to
// reestablish normal workflow. The resolved mode parameter informs
// whether to attempt to reexecute previous failed hooks or to continue
// as if they had succeeded before. | {
"resource": ""
} | ||
c156955 | train | // ClearResolved removes any resolved setting on the unit. | {
"resource": ""
} | ||
c156956 | train | // StorageConstraints returns the unit's storage constraints. | {
"resource": ""
} | ||
c156957 | train | // StatusHistory implements status.StatusHistoryGetter. | {
"resource": ""
} | ||
c156958 | train | // GetSpaceForBinding returns the space name associated with the specified endpoint. | {
"resource": ""
} | ||
c156959 | train | // UpgradeSeriesStatus returns the upgrade status of the units assigned machine. | {
"resource": ""
} | ||
c156960 | train | // SetUpgradeSeriesStatus sets the upgrade status of the units assigned machine. | {
"resource": ""
} | ||
c156961 | train | // makeAllWatcherCollectionInfo returns a name indexed map of
// allWatcherStateCollection instances for the collections specified. | {
"resource": ""
} | ||
c156962 | train | // getUnitAddresses returns the public and private addresses on a given unit.
// As of 1.18, the addresses are stored on the assigned machine but we retain
// this approach for backwards compatibility. | {
"resource": ""
} | ||
c156963 | train | // backingEntityIdForSettingsKey returns the entity id for the given
// settings key. Any extra information in the key is returned in
// extra. | {
"resource": ""
} | ||
c156964 | train | // updateUnitPorts updates the Ports and PortRanges info of the given unit. | {
"resource": ""
} | ||
c156965 | train | // backingEntityIdForOpenedPortsKey returns the entity id for the given
// openedPorts key. Any extra information in the key is discarded. | {
"resource": ""
} | ||
c156966 | train | // backingEntityIdForGlobalKey returns the entity id for the given global key.
// It returns false if the key is not recognized. | {
"resource": ""
} | ||
c156967 | train | // Unwatch unwatches all the collections. | {
"resource": ""
} | ||
c156968 | train | // NewLoggerAPI creates a new server-side logger API end point. | {
"resource": ""
} | ||
c156969 | train | // WatchLoggingConfig starts a watcher to track changes to the logging config
// for the agents specified.. Unfortunately the current infrastructure makes
// watching parts of the config non-trivial, so currently any change to the
// config will cause the watcher to notify the client. | {
"resource": ""
} | ||
c156970 | train | // LoggingConfig reports the logging configuration for the agents specified. | {
"resource": ""
} | ||
c156971 | train | // groupKeyFor builds a group key for the given lease key. | {
"resource": ""
} | ||
c156972 | train | // NewFSM returns a new FSM to store lease information. | {
"resource": ""
} | ||
c156973 | train | // expired returns a collection of keys for leases that have expired.
// Any pinned leases are not included in the return. | {
"resource": ""
} | ||
c156974 | train | // Leases gets information about all of the leases in the system,
// optionally filtered by the input lease keys. | {
"resource": ""
} | ||
c156975 | train | // filteredLeases is an optimisation for anticipated usage.
// There will usually be a single key for filtering, so iterating over the
// filter list and retrieving from entries will be fastest by far. | {
"resource": ""
} | ||
c156976 | train | // Pinned returns all of the currently known lease pins and applications
// requiring the pinned behaviour. | {
"resource": ""
} | ||
c156977 | train | // Notify is part of FSMResponse. | {
"resource": ""
} | ||
c156978 | train | // Apply is part of raft.FSM. | {
"resource": ""
} | ||
c156979 | train | // Snapshot is part of raft.FSM. | {
"resource": ""
} | ||
c156980 | train | // Restore is part of raft.FSM. | {
"resource": ""
} | ||
c156981 | train | // Persist is part of raft.FSMSnapshot. | {
"resource": ""
} | ||
c156982 | train | // Validate checks that the command describes a valid state change. | {
"resource": ""
} | ||
c156983 | train | // LeaseKey makes a lease key from the fields in the command. | {
"resource": ""
} | ||
c156984 | train | // NewRetryStrategy returns a new retry strategy with the specified delay and
// count for use with retryable provisioning errors. | {
"resource": ""
} | ||
c156985 | train | // notify notifies the observer of a configuration change. | {
"resource": ""
} | ||
c156986 | train | // getStartTask creates a new worker for the provisioner, | {
"resource": ""
} | ||
c156987 | train | // NewEnvironProvisioner returns a new Provisioner for an environment.
// When new machines are added to the state, it allocates instances
// from the environment and allocates them to the new machines. | {
"resource": ""
} | ||
c156988 | train | // setConfig updates the environment configuration and notifies
// the config observer. | {
"resource": ""
} | ||
c156989 | train | // NewContainerProvisioner returns a new Provisioner. When new machines
// are added to the state, it allocates instances from the environment
// and allocates them to the new machines. | {
"resource": ""
} | ||
c156990 | train | // Name implements common.AvailabilityZone | {
"resource": ""
} | ||
c156991 | train | // NewWorker creates a new presence worker that responds to pubsub connection
// messages. | {
"resource": ""
} | ||
c156992 | train | // Report implements worker.Report. | {
"resource": ""
} | ||
c156993 | train | // ModelUsesCredential implements Backend.ModelUsesCredential. | {
"resource": ""
} | ||
c156994 | train | // ModelCredential implements Backend.ModelCredential. | {
"resource": ""
} | ||
c156995 | train | // WatchModelCredential implements Backend.WatchModelCredential. | {
"resource": ""
} | ||
c156996 | train | // UpgradeStatusFinished defines if the upgrade has completed | {
"resource": ""
} | ||
c156997 | train | // Start records the start of an interactive login, and returns a random ID
// that uniquely identifies it. A call to Wait with the same ID will return
// the Interaction once it is done. | {
"resource": ""
} | ||
c156998 | train | // Done signals that the user has either logged in, or attempted to and failed. | {
"resource": ""
} | ||
c156999 | train | // Wait waits until the identified interaction is done, and returns the
// corresponding Interaction. If the cancel channel is signalled before
// the interaction is done, then ErrWaitCanceled is returned. If the
// interaction expires before it is done, ErrExpired is returned. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.