Documentation ¶
Overview ¶
Package mock_ec2 is a generated GoMock package.
Index ¶
- type MockClient
- type MockClientMockRecorder
- type MockClientSDK
- func (m *MockClientSDK) CreateTags(arg0 context.Context, arg1 *ec20.CreateTagsInput, arg2 ...func(*ec20.Options)) (*ec20.CreateTagsOutput, error)
- func (m *MockClientSDK) DescribeTags(arg0 context.Context, arg1 *ec20.DescribeTagsInput, ...) (*ec20.DescribeTagsOutput, error)
- func (m *MockClientSDK) EXPECT() *MockClientSDKMockRecorder
- type MockClientSDKMockRecorder
- type MockEC2MetadataClient
- func (m *MockEC2MetadataClient) AllENIMacs() (string, error)
- func (m *MockEC2MetadataClient) AvailabilityZoneID() (string, error)
- func (m *MockEC2MetadataClient) DefaultCredentials() (*ec2.RoleCredentials, error)
- func (m *MockEC2MetadataClient) EXPECT() *MockEC2MetadataClientMockRecorder
- func (m *MockEC2MetadataClient) GetDynamicData(arg0 string) (string, error)
- func (m *MockEC2MetadataClient) GetMetadata(arg0 string) (string, error)
- func (m *MockEC2MetadataClient) GetUserData() (string, error)
- func (m *MockEC2MetadataClient) InstanceID() (string, error)
- func (m *MockEC2MetadataClient) InstanceIdentityDocument() (imds.InstanceIdentityDocument, error)
- func (m *MockEC2MetadataClient) OutpostARN() (string, error)
- func (m *MockEC2MetadataClient) PrimaryENIMAC() (string, error)
- func (m *MockEC2MetadataClient) PrivateIPv4Address() (string, error)
- func (m *MockEC2MetadataClient) PublicIPv4Address() (string, error)
- func (m *MockEC2MetadataClient) Region() (string, error)
- func (m *MockEC2MetadataClient) SpotInstanceAction() (string, error)
- func (m *MockEC2MetadataClient) SubnetID(arg0 string) (string, error)
- func (m *MockEC2MetadataClient) TargetLifecycleState() (string, error)
- func (m *MockEC2MetadataClient) VPCID(arg0 string) (string, error)
- type MockEC2MetadataClientMockRecorder
- func (mr *MockEC2MetadataClientMockRecorder) AllENIMacs() *gomock.Call
- func (mr *MockEC2MetadataClientMockRecorder) AvailabilityZoneID() *gomock.Call
- func (mr *MockEC2MetadataClientMockRecorder) DefaultCredentials() *gomock.Call
- func (mr *MockEC2MetadataClientMockRecorder) GetDynamicData(arg0 interface{}) *gomock.Call
- func (mr *MockEC2MetadataClientMockRecorder) GetMetadata(arg0 interface{}) *gomock.Call
- func (mr *MockEC2MetadataClientMockRecorder) GetUserData() *gomock.Call
- func (mr *MockEC2MetadataClientMockRecorder) InstanceID() *gomock.Call
- func (mr *MockEC2MetadataClientMockRecorder) InstanceIdentityDocument() *gomock.Call
- func (mr *MockEC2MetadataClientMockRecorder) OutpostARN() *gomock.Call
- func (mr *MockEC2MetadataClientMockRecorder) PrimaryENIMAC() *gomock.Call
- func (mr *MockEC2MetadataClientMockRecorder) PrivateIPv4Address() *gomock.Call
- func (mr *MockEC2MetadataClientMockRecorder) PublicIPv4Address() *gomock.Call
- func (mr *MockEC2MetadataClientMockRecorder) Region() *gomock.Call
- func (mr *MockEC2MetadataClientMockRecorder) SpotInstanceAction() *gomock.Call
- func (mr *MockEC2MetadataClientMockRecorder) SubnetID(arg0 interface{}) *gomock.Call
- func (mr *MockEC2MetadataClientMockRecorder) TargetLifecycleState() *gomock.Call
- func (mr *MockEC2MetadataClientMockRecorder) VPCID(arg0 interface{}) *gomock.Call
- type MockHttpClient
- func (m *MockHttpClient) EXPECT() *MockHttpClientMockRecorder
- func (m *MockHttpClient) GetDynamicData(arg0 context.Context, arg1 *imds.GetDynamicDataInput, ...) (*imds.GetDynamicDataOutput, error)
- func (m *MockHttpClient) GetInstanceIdentityDocument(arg0 context.Context, arg1 *imds.GetInstanceIdentityDocumentInput, ...) (*imds.GetInstanceIdentityDocumentOutput, error)
- func (m *MockHttpClient) GetMetadata(arg0 context.Context, arg1 *imds.GetMetadataInput, arg2 ...func(*imds.Options)) (*imds.GetMetadataOutput, error)
- func (m *MockHttpClient) GetRegion(arg0 context.Context, arg1 *imds.GetRegionInput, arg2 ...func(*imds.Options)) (*imds.GetRegionOutput, error)
- func (m *MockHttpClient) GetUserData(arg0 context.Context, arg1 *imds.GetUserDataInput, arg2 ...func(*imds.Options)) (*imds.GetUserDataOutput, error)
- type MockHttpClientMockRecorder
- func (mr *MockHttpClientMockRecorder) GetDynamicData(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockHttpClientMockRecorder) GetInstanceIdentityDocument(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockHttpClientMockRecorder) GetMetadata(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockHttpClientMockRecorder) GetRegion(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockHttpClientMockRecorder) GetUserData(arg0, arg1 interface{}, arg2 ...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) CreateTags ¶
func (m *MockClient) CreateTags(arg0 *ec20.CreateTagsInput) (*ec20.CreateTagsOutput, error)
CreateTags mocks base method.
func (*MockClient) DescribeECSTagsForInstance ¶
func (m *MockClient) DescribeECSTagsForInstance(arg0 string) ([]*ecs.Tag, error)
DescribeECSTagsForInstance mocks base method.
func (*MockClient) EXPECT ¶
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient.
func (*MockClientMockRecorder) CreateTags ¶
func (mr *MockClientMockRecorder) CreateTags(arg0 interface{}) *gomock.Call
CreateTags indicates an expected call of CreateTags.
func (*MockClientMockRecorder) DescribeECSTagsForInstance ¶
func (mr *MockClientMockRecorder) DescribeECSTagsForInstance(arg0 interface{}) *gomock.Call
DescribeECSTagsForInstance indicates an expected call of DescribeECSTagsForInstance.
type MockClientSDK ¶
type MockClientSDK struct {
// contains filtered or unexported fields
}
MockClientSDK is a mock of ClientSDK interface.
func NewMockClientSDK ¶
func NewMockClientSDK(ctrl *gomock.Controller) *MockClientSDK
NewMockClientSDK creates a new mock instance.
func (*MockClientSDK) CreateTags ¶
func (m *MockClientSDK) CreateTags(arg0 context.Context, arg1 *ec20.CreateTagsInput, arg2 ...func(*ec20.Options)) (*ec20.CreateTagsOutput, error)
CreateTags mocks base method.
func (*MockClientSDK) DescribeTags ¶
func (m *MockClientSDK) DescribeTags(arg0 context.Context, arg1 *ec20.DescribeTagsInput, arg2 ...func(*ec20.Options)) (*ec20.DescribeTagsOutput, error)
DescribeTags mocks base method.
func (*MockClientSDK) EXPECT ¶
func (m *MockClientSDK) EXPECT() *MockClientSDKMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockClientSDKMockRecorder ¶
type MockClientSDKMockRecorder struct {
// contains filtered or unexported fields
}
MockClientSDKMockRecorder is the mock recorder for MockClientSDK.
func (*MockClientSDKMockRecorder) CreateTags ¶
func (mr *MockClientSDKMockRecorder) CreateTags(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
CreateTags indicates an expected call of CreateTags.
func (*MockClientSDKMockRecorder) DescribeTags ¶
func (mr *MockClientSDKMockRecorder) DescribeTags(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
DescribeTags indicates an expected call of DescribeTags.
type MockEC2MetadataClient ¶
type MockEC2MetadataClient struct {
// contains filtered or unexported fields
}
MockEC2MetadataClient is a mock of EC2MetadataClient interface.
func NewMockEC2MetadataClient ¶
func NewMockEC2MetadataClient(ctrl *gomock.Controller) *MockEC2MetadataClient
NewMockEC2MetadataClient creates a new mock instance.
func (*MockEC2MetadataClient) AllENIMacs ¶
func (m *MockEC2MetadataClient) AllENIMacs() (string, error)
AllENIMacs mocks base method.
func (*MockEC2MetadataClient) AvailabilityZoneID ¶
func (m *MockEC2MetadataClient) AvailabilityZoneID() (string, error)
AvailabilityZoneID mocks base method.
func (*MockEC2MetadataClient) DefaultCredentials ¶
func (m *MockEC2MetadataClient) DefaultCredentials() (*ec2.RoleCredentials, error)
DefaultCredentials mocks base method.
func (*MockEC2MetadataClient) EXPECT ¶
func (m *MockEC2MetadataClient) EXPECT() *MockEC2MetadataClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockEC2MetadataClient) GetDynamicData ¶
func (m *MockEC2MetadataClient) GetDynamicData(arg0 string) (string, error)
GetDynamicData mocks base method.
func (*MockEC2MetadataClient) GetMetadata ¶
func (m *MockEC2MetadataClient) GetMetadata(arg0 string) (string, error)
GetMetadata mocks base method.
func (*MockEC2MetadataClient) GetUserData ¶
func (m *MockEC2MetadataClient) GetUserData() (string, error)
GetUserData mocks base method.
func (*MockEC2MetadataClient) InstanceID ¶
func (m *MockEC2MetadataClient) InstanceID() (string, error)
InstanceID mocks base method.
func (*MockEC2MetadataClient) InstanceIdentityDocument ¶
func (m *MockEC2MetadataClient) InstanceIdentityDocument() (imds.InstanceIdentityDocument, error)
InstanceIdentityDocument mocks base method.
func (*MockEC2MetadataClient) OutpostARN ¶
func (m *MockEC2MetadataClient) OutpostARN() (string, error)
OutpostARN mocks base method.
func (*MockEC2MetadataClient) PrimaryENIMAC ¶
func (m *MockEC2MetadataClient) PrimaryENIMAC() (string, error)
PrimaryENIMAC mocks base method.
func (*MockEC2MetadataClient) PrivateIPv4Address ¶
func (m *MockEC2MetadataClient) PrivateIPv4Address() (string, error)
PrivateIPv4Address mocks base method.
func (*MockEC2MetadataClient) PublicIPv4Address ¶
func (m *MockEC2MetadataClient) PublicIPv4Address() (string, error)
PublicIPv4Address mocks base method.
func (*MockEC2MetadataClient) Region ¶
func (m *MockEC2MetadataClient) Region() (string, error)
Region mocks base method.
func (*MockEC2MetadataClient) SpotInstanceAction ¶
func (m *MockEC2MetadataClient) SpotInstanceAction() (string, error)
SpotInstanceAction mocks base method.
func (*MockEC2MetadataClient) SubnetID ¶
func (m *MockEC2MetadataClient) SubnetID(arg0 string) (string, error)
SubnetID mocks base method.
func (*MockEC2MetadataClient) TargetLifecycleState ¶
func (m *MockEC2MetadataClient) TargetLifecycleState() (string, error)
TargetLifecycleState mocks base method.
type MockEC2MetadataClientMockRecorder ¶
type MockEC2MetadataClientMockRecorder struct {
// contains filtered or unexported fields
}
MockEC2MetadataClientMockRecorder is the mock recorder for MockEC2MetadataClient.
func (*MockEC2MetadataClientMockRecorder) AllENIMacs ¶
func (mr *MockEC2MetadataClientMockRecorder) AllENIMacs() *gomock.Call
AllENIMacs indicates an expected call of AllENIMacs.
func (*MockEC2MetadataClientMockRecorder) AvailabilityZoneID ¶
func (mr *MockEC2MetadataClientMockRecorder) AvailabilityZoneID() *gomock.Call
AvailabilityZoneID indicates an expected call of AvailabilityZoneID.
func (*MockEC2MetadataClientMockRecorder) DefaultCredentials ¶
func (mr *MockEC2MetadataClientMockRecorder) DefaultCredentials() *gomock.Call
DefaultCredentials indicates an expected call of DefaultCredentials.
func (*MockEC2MetadataClientMockRecorder) GetDynamicData ¶
func (mr *MockEC2MetadataClientMockRecorder) GetDynamicData(arg0 interface{}) *gomock.Call
GetDynamicData indicates an expected call of GetDynamicData.
func (*MockEC2MetadataClientMockRecorder) GetMetadata ¶
func (mr *MockEC2MetadataClientMockRecorder) GetMetadata(arg0 interface{}) *gomock.Call
GetMetadata indicates an expected call of GetMetadata.
func (*MockEC2MetadataClientMockRecorder) GetUserData ¶
func (mr *MockEC2MetadataClientMockRecorder) GetUserData() *gomock.Call
GetUserData indicates an expected call of GetUserData.
func (*MockEC2MetadataClientMockRecorder) InstanceID ¶
func (mr *MockEC2MetadataClientMockRecorder) InstanceID() *gomock.Call
InstanceID indicates an expected call of InstanceID.
func (*MockEC2MetadataClientMockRecorder) InstanceIdentityDocument ¶
func (mr *MockEC2MetadataClientMockRecorder) InstanceIdentityDocument() *gomock.Call
InstanceIdentityDocument indicates an expected call of InstanceIdentityDocument.
func (*MockEC2MetadataClientMockRecorder) OutpostARN ¶
func (mr *MockEC2MetadataClientMockRecorder) OutpostARN() *gomock.Call
OutpostARN indicates an expected call of OutpostARN.
func (*MockEC2MetadataClientMockRecorder) PrimaryENIMAC ¶
func (mr *MockEC2MetadataClientMockRecorder) PrimaryENIMAC() *gomock.Call
PrimaryENIMAC indicates an expected call of PrimaryENIMAC.
func (*MockEC2MetadataClientMockRecorder) PrivateIPv4Address ¶
func (mr *MockEC2MetadataClientMockRecorder) PrivateIPv4Address() *gomock.Call
PrivateIPv4Address indicates an expected call of PrivateIPv4Address.
func (*MockEC2MetadataClientMockRecorder) PublicIPv4Address ¶
func (mr *MockEC2MetadataClientMockRecorder) PublicIPv4Address() *gomock.Call
PublicIPv4Address indicates an expected call of PublicIPv4Address.
func (*MockEC2MetadataClientMockRecorder) Region ¶
func (mr *MockEC2MetadataClientMockRecorder) Region() *gomock.Call
Region indicates an expected call of Region.
func (*MockEC2MetadataClientMockRecorder) SpotInstanceAction ¶
func (mr *MockEC2MetadataClientMockRecorder) SpotInstanceAction() *gomock.Call
SpotInstanceAction indicates an expected call of SpotInstanceAction.
func (*MockEC2MetadataClientMockRecorder) SubnetID ¶
func (mr *MockEC2MetadataClientMockRecorder) SubnetID(arg0 interface{}) *gomock.Call
SubnetID indicates an expected call of SubnetID.
func (*MockEC2MetadataClientMockRecorder) TargetLifecycleState ¶
func (mr *MockEC2MetadataClientMockRecorder) TargetLifecycleState() *gomock.Call
TargetLifecycleState indicates an expected call of TargetLifecycleState.
func (*MockEC2MetadataClientMockRecorder) VPCID ¶
func (mr *MockEC2MetadataClientMockRecorder) VPCID(arg0 interface{}) *gomock.Call
VPCID indicates an expected call of VPCID.
type MockHttpClient ¶
type MockHttpClient struct {
// contains filtered or unexported fields
}
MockHttpClient is a mock of HttpClient interface.
func NewMockHttpClient ¶
func NewMockHttpClient(ctrl *gomock.Controller) *MockHttpClient
NewMockHttpClient creates a new mock instance.
func (*MockHttpClient) EXPECT ¶
func (m *MockHttpClient) EXPECT() *MockHttpClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockHttpClient) GetDynamicData ¶
func (m *MockHttpClient) GetDynamicData(arg0 context.Context, arg1 *imds.GetDynamicDataInput, arg2 ...func(*imds.Options)) (*imds.GetDynamicDataOutput, error)
GetDynamicData mocks base method.
func (*MockHttpClient) GetInstanceIdentityDocument ¶
func (m *MockHttpClient) GetInstanceIdentityDocument(arg0 context.Context, arg1 *imds.GetInstanceIdentityDocumentInput, arg2 ...func(*imds.Options)) (*imds.GetInstanceIdentityDocumentOutput, error)
GetInstanceIdentityDocument mocks base method.
func (*MockHttpClient) GetMetadata ¶
func (m *MockHttpClient) GetMetadata(arg0 context.Context, arg1 *imds.GetMetadataInput, arg2 ...func(*imds.Options)) (*imds.GetMetadataOutput, error)
GetMetadata mocks base method.
func (*MockHttpClient) GetRegion ¶
func (m *MockHttpClient) GetRegion(arg0 context.Context, arg1 *imds.GetRegionInput, arg2 ...func(*imds.Options)) (*imds.GetRegionOutput, error)
GetRegion mocks base method.
func (*MockHttpClient) GetUserData ¶
func (m *MockHttpClient) GetUserData(arg0 context.Context, arg1 *imds.GetUserDataInput, arg2 ...func(*imds.Options)) (*imds.GetUserDataOutput, error)
GetUserData mocks base method.
type MockHttpClientMockRecorder ¶
type MockHttpClientMockRecorder struct {
// contains filtered or unexported fields
}
MockHttpClientMockRecorder is the mock recorder for MockHttpClient.
func (*MockHttpClientMockRecorder) GetDynamicData ¶
func (mr *MockHttpClientMockRecorder) GetDynamicData(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
GetDynamicData indicates an expected call of GetDynamicData.
func (*MockHttpClientMockRecorder) GetInstanceIdentityDocument ¶
func (mr *MockHttpClientMockRecorder) GetInstanceIdentityDocument(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
GetInstanceIdentityDocument indicates an expected call of GetInstanceIdentityDocument.
func (*MockHttpClientMockRecorder) GetMetadata ¶
func (mr *MockHttpClientMockRecorder) GetMetadata(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
GetMetadata indicates an expected call of GetMetadata.
func (*MockHttpClientMockRecorder) GetRegion ¶
func (mr *MockHttpClientMockRecorder) GetRegion(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
GetRegion indicates an expected call of GetRegion.
func (*MockHttpClientMockRecorder) GetUserData ¶
func (mr *MockHttpClientMockRecorder) GetUserData(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
GetUserData indicates an expected call of GetUserData.