_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c5000 | train | // updateAddresses updates the member addresses in the new replica-set, using
// the HA space if one is configured. | {
"resource": ""
} | ||
c5001 | train | // 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. | {
"resource": ""
} | ||
c5002 | train | // sortedMemberIds returns the list of p.desired.members in integer-sorted order | {
"resource": ""
} | ||
c5003 | train | // NewFileStorageReader returns a new storage reader for
// a directory inside the local file system. | {
"resource": ""
} | ||
c5004 | train | // Get implements storage.StorageReader.Get. | {
"resource": ""
} | ||
c5005 | train | // List implements storage.StorageReader.List. | {
"resource": ""
} | ||
c5006 | train | // URL implements storage.StorageReader.URL. | {
"resource": ""
} | ||
c5007 | train | // NewFacade returns a new Facade using the given Backend and Authorizer. | {
"resource": ""
} | ||
c5008 | train | // ModelTargetEnvironVersion returns the target version of the environ
// corresponding to each specified model. The target version is the
// environ provider's version. | {
"resource": ""
} | ||
c5009 | train | // SetModelEnvironVersion sets the current version of the environ corresponding
// to each specified model. | {
"resource": ""
} | ||
c5010 | train | // SetModelStatus sets the status of each given model. | {
"resource": ""
} | ||
c5011 | train | // Init reads and verifies the cli arguments for the MetricsCommand | {
"resource": ""
} | ||
c5012 | train | // Less implements the sort.Interface. | {
"resource": ""
} | ||
c5013 | train | // Swap implements the sort.Interface. | {
"resource": ""
} | ||
c5014 | train | // formatTabular returns a tabular view of collected metrics. | {
"resource": ""
} | ||
c5015 | train | // Status returns the machine status. | {
"resource": ""
} | ||
c5016 | train | // IsManual returns whether the machine is manually provisioned. | {
"resource": ""
} | ||
c5017 | train | // ProviderAddresses returns all addresses of the machine known to the
// cloud provider. | {
"resource": ""
} | ||
c5018 | train | // SetProviderAddresses sets the cached provider addresses for the
// machine. | {
"resource": ""
} | ||
c5019 | train | // 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. | {
"resource": ""
} | ||
c5020 | train | // NewStateCAASOperatorProvisionerAPI provides the signature required for facade registration. | {
"resource": ""
} | ||
c5021 | train | // NewCAASOperatorProvisionerAPI returns a new CAAS operator provisioner API facade. | {
"resource": ""
} | ||
c5022 | train | // CharmStorageParams returns filesystem parameters needed
// to provision storage used for a charm operator or workload. | {
"resource": ""
} | ||
c5023 | train | // HandleCredentialError determines if given error relates to invalid credential.
// If it is, the credential is invalidated.
// Original error is returned untouched. | {
"resource": ""
} | ||
c5024 | train | // generateOSElement creates the architecture appropriate element details. | {
"resource": ""
} | ||
c5025 | train | // generateFeaturesElement generates the appropriate features element based on
// the architecture. | {
"resource": ""
} | ||
c5026 | train | // 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. | {
"resource": ""
} | ||
c5027 | train | // Close is part of the logsink.LogWriteCloser interface. | {
"resource": ""
} | ||
c5028 | train | // Validate checks for missing values from the configuration and checks that
// they conform to a given type. | {
"resource": ""
} | ||
c5029 | train | // NewEnvironWorker returns a worker that keeps track of
// the machines in the state and polls their instance
// for addition or removal changes. | {
"resource": ""
} | ||
c5030 | train | // 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. | {
"resource": ""
} | ||
c5031 | train | // getMachine is part of the MachineContext interface. | {
"resource": ""
} | ||
c5032 | train | // add is part of the lifetimeContext interface. | {
"resource": ""
} | ||
c5033 | train | // SetCanUninstall creates the uninstall file in the data dir. It does
// nothing if the supplied agent doesn't have a machine tag. | {
"resource": ""
} | ||
c5034 | train | // 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. | {
"resource": ""
} | ||
c5035 | train | // 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. | {
"resource": ""
} | ||
c5036 | train | // newUpgradeWorker returns a worker that runs the upgrade steps, updates the
// model's environ version, and unlocks the gate. | {
"resource": ""
} | ||
c5037 | train | // SetPasswords sets API passwords for the specified applications. | {
"resource": ""
} | ||
c5038 | train | // 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 a... | {
"resource": ""
} | ||
c5039 | train | // NextOp is part of the resolver.Resolver interface. | {
"resource": ""
} | ||
c5040 | train | // InstanceAvailabilityZoneNames implements common.ZonedEnviron. | {
"resource": ""
} | ||
c5041 | train | // DeriveAvailabilityZones implements common.ZonedEnviron. | {
"resource": ""
} | ||
c5042 | train | // Instances implements environs.Environ. | {
"resource": ""
} | ||
c5043 | train | // AdoptResources implements environs.Environ. | {
"resource": ""
} | ||
c5044 | train | // ConstraintsValidator implements environs.Environ. | {
"resource": ""
} | ||
c5045 | train | // SetConfig implements environs.Environ. | {
"resource": ""
} | ||
c5046 | train | // ControllerInstances implements environs.Environ. | {
"resource": ""
} | ||
c5047 | train | // Destroy implements environs.Environ. | {
"resource": ""
} | ||
c5048 | train | // DestroyController implements environs.Environ. | {
"resource": ""
} | ||
c5049 | train | // 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 i... | {
"resource": ""
} | ||
c5050 | train | // MaintainInstance implements environs.InstanceBroker. | {
"resource": ""
} | ||
c5051 | train | // Config implements environs.ConfigGetter. | {
"resource": ""
} | ||
c5052 | train | // InstanceTypes implements environs.InstancePrechecker. | {
"resource": ""
} | ||
c5053 | train | // MustParseHardware constructs a HardwareCharacteristics from the supplied arguments,
// as Parse, but panics on failure. | {
"resource": ""
} | ||
c5054 | train | // 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. | {
"resource": ""
} | ||
c5055 | train | // parseTags returns the tags in the value s | {
"resource": ""
} | ||
c5056 | train | // Write is part of the io.Writer interface. | {
"resource": ""
} | ||
c5057 | train | // SampleCloudSpec returns an environs.CloudSpec that can be used to
// open a dummy Environ. | {
"resource": ""
} | ||
c5058 | train | // mongoInfo returns a mongo.MongoInfo which allows clients to connect to the
// shared dummy state, if it exists. | {
"resource": ""
} | ||
c5059 | train | // Reset resets the entire dummy environment and forgets any registered
// operation listener. All opened environments after Reset will share
// the same underlying state. | {
"resource": ""
} | ||
c5060 | train | // 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. | {
"resource": ""
} | ||
c5061 | train | // GetStatePoolInAPIServer returns the StatePool used by the API
// server. As for GetStatePoolInAPIServer, this is so code in the
// test suite can trigger Syncs etc. | {
"resource": ""
} | ||
c5062 | train | // GetHubInAPIServer returns the central hub used by the API server. | {
"resource": ""
} | ||
c5063 | train | // GetLeaseManagerInAPIServer returns the channel used to update the
// cache.Controller used by the API server | {
"resource": ""
} | ||
c5064 | train | // GetController returns the cache.Controller used by the API server. | {
"resource": ""
} | ||
c5065 | train | // newState creates the state for a new environment with the given name. | {
"resource": ""
} | ||
c5066 | train | // listenAPI starts an HTTP server listening for API connections. | {
"resource": ""
} | ||
c5067 | train | // SetSupportsSpaces allows to enable and disable SupportsSpaces for tests. | {
"resource": ""
} | ||
c5068 | train | // SetSupportsSpaceDiscovery allows to enable and disable
// SupportsSpaceDiscovery for tests. | {
"resource": ""
} | ||
c5069 | train | // PrecheckInstance is specified in the environs.InstancePrechecker interface. | {
"resource": ""
} | ||
c5070 | train | // SupportsSpaceDiscovery is specified on environs.Networking. | {
"resource": ""
} | ||
c5071 | train | // Spaces is specified on environs.Networking. | {
"resource": ""
} | ||
c5072 | train | // AvailabilityZones implements environs.ZonedEnviron. | {
"resource": ""
} | ||
c5073 | train | // InstanceAvailabilityZoneNames implements environs.ZonedEnviron. | {
"resource": ""
} | ||
c5074 | train | // Subnets implements environs.Environ.Subnets. | {
"resource": ""
} | ||
c5075 | train | // SetInstanceAddresses sets the addresses associated with the given
// dummy instance. | {
"resource": ""
} | ||
c5076 | train | // SetInstanceStatus sets the status associated with the given
// dummy instance. | {
"resource": ""
} | ||
c5077 | train | // SetInstanceBroken marks the named methods of the instance as broken.
// Any previously broken methods not in the set will no longer be broken. | {
"resource": ""
} | ||
c5078 | train | // SSHAddresses implements environs.SSHAddresses.
// For testing we cut "100.100.100.100" out of this list. | {
"resource": ""
} | ||
c5079 | train | // SetAgentStatus sets the presence for a particular agent in the fake presence implementation. | {
"resource": ""
} | ||
c5080 | train | // 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. | {
"resource": ""
} | ||
c5081 | train | // controllerAddresses returns the list of internal addresses of the state
// server machines. | {
"resource": ""
} | ||
c5082 | train | // Addresses returns the list of cloud-internal addresses that
// can be used to connect to the state. | {
"resource": ""
} | ||
c5083 | train | // 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 commu... | {
"resource": ""
} | ||
c5084 | train | // 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 misconf... | {
"resource": ""
} | ||
c5085 | train | // apiHostPortsForKey returns API addresses extracted from the document
// identified by the input key. | {
"resource": ""
} | ||
c5086 | train | // fromNetworkAddress is a convenience helper to create a state type
// out of the network type, here for Address with a given Origin. | {
"resource": ""
} | ||
c5087 | train | // networkAddress is a convenience helper to return the state type
// as network type, here for Address. | {
"resource": ""
} | ||
c5088 | train | // 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. | {
"resource": ""
} | ||
c5089 | train | // networkAddresses is a convenience helper to return the state type
// as network type, here for a slice of Address. | {
"resource": ""
} | ||
c5090 | train | // fromNetworkHostPort is a convenience helper to create a state type
// out of the network type, here for HostPort. | {
"resource": ""
} | ||
c5091 | train | // networkHostPort is a convenience helper to return the state type
// as network type, here for HostPort. | {
"resource": ""
} | ||
c5092 | train | // fromNetworkHostsPorts is a helper to create a state type
// out of the network type, here for a nested slice of HostPort. | {
"resource": ""
} | ||
c5093 | train | // networkHostsPorts is a convenience helper to return the state type
// as network type, here for a nested slice of HostPort. | {
"resource": ""
} | ||
c5094 | train | // addressEqual checks that two slices of network addresses are equal. | {
"resource": ""
} | ||
c5095 | train | // hostsPortsEqual checks that two arrays of network hostports are equal. | {
"resource": ""
} | ||
c5096 | train | // connRateMetric returns an int value based on the rate of new connections. | {
"resource": ""
} | ||
c5097 | train | // 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 | {
"resource": ""
} | ||
c5098 | train | // Run changes the juju-managed firewall to hide any
// ports that were also explicitly marked by units as closed. | {
"resource": ""
} | ||
c5099 | train | // Set implements gnuflag.Value's Set method. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.