Versions in this module Expand all Collapse all v0 v0.0.2 Jun 1, 2021 v0.0.1 Jun 1, 2021 Changes in this version + const AdminRole + const GuestRole + const RootRole + const RuleSetAdmin + const RuleSetGuest + const RuleSetRoot + const RuleSetUnknown + const UnknownRole + var ErrNotAllowed = errors.New("not allowed") + var ErrNotFound = errors.New("not found") + var ErrSessionTimedOut = errors.New("session timed out") + type Access struct + IPAddress string + SessionID uint + type Certificate struct + IdentityID uint + type DatabaseConfig struct + Password string + Path string + Username string + type HttpServerConfig struct + Address string + AllowedOrigins []string + CaCert string + Certificate string + PrivateKey string + WebRoot string + type Identity struct + Certificates []Certificate + Password Password + Roles []Role + type Metadata struct + CreatedAt time.Time + ID uint + Name string + Namespace string + Type string + UpdatedAt time.Time + type Namespace struct + type Password struct + Password string + Username string + type Role struct + Rules []Rule + type RootConfig struct + Password string + Username string + type Rule struct + Instances []Metadata + Name string + Namespace string + ObjectType string + Operation string + func (r *Rule) AsPermissive(other *Rule) bool + func (r *Rule) CheckAccess(namespace, name, objectType, operation string, instances []Metadata) error + type SOIDConfig struct + Database DatabaseConfig + HTTPServer HttpServerConfig + Root RootConfig + SoidNamespace string + SystemAdminUserPassword string + type Session struct + Access []*Access + IdentityID uint + ValidUntil time.Time + func (s *Session) AddAccess(ctx context.Context, access *Access) + type User struct + Country string + Email string + FirstName string + IdentityID uint + LastName string + Phone string