mock_ec2

package
v1.14.3 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2017 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 4 more Imports: 3 Imported by: 0

Documentation

Index

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) InstanceIdentityDocument

func (_m *MockEC2MetadataClient) InstanceIdentityDocument() (*ec2.InstanceIdentityDocument, error)

func (*MockEC2MetadataClient) ReadResource

func (_m *MockEC2MetadataClient) ReadResource(_param0 string) ([]byte, 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) Get added in v1.3.1

func (_m *MockHttpClient) Get(_param0 string) (*http.Response, error)

Jump to

Keyboard shortcuts

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