apigateway

package
v0.0.0-...-8d6a06f Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2018 License: MIT Imports: 7 Imported by: 0

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 API

type API struct {
	ID          string
	Name        string
	Description string
	CreatedDate time.Time
}

API represents the wrapped form of RestApi

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 Endpoint

type Endpoint struct {
	Path      string
	TargetURL string
}

Endpoint represents API endpoint

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

type Stage

type Stage struct {
	Name            string
	DeploymentID    string
	LastUpdatedDate time.Time
}

Stage represents the wrapped form of Stage

Jump to

Keyboard shortcuts

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