Documentation ¶
Index ¶
- Constants
- func LoadAWSConfig(ctx context.Context, region string, profile string) (aws.Config, error)
- type EC2
- type EC2Client
- type Lambda
- type LambdaClient
- type MockEC2Client
- type MockEC2ClientMockRecorder
- type MockLambdaClient
- func (m *MockLambdaClient) EXPECT() *MockLambdaClientMockRecorder
- func (m *MockLambdaClient) ListFunctions(ctx context.Context) ([]types.FunctionConfiguration, error)
- func (m *MockLambdaClient) ListFunctionsWithRegion(ctx context.Context, region string) ([]types.FunctionConfiguration, error)
- func (m *MockLambdaClient) ListRuntimeValues() []string
- type MockLambdaClientMockRecorder
Constants ¶
const DefaultAwsRegion = "us-east-1"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Lambda ¶
type Lambda struct {
// contains filtered or unexported fields
}
func (*Lambda) ListFunctions ¶
func (*Lambda) ListFunctionsWithRegion ¶
func (*Lambda) ListRuntimeValues ¶
type LambdaClient ¶
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 ¶
func (m *MockEC2Client) EXPECT() *MockEC2ClientMockRecorder
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 ¶
func (m *MockLambdaClient) EXPECT() *MockLambdaClientMockRecorder
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.