Versions in this module Expand all Collapse all v0 v0.0.2 Feb 16, 2026 Changes in this version + var ErrProviderNotFound = errors.New("ctrlplane: provider not registered") + func HasCapability(p Provider, capability Capability) bool + type Capability string + const CapAutoScale + const CapBlueGreen + const CapCanary + const CapCustomDomains + const CapDeploy + const CapExec + const CapGPU + const CapLogs + const CapProvision + const CapRolling + const CapScale + const CapTLS + const CapVolumes + type DeployRequest struct + Env map[string]string + HealthCheck *HealthCheckSpec + Image string + InstanceID id.ID + ReleaseID id.ID + Strategy string + type DeployResult struct + ProviderRef string + Status string + type Endpoint struct + Port int + Protocol string + Public bool + URL string + type ExecRequest struct + Command []string + Stdin io.Reader + TTY bool + type ExecResult struct + ExitCode int + Stderr []byte + Stdout []byte + type HealthCheckSpec struct + Interval time.Duration + Path string + Port int + Retries int + Timeout time.Duration + type InstanceState string + const StateDestroyed + const StateDestroying + const StateFailed + const StateProvisioning + const StateRunning + const StateStarting + const StateStopped + const StateStopping + type InstanceStatus struct + Endpoints []Endpoint + Message string + Metadata map[string]string + Ready bool + Restarts int + StartedAt *time.Time + State InstanceState + type LogOptions struct + Follow bool + Since time.Time + Tail int + type PortSpec struct + Container int + Host int + Protocol string + type Provider interface + Capabilities func() []Capability + Deploy func(ctx context.Context, req DeployRequest) (*DeployResult, error) + Deprovision func(ctx context.Context, instanceID id.ID) error + Exec func(ctx context.Context, instanceID id.ID, cmd ExecRequest) (*ExecResult, error) + Info func() ProviderInfo + Logs func(ctx context.Context, instanceID id.ID, opts LogOptions) (io.ReadCloser, error) + Provision func(ctx context.Context, req ProvisionRequest) (*ProvisionResult, error) + Resources func(ctx context.Context, instanceID id.ID) (*ResourceUsage, error) + Restart func(ctx context.Context, instanceID id.ID) error + Rollback func(ctx context.Context, instanceID id.ID, releaseID id.ID) error + Scale func(ctx context.Context, instanceID id.ID, spec ResourceSpec) error + Start func(ctx context.Context, instanceID id.ID) error + Status func(ctx context.Context, instanceID id.ID) (*InstanceStatus, error) + Stop func(ctx context.Context, instanceID id.ID) error + type ProviderInfo struct + Name string + Region string + Version string + type ProvisionRequest struct + Annotations map[string]string + Env map[string]string + Image string + InstanceID id.ID + Labels map[string]string + Name string + Ports []PortSpec + Resources ResourceSpec + TenantID string + Volumes []VolumeSpec + type ProvisionResult struct + Endpoints []Endpoint + Metadata map[string]string + ProviderRef string + type Registry struct + func NewRegistry() *Registry + func (r *Registry) All() map[string]Provider + func (r *Registry) Default() (Provider, error) + func (r *Registry) Get(name string) (Provider, error) + func (r *Registry) List() []string + func (r *Registry) Register(name string, p Provider) + func (r *Registry) SetDefault(name string) + type ResourceSpec struct + CPUMillis int + DiskMB int + GPU string + MemoryMB int + Replicas int + type ResourceUsage struct + CPUPercent float64 + DiskUsedMB int + MemoryLimitMB int + MemoryUsedMB int + NetworkInMB float64 + NetworkOutMB float64 + type VolumeSpec struct + MountPath string + Name string + SizeMB int + Type string v0.0.1 Feb 13, 2026