Documentation ¶
Index ¶
- type Identifier
- type LoadOption
- type TestGraph
- func (g *TestGraph) CreateDefaultRoleMapping(params ...interface{}) *defaultRoleMappingWrapper
- func (g *TestGraph) CreateExternalToken(params ...interface{}) *externalTokenWrapper
- func (g *TestGraph) CreateIdentity(params ...interface{}) *identityWrapper
- func (g *TestGraph) CreateIdentityRole(params ...interface{}) *identityRoleWrapper
- func (g *TestGraph) CreateInvitation(params ...interface{}) *invitationWrapper
- func (g *TestGraph) CreateOrganization(params ...interface{}) *organizationWrapper
- func (g *TestGraph) CreatePrivilegeCache(params ...interface{}) *privilegeCacheWrapper
- func (g *TestGraph) CreateResource(params ...interface{}) *resourceWrapper
- func (g *TestGraph) CreateResourceType(params ...interface{}) *resourceTypeWrapper
- func (g *TestGraph) CreateRole(params ...interface{}) *roleWrapper
- func (g *TestGraph) CreateRoleMapping(params ...interface{}) *roleMappingWrapper
- func (g *TestGraph) CreateSpace(params ...interface{}) *spaceWrapper
- func (g *TestGraph) CreateTeam(params ...interface{}) *teamWrapper
- func (g *TestGraph) CreateToken(params ...interface{}) *tokenWrapper
- func (g *TestGraph) CreateUser(params ...interface{}) *userWrapper
- func (g *TestGraph) DefaultRoleMappingByID(id string) *defaultRoleMappingWrapper
- func (g *TestGraph) ID(value string) Identifier
- func (g *TestGraph) IdentityByID(id string) *identityWrapper
- func (g *TestGraph) LoadIdentity(params ...interface{}) *identityWrapper
- func (g *TestGraph) LoadOrganization(params ...interface{}) *organizationWrapper
- func (g *TestGraph) LoadPrivilegeCache(params ...interface{}) *privilegeCacheWrapper
- func (g *TestGraph) LoadResource(params ...interface{}) *resourceWrapper
- func (g *TestGraph) LoadResourceType(params ...interface{}) *resourceTypeWrapper
- func (g *TestGraph) LoadSpace(params ...interface{}) *spaceWrapper
- func (g *TestGraph) LoadTeam(params ...interface{}) *teamWrapper
- func (g *TestGraph) LoadToken(params ...interface{}) *tokenWrapper
- func (g *TestGraph) LoadUser(params ...interface{}) *userWrapper
- func (g *TestGraph) OrganizationByID(id string) *organizationWrapper
- func (g *TestGraph) ResourceByID(id string) *resourceWrapper
- func (g *TestGraph) ResourceTypeByID(id uuid.UUID) *resourceTypeWrapper
- func (g *TestGraph) RoleByID(id string) *roleWrapper
- func (g *TestGraph) RoleByNameAndResourceType(name, resourceType string) *roleWrapper
- func (g *TestGraph) RoleMappingByID(id string) *roleMappingWrapper
- func (g *TestGraph) SpaceByID(id string) *spaceWrapper
- func (g *TestGraph) TeamByID(id string) *teamWrapper
- func (g *TestGraph) UserByID(id string) *userWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Identifier ¶
type Identifier struct {
// contains filtered or unexported fields
}
Identifier is used to explicitly set the unique identifier for a graph object
type LoadOption ¶
LoadOption a DB option when loading records
func Unscoped ¶
func Unscoped() LoadOption
Unscoped configures the database to "unscoped", so that soft-deleted records can be retrieved
type TestGraph ¶
type TestGraph struct {
// contains filtered or unexported fields
}
TestGraph manages an object graph of domain objects for the purposes of testing
func NewTestGraph ¶
func NewTestGraph(t *testing.T, app application.Application, ctx context.Context, db *gorm.DB) TestGraph
NewTestGraph creates a new test graph
func (*TestGraph) CreateDefaultRoleMapping ¶
func (g *TestGraph) CreateDefaultRoleMapping(params ...interface{}) *defaultRoleMappingWrapper
func (*TestGraph) CreateExternalToken ¶
func (g *TestGraph) CreateExternalToken(params ...interface{}) *externalTokenWrapper
func (*TestGraph) CreateIdentity ¶
func (g *TestGraph) CreateIdentity(params ...interface{}) *identityWrapper
func (*TestGraph) CreateIdentityRole ¶
func (g *TestGraph) CreateIdentityRole(params ...interface{}) *identityRoleWrapper
func (*TestGraph) CreateInvitation ¶
func (g *TestGraph) CreateInvitation(params ...interface{}) *invitationWrapper
func (*TestGraph) CreateOrganization ¶
func (g *TestGraph) CreateOrganization(params ...interface{}) *organizationWrapper
func (*TestGraph) CreatePrivilegeCache ¶
func (g *TestGraph) CreatePrivilegeCache(params ...interface{}) *privilegeCacheWrapper
func (*TestGraph) CreateResource ¶
func (g *TestGraph) CreateResource(params ...interface{}) *resourceWrapper
func (*TestGraph) CreateResourceType ¶
func (g *TestGraph) CreateResourceType(params ...interface{}) *resourceTypeWrapper
func (*TestGraph) CreateRole ¶
func (g *TestGraph) CreateRole(params ...interface{}) *roleWrapper
func (*TestGraph) CreateRoleMapping ¶
func (g *TestGraph) CreateRoleMapping(params ...interface{}) *roleMappingWrapper
func (*TestGraph) CreateSpace ¶
func (g *TestGraph) CreateSpace(params ...interface{}) *spaceWrapper
CreateSpace creates a new space wrapper object
func (*TestGraph) CreateTeam ¶
func (g *TestGraph) CreateTeam(params ...interface{}) *teamWrapper
func (*TestGraph) CreateToken ¶
func (g *TestGraph) CreateToken(params ...interface{}) *tokenWrapper
func (*TestGraph) CreateUser ¶
func (g *TestGraph) CreateUser(params ...interface{}) *userWrapper
CreateUser creates a new user wrapper object
func (*TestGraph) DefaultRoleMappingByID ¶
func (*TestGraph) ID ¶
func (g *TestGraph) ID(value string) Identifier
func (*TestGraph) IdentityByID ¶
func (*TestGraph) LoadIdentity ¶
func (g *TestGraph) LoadIdentity(params ...interface{}) *identityWrapper
func (*TestGraph) LoadOrganization ¶
func (g *TestGraph) LoadOrganization(params ...interface{}) *organizationWrapper
func (*TestGraph) LoadPrivilegeCache ¶
func (g *TestGraph) LoadPrivilegeCache(params ...interface{}) *privilegeCacheWrapper
func (*TestGraph) LoadResource ¶
func (g *TestGraph) LoadResource(params ...interface{}) *resourceWrapper
func (*TestGraph) LoadResourceType ¶
func (g *TestGraph) LoadResourceType(params ...interface{}) *resourceTypeWrapper
func (*TestGraph) OrganizationByID ¶
func (*TestGraph) ResourceByID ¶
func (*TestGraph) ResourceTypeByID ¶
func (*TestGraph) RoleByNameAndResourceType ¶
func (*TestGraph) RoleMappingByID ¶
Source Files ¶
- default_role_mapping_wrapper.go
- external_token_wrapper.go
- identity_role_wrapper.go
- identity_wrapper.go
- invitation_wrapper.go
- organization_wrapper.go
- privilege_cache_wrapper.go
- resource_type_wrapper.go
- resource_wrapper.go
- role_mapping_wrapper.go
- role_wrapper.go
- space_wrapper.go
- team_wrapper.go
- test_graph.go
- token_wrapper.go
- user_wrapper.go
Click to show internal directories.
Click to hide internal directories.