httpapi

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 71 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(app *platform.App, adminAssets string) http.Handler

func RunAppleRevocations added in v0.3.0

func RunAppleRevocations(ctx context.Context, app *platform.App) error

RunAppleRevocations is scheduled separately from local lifecycle transitions.

func RunBillingReconciliation

func RunBillingReconciliation(ctx context.Context, app *platform.App, runID string) error

func RunLifecycleSweep

func RunLifecycleSweep(ctx context.Context, app *platform.App) error

RunLifecycleSweep records time-driven transitions exactly once and emits their events in the same transaction as the state marker.

func RunStorageSweep

func RunStorageSweep(ctx context.Context, app *platform.App) error

RunStorageSweep expires abandoned reservations and completes queued S3 deletions. Row locks make the sweep safe across any number of workers.

Types

type OAuthConnection added in v0.5.0

type OAuthConnection struct {
	ID              uuid.UUID   `json:"id"`
	ApplicationID   uuid.UUID   `json:"application_id"`
	ResourceID      uuid.UUID   `json:"resource_id"`
	ResourceVersion int64       `json:"resource_version"`
	UserID          uuid.UUID   `json:"user_id"`
	ClientID        string      `json:"client_id"`
	SessionID       uuid.UUID   `json:"session_id"`
	Capabilities    []string    `json:"capabilities"`
	PersonalAccess  bool        `json:"personal_access"`
	WorkspaceIDs    []uuid.UUID `json:"workspace_ids"`
	ExpiresAt       time.Time   `json:"expires_at"`
	RevokedAt       *time.Time  `json:"revoked_at"`
	Version         int64       `json:"version"`
	CreatedAt       time.Time   `json:"created_at"`
	UpdatedAt       time.Time   `json:"updated_at"`
}

type OAuthResource added in v0.5.0

type OAuthResource struct {
	ID                  uuid.UUID            `json:"id"`
	ApplicationID       uuid.UUID            `json:"application_id"`
	URI                 string               `json:"uri"`
	Name                string               `json:"name"`
	Enabled             bool                 `json:"enabled"`
	AllowClientMetadata bool                 `json:"allow_client_metadata"`
	ClientIDs           []string             `json:"client_ids"`
	Capabilities        []ResourceCapability `json:"capabilities"`
	Version             int64                `json:"version"`
	CreatedAt           time.Time            `json:"created_at"`
	UpdatedAt           time.Time            `json:"updated_at"`
}

type ResourceCapability added in v0.5.0

type ResourceCapability struct {
	Key         string   `json:"key"`
	Name        string   `json:"name"`
	Context     string   `json:"context"`
	Permissions []string `json:"permissions"`
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL