automock

package
v0.0.0-...-ecc6c17 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIConverter

type APIConverter struct {
	mock.Mock
}

APIConverter is an autogenerated mock type for the APIConverter type

func (*APIConverter) InputFromGraphQL

func (_m *APIConverter) InputFromGraphQL(in *graphql.APIDefinitionInput) *model.APIDefinitionInput

InputFromGraphQL provides a mock function with given fields: in

func (*APIConverter) MultipleInputFromGraphQL

func (_m *APIConverter) MultipleInputFromGraphQL(in []*graphql.APIDefinitionInput) []*model.APIDefinitionInput

MultipleInputFromGraphQL provides a mock function with given fields: in

func (*APIConverter) MultipleToGraphQL

func (_m *APIConverter) MultipleToGraphQL(in []*model.APIDefinition) []*graphql.APIDefinition

MultipleToGraphQL provides a mock function with given fields: in

func (*APIConverter) ToGraphQL

ToGraphQL provides a mock function with given fields: in

type APIRepository

type APIRepository struct {
	mock.Mock
}

APIRepository is an autogenerated mock type for the APIRepository type

func (*APIRepository) Create

func (_m *APIRepository) Create(item *model.APIDefinition) error

Create provides a mock function with given fields: item

func (*APIRepository) CreateMany

func (_m *APIRepository) CreateMany(item []*model.APIDefinition) error

CreateMany provides a mock function with given fields: item

func (*APIRepository) Delete

func (_m *APIRepository) Delete(item *model.APIDefinition) error

Delete provides a mock function with given fields: item

func (*APIRepository) DeleteAllByApplicationID

func (_m *APIRepository) DeleteAllByApplicationID(id string) error

DeleteAllByApplicationID provides a mock function with given fields: id

func (*APIRepository) GetByID

func (_m *APIRepository) GetByID(id string) (*model.APIDefinition, error)

GetByID provides a mock function with given fields: id

func (*APIRepository) List

func (_m *APIRepository) List(filter []*labelfilter.LabelFilter, pageSize *int, cursor *string) (*model.APIDefinitionPage, error)

List provides a mock function with given fields: filter, pageSize, cursor

func (*APIRepository) ListByApplicationID

func (_m *APIRepository) ListByApplicationID(applicationID string, pageSize *int, cursor *string) (*model.APIDefinitionPage, error)

ListByApplicationID provides a mock function with given fields: applicationID, pageSize, cursor

func (*APIRepository) Update

func (_m *APIRepository) Update(item *model.APIDefinition) error

Update provides a mock function with given fields: item

type APIService

type APIService struct {
	mock.Mock
}

APIService is an autogenerated mock type for the APIService type

func (*APIService) Create

func (_m *APIService) Create(ctx context.Context, applicationID string, in model.APIDefinitionInput) (string, error)

Create provides a mock function with given fields: ctx, applicationID, in

func (*APIService) Delete

func (_m *APIService) Delete(ctx context.Context, id string) error

Delete provides a mock function with given fields: ctx, id

func (*APIService) DeleteAPIAuth

func (_m *APIService) DeleteAPIAuth(ctx context.Context, apiID string, runtimeID string) (*model.RuntimeAuth, error)

DeleteAPIAuth provides a mock function with given fields: ctx, apiID, runtimeID

func (*APIService) Get

func (_m *APIService) Get(ctx context.Context, id string) (*model.APIDefinition, error)

Get provides a mock function with given fields: ctx, id

func (*APIService) RefetchAPISpec

func (_m *APIService) RefetchAPISpec(ctx context.Context, id string) (*model.APISpec, error)

RefetchAPISpec provides a mock function with given fields: ctx, id

func (*APIService) SetAPIAuth

func (_m *APIService) SetAPIAuth(ctx context.Context, apiID string, runtimeID string, in model.AuthInput) (*model.RuntimeAuth, error)

SetAPIAuth provides a mock function with given fields: ctx, apiID, runtimeID, in

func (*APIService) Update

func (_m *APIService) Update(ctx context.Context, id string, in model.APIDefinitionInput) error

Update provides a mock function with given fields: ctx, id, in

type AuthConverter

type AuthConverter struct {
	mock.Mock
}

AuthConverter is an autogenerated mock type for the AuthConverter type

func (*AuthConverter) InputFromGraphQL

func (_m *AuthConverter) InputFromGraphQL(in *graphql.AuthInput) *model.AuthInput

InputFromGraphQL provides a mock function with given fields: in

func (*AuthConverter) ToGraphQL

func (_m *AuthConverter) ToGraphQL(in *model.Auth) *graphql.Auth

ToGraphQL provides a mock function with given fields: in

type FetchRequestConverter

type FetchRequestConverter struct {
	mock.Mock
}

FetchRequestConverter is an autogenerated mock type for the FetchRequestConverter type

func (*FetchRequestConverter) InputFromGraphQL

InputFromGraphQL provides a mock function with given fields: in

func (*FetchRequestConverter) ToGraphQL

ToGraphQL provides a mock function with given fields: in

type UIDService

type UIDService struct {
	mock.Mock
}

UIDService is an autogenerated mock type for the UIDService type

func (*UIDService) Generate

func (_m *UIDService) Generate() string

Generate provides a mock function with given fields:

type VersionConverter

type VersionConverter struct {
	mock.Mock
}

VersionConverter is an autogenerated mock type for the VersionConverter type

func (*VersionConverter) InputFromGraphQL

func (_m *VersionConverter) InputFromGraphQL(in *graphql.VersionInput) *model.VersionInput

InputFromGraphQL provides a mock function with given fields: in

func (*VersionConverter) ToGraphQL

func (_m *VersionConverter) ToGraphQL(in *model.Version) *graphql.Version

ToGraphQL provides a mock function with given fields: in

Jump to

Keyboard shortcuts

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