_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c156200 | train | //
// Prepare functions for building bulk-calls.
//
// prepareClaimLeadership creates a single set of params in
// preparation for making a bulk call. | {
"resource": ""
} | ||
c156201 | train | // NewFacade builds a facade for the action pruner endpoints | {
"resource": ""
} | ||
c156202 | train | // Report is part of the dependency.Reporter interface. | {
"resource": ""
} | ||
c156203 | train | // New returns a PoolManager implementation using the specified state. | {
"resource": ""
} | ||
c156204 | train | // Create is defined on PoolManager interface. | {
"resource": ""
} | ||
c156205 | train | // Delete is defined on PoolManager interface. | {
"resource": ""
} | ||
c156206 | train | // Replace is defined on PoolManager interface. | {
"resource": ""
} | ||
c156207 | train | // Get is defined on PoolManager interface. | {
"resource": ""
} | ||
c156208 | train | // List is defined on PoolManager interface. | {
"resource": ""
} | ||
c156209 | train | // Validate returns an error if the config cannot be expected to
// drive a functional Worker. | {
"resource": ""
} | ||
c156210 | train | // New returns a Worker that tracks the result of the configured
// Check on the Model's migration phase, as exposed by the Facade. | {
"resource": ""
} | ||
c156211 | train | // NewSLACommand returns a new command that is used to set SLA credentials for a
// deployed application. | {
"resource": ""
} | ||
c156212 | train | // SetFlags sets additional flags for the support command. | {
"resource": ""
} | ||
c156213 | train | // Manifold returns a Manifold that runs an externalcontrollerupdater worker. | {
"resource": ""
} | ||
c156214 | train | // SetFlags implements DeployStep. | {
"resource": ""
} | ||
c156215 | train | // NewAPI creates a new client-side InstancePoller facade. | {
"resource": ""
} | ||
c156216 | train | // WatchModelMachines return a StringsWatcher reporting waiting for the
// model configuration to change. | {
"resource": ""
} | ||
c156217 | train | // NewClient creates a new client for accessing the metricsmanager api | {
"resource": ""
} | ||
c156218 | train | // GetControllerImagePath returns oci image path of jujud for a controller. | {
"resource": ""
} | ||
c156219 | train | // GetJujuDbOCIImagePath returns the juju-db oci image path. | {
"resource": ""
} | ||
c156220 | train | // GetJujuOCIImagePath returns the jujud oci image path. | {
"resource": ""
} | ||
c156221 | train | // newMacaroonJar returns a new macaroonJar wrapping the given cache and
// expecting to be used against the given URL. Both the cache and url must
// be non-nil. | {
"resource": ""
} | ||
c156222 | train | // reset empties the cookiejar and disables the functionality of storing
// macaroons in SetCookies. | {
"resource": ""
} | ||
c156223 | train | // SetCookies handles the receipt of the cookies in a reply for the
// given URL. Cookies do not persist past a successive call to Activate or
// Deactivate. If the jar is currently activated, macaroons set via this method
// will be stored in the underlying MacaroonCache for the currently activated
// charm. | {
"resource": ""
} | ||
c156224 | train | // Cookies returns the cookies stored in the underlying cookiejar. | {
"resource": ""
} | ||
c156225 | train | // Init implements the cmd.Command interface. | {
"resource": ""
} | ||
c156226 | train | // remoteArchiveMetadata returns Juju GUI archive metadata from simplestreams. | {
"resource": ""
} | ||
c156227 | train | // findMetadataVersion returns the metadata in allMeta with the given version. | {
"resource": ""
} | ||
c156228 | train | // hashAndSize returns the SHA256 hash and size of the data included in r. | {
"resource": ""
} | ||
c156229 | train | // existingVersionInfo returns the hash of the existing GUI archive at the
// given version and reports whether that's the current version served by the
// controller. If the given version is not present in the server, an empty
// hash is returned. | {
"resource": ""
} | ||
c156230 | train | // storeArchive saves the Juju GUI archive in the given reader in a temporary
// file. The resulting returned readSeekCloser is deleted when closed. | {
"resource": ""
} | ||
c156231 | train | // Close closes the file. | {
"resource": ""
} | ||
c156232 | train | // addHardwareInfo adds additional information about the hardware, and how it is
// attached to the machine, to the given BlockDevice. | {
"resource": ""
} | ||
c156233 | train | // NewPinger returns an object that can be pinged by calling its Ping method.
// If this method is not called frequently enough, the connection will be
// dropped. | {
"resource": ""
} | ||
c156234 | train | // newPingTimeout returns a new pingTimeout instance
// that invokes the given action asynchronously if there
// is more than the given timeout interval between calls
// to its Ping method. | {
"resource": ""
} | ||
c156235 | train | // Stop terminates the ping timeout. | {
"resource": ""
} | ||
c156236 | train | // loop waits for a reset signal, otherwise it performs
// the initially passed action. | {
"resource": ""
} | ||
c156237 | train | // AllMachines implements PersistentBackend.AllMachines. | {
"resource": ""
} | ||
c156238 | train | // Model implements PersistentBackend.Model. | {
"resource": ""
} | ||
c156239 | train | // NewMockAPICallCloser creates a new mock instance | {
"resource": ""
} | ||
c156240 | train | // APICall mocks base method | {
"resource": ""
} | ||
c156241 | train | // APICall indicates an expected call of APICall | {
"resource": ""
} | ||
c156242 | train | // BestFacadeVersion mocks base method | {
"resource": ""
} | ||
c156243 | train | // ConnectStream indicates an expected call of ConnectStream | {
"resource": ""
} | ||
c156244 | train | // NewMockClientFacade creates a new mock instance | {
"resource": ""
} | ||
c156245 | train | // ErrCode returns the error code associated with
// the given error, or the empty string if there
// is none. | {
"resource": ""
} | ||
c156246 | train | // VolumeSource implements storage.Provider. | {
"resource": ""
} | ||
c156247 | train | // FilesystemSource implements storage.Provider. | {
"resource": ""
} | ||
c156248 | train | // Supports implements storage.Provider. | {
"resource": ""
} | ||
c156249 | train | // ValidateConfig implements storage.Provider. | {
"resource": ""
} | ||
c156250 | train | // CreateVolumes implements storage.VolumeSource. | {
"resource": ""
} | ||
c156251 | train | // modelCinderVolumes returns all of the cinder volumes for the model. | {
"resource": ""
} | ||
c156252 | train | // controllerCinderVolumes returns all of the cinder volumes for the model. | {
"resource": ""
} | ||
c156253 | train | // cinderVolumes returns all of the cinder volumes matching the given predicate. | {
"resource": ""
} | ||
c156254 | train | // DescribeVolumes implements storage.VolumeSource. | {
"resource": ""
} | ||
c156255 | train | // DestroyVolumes implements storage.VolumeSource. | {
"resource": ""
} | ||
c156256 | train | // ReleaseVolumes implements storage.VolumeSource. | {
"resource": ""
} | ||
c156257 | train | // ValidateVolumeParams implements storage.VolumeSource. | {
"resource": ""
} | ||
c156258 | train | // AttachVolumes implements storage.VolumeSource. | {
"resource": ""
} | ||
c156259 | train | // ImportVolume is part of the storage.VolumeImporter interface. | {
"resource": ""
} | ||
c156260 | train | // DetachVolumes implements storage.VolumeSource. | {
"resource": ""
} | ||
c156261 | train | // CreateVolume is part of the OpenstackStorage interface. | {
"resource": ""
} | ||
c156262 | train | // GetVolumesDetail is part of the OpenstackStorage interface. | {
"resource": ""
} | ||
c156263 | train | // GetVolume is part of the OpenstackStorage interface. | {
"resource": ""
} | ||
c156264 | train | // SetVolumeMetadata is part of the OpenstackStorage interface. | {
"resource": ""
} | ||
c156265 | train | // DeleteVolume is part of the OpenstackStorage interface. | {
"resource": ""
} | ||
c156266 | train | // DetachVolume is part of the OpenstackStorage interface. | {
"resource": ""
} | ||
c156267 | train | // NewKeyUpdaterAPI creates a new server-side keyupdater API end point. | {
"resource": ""
} | ||
c156268 | train | // WatchAuthorisedKeys starts a watcher to track changes to the authorised ssh keys
// for the specified machines.
// The current implementation relies on global authorised keys being stored in the model config.
// This will change as new user management and authorisation functionality is added. | {
"resource": ""
} | ||
c156269 | train | // AuthorisedKeys reports the authorised ssh keys for the specified machines.
// The current implementation relies on global authorised keys being stored in the model config.
// This will change as new user management and authorisation functionality is added. | {
"resource": ""
} | ||
c156270 | train | // NewWorker returns a new apiserver-based raft transport worker,
// with the given configuration. The worker itself implements
// raft.Transport. | {
"resource": ""
} | ||
c156271 | train | // dialRaw dials a new TLS connection to the controller identified
// by the given address. The address is expected to be the stringified
// tag of a controller machine agent. The resulting connection is
// appropriate for use as Dialer.DialRaw. | {
"resource": ""
} | ||
c156272 | train | // AvailabilityZones returns all availability zones in the environment. | {
"resource": ""
} | ||
c156273 | train | // InstanceAvailabilityZoneNames returns the names of the availability
// zones for the specified instances. The error returned follows the same
// rules as Environ.Instances. | {
"resource": ""
} | ||
c156274 | train | // AddHandlers adds the local login handlers to the given mux. | {
"resource": ""
} | ||
c156275 | train | // NewMockLXDProfileBackend creates a new mock instance | {
"resource": ""
} | ||
c156276 | train | // NewMockLXDProfileMachine creates a new mock instance | {
"resource": ""
} | ||
c156277 | train | // RemoveUpgradeCharmProfileData mocks base method | {
"resource": ""
} | ||
c156278 | train | // RemoveUpgradeCharmProfileData indicates an expected call of RemoveUpgradeCharmProfileData | {
"resource": ""
} | ||
c156279 | train | // NewMockLXDProfileUnit creates a new mock instance | {
"resource": ""
} | ||
c156280 | train | // AssignedMachineId mocks base method | {
"resource": ""
} | ||
c156281 | train | // WatchLXDProfileUpgradeNotifications indicates an expected call of WatchLXDProfileUpgradeNotifications | {
"resource": ""
} | ||
c156282 | train | // GetExportConfig implements Backend.GetExportConfig. | {
"resource": ""
} | ||
c156283 | train | // NewStorageBackend creates a backend for managing storage. | {
"resource": ""
} | ||
c156284 | train | // entityStorageRefcountKey returns a key for refcounting charm storage
// for a specific entity. Each time a storage instance is created, the
// named store's refcount is incremented; and decremented when removed. | {
"resource": ""
} | ||
c156285 | train | // newStorageInstanceId returns a unique storage instance name. The name
// incorporates the storage name as defined in the charm storage metadata,
// and a unique sequence number. | {
"resource": ""
} | ||
c156286 | train | // StorageInstance returns the StorageInstance with the specified tag. | {
"resource": ""
} | ||
c156287 | train | // AllStorageInstances lists all storage instances currently in state
// for this Juju model. | {
"resource": ""
} | ||
c156288 | train | // RemoveStoragePool removes a pool only if its not currently in use | {
"resource": ""
} | ||
c156289 | train | // IsStorageAttachedError reports whether or not the given error was caused
// by an operation on storage that should not be, but is, attached. | {
"resource": ""
} | ||
c156290 | train | // DestroyStorageInstance ensures that the storage instance will be removed at
// some point, after the cloud storage resources have been destroyed.
//
// If "destroyAttachments" is true, then DestroyStorageInstance will destroy
// any attachments first; if there are no attachments, then the storage instance
// is remo... | {
"resource": ""
} | ||
c156291 | train | // validateRemoveOwnerStorageInstanceOps checks that the given storage
// instance can be removed from its current owner, returning txn.Ops to
// ensure the same in a transaction. If the owner is not alive, then charm
// storage requirements are ignored. | {
"resource": ""
} | ||
c156292 | train | // validateStorageCountChange validates the desired storage count change,
// and returns the current storage count, and a txn.Op that ensures the
// current storage count does not change before the transaction is executed. | {
"resource": ""
} | ||
c156293 | train | // increfEntityStorageOp returns a txn.Op that increments the reference
// count for a storage instance for a given application or unit. This
// should be called when creating a shared storage instance, or when
// attaching a non-shared storage instance to a unit. | {
"resource": ""
} | ||
c156294 | train | // decrefEntityStorageOp returns a txn.Op that decrements the reference
// count for a storage instance from a given application or unit. This
// should be called when removing a shared storage instance, or when
// detaching a non-shared storage instance from a unit. | {
"resource": ""
} | ||
c156295 | train | // unitAssignedMachineStorageOps returns ops for creating volumes, filesystems
// and their attachments to the machine that the specified unit is assigned to,
// corresponding to the specified storage instance.
//
// If the unit is not assigned to a machine, then ops will be returned to assert
// this, and no error wil... | {
"resource": ""
} | ||
c156296 | train | // createStorageAttachmentOps returns a txn.Op for creating a storage attachment.
// The caller is responsible for updating the attachmentcount field of the storage
// instance. | {
"resource": ""
} | ||
c156297 | train | // StorageAttachments returns the StorageAttachments for the specified storage
// instance. | {
"resource": ""
} | ||
c156298 | train | // UnitStorageAttachments returns the StorageAttachments for the specified unit. | {
"resource": ""
} | ||
c156299 | train | // StorageAttachment returns the StorageAttachment with the specified tags. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.