Versions in this module Expand all Collapse all v0 v0.0.2 Feb 16, 2026 Changes in this version + func ValidateTransition(current, target provider.InstanceState) error + type CreateRequest struct + Env map[string]string + Image string + Labels map[string]string + Name string + Ports []provider.PortSpec + ProviderName string + Region string + Resources provider.ResourceSpec + type Instance struct + CurrentRelease id.ID + Endpoints []provider.Endpoint + Env map[string]string + Image string + Labels map[string]string + Name string + Ports []provider.PortSpec + ProviderName string + ProviderRef string + Region string + Resources provider.ResourceSpec + Slug string + State provider.InstanceState + SuspendedAt *time.Time + TenantID string + type ListOptions struct + Cursor string + Label string + Limit int + Provider string + State string + type ListResult struct + Items []*Instance + NextCursor string + Total int + type ScaleRequest struct + CPUMillis *int + MemoryMB *int + Replicas *int + type Service interface + Create func(ctx context.Context, req CreateRequest) (*Instance, error) + Delete func(ctx context.Context, instanceID id.ID) error + Get func(ctx context.Context, instanceID id.ID) (*Instance, error) + List func(ctx context.Context, opts ListOptions) (*ListResult, error) + Restart func(ctx context.Context, instanceID id.ID) error + Scale func(ctx context.Context, instanceID id.ID, req ScaleRequest) error + Start func(ctx context.Context, instanceID id.ID) error + Stop func(ctx context.Context, instanceID id.ID) error + Suspend func(ctx context.Context, instanceID id.ID, reason string) error + Unsuspend func(ctx context.Context, instanceID id.ID) error + Update func(ctx context.Context, instanceID id.ID, req UpdateRequest) (*Instance, error) + func NewService(store Store, providers *provider.Registry, events event.Bus, ...) Service + type Store interface + CountByTenant func(ctx context.Context, tenantID string) (int, error) + Delete func(ctx context.Context, tenantID string, instanceID id.ID) error + GetByID func(ctx context.Context, tenantID string, instanceID id.ID) (*Instance, error) + GetBySlug func(ctx context.Context, tenantID string, slug string) (*Instance, error) + Insert func(ctx context.Context, inst *Instance) error + List func(ctx context.Context, tenantID string, opts ListOptions) (*ListResult, error) + Update func(ctx context.Context, inst *Instance) error + type UpdateRequest struct + Env map[string]string + Labels map[string]string + Name *string v0.0.1 Feb 13, 2026