Merge pull request #29490 from justinsb/fix_cloudprovider_contract_comments
Automatic merge from submit-queue Correctly document cloudprovider Instances contract
This commit is contained in:
@@ -106,12 +106,11 @@ type Instances interface {
|
|||||||
// make this clearer.
|
// make this clearer.
|
||||||
NodeAddresses(name string) ([]api.NodeAddress, error)
|
NodeAddresses(name string) ([]api.NodeAddress, error)
|
||||||
// ExternalID returns the cloud provider ID of the specified instance (deprecated).
|
// ExternalID returns the cloud provider ID of the specified instance (deprecated).
|
||||||
|
// Note that if the instance does not exist or is no longer running, we must return ("", cloudprovider.InstanceNotFound)
|
||||||
ExternalID(name string) (string, error)
|
ExternalID(name string) (string, error)
|
||||||
// InstanceID returns the cloud provider ID of the specified instance.
|
// InstanceID returns the cloud provider ID of the specified instance.
|
||||||
// Note that if the instance does not exist or is no longer running, we must return ("", cloudprovider.InstanceNotFound)
|
|
||||||
InstanceID(name string) (string, error)
|
InstanceID(name string) (string, error)
|
||||||
// InstanceType returns the type of the specified instance.
|
// InstanceType returns the type of the specified instance.
|
||||||
// Note that if the instance does not exist or is no longer running, we must return ("", cloudprovider.InstanceNotFound)
|
|
||||||
InstanceType(name string) (string, error)
|
InstanceType(name string) (string, error)
|
||||||
// List lists instances that match 'filter' which is a regular expression which must match the entire instance name (fqdn)
|
// List lists instances that match 'filter' which is a regular expression which must match the entire instance name (fqdn)
|
||||||
List(filter string) ([]string, error)
|
List(filter string) ([]string, error)
|
||||||
|
Reference in New Issue
Block a user