graph

package
v0.0.0-...-2d73068 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: Apache-2.0 Imports: 25 Imported by: 1

Documentation

Index

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

type LoadOption func(*gorm.DB) *gorm.DB

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 (g *TestGraph) DefaultRoleMappingByID(id string) *defaultRoleMappingWrapper

func (*TestGraph) ID

func (g *TestGraph) ID(value string) Identifier

func (*TestGraph) IdentityByID

func (g *TestGraph) IdentityByID(id string) *identityWrapper

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) LoadSpace

func (g *TestGraph) LoadSpace(params ...interface{}) *spaceWrapper

func (*TestGraph) LoadTeam

func (g *TestGraph) LoadTeam(params ...interface{}) *teamWrapper

func (*TestGraph) LoadToken

func (g *TestGraph) LoadToken(params ...interface{}) *tokenWrapper

func (*TestGraph) LoadUser

func (g *TestGraph) LoadUser(params ...interface{}) *userWrapper

func (*TestGraph) OrganizationByID

func (g *TestGraph) OrganizationByID(id string) *organizationWrapper

func (*TestGraph) ResourceByID

func (g *TestGraph) ResourceByID(id string) *resourceWrapper

func (*TestGraph) ResourceTypeByID

func (g *TestGraph) ResourceTypeByID(id uuid.UUID) *resourceTypeWrapper

func (*TestGraph) RoleByID

func (g *TestGraph) RoleByID(id string) *roleWrapper

func (*TestGraph) RoleByNameAndResourceType

func (g *TestGraph) RoleByNameAndResourceType(name, resourceType string) *roleWrapper

func (*TestGraph) RoleMappingByID

func (g *TestGraph) RoleMappingByID(id string) *roleMappingWrapper

func (*TestGraph) SpaceByID

func (g *TestGraph) SpaceByID(id string) *spaceWrapper

func (*TestGraph) TeamByID

func (g *TestGraph) TeamByID(id string) *teamWrapper

func (*TestGraph) UserByID

func (g *TestGraph) UserByID(id string) *userWrapper

Jump to

Keyboard shortcuts

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