_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c4200 | // Run runs a unit agent. | |
c4201 | // APIWorkers returns a dependency.Engine running the unit agent's responsibilities. | |
c4202 | // NewStateCrossControllerAPI creates a new server-side CrossModelRelations API facade
// backed by global state. | |
c4203 | // NewCrossControllerAPI returns a new server-side CrossControllerAPI facade. | |
c4204 | // WatchControllerInfo creates a watcher that notifies when the API info
// for the controller changes. | |
c4205 | // ControllerInfo returns the API info for the controller. | |
c4206 | // NewContextAPI returns a new Content for the given API client and data dir. | |
c4207 | // Download downloads the named resource and returns the path
// to which it was downloaded. If the resource does not exist or has
// not been uploaded yet then errors.NotFound is returned.
//
// Note that the downloaded file is checked for correctness. | |
c4208 | // attachmentLife queries the lifecycle state of each specified
// attachment, and then partitions the IDs by them. | |
c4209 | // removeEntities removes each specified Dead entity from state. | |
c4210 | // removeAttachments removes each specified attachment from state. | |
c4211 | // setStatus sets the given entity statuses, if any. If setting
// the status fails the error is logged but otherwise ignored. | |
c4212 | // NonCanonicalArchivePaths builds a new ArchivePaths using default
// values, rooted at the provided rootDir. The path separator used is
// platform-dependent. The resulting paths are suitable for locating
// backup archive contents in a directory into which an archive has
// been unpacked. | |
c4213 | // NewArchiveWorkspaceReader returns a new archive workspace with a new
// workspace dir populated from the archive. Note that this involves
// unpacking the entire archive into a directory under the host's
// "temporary" directory. For relatively large archives this could have
// adverse effects on hosts with little disk space. | |
c4214 | // Close cleans up the workspace dir. | |
c4215 | // UnpackFilesBundle unpacks the archived files bundle into the targeted dir. | |
c4216 | // OpenBundledFile returns an open ReadCloser for the corresponding file in
// the archived files bundle. | |
c4217 | // Metadata returns the metadata derived from the JSON file in the archive. | |
c4218 | // NewArchiveReader returns a new archive data wrapper for the data in
// the provided reader. Note that the entire archive will be read into
// memory and kept there. So for relatively large archives it will often
// be more appropriate to use ArchiveWorkspace instead. | |
c4219 | // Metadata returns the metadata stored in the backup archive. If no
// metadata is there, errors.NotFound is returned. | |
c4220 | // Version returns the juju version under which the backup archive
// was created. If no version is found in the archive, it must come
// from before backup archives included the version. In that case we
// return version 1.20. | |
c4221 | // searchHook will search, in order, hooks suffixed with extensions
// in windowsSuffixOrder. As windows cares about extensions to determine
// how to execute a file, we will allow several suffixes, with powershell
// being default. | |
c4222 | // ProvisioningInfo returns the provisioning information for each given machine entity. | |
c4223 | // machineTags returns machine-specific tags to set on the instance. | |
c4224 | // machineSubnetsAndZones returns a map of subnet provider-specific id
// to list of availability zone names for that subnet. The result can
// be empty if there are no spaces constraints specified for the
// machine, or there's an error fetching them. | |
c4225 | // machineLXDProfileNames give the environ info to write lxd profiles needed for
// the given machine and returns the names of profiles. Unlike
// containerLXDProfilesInfo which returns the info necessary to write lxd profiles
// via the lxd broker. | |
c4226 | // availableImageMetadata returns all image metadata available to this machine
// or an error fetching them. | |
c4227 | // constructImageConstraint returns model-specific criteria used to look for image metadata. | |
c4228 | // findImageMetadata returns all image metadata or an error fetching them.
// It looks for image metadata in state.
// If none are found, we fall back on original image search in simple streams. | |
c4229 | // imageMetadataFromState returns image metadata stored in state
// that matches given criteria. | |
c4230 | // imageMetadataFromDataSources finds image metadata that match specified criteria in existing data sources. | |
c4231 | // Implements sort.Interface and sorts image metadata by priority. | |
c4232 | // NewHTTPBlobOpener returns a blob opener func suitable for use with
// Download. The opener func uses an HTTP client that enforces the
// provided SSL hostname verification policy. | |
c4233 | // NewSha256Verifier returns a verifier suitable for Request. The
// verifier checks the SHA-256 checksum of the file to ensure that it
// matches the one returned by the provided func. | |
c4234 | // Refresh refreshes the contents of the application from the underlying
// state. | |
c4235 | // CharmModifiedVersion increments every time the charm, or any part of it, is
// changed in some way. | |
c4236 | // SetStatus sets the status of the application if the passed unitName,
// corresponding to the calling unit, is of the leader. | |
c4237 | // Status returns the status of the application if the passed unitName,
// corresponding to the calling unit, is of the leader. | |
c4238 | // WatchLeadershipSettings returns a watcher which can be used to wait
// for leadership settings changes to be made for the application. | |
c4239 | // ParseIngressRules parses the output of "iptables -L INPUT -n",
// extracting previously added ingress rules, as rendered by
// IngressRuleCommand. | |
c4240 | // popField pops a pops a field off the front of the given string
// by splitting on the first run of whitespace, and returns the
// field and remainder. A boolean result is returned indicating
// whether or not a field was found. | |
c4241 | // OAuthConfig returns an azure.OAuthConfig based on the given resource
// manager endpoint and subscription ID. This will make a request to the
// resource manager API to discover the Active Directory tenant ID. | |
c4242 | // newEnviron create a new Joyent environ instance from config. | |
c4243 | // GetLastSent makes a "GetLastSent" call on the facade and returns the
// results in the same order. | |
c4244 | // SetLastSent makes a "SetLastSent" call on the facade and returns the
// results in the same order. | |
c4245 | // NewReader returns a new Reader using the supplied config, or an error.
//
// Readers will not function past the lifetime of their configured Mongo. | |
c4246 | // Now returns the current global time. | |
c4247 | // ModelStatus returns a status summary for each model tag passed in. | |
c4248 | // OnlyConnect logs into the API using the supplied agent's credentials. | |
c4249 | // NewExternalControllerConnection returns an api connection to a controller
// with the specified api info. | |
c4250 | // StoreCharmArchive stores a charm archive in environment storage. | |
c4251 | // charmArchiveStoragePath returns a string that is suitable as a
// storage path, using a random UUID to avoid colliding with concurrent
// uploads. | |
c4252 | // NewAPI creates a new client-side Subnets facade. | |
c4253 | // AddSubnet adds an existing subnet to the model. | |
c4254 | // CreateSubnet creates a new subnet with the provider. | |
c4255 | // ListSubnets fetches all the subnets known by the model. | |
c4256 | // MongoIndexes returns the indexes to apply to the clouldimagemetadata collection.
// We return an index that expires records containing a created-at field after 5 minutes. | |
c4257 | // SaveMetadataNoExpiry implements Storage.SaveMetadataNoExpiry and behaves as save-or-update.
// Records will not expire. | |
c4258 | // SaveMetadata implements Storage.SaveMetadata and behaves as save-or-update.
// Records will expire after a set time. | |
c4259 | // DeleteMetadata implements Storage.DeleteMetadata. | |
c4260 | // AllCloudImageMetadata returns all cloud image metadata in the model. | |
c4261 | // FindMetadata implements Storage.FindMetadata.
// Results are sorted by date created and grouped by source. | |
c4262 | // SupportedArchitectures implements Storage.SupportedArchitectures. | |
c4263 | // putState writes the given data to the state file on the given storage.
// The file's name is as defined in StateFile. | |
c4264 | // CreateStateFile creates an empty state file on the given storage, and
// returns its URL. | |
c4265 | // SaveState writes the given state to the given storage. | |
c4266 | // LoadState reads state from the given storage. | |
c4267 | // AddStateInstance adds a controller instance ID to the provider-state
// file in storage. | |
c4268 | // RemoveStateInstances removes controller instance IDs from the
// provider-state file in storage. Instance IDs that are not found
// in the file are ignored. | |
c4269 | // ProviderStateInstances extracts the instance IDs from provider-state. | |
c4270 | // NewFacade returns a new CAAS firewaller Facade facade. | |
c4271 | // IsExposed returns whether the specified applications are exposed. | |
c4272 | // Run implemetns Command.Run. | |
c4273 | // ValidateToolsMetadata attempts to load tools metadata for the specified cloud attributes and returns
// any tools versions found, or an error if the metadata could not be loaded. | |
c4274 | // Save stores the specified firewall rule. | |
c4275 | // Rule returns the firewall rule for the specified service. | |
c4276 | // AllRules returns all the firewall rules. | |
c4277 | // acquireExecutionLock acquires the machine-level execution lock and returns a function to be used
// to unlock it. | |
c4278 | // CreateCloudAccess creates a new access permission for a user on a cloud. | |
c4279 | // GetCloudAccess gets the access permission for the specified user on a cloud. | |
c4280 | // GetCloudUsers gets the access permissions on a cloud. | |
c4281 | // UpdateCloudAccess changes the user's access permissions on a cloud. | |
c4282 | // RemoveCloudAccess removes the access permission for a user on a cloud. | |
c4283 | // CloudsForUser returns details including access level of clouds which can
// be seen by the specified user, or all users if the caller is a superuser. | |
c4284 | // cloudNamesForUser returns the cloud names a user can see. | |
c4285 | // NewMachineInitReader creates and returns a new MachineInitReader for the
// input series. | |
c4286 | // GetInitConfig returns a map of configuration data used to provision the
// machine. It is sourced from both Cloud-Init and Curtin data. | |
c4287 | // getMachineCloudCfgDirData returns a map of the combined machine's Cloud-Init
// cloud.cfg.d config files. Files are read in lexical order. | |
c4288 | // unmarshallConfigFile reads the file at the input path,
// decompressing it if required, and converts the contents to a map of
// configuration key-values. | |
c4289 | // fileAsConfigMap reads the file at the input path and returns its contents as
// raw bytes, and if possible a map of config key-values. | |
c4290 | // extractPropertiesFromConfig filters the input config based on the
// input properties and returns a map of cloud-init data, compatible with
// version 0.7.8 and above. | |
c4291 | // extractPropertiesFromConfigLegacy filters the input config based on the
// input properties and returns a map of cloud-init data, compatible with
// version 0.7.7 and below. | |
c4292 | // authorizeCharmStoreEntity acquires and return the charm store delegatable macaroon to be
// used to add the charm corresponding to the given URL.
// The macaroon is properly attenuated so that it can only be used to deploy
// the given charm URL. | |
c4293 | // WatchApplication returns a NotifyWatcher that notifies of
// changes to the application in the current model. | |
c4294 | // Life returns the lifecycle state for the specified CAAS application
// in the current model. | |
c4295 | // IsExposed returns whether the specified CAAS application
// in the current model is exposed. | |
c4296 | // Arch returns the architecture to be used. | |
c4297 | // ValidateDomainParams implements libvirt.domainParams. | |
c4298 | // CreateMachine creates a virtual machine and starts it. | |
c4299 | // Setup the default values for params. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.