mocks

package
v0.0.0-...-4515e61 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2019 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeIdentifier

type FakeIdentifier struct {
	IDStub func() rbac.RoleID
	// contains filtered or unexported fields
}

func (*FakeIdentifier) ID

func (fake *FakeIdentifier) ID() rbac.RoleID

func (*FakeIdentifier) IDCallCount

func (fake *FakeIdentifier) IDCallCount() int

func (*FakeIdentifier) IDReturns

func (fake *FakeIdentifier) IDReturns(result1 rbac.RoleID)

func (*FakeIdentifier) IDReturnsOnCall

func (fake *FakeIdentifier) IDReturnsOnCall(i int, result1 rbac.RoleID)

func (*FakeIdentifier) Invocations

func (fake *FakeIdentifier) Invocations() map[string][][]interface{}

type FakeManager

type FakeManager struct {
	GetStub func(context.Context, role.Identifier) (role.Complete, error)

	SetStub func(context.Context, role.Complete) error

	CreateStub func(context.Context, role.Complete) error

	DeleteStub func(context.Context, role.Identifier) error
	// contains filtered or unexported fields
}

func (*FakeManager) Create

func (fake *FakeManager) Create(arg1 context.Context, arg2 role.Complete) error

func (*FakeManager) CreateArgsForCall

func (fake *FakeManager) CreateArgsForCall(i int) (context.Context, role.Complete)

func (*FakeManager) CreateCallCount

func (fake *FakeManager) CreateCallCount() int

func (*FakeManager) CreateReturns

func (fake *FakeManager) CreateReturns(result1 error)

func (*FakeManager) CreateReturnsOnCall

func (fake *FakeManager) CreateReturnsOnCall(i int, result1 error)

func (*FakeManager) Delete

func (fake *FakeManager) Delete(arg1 context.Context, arg2 role.Identifier) error

func (*FakeManager) DeleteArgsForCall

func (fake *FakeManager) DeleteArgsForCall(i int) (context.Context, role.Identifier)

func (*FakeManager) DeleteCallCount

func (fake *FakeManager) DeleteCallCount() int

func (*FakeManager) DeleteReturns

func (fake *FakeManager) DeleteReturns(result1 error)

func (*FakeManager) DeleteReturnsOnCall

func (fake *FakeManager) DeleteReturnsOnCall(i int, result1 error)

func (*FakeManager) Get

func (fake *FakeManager) Get(arg1 context.Context, arg2 role.Identifier) (role.Complete, error)

func (*FakeManager) GetArgsForCall

func (fake *FakeManager) GetArgsForCall(i int) (context.Context, role.Identifier)

func (*FakeManager) GetCallCount

func (fake *FakeManager) GetCallCount() int

func (*FakeManager) GetReturns

func (fake *FakeManager) GetReturns(result1 role.Complete, result2 error)

func (*FakeManager) GetReturnsOnCall

func (fake *FakeManager) GetReturnsOnCall(i int, result1 role.Complete, result2 error)

func (*FakeManager) Invocations

func (fake *FakeManager) Invocations() map[string][][]interface{}

func (*FakeManager) Set

func (fake *FakeManager) Set(arg1 context.Context, arg2 role.Complete) error

func (*FakeManager) SetArgsForCall

func (fake *FakeManager) SetArgsForCall(i int) (context.Context, role.Complete)

func (*FakeManager) SetCallCount

func (fake *FakeManager) SetCallCount() int

func (*FakeManager) SetReturns

func (fake *FakeManager) SetReturns(result1 error)

func (*FakeManager) SetReturnsOnCall

func (fake *FakeManager) SetReturnsOnCall(i int, result1 error)

type FakeRepository

type FakeRepository struct {
	GetStub func(context.Context, role.Identifier) (role.Complete, error)

	UpdateStub func(context.Context, role.Complete) error

	CreateStub func(context.Context, role.Complete) error

	DeleteStub func(context.Context, role.Identifier) error
	// contains filtered or unexported fields
}

func (*FakeRepository) Create

func (fake *FakeRepository) Create(arg1 context.Context, arg2 role.Complete) error

func (*FakeRepository) CreateArgsForCall

func (fake *FakeRepository) CreateArgsForCall(i int) (context.Context, role.Complete)

func (*FakeRepository) CreateCallCount

func (fake *FakeRepository) CreateCallCount() int

func (*FakeRepository) CreateReturns

func (fake *FakeRepository) CreateReturns(result1 error)

func (*FakeRepository) CreateReturnsOnCall

func (fake *FakeRepository) CreateReturnsOnCall(i int, result1 error)

func (*FakeRepository) Delete

func (fake *FakeRepository) Delete(arg1 context.Context, arg2 role.Identifier) error

func (*FakeRepository) DeleteArgsForCall

func (fake *FakeRepository) DeleteArgsForCall(i int) (context.Context, role.Identifier)

func (*FakeRepository) DeleteCallCount

func (fake *FakeRepository) DeleteCallCount() int

func (*FakeRepository) DeleteReturns

func (fake *FakeRepository) DeleteReturns(result1 error)

func (*FakeRepository) DeleteReturnsOnCall

func (fake *FakeRepository) DeleteReturnsOnCall(i int, result1 error)

func (*FakeRepository) Get

func (fake *FakeRepository) Get(arg1 context.Context, arg2 role.Identifier) (role.Complete, error)

func (*FakeRepository) GetArgsForCall

func (fake *FakeRepository) GetArgsForCall(i int) (context.Context, role.Identifier)

func (*FakeRepository) GetCallCount

func (fake *FakeRepository) GetCallCount() int

func (*FakeRepository) GetReturns

func (fake *FakeRepository) GetReturns(result1 role.Complete, result2 error)

func (*FakeRepository) GetReturnsOnCall

func (fake *FakeRepository) GetReturnsOnCall(i int, result1 role.Complete, result2 error)

func (*FakeRepository) Invocations

func (fake *FakeRepository) Invocations() map[string][][]interface{}

func (*FakeRepository) Update

func (fake *FakeRepository) Update(arg1 context.Context, arg2 role.Complete) error

func (*FakeRepository) UpdateArgsForCall

func (fake *FakeRepository) UpdateArgsForCall(i int) (context.Context, role.Complete)

func (*FakeRepository) UpdateCallCount

func (fake *FakeRepository) UpdateCallCount() int

func (*FakeRepository) UpdateReturns

func (fake *FakeRepository) UpdateReturns(result1 error)

func (*FakeRepository) UpdateReturnsOnCall

func (fake *FakeRepository) UpdateReturnsOnCall(i int, result1 error)

Jump to

Keyboard shortcuts

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