Documentation ¶
Index ¶
- func GetEc2() (*ec2.EC2, error)
- func GetInstanceInfo(e *ec2.EC2, instanceId string) (*ec2.Instance, error)
- func GetInstances(tags map[string]string, filters []*ec2.Filter) ([]*ec2.Instance, error)
- func GetRunningInstances(tags map[string]string) ([]*ec2.Instance, error)
- func LaunchServer(ctx context.Context, config *awslocal.AwsConfig, instanceType string, ...) (*ec2.Instance, error)
- func RunCommandOnServer(ctx context.Context, config *awslocal.AwsConfig, cmd string, ...) error
- func RunCommandOnServerWithOutput(ctx context.Context, config *awslocal.AwsConfig, cmd string, ...) (string, error)
- func RunCommandsOnServer(ctx context.Context, config *awslocal.AwsConfig, cmds []string, ...) error
- func RunCommandsOnServer2(ctx context.Context, config *awslocal.AwsConfig, cmds []string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetInstances ¶
func GetRunningInstances ¶
func LaunchServer ¶
func LaunchServer(ctx context.Context, config *awslocal.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 ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.