aws

package
v0.0.0-...-919c007 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateEC2Runner

func CreateEC2Runner(ctx context.Context, owner string, repo string, token string, label string, dryRun bool) error

Types

type AwsEc2ClientInterface

type AwsEc2ClientInterface interface {
	DescribeInstances(ctx context.Context, params *ec2.DescribeInstancesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeInstancesOutput, error)
	RunInstances(ctx context.Context, params *ec2.RunInstancesInput, optFns ...func(*ec2.Options)) (*ec2.RunInstancesOutput, error)
}

type Ec2Client

type Ec2Client struct {
	Client AwsEc2ClientInterface
}

func NewEc2Client

func NewEc2Client() *Ec2Client

func (*Ec2Client) GetInstances

func (c *Ec2Client) GetInstances(filter []types.Filter) ([]*InstanceDetails, error)

type InstanceDetails

type InstanceDetails struct {
	LaunchTime        *time.Time
	InstanceId        *string
	ActionRunnerLabel *string
}

Directories

Path Synopsis
Package mock_aws is a generated GoMock package.
Package mock_aws is a generated GoMock package.

Jump to

Keyboard shortcuts

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