platform_aws_ec2

package
v0.0.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultSmallInstanceType = "t4g.nano"
	DefaultSmallInstanceArch = "arm64"

	DefaultMediumInstanceType = "t4g.micro"
	DefaultMediumInstanceArch = "arm64"

	DefaultLargeInstanceType = "t4g.medium"
	DefaultLargeInstanceArch = "arm64"
)

Variables

This section is empty.

Functions

func New

func New(accessKey, secretKey string) gateway.Platform

Types

type PlatformAwsEc2Gateway

type PlatformAwsEc2Gateway struct {
	*platform_aws.BasePlatformAws
}

func (*PlatformAwsEc2Gateway) DeleteNode

func (g *PlatformAwsEc2Gateway) DeleteNode(ctx context.Context, n *node.Node) error

func (*PlatformAwsEc2Gateway) GetStatus

func (g *PlatformAwsEc2Gateway) GetStatus(ctx context.Context, n *node.Node) (node.Status, error)

func (*PlatformAwsEc2Gateway) StartNode

func (g *PlatformAwsEc2Gateway) StartNode(ctx context.Context, n *node.Node) error

func (*PlatformAwsEc2Gateway) StopNode

func (g *PlatformAwsEc2Gateway) StopNode(ctx context.Context, n *node.Node) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL