_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c4500
train
// 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.
{ "resource": "" }
c4501
train
// SuperSubnets implements NetworkingEnviron.SuperSubnets
{ "resource": "" }
c4502
train
// Get returns annotations that have been set on the given entities.
{ "resource": "" }
c4503
train
// Set sets entity annotation pairs.
{ "resource": "" }
c4504
train
// formatFilesystemListTabular writes a tabular summary of filesystem instances.
{ "resource": "" }
c4505
train
// PerformUpgrade runs the business logic needed to upgrade the current "from" version to this // version of Juju on the "target" type of machine.
{ "resource": "" }
c4506
train
// 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...
{ "resource": "" }
c4507
train
// targetsMatch returns true if any machineTargets match any of // stepTargets.
{ "resource": "" }
c4508
train
// NewServer serves API requests using the given configuration.
{ "resource": "" }
c4509
train
// Stop stops the server and returns when all running requests // have completed.
{ "resource": "" }
c4510
train
// loop is the main loop for the server.
{ "resource": "" }
c4511
train
// publicDNSName returns the current public hostname.
{ "resource": "" }
c4512
train
// 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...
{ "resource": "" }
c4513
train
// AllInstances returns all instances currently known to the broker.
{ "resource": "" }
c4514
train
// 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...
{ "resource": "" }
c4515
train
// getAddresses queries and returns the Addresses for the given instances, // ignoring nil instances or ones without addresses.
{ "resource": "" }
c4516
train
// waitAnyInstanceAddresses waits for at least one of the instances // to have addresses, and returns them.
{ "resource": "" }
c4517
train
// APIInfo returns an api.Info for the environment. The result is populated // with addresses and CA certificate, but no tag or password.
{ "resource": "" }
c4518
train
// CheckProviderAPI returns an error if a simple API call // to check a basic response from the specified environ fails.
{ "resource": "" }
c4519
train
// NewFacade returns a new CAASOperator facade.
{ "resource": "" }
c4520
train
// Charm returns the charm info for all given applications.
{ "resource": "" }
c4521
train
// SetPodSpec sets the container specs for a set of applications.
{ "resource": "" }
c4522
train
// WatchUnits starts a StringsWatcher to watch changes to the // lifecycle states of units for the specified applications in // this model.
{ "resource": "" }
c4523
train
// NewConnFacade returns a ConnFacade backed by the supplied APICaller.
{ "resource": "" }
c4524
train
// Life is part of the ConnFacade interface.
{ "resource": "" }
c4525
train
// SetPassword is part of the ConnFacade interface.
{ "resource": "" }
c4526
train
// NewMockCollection creates a new mock instance
{ "resource": "" }
c4527
train
// Count mocks base method
{ "resource": "" }
c4528
train
// Pipe mocks base method
{ "resource": "" }
c4529
train
// Pipe indicates an expected call of Pipe
{ "resource": "" }
c4530
train
// Writeable mocks base method
{ "resource": "" }
c4531
train
// NewMockQuery creates a new mock instance
{ "resource": "" }
c4532
train
// Comment mocks base method
{ "resource": "" }
c4533
train
// Distinct mocks base method
{ "resource": "" }
c4534
train
// Iter mocks base method
{ "resource": "" }
c4535
train
// Iter indicates an expected call of Iter
{ "resource": "" }
c4536
train
// Limit mocks base method
{ "resource": "" }
c4537
train
// LogReplay mocks base method
{ "resource": "" }
c4538
train
// MapReduce mocks base method
{ "resource": "" }
c4539
train
// One mocks base method
{ "resource": "" }
c4540
train
// Prefetch mocks base method
{ "resource": "" }
c4541
train
// Select mocks base method
{ "resource": "" }
c4542
train
// SetMaxTime mocks base method
{ "resource": "" }
c4543
train
// SetMaxTime indicates an expected call of SetMaxTime
{ "resource": "" }
c4544
train
// Sort mocks base method
{ "resource": "" }
c4545
train
// Tail mocks base method
{ "resource": "" }
c4546
train
// NewAPIBase creates a new server-side API facade with the given Backing.
{ "resource": "" }
c4547
train
// WatchForProxyConfigAndAPIHostPortChanges watches for cleanups to be perfomed in state
{ "resource": "" }
c4548
train
// CreateVolumes is defined on the VolumeSource interface.
{ "resource": "" }
c4549
train
// ListVolumes is defined on the VolumeSource interface.
{ "resource": "" }
c4550
train
// DescribeVolumes is defined on the VolumeSource interface.
{ "resource": "" }
c4551
train
// DestroyVolumes is defined on the VolumeSource interface.
{ "resource": "" }
c4552
train
// ReleaseVolumes is defined on the VolumeSource interface.
{ "resource": "" }
c4553
train
// AttachVolumes is defined on the VolumeSource interface.
{ "resource": "" }
c4554
train
// DetachVolumes is defined on the VolumeSource interface.
{ "resource": "" }
c4555
train
// createBlockFile creates a file at the specified path, with the // given size in mebibytes.
{ "resource": "" }
c4556
train
// detachLoopDevice detaches the loop device with the specified name.
{ "resource": "" }
c4557
train
// associatedLoopDevices returns the device names of the loop devices // associated with the specified file path.
{ "resource": "" }
c4558
train
// NewRegisterCommand returns a command to allow the user to register a controller.
{ "resource": "" }
c4559
train
// Info implements Command.Info // `register` may seem generic, but is seen as simple and without potential // naming collisions in any current or planned features.
{ "resource": "" }
c4560
train
// SetFlags implements Command.Init.
{ "resource": "" }
c4561
train
// controllerDetails returns controller and account details to be registered for the // given registration parameters.
{ "resource": "" }
c4562
train
// publicControllerDetails returns controller and account details to be registered // for the given public controller host name.
{ "resource": "" }
c4563
train
// nonPublicControllerDetails returns controller and account details to be registered with // respect to the given registration parameters.
{ "resource": "" }
c4564
train
// updateController prompts for a controller name and updates the // controller and account details in the given client store.
{ "resource": "" }
c4565
train
// getParameters gets all of the parameters required for registering, prompting // the user as necessary.
{ "resource": "" }
c4566
train
// NewProvisionerAPIV4 creates a new server-side version 4 Provisioner API facade.
{ "resource": "" }
c4567
train
// NewProvisionerAPIV5 creates a new server-side Provisioner API facade.
{ "resource": "" }
c4568
train
// NewProvisionerAPIV6 creates a new server-side Provisioner API facade.
{ "resource": "" }
c4569
train
// NewProvisionerAPIV7 creates a new server-side Provisioner API facade.
{ "resource": "" }
c4570
train
// NewProvisionerAPIV8 creates a new server-side Provisioner API facade.
{ "resource": "" }
c4571
train
// NewProvisionerAPIV9 creates a new server-side Provisioner API facade.
{ "resource": "" }
c4572
train
// WatchContainers starts a StringsWatcher to watch containers deployed to // any machine passed in args.
{ "resource": "" }
c4573
train
// WatchAllContainers starts a StringsWatcher to watch all containers deployed to // any machine passed in args.
{ "resource": "" }
c4574
train
// SetSupportedContainers updates the list of containers supported by the machines passed in args.
{ "resource": "" }
c4575
train
// SupportedContainers returns the list of containers supported by the machines passed in args.
{ "resource": "" }
c4576
train
// MachinesWithTransientErrors returns status data for machines with provisioning // errors which are transient.
{ "resource": "" }
c4577
train
// Series returns the deployed series for each given machine entity.
{ "resource": "" }
c4578
train
// KeepInstance returns the keep-instance value for each given machine entity.
{ "resource": "" }
c4579
train
// 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.
{ "resource": "" }
c4580
train
// controllerInstances returns all environ manager instances.
{ "resource": "" }
c4581
train
// commonServiceInstances returns instances with // services in common with the specified machine.
{ "resource": "" }
c4582
train
// 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.
{ "resource": "" }
c4583
train
// controllerMachineIds returns a slice of all other environ manager machine.Ids.
{ "resource": "" }
c4584
train
// commonApplicationMachineId returns a slice of machine.Ids with // applications in common with the specified machine.
{ "resource": "" }
c4585
train
// Constraints returns the constraints for each given machine entity.
{ "resource": "" }
c4586
train
// SetInstanceInfo sets the provider specific machine id, nonce, // metadata and network info for each given machine. Once set, the // instance id cannot be changed.
{ "resource": "" }
c4587
train
// WatchMachineErrorRetry returns a NotifyWatcher that notifies when // the provisioner should retry provisioning machines with transient errors.
{ "resource": "" }
c4588
train
// ReleaseContainerAddresses finds addresses allocated to a container and marks // them as Dead, to be released and removed. It accepts container tags as // arguments.
{ "resource": "" }
c4589
train
// prepareContainerAccessEnvironment retrieves the environment, host machine, and access // for working with containers.
{ "resource": "" }
c4590
train
// 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.
{ "resource": "" }
c4591
train
// Implements perContainerHandler.SetError
{ "resource": "" }
c4592
train
// 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 ins...
{ "resource": "" }
c4593
train
// MarkMachinesForRemoval indicates that the specified machines are // ready to have any provider-level resources cleaned up and then be // removed.
{ "resource": "" }
c4594
train
// 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.
{ "resource": "" }
c4595
train
// extractRegistryName returns the registry URL part of an images path
{ "resource": "" }
c4596
train
// copy returns an independent copy of the state.
{ "resource": "" }
c4597
train
// 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.
{ "resource": "" }
c4598
train
// ReadStateDir loads a StateDir from the subdirectory of dirPath named // for the supplied RelationId. If the directory does not exist, no error // is returned,
{ "resource": "" }
c4599
train
// ReadAllStateDirs loads and returns every StateDir persisted directly inside // the supplied dirPath. If dirPath does not exist, no error is returned.
{ "resource": "" }