_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c5000 | // updateAddresses updates the member addresses in the new replica-set, using
// the HA space if one is configured. | |
c5001 | // updateAddressesFromSpace updates the member addresses based on the
// configured HA space.
// If no addresses are available for any of the machines, then such machines
// have their status set and are included in the detail of the returned error. | |
c5002 | // sortedMemberIds returns the list of p.desired.members in integer-sorted order | |
c5003 | // NewFileStorageReader returns a new storage reader for
// a directory inside the local file system. | |
c5004 | // Get implements storage.StorageReader.Get. | |
c5005 | // List implements storage.StorageReader.List. | |
c5006 | // URL implements storage.StorageReader.URL. | |
c5007 | // NewFacade returns a new Facade using the given Backend and Authorizer. | |
c5008 | // ModelTargetEnvironVersion returns the target version of the environ
// corresponding to each specified model. The target version is the
// environ provider's version. | |
c5009 | // SetModelEnvironVersion sets the current version of the environ corresponding
// to each specified model. | |
c5010 | // SetModelStatus sets the status of each given model. | |
c5011 | // Init reads and verifies the cli arguments for the MetricsCommand | |
c5012 | // Less implements the sort.Interface. | |
c5013 | // Swap implements the sort.Interface. | |
c5014 | // formatTabular returns a tabular view of collected metrics. | |
c5015 | // Status returns the machine status. | |
c5016 | // IsManual returns whether the machine is manually provisioned. | |
c5017 | // ProviderAddresses returns all addresses of the machine known to the
// cloud provider. | |
c5018 | // SetProviderAddresses sets the cached provider addresses for the
// machine. | |
c5019 | // NewBakeryStorage returns a new bakery.Storage. By default, items
// added to the store are retained until deleted explicitly. The
// store's ExpireAfter method can be called to derive a new store that
// will expire items at the specified time. | |
c5020 | // NewStateCAASOperatorProvisionerAPI provides the signature required for facade registration. | |
c5021 | // NewCAASOperatorProvisionerAPI returns a new CAAS operator provisioner API facade. | |
c5022 | // CharmStorageParams returns filesystem parameters needed
// to provision storage used for a charm operator or workload. | |
c5023 | // HandleCredentialError determines if given error relates to invalid credential.
// If it is, the credential is invalidated.
// Original error is returned untouched. | |
c5024 | // generateOSElement creates the architecture appropriate element details. | |
c5025 | // generateFeaturesElement generates the appropriate features element based on
// the architecture. | |
c5026 | // deviceID generates a device id from and int. The limit of 26 is arbitrary,
// but it seems unlikely we'll need more than a couple for our use case. | |
c5027 | // Close is part of the logsink.LogWriteCloser interface. | |
c5028 | // Validate checks for missing values from the configuration and checks that
// they conform to a given type. | |
c5029 | // NewEnvironWorker returns a worker that keeps track of
// the machines in the state and polls their instance
// for addition or removal changes. | |
c5030 | // NewContainerWorker returns a worker that keeps track of
// the containers in the state for this machine agent and
// polls their instance for addition or removal changes. | |
c5031 | // getMachine is part of the MachineContext interface. | |
c5032 | // add is part of the lifetimeContext interface. | |
c5033 | // SetCanUninstall creates the uninstall file in the data dir. It does
// nothing if the supplied agent doesn't have a machine tag. | |
c5034 | // CanUninstall returns true if the uninstall file exists in the agent's
// data dir. If it encounters an error, it fails safe and returns false. | |
c5035 | // newWaitWorker returns a worker that waits for the controller leader to run
// the upgrade steps and update the model's environ version, and then unlocks
// the gate. | |
c5036 | // newUpgradeWorker returns a worker that runs the upgrade steps, updates the
// model's environ version, and unlocks the gate. | |
c5037 | // SetPasswords sets API passwords for the specified applications. | |
c5038 | // NewCommandsResolver returns a new Resolver that returns operations to
// execute "juju run" commands.
//
// The returned resolver's NextOp method will return operations to execute
// run commands whenever the remote state's "Commands" is non-empty, by
// taking the first ID in the sequence and fetching the command arguments
// from the Commands interface passed into this function. When the command
// execution operation is committed, the ID of the command is passed to the
// "commandCompleted" callback. | |
c5039 | // NextOp is part of the resolver.Resolver interface. | |
c5040 | // InstanceAvailabilityZoneNames implements common.ZonedEnviron. | |
c5041 | // DeriveAvailabilityZones implements common.ZonedEnviron. | |
c5042 | // Instances implements environs.Environ. | |
c5043 | // AdoptResources implements environs.Environ. | |
c5044 | // ConstraintsValidator implements environs.Environ. | |
c5045 | // SetConfig implements environs.Environ. | |
c5046 | // ControllerInstances implements environs.Environ. | |
c5047 | // Destroy implements environs.Environ. | |
c5048 | // DestroyController implements environs.Environ. | |
c5049 | // getCloudInitConfig returns a CloudConfig instance. The default oracle images come
// bundled with iptables-persistent on Ubuntu and firewalld on CentOS, which maintains
// a number of iptables firewall rules. We need to at least allow the juju API port for state
// machines. SSH port is allowed by default on linux images. | |
c5050 | // MaintainInstance implements environs.InstanceBroker. | |
c5051 | // Config implements environs.ConfigGetter. | |
c5052 | // InstanceTypes implements environs.InstancePrechecker. | |
c5053 | // MustParseHardware constructs a HardwareCharacteristics from the supplied arguments,
// as Parse, but panics on failure. | |
c5054 | // ParseHardware constructs a HardwareCharacteristics from the supplied arguments,
// each of which must contain only spaces and name=value pairs. If any
// name is specified more than once, an error is returned. | |
c5055 | // parseTags returns the tags in the value s | |
c5056 | // Write is part of the io.Writer interface. | |
c5057 | // SampleCloudSpec returns an environs.CloudSpec that can be used to
// open a dummy Environ. | |
c5058 | // mongoInfo returns a mongo.MongoInfo which allows clients to connect to the
// shared dummy state, if it exists. | |
c5059 | // Reset resets the entire dummy environment and forgets any registered
// operation listener. All opened environments after Reset will share
// the same underlying state. | |
c5060 | // GetStateInAPIServer returns the state connection used by the API server
// This is so code in the test suite can trigger Syncs, etc that the API server
// will see, which will then trigger API watchers, etc. | |
c5061 | // GetStatePoolInAPIServer returns the StatePool used by the API
// server. As for GetStatePoolInAPIServer, this is so code in the
// test suite can trigger Syncs etc. | |
c5062 | // GetHubInAPIServer returns the central hub used by the API server. | |
c5063 | // GetLeaseManagerInAPIServer returns the channel used to update the
// cache.Controller used by the API server | |
c5064 | // GetController returns the cache.Controller used by the API server. | |
c5065 | // newState creates the state for a new environment with the given name. | |
c5066 | // listenAPI starts an HTTP server listening for API connections. | |
c5067 | // SetSupportsSpaces allows to enable and disable SupportsSpaces for tests. | |
c5068 | // SetSupportsSpaceDiscovery allows to enable and disable
// SupportsSpaceDiscovery for tests. | |
c5069 | // PrecheckInstance is specified in the environs.InstancePrechecker interface. | |
c5070 | // SupportsSpaceDiscovery is specified on environs.Networking. | |
c5071 | // Spaces is specified on environs.Networking. | |
c5072 | // AvailabilityZones implements environs.ZonedEnviron. | |
c5073 | // InstanceAvailabilityZoneNames implements environs.ZonedEnviron. | |
c5074 | // Subnets implements environs.Environ.Subnets. | |
c5075 | // SetInstanceAddresses sets the addresses associated with the given
// dummy instance. | |
c5076 | // SetInstanceStatus sets the status associated with the given
// dummy instance. | |
c5077 | // SetInstanceBroken marks the named methods of the instance as broken.
// Any previously broken methods not in the set will no longer be broken. | |
c5078 | // SSHAddresses implements environs.SSHAddresses.
// For testing we cut "100.100.100.100" out of this list. | |
c5079 | // SetAgentStatus sets the presence for a particular agent in the fake presence implementation. | |
c5080 | // SeriesImage gets an instances.Image for the specified series, image stream
// and location. The resulting Image's ID is in the URN format expected by
// Azure Resource Manager.
//
// For Ubuntu, we query the SKUs to determine the most recent point release
// for a series. | |
c5081 | // controllerAddresses returns the list of internal addresses of the state
// server machines. | |
c5082 | // Addresses returns the list of cloud-internal addresses that
// can be used to connect to the state. | |
c5083 | // filterHostPortsForManagementSpace filters the collection of API addresses
// based on the configured management space for the controller.
// If there is no space configured, or if the one of the slices is filtered down
// to zero elements, just use the unfiltered slice for safety - we do not
// want to cut off communication to the controller based on erroneous config. | |
c5084 | // APIHostPortsForAgents returns the collection of API addresses that should
// be used by agents.
// If the controller model is CAAS type, the return will be the controller
// k8s service addresses in cloud service.
// If there is no management network space configured for the controller,
// or if the space is misconfigured, the return will be the same as
// APIHostPortsForClients.
// Otherwise the returned addresses will correspond with the management net space.
// If there is no document at all, we simply fall back to APIHostPortsForClients. | |
c5085 | // apiHostPortsForKey returns API addresses extracted from the document
// identified by the input key. | |
c5086 | // fromNetworkAddress is a convenience helper to create a state type
// out of the network type, here for Address with a given Origin. | |
c5087 | // networkAddress is a convenience helper to return the state type
// as network type, here for Address. | |
c5088 | // fromNetworkAddresses is a convenience helper to create a state type
// out of the network type, here for a slice of Address with a given origin. | |
c5089 | // networkAddresses is a convenience helper to return the state type
// as network type, here for a slice of Address. | |
c5090 | // fromNetworkHostPort is a convenience helper to create a state type
// out of the network type, here for HostPort. | |
c5091 | // networkHostPort is a convenience helper to return the state type
// as network type, here for HostPort. | |
c5092 | // fromNetworkHostsPorts is a helper to create a state type
// out of the network type, here for a nested slice of HostPort. | |
c5093 | // networkHostsPorts is a convenience helper to return the state type
// as network type, here for a nested slice of HostPort. | |
c5094 | // addressEqual checks that two slices of network addresses are equal. | |
c5095 | // hostsPortsEqual checks that two arrays of network hostports are equal. | |
c5096 | // connRateMetric returns an int value based on the rate of new connections. | |
c5097 | // pauseTime returns a time based on rate of connections.
// - up to lowerThreshold, return minPause
// - above to upperThreshold, return maxPause
// - in between, return an interpolated value | |
c5098 | // Run changes the juju-managed firewall to hide any
// ports that were also explicitly marked by units as closed. | |
c5099 | // Set implements gnuflag.Value's Set method. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.