Documentation ¶
Index ¶
- Constants
- func New(accessKey, secretKey string) gateway.Platform
- type PlatformAwsEc2Gateway
- func (g *PlatformAwsEc2Gateway) CreateNode(ctx context.Context, id node.Identifier, tid tailnet.DeviceName, ...) (node.PlatformIdentifier, error)
- func (g *PlatformAwsEc2Gateway) DeleteNode(ctx context.Context, n *node.Node) error
- func (g *PlatformAwsEc2Gateway) GetStatus(ctx context.Context, n *node.Node) (node.Status, error)
- func (g *PlatformAwsEc2Gateway) StartNode(ctx context.Context, n *node.Node) error
- func (g *PlatformAwsEc2Gateway) StopNode(ctx context.Context, n *node.Node) error
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 ¶
Types ¶
type PlatformAwsEc2Gateway ¶
type PlatformAwsEc2Gateway struct {
*platform_aws.BasePlatformAws
}
func (*PlatformAwsEc2Gateway) CreateNode ¶
func (g *PlatformAwsEc2Gateway) CreateNode(ctx context.Context, id node.Identifier, tid tailnet.DeviceName, loc provider.Location, tcs tailnet.ControlServer, key tailnet.PreauthKey, size node.Size) (node.PlatformIdentifier, error)
func (*PlatformAwsEc2Gateway) DeleteNode ¶
Click to show internal directories.
Click to hide internal directories.