_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c4800 | train | // SetMongoPassword sets the password the agent responsible for the machine
// should use to communicate with the controllers. Previous passwords
// are invalidated. | {
"resource": ""
} | ||
c4801 | train | // PasswordValid returns whether the given password is valid
// for the given machine. | {
"resource": ""
} | ||
c4802 | train | // ForceDestroy queues the machine for complete removal, including the
// destruction of all units and containers on the machine. | {
"resource": ""
} | ||
c4803 | train | // ParentId returns the Id of the host machine if this machine is a container. | {
"resource": ""
} | ||
c4804 | train | // IsHasContainersError reports whether or not the error is a
// HasContainersError, indicating that an attempt to destroy
// a machine failed due to it having containers. | {
"resource": ""
} | ||
c4805 | train | // IsHasAttachmentsError reports whether or not the error is a
// HasAttachmentsError, indicating that an attempt to destroy
// a machine failed due to it having storage attachments. | {
"resource": ""
} | ||
c4806 | train | // Remove removes the machine from state. It will fail if the machine
// is not Dead. | {
"resource": ""
} | ||
c4807 | train | // Refresh refreshes the contents of the machine from the underlying
// state. It returns an error that satisfies errors.IsNotFound if the
// machine has been removed. | {
"resource": ""
} | ||
c4808 | train | // SetAgentPresence signals that the agent for machine m is alive.
// It returns the started pinger. | {
"resource": ""
} | ||
c4809 | train | // InstanceId returns the provider specific instance id for this
// machine, or a NotProvisionedError, if not set. | {
"resource": ""
} | ||
c4810 | train | // InstanceNames returns both the provider's instance id and a user-friendly
// display name. The display name is intended used for human input and
// is ignored internally. | {
"resource": ""
} | ||
c4811 | train | // InstanceStatus returns the provider specific instance status for this machine,
// or a NotProvisionedError if instance is not yet provisioned. | {
"resource": ""
} | ||
c4812 | train | // SetInstanceStatus sets the provider specific instance status for a machine. | {
"resource": ""
} | ||
c4813 | train | // ModificationStatus returns the provider specific modification status for
// this machine or NotProvisionedError if instance is not yet provisioned. | {
"resource": ""
} | ||
c4814 | train | // AvailabilityZone returns the provier-specific instance availability
// zone in which the machine was provisioned. | {
"resource": ""
} | ||
c4815 | train | // ApplicationNames returns the names of applications
// represented by units running on the machine. | {
"resource": ""
} | ||
c4816 | train | // Units returns all the units that have been assigned to the machine. | {
"resource": ""
} | ||
c4817 | train | // DesiredSpaces returns the name of all spaces that this machine needs
// access to. This is the combined value of all of the direct constraints
// for the machine, as well as the spaces listed for all bindings of units
// being deployed to that machine. | {
"resource": ""
} | ||
c4818 | train | // SetInstanceInfo is used to provision a machine and in one step sets it's
// instance id, nonce, hardware characteristics, add link-layer devices and set
// their addresses as needed. After, set charm profiles if needed. | {
"resource": ""
} | ||
c4819 | train | // Addresses returns any hostnames and ips associated with a machine,
// determined both by the machine itself, and by asking the provider.
//
// The addresses returned by the provider shadow any of the addresses
// that the machine reported with the same address value.
// Provider-reported addresses always come before... | {
"resource": ""
} | ||
c4820 | train | // maybeGetNewAddress determines if the current address is the most appropriate
// match, and if not it selects the best from the slice of all available
// addresses. It returns the new address and a bool indicating if a different
// one was picked. | {
"resource": ""
} | ||
c4821 | train | // SetProviderAddresses records any addresses related to the machine, sourced
// by asking the provider. | {
"resource": ""
} | ||
c4822 | train | // ProviderAddresses returns any hostnames and ips associated with a machine,
// as determined by asking the provider. | {
"resource": ""
} | ||
c4823 | train | // MachineAddresses returns any hostnames and ips associated with a machine,
// determined by asking the machine itself. | {
"resource": ""
} | ||
c4824 | train | // CheckProvisioned returns true if the machine was provisioned with the given nonce. | {
"resource": ""
} | ||
c4825 | train | // Constraints returns the exact constraints that should apply when provisioning
// an instance for the machine. | {
"resource": ""
} | ||
c4826 | train | // SetConstraints sets the exact constraints to apply when provisioning an
// instance for the machine. It will fail if the machine is Dead, or if it
// is already provisioned. | {
"resource": ""
} | ||
c4827 | train | // Status returns the status of the machine. | {
"resource": ""
} | ||
c4828 | train | // SetStatus sets the status of the machine. | {
"resource": ""
} | ||
c4829 | train | // SupportedContainers returns any containers this machine is capable of hosting, and a bool
// indicating if the supported containers have been determined or not. | {
"resource": ""
} | ||
c4830 | train | // SupportsNoContainers records the fact that this machine doesn't support any containers. | {
"resource": ""
} | ||
c4831 | train | // SetSupportedContainers sets the list of containers supported by this machine. | {
"resource": ""
} | ||
c4832 | train | // updateSupportedContainers sets the supported containers on this host machine. | {
"resource": ""
} | ||
c4833 | train | // markInvalidContainers sets the status of any container belonging to this machine
// as being in error if the container type is not supported. | {
"resource": ""
} | ||
c4834 | train | // SetMachineBlockDevices sets the block devices visible on the machine. | {
"resource": ""
} | ||
c4835 | train | // VolumeAttachments returns the machine's volume attachments. | {
"resource": ""
} | ||
c4836 | train | // AddAction is part of the ActionReceiver interface. | {
"resource": ""
} | ||
c4837 | train | // CancelAction is part of the ActionReceiver interface. | {
"resource": ""
} | ||
c4838 | train | // UpdateMachineSeries updates the series for the Machine. | {
"resource": ""
} | ||
c4839 | train | // VerifyUnitsSeries iterates over the units with the input names, and checks
// that the application for each supports the input series.
// Recursion is used to verify all subordinates, with the results accrued into
// a slice before returning. | {
"resource": ""
} | ||
c4840 | train | // UpdateOperation returns a model operation that will update the machine. | {
"resource": ""
} | ||
c4841 | train | // NewLifeGetter returns a new LifeGetter. The GetAuthFunc will be used on
// each invocation of Life to determine current permissions. | {
"resource": ""
} | ||
c4842 | train | // Life returns the life status of every supplied entity, where available. | {
"resource": ""
} | ||
c4843 | train | // entry returns the lease name and an entry corresponding to the document. If
// the document cannot be validated, it returns an error. | {
"resource": ""
} | ||
c4844 | train | // newLeaseDoc returns a valid lease document encoding the supplied lease and
// entry in the supplied namespace, or an error. | {
"resource": ""
} | ||
c4845 | train | // Validate ensures that the spec is valid. | {
"resource": ""
} | ||
c4846 | train | // TimestampGranular returns the timestamp at a resolution of 1 second. | {
"resource": ""
} | ||
c4847 | train | // RevisionString returns the human-readable revision for the resource. | {
"resource": ""
} | ||
c4848 | train | // AsMap returns the mapping of resource name to info for each of the
// given resources. | {
"resource": ""
} | ||
c4849 | train | // NewSender creates a new periodic worker that sends metrics
// to a collection service. | {
"resource": ""
} | ||
c4850 | train | // TabWriter returns a new tab writer with common layout definition. | {
"resource": ""
} | ||
c4851 | train | // Print writes each value followed by a tab. | {
"resource": ""
} | ||
c4852 | train | // Printf writes the formatted text followed by a tab. | {
"resource": ""
} | ||
c4853 | train | // Println writes many tab separated values finished with a new line. | {
"resource": ""
} | ||
c4854 | train | // PrintColor writes the value out in the color context specified. | {
"resource": ""
} | ||
c4855 | train | // PrintStatus writes out the status value in the standard color. | {
"resource": ""
} | ||
c4856 | train | // Run ensures c.Target is a unit, and resolves its address,
// and connects to it via SSH to execute the debug-hooks
// script. | {
"resource": ""
} | ||
c4857 | train | // DestroyController sets the controller model to Dying and, if requested,
// schedules cleanups so that all of the hosted models are destroyed, or
// otherwise returns an error indicating that there are hosted models
// remaining. | {
"resource": ""
} | ||
c4858 | train | // DestroyModel sets the model to Dying, such that the model's resources will
// be destroyed and the model removed from the controller. | {
"resource": ""
} | ||
c4859 | train | // CAASManifolds returns a set of interdependent dependency manifolds that will
// run together to administer a CAAS model, as configured. | {
"resource": ""
} | ||
c4860 | train | // NewWorker returns a new worker responsible for maintaining
// the raft cluster configuration. | {
"resource": ""
} | ||
c4861 | train | // String returns a human readable string representation of the meter status. | {
"resource": ""
} | ||
c4862 | train | // MeterStatusFromString returns a valid MeterStatusCode given a string representation. | {
"resource": ""
} | ||
c4863 | train | // SetMeterStatus sets the meter status for the unit. | {
"resource": ""
} | ||
c4864 | train | // createMeterStatusOp returns the operation needed to create the meter status
// document associated with the given globalKey. | {
"resource": ""
} | ||
c4865 | train | // removeMeterStatusOp returns the operation needed to remove the meter status
// document associated with the given globalKey. | {
"resource": ""
} | ||
c4866 | train | // GetMeterStatus returns the meter status for the unit. | {
"resource": ""
} | ||
c4867 | train | // Start starts a new download and returns it. | {
"resource": ""
} | ||
c4868 | train | // Download starts a new download, waits for it to complete, and
// returns the local name of the file. The download can be aborted by
// closing the Abort channel in the Request provided. | {
"resource": ""
} | ||
c4869 | train | // NewMockMachineProvisioner creates a new mock instance | {
"resource": ""
} | ||
c4870 | train | // AvailabilityZone mocks base method | {
"resource": ""
} | ||
c4871 | train | // InstanceStatus mocks base method | {
"resource": ""
} | ||
c4872 | train | // KeepInstance mocks base method | {
"resource": ""
} | ||
c4873 | train | // MachineTag mocks base method | {
"resource": ""
} | ||
c4874 | train | // ModelAgentVersion mocks base method | {
"resource": ""
} | ||
c4875 | train | // ProvisioningInfo mocks base method | {
"resource": ""
} | ||
c4876 | train | // SetCharmProfiles mocks base method | {
"resource": ""
} | ||
c4877 | train | // SetInstanceInfo mocks base method | {
"resource": ""
} | ||
c4878 | train | // SetInstanceInfo indicates an expected call of SetInstanceInfo | {
"resource": ""
} | ||
c4879 | train | // SetStatus mocks base method | {
"resource": ""
} | ||
c4880 | train | // SetStatus indicates an expected call of SetStatus | {
"resource": ""
} | ||
c4881 | train | // SetSupportedContainers mocks base method | {
"resource": ""
} | ||
c4882 | train | // SetSupportedContainers indicates an expected call of SetSupportedContainers | {
"resource": ""
} | ||
c4883 | train | // SupportedContainers mocks base method | {
"resource": ""
} | ||
c4884 | train | // WatchAllContainers mocks base method | {
"resource": ""
} | ||
c4885 | train | // WatchAllContainers indicates an expected call of WatchAllContainers | {
"resource": ""
} | ||
c4886 | train | // TokenResource returns a resource value suitable for auth tokens, based on
// an endpoint URI. | {
"resource": ""
} | ||
c4887 | train | // run the command and return the combined output. | {
"resource": ""
} | ||
c4888 | train | // GetBundle mocks base method | {
"resource": ""
} | ||
c4889 | train | // stringKeysFromMap takes a map with keys which are strings and returns
// only the keys. | {
"resource": ""
} | ||
c4890 | train | // indent prepends a format string with the given number of spaces. | {
"resource": ""
} | ||
c4891 | train | // Logs returns the accumulated log data. | {
"resource": ""
} | ||
c4892 | train | // Apply is part of the raft.FSM interface. | {
"resource": ""
} | ||
c4893 | train | // Snapshot is part of the raft.FSM interface. | {
"resource": ""
} | ||
c4894 | train | // Restore is part of the raft.FSM interface. | {
"resource": ""
} | ||
c4895 | train | // Persist is part of the raft.FSMSnapshot interface. | {
"resource": ""
} | ||
c4896 | train | // NewAPIAuthenticator gets the state and api info once from the
// provisioner API. | {
"resource": ""
} | ||
c4897 | train | // SetupAuthentication generates a random password for the given machine,
// recording it via the machine's SetPassword method, and updates the
// info arguments with the tag and password. | {
"resource": ""
} | ||
c4898 | train | // NewAPI returns a new firewallrules API facade. | {
"resource": ""
} | ||
c4899 | train | // SetFirewallRules creates or updates the specified firewall rules. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.