mocks

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockTenancyAccessor

type MockTenancyAccessor struct {
	ParentLookup      map[string]string
	ChildrenLookup    map[string][]string
	DescendantsLookup map[string][]string
	AncestorsLookup   map[string][]string
	Root              string
	Isloaded          bool
}

func NewMockTenancyAccessor

func NewMockTenancyAccessor(tenantRelations []TenancyRelation, root uuid.UUID) *MockTenancyAccessor

NewMockTenancyAccessor Deprecated: Use string version instead

func NewMockTenancyAccessorUsingStrIds

func NewMockTenancyAccessorUsingStrIds(tenantRelations []TenancyRelationWithStrId, root string) *MockTenancyAccessor

func (*MockTenancyAccessor) GetAncestors

func (m *MockTenancyAccessor) GetAncestors(ctx context.Context, tenantId string) ([]string, error)

func (*MockTenancyAccessor) GetChildren

func (m *MockTenancyAccessor) GetChildren(ctx context.Context, tenantId string) ([]string, error)

func (*MockTenancyAccessor) GetDescendants

func (m *MockTenancyAccessor) GetDescendants(ctx context.Context, tenantId string) ([]string, error)

func (*MockTenancyAccessor) GetParent

func (m *MockTenancyAccessor) GetParent(ctx context.Context, tenantId string) (string, error)

func (*MockTenancyAccessor) GetRoot

func (m *MockTenancyAccessor) GetRoot(ctx context.Context) (string, error)

func (*MockTenancyAccessor) GetTenancyPath

func (m *MockTenancyAccessor) GetTenancyPath(ctx context.Context, tenantId string) ([]uuid.UUID, error)

func (*MockTenancyAccessor) IsLoaded

func (m *MockTenancyAccessor) IsLoaded(ctx context.Context) bool

func (*MockTenancyAccessor) Reset

func (m *MockTenancyAccessor) Reset(tenantRelations []TenancyRelation, root uuid.UUID)

Reset Deprecated: Use the str version instead

func (*MockTenancyAccessor) ResetWithStrIds

func (m *MockTenancyAccessor) ResetWithStrIds(tenantRelations []TenancyRelationWithStrId, root string)

type TenancyRelation

type TenancyRelation struct {
	Child  uuid.UUID
	Parent uuid.UUID
}

TenancyRelation Deprecated: use the string version instead

type TenancyRelationWithStrId

type TenancyRelationWithStrId struct {
	ChildId  string
	ParentId string
}

Directories

Path Synopsis
Package mock_security is a generated GoMock package.
Package mock_security is a generated GoMock package.
Package internal is an internal package that help to test generated mocks
Package internal is an internal package that help to test generated mocks
Package redismock is a generated GoMock package.
Package redismock is a generated GoMock package.
Package mock_session is a generated GoMock package.
Package mock_session is a generated GoMock package.

Jump to

Keyboard shortcuts

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