Documentation ¶
Overview ¶
Package awsmock is a generated GoMock package.
Index ¶
- type MockClient
- func (m *MockClient) AssumeRole(roleARN, region string) (*aws.SdkClient, error)
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) GetAWSCredentials() credentials.Value
- func (m *MockClient) GetRouteTableForSubnet(subnetID string) (*ec2.RouteTable, error)
- func (m *MockClient) GetSecurityGroupID(infraID string) (string, error)
- func (m *MockClient) GetSubnetID(infraID string) ([]string, error)
- func (m *MockClient) IsSubnetPrivate(subnet string) (bool, error)
- func (m *MockClient) ListNonRunningInstances(infraID string) ([]*ec2.Instance, error)
- func (m *MockClient) ListRunningInstances(infraID string) ([]*ec2.Instance, error)
- func (m *MockClient) PollInstanceStopEventsFor(instances []*ec2.Instance, retryTimes int) ([]*cloudtrail.Event, error)
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) AssumeRole(roleARN, region interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetAWSCredentials() *gomock.Call
- func (mr *MockClientMockRecorder) GetRouteTableForSubnet(subnetID interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetSecurityGroupID(infraID interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetSubnetID(infraID interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) IsSubnetPrivate(subnet interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ListNonRunningInstances(infraID interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ListRunningInstances(infraID interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) PollInstanceStopEventsFor(instances, retryTimes interface{}) *gomock.Call
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) AssumeRole ¶
func (m *MockClient) AssumeRole(roleARN, region string) (*aws.SdkClient, error)
AssumeRole mocks base method.
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() credentials.Value
GetAWSCredentials mocks base method.
func (*MockClient) GetRouteTableForSubnet ¶
func (m *MockClient) GetRouteTableForSubnet(subnetID string) (*ec2.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) ([]*ec2.Instance, error)
ListNonRunningInstances mocks base method.
func (*MockClient) ListRunningInstances ¶
func (m *MockClient) ListRunningInstances(infraID string) ([]*ec2.Instance, error)
ListRunningInstances mocks base method.
func (*MockClient) PollInstanceStopEventsFor ¶
func (m *MockClient) PollInstanceStopEventsFor(instances []*ec2.Instance, retryTimes int) ([]*cloudtrail.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) AssumeRole ¶
func (mr *MockClientMockRecorder) AssumeRole(roleARN, region interface{}) *gomock.Call
AssumeRole indicates an expected call of AssumeRole.
func (*MockClientMockRecorder) GetAWSCredentials ¶
func (mr *MockClientMockRecorder) GetAWSCredentials() *gomock.Call
GetAWSCredentials indicates an expected call of GetAWSCredentials.
func (*MockClientMockRecorder) GetRouteTableForSubnet ¶
func (mr *MockClientMockRecorder) GetRouteTableForSubnet(subnetID interface{}) *gomock.Call
GetRouteTableForSubnet indicates an expected call of GetRouteTableForSubnet.
func (*MockClientMockRecorder) GetSecurityGroupID ¶
func (mr *MockClientMockRecorder) GetSecurityGroupID(infraID interface{}) *gomock.Call
GetSecurityGroupID indicates an expected call of GetSecurityGroupID.
func (*MockClientMockRecorder) GetSubnetID ¶
func (mr *MockClientMockRecorder) GetSubnetID(infraID interface{}) *gomock.Call
GetSubnetID indicates an expected call of GetSubnetID.
func (*MockClientMockRecorder) IsSubnetPrivate ¶
func (mr *MockClientMockRecorder) IsSubnetPrivate(subnet interface{}) *gomock.Call
IsSubnetPrivate indicates an expected call of IsSubnetPrivate.
func (*MockClientMockRecorder) ListNonRunningInstances ¶
func (mr *MockClientMockRecorder) ListNonRunningInstances(infraID interface{}) *gomock.Call
ListNonRunningInstances indicates an expected call of ListNonRunningInstances.
func (*MockClientMockRecorder) ListRunningInstances ¶
func (mr *MockClientMockRecorder) ListRunningInstances(infraID interface{}) *gomock.Call
ListRunningInstances indicates an expected call of ListRunningInstances.
func (*MockClientMockRecorder) PollInstanceStopEventsFor ¶
func (mr *MockClientMockRecorder) PollInstanceStopEventsFor(instances, retryTimes interface{}) *gomock.Call
PollInstanceStopEventsFor indicates an expected call of PollInstanceStopEventsFor.