_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c4700 | // AssignedUnits indicates an expected call of AssignedUnits | |
c4701 | // Commit mocks base method | |
c4702 | // Created mocks base method | |
c4703 | // CreatedBy mocks base method | |
c4704 | // DefaultCharmConfig mocks base method | |
c4705 | // UnitNames mocks base method | |
c4706 | // invoke sends the block request on the supplied channel, and waits for the
// unblock channel to be closed. | |
c4707 | // add records the block's unblock channel under the block's lease key. | |
c4708 | // unblock closes all channels added under the supplied key and removes
// them from blocks. | |
c4709 | // NewLock creates a gate.Lock to be used to synchronise workers which
// need to start after upgrades have completed. The returned Lock should
// be passed to NewWorker. If the agent has already upgraded to the
// current version, then the lock will be returned in the released state. | |
c4710 | // NewWorker returns a new instance of the upgradesteps worker. It
// will run any required steps to upgrade to the currently running
// Juju version. | |
c4711 | // runUpgrades runs the upgrade operations for each job type and
// updates the updatedToVersion on success. | |
c4712 | // runUpgradeSteps runs the required upgrade steps for the agent,
// retrying on failure. The agent's UpgradedToVersion is set
// once the upgrade is complete.
//
// This function conforms to the agent.ConfigMutator type and is
// designed to be called via an agent's ChangeConfig method. | |
c4713 | // jobsToTargets determines the upgrade targets corresponding to the
// jobs assigned to an agent. This determines the upgrade steps
// which will run during an upgrade. | |
c4714 | // Validate returns an error if the config can't be expected
// to run a functional worker. | |
c4715 | // New returns a worker that will attempt to rescale any
// applications that might be undersized. | |
c4716 | // Handle is part of the watcher.StringsHandler interface. | |
c4717 | // docIDInt64 generates a globally unique id value
// where the model uuid is prefixed to the
// given int64 localID. | |
c4718 | // NewDeadWatcher returns a new watcher that is already dead
// and always returns the given error from its Err method. | |
c4719 | // NewWatcher returns a new Watcher. | |
c4720 | // Watch starts watching the liveness of key. An event will
// be sent onto ch to report the initial status for the key, and
// from then on a new event will be sent whenever a change is
// detected. Change values sent to the channel must be consumed,
// or the whole watcher will blocked. | |
c4721 | // Unwatch stops watching the liveness of key via ch. | |
c4722 | // Sync forces the watcher to load new events from the database and blocks
// until all events have been dispatched. | |
c4723 | // Alive returns whether the key is currently considered alive by w,
// or an error in case the watcher is dying. | |
c4724 | // loop implements the main watcher loop. | |
c4725 | // checkShouldPrune looks at whether we should run a prune step this time | |
c4726 | // decompressPings looks at a map like 'Alive' and turns it into an array of
// sequences that were seen in those maps | |
c4727 | // sync updates the watcher knowledge from the database, and
// queues events to observing channels. It fetches the last two time
// slots and compares the union of both to the in-memory state. | |
c4728 | // NewPinger returns a new Pinger to report that key is alive.
// It starts reporting after Start is called. | |
c4729 | // Start starts periodically reporting that p's key is alive. | |
c4730 | // Stop stops p's periodical ping.
// Watchers will not notice p has stopped pinging until the
// previous ping times out. | |
c4731 | // killStarted kills the pinger while it is running, by first
// stopping it and then recording in the last pinged slot that
// the pinger was killed. | |
c4732 | // killStopped kills the pinger while it is not running, by
// first allocating a new sequence, and then atomically recording
// the new sequence both as alive and dead at once. | |
c4733 | // loop is the main pinger loop that runs while it is
// in started state. | |
c4734 | // prepare allocates a new unique sequence for the
// pinger key and prepares the pinger to use it. | |
c4735 | // ping records updates the current time slot with the
// sequence in use by the pinger. | |
c4736 | // clockDelta returns the approximate skew between
// the local clock and the database clock. | |
c4737 | // timeSlot returns the current time slot, in seconds since the
// epoch, for the provided now time. The delta skew is applied
// to the now time to improve the synchronization with a
// centrally agreed time.
//
// The result of this method may be manipulated for test purposes
// by fakeTimeSlot and realTimeSlot. | |
c4738 | // realTimeSlot disables the hardcoding introduced by fakeTimeSlot. | |
c4739 | // RemovePresenceForModel removes all of the records of entities for a given model
// across all of the collections. | |
c4740 | // CheckName checks whether name is a valid space name. | |
c4741 | // CheckCIDRs parses the list of strings as CIDRs, checking for
// correct formatting, no duplication and no overlaps. Returns error
// if no CIDRs are provided, unless cidrsOptional is true. | |
c4742 | // NewAPI returns a SpaceAPI for the root api endpoint that the
// environment command returns. | |
c4743 | // updateCharmDir sets charm directory availability for sharing among
// concurrent workers according to local operation state. | |
c4744 | // NewMockStorageV1Interface creates a new mock instance | |
c4745 | // StorageClasses mocks base method | |
c4746 | // NewMockStorageClassInterface creates a new mock instance | |
c4747 | // Phase implements ModelMigration. | |
c4748 | // TargetInfo implements ModelMigration. | |
c4749 | // SetPhase implements ModelMigration. | |
c4750 | // migStatusHistoryAndOps sets the model's status history and returns ops for
// setting model status according to the phase and message. | |
c4751 | // SetStatusMessage implements ModelMigration. | |
c4752 | // SubmitMinionReport implements ModelMigration. | |
c4753 | // MinionReports implements ModelMigration. | |
c4754 | // WatchMinionReports implements ModelMigration. | |
c4755 | // Refresh implements ModelMigration. | |
c4756 | // ModelUserAccess implements ModelMigration. | |
c4757 | // Validate returns an error if the MigrationSpec contains bad
// data. Nil is returned otherwise. | |
c4758 | // Migration retrieves a specific ModelMigration by its id. See also
// LatestMigration and LatestCompletedMigration. | |
c4759 | // IsMigrationActive returns true if a migration is in progress for
// the model with the given UUID. The State provided need not be for
// the model in question. | |
c4760 | // Decorate is part of the Decorator interface. | |
c4761 | // List builds the list of payloads being tracked for
// the given unit and IDs. If no IDs are provided then all tracked
// payloads for the unit are returned. | |
c4762 | // PopValue returns the requested key from the config map. If the value
// doesn't exist, the function returns the empty string. If the value does
// exist, the value is returned, and the element removed from the map. | |
c4763 | // WarnAboutUnused emits a warning about each value in the map. | |
c4764 | // ServeHTTP is defined on handler.Handler. | |
c4765 | // ServeGet handles http GET requests. | |
c4766 | // processGet handles a ReST GET request after authentication. | |
c4767 | // processRemoteApplication handles a request for attributes on remote applications. | |
c4768 | // NewMockNotifyWatcher creates a new mock instance | |
c4769 | // NewMockStringsWatcher creates a new mock instance | |
c4770 | // checkImageList creates image metadata from the oracle image list | |
c4771 | // getImageName gets the name of the image represented by the supplied ID | |
c4772 | // Validate returns ann error if the config cannot start a StringsWorker. | |
c4773 | // NewStringsWorker starts a new worker that runs a StringsHandler. | |
c4774 | // NewManagedFilesystemSource returns a storage.FilesystemSource that manages
// filesystems on block devices on the host machine.
//
// The parameters are maps that the caller will update with information about
// block devices and filesystems created by the source. The caller must not
// update the maps during calls to the source's methods. | |
c4775 | // isDiskDevice reports whether or not the device is a full disk, as opposed
// to a partition or a loop device. We create a partition on disks to contain
// filesystems. | |
c4776 | // watchMachine starts a machine watcher if there is not already one for the
// specified tag. The watcher will notify the worker when the machine changes,
// for example when it is provisioned. | |
c4777 | // refreshMachine refreshes the specified machine's instance ID. If it is set,
// then the machine watcher is stopped and pending entities' parameters are
// updated. If the machine is not provisioned yet, this method is a no-op. | |
c4778 | // machineProvisioned is called when a watched machine is provisioned. | |
c4779 | // Manifold returns a dependency.Manifold that will run a global clock
// updater worker. | |
c4780 | // init sets up the initial data used to determine when a notify occurs. | |
c4781 | // applicationCharmURLChange sends a notification if what is saved for its
// charm lxdprofile changes. No notification is sent if the profile pointer
// begins and ends as nil. | |
c4782 | // addUnit modifies the map of applications being watched when a unit is
// added to the machine. Notification is sent if a new unit whose charm has
// an lxd profile is added. | |
c4783 | // removeUnit modifies the map of applications being watched when a unit is
// removed from the machine. Notification is sent if a unit being removed
// has a profile and other units exist on the machine. | |
c4784 | // provisionedChanged notifies when called. Topic subscribed to is specific to
// this machine. | |
c4785 | // ToParams returns the job as multiwatcher.MachineJob. | |
c4786 | // params.JobsFromJobs converts state jobs to juju jobs. | |
c4787 | // MigrationValue converts the state job into a useful human readable
// string for model migration. | |
c4788 | // ContainerType returns the type of container hosting this machine. | |
c4789 | // SetKeepInstance sets whether the cloud machine instance
// will be retained when the machine is removed from Juju.
// This is only relevant if an instance exists. | |
c4790 | // KeepInstance reports whether a machine, when removed from
// Juju, will cause the corresponding cloud instance to be stopped. | |
c4791 | // CharmProfiles returns the names of any LXD profiles used by the machine,
// which were defined in the charm deployed to that machine. | |
c4792 | // SetCharmProfiles sets the names of the charm profiles used on a machine
// in its instanceData. | |
c4793 | // WantsVote reports whether the machine is a controller
// that wants to take part in peer voting. | |
c4794 | // SetHasVote sets whether the machine is currently a voting
// member of the replica set. It should only be called
// from the worker that maintains the replica set. | |
c4795 | // SetStopMongoUntilVersion sets a version that is to be checked against
// the agent config before deciding if mongo must be started on a
// state server. | |
c4796 | // StopMongoUntilVersion returns the current minimum version that
// is required for this machine to have mongo running. | |
c4797 | // IsManual returns true if the machine was manually provisioned. | |
c4798 | // AgentTools returns the tools that the agent is currently running.
// It returns an error that satisfies errors.IsNotFound if the tools
// have not yet been set. | |
c4799 | // checkVersionValidity checks whether the given version is suitable
// for passing to SetAgentVersion. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.