_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c157600 | train | // WatchUnitRelations returns a StringsWatcher, for each given
// unit, that notifies of changes to the lifecycles of relations
// relevant to that unit. For principal units, this will be all of the
// relations for the application. For subordinate units, only
// relations with the principal unit's application will be ... | {
"resource": ""
} | ||
c157601 | train | // WatchApplicationRelations returns a StringsWatcher, for each given
// application, that notifies of changes to the lifecycles of
// relations involving that application. This method is obsolete -
// it's been replaced by WatchUnitRelations in V5 of the uniter API. | {
"resource": ""
} | ||
c157602 | train | // Network Info implements UniterAPIV6 version of NetworkInfo by constructing an API V6 compatible result. | {
"resource": ""
} | ||
c157603 | train | // SetPodSpec sets the pod specs for a set of applications. | {
"resource": ""
} | ||
c157604 | train | // CloudSpec returns the cloud spec used by the model in which the
// authenticated unit or application resides.
// A check is made beforehand to ensure that the request is made by an entity
// that has been granted the appropriate trust. | {
"resource": ""
} | ||
c157605 | train | // GoalStates returns information of charm units and relations. | {
"resource": ""
} | ||
c157606 | train | // oneGoalState creates the goal state for a given unit. | {
"resource": ""
} | ||
c157607 | train | // goalStateRelations creates the structure with all the relations between endpoints in an application. | {
"resource": ""
} | ||
c157608 | train | // goalStateUnits loops through all application units related to principalName,
// and stores the goal state status in UnitsGoalState. | {
"resource": ""
} | ||
c157609 | train | // WatchUnitAddressesHash returns a StringsWatcher that yields the
// hashes of the addresses for the unit whenever the addresses
// change. The uniter can use the hash to determine whether the actual
// address values have changed since it last saw the config. | {
"resource": ""
} | ||
c157610 | train | // CloudAPIVersion returns the cloud API version, if available. | {
"resource": ""
} | ||
c157611 | train | // NetworkInterfaces implements Environ.NetworkInterfaces. | {
"resource": ""
} | ||
c157612 | train | // NewServerSpec creates a ServerSpec with default values where needed.
// It also ensures the HTTPS for the host implicitly | {
"resource": ""
} | ||
c157613 | train | // WithProxy adds the optional proxy to the server spec.
// Returns the ServerSpec to enable chaining of optional values | {
"resource": ""
} | ||
c157614 | train | // WithClientCertificate adds the optional client Certificate to the server
// spec.
// Returns the ServerSpec to enable chaining of optional values | {
"resource": ""
} | ||
c157615 | train | // WithSkipGetServer adds the option skipping of the get server verification to
// the server spec. | {
"resource": ""
} | ||
c157616 | train | // NewInsecureServerSpec creates a ServerSpec without certificate requirements,
// which also bypasses the TLS verification.
// It also ensures the HTTPS for the host implicitly | {
"resource": ""
} | ||
c157617 | train | // MakeSimpleStreamsServerSpec creates a ServerSpec for the SimpleStreams
// protocol, ensuring that the host is HTTPS | {
"resource": ""
} | ||
c157618 | train | // ConnectRemote connects to LXD on a remote socket. | {
"resource": ""
} | ||
c157619 | train | // EnsureHTTPS takes a URI and ensures that it is a HTTPS URL.
// LXD Requires HTTPS. | {
"resource": ""
} | ||
c157620 | train | // EnsureHostPort takes a URI and ensures that it has a port set, if it doesn't
// then it will ensure that port if added.
// The address supplied for the Host will be validated when parsed and if the
// address is not valid, then it will return an error. | {
"resource": ""
} | ||
c157621 | train | // Stop stops the watcher. If an error is returned by the
// watcher, t is killed with the error. | {
"resource": ""
} | ||
c157622 | train | // EnsureErr returns the error with which w died. Calling it will also
// return an error if w is still running or was stopped cleanly. | {
"resource": ""
} | ||
c157623 | train | // Implement the send interface, act like everything is fine. | {
"resource": ""
} | ||
c157624 | train | // NewLXDProfileAPI returns a new LXDProfileAPI. Currently both
// GetAuthFuncs can used to determine current permissions. | {
"resource": ""
} | ||
c157625 | train | // NewExternalLXDProfileAPI can be used for API registration. | {
"resource": ""
} | ||
c157626 | train | // WatchUnitLXDProfileUpgradeNotifications returns a StringsWatcher for observing
// changes to the lxd profile changes for one unit. | {
"resource": ""
} | ||
c157627 | train | // RemoveUpgradeCharmProfileData is intended to clean up the LXDProfile status
// to ensure that we start from a clean slate. | {
"resource": ""
} | ||
c157628 | train | // AddInstance creates a new instance based on the spec's data and
// returns it. The instance will be created using the provided
// connection and in the provided zone. | {
"resource": ""
} | ||
c157629 | train | // Instance gets the up-to-date info about the given instance
// and returns it. | {
"resource": ""
} | ||
c157630 | train | // UpdateMetadata sets the metadata key to the specified value for
// all of the instance ids given. The call blocks until all
// of the instances are updated or the request fails. | {
"resource": ""
} | ||
c157631 | train | // NewUpgradeSeriesAPI returns a new UpgradeSeriesAPI. Currently both
// GetAuthFuncs can used to determine current permissions. | {
"resource": ""
} | ||
c157632 | train | // WatchUpgradeSeriesNotifications returns a NotifyWatcher for observing changes to upgrade series locks. | {
"resource": ""
} | ||
c157633 | train | // UpgradeSeriesUnitStatus returns the current preparation status of an
// upgrading unit.
// If no series upgrade is in progress an error is returned instead. | {
"resource": ""
} | ||
c157634 | train | // SetUpgradeSeriesUnitStatus sets the upgrade series status of the unit.
// If no upgrade is in progress an error is returned instead. | {
"resource": ""
} | ||
c157635 | train | // NewExternalUpgradeSeriesAPI can be used for API registration. | {
"resource": ""
} | ||
c157636 | train | // Watch starts watching for an active migration for the model
// associated with the API connection. The returned id should be used
// with the NotifyWatcher facade to receive events. | {
"resource": ""
} | ||
c157637 | train | // ModelInfo returns essential information about the model to be
// migrated. | {
"resource": ""
} | ||
c157638 | train | // SetStatusMessage sets a human readable status message containing
// information about the migration's progress. This will be shown in
// status output shown to the end user. | {
"resource": ""
} | ||
c157639 | train | // Export serializes the model associated with the API connection. | {
"resource": ""
} | ||
c157640 | train | // Reap removes all documents for the model associated with the API
// connection. | {
"resource": ""
} | ||
c157641 | train | // WatchMinionReports sets up a watcher which reports when a report
// for a migration minion has arrived. | {
"resource": ""
} | ||
c157642 | train | // GUIArchives retrieves information about Juju GUI archives currently present
// in the Juju controller. | {
"resource": ""
} | ||
c157643 | train | // UploadGUIArchive uploads a GUI archive to the controller over HTTPS, and
// reports about whether the upload updated the current GUI served by Juju. | {
"resource": ""
} | ||
c157644 | train | // SelectGUIVersion selects which version of the Juju GUI is served by the
// controller. | {
"resource": ""
} | ||
c157645 | train | // NewScaleApplicationCommand returns a command which scales an application's units. | {
"resource": ""
} | ||
c157646 | train | // NewerThan will return 1 if the passed version is older than
// v, 0 if they are equal (or ver is a special case such as
// Upgrading and -1 if ver is newer. | {
"resource": ""
} | ||
c157647 | train | // String serializes the version into a string. | {
"resource": ""
} | ||
c157648 | train | // JujuMongodPath returns the path for the mongod binary
// with the specified version. | {
"resource": ""
} | ||
c157649 | train | // IsMaster returns a boolean that represents whether the given
// machine's peer address is the primary mongo host for the replicaset | {
"resource": ""
} | ||
c157650 | train | // SelectPeerAddress returns the address to use as the mongo replica set peer
// address by selecting it from the given addresses. If no addresses are
// available an empty string is returned. | {
"resource": ""
} | ||
c157651 | train | // Path returns the executable path to be used to run mongod on this
// machine. If the juju-bundled version of mongo exists, it will return that
// path, otherwise it will return the command to run mongod from the path. | {
"resource": ""
} | ||
c157652 | train | // NewMemoryProfile returns a Memory Profile from the passed value. | {
"resource": ""
} | ||
c157653 | train | // packagesForSeries returns the name of the mongo package for the series
// of the machine that it is going to be running on plus a fallback for
// options where the package is going to be ready eventually but might not
// yet be. | {
"resource": ""
} | ||
c157654 | train | // Manifold returns a dependency manifold that runs a machiner worker, using
// the resource names defined in the supplied config. | {
"resource": ""
} | ||
c157655 | train | // charmConfigKey returns the charm-version-specific settings collection
// key for the application. | {
"resource": ""
} | ||
c157656 | train | // storageConstraintsKey returns the charm-version-specific storage
// constraints collection key for the application. | {
"resource": ""
} | ||
c157657 | train | // deviceConstraintsKey returns the charm-version-specific device
// constraints collection key for the application. | {
"resource": ""
} | ||
c157658 | train | // AgentTools returns the tools that the operator is currently running.
// It an error that satisfies errors.IsNotFound if the tools have not
// yet been set. | {
"resource": ""
} | ||
c157659 | train | // Destroy ensures that the application and all its relations will be removed at
// some point; if the application has no units, and no relation involving the
// application has any units in scope, they are all removed immediately. | {
"resource": ""
} | ||
c157660 | train | // DestroyOperation returns a model operation that will destroy the application. | {
"resource": ""
} | ||
c157661 | train | // removeOps returns the operations required to remove the application. Supplied
// asserts will be included in the operation on the application document.
// When force is set, the operation will proceed regardless of the errors,
// and if any errors are encountered, all possible accumulated operations
// as well as al... | {
"resource": ""
} | ||
c157662 | train | // Charm returns the application's charm and whether units should upgrade to that
// charm even if they are in an error state. | {
"resource": ""
} | ||
c157663 | train | // CharmURL returns the application's charm URL, and whether units should upgrade
// to the charm with that URL even if they are in an error state. | {
"resource": ""
} | ||
c157664 | train | // Channel identifies the charm store channel from which the application's
// charm was deployed. It is only needed when interacting with the charm
// store. | {
"resource": ""
} | ||
c157665 | train | // extraPeerRelations returns only the peer relations in newMeta not
// present in the application's current charm meta data. | {
"resource": ""
} | ||
c157666 | train | // Deployed machines returns the collection of machines
// that this application has units deployed to. | {
"resource": ""
} | ||
c157667 | train | // incCharmModifiedVersionOps returns the operations necessary to increment
// the CharmModifiedVersion field for the given application. | {
"resource": ""
} | ||
c157668 | train | // UpdateApplicationSeries updates the series for the Application. | {
"resource": ""
} | ||
c157669 | train | // VerifySupportedSeries verifies if the given series is supported by the
// application. | {
"resource": ""
} | ||
c157670 | train | // Refresh refreshes the contents of the Application from the underlying
// state. It returns an error that satisfies errors.IsNotFound if the
// application has been removed. | {
"resource": ""
} | ||
c157671 | train | // ChangeScale alters the existing scale by the provided change amount, returning the new amount.
// This is used on CAAS models. | {
"resource": ""
} | ||
c157672 | train | // SetScale sets the application's desired scale value.
// This is used on CAAS models. | {
"resource": ""
} | ||
c157673 | train | // newUnitName returns the next unit name. | {
"resource": ""
} | ||
c157674 | train | // addUnitOps returns a unique name for a new unit, and a list of txn operations
// necessary to create that unit. The principalName param must be non-empty if
// and only if s is a subordinate application. Only one subordinate of a given
// application will be assigned to a given principal. The asserts param can be us... | {
"resource": ""
} | ||
c157675 | train | // incApplicationOffersRefOp returns a txn.Op that increments the reference
// count for an application offer. | {
"resource": ""
} | ||
c157676 | train | // countApplicationOffersRefOp returns the number of offers for an application,
// along with a txn.Op that ensures that that does not change. | {
"resource": ""
} | ||
c157677 | train | // decApplicationOffersRefOp returns a txn.Op that decrements the reference
// count for an application offer. | {
"resource": ""
} | ||
c157678 | train | // incUnitCountOp returns the operation to increment the application's unit count. | {
"resource": ""
} | ||
c157679 | train | // AddUnit adds a new principal unit to the application. | {
"resource": ""
} | ||
c157680 | train | // AllUnits returns all units of the application. | {
"resource": ""
} | ||
c157681 | train | // CharmConfig returns the raw user configuration for the application's charm. | {
"resource": ""
} | ||
c157682 | train | // UpdateCharmConfig changes a application's charm config settings. Values set
// to nil will be deleted; unknown and invalid values will return an error. | {
"resource": ""
} | ||
c157683 | train | // updateBranchConfig compares the incoming charm settings to the current
// settings to generate a collection of changes, which is used to update the
// branch with the input name. | {
"resource": ""
} | ||
c157684 | train | // ApplicationConfig returns the configuration for the application itself. | {
"resource": ""
} | ||
c157685 | train | // UpdateApplicationConfig changes an application's config settings.
// Unknown and invalid values will return an error. | {
"resource": ""
} | ||
c157686 | train | // LeaderSettings returns a application's leader settings. If nothing has been set
// yet, it will return an empty map; this is not an error. | {
"resource": ""
} | ||
c157687 | train | // Constraints returns the current application constraints. | {
"resource": ""
} | ||
c157688 | train | // SetConstraints replaces the current application constraints. | {
"resource": ""
} | ||
c157689 | train | // defaultEndpointBindings returns a map with each endpoint from the current
// charm metadata bound to an empty space. If no charm URL is set yet, it
// returns an empty map. | {
"resource": ""
} | ||
c157690 | train | // SetMetricCredentials updates the metric credentials associated with this application. | {
"resource": ""
} | ||
c157691 | train | // StorageConstraints returns the storage constraints for the application. | {
"resource": ""
} | ||
c157692 | train | // DeviceConstraints returns the device constraints for the application. | {
"resource": ""
} | ||
c157693 | train | // Status returns the status of the application.
// Only unit leaders are allowed to set the status of the application.
// If no status is recorded, then there are no unit leaders and the
// status is derived from the unit status values. | {
"resource": ""
} | ||
c157694 | train | // SetOperatorStatus sets the operator status for an application.
// This is used on CAAS models. | {
"resource": ""
} | ||
c157695 | train | // StatusHistory returns a slice of at most filter.Size StatusInfo items
// or items as old as filter.Date or items newer than now - filter.Delta time
// representing past statuses for this application. | {
"resource": ""
} | ||
c157696 | train | // ApplicationAndUnitsStatus returns the status for this application and all its units. | {
"resource": ""
} | ||
c157697 | train | // PasswordValid returns whether the given password is valid
// for the given application. | {
"resource": ""
} | ||
c157698 | train | // UpdateUnits applies the given application unit update operations. | {
"resource": ""
} | ||
c157699 | train | // AddOperation returns a model operation that will add a unit. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.