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

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

CreateMany provides a mock function with given fields: items

func (*APIRepository) DeleteAllByApplicationID

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

DeleteAllByApplicationID provides a mock function with given fields: id

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

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

func (_m *APIService) List(ctx context.Context, applicationID string, pageSize *int, cursor *string) (*model.APIDefinitionPage, error)

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

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 ApplicationConverter

type ApplicationConverter struct {
	mock.Mock
}

ApplicationConverter is an autogenerated mock type for the ApplicationConverter type

func (*ApplicationConverter) InputFromGraphQL

InputFromGraphQL provides a mock function with given fields: in

func (*ApplicationConverter) MultipleToGraphQL

func (_m *ApplicationConverter) MultipleToGraphQL(in []*model.Application) []*graphql.Application

MultipleToGraphQL provides a mock function with given fields: in

func (*ApplicationConverter) ToGraphQL

ToGraphQL provides a mock function with given fields: in

type ApplicationRepository

type ApplicationRepository struct {
	mock.Mock
}

ApplicationRepository is an autogenerated mock type for the ApplicationRepository type

func (*ApplicationRepository) Create

func (_m *ApplicationRepository) Create(item *model.Application) error

Create provides a mock function with given fields: item

func (*ApplicationRepository) Delete

func (_m *ApplicationRepository) Delete(item *model.Application) error

Delete provides a mock function with given fields: item

func (*ApplicationRepository) GetByID

func (_m *ApplicationRepository) GetByID(tenant string, id string) (*model.Application, error)

GetByID provides a mock function with given fields: tenant, id

func (*ApplicationRepository) List

func (_m *ApplicationRepository) List(tenant string, filter []*labelfilter.LabelFilter, pageSize *int, cursor *string) (*model.ApplicationPage, error)

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

func (*ApplicationRepository) Update

func (_m *ApplicationRepository) Update(item *model.Application) error

Update provides a mock function with given fields: item

type ApplicationService

type ApplicationService struct {
	mock.Mock
}

ApplicationService is an autogenerated mock type for the ApplicationService type

func (*ApplicationService) AddAnnotation

func (_m *ApplicationService) AddAnnotation(ctx context.Context, applicationID string, key string, value interface{}) error

AddAnnotation provides a mock function with given fields: ctx, applicationID, key, value

func (*ApplicationService) AddLabel

func (_m *ApplicationService) AddLabel(ctx context.Context, applicationID string, key string, values []string) error

AddLabel provides a mock function with given fields: ctx, applicationID, key, values

func (*ApplicationService) Create

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

func (*ApplicationService) Delete

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

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

func (*ApplicationService) DeleteAnnotation

func (_m *ApplicationService) DeleteAnnotation(ctx context.Context, applicationID string, key string) error

DeleteAnnotation provides a mock function with given fields: ctx, applicationID, key

func (*ApplicationService) DeleteLabel

func (_m *ApplicationService) DeleteLabel(ctx context.Context, applicationID string, key string, values []string) error

DeleteLabel provides a mock function with given fields: ctx, applicationID, key, values

func (*ApplicationService) Get

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

func (*ApplicationService) List

func (_m *ApplicationService) List(ctx context.Context, filter []*labelfilter.LabelFilter, pageSize *int, cursor *string) (*model.ApplicationPage, error)

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

func (*ApplicationService) Update

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

type DocumentConverter

type DocumentConverter struct {
	mock.Mock
}

DocumentConverter is an autogenerated mock type for the DocumentConverter type

func (*DocumentConverter) MultipleInputFromGraphQL

func (_m *DocumentConverter) MultipleInputFromGraphQL(in []*graphql.DocumentInput) []*model.DocumentInput

MultipleInputFromGraphQL provides a mock function with given fields: in

func (*DocumentConverter) MultipleToGraphQL

func (_m *DocumentConverter) MultipleToGraphQL(in []*model.Document) []*graphql.Document

MultipleToGraphQL provides a mock function with given fields: in

type DocumentRepository

type DocumentRepository struct {
	mock.Mock
}

DocumentRepository is an autogenerated mock type for the DocumentRepository type

func (*DocumentRepository) CreateMany

func (_m *DocumentRepository) CreateMany(items []*model.Document) error

CreateMany provides a mock function with given fields: items

func (*DocumentRepository) DeleteAllByApplicationID

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

DeleteAllByApplicationID provides a mock function with given fields: id

func (*DocumentRepository) ListAllByApplicationID

func (_m *DocumentRepository) ListAllByApplicationID(applicationID string) ([]*model.Document, error)

ListAllByApplicationID provides a mock function with given fields: applicationID

type DocumentService

type DocumentService struct {
	mock.Mock
}

DocumentService is an autogenerated mock type for the DocumentService type

func (*DocumentService) List

func (_m *DocumentService) List(ctx context.Context, applicationID string, pageSize *int, cursor *string) (*model.DocumentPage, error)

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

type EventAPIConverter

type EventAPIConverter struct {
	mock.Mock
}

EventAPIConverter is an autogenerated mock type for the EventAPIConverter type

func (*EventAPIConverter) InputFromGraphQL

InputFromGraphQL provides a mock function with given fields: in

func (*EventAPIConverter) MultipleInputFromGraphQL

func (_m *EventAPIConverter) MultipleInputFromGraphQL(in []*graphql.EventAPIDefinitionInput) []*model.EventAPIDefinitionInput

MultipleInputFromGraphQL provides a mock function with given fields: in

func (*EventAPIConverter) MultipleToGraphQL

func (_m *EventAPIConverter) MultipleToGraphQL(in []*model.EventAPIDefinition) []*graphql.EventAPIDefinition

MultipleToGraphQL provides a mock function with given fields: in

func (*EventAPIConverter) ToGraphQL

ToGraphQL provides a mock function with given fields: in

type EventAPIRepository

type EventAPIRepository struct {
	mock.Mock
}

EventAPIRepository is an autogenerated mock type for the EventAPIRepository type

func (*EventAPIRepository) CreateMany

func (_m *EventAPIRepository) CreateMany(items []*model.EventAPIDefinition) error

CreateMany provides a mock function with given fields: items

func (*EventAPIRepository) DeleteAllByApplicationID

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

DeleteAllByApplicationID provides a mock function with given fields: id

func (*EventAPIRepository) ListByApplicationID

func (_m *EventAPIRepository) ListByApplicationID(applicationID string, pageSize *int, cursor *string) (*model.EventAPIDefinitionPage, error)

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

type EventAPIService

type EventAPIService struct {
	mock.Mock
}

EventAPIService is an autogenerated mock type for the EventAPIService type

func (*EventAPIService) Create

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

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

func (*EventAPIService) Delete

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

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

func (*EventAPIService) List

func (_m *EventAPIService) List(ctx context.Context, applicationID string, pageSize *int, cursor *string) (*model.EventAPIDefinitionPage, error)

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

func (*EventAPIService) Update

Update provides a mock function with given fields: ctx, id, 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 WebhookConverter

type WebhookConverter struct {
	mock.Mock
}

WebhookConverter is an autogenerated mock type for the WebhookConverter type

func (*WebhookConverter) InputFromGraphQL

InputFromGraphQL provides a mock function with given fields: in

func (*WebhookConverter) MultipleInputFromGraphQL

func (_m *WebhookConverter) MultipleInputFromGraphQL(in []*graphql.ApplicationWebhookInput) []*model.ApplicationWebhookInput

MultipleInputFromGraphQL provides a mock function with given fields: in

func (*WebhookConverter) MultipleToGraphQL

func (_m *WebhookConverter) MultipleToGraphQL(in []*model.ApplicationWebhook) []*graphql.ApplicationWebhook

MultipleToGraphQL provides a mock function with given fields: in

func (*WebhookConverter) ToGraphQL

ToGraphQL provides a mock function with given fields: in

type WebhookRepository

type WebhookRepository struct {
	mock.Mock
}

WebhookRepository is an autogenerated mock type for the WebhookRepository type

func (*WebhookRepository) CreateMany

func (_m *WebhookRepository) CreateMany(items []*model.ApplicationWebhook) error

CreateMany provides a mock function with given fields: items

func (*WebhookRepository) DeleteAllByApplicationID

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

DeleteAllByApplicationID provides a mock function with given fields: id

func (*WebhookRepository) ListByApplicationID

func (_m *WebhookRepository) ListByApplicationID(applicationID string) ([]*model.ApplicationWebhook, error)

ListByApplicationID provides a mock function with given fields: applicationID

type WebhookService

type WebhookService struct {
	mock.Mock
}

WebhookService is an autogenerated mock type for the WebhookService type

func (*WebhookService) Create

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

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

func (*WebhookService) Delete

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

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

func (*WebhookService) Get

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

func (*WebhookService) List

func (_m *WebhookService) List(ctx context.Context, applicationID string) ([]*model.ApplicationWebhook, error)

List provides a mock function with given fields: ctx, applicationID

func (*WebhookService) Update

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

Jump to

Keyboard shortcuts

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