Documentation ¶
Index ¶
- Constants
- Variables
- type Provider
- func (p Provider) AddMembership(workspaceUUID, identityID string, Role rubix.MembershipRole) error
- func (p *Provider) Close() error
- func (p *Provider) Connect() 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) GetUserStatus(workspaceUuid, userUuid string) (rubix.UserStatus, error)
- func (p Provider) GetUserWorkspaceUUIDs(userId string) ([]string, error)
- func (p Provider) GetWorkspaceUUIDByAlias(alias string) (string, error)
- func (p Provider) GetWorkspaceUserIDs(workspaceUuid string) ([]string, error)
- func (p *Provider) Init() error
- func (p Provider) RetrieveWorkspace(workspaceUuid string) (*rubix.Workspace, error)
- func (p Provider) SetUserStatus(workspaceUuid, userUuid string, status rubix.UserStatus) (bool, error)
- func (p Provider) StoreWorkspace(w *rubix.Workspace) error
- func (p Provider) UserHasPermission(lookup rubix.Lookup, permissions ...app.ScopedKey) (bool, error)
Constants ¶
View Source
const ProviderKey = "datastore"
Variables ¶
View Source
var ErrNotFound = errors.New("datastore: not found")
View Source
var ErrReadFailure = errors.New("datastore: read failure")
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct { ProjectID string `json:"projectId"` // contains filtered or unexported fields }
func (Provider) AddMembership ¶
func (p Provider) AddMembership(workspaceUUID, identityID string, Role rubix.MembershipRole) error
func (*Provider) GetAuthData ¶
func (p *Provider) GetAuthData(workspaceUuid, userUuid string, appIDs ...app.GlobalAppID) ([]rubix.DataResult, error)
func (Provider) GetPermissionStatements ¶
func (Provider) GetUserStatus ¶
func (p Provider) GetUserStatus(workspaceUuid, userUuid string) (rubix.UserStatus, error)
func (Provider) GetUserWorkspaceUUIDs ¶
func (Provider) GetWorkspaceUUIDByAlias ¶
func (Provider) GetWorkspaceUserIDs ¶
func (Provider) RetrieveWorkspace ¶
func (Provider) SetUserStatus ¶
Click to show internal directories.
Click to hide internal directories.