awsmock

package
v0.0.0-...-cbe1db9 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package awsmock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClient

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

MockClient is a mock of Client interface.

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance.

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

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

func (*MockClient) GetAWSCredentials

func (m *MockClient) GetAWSCredentials() aws.Credentials

GetAWSCredentials mocks base method.

func (*MockClient) GetRouteTableForSubnet

func (m *MockClient) GetRouteTableForSubnet(subnetID string) (types0.RouteTable, error)

GetRouteTableForSubnet mocks base method.

func (*MockClient) GetSecurityGroupID

func (m *MockClient) GetSecurityGroupID(infraID string) (string, error)

GetSecurityGroupID mocks base method.

func (*MockClient) GetSubnetID

func (m *MockClient) GetSubnetID(infraID string) ([]string, error)

GetSubnetID mocks base method.

func (*MockClient) IsSubnetPrivate

func (m *MockClient) IsSubnetPrivate(subnet string) (bool, error)

IsSubnetPrivate mocks base method.

func (*MockClient) ListNonRunningInstances

func (m *MockClient) ListNonRunningInstances(infraID string) ([]types0.Instance, error)

ListNonRunningInstances mocks base method.

func (*MockClient) ListRunningInstances

func (m *MockClient) ListRunningInstances(infraID string) ([]types0.Instance, error)

ListRunningInstances mocks base method.

func (*MockClient) PollInstanceStopEventsFor

func (m *MockClient) PollInstanceStopEventsFor(instances []types0.Instance, retryTimes int) ([]types.Event, error)

PollInstanceStopEventsFor mocks base method.

type MockClientMockRecorder

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

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) GetAWSCredentials

func (mr *MockClientMockRecorder) GetAWSCredentials() *gomock.Call

GetAWSCredentials indicates an expected call of GetAWSCredentials.

func (*MockClientMockRecorder) GetRouteTableForSubnet

func (mr *MockClientMockRecorder) GetRouteTableForSubnet(subnetID any) *gomock.Call

GetRouteTableForSubnet indicates an expected call of GetRouteTableForSubnet.

func (*MockClientMockRecorder) GetSecurityGroupID

func (mr *MockClientMockRecorder) GetSecurityGroupID(infraID any) *gomock.Call

GetSecurityGroupID indicates an expected call of GetSecurityGroupID.

func (*MockClientMockRecorder) GetSubnetID

func (mr *MockClientMockRecorder) GetSubnetID(infraID any) *gomock.Call

GetSubnetID indicates an expected call of GetSubnetID.

func (*MockClientMockRecorder) IsSubnetPrivate

func (mr *MockClientMockRecorder) IsSubnetPrivate(subnet any) *gomock.Call

IsSubnetPrivate indicates an expected call of IsSubnetPrivate.

func (*MockClientMockRecorder) ListNonRunningInstances

func (mr *MockClientMockRecorder) ListNonRunningInstances(infraID any) *gomock.Call

ListNonRunningInstances indicates an expected call of ListNonRunningInstances.

func (*MockClientMockRecorder) ListRunningInstances

func (mr *MockClientMockRecorder) ListRunningInstances(infraID any) *gomock.Call

ListRunningInstances indicates an expected call of ListRunningInstances.

func (*MockClientMockRecorder) PollInstanceStopEventsFor

func (mr *MockClientMockRecorder) PollInstanceStopEventsFor(instances, retryTimes any) *gomock.Call

PollInstanceStopEventsFor indicates an expected call of PollInstanceStopEventsFor.

type MockCloudTrailAPI

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

MockCloudTrailAPI is a mock of CloudTrailAPI interface.

func NewMockCloudTrailAPI

func NewMockCloudTrailAPI(ctrl *gomock.Controller) *MockCloudTrailAPI

NewMockCloudTrailAPI creates a new mock instance.

func (*MockCloudTrailAPI) EXPECT

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

func (*MockCloudTrailAPI) LookupEvents

LookupEvents mocks base method.

type MockCloudTrailAPIMockRecorder

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

MockCloudTrailAPIMockRecorder is the mock recorder for MockCloudTrailAPI.

func (*MockCloudTrailAPIMockRecorder) LookupEvents

func (mr *MockCloudTrailAPIMockRecorder) LookupEvents(ctx, in any, optFns ...any) *gomock.Call

LookupEvents indicates an expected call of LookupEvents.

type MockEC2API

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

MockEC2API is a mock of EC2API interface.

func NewMockEC2API

func NewMockEC2API(ctrl *gomock.Controller) *MockEC2API

NewMockEC2API creates a new mock instance.

func (*MockEC2API) DescribeInstances

func (m *MockEC2API) DescribeInstances(ctx context.Context, in *ec2.DescribeInstancesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeInstancesOutput, error)

DescribeInstances mocks base method.

func (*MockEC2API) DescribeRouteTables

func (m *MockEC2API) DescribeRouteTables(ctx context.Context, in *ec2.DescribeRouteTablesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeRouteTablesOutput, error)

DescribeRouteTables mocks base method.

func (*MockEC2API) DescribeSecurityGroups

func (m *MockEC2API) DescribeSecurityGroups(ctx context.Context, in *ec2.DescribeSecurityGroupsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeSecurityGroupsOutput, error)

DescribeSecurityGroups mocks base method.

func (*MockEC2API) DescribeSubnets

func (m *MockEC2API) DescribeSubnets(ctx context.Context, in *ec2.DescribeSubnetsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeSubnetsOutput, error)

DescribeSubnets mocks base method.

func (*MockEC2API) EXPECT

func (m *MockEC2API) EXPECT() *MockEC2APIMockRecorder

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

type MockEC2APIMockRecorder

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

MockEC2APIMockRecorder is the mock recorder for MockEC2API.

func (*MockEC2APIMockRecorder) DescribeInstances

func (mr *MockEC2APIMockRecorder) DescribeInstances(ctx, in any, optFns ...any) *gomock.Call

DescribeInstances indicates an expected call of DescribeInstances.

func (*MockEC2APIMockRecorder) DescribeRouteTables

func (mr *MockEC2APIMockRecorder) DescribeRouteTables(ctx, in any, optFns ...any) *gomock.Call

DescribeRouteTables indicates an expected call of DescribeRouteTables.

func (*MockEC2APIMockRecorder) DescribeSecurityGroups

func (mr *MockEC2APIMockRecorder) DescribeSecurityGroups(ctx, in any, optFns ...any) *gomock.Call

DescribeSecurityGroups indicates an expected call of DescribeSecurityGroups.

func (*MockEC2APIMockRecorder) DescribeSubnets

func (mr *MockEC2APIMockRecorder) DescribeSubnets(ctx, in any, optFns ...any) *gomock.Call

DescribeSubnets indicates an expected call of DescribeSubnets.

type MockStsAPI

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

MockStsAPI is a mock of StsAPI interface.

func NewMockStsAPI

func NewMockStsAPI(ctrl *gomock.Controller) *MockStsAPI

NewMockStsAPI creates a new mock instance.

func (*MockStsAPI) AssumeRole

func (m *MockStsAPI) AssumeRole(ctx context.Context, in *sts.AssumeRoleInput, optFns ...func(*sts.Options)) (*sts.AssumeRoleOutput, error)

AssumeRole mocks base method.

func (*MockStsAPI) EXPECT

func (m *MockStsAPI) EXPECT() *MockStsAPIMockRecorder

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

type MockStsAPIMockRecorder

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

MockStsAPIMockRecorder is the mock recorder for MockStsAPI.

func (*MockStsAPIMockRecorder) AssumeRole

func (mr *MockStsAPIMockRecorder) AssumeRole(ctx, in any, optFns ...any) *gomock.Call

AssumeRole indicates an expected call of AssumeRole.

Jump to

Keyboard shortcuts

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