automock

package
v0.0.0-...-0640eb1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 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) MultipleInputFromGraphQL

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

MultipleInputFromGraphQL provides a mock function with given fields: in

func (*APIConverter) MultipleToGraphQL

func (_m *APIConverter) MultipleToGraphQL(in []*model.APIDefinition, specs []*model.Spec, bundleRefs []*model.BundleReference) ([]*graphql.APIDefinition, error)

MultipleToGraphQL provides a mock function with given fields: in, specs, bundleRefs

func (*APIConverter) ToGraphQL

func (_m *APIConverter) ToGraphQL(in *model.APIDefinition, spec *model.Spec, bundleRef *model.BundleReference) (*graphql.APIDefinition, error)

ToGraphQL provides a mock function with given fields: in, spec, bundleRef

type APIService

type APIService struct {
	mock.Mock
}

APIService is an autogenerated mock type for the APIService type

func (*APIService) CreateInBundle

func (_m *APIService) CreateInBundle(ctx context.Context, appID string, bundleID string, in model.APIDefinitionInput, spec *model.SpecInput) (string, error)

CreateInBundle provides a mock function with given fields: ctx, appID, bundleID, in, spec

func (*APIService) DeleteAllByBundleID

func (_m *APIService) DeleteAllByBundleID(ctx context.Context, bundleID string) error

DeleteAllByBundleID provides a mock function with given fields: ctx, bundleID

func (*APIService) GetForBundle

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

GetForBundle provides a mock function with given fields: ctx, id, bundleID

func (*APIService) ListByBundleIDs

func (_m *APIService) ListByBundleIDs(ctx context.Context, bundleIDs []string, pageSize int, cursor string) ([]*model.APIDefinitionPage, error)

ListByBundleIDs provides a mock function with given fields: ctx, bundleIDs, pageSize, cursor

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, error)

InputFromGraphQL provides a mock function with given fields: in

func (*AuthConverter) ToGraphQL

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

ToGraphQL provides a mock function with given fields: in

type BundleConverter

type BundleConverter struct {
	mock.Mock
}

BundleConverter is an autogenerated mock type for the BundleConverter type

func (*BundleConverter) CreateInputFromGraphQL

func (_m *BundleConverter) CreateInputFromGraphQL(in graphql.BundleCreateInput) (model.BundleCreateInput, error)

CreateInputFromGraphQL provides a mock function with given fields: in

func (*BundleConverter) ToGraphQL

func (_m *BundleConverter) ToGraphQL(in *model.Bundle) (*graphql.Bundle, error)

ToGraphQL provides a mock function with given fields: in

func (*BundleConverter) UpdateInputFromGraphQL

func (_m *BundleConverter) UpdateInputFromGraphQL(in graphql.BundleUpdateInput) (*model.BundleUpdateInput, error)

UpdateInputFromGraphQL provides a mock function with given fields: in

type BundleInstanceAuthConverter

type BundleInstanceAuthConverter struct {
	mock.Mock
}

BundleInstanceAuthConverter is an autogenerated mock type for the BundleInstanceAuthConverter type

func (*BundleInstanceAuthConverter) MultipleToGraphQL

MultipleToGraphQL provides a mock function with given fields: in

func (*BundleInstanceAuthConverter) ToGraphQL

ToGraphQL provides a mock function with given fields: in

type BundleInstanceAuthService

type BundleInstanceAuthService struct {
	mock.Mock
}

BundleInstanceAuthService is an autogenerated mock type for the BundleInstanceAuthService type

func (*BundleInstanceAuthService) GetForBundle

func (_m *BundleInstanceAuthService) GetForBundle(ctx context.Context, id string, bundleID string) (*model.BundleInstanceAuth, error)

GetForBundle provides a mock function with given fields: ctx, id, bundleID

func (*BundleInstanceAuthService) List

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

type BundleReferenceService

type BundleReferenceService struct {
	mock.Mock
}

BundleReferenceService is an autogenerated mock type for the BundleReferenceService type

func (*BundleReferenceService) GetForBundle

func (_m *BundleReferenceService) GetForBundle(ctx context.Context, objectType model.BundleReferenceObjectType, objectID *string, bundleID *string) (*model.BundleReference, error)

GetForBundle provides a mock function with given fields: ctx, objectType, objectID, bundleID

func (*BundleReferenceService) ListByBundleIDs

func (_m *BundleReferenceService) ListByBundleIDs(ctx context.Context, objectType model.BundleReferenceObjectType, bundleIDs []string, pageSize int, cursor string) ([]*model.BundleReference, map[string]int, error)

ListByBundleIDs provides a mock function with given fields: ctx, objectType, bundleIDs, pageSize, cursor

type BundleRepository

type BundleRepository struct {
	mock.Mock
}

BundleRepository is an autogenerated mock type for the BundleRepository type

func (*BundleRepository) Create

func (_m *BundleRepository) Create(ctx context.Context, item *model.Bundle) error

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

func (*BundleRepository) Delete

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

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

func (*BundleRepository) Exists

func (_m *BundleRepository) Exists(ctx context.Context, tenant string, id string) (bool, error)

Exists provides a mock function with given fields: ctx, tenant, id

func (*BundleRepository) GetByID

func (_m *BundleRepository) GetByID(ctx context.Context, tenant string, id string) (*model.Bundle, error)

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

func (*BundleRepository) GetForApplication

func (_m *BundleRepository) GetForApplication(ctx context.Context, tenant string, id string, applicationID string) (*model.Bundle, error)

GetForApplication provides a mock function with given fields: ctx, tenant, id, applicationID

func (*BundleRepository) ListByApplicationIDNoPaging

func (_m *BundleRepository) ListByApplicationIDNoPaging(ctx context.Context, tenantID string, appID string) ([]*model.Bundle, error)

ListByApplicationIDNoPaging provides a mock function with given fields: ctx, tenantID, appID

func (*BundleRepository) ListByApplicationIDs

func (_m *BundleRepository) ListByApplicationIDs(ctx context.Context, tenantID string, applicationIDs []string, pageSize int, cursor string) ([]*model.BundlePage, error)

ListByApplicationIDs provides a mock function with given fields: ctx, tenantID, applicationIDs, pageSize, cursor

func (*BundleRepository) Update

func (_m *BundleRepository) Update(ctx context.Context, item *model.Bundle) error

Update provides a mock function with given fields: ctx, item

type BundleService

type BundleService struct {
	mock.Mock
}

BundleService is an autogenerated mock type for the BundleService type

func (*BundleService) Create

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

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

func (*BundleService) Delete

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

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

func (*BundleService) Get

func (_m *BundleService) Get(ctx context.Context, id string) (*model.Bundle, error)

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

func (*BundleService) 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, error)

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

func (*DocumentConverter) ToGraphQL

func (_m *DocumentConverter) ToGraphQL(in *model.Document) *graphql.Document

ToGraphQL provides a mock function with given fields: in

type DocumentService

type DocumentService struct {
	mock.Mock
}

DocumentService is an autogenerated mock type for the DocumentService type

func (*DocumentService) CreateInBundle

func (_m *DocumentService) CreateInBundle(ctx context.Context, bundleID string, in model.DocumentInput) (string, error)

CreateInBundle provides a mock function with given fields: ctx, bundleID, in

func (*DocumentService) GetForBundle

func (_m *DocumentService) GetForBundle(ctx context.Context, id string, bundleID string) (*model.Document, error)

GetForBundle provides a mock function with given fields: ctx, id, bundleID

func (*DocumentService) ListByBundleIDs

func (_m *DocumentService) ListByBundleIDs(ctx context.Context, bundleIDs []string, pageSize int, cursor string) ([]*model.DocumentPage, error)

ListByBundleIDs provides a mock function with given fields: ctx, bundleIDs, pageSize, cursor

type EntityConverter

type EntityConverter struct {
	mock.Mock
}

EntityConverter is an autogenerated mock type for the EntityConverter type

func (*EntityConverter) FromEntity

func (_m *EntityConverter) FromEntity(entity *bundle.Entity) (*model.Bundle, error)

FromEntity provides a mock function with given fields: entity

func (*EntityConverter) ToEntity

func (_m *EntityConverter) ToEntity(in *model.Bundle) (*bundle.Entity, error)

ToEntity provides a mock function with given fields: in

type EventConverter

type EventConverter struct {
	mock.Mock
}

EventConverter is an autogenerated mock type for the EventConverter type

func (*EventConverter) MultipleInputFromGraphQL

func (_m *EventConverter) MultipleInputFromGraphQL(in []*graphql.EventDefinitionInput) ([]*model.EventDefinitionInput, []*model.SpecInput, error)

MultipleInputFromGraphQL provides a mock function with given fields: in

func (*EventConverter) MultipleToGraphQL

func (_m *EventConverter) MultipleToGraphQL(in []*model.EventDefinition, specs []*model.Spec, bundleRefs []*model.BundleReference) ([]*graphql.EventDefinition, error)

MultipleToGraphQL provides a mock function with given fields: in, specs, bundleRefs

func (*EventConverter) ToGraphQL

func (_m *EventConverter) ToGraphQL(in *model.EventDefinition, spec *model.Spec, bundleReference *model.BundleReference) (*graphql.EventDefinition, error)

ToGraphQL provides a mock function with given fields: in, spec, bundleReference

type EventService

type EventService struct {
	mock.Mock
}

EventService is an autogenerated mock type for the EventService type

func (*EventService) CreateInBundle

func (_m *EventService) CreateInBundle(ctx context.Context, appID string, bundleID string, in model.EventDefinitionInput, spec *model.SpecInput) (string, error)

CreateInBundle provides a mock function with given fields: ctx, appID, bundleID, in, spec

func (*EventService) DeleteAllByBundleID

func (_m *EventService) DeleteAllByBundleID(ctx context.Context, bundleID string) error

DeleteAllByBundleID provides a mock function with given fields: ctx, bundleID

func (*EventService) GetForBundle

func (_m *EventService) GetForBundle(ctx context.Context, id string, bundleID string) (*model.EventDefinition, error)

GetForBundle provides a mock function with given fields: ctx, id, bundleID

func (*EventService) ListByBundleIDs

func (_m *EventService) ListByBundleIDs(ctx context.Context, bundleIDs []string, pageSize int, cursor string) ([]*model.EventDefinitionPage, error)

ListByBundleIDs provides a mock function with given fields: ctx, bundleIDs, pageSize, cursor

type SpecService

type SpecService struct {
	mock.Mock
}

SpecService is an autogenerated mock type for the SpecService type

func (*SpecService) CreateByReferenceObjectID

func (_m *SpecService) CreateByReferenceObjectID(ctx context.Context, in model.SpecInput, objectType model.SpecReferenceObjectType, objectID string) (string, error)

CreateByReferenceObjectID provides a mock function with given fields: ctx, in, objectType, objectID

func (*SpecService) GetByReferenceObjectID

func (_m *SpecService) GetByReferenceObjectID(ctx context.Context, objectType model.SpecReferenceObjectType, objectID string) (*model.Spec, error)

GetByReferenceObjectID provides a mock function with given fields: ctx, objectType, objectID

func (*SpecService) ListByReferenceObjectIDs

func (_m *SpecService) ListByReferenceObjectIDs(ctx context.Context, objectType model.SpecReferenceObjectType, objectIDs []string) ([]*model.Spec, error)

ListByReferenceObjectIDs provides a mock function with given fields: ctx, objectType, objectIDs

func (*SpecService) RefetchSpec

func (_m *SpecService) RefetchSpec(ctx context.Context, id string) (*model.Spec, error)

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

func (*SpecService) UpdateByReferenceObjectID

func (_m *SpecService) UpdateByReferenceObjectID(ctx context.Context, id string, in model.SpecInput, objectType model.SpecReferenceObjectType, objectID string) error

UpdateByReferenceObjectID provides a mock function with given fields: ctx, id, in, objectType, objectID

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:

Jump to

Keyboard shortcuts

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