Documentation ¶
Index ¶
Constants ¶
View Source
const InstanceTag = "multi-platform-instance"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudProvider ¶
type CloudProvider interface { LaunchInstance(kubeClient client.Client, ctx context.Context, name string, instanceTag string, additionalInstanceTags map[string]string) (InstanceIdentifier, error) TerminateInstance(kubeClient client.Client, ctx context.Context, instance InstanceIdentifier) error // GetInstanceAddress this only returns an error if it is a permanant error and the host will not ever be available GetInstanceAddress(kubeClient client.Client, ctx context.Context, instanceId InstanceIdentifier) (string, error) CountInstances(kubeClient client.Client, ctx context.Context, instanceTag string) (int, error) ListInstances(kubeClient client.Client, ctx context.Context, instanceTag string) ([]CloudVMInstance, error) SshUser() string }
type CloudVMInstance ¶
type CloudVMInstance struct { InstanceId InstanceIdentifier StartTime time.Time Address string }
type InstanceIdentifier ¶
type InstanceIdentifier string
Click to show internal directories.
Click to hide internal directories.