automock

package
v0.0.0-...-6d13c91 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 6 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 NewAPIConverter

func NewAPIConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *APIConverter

NewAPIConverter creates a new instance of APIConverter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

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, bundleRefs []*model.BundleReference) ([]*graphql.APIDefinition, error)

MultipleToGraphQL provides a mock function with given fields: in, 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 NewAPIService

func NewAPIService(t interface {
	mock.TestingT
	Cleanup(func())
}) *APIService

NewAPIService creates a new instance of APIService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*APIService) CreateInBundle

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

CreateInBundle provides a mock function with given fields: ctx, resourceType, resourceID, 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 ApplicationService

type ApplicationService struct {
	mock.Mock
}

ApplicationService is an autogenerated mock type for the ApplicationService type

func NewApplicationService

func NewApplicationService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ApplicationService

NewApplicationService creates a new instance of ApplicationService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ApplicationService) UpdateBaseURL

func (_m *ApplicationService) UpdateBaseURL(ctx context.Context, appID string, targetURL string) error

UpdateBaseURL provides a mock function with given fields: ctx, appID, targetURL

type AuthConverter

type AuthConverter struct {
	mock.Mock
}

AuthConverter is an autogenerated mock type for the AuthConverter type

func NewAuthConverter

func NewAuthConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *AuthConverter

NewAuthConverter creates a new instance of AuthConverter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

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 NewBundleConverter

func NewBundleConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *BundleConverter

NewBundleConverter creates a new instance of BundleConverter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

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 NewBundleInstanceAuthConverter

func NewBundleInstanceAuthConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *BundleInstanceAuthConverter

NewBundleInstanceAuthConverter creates a new instance of BundleInstanceAuthConverter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

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 NewBundleInstanceAuthService

func NewBundleInstanceAuthService(t interface {
	mock.TestingT
	Cleanup(func())
}) *BundleInstanceAuthService

NewBundleInstanceAuthService creates a new instance of BundleInstanceAuthService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

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

func (*BundleInstanceAuthService) ListByRuntimeID

func (_m *BundleInstanceAuthService) ListByRuntimeID(ctx context.Context, runtimeID string) ([]*model.BundleInstanceAuth, error)

ListByRuntimeID provides a mock function with given fields: ctx, runtimeID

type BundleReferenceService

type BundleReferenceService struct {
	mock.Mock
}

BundleReferenceService is an autogenerated mock type for the BundleReferenceService type

func NewBundleReferenceService

func NewBundleReferenceService(t interface {
	mock.TestingT
	Cleanup(func())
}) *BundleReferenceService

NewBundleReferenceService creates a new instance of BundleReferenceService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

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 NewBundleRepository

func NewBundleRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *BundleRepository

NewBundleRepository creates a new instance of BundleRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*BundleRepository) Create

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

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

func (*BundleRepository) CreateGlobal

func (_m *BundleRepository) CreateGlobal(ctx context.Context, _a1 *model.Bundle) error

CreateGlobal provides a mock function with given fields: ctx, _a1

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

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

DeleteGlobal provides a mock function with given fields: ctx, 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) GetByIDGlobal

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

GetByIDGlobal provides a mock function with given fields: ctx, 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) 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) ListByResourceIDNoPaging

func (_m *BundleRepository) ListByResourceIDNoPaging(ctx context.Context, tenantID string, appID string, resourceType resource.Type) ([]*model.Bundle, error)

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

func (*BundleRepository) Update

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

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

func (*BundleRepository) UpdateGlobal

func (_m *BundleRepository) UpdateGlobal(ctx context.Context, _a1 *model.Bundle) error

UpdateGlobal provides a mock function with given fields: ctx, _a1

type BundleService

type BundleService struct {
	mock.Mock
}

BundleService is an autogenerated mock type for the BundleService type

func NewBundleService

func NewBundleService(t interface {
	mock.TestingT
	Cleanup(func())
}) *BundleService

NewBundleService creates a new instance of BundleService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*BundleService) Create

func (_m *BundleService) Create(ctx context.Context, resourceType resource.Type, resourceID string, in model.BundleCreateInput) (string, error)

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

func (*BundleService) Delete

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

Delete provides a mock function with given fields: ctx, resourceType, 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

func (_m *BundleService) Update(ctx context.Context, resourceType resource.Type, id string, in model.BundleUpdateInput) error

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

type DocumentConverter

type DocumentConverter struct {
	mock.Mock
}

DocumentConverter is an autogenerated mock type for the DocumentConverter type

func NewDocumentConverter

func NewDocumentConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *DocumentConverter

NewDocumentConverter creates a new instance of DocumentConverter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

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 NewDocumentService

func NewDocumentService(t interface {
	mock.TestingT
	Cleanup(func())
}) *DocumentService

NewDocumentService creates a new instance of DocumentService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*DocumentService) CreateInBundle

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

CreateInBundle provides a mock function with given fields: ctx, resourceType, resourceID, 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 NewEntityConverter

func NewEntityConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *EntityConverter

NewEntityConverter creates a new instance of EntityConverter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

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 NewEventConverter

func NewEventConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *EventConverter

NewEventConverter creates a new instance of EventConverter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

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, bundleRefs []*model.BundleReference) ([]*graphql.EventDefinition, error)

MultipleToGraphQL provides a mock function with given fields: in, 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 NewEventService

func NewEventService(t interface {
	mock.TestingT
	Cleanup(func())
}) *EventService

NewEventService creates a new instance of EventService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*EventService) CreateInBundle

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

CreateInBundle provides a mock function with given fields: ctx, resourceType, resourceID, 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 NewSpecService

func NewSpecService(t interface {
	mock.TestingT
	Cleanup(func())
}) *SpecService

NewSpecService creates a new instance of SpecService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*SpecService) GetByReferenceObjectID

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

GetByReferenceObjectID provides a mock function with given fields: ctx, resourceType, 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

type UIDService

type UIDService struct {
	mock.Mock
}

UIDService is an autogenerated mock type for the UIDService type

func NewUIDService

func NewUIDService(t interface {
	mock.TestingT
	Cleanup(func())
}) *UIDService

NewUIDService creates a new instance of UIDService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

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