Documentation ¶
Index ¶
- Constants
- type Provider
- func (p *Provider) AddUserToWorkspace(workspaceID, userID string, as rubix.MembershipType, partnerId string) error
- func (p *Provider) AfterUpdate(exec func()) error
- func (p *Provider) ClearUserStatusID(workspaceUuid, userUuid, statusID string) error
- func (p *Provider) ClearUserStatusLogout(workspaceUuid, userUuid string) error
- func (p *Provider) Close() error
- func (p *Provider) Connect() error
- func (p *Provider) CreateRole(workspace, role, name, description string, permissions, users []string) error
- func (p *Provider) CreateUser(userID, name, email string) error
- func (p *Provider) CreateWorkspace(workspaceUuid, name, alias, domain string) error
- func (p *Provider) DeleteRole(workspace, role string) error
- func (p *Provider) GetAuthData(workspaceUuid, userUuid string, appIDs ...app.GlobalAppID) ([]rubix.DataResult, error)
- func (p *Provider) GetPermissionStatements(lookup rubix.Lookup, permissions ...app.ScopedKey) ([]app.PermissionStatement, error)
- func (p *Provider) GetRole(workspace, role string) (*rubix.Role, error)
- func (p *Provider) GetRoles(workspace string) ([]rubix.Role, error)
- func (p *Provider) GetUserRoles(workspace, user string) ([]rubix.UserRole, error)
- func (p *Provider) GetUserStatus(workspaceUuid, userUuid string) (rubix.UserStatus, error)
- func (p *Provider) GetUserWorkspaceUUIDs(userId string) ([]string, error)
- func (p *Provider) GetWorkspaceMembers(workspaceUuid string, userIDs ...string) ([]rubix.Membership, error)
- func (p *Provider) GetWorkspaceUUIDByAlias(alias string) (string, error)
- func (p *Provider) Initialize() error
- func (p *Provider) MutateRole(workspace, role string, options ...rubix.MutateRoleOption) error
- func (p *Provider) MutateUser(workspace, user string, options ...rubix.MutateUserOption) error
- func (p *Provider) RemoveUserFromWorkspace(workspace, user string) error
- func (p *Provider) RetrieveWorkspace(workspaceUuid string) (*rubix.Workspace, error)
- func (p *Provider) RetrieveWorkspaceByDomain(domain string) (*rubix.Workspace, error)
- func (p *Provider) RetrieveWorkspaces(workspaceUuids ...string) (map[string]*rubix.Workspace, error)
- func (p *Provider) SetAuthData(workspaceUuid, userUuid string, value rubix.DataResult, forceUpdate bool) error
- func (p *Provider) SetMembershipState(workspace, user string, userState rubix.MembershipState) error
- func (p *Provider) SetMembershipType(workspace, user string, MembershipType rubix.MembershipType) error
- func (p *Provider) SetUserStatus(workspaceUuid, userUuid string, status rubix.UserStatus) (bool, error)
- func (p *Provider) Sync() error
- func (p *Provider) UserHasPermission(lookup rubix.Lookup, permissions ...app.ScopedKey) (bool, error)
Constants ¶
View Source
const ProviderKey = "sql"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct { PrimaryDSN string `json:"primaryDsn"` // user:password@tcp(hostname:port) Database string `json:"database"` SqlLite bool `json:"sqlLite"` // contains filtered or unexported fields }
func (*Provider) AddUserToWorkspace ¶
func (*Provider) AfterUpdate ¶
func (*Provider) ClearUserStatusID ¶
func (*Provider) ClearUserStatusLogout ¶
func (*Provider) CreateRole ¶
func (*Provider) CreateUser ¶
func (*Provider) CreateWorkspace ¶
func (*Provider) DeleteRole ¶
func (*Provider) GetAuthData ¶
func (p *Provider) GetAuthData(workspaceUuid, userUuid string, appIDs ...app.GlobalAppID) ([]rubix.DataResult, error)
func (*Provider) GetPermissionStatements ¶
func (*Provider) GetUserRoles ¶
func (*Provider) GetUserStatus ¶
func (p *Provider) GetUserStatus(workspaceUuid, userUuid string) (rubix.UserStatus, error)
func (*Provider) GetUserWorkspaceUUIDs ¶
func (*Provider) GetWorkspaceMembers ¶
func (p *Provider) GetWorkspaceMembers(workspaceUuid string, userIDs ...string) ([]rubix.Membership, error)
GetWorkspaceMembers - userID is optional
func (*Provider) GetWorkspaceUUIDByAlias ¶
func (*Provider) Initialize ¶
func (*Provider) MutateRole ¶
func (p *Provider) MutateRole(workspace, role string, options ...rubix.MutateRoleOption) error
func (*Provider) MutateUser ¶
func (p *Provider) MutateUser(workspace, user string, options ...rubix.MutateUserOption) error
func (*Provider) RemoveUserFromWorkspace ¶
func (*Provider) RetrieveWorkspace ¶
func (*Provider) RetrieveWorkspaceByDomain ¶
func (*Provider) RetrieveWorkspaces ¶
func (*Provider) SetAuthData ¶
func (*Provider) SetMembershipState ¶
func (p *Provider) SetMembershipState(workspace, user string, userState rubix.MembershipState) error
func (*Provider) SetMembershipType ¶
func (p *Provider) SetMembershipType(workspace, user string, MembershipType rubix.MembershipType) error
func (*Provider) SetUserStatus ¶
Click to show internal directories.
Click to hide internal directories.