Documentation ¶
Index ¶
- type MockTenancyAccessor
- func (m *MockTenancyAccessor) GetAncestors(ctx context.Context, tenantId string) ([]string, error)
- func (m *MockTenancyAccessor) GetChildren(ctx context.Context, tenantId string) ([]string, error)
- func (m *MockTenancyAccessor) GetDescendants(ctx context.Context, tenantId string) ([]string, error)
- func (m *MockTenancyAccessor) GetParent(ctx context.Context, tenantId string) (string, error)
- func (m *MockTenancyAccessor) GetRoot(ctx context.Context) (string, error)
- func (m *MockTenancyAccessor) GetTenancyPath(ctx context.Context, tenantId string) ([]uuid.UUID, error)
- func (m *MockTenancyAccessor) IsLoaded(ctx context.Context) bool
- func (m *MockTenancyAccessor) Reset(tenantRelations []TenancyRelation, root uuid.UUID)
- func (m *MockTenancyAccessor) ResetWithStrIds(tenantRelations []TenancyRelationWithStrId, root string)
- type TenancyRelation
- type TenancyRelationWithStrId
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 (*MockTenancyAccessor) GetChildren ¶
func (*MockTenancyAccessor) GetDescendants ¶
func (*MockTenancyAccessor) GetRoot ¶
func (m *MockTenancyAccessor) GetRoot(ctx context.Context) (string, error)
func (*MockTenancyAccessor) GetTenancyPath ¶
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 ¶
TenancyRelation Deprecated: use the string version instead
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. |
Click to show internal directories.
Click to hide internal directories.