Documentation ¶
Index ¶
- type MockEC2MetadataClient
- func (_m *MockEC2MetadataClient) DefaultCredentials() (*ec2.RoleCredentials, error)
- func (_m *MockEC2MetadataClient) EXPECT() *_MockEC2MetadataClientRecorder
- func (_m *MockEC2MetadataClient) GetDynamicData(_param0 string) (string, error)
- func (_m *MockEC2MetadataClient) GetMetadata(_param0 string) (string, error)
- func (_m *MockEC2MetadataClient) InstanceIdentityDocument() (ec2metadata.EC2InstanceIdentityDocument, error)
- type MockHttpClient
- func (_m *MockHttpClient) EXPECT() *_MockHttpClientRecorder
- func (_m *MockHttpClient) GetDynamicData(_param0 string) (string, error)
- func (_m *MockHttpClient) GetInstanceIdentityDocument() (ec2metadata.EC2InstanceIdentityDocument, error)
- func (_m *MockHttpClient) GetMetadata(_param0 string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockEC2MetadataClient ¶
type MockEC2MetadataClient struct {
// contains filtered or unexported fields
}
Mock of EC2MetadataClient interface
func NewMockEC2MetadataClient ¶
func NewMockEC2MetadataClient(ctrl *gomock.Controller) *MockEC2MetadataClient
func (*MockEC2MetadataClient) DefaultCredentials ¶
func (_m *MockEC2MetadataClient) DefaultCredentials() (*ec2.RoleCredentials, error)
func (*MockEC2MetadataClient) EXPECT ¶
func (_m *MockEC2MetadataClient) EXPECT() *_MockEC2MetadataClientRecorder
func (*MockEC2MetadataClient) GetDynamicData ¶ added in v1.14.4
func (_m *MockEC2MetadataClient) GetDynamicData(_param0 string) (string, error)
func (*MockEC2MetadataClient) GetMetadata ¶ added in v1.14.4
func (_m *MockEC2MetadataClient) GetMetadata(_param0 string) (string, error)
func (*MockEC2MetadataClient) InstanceIdentityDocument ¶
func (_m *MockEC2MetadataClient) InstanceIdentityDocument() (ec2metadata.EC2InstanceIdentityDocument, error)
type MockHttpClient ¶ added in v1.3.1
type MockHttpClient struct {
// contains filtered or unexported fields
}
Mock of HttpClient interface
func NewMockHttpClient ¶ added in v1.3.1
func NewMockHttpClient(ctrl *gomock.Controller) *MockHttpClient
func (*MockHttpClient) EXPECT ¶ added in v1.3.1
func (_m *MockHttpClient) EXPECT() *_MockHttpClientRecorder
func (*MockHttpClient) GetDynamicData ¶ added in v1.14.4
func (_m *MockHttpClient) GetDynamicData(_param0 string) (string, error)
func (*MockHttpClient) GetInstanceIdentityDocument ¶ added in v1.14.4
func (_m *MockHttpClient) GetInstanceIdentityDocument() (ec2metadata.EC2InstanceIdentityDocument, error)
func (*MockHttpClient) GetMetadata ¶ added in v1.14.4
func (_m *MockHttpClient) GetMetadata(_param0 string) (string, error)
Click to show internal directories.
Click to hide internal directories.