_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c157000 | train | // Expire removes any interactions that were due to expire by the
// specified time. | {
"resource": ""
} | ||
c157001 | train | // isMyController is used to filter servers in the CloudSigma account | {
"resource": ""
} | ||
c157002 | train | // instances returns a list of CloudSigma servers for this environment | {
"resource": ""
} | ||
c157003 | train | // instanceMap of server ids to servers at CloudSigma account | {
"resource": ""
} | ||
c157004 | train | //getControllerIds get list of ids for all controller instances | {
"resource": ""
} | ||
c157005 | train | //stopInstance stops the CloudSigma server corresponding to the given instance ID. | {
"resource": ""
} | ||
c157006 | train | // leaseHolderDocId returns the _id for the document holding details of the supplied
// namespace and lease. | {
"resource": ""
} | ||
c157007 | train | // newLeaseHolderDoc returns a valid lease document encoding the supplied lease and
// entry in the supplied namespace, or an error. | {
"resource": ""
} | ||
c157008 | train | // NewNotifyTarget returns something that can be used to report lease
// changes. | {
"resource": ""
} | ||
c157009 | train | // Claimed is part of raftlease.NotifyTarget. | {
"resource": ""
} | ||
c157010 | train | // Expired is part of raftlease.NotifyTarget. | {
"resource": ""
} | ||
c157011 | train | // MakeTrapdoorFunc returns a raftlease.TrapdoorFunc for the specified
// collection. | {
"resource": ""
} | ||
c157012 | train | // LeaseHolders returns a map of each lease and the holder in the
// specified namespace and model. | {
"resource": ""
} | ||
c157013 | train | // SetFlags offers an option for YAML output. | {
"resource": ""
} | ||
c157014 | train | // NewAPIAddresser returns a new APIAddresser that uses the given getter to
// fetch its addresses. | {
"resource": ""
} | ||
c157015 | train | // APIHostPorts returns the API server addresses. | {
"resource": ""
} | ||
c157016 | train | // WatchAPIHostPorts watches the API server addresses. | {
"resource": ""
} | ||
c157017 | train | // ModelUUID returns the model UUID to connect to the model
// that the current connection is for. | {
"resource": ""
} | ||
c157018 | train | // normalize adjusts the conf to more standardized content and
// returns a new Conf with that updated content. It also returns the
// content of any script file that should accompany the conf. | {
"resource": ""
} | ||
c157019 | train | // serialize returns the data that should be written to disk for the
// provided Conf, rendered in the systemd unit file format. | {
"resource": ""
} | ||
c157020 | train | // ReadCredentialsFile loads all credentials defined in a given file.
// If the file is not found, it is not an error. | {
"resource": ""
} | ||
c157021 | train | // WriteCredentialsFile marshals to YAML details of the given credentials
// and writes it to the credentials file. | {
"resource": ""
} | ||
c157022 | train | // Manifold returns a dependency manifold that runs a uniter worker,
// using the resource names defined in the supplied config. | {
"resource": ""
} | ||
c157023 | train | // EnsureDefaultStorage ensures that the input profile is configured with a
// disk device, creating a new storage pool and a device if required. | {
"resource": ""
} | ||
c157024 | train | // Serve upgrades an HTTP connection to a websocket, and
// serves the given handler. | {
"resource": ""
} | ||
c157025 | train | // SendInitialErrorV0 writes out the error as a params.ErrorResult serialized
// with JSON with a new line character at the end.
//
// This is a hangover from the initial debug-log streaming endpoint where the
// client read the first line, and then just got a stream of data. We should
// look to version the streaming ... | {
"resource": ""
} | ||
c157026 | train | // NewAllWatcher returns an AllWatcher instance which interacts with a
// watcher created by the WatchAll API call.
//
// There should be no need to call this from outside of the api
// package. It is only used by Client.WatchAll in this package. | {
"resource": ""
} | ||
c157027 | train | // Next returns a new set of deltas from a watcher previously created
// by the WatchAll or WatchAllModels API calls. It will block until
// there are deltas to return. | {
"resource": ""
} | ||
c157028 | train | // Stop shutdowns down a watcher previously created by the WatchAll or
// WatchAllModels API calls | {
"resource": ""
} | ||
c157029 | train | // ImportRemoteEntity adds an entity to the remote entities collection
// with the specified opaque token.
// If the entity already exists, its token will be overwritten.
// This method assumes that the provided token is unique within the
// source model, and does not perform any uniqueness checks on it. | {
"resource": ""
} | ||
c157030 | train | // RemoveRemoteEntity removes the entity from the remote entities collection,
// and releases the token if the entity belongs to the local model. | {
"resource": ""
} | ||
c157031 | train | // removeRemoteEntityOpa returns the txn.Ops to remove the remote entity
// document. It also removes any token document for exported entities. | {
"resource": ""
} | ||
c157032 | train | // GetToken returns the token associated with the entity with the given tag
// and model. | {
"resource": ""
} | ||
c157033 | train | // GetMacaroon returns the macaroon associated with the entity with the given tag
// and model. | {
"resource": ""
} | ||
c157034 | train | // SaveMacaroon saves the given macaroon for the specified entity. | {
"resource": ""
} | ||
c157035 | train | // GetRemoteEntity returns the tag of the entity associated with the given token. | {
"resource": ""
} | ||
c157036 | train | // ControllersReady returns the machine ids for controllers that
// have signalled that they are ready for upgrade. | {
"resource": ""
} | ||
c157037 | train | // Refresh updates the contents of the UpgradeInfo from underlying state. | {
"resource": ""
} | ||
c157038 | train | // AllProvisionedControllersReady returns true if and only if all controllers
// that have been started by the provisioner have called EnsureUpgradeInfo with
// matching versions.
//
// When this returns true the master state controller can begin it's
// own upgrade. | {
"resource": ""
} | ||
c157039 | train | // upgradeStatusHistoryAndOps sets the model's status history and returns ops for
// setting model status according to the UpgradeStatus. | {
"resource": ""
} | ||
c157040 | train | // SetStatus sets the status of the current upgrade. Checks are made
// to ensure that status changes are performed in the correct order. | {
"resource": ""
} | ||
c157041 | train | // EnsureUpgradeInfo returns an UpgradeInfo describing a current upgrade between the
// supplied versions. If a matching upgrade is in progress, that upgrade is returned;
// if there's a mismatch, an error is returned. The supplied machine id must correspond
// to a current controller. | {
"resource": ""
} | ||
c157042 | train | // SetControllerDone marks the supplied state machineId as having
// completed its upgrades. When SetControllerDone is called by the
// last provisioned controller, the current upgrade info document
// will be archived with a status of UpgradeComplete. | {
"resource": ""
} | ||
c157043 | train | // Abort marks the current upgrade as aborted. It should be called if
// the upgrade can't be completed for some reason. | {
"resource": ""
} | ||
c157044 | train | // IsUpgrading returns true if an upgrade is currently in progress. | {
"resource": ""
} | ||
c157045 | train | // AbortCurrentUpgrade archives any current UpgradeInfo and sets its
// status to UpgradeAborted. Nothing happens if there's no current
// UpgradeInfo. | {
"resource": ""
} | ||
c157046 | train | // ClearUpgradeInfo clears information about an upgrade in progress. It returns
// an error if no upgrade is current. | {
"resource": ""
} | ||
c157047 | train | // NewRelationCache creates a new RelationCache that will use the supplied
// SettingsFunc to populate itself on demand. Initial membership is determined
// by memberNames. | {
"resource": ""
} | ||
c157048 | train | // Prune resets the membership to the supplied list, and discards the settings
// of all non-member units. | {
"resource": ""
} | ||
c157049 | train | // MemberNames returns the names of the remote units present in the relation. | {
"resource": ""
} | ||
c157050 | train | // Settings returns the settings of the named remote unit. It's valid to get
// the settings of any unit that has ever been in the relation. | {
"resource": ""
} | ||
c157051 | train | // NewModelManagerBackend returns a modelManagerStateShim wrapping the passed
// state, which implements ModelManagerBackend. | {
"resource": ""
} | ||
c157052 | train | // NewModel implements ModelManagerBackend. | {
"resource": ""
} | ||
c157053 | train | // UpdateModelConfigDefaultValues implements the ModelManagerBackend method. | {
"resource": ""
} | ||
c157054 | train | // GetBackend implements ModelManagerBackend. | {
"resource": ""
} | ||
c157055 | train | // GetModel implements ModelManagerBackend. | {
"resource": ""
} | ||
c157056 | train | // Users implements ModelManagerBackend. | {
"resource": ""
} | ||
c157057 | train | // ModelConfig returns the underlying model's config. Exposed here to satisfy the
// ModelBackend interface. | {
"resource": ""
} | ||
c157058 | train | // Bootstrap is a common implementation of the Bootstrap method defined on
// environs.Environ; we strongly recommend that this implementation be used
// when writing a new provider. | {
"resource": ""
} | ||
c157059 | train | // bootstrapSSHOptionsFunc that takes a bootstrap machine's InstanceConfig
// and returns a HostSSHOptionsFunc. | {
"resource": ""
} | ||
c157060 | train | // Refresh refreshes the addresses for the instance. | {
"resource": ""
} | ||
c157061 | train | // Close prevents additional functions from being added to
// the Try, and tells each active hostChecker to exit. | {
"resource": ""
} | ||
c157062 | train | // WaitSSH waits for the instance to be assigned a routable
// address, then waits until we can connect to it via SSH.
//
// waitSSH attempts on all addresses returned by the instance
// in parallel; the first succeeding one wins. We ensure that
// private addresses are for the correct machine by checking
// the presen... | {
"resource": ""
} | ||
c157063 | train | // SourceModel returns the tag of the model to which the application belongs. | {
"resource": ""
} | ||
c157064 | train | // URL returns the remote application URL, and a boolean indicating whether or not
// a URL is known for the remote application. A URL will only be available for the
// consumer of an offered application. | {
"resource": ""
} | ||
c157065 | train | // Token returns the token for the remote application, provided by the remote
// model to identify the application in future communications. | {
"resource": ""
} | ||
c157066 | train | // Spaces returns the remote spaces this application is connected to. | {
"resource": ""
} | ||
c157067 | train | // Bindings returns the endpoint->space bindings for the application. | {
"resource": ""
} | ||
c157068 | train | // SpaceForEndpoint returns the remote space an endpoint is bound to,
// if one is found. | {
"resource": ""
} | ||
c157069 | train | // DestroyRemoteApplicationOperation returns a model operation to destroy remote application. | {
"resource": ""
} | ||
c157070 | train | // Destroy ensures that this remote application reference and all its relations
// will be removed at some point; if no relation involving the
// application has any units in scope, they are all removed immediately. | {
"resource": ""
} | ||
c157071 | train | // removeOps returns the operations required to remove the application. Supplied
// asserts will be included in the operation on the application document. | {
"resource": ""
} | ||
c157072 | train | // Status returns the status of the remote application. | {
"resource": ""
} | ||
c157073 | train | // Refresh refreshes the contents of the RemoteApplication from the underlying
// state. It returns an error that satisfies errors.IsNotFound if the
// application has been removed. | {
"resource": ""
} | ||
c157074 | train | // Validate returns an error if there's a problem with the
// parameters being used to create a remote application. | {
"resource": ""
} | ||
c157075 | train | // RemoteApplication returns a remote application state by name. | {
"resource": ""
} | ||
c157076 | train | // RemoteApplicationByToken returns a remote application state by token. | {
"resource": ""
} | ||
c157077 | train | // AllRemoteApplications returns all the remote applications used by the model. | {
"resource": ""
} | ||
c157078 | train | // Run resolves c.Target to a machine, to the address of a i
// machine or unit forks ssh passing any arguments provided. | {
"resource": ""
} | ||
c157079 | train | // NewInvalidConfigValueError returns a new InvalidConfigValueError for the given
// info. If the provided reason is an error then Reason is set to that
// error. Otherwise a non-nil value is treated as a string and Reason is
// set to a non-nil value that wraps it. | {
"resource": ""
} | ||
c157080 | train | // NewMissingConfigValue returns a new error for a missing config field. | {
"resource": ""
} | ||
c157081 | train | // HandleCredentialError determines if a given error relates to an invalid credential.
// If it is, the credential is invalidated. Original error is returned untouched. | {
"resource": ""
} | ||
c157082 | train | // HasDenialStatusCode determines if the given error was caused by an invalid credential, i.e. whether it contains a
// response status code that indicates an authentication failure. | {
"resource": ""
} | ||
c157083 | train | // NewAllWatcher returns a new API server endpoint for interacting
// with a watcher created by the WatchAll and WatchAllModels API calls. | {
"resource": ""
} | ||
c157084 | train | // Next returns when a change has occurred to the
// entity being watched since the most recent call to Next
// or the Watch call that created the NotifyWatcher. | {
"resource": ""
} | ||
c157085 | train | // Next returns when a change has occurred to an entity of the
// collection being watched since the most recent call to Next
// or the Watch call that created the srvStringsWatcher. | {
"resource": ""
} | ||
c157086 | train | // Next returns when a change has occurred to an entity of the
// collection being watched since the most recent call to Next
// or the Watch call that created the srvRelationUnitsWatcher. | {
"resource": ""
} | ||
c157087 | train | // Next returns when a change has occurred to an entity of the
// collection being watched since the most recent call to Next
// or the Watch call that created the srvRelationStatusWatcher. | {
"resource": ""
} | ||
c157088 | train | // Next returns when a change has occurred to an entity of the
// collection being watched since the most recent call to Next
// or the Watch call that created the srvOfferStatusWatcher. | {
"resource": ""
} | ||
c157089 | train | // Next returns when a change has occurred to an entity of the
// collection being watched since the most recent call to Next
// or the Watch call that created the srvMachineStorageIdsWatcher. | {
"resource": ""
} | ||
c157090 | train | // Next returns when a change has occurred to an entity of the
// collection being watched since the most recent call to Next
// or the Watch call that created the srvEntitiesWatcher. | {
"resource": ""
} | ||
c157091 | train | // Next returns when the status for a model migration for the
// associated model changes. The current details for the active
// migration are returned. | {
"resource": ""
} | ||
c157092 | train | // NewHighAvailabilityAPI creates a new server-side highavailability API end point. | {
"resource": ""
} | ||
c157093 | train | // EnableHA adds controller machines as necessary to ensure the
// controller has the number of machines specified. | {
"resource": ""
} | ||
c157094 | train | // getReferenceController looks up the ideal controller to use as a reference for Constraints and Series | {
"resource": ""
} | ||
c157095 | train | // validateCurrentControllers checks for a scenario where there is no HA space
// in controller configuration and more than one machine-local address on any
// of the controller machines. An error is returned if it is detected.
// When HA space is set, there are other code paths that ensure controllers
// have at least... | {
"resource": ""
} | ||
c157096 | train | // validatePlacementForSpaces checks whether there are both space constraints
// and machine placement directives.
// If there are, checks are made to ensure that the machines specified have at
// least one address in all of the spaces. | {
"resource": ""
} | ||
c157097 | train | // controllersChanges generates a new params instance from the state instance. | {
"resource": ""
} | ||
c157098 | train | // machineIdsToTags returns a slice of machine tag strings created from the
// input machine IDs. | {
"resource": ""
} | ||
c157099 | train | // StopHAReplicationForUpgrade will prompt the HA cluster to enter upgrade
// mongo mode. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.