Documentation ¶
Index ¶
- Constants
- func IntializeBackend(db *gorm.DB) error
- func NewAccess(ctx context.Context, namespace string) (*domain.Access, error)
- func NewIdentity(ctx context.Context, namespace string) (*domain.Identity, error)
- func NewMetadata(namespace, name, typ string) domain.Metadata
- func NewNamespace(ctx context.Context, namespaceName string) (*domain.Namespace, error)
- func NewRole(ctx context.Context, namespace string) (*domain.Role, error)
- func NewRule(ctx context.Context, namespace string) (*domain.Rule, error)
- func NewSession(ctx context.Context, identityID uint, namespace string) (*domain.Session, error)
- func NewUser(ctx context.Context, namespace string) (*domain.User, error)
- func NewUserName(ctx context.Context, namespace string, name string) (string, error)
Constants ¶
View Source
const ( TypeNamespace = "namespace" TypeUser = "user" TypeRole = "role" TypeRule = "rule" TypeSession = "session" TypeIdentity = "identity" TypeAccess = "access" )
Variables ¶
This section is empty.
Functions ¶
func IntializeBackend ¶
func NewIdentity ¶
func NewMetadata ¶
func NewNamespace ¶
func NewSession ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.