client

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultAwsRegion = "us-east-1"

Variables

This section is empty.

Functions

func LoadAWSConfig

func LoadAWSConfig(ctx context.Context, region string, profile string) (aws.Config, error)

Types

type EC2

type EC2 struct {
	// contains filtered or unexported fields
}

func NewEC2

func NewEC2(client *ec2.Client) *EC2

func (*EC2) DescribeRegions

func (c *EC2) DescribeRegions(ctx context.Context) ([]string, error)

type EC2Client

type EC2Client interface {
	DescribeRegions(ctx context.Context) ([]string, error)
}

type Lambda

type Lambda struct {
	// contains filtered or unexported fields
}

func NewLambda

func NewLambda(client *lambda.Client) *Lambda

func (*Lambda) ListFunctions

func (c *Lambda) ListFunctions(ctx context.Context) ([]types.FunctionConfiguration, error)

func (*Lambda) ListFunctionsWithRegion

func (c *Lambda) ListFunctionsWithRegion(ctx context.Context, region string) ([]types.FunctionConfiguration, error)

func (*Lambda) ListRuntimeValues

func (c *Lambda) ListRuntimeValues() []string

type LambdaClient

type LambdaClient interface {
	ListFunctions(ctx context.Context) ([]types.FunctionConfiguration, error)
	ListFunctionsWithRegion(ctx context.Context, region string) ([]types.FunctionConfiguration, error)
	ListRuntimeValues() []string
}

type MockEC2Client

type MockEC2Client struct {
	// contains filtered or unexported fields
}

MockEC2Client is a mock of EC2Client interface.

func NewMockEC2Client

func NewMockEC2Client(ctrl *gomock.Controller) *MockEC2Client

NewMockEC2Client creates a new mock instance.

func (*MockEC2Client) DescribeRegions

func (m *MockEC2Client) DescribeRegions(ctx context.Context) ([]string, error)

DescribeRegions mocks base method.

func (*MockEC2Client) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

type MockEC2ClientMockRecorder

type MockEC2ClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockEC2ClientMockRecorder is the mock recorder for MockEC2Client.

func (*MockEC2ClientMockRecorder) DescribeRegions

func (mr *MockEC2ClientMockRecorder) DescribeRegions(ctx interface{}) *gomock.Call

DescribeRegions indicates an expected call of DescribeRegions.

type MockLambdaClient

type MockLambdaClient struct {
	// contains filtered or unexported fields
}

MockLambdaClient is a mock of LambdaClient interface.

func NewMockLambdaClient

func NewMockLambdaClient(ctrl *gomock.Controller) *MockLambdaClient

NewMockLambdaClient creates a new mock instance.

func (*MockLambdaClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockLambdaClient) ListFunctions

func (m *MockLambdaClient) ListFunctions(ctx context.Context) ([]types.FunctionConfiguration, error)

ListFunctions mocks base method.

func (*MockLambdaClient) ListFunctionsWithRegion

func (m *MockLambdaClient) ListFunctionsWithRegion(ctx context.Context, region string) ([]types.FunctionConfiguration, error)

ListFunctionsWithRegion mocks base method.

func (*MockLambdaClient) ListRuntimeValues

func (m *MockLambdaClient) ListRuntimeValues() []string

ListRuntimeValues mocks base method.

type MockLambdaClientMockRecorder

type MockLambdaClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockLambdaClientMockRecorder is the mock recorder for MockLambdaClient.

func (*MockLambdaClientMockRecorder) ListFunctions

func (mr *MockLambdaClientMockRecorder) ListFunctions(ctx interface{}) *gomock.Call

ListFunctions indicates an expected call of ListFunctions.

func (*MockLambdaClientMockRecorder) ListFunctionsWithRegion

func (mr *MockLambdaClientMockRecorder) ListFunctionsWithRegion(ctx, region interface{}) *gomock.Call

ListFunctionsWithRegion indicates an expected call of ListFunctionsWithRegion.

func (*MockLambdaClientMockRecorder) ListRuntimeValues

func (mr *MockLambdaClientMockRecorder) ListRuntimeValues() *gomock.Call

ListRuntimeValues indicates an expected call of ListRuntimeValues.

Jump to

Keyboard shortcuts

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