Documentation ¶
Index ¶
- func GetEc2() (*ec2.EC2, error)
- func GetInstanceInfo(e *ec2.EC2, instanceId string) (*ec2.Instance, error)
- func GetInstances(tags map[string]string, filter *ec2.Filter) ([]*ec2.Instance, error)
- func GetRunningInstances(tags map[string]string) ([]*ec2.Instance, error)
- func KillServer(ctx context.Context, instanceId string) error
- func LaunchServer(ctx context.Context, config *AwsConfig, instanceType string, ...) (*ec2.Instance, error)
- func RunCommandOnServer(ctx context.Context, config *AwsConfig, cmd string, instance *ec2.Instance) error
- func RunCommandOnServerWithOutput(ctx context.Context, config *AwsConfig, cmd string, instance *ec2.Instance) (string, error)
- func RunCommandsOnServer(ctx context.Context, config *AwsConfig, cmds []string, instance *ec2.Instance) error
- func RunCommandsOnServer2(ctx context.Context, config *AwsConfig, cmds []string, instance *ec2.Instance, ...) error
- type AwsConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetInstances ¶
func GetRunningInstances ¶
func LaunchServer ¶
func LaunchServer(ctx context.Context, config *AwsConfig, instanceType string, tags map[string]string) (*ec2.Instance, error)
LaunchServer TODO: don't take cluster id, should be more generic, maybe just pass in tags?
func RunCommandOnServer ¶
func RunCommandsOnServer ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.