_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c4500
// isSubnetConstrainedError reports whether or not the error indicates // RunInstances failed due to the specified VPC subnet ID being constrained for // the instance type being provisioned, or is otherwise unusable for the // specific request made.
c4501
// SuperSubnets implements NetworkingEnviron.SuperSubnets
c4502
// Get returns annotations that have been set on the given entities.
c4503
// Set sets entity annotation pairs.
c4504
// formatFilesystemListTabular writes a tabular summary of filesystem instances.
c4505
// PerformUpgrade runs the business logic needed to upgrade the current "from" version to this // version of Juju on the "target" type of machine.
c4506
// runUpgradeSteps finds all the upgrade operations relevant to // the targets given and runs the associated upgrade steps. // // As soon as any error is encountered, the operation is aborted since // subsequent steps may required successful completion of earlier // ones. The steps must be idempotent so that the entire upgrade // operation can be retried.
c4507
// targetsMatch returns true if any machineTargets match any of // stepTargets.
c4508
// NewServer serves API requests using the given configuration.
c4509
// Stop stops the server and returns when all running requests // have completed.
c4510
// loop is the main loop for the server.
c4511
// publicDNSName returns the current public hostname.
c4512
// StartInstance asks for a new instance to be created, associated with // the provided config in machineConfig. The given config describes the juju // state for the new instance to connect to. The config MachineNonce, which must be // unique within an environment, is used by juju to protect against the // consequences of multiple instances being started with the same machine id.
c4513
// AllInstances returns all instances currently known to the broker.
c4514
// Instances returns a slice of instances corresponding to the // given instance ids. If no instances were found, but there // was no other error, it will return ErrNoInstances. If // some but not all the instances were found, the returned slice // will have some nil slots, and an ErrPartialInstances error // will be returned.
c4515
// getAddresses queries and returns the Addresses for the given instances, // ignoring nil instances or ones without addresses.
c4516
// waitAnyInstanceAddresses waits for at least one of the instances // to have addresses, and returns them.
c4517
// APIInfo returns an api.Info for the environment. The result is populated // with addresses and CA certificate, but no tag or password.
c4518
// CheckProviderAPI returns an error if a simple API call // to check a basic response from the specified environ fails.
c4519
// NewFacade returns a new CAASOperator facade.
c4520
// Charm returns the charm info for all given applications.
c4521
// SetPodSpec sets the container specs for a set of applications.
c4522
// WatchUnits starts a StringsWatcher to watch changes to the // lifecycle states of units for the specified applications in // this model.
c4523
// NewConnFacade returns a ConnFacade backed by the supplied APICaller.
c4524
// Life is part of the ConnFacade interface.
c4525
// SetPassword is part of the ConnFacade interface.
c4526
// NewMockCollection creates a new mock instance
c4527
// Count mocks base method
c4528
// Pipe mocks base method
c4529
// Pipe indicates an expected call of Pipe
c4530
// Writeable mocks base method
c4531
// NewMockQuery creates a new mock instance
c4532
// Comment mocks base method
c4533
// Distinct mocks base method
c4534
// Iter mocks base method
c4535
// Iter indicates an expected call of Iter
c4536
// Limit mocks base method
c4537
// LogReplay mocks base method
c4538
// MapReduce mocks base method
c4539
// One mocks base method
c4540
// Prefetch mocks base method
c4541
// Select mocks base method
c4542
// SetMaxTime mocks base method
c4543
// SetMaxTime indicates an expected call of SetMaxTime
c4544
// Sort mocks base method
c4545
// Tail mocks base method
c4546
// NewAPIBase creates a new server-side API facade with the given Backing.
c4547
// WatchForProxyConfigAndAPIHostPortChanges watches for cleanups to be perfomed in state
c4548
// CreateVolumes is defined on the VolumeSource interface.
c4549
// ListVolumes is defined on the VolumeSource interface.
c4550
// DescribeVolumes is defined on the VolumeSource interface.
c4551
// DestroyVolumes is defined on the VolumeSource interface.
c4552
// ReleaseVolumes is defined on the VolumeSource interface.
c4553
// AttachVolumes is defined on the VolumeSource interface.
c4554
// DetachVolumes is defined on the VolumeSource interface.
c4555
// createBlockFile creates a file at the specified path, with the // given size in mebibytes.
c4556
// detachLoopDevice detaches the loop device with the specified name.
c4557
// associatedLoopDevices returns the device names of the loop devices // associated with the specified file path.
c4558
// NewRegisterCommand returns a command to allow the user to register a controller.
c4559
// Info implements Command.Info // `register` may seem generic, but is seen as simple and without potential // naming collisions in any current or planned features.
c4560
// SetFlags implements Command.Init.
c4561
// controllerDetails returns controller and account details to be registered for the // given registration parameters.
c4562
// publicControllerDetails returns controller and account details to be registered // for the given public controller host name.
c4563
// nonPublicControllerDetails returns controller and account details to be registered with // respect to the given registration parameters.
c4564
// updateController prompts for a controller name and updates the // controller and account details in the given client store.
c4565
// getParameters gets all of the parameters required for registering, prompting // the user as necessary.
c4566
// NewProvisionerAPIV4 creates a new server-side version 4 Provisioner API facade.
c4567
// NewProvisionerAPIV5 creates a new server-side Provisioner API facade.
c4568
// NewProvisionerAPIV6 creates a new server-side Provisioner API facade.
c4569
// NewProvisionerAPIV7 creates a new server-side Provisioner API facade.
c4570
// NewProvisionerAPIV8 creates a new server-side Provisioner API facade.
c4571
// NewProvisionerAPIV9 creates a new server-side Provisioner API facade.
c4572
// WatchContainers starts a StringsWatcher to watch containers deployed to // any machine passed in args.
c4573
// WatchAllContainers starts a StringsWatcher to watch all containers deployed to // any machine passed in args.
c4574
// SetSupportedContainers updates the list of containers supported by the machines passed in args.
c4575
// SupportedContainers returns the list of containers supported by the machines passed in args.
c4576
// MachinesWithTransientErrors returns status data for machines with provisioning // errors which are transient.
c4577
// Series returns the deployed series for each given machine entity.
c4578
// KeepInstance returns the keep-instance value for each given machine entity.
c4579
// DistributionGroup returns, for each given machine entity, // a slice of instance.Ids that belong to the same distribution // group as that machine. This information may be used to // distribute instances for high availability.
c4580
// controllerInstances returns all environ manager instances.
c4581
// commonServiceInstances returns instances with // services in common with the specified machine.
c4582
// DistributionGroupByMachineId returns, for each given machine entity, // a slice of machine.Ids that belong to the same distribution // group as that machine. This information may be used to // distribute instances for high availability.
c4583
// controllerMachineIds returns a slice of all other environ manager machine.Ids.
c4584
// commonApplicationMachineId returns a slice of machine.Ids with // applications in common with the specified machine.
c4585
// Constraints returns the constraints for each given machine entity.
c4586
// SetInstanceInfo sets the provider specific machine id, nonce, // metadata and network info for each given machine. Once set, the // instance id cannot be changed.
c4587
// WatchMachineErrorRetry returns a NotifyWatcher that notifies when // the provisioner should retry provisioning machines with transient errors.
c4588
// ReleaseContainerAddresses finds addresses allocated to a container and marks // them as Dead, to be released and removed. It accepts container tags as // arguments.
c4589
// prepareContainerAccessEnvironment retrieves the environment, host machine, and access // for working with containers.
c4590
// HostChangesForContainers returns the set of changes that need to be done // to the host machine to prepare it for the containers to be created. // Pass in a list of the containers that you want the changes for.
c4591
// Implements perContainerHandler.SetError
c4592
// SetModificationStatus updates the instance whilst changes are occurring. This // is different from SetStatus and SetInstanceStatus, by the fact this holds // information about the ongoing changes that are happening to instances. // Consider LXD Profile updates that can modify a instance, but may not cause // the instance to be placed into a error state. This modification status // serves the purpose of highlighting that to the operator. // Only machine tags are accepted.
c4593
// MarkMachinesForRemoval indicates that the specified machines are // ready to have any provider-level resources cleaned up and then be // removed.
c4594
// RemoveUpgradeCharmProfileData completely removes the instance charm profile // data for a machine, even if the machine is dead. // // Remove in juju 3. Upgrading existing charm profiles is now handled // in the instance mutater worker. This is for compatibility only with // older provisioners.
c4595
// extractRegistryName returns the registry URL part of an images path
c4596
// copy returns an independent copy of the state.
c4597
// Validate returns an error if the supplied hook.Info does not represent // a valid change to the relation state. Hooks must always be validated // against the current state before they are run, to ensure that the system // meets its guarantees about hook execution order.
c4598
// ReadStateDir loads a StateDir from the subdirectory of dirPath named // for the supplied RelationId. If the directory does not exist, no error // is returned,
c4599
// ReadAllStateDirs loads and returns every StateDir persisted directly inside // the supplied dirPath. If dirPath does not exist, no error is returned.