Documentation
¶
Index ¶
- type Service
- func (s Service) AdminSettings() (core.AdminSettings, error)
- func (s Service) AuthSettings() (core.AuthSettings, error)
- func (s Service) BindExternalIdentity(link core.ExternalIdentityLink) error
- func (s Service) CanAccessProject(user core.User, project core.Collection, required string) bool
- func (s Service) ChangePassword(userID, currentPassword, newPassword string) error
- func (s Service) CompleteSetup(input core.SetupRequest) (core.User, error)
- func (s Service) CreateAPIKey(userID, name string) (core.APIKey, error)
- func (s Service) CreateGroup(name string) (core.Group, error)
- func (s Service) DeleteAPIKey(id string) error
- func (s Service) DeveloperSettings() (core.DeveloperSettings, error)
- func (s Service) ExternalIdentityLinks() ([]core.ExternalIdentityLink, error)
- func (s Service) ExternalIdentityLinksForUser(userID string) ([]core.ExternalIdentityLink, error)
- func (s Service) HasCapability(userID, capability, required string) bool
- func (s Service) IdentityProviders() ([]core.IdentityProvider, error)
- func (s Service) InviteUser(name, email, password string) (core.User, error)
- func (s Service) IsAdmin(userID string) bool
- func (s Service) ListAPIKeys(userID string) ([]core.APIKey, error)
- func (s Service) ListAllAPIKeys() ([]core.APIKey, error)
- func (s Service) ListGroups() ([]core.Group, error)
- func (s Service) ListUsers() ([]core.User, error)
- func (s Service) Login(email, password string) (core.Session, core.User, error)
- func (s Service) LoginExternal(email string) (core.Session, core.User, error)
- func (s Service) LoginExternalIdentity(providerID, subject, email string) (core.Session, core.User, error)
- func (s Service) Logout(sessionID string) error
- func (s Service) PermissionGraph() (core.PermissionGraph, error)
- func (s Service) ProjectAccessRules() ([]core.ProjectAccessRule, error)
- func (s Service) ReplaceGroupMembers(id string, memberIDs []string) (core.Group, error)
- func (s Service) ReplaceUserManualGroups(userID string, groupIDs []string) error
- func (s Service) ResetUserPassword(id, password string) error
- func (s Service) SaveAdminSettings(settings core.AdminSettings) (core.AdminSettings, error)
- func (s Service) SaveAuthSettings(settings core.AuthSettings) error
- func (s Service) SaveDeveloperSettings(settings core.DeveloperSettings) (core.DeveloperSettings, error)
- func (s Service) SaveIdentityProviders(items []core.IdentityProvider) error
- func (s Service) SavePermissionGraph(graph core.PermissionGraph) (core.PermissionGraph, error)
- func (s Service) SaveProjectAccessRules(items []core.ProjectAccessRule) error
- func (s Service) SaveWebhooks(items []core.WebhookEndpoint) error
- func (s Service) SetSiteName(name string) error
- func (s Service) SetUserActive(id string, active bool) error
- func (s Service) SetupCompleted() (bool, error)
- func (s Service) SiteName() string
- func (s Service) SyncDirectory(ctx context.Context, directory core.OrgDirectory) ([]core.Group, error)
- func (s Service) UnbindExternalIdentity(userID, providerID string) error
- func (s Service) UpdateProfile(userID, name, email, locale, theme, avatarURL, currentPassword string) (core.User, error)
- func (s Service) UserForAPIKey(raw string) (core.User, error)
- func (s Service) UserForSession(sessionID string) (core.User, error)
- func (s Service) Webhooks() ([]core.WebhookEndpoint, error)
- func (s Service) WithRole(user core.User) core.User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
Users core.UserStore
Groups core.GroupStore
Sessions core.SessionStore
Settings core.SettingStore
APIKeys core.APIKeyStore
}
func (Service) AdminSettings ¶
func (s Service) AdminSettings() (core.AdminSettings, error)
func (Service) AuthSettings ¶
func (s Service) AuthSettings() (core.AuthSettings, error)
func (Service) BindExternalIdentity ¶
func (s Service) BindExternalIdentity(link core.ExternalIdentityLink) error
func (Service) CanAccessProject ¶
func (Service) ChangePassword ¶
func (Service) CompleteSetup ¶
func (Service) CreateAPIKey ¶
func (Service) DeleteAPIKey ¶
func (Service) DeveloperSettings ¶
func (s Service) DeveloperSettings() (core.DeveloperSettings, error)
func (Service) ExternalIdentityLinks ¶
func (s Service) ExternalIdentityLinks() ([]core.ExternalIdentityLink, error)
func (Service) ExternalIdentityLinksForUser ¶
func (s Service) ExternalIdentityLinksForUser(userID string) ([]core.ExternalIdentityLink, error)
func (Service) HasCapability ¶
HasCapability enforces the instance-wide group permission matrix. Project roles still decide which saved analyses and dashboards a user can access; these capabilities decide whether the user may operate on source data.
func (Service) IdentityProviders ¶
func (s Service) IdentityProviders() ([]core.IdentityProvider, error)
func (Service) InviteUser ¶
func (Service) LoginExternal ¶
func (Service) LoginExternalIdentity ¶
func (Service) PermissionGraph ¶
func (s Service) PermissionGraph() (core.PermissionGraph, error)
func (Service) ProjectAccessRules ¶
func (s Service) ProjectAccessRules() ([]core.ProjectAccessRule, error)
func (Service) ReplaceGroupMembers ¶
func (Service) ReplaceUserManualGroups ¶
ReplaceUserManualGroups updates only manually managed groups. System and synchronized memberships remain owned by their respective sources.
func (Service) ResetUserPassword ¶
func (Service) SaveAdminSettings ¶
func (s Service) SaveAdminSettings(settings core.AdminSettings) (core.AdminSettings, error)
func (Service) SaveAuthSettings ¶
func (s Service) SaveAuthSettings(settings core.AuthSettings) error
func (Service) SaveDeveloperSettings ¶
func (s Service) SaveDeveloperSettings(settings core.DeveloperSettings) (core.DeveloperSettings, error)
func (Service) SaveIdentityProviders ¶
func (s Service) SaveIdentityProviders(items []core.IdentityProvider) error
func (Service) SavePermissionGraph ¶
func (s Service) SavePermissionGraph(graph core.PermissionGraph) (core.PermissionGraph, error)
func (Service) SaveProjectAccessRules ¶
func (s Service) SaveProjectAccessRules(items []core.ProjectAccessRule) error
func (Service) SaveWebhooks ¶
func (s Service) SaveWebhooks(items []core.WebhookEndpoint) error