Documentation ¶
Overview ¶
Package apigateway is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { ListAPIs() ([]*API, error) ListEndpoints(apiID string) ([]*Endpoint, error) ListStages(apiID string) ([]*Stage, error) }
Client is the wrapper of Amazon API Gateway API client
type ClientImpl ¶
type ClientImpl struct {
// contains filtered or unexported fields
}
ClientImpl represents the implementation of Client
func NewClientImpl ¶
func NewClientImpl(api apigatewayiface.APIGatewayAPI) *ClientImpl
NewClientImpl creates new ClientImpl object
func (*ClientImpl) ListAPIs ¶
func (c *ClientImpl) ListAPIs() ([]*API, error)
ListAPIs returns the list of registered APIs
func (*ClientImpl) ListEndpoints ¶
func (c *ClientImpl) ListEndpoints(apiID string) ([]*Endpoint, error)
ListEndpoints returne the endpoints of the given API
func (*ClientImpl) ListStages ¶
func (c *ClientImpl) ListStages(apiID string) ([]*Stage, error)
ListStages returns the list of registered APIs
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) ListAPIs ¶
func (m *MockClient) ListAPIs() ([]*API, error)
ListAPIs mocks base method
func (*MockClient) ListEndpoints ¶
func (m *MockClient) ListEndpoints(apiID string) ([]*Endpoint, error)
ListEndpoints mocks base method
func (*MockClient) ListStages ¶
func (m *MockClient) ListStages(apiID string) ([]*Stage, error)
ListStages mocks base method
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient
func (*MockClientMockRecorder) ListAPIs ¶
func (mr *MockClientMockRecorder) ListAPIs() *gomock.Call
ListAPIs indicates an expected call of ListAPIs
func (*MockClientMockRecorder) ListEndpoints ¶
func (mr *MockClientMockRecorder) ListEndpoints(apiID interface{}) *gomock.Call
ListEndpoints indicates an expected call of ListEndpoints
func (*MockClientMockRecorder) ListStages ¶
func (mr *MockClientMockRecorder) ListStages(apiID interface{}) *gomock.Call
ListStages indicates an expected call of ListStages