Versions in this module Expand all Collapse all v0 v0.2.7 Nov 28, 2026 v0.2.6 Nov 27, 2026 Changes in this version + type Service struct + APIKeys core.APIKeyStore + Groups core.GroupStore + Sessions core.SessionStore + Settings core.SettingStore + Users core.UserStore + 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