_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c4300 | // DestroyMachine destroys the virtual machine represented by the kvmContainer. | |
c4301 | // AutostartMachine indicates that the virtual machines should automatically
// restart when the host restarts. | |
c4302 | // guestPath returns the path to the guest directory from the given
// pathfinder. | |
c4303 | // writeDataSourceVolume creates a data source image for cloud init. | |
c4304 | // writeDomainXML writes out the configuration required to create a new guest
// domain. | |
c4305 | // NewAPI creates a new Subnets API server-side facade with a
// state.State backing. | |
c4306 | // AllSpaces is defined on the API interface. | |
c4307 | // AddSubnets is defined on the API interface. | |
c4308 | // NewLeaderGetCommand returns a new leaderGetCommand with the given context. | |
c4309 | // PersonalCloudMetadata loads any personal cloud metadata defined
// in the Juju Home directory. If not cloud metadata is found,
// that is not an error; nil is returned. | |
c4310 | // ParseCloudMetadataFile loads any cloud metadata defined
// in the specified file. | |
c4311 | // WritePersonalCloudMetadata marshals to YAML and writes the cloud metadata
// to the personal cloud file. | |
c4312 | // inferContainerSpaces tries to find a valid space for the container to be
// on. This should only be used when the container itself doesn't have any
// valid constraints on what spaces it should be in.
// If ContainerNetworkingMethod is 'local' we fall back to "" and use lxdbr0.
// If this machine is in a single space, then that space is used. Else, if
// the machine has the default space, then that space is used.
// If neither of those conditions is true, then we return an error. | |
c4313 | // determineContainerSpaces tries to use the direct information about a
// container to find what spaces it should be in, and then falls back to what
// we know about the host machine. | |
c4314 | // findSpacesAndDevicesForContainer looks up what spaces the container wants
// to be in, and what spaces the host machine is already in, and tries to
// find the devices on the host that are useful for the container. | |
c4315 | // Manifold defines a simple start function which
// runs after the API connection has come up. If the machine agent is
// a controller, it grabs the state serving info over the API and
// records it to agent configuration, and then stops. | |
c4316 | // formatPoolListTabular returns a tabular summary of pool instances or
// errors out if parameter is not a map of PoolInfo. | |
c4317 | // formatPoolsTabular returns a tabular summary of pool instances. | |
c4318 | // IsAuthorisationFailure determines whether the given error indicates
// that the vsphere credential used is bad. | |
c4319 | // ProcessDyingModel checks if the model is Dying and empty, and if so,
// transitions the model to Dead.
//
// If the model is non-empty because it is the controller model and still
// contains hosted models, an error satisfying IsHasHostedModelsError will
// be returned. If the model is otherwise non-empty, an error satisfying
// IsNonEmptyModelError will be returned. | |
c4320 | // NewMetricsDebugAPI creates a new API endpoint for calling metrics debug functions. | |
c4321 | // GetMetrics returns all metrics stored by the state server. | |
c4322 | // SetMeterStatus sets meter statuses for entities. | |
c4323 | // NewPasswordChanger returns a new PasswordChanger. The GetAuthFunc will be
// used on each invocation of SetPasswords to determine current permissions. | |
c4324 | // SetPasswords sets the given password for each supplied entity, if possible. | |
c4325 | // NewAddCAASCommand returns a command to add caas information. | |
c4326 | // getStdinPipe returns nil if the context's stdin is not a pipe. | |
c4327 | // NewUnitsWatcher returns a new UnitsWatcher. The GetAuthFunc will be
// used on each invocation of WatchUnits to determine current
// permissions. | |
c4328 | // PreUpgradeSteps runs various checks and prepares for performing an upgrade.
// If any check fails, an error is returned which aborts the upgrade. | |
c4329 | // CheckFreeDiskSpace returns a helpful error if there isn't at
// least thresholdMib MiB of free space available on the volume
// containing dir. | |
c4330 | // ValidateState verifies the state passed in is a valid okayState. | |
c4331 | // NewAPI creates a new instance of the Backups API facade. | |
c4332 | // CreateResult updates the result with the information in the
// metadata value. | |
c4333 | // NewInstanceMutaterAPI creates a new API server endpoint for managing
// charm profiles on juju lxd machines and containers. | |
c4334 | // CharmProfilingInfo returns info to update lxd profiles on the machine. If
// the machine is not provisioned, no profile change info will be returned,
// nor will an error. | |
c4335 | // SetCharmProfiles records the given slice of charm profile names. | |
c4336 | // WatchMachines starts a watcher to track machines.
// WatchMachines does not consume the initial event of the watch response, as
// that returns the initial set of machines that are currently available. | |
c4337 | // WatchContainers starts a watcher to track Containers on a given
// machine. | |
c4338 | // WatchLXDProfileVerificationNeeded starts a watcher to track Applications with
// LXD Profiles. | |
c4339 | // newTimedStatusUpdater returns a function which waits a given period of time
// before querying the apiserver for updated data. | |
c4340 | // MakeCloudSpecGetter returns a function which returns a CloudSpec
// for a given model, using the given Pool. | |
c4341 | // MakeCloudSpecGetterForModel returns a function which returns a
// CloudSpec for a single model. Attempts to request a CloudSpec for
// any other model other than the one associated with the given
// state.State results in an error. | |
c4342 | // MakeCloudSpecWatcherForModel returns a function which returns a
// NotifyWatcher for cloud spec changes for a single model.
// Attempts to request a watcher for any other model other than the
// one associated with the given state.State results in an error. | |
c4343 | // ValidateUpgradeSeriesStatus validates a the input status as valid for a
// unit, returning the valid status or an error. | |
c4344 | // CompareUpgradeSeriesStatus compares two upgrade series statuses and returns
// an integer; if the first argument equals the second then 0 is returned; if
// the second is greater -1 is returned; 1 is returned otherwise. An error is
// returned if either argument is an invalid status. | |
c4345 | // NewAuthenticator returns a new Authenticator using the given StatePool. | |
c4346 | // Maintain periodically expires local login interactions. | |
c4347 | // CreateLocalLoginMacaroon is part of the
// httpcontext.LocalMacaroonAuthenticator interface. | |
c4348 | // AddHandlers adds the handlers to the given mux for handling local
// macaroon logins. | |
c4349 | // Authenticate is part of the httpcontext.Authenticator interface. | |
c4350 | // mibToGB converts the value in MiB to GB.
// Juju works in MiB, MAAS expects GB. | |
c4351 | // buildMAASVolumeParameters creates the MAAS volume information to include
// in a request to acquire a MAAS node, based on the supplied storage parameters. | |
c4352 | // One gets the identified document from the collection. | |
c4353 | // All gets all documents from the collection matching the query. | |
c4354 | // Run runs the transaction produced by the provided factory function. | |
c4355 | // NewStorage returns a new blob storage for the model. | |
c4356 | // ApplicationExistsOps returns the operations that verify that the
// identified application exists. | |
c4357 | // ClientStore implements the ModelCommand interface. | |
c4358 | // SetModelName implements the ModelCommand interface. | |
c4359 | // ModelName implements the ModelCommand interface. | |
c4360 | // ModelType implements the ModelCommand interface. | |
c4361 | // SetModelGeneration implements the ModelCommand interface. | |
c4362 | // ActiveBranch implements the ModelCommand interface. | |
c4363 | // ControllerName implements the ModelCommand interface. | |
c4364 | // NewAPIRoot returns a new connection to the API server for the environment
// directed to the model specified on the command line. | |
c4365 | // newAPIRoot is the internal implementation of NewAPIRoot and NewControllerAPIRoot;
// if modelName is empty, it makes a controller-only connection. | |
c4366 | // Wrap wraps the specified ModelCommand, returning a ModelCommand
// that proxies to each of the ModelCommand methods.
// Any provided options are applied to the wrapped command
// before it is returned. | |
c4367 | // validateCommandForModelType returns an error if an IAAS-only command
// is run on a CAAS model. | |
c4368 | // BootstrapContext returns a new BootstrapContext constructed from a command Context. | |
c4369 | // BootstrapContextNoVerify returns a new BootstrapContext constructed from a command Context
// where the validation of credentials is false. | |
c4370 | // SplitModelName splits a model name into its controller
// and model parts. If the model is unqualified, then the
// returned controller string will be empty, and the returned
// model string will be identical to the input. | |
c4371 | // vmExtension creates a CustomScript VM extension for the given VM
// which will execute the CustomData on the machine as a script. | |
c4372 | // NewUpgradeCharmCommand returns a command which upgrades application's charm. | |
c4373 | // addCharm interprets the new charmRef and adds the specified charm if
// the new charm is different to what's already deployed as specified by
// oldURL. | |
c4374 | // FormatOneline writes a brief list of units and their subordinates.
// Subordinates will be indented 2 spaces and listed under their
// superiors. This format works with version 2 of the CLI. | |
c4375 | // EnsureCachedImage ensures that a container image suitable for satisfying
// the input start parameters has been cached on disk. | |
c4376 | // Start creates and starts a new container.
// It assumes that the backing image is already cached on disk. | |
c4377 | // InstanceAvailabilityzoneNames is defined in the common.ZonedEnviron interface | |
c4378 | // NewOracleEnviron returns a new OracleEnviron | |
c4379 | // buildSpacesMap builds a map with juju converted names from provider space names
//
// shamelessly copied from the MAAS provider | |
c4380 | // StopInstances is part of the InstanceBroker interface. | |
c4381 | // getOracleInstances attempts to fetch information from the oracle API for the
// specified IDs. | |
c4382 | // AllInstances is part of the InstanceBroker interface. | |
c4383 | // MaintainInstance is part of the InstanceBroker interface. | |
c4384 | // Config is part of the Environ interface. | |
c4385 | // ConstraintsValidator is part of the environs.Environ interface. | |
c4386 | // DestroyController is part of the environs.Environ interface. | |
c4387 | // InstanceTypes is part of the environs.InstanceTypesFetcher interface. | |
c4388 | // createInstance creates a new instance inside the oracle infrastructure | |
c4389 | // IsAvailabilityZoneIndependent reports whether or not the given error,
// or its cause, is independent of any particular availability zone.
// Juju uses this to decide whether or not to attempt the failed operation
// in another availability zone; zone-independent failures will not be
// reattempted.
//
// If the error implements AvailabilityZoneError, then the result of
// calling its AvailabilityZoneIndependent method will be returned;
// otherwise this function returns false. That is, errors are assumed
// to be specific to an availability zone by default, so that they can
// be retried in another availability zone. | |
c4390 | // OSDependentEnvVars returns the OS-dependent environment variables that
// should be set for a hook context. | |
c4391 | // windowsEnv adds windows specific environment variables. PSModulePath
// helps hooks use normal imports instead of dot sourcing modules
// its a convenience variable. The PATH variable delimiter is
// a semicolon instead of a colon | |
c4392 | // stateStepsFor223 returns upgrade steps for Juju 2.2.3 that manipulate state directly. | |
c4393 | // DestroyController destroys the controller.
//
// The v3 implementation of DestroyController ignores the DestroyStorage
// field of the arguments, and unconditionally destroys all storage in
// the controller.
//
// See ControllerAPIv4.DestroyController for more details. | |
c4394 | // DestroyController destroys the controller.
//
// If the args specify the destruction of the models, this method will
// attempt to do so. Otherwise, if the controller has any non-empty,
// non-Dead hosted models, then an error with the code
// params.CodeHasHostedModels will be transmitted. | |
c4395 | // Resource2API converts a resource.Resource into
// a Resource struct. | |
c4396 | // APIResult2ApplicationResources converts a ResourcesResult into a resource.ApplicationResources. | |
c4397 | // API2Resource converts an API Resource struct into
// a resource.Resource. | |
c4398 | // CharmResource2API converts a charm resource into
// a CharmResource struct. | |
c4399 | // API2CharmResource converts an API CharmResource struct into
// a charm resource. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.