mocks

package
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 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 NamespaceService

type NamespaceService struct {
	mock.Mock
}

NamespaceService is an autogenerated mock type for the NamespaceService type

func NewNamespaceService

func NewNamespaceService(t mockConstructorTestingTNewNamespaceService) *NamespaceService

NewNamespaceService creates a new instance of NamespaceService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*NamespaceService) Create

func (_m *NamespaceService) Create(_a0 context.Context, _a1 *namespace.Namespace) error

Create provides a mock function with given fields: _a0, _a1

func (*NamespaceService) Delete

func (_m *NamespaceService) Delete(_a0 context.Context, _a1 uint64) error

Delete provides a mock function with given fields: _a0, _a1

func (*NamespaceService) EXPECT

func (*NamespaceService) Get

Get provides a mock function with given fields: _a0, _a1

func (*NamespaceService) List

List provides a mock function with given fields: _a0

func (*NamespaceService) Update

func (_m *NamespaceService) Update(_a0 context.Context, _a1 *namespace.Namespace) error

Update provides a mock function with given fields: _a0, _a1

type NamespaceService_Create_Call

type NamespaceService_Create_Call struct {
	*mock.Call
}

NamespaceService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'

func (*NamespaceService_Create_Call) Return

func (*NamespaceService_Create_Call) Run

type NamespaceService_Delete_Call

type NamespaceService_Delete_Call struct {
	*mock.Call
}

NamespaceService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*NamespaceService_Delete_Call) Return

func (*NamespaceService_Delete_Call) Run

type NamespaceService_Expecter

type NamespaceService_Expecter struct {
	// contains filtered or unexported fields
}

func (*NamespaceService_Expecter) Create

func (_e *NamespaceService_Expecter) Create(_a0 interface{}, _a1 interface{}) *NamespaceService_Create_Call

Create is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *namespace.Namespace

func (*NamespaceService_Expecter) Delete

func (_e *NamespaceService_Expecter) Delete(_a0 interface{}, _a1 interface{}) *NamespaceService_Delete_Call

Delete is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 uint64

func (*NamespaceService_Expecter) Get

func (_e *NamespaceService_Expecter) Get(_a0 interface{}, _a1 interface{}) *NamespaceService_Get_Call

Get is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 uint64

func (*NamespaceService_Expecter) List

func (_e *NamespaceService_Expecter) List(_a0 interface{}) *NamespaceService_List_Call

List is a helper method to define mock.On call

  • _a0 context.Context

func (*NamespaceService_Expecter) Update

func (_e *NamespaceService_Expecter) Update(_a0 interface{}, _a1 interface{}) *NamespaceService_Update_Call

Update is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *namespace.Namespace

type NamespaceService_Get_Call

type NamespaceService_Get_Call struct {
	*mock.Call
}

NamespaceService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*NamespaceService_Get_Call) Return

func (*NamespaceService_Get_Call) Run

type NamespaceService_List_Call

type NamespaceService_List_Call struct {
	*mock.Call
}

NamespaceService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'

func (*NamespaceService_List_Call) Return

func (*NamespaceService_List_Call) Run

type NamespaceService_Update_Call

type NamespaceService_Update_Call struct {
	*mock.Call
}

NamespaceService_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'

func (*NamespaceService_Update_Call) Return

func (*NamespaceService_Update_Call) Run

type RuleRepository

type RuleRepository struct {
	mock.Mock
}

RuleRepository is an autogenerated mock type for the Repository type

func NewRuleRepository

func NewRuleRepository(t mockConstructorTestingTNewRuleRepository) *RuleRepository

NewRuleRepository creates a new instance of RuleRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*RuleRepository) Commit

func (_m *RuleRepository) Commit(ctx context.Context) error

Commit provides a mock function with given fields: ctx

func (*RuleRepository) EXPECT

func (*RuleRepository) List

func (_m *RuleRepository) List(_a0 context.Context, _a1 rule.Filter) ([]rule.Rule, error)

List provides a mock function with given fields: _a0, _a1

func (*RuleRepository) Rollback

func (_m *RuleRepository) Rollback(ctx context.Context, err error) error

Rollback provides a mock function with given fields: ctx, err

func (*RuleRepository) Upsert

func (_m *RuleRepository) Upsert(_a0 context.Context, _a1 *rule.Rule) error

Upsert provides a mock function with given fields: _a0, _a1

func (*RuleRepository) WithTransaction

func (_m *RuleRepository) WithTransaction(ctx context.Context) context.Context

WithTransaction provides a mock function with given fields: ctx

type RuleRepository_Commit_Call

type RuleRepository_Commit_Call struct {
	*mock.Call
}

RuleRepository_Commit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Commit'

func (*RuleRepository_Commit_Call) Return

func (*RuleRepository_Commit_Call) Run

type RuleRepository_Expecter

type RuleRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*RuleRepository_Expecter) Commit

func (_e *RuleRepository_Expecter) Commit(ctx interface{}) *RuleRepository_Commit_Call

Commit is a helper method to define mock.On call

  • ctx context.Context

func (*RuleRepository_Expecter) List

func (_e *RuleRepository_Expecter) List(_a0 interface{}, _a1 interface{}) *RuleRepository_List_Call

List is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 rule.Filter

func (*RuleRepository_Expecter) Rollback

func (_e *RuleRepository_Expecter) Rollback(ctx interface{}, err interface{}) *RuleRepository_Rollback_Call

Rollback is a helper method to define mock.On call

  • ctx context.Context
  • err error

func (*RuleRepository_Expecter) Upsert

func (_e *RuleRepository_Expecter) Upsert(_a0 interface{}, _a1 interface{}) *RuleRepository_Upsert_Call

Upsert is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *rule.Rule

func (*RuleRepository_Expecter) WithTransaction

func (_e *RuleRepository_Expecter) WithTransaction(ctx interface{}) *RuleRepository_WithTransaction_Call

WithTransaction is a helper method to define mock.On call

  • ctx context.Context

type RuleRepository_List_Call

type RuleRepository_List_Call struct {
	*mock.Call
}

RuleRepository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'

func (*RuleRepository_List_Call) Return

func (*RuleRepository_List_Call) Run

type RuleRepository_Rollback_Call

type RuleRepository_Rollback_Call struct {
	*mock.Call
}

RuleRepository_Rollback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Rollback'

func (*RuleRepository_Rollback_Call) Return

func (*RuleRepository_Rollback_Call) Run

type RuleRepository_Upsert_Call

type RuleRepository_Upsert_Call struct {
	*mock.Call
}

RuleRepository_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'

func (*RuleRepository_Upsert_Call) Return

func (*RuleRepository_Upsert_Call) Run

type RuleRepository_WithTransaction_Call

type RuleRepository_WithTransaction_Call struct {
	*mock.Call
}

RuleRepository_WithTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithTransaction'

func (*RuleRepository_WithTransaction_Call) Return

func (*RuleRepository_WithTransaction_Call) Run

type RuleUploader added in v0.5.0

type RuleUploader struct {
	mock.Mock
}

RuleUploader is an autogenerated mock type for the RuleUploader type

func NewRuleUploader added in v0.5.0

func NewRuleUploader(t mockConstructorTestingTNewRuleUploader) *RuleUploader

NewRuleUploader creates a new instance of RuleUploader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*RuleUploader) EXPECT added in v0.5.0

func (_m *RuleUploader) EXPECT() *RuleUploader_Expecter

func (*RuleUploader) UpsertRule added in v0.5.0

func (_m *RuleUploader) UpsertRule(ctx context.Context, namespaceURN string, prov provider.Provider, rl *rule.Rule, templateToUpdate *template.Template) error

UpsertRule provides a mock function with given fields: ctx, namespaceURN, prov, rl, templateToUpdate

type RuleUploader_Expecter added in v0.5.0

type RuleUploader_Expecter struct {
	// contains filtered or unexported fields
}

func (*RuleUploader_Expecter) UpsertRule added in v0.5.0

func (_e *RuleUploader_Expecter) UpsertRule(ctx interface{}, namespaceURN interface{}, prov interface{}, rl interface{}, templateToUpdate interface{}) *RuleUploader_UpsertRule_Call

UpsertRule is a helper method to define mock.On call

  • ctx context.Context
  • namespaceURN string
  • prov provider.Provider
  • rl *rule.Rule
  • templateToUpdate *template.Template

type RuleUploader_UpsertRule_Call added in v0.5.0

type RuleUploader_UpsertRule_Call struct {
	*mock.Call
}

RuleUploader_UpsertRule_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpsertRule'

func (*RuleUploader_UpsertRule_Call) Return added in v0.5.0

func (*RuleUploader_UpsertRule_Call) Run added in v0.5.0

func (_c *RuleUploader_UpsertRule_Call) Run(run func(ctx context.Context, namespaceURN string, prov provider.Provider, rl *rule.Rule, templateToUpdate *template.Template)) *RuleUploader_UpsertRule_Call

type TemplateService

type TemplateService struct {
	mock.Mock
}

TemplateService is an autogenerated mock type for the TemplateService type

func NewTemplateService

func NewTemplateService(t mockConstructorTestingTNewTemplateService) *TemplateService

NewTemplateService creates a new instance of TemplateService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*TemplateService) Delete

func (_m *TemplateService) Delete(_a0 context.Context, _a1 string) error

Delete provides a mock function with given fields: _a0, _a1

func (*TemplateService) EXPECT

func (*TemplateService) GetByName

func (_m *TemplateService) GetByName(_a0 context.Context, _a1 string) (*template.Template, error)

GetByName provides a mock function with given fields: _a0, _a1

func (*TemplateService) List

List provides a mock function with given fields: _a0, _a1

func (*TemplateService) Upsert

func (_m *TemplateService) Upsert(_a0 context.Context, _a1 *template.Template) error

Upsert provides a mock function with given fields: _a0, _a1

type TemplateService_Delete_Call

type TemplateService_Delete_Call struct {
	*mock.Call
}

TemplateService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*TemplateService_Delete_Call) Return

func (*TemplateService_Delete_Call) Run

type TemplateService_Expecter

type TemplateService_Expecter struct {
	// contains filtered or unexported fields
}

func (*TemplateService_Expecter) Delete

func (_e *TemplateService_Expecter) Delete(_a0 interface{}, _a1 interface{}) *TemplateService_Delete_Call

Delete is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

func (*TemplateService_Expecter) GetByName

func (_e *TemplateService_Expecter) GetByName(_a0 interface{}, _a1 interface{}) *TemplateService_GetByName_Call

GetByName is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

func (*TemplateService_Expecter) List

func (_e *TemplateService_Expecter) List(_a0 interface{}, _a1 interface{}) *TemplateService_List_Call

List is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 template.Filter

func (*TemplateService_Expecter) Upsert

func (_e *TemplateService_Expecter) Upsert(_a0 interface{}, _a1 interface{}) *TemplateService_Upsert_Call

Upsert is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *template.Template

type TemplateService_GetByName_Call

type TemplateService_GetByName_Call struct {
	*mock.Call
}

TemplateService_GetByName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByName'

func (*TemplateService_GetByName_Call) Return

func (*TemplateService_GetByName_Call) Run

type TemplateService_List_Call

type TemplateService_List_Call struct {
	*mock.Call
}

TemplateService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'

func (*TemplateService_List_Call) Return

func (*TemplateService_List_Call) Run

type TemplateService_Upsert_Call

type TemplateService_Upsert_Call struct {
	*mock.Call
}

TemplateService_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'

func (*TemplateService_Upsert_Call) Return

func (*TemplateService_Upsert_Call) Run

Jump to

Keyboard shortcuts

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