_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c157700 | train | // SetAgentPresence signals that the agent for application a is alive.
// It returns the started pinger. | {
"resource": ""
} | ||
c157701 | train | // UpdateCloudService updates the cloud service details for the application. | {
"resource": ""
} | ||
c157702 | train | // ServiceInfo returns information about this application's cloud service.
// This is only used for CAAS models. | {
"resource": ""
} | ||
c157703 | train | // UnitNames returns the of this application's units. | {
"resource": ""
} | ||
c157704 | train | // Branch wraps the state model branch method,
// returning the locally defined Generation interface. | {
"resource": ""
} | ||
c157705 | train | // Branches wraps the state model branches method,
// returning a collection of the Generation interface. | {
"resource": ""
} | ||
c157706 | train | // DefaultCharmConfig returns the default configuration
// for this application's charm. | {
"resource": ""
} | ||
c157707 | train | // FindInstanceSpec returns an InstanceSpec satisfying the supplied instanceConstraint. | {
"resource": ""
} | ||
c157708 | train | // checkPermission ensures that the logged in user holds the given permission on an entity. | {
"resource": ""
} | ||
c157709 | train | // checkAdmin ensures that the logged in user is a model or controller admin. | {
"resource": ""
} | ||
c157710 | train | // applicationOffersFromModel gets details about remote applications that match given filters. | {
"resource": ""
} | ||
c157711 | train | // checkOfferAccess returns the level of access the authenticated user has to the offer,
// so long as it is greater than the requested perm. | {
"resource": ""
} | ||
c157712 | train | // getModelsFromOffers returns a slice of models corresponding to the
// specified offer URLs. Each result item has either a model or an error. | {
"resource": ""
} | ||
c157713 | train | // getModelFilters splits the specified filters per model and returns
// the model and filter details for each. | {
"resource": ""
} | ||
c157714 | train | // getApplicationOffersDetails gets details about remote applications that match given filter. | {
"resource": ""
} | ||
c157715 | train | // NewDirectory creates a new directory for the container name in the
// directory identified by `ContainerDir`. | {
"resource": ""
} | ||
c157716 | train | // RemoveDirectory moves the container directory from `ContainerDir`
// to `RemovedContainerDir` and makes sure that the names don't clash. | {
"resource": ""
} | ||
c157717 | train | // NewState creates a new client-side Machiner facade. | {
"resource": ""
} | ||
c157718 | train | // Watch returns a watcher that notifies of changes to counterpart
// units in the relation. | {
"resource": ""
} | ||
c157719 | train | // SetBSON is part of the bson.Setter interface. | {
"resource": ""
} | ||
c157720 | train | // newCleanupOp returns a txn.Op that creates a cleanup document with a unique
// id and the supplied kind and prefix. | {
"resource": ""
} | ||
c157721 | train | // NeedsCleanup returns true if documents previously marked for removal exist. | {
"resource": ""
} | ||
c157722 | train | // cleanupModelsForDyingController sets all models to dying, if
// they are not already Dying or Dead. It's expected to be used when a
// controller is destroyed. | {
"resource": ""
} | ||
c157723 | train | // cleanupMachinesForDyingModel sets all non-manager machines to Dying,
// if they are not already Dying or Dead. It's expected to be used when
// a model is destroyed. | {
"resource": ""
} | ||
c157724 | train | // cleanupStorageForDyingModel sets all storage to Dying, if they are not
// already Dying or Dead. It's expected to be used when a model is destroyed. | {
"resource": ""
} | ||
c157725 | train | // cleanupApplication checks if all references to a dying application have been removed,
// and if so, removes the application. | {
"resource": ""
} | ||
c157726 | train | // cleanupApplicationsForDyingModel sets all applications to Dying, if they are
// not already Dying or Dead. It's expected to be used when a model is
// destroyed. | {
"resource": ""
} | ||
c157727 | train | // cleanupUnitsForDyingApplication sets all units with the given prefix to Dying,
// if they are not already Dying or Dead. It's expected to be used when a
// application is destroyed. | {
"resource": ""
} | ||
c157728 | train | // cleanupDyingUnit marks resources owned by the unit as dying, to ensure
// they are cleaned up as well. | {
"resource": ""
} | ||
c157729 | train | // cleanupRemovedUnit takes care of all the final cleanup required when
// a unit is removed. | {
"resource": ""
} | ||
c157730 | train | // cleanupDyingMachine marks resources owned by the machine as dying, to ensure
// they are cleaned up as well. | {
"resource": ""
} | ||
c157731 | train | // cleanupContainers recursively calls cleanupForceDestroyedMachine on the supplied
// machine's containers, and removes them from state entirely. | {
"resource": ""
} | ||
c157732 | train | // obliterateUnit removes a unit from state completely. It is not safe or
// sane to obliterate any unit in isolation; its only reasonable use is in
// the context of machine obliteration, in which we can be sure that unclean
// shutdown of units is not going to leave a machine in a difficult state. | {
"resource": ""
} | ||
c157733 | train | // cleanupAttachmentsForDyingStorage sets all storage attachments related
// to the specified storage instance to Dying, if they are not already Dying
// or Dead. It's expected to be used when a storage instance is destroyed. | {
"resource": ""
} | ||
c157734 | train | // cleanupAttachmentsForDyingVolume sets all volume attachments related
// to the specified volume to Dying, if they are not already Dying or
// Dead. It's expected to be used when a volume is destroyed. | {
"resource": ""
} | ||
c157735 | train | // cleanupAttachmentsForDyingFilesystem sets all filesystem attachments related
// to the specified filesystem to Dying, if they are not already Dying or
// Dead. It's expected to be used when a filesystem is destroyed. | {
"resource": ""
} | ||
c157736 | train | // Set stores the macaroon on the charm. | {
"resource": ""
} | ||
c157737 | train | // insertCharmOps returns the txn operations necessary to insert the supplied
// charm data. If curl is nil, an error will be returned. | {
"resource": ""
} | ||
c157738 | train | // insertPlaceholderCharmOps returns the txn operations necessary to insert a
// charm document referencing a store charm that is not yet directly accessible
// within the model. If curl is nil, an error will be returned. | {
"resource": ""
} | ||
c157739 | train | // insertAnyCharmOps returns the txn operations necessary to insert the supplied
// charm document. | {
"resource": ""
} | ||
c157740 | train | // updateCharmOps returns the txn operations necessary to update the charm
// document with the supplied data, so long as the supplied assert still holds
// true. | {
"resource": ""
} | ||
c157741 | train | // convertPlaceholderCharmOps returns the txn operations necessary to convert
// the charm with the supplied docId from a placeholder to one marked for
// pending upload. | {
"resource": ""
} | ||
c157742 | train | // deleteOldPlaceholderCharmsOps returns the txn ops required to delete all placeholder charm
// records older than the specified charm URL. | {
"resource": ""
} | ||
c157743 | train | // safeLXDProfile ensures that the LXDProfile that we put into the mongo data
// store, can in fact store the profile safely by escaping mongo-
// significant characters in config options. | {
"resource": ""
} | ||
c157744 | train | // unescapeLXDProfile returns the LXDProfile back to normal after
// reading from state. | {
"resource": ""
} | ||
c157745 | train | // Tag returns a tag identifying the charm.
// Implementing state.GlobalEntity interface. | {
"resource": ""
} | ||
c157746 | train | // Refresh loads fresh charm data from the database. In practice, the
// only observable change should be to its Life value. | {
"resource": ""
} | ||
c157747 | train | // Destroy sets the charm to Dying and prevents it from being used by
// applications or units. It only works on local charms, and only when
// the charm is not referenced by any application. | {
"resource": ""
} | ||
c157748 | train | // URL returns the URL that identifies the charm. | {
"resource": ""
} | ||
c157749 | train | // Macaroon return the macaroon that can be used to request data about the charm
// from the charmstore, or nil if the charm is not private. | {
"resource": ""
} | ||
c157750 | train | // UpdateMacaroon updates the stored macaroon for this charm. | {
"resource": ""
} | ||
c157751 | train | // AddCharm adds the ch charm with curl to the state.
// On success the newly added charm state is returned. | {
"resource": ""
} | ||
c157752 | train | // AllCharms returns all charms in state. | {
"resource": ""
} | ||
c157753 | train | // Charm returns the charm with the given URL. Charms pending upload
// to storage and placeholders are never returned. | {
"resource": ""
} | ||
c157754 | train | // PrepareLocalCharmUpload must be called before a local charm is
// uploaded to the provider storage in order to create a charm
// document in state. It returns the chosen unique charm URL reserved
// in state for the charm.
//
// The url's schema must be "local" and it must include a revision. | {
"resource": ""
} | ||
c157755 | train | // AddStoreCharmPlaceholder creates a charm document in state for the given charm URL which
// must reference a charm from the store. The charm document is marked as a placeholder which
// means that if the charm is to be deployed, it will need to first be uploaded to model storage. | {
"resource": ""
} | ||
c157756 | train | // Download downloads the resource from the provied source to the target. | {
"resource": ""
} | ||
c157757 | train | // NewCredentials returns a new Credentials based on the provided
// values. The keys must be recognized OS env var names for the
// different credential fields. | {
"resource": ""
} | ||
c157758 | train | // ParseJSONKey returns a new Credentials with values based on the
// provided JSON key file contents. | {
"resource": ""
} | ||
c157759 | train | // buildJSONKey returns the content of the JSON key file for the
// credential values. | {
"resource": ""
} | ||
c157760 | train | // Values returns the credentials as a simple mapping with the
// corresponding OS env variable names as the keys. | {
"resource": ""
} | ||
c157761 | train | // Validate checks the credentialss for invalid values. If the values
// are not valid, it returns errors.NotValid with the message set to
// the corresponding OS environment variable name.
//
// To be considered valid, each of the credentials must be set to some
// non-empty value. Furthermore, ClientEmail must be a p... | {
"resource": ""
} | ||
c157762 | train | // Validate checks the connection's fields for invalid values.
// If the values are not valid, it returns a config.InvalidConfigValueError
// error with the key set to the corresponding OS environment variable
// name.
//
// To be considered valid, each of the connection's must be set to some
// non-empty value. | {
"resource": ""
} | ||
c157763 | train | // CreateSubnetMatcher creates a SubnetMatcher that handles a particular method
// of comparison based on the content of the subnet query. If the query looks
// like a CIDR, then we will match subnets with the same CIDR. If it follows
// the syntax of a "subnet-XXXX" then we will match the Subnet ID. Everything
// else... | {
"resource": ""
} | ||
c157764 | train | // Flush implements runner.Context. | {
"resource": ""
} | ||
c157765 | train | // AddMetric implements runner.Context. | {
"resource": ""
} | ||
c157766 | train | // AddMetricLabels implements runner.Context. | {
"resource": ""
} | ||
c157767 | train | // addJujuUnitsMetric adds the juju-units built in metric if it
// is defined for this context. | {
"resource": ""
} | ||
c157768 | train | // Component implements runner.Context. | {
"resource": ""
} | ||
c157769 | train | // NewProvider instantiates and returns the Azure EnvironProvider using the
// given configuration. | {
"resource": ""
} | ||
c157770 | train | // NewFacade returns a Facade backed by the supplied api caller. | {
"resource": ""
} | ||
c157771 | train | // Phase returns the current migration.Phase for the supplied model UUID. | {
"resource": ""
} | ||
c157772 | train | // Watch returns a NotifyWatcher that will inform of potential changes
// to the result of Phase for the supplied model UUID. | {
"resource": ""
} | ||
c157773 | train | // call converts the supplied model uuid into a params.Entities and
// invokes the facade caller. | {
"resource": ""
} | ||
c157774 | train | // sendError implements debugLogSocket. | {
"resource": ""
} | ||
c157775 | train | // NewMockMeterStatusState creates a new mock instance | {
"resource": ""
} | ||
c157776 | train | // NewMetricsManager creates a runner that will run the metricsmanagement workers. | {
"resource": ""
} | ||
c157777 | train | // NewLeadershipServiceFacade constructs a new LeadershipService and presents
// a signature that can be used for facade registration. | {
"resource": ""
} | ||
c157778 | train | // NewLeadershipService constructs a new LeadershipService. | {
"resource": ""
} | ||
c157779 | train | // ClaimLeadership is part of the LeadershipService interface. | {
"resource": ""
} | ||
c157780 | train | // BlockUntilLeadershipReleased implements the LeadershipService interface. | {
"resource": ""
} | ||
c157781 | train | // parseApplicationAndUnitTags takes in string representations of application
// and unit tags and returns their corresponding tags. | {
"resource": ""
} | ||
c157782 | train | // subordinateOps returns any txn operations necessary to ensure sane
// subordinate state when entering scope. If a required subordinate unit
// exists and is Alive, its name will be returned as well; if one exists
// but is not Alive, ErrCannotEnterScopeYet is returned. | {
"resource": ""
} | ||
c157783 | train | // LeaveScopeOperation returns a model operation that will allow relation to leave scope. | {
"resource": ""
} | ||
c157784 | train | // leaveScopeForcedOps is an internal method used by other state objects when they just want
// to get database operations that are involved in leaving scop without
// the actual immeiate act of leaving scope. | {
"resource": ""
} | ||
c157785 | train | // When 'force' is set, this call will return needed operations
// and will accumulate all operational errors encountered in the operation.
// If the 'force' is not set, any error will be fatal and no operations will be applied. | {
"resource": ""
} | ||
c157786 | train | // Joined returns whether the relation unit has entered scope and neither left
// it nor prepared to leave it. | {
"resource": ""
} | ||
c157787 | train | // inScope returns whether a scope document exists satisfying the supplied
// selector. | {
"resource": ""
} | ||
c157788 | train | // WatchScope returns a watcher which notifies of counterpart units
// entering and leaving the unit's scope. | {
"resource": ""
} | ||
c157789 | train | // unitKey returns a string, based on the relation and the supplied unit name,
// which is used as a key for that unit within this relation in the settings,
// presence, and relationScopes collections. | {
"resource": ""
} | ||
c157790 | train | // key returns a string, based on the relation and the current unit name,
// which is used as a key for that unit within this relation in the settings,
// presence, and relationScopes collections. | {
"resource": ""
} | ||
c157791 | train | // ComponentDir returns the filesystem path to the directory
// containing all data files for a component. | {
"resource": ""
} | ||
c157792 | train | // NewWorkerPaths returns the set of filesystem paths that the supplied unit worker should
// use, given the supplied root juju data directory path and worker identifier.
// Distinct worker identifiers ensure that runtime paths of different worker do not interfere. | {
"resource": ""
} | ||
c157793 | train | // NewClient creates a new client for accessing the MeterStatus API. | {
"resource": ""
} | ||
c157794 | train | // MeterStatus is part of the MeterStatusClient interface. | {
"resource": ""
} | ||
c157795 | train | // Get implements ModelPoolBackend.Get. | {
"resource": ""
} | ||
c157796 | train | // Model implements PooledModelBackend.Model. | {
"resource": ""
} | ||
c157797 | train | // EncodeChecksum base64 encodes a sha256 checksum according to RFC 4648 and
// returns a value that can be added to the "Digest" http header. | {
"resource": ""
} | ||
c157798 | train | // NewFacadeCaller wraps an APICaller for a given facade name and the
// best available version. | {
"resource": ""
} | ||
c157799 | train | // NewFacadeCallerForVersion wraps an APICaller for a given facade
// name and version. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.