Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsVariantNode ¶
IsVariantNode helps evaluate if a specific variant handles a given instance
func RegisterVariant ¶
RegisterVariant is used to register code that needs to be called for a specific variant
Types ¶
type Variant ¶
type Variant interface { Initialize(cloudConfig *config.CloudConfig, credentials *credentials.Credentials, provider config.SDKProvider, ec2API iface.EC2, region string) error IsSupportedNode(nodeName string) bool NodeAddresses(instanceID, vpcID string) ([]v1.NodeAddress, error) GetZone(instanceID, vpcID, region string) (cloudprovider.Zone, error) InstanceExists(instanceID, vpcID string) (bool, error) InstanceShutdown(instanceID, vpcID string) (bool, error) InstanceTypeByProviderID(id string) (string, error) }
Variant is a slightly different type of node
func GetVariant ¶
GetVariant returns the interface that can then be used to handle a specific instance
func GetVariants ¶
func GetVariants() []Variant
GetVariants returns the names of all the variants registered
Click to show internal directories.
Click to hide internal directories.