Versions in this module Expand all Collapse all v1 v1.0.0 Aug 25, 2026 Changes in this version + const ActionRateLimitHit + const EnvRateLimitAPI + const EnvRateLimitAuth + const EnvRateLimitWebhook + func New(d Deps) http.Handler + func RoutesMarkdown() string + type APIError struct + Msg string + Status int + func (e *APIError) Error() string + type Client struct + BaseURL string + HTTP *http.Client + Token string + func NewClient(baseURL, token string) *Client + func (c *Client) AuditExport(ctx context.Context, format string, w io.Writer) error + func (c *Client) AuditList(ctx context.Context, after, limit int64) ([]audit.Row, error) + func (c *Client) AuditVerify(ctx context.Context) (audit.Report, error) + func (c *Client) BackupAddon(ctx context.Context, app, name string) (addons.BackupView, error) + func (c *Client) Bootstrap(ctx context.Context, email, password string) (UserView, error) + func (c *Client) CompleteTOTP(ctx context.Context, code string) error + func (c *Client) ConfirmTOTP(ctx context.Context, code string) ([]string, error) + func (c *Client) CreateAddon(ctx context.Context, app, kind, name string) (addons.View, error) + func (c *Client) CreateApp(ctx context.Context, req deploy.CreateAppRequest) (deploy.AppView, error) + func (c *Client) CreateToken(ctx context.Context, name string) (string, error) + func (c *Client) CreateUser(ctx context.Context, email, password, role string) (UserView, error) + func (c *Client) DeleteAddon(ctx context.Context, app, name string, removeData bool) error + func (c *Client) DeleteSecret(ctx context.Context, app, name string) error + func (c *Client) DeleteUser(ctx context.Context, id string) error + func (c *Client) Deploy(ctx context.Context, app string, req deploy.DeployRequest) (deploy.DeploymentView, error) + func (c *Client) DeployStatic(ctx context.Context, req deploy.StaticRequest) (deploy.StaticResult, error) + func (c *Client) DeploymentLogs(ctx context.Context, id string, after int64) ([]deploy.LogLine, error) + func (c *Client) DownloadSBOM(ctx context.Context, releaseID, format string, w io.Writer) error + func (c *Client) EnrollTOTP(ctx context.Context) (secret, otpauthURL string, err error) + func (c *Client) FollowLogs(ctx context.Context, id string, after int64, fn func(deploy.LogLine)) (string, error) + func (c *Client) GetAddon(ctx context.Context, app, name string) (addons.View, error) + func (c *Client) GetApp(ctx context.Context, app string) (deploy.AppView, error) + func (c *Client) GetDeployment(ctx context.Context, id string) (deploy.DeploymentView, error) + func (c *Client) Health(ctx context.Context) (map[string]string, error) + func (c *Client) ListAddons(ctx context.Context, app string) ([]addons.View, error) + func (c *Client) ListAppViews(ctx context.Context) ([]deploy.AppView, error) + func (c *Client) ListApps(ctx context.Context) ([]deploy.AppStatus, error) + func (c *Client) ListBackups(ctx context.Context, app, name string, limit int) ([]addons.BackupView, error) + func (c *Client) ListDeployments(ctx context.Context, app string, limit int) ([]deploy.DeploymentView, error) + func (c *Client) ListReleases(ctx context.Context, app string, limit int) ([]deploy.ReleaseView, error) + func (c *Client) ListSecrets(ctx context.Context, app string) ([]deploy.SecretMeta, error) + func (c *Client) ListSessions(ctx context.Context) ([]SessionView, error) + func (c *Client) ListUsers(ctx context.Context) ([]UserDetail, error) + func (c *Client) Login(ctx context.Context, email, password string) (LoginResponse, error) + func (c *Client) Me(ctx context.Context) (UserView, error) + func (c *Client) RecordUpdate(ctx context.Context, ev update.Event) error + func (c *Client) ReleaseScan(ctx context.Context, releaseID string) (scan.Result, error) + func (c *Client) RemoveApp(ctx context.Context, app string) error + func (c *Client) ResetUserPassword(ctx context.Context, id, password string) error + func (c *Client) RestoreAddon(ctx context.Context, app, name, backupID string) error + func (c *Client) RevokeSession(ctx context.Context, id string) error + func (c *Client) Rollback(ctx context.Context, app, releaseID string) (deploy.DeploymentView, error) + func (c *Client) SelfAudit(ctx context.Context) (selfaudit.Report, error) + func (c *Client) SetGitSource(ctx context.Context, app string, req deploy.SetGitSourceRequest) (deploy.GitSourceResult, error) + func (c *Client) SetScanPolicy(ctx context.Context, app, policy string) (deploy.AppView, error) + func (c *Client) SetSecret(ctx context.Context, app, name, value string) (deploy.SecretMeta, error) + func (c *Client) System(ctx context.Context) (SystemInfo, error) + func (c *Client) UpdateUser(ctx context.Context, id string, patch UserPatch) (UserDetail, error) + type CreateAddonRequest struct + Kind string + Name string + type Deps struct + Addons *addons.Service + Audit audit.Sink + Auth *auth.Service + Broker *deploy.Broker + CacheUsage func(context.Context) (int64, error) + Chain *audit.Chain + Docker *docker.Client + Keeper *secrets.Keeper + Logger *slog.Logger + Logs *deploy.Logs + RateLimits *RateLimits + SelfAudit *selfaudit.Service + Service *deploy.Service + Sessions *auth.Sessions + Static *deploy.Static + Store *store.Store + Token string + Updates *update.Recorder + Version string + Webhooks *webhooks.Handler + type ErrorResponse struct + Error string + type LoginResponse struct + NeedsTOTP bool + User UserView + type Principal struct + Bootstrap bool + SessionID string + TOTPPending bool + User db.User + func PrincipalFrom(ctx context.Context) (Principal, bool) + func (p Principal) Actor() deploy.Actor + func (p Principal) Can(perm auth.Permission) bool + type RateLimit struct + Burst int + PerMinute int + func ParseRateLimit(s string) (RateLimit, error) + func (l RateLimit) String() string + type RateLimits struct + API RateLimit + Auth RateLimit + Webhook RateLimit + func DefaultRateLimits() RateLimits + func RateLimitsFromEnv(getenv func(string) string) (RateLimits, error) + type RestoreRequest struct + BackupID string + type Route struct + Method string + Pattern string + func Routes() []Route + type SessionView struct + CreatedAt string + Current bool + ExpiresAt string + ID string + IP string + LastSeenAt string + UserAgent string + type SystemInfo struct + BuildCacheBytes int64 + Containers int + Images int + OperatingSystem string + SecurityOptions []string + ServerVersion string + type UserDetail struct + Disabled bool + UpdatedAt string + type UserPatch struct + Disabled *bool + Role *string + type UserView struct + CreatedAt string + Email string + ID string + Role string + TOTPEnabled bool