_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c4400 | // Manifold returns a dependency.Manifold that will run an apiserver-based
// raft transport worker. | |
c4401 | // APIRequestDuration indicates an expected call of APIRequestDuration | |
c4402 | // DeprecatedAPIRequestDuration mocks base method | |
c4403 | // DeprecatedAPIRequestsTotal mocks base method | |
c4404 | // NewMockCounterVec creates a new mock instance | |
c4405 | // NewMockSummaryVec creates a new mock instance | |
c4406 | // processPost handles resources upload POST request after
// authentication. | |
c4407 | // DialInfo returns information on how to dial
// the state's mongo server with the given info
// and dial options. | |
c4408 | // DialWithInfo establishes a new session to the cluster identified by info,
// with the specified options. If either Tag or Password are specified, then
// a Login call on the admin database will be made. | |
c4409 | // Login logs in to the mongodb admin database. | |
c4410 | // MaybeUnauthorizedf checks if the cause of the given error is a Mongo
// authorization error, and if so, wraps the error with errors.Unauthorizedf. | |
c4411 | // VolumeSource is defined on storage.Provider. | |
c4412 | // FilesystemSource is defined on storage.Provider. | |
c4413 | // ValidateConfig is defined on storage.Provider. | |
c4414 | // Supports is defined on storage.Provider. | |
c4415 | // Scope is defined on storage.Provider. | |
c4416 | // DefaultPool is defined on storage.Provider. | |
c4417 | // NewMockRbacV1Interface creates a new mock instance | |
c4418 | // ClusterRoleBindings mocks base method | |
c4419 | // ClusterRoles mocks base method | |
c4420 | // RoleBindings mocks base method | |
c4421 | // RoleBindings indicates an expected call of RoleBindings | |
c4422 | // Roles mocks base method | |
c4423 | // NewMockClusterRoleBindingInterface creates a new mock instance | |
c4424 | // NewMockClusterRoleInterface creates a new mock instance | |
c4425 | // NewMockDatabase creates a new mock instance | |
c4426 | // Copy mocks base method | |
c4427 | // CopyForModel mocks base method | |
c4428 | // GetCollectionFor mocks base method | |
c4429 | // GetRawCollection mocks base method | |
c4430 | // RunRawTransaction indicates an expected call of RunRawTransaction | |
c4431 | // RunTransactionFor mocks base method | |
c4432 | // Schema mocks base method | |
c4433 | // TransactionRunner mocks base method | |
c4434 | // TransactionRunner indicates an expected call of TransactionRunner | |
c4435 | // Encode signs the data returned by the reader and returns an inline signed copy. | |
c4436 | // BridgeEthernetById takes a deviceId and creates a bridge with this device
// using this devices config | |
c4437 | // BridgeVLANById takes a deviceId and creates a bridge with this device
// using this devices config | |
c4438 | // BridgeBondById takes a deviceId and creates a bridge with this device
// using this devices config | |
c4439 | // shouldCreateBridge returns true only if it is clear the bridge doesn't already exist, and that the existing device
// isn't in a different bridge. | |
c4440 | // createBridgeFromInterface will create a bridge stealing the interface details, and wiping the existing interface
// except for MTU so that IP Address information is never duplicated. | |
c4441 | // ReadDirectory reads the contents of a netplan directory and
// returns complete config. | |
c4442 | // Write writes merged netplan yaml to file specified by path. If path is empty filename is autogenerated | |
c4443 | // Rollback moves backed up files to original locations and removes written file | |
c4444 | // FindDeviceByMACOrName will look for an Ethernet, VLAN or Bond matching the Name of the device or its MAC address.
// Name is preferred to MAC address. | |
c4445 | // NewModelWatcher returns a new ModelWatcher. Active watchers
// will be stored in the provided Resources. The two GetAuthFunc
// callbacks will be used on each invocation of the methods to
// determine current permissions.
// Right now, model tags are not used, so both created AuthFuncs
// are called with "" for tag, which means "the current model". | |
c4446 | // WatchForModelConfigChanges returns a NotifyWatcher that observes
// changes to the model configuration.
// Note that although the NotifyWatchResult contains an Error field,
// it's not used because we are only returning a single watcher,
// so we use the regular error return. | |
c4447 | // ModelConfig returns the current model's configuration. | |
c4448 | // recoverViaBootstrap re-initializes the raft cluster. This should only be
// used in the case that the raft directory has been completely wiped. | |
c4449 | // NewStateApplication converts a state.Application into an Application. | |
c4450 | // stateStepsFor21 returns upgrade steps for Juju 2.1 that manipulate state directly. | |
c4451 | // NewContext returns a new hooks.ContextComponent for payloads. | |
c4452 | // NewContextAPI returns a new hooks.ContextComponent for payloads. | |
c4453 | // ContextComponent returns the hook context for the payload
// payload component. | |
c4454 | // Get returns the payload info corresponding to the given ID. | |
c4455 | // List returns the sorted names of all registered payloads. | |
c4456 | // Track records the payload info in the hook context. | |
c4457 | // Untrack tells juju to stop tracking this payload. | |
c4458 | // SetStatus sets the identified payload's status. | |
c4459 | // NewAPI creates a new client-side machine undertaker facade. | |
c4460 | // AllMachineRemovals returns all the machines that have been marked
// ready to clean up. | |
c4461 | // GetProviderInterfaceInfo gets the provider details for all of the
// interfaces for one machine. | |
c4462 | // CompleteRemoval finishes the removal of the machine in the database
// after any provider resources are cleaned up. | |
c4463 | // WatchMachineRemovals registers to be notified when a machine
// removal is requested. | |
c4464 | // AddBranch adds a new branch to the model. | |
c4465 | // CommitBranch commits the branch with the input name to the model,
// effectively completing it and applying all branch changes across the model.
// The new generation ID of the model is returned. | |
c4466 | // HasActiveBranch returns true if the model has an
// "in-flight" branch with the input name. | |
c4467 | // BranchInfo returns information about "in-flight" branches.
// If a non-empty string is supplied for branch name,
// then only information for that branch is returned.
// Supplying true for detailed returns extra unit detail for the branch. | |
c4468 | // Name returns the name of the service stored in enumService. | |
c4469 | // CreateService wraps Mgr.CreateService method. | |
c4470 | // CreateService wraps Mgr.OpenService method. It returns a windowsService object.
// This allows us to stub out this module for testing. | |
c4471 | // CloseHandle wraps the windows.CloseServiceHandle method.
// This allows us to stub out this module for testing. | |
c4472 | // Start starts a service. | |
c4473 | // Stop stops a service. | |
c4474 | // Delete deletes a service. | |
c4475 | // Running returns the status of a service. | |
c4476 | // Config returns the mgr.Config of the service. This config reflects the actual
// service configuration in Windows. | |
c4477 | // ChangeServicePassword can change the password of a service
// as long as it belongs to the user defined in this package | |
c4478 | // Upgrade upgrades the operator for the specified agent tag to v. | |
c4479 | // cacheZones populates the allZones and availableZones cache, if it's
// empty. | |
c4480 | // AddSubnets adds. | |
c4481 | // NewStorage returns a Storage for the model with the specified UUID. | |
c4482 | // resourceName returns the string to use for a resource's Name tag,
// to help users identify Juju-managed resources in the AWS console. | |
c4483 | // runInstances calls ec2.RunInstances for a fixed number of attempts until
// RunInstances returns an error code that does not indicate an error that
// may be caused by eventual consistency. | |
c4484 | // groupInfoByName returns information on the security group
// with the given name including rules and other details. | |
c4485 | // groupByName returns the security group with the given name. | |
c4486 | // gatherInstances tries to get information on each instance
// id whose corresponding insts slot is nil.
//
// This function returns environs.ErrPartialInstances if the
// insts slice has not been completely filled. | |
c4487 | // NetworkInterfaces implements NetworkingEnviron.NetworkInterfaces. | |
c4488 | // Spaces is not implemented by the ec2 provider as we don't currently have
// provider level spaces. | |
c4489 | // Subnets returns basic information about the specified subnets known
// by the provider for the specified instance or list of ids. subnetIds can be
// empty, in which case all known are returned. Implements
// NetworkingEnviron.Subnets. | |
c4490 | // AllInstances is part of the environs.InstanceBroker interface. | |
c4491 | // AllInstancesByState returns all instances in the environment
// with one of the specified instance states. | |
c4492 | // allControllerManagedInstances returns the IDs of all instances managed by
// this environment's controller.
//
// Note that this requires that all instances are tagged; we cannot filter on
// security groups, as we do not know the names of the models. | |
c4493 | // destroyControllerManagedEnvirons destroys all environments managed by this
// environment's controller. | |
c4494 | // controllerSecurityGroups returns the details of all security groups managed
// by the environment's controller. | |
c4495 | // cleanEnvironmentSecurityGroups attempts to delete all security groups owned
// by the environment. | |
c4496 | // setUpGroups creates the security groups for the new machine, and
// returns them.
//
// Instances are tagged with a group so they can be distinguished from
// other instances that might be running on the same EC2 account. In
// addition, a specific machine security group is created for each
// machine, so that its firewall rules can be configured per machine. | |
c4497 | // newPermSetForGroup returns a set of all the permissions in the
// given slice of IPPerms. It ignores the name and owner
// id in source groups, and any entry with no source ips will
// be granted for the given group only. | |
c4498 | // ipPerms returns m as a slice of permissions usable
// with the ec2 package. | |
c4499 | // isZoneConstrainedError reports whether or not the error indicates
// RunInstances failed due to the specified availability zone being
// constrained for the instance type being provisioned, or is
// otherwise unusable for the specific request made. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.