Documentation
¶
Index ¶
- type Repo
- func (r *Repo) AllActiveUserIDs(ctx context.Context) ([]string, error)
- func (r *Repo) AnalyticsSummary(ctx context.Context, since time.Time) ([]app.AnalyticsSummary, error)
- func (r *Repo) ChangePlan(ctx context.Context, workspaceID, toPlan, actor, reason string, now time.Time) (string, error)
- func (r *Repo) CountUsers(ctx context.Context, q, status string) (int, error)
- func (r *Repo) CountWorkspaces(ctx context.Context, q string) (int, error)
- func (r *Repo) ExportAuditCSV(ctx context.Context, q audit.ListQuery, actorIDs []string, maxRows int, ...) (bool, error)
- func (r *Repo) ExportUserdata(ctx context.Context, userID string) (map[string]any, error)
- func (r *Repo) GetStats(ctx context.Context) (*app.PlatformStats, error)
- func (r *Repo) GetUserByID(ctx context.Context, userID string) (app.AdminUser, bool, error)
- func (r *Repo) GetWorkspaceByID(ctx context.Context, id string) (app.AdminWorkspace, bool, error)
- func (r *Repo) ListAudit(ctx context.Context, workspaceID string, limit int) ([]app.AuditEntry, error)
- func (r *Repo) ListSSOProviders(ctx context.Context) ([]app.SSOProviderRow, error)
- func (r *Repo) ListUserWorkspaces(ctx context.Context, userID string) ([]app.AdminUserWorkspace, error)
- func (r *Repo) ListUsers(ctx context.Context, q, status string, limit, offset int) ([]app.AdminUser, error)
- func (r *Repo) ListWorkspaceMembers(ctx context.Context, workspaceID string) ([]app.WsMember, error)
- func (r *Repo) ListWorkspaces(ctx context.Context, q string, limit, offset int) ([]app.AdminWorkspace, error)
- func (r *Repo) PlanExists(ctx context.Context, code string) (bool, error)
- func (r *Repo) QueryAudit(ctx context.Context, q audit.ListQuery) ([]app.AuditEntry, int, error)
- func (r *Repo) QueryAuditExt(ctx context.Context, q audit.ListQuery, actorIDs []string) ([]app.AuditEntry, int, error)
- func (r *Repo) SetPlatformAdmin(ctx context.Context, userID string, isAdmin bool) error
- func (r *Repo) SetUserStatus(ctx context.Context, userID, status string) error
- func (r *Repo) UserIDsByEmailPrefix(ctx context.Context, emailPrefix string, limit int) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
func (*Repo) AllActiveUserIDs ¶
func (*Repo) AnalyticsSummary ¶
func (*Repo) ChangePlan ¶
func (*Repo) CountUsers ¶
func (*Repo) CountWorkspaces ¶
func (*Repo) ExportAuditCSV ¶
func (*Repo) ExportUserdata ¶
func (*Repo) GetUserByID ¶
func (*Repo) GetWorkspaceByID ¶
func (*Repo) ListSSOProviders ¶
func (*Repo) ListUserWorkspaces ¶
func (*Repo) ListWorkspaceMembers ¶
func (*Repo) ListWorkspaces ¶
func (*Repo) QueryAudit ¶
func (*Repo) QueryAuditExt ¶
func (*Repo) SetPlatformAdmin ¶
func (*Repo) SetUserStatus ¶
Click to show internal directories.
Click to hide internal directories.