Versions in this module Expand all Collapse all v0 v0.51.0 Jun 30, 2026 Changes in this version type BuildParams + DiskSize string + Ports []string + ProgramPath string type VolumeMountSpec + Label string v0.50.0 Jun 29, 2026 v0.49.0 Jun 29, 2026 Changes in this version + func Listen(endpoint string) (net.Listener, error) + func NewFrameReader(r io.Reader) *frameReader + func NewFrameWriter(w io.Writer) *frameWriter + type AuthParams struct + Token string + type BuildParams struct + Args []string + CPUs int + Entrypoint string + Env map[string]string + Memory string + Name string + Port int + Program string + Tag string + type Client struct + func Dial(endpoint string) (*Client, error) + func DialWithToken(endpoint, token string) (*Client, error) + func (c *Client) Attach(_ context.Context, id string, out io.Writer) error + func (c *Client) Close() error + func (c *Client) DNSList(_ context.Context, network string) ([]DNSRecord, error) + func (c *Client) DNSResolve(_ context.Context, name, network string) (DNSRecord, error) + func (c *Client) DNSResolveAll(_ context.Context, name, network string) ([]DNSRecord, error) + func (c *Client) DaemonVersion(_ context.Context) (string, error) + func (c *Client) Get(_ context.Context, id string) (VMInfo, error) + func (c *Client) ImageBuild(_ context.Context, p BuildParams, contextTar io.Reader) (ImageManifestResult, error) + func (c *Client) ImageGet(_ context.Context, ref string) (ImageManifestResult, error) + func (c *Client) ImageList(_ context.Context) ([]ImageManifestResult, error) + func (c *Client) ImageRemove(_ context.Context, ref string) error + func (c *Client) Inspect(_ context.Context, id string) (VMDetail, error) + func (c *Client) Kill(_ context.Context, id string) error + func (c *Client) List(_ context.Context) ([]VMInfo, error) + func (c *Client) Logs(_ context.Context, id string) (LogsResponse, error) + func (c *Client) NetworkAllocateIP(_ context.Context, networkName string) (string, error) + func (c *Client) NetworkCreate(_ context.Context, name, subnet, driver string) (NetworkInfo, error) + func (c *Client) NetworkGet(_ context.Context, name string) (NetworkInfo, error) + func (c *Client) NetworkList(_ context.Context) ([]NetworkInfo, error) + func (c *Client) NetworkReleaseIP(_ context.Context, networkName, ip string) error + func (c *Client) NetworkRemove(_ context.Context, name string) error + func (c *Client) NodeList(_ context.Context) (NodeListResponse, error) + func (c *Client) Remove(_ context.Context, id string) error + func (c *Client) Run(_ context.Context, p RunParams) (VMInfo, error) + func (c *Client) ServiceGet(_ context.Context, name string) (ServiceInfoResult, error) + func (c *Client) ServiceList(_ context.Context) ([]ServiceInfoResult, error) + func (c *Client) ServiceRemove(_ context.Context, name string) error + func (c *Client) ServiceRun(_ context.Context, p ServiceRunParams) (ServiceInfoResult, error) + func (c *Client) ServiceScale(_ context.Context, name string, desiredReplicas int) (ServiceInfoResult, error) + func (c *Client) ServiceUpdate(_ context.Context, name, image string, healthTimeout int) (ServiceInfoResult, error) + func (c *Client) Shutdown(_ context.Context) error + func (c *Client) Signal(_ context.Context, id, sig string) error + func (c *Client) Stats(_ context.Context, id string) (VMStatsResponse, error) + func (c *Client) Stop(_ context.Context, id string, force bool) error + type DNSRecord struct + IP string + Name string + Network string + VMID string + type DNSResolveParams struct + Name string + Network string + type HealthCheckSpec struct + Interval int + Path string + Port int + Retries int + Timeout int + Type string + type IDParams struct + ID string + type ImageManifestResult struct + Created string + DiskDigest string + DiskSize int64 + Name string + Tag string + type LogsResponse struct + ID string + Logs string + type NetworkConnectParams struct + IP string + Network string + VMID string + type NetworkCreateParams struct + Driver string + Name string + Subnet string + type NetworkInfo struct + Bridge string + CreatedAt string + Driver string + Gateway string + Name string + Subnet string + type NodeListResponse struct + Nodes []NodeRow + type NodeRow struct + Addr string + CPUCap int + ID string + LastSeen string + MemCap int64 + Status string + VMCount int + type PortMapSpec struct + GuestPort uint16 + HostPort uint16 + Protocol string + func ParsePortMap(s string) (PortMapSpec, error) + func ParsePortMaps(specs []string) ([]PortMapSpec, error) + type RPCError struct + Code int + Message string + type Request struct + ID int64 + JSONRPC string + Method string + Params json.RawMessage + type Response struct + Error *RPCError + ID int64 + JSONRPC string + Result json.RawMessage + type RestartSpec struct + MaxRetries int + Policy string + type RunParams struct + Attach bool + AutoRemove bool + BridgeName string + CPUShares uint64 + CPUs int + DiskBPS int64 + DiskIOPS uint64 + Env []string + GatewayIP string + HealthCheck *HealthCheckSpec + IPAddress string + Image string + ImagePath string + Memory string + MemoryMax int64 + Name string + NetworkName string + PortMaps []PortMapSpec + Restart *RestartSpec + SubnetMask string + Volumes []VolumeMountSpec + type ServiceInfoResult struct + CreatedAt string + DesiredReplicas int + Env []string + Health string + Image string + Name string + ReadyReplicas int + ReplicaIDs []string + Strategy string + UpdatedAt string + type ServiceRunParams struct + CPUs int + Env []string + HealthCheck *HealthCheckSpec + HealthTimeout int + Image string + Memory string + Name string + NetworkName string + PortMaps []PortMapSpec + Replicas int + Restart *RestartSpec + Strategy string + type ServiceScaleParams struct + DesiredReplicas int + Name string + type ServiceUpdateParams struct + HealthTimeout int + Image string + Name string + type SignalParams struct + ID string + Signal string + type StopParams struct + Force bool + ID string + type VMDetail struct + CPUs int + CreatedAt string + DaemonRecovered bool + DiskBPS int64 + DiskIOPS uint64 + Env []string + GatewayIP string + Health string + ID string + IPAddress string + Image string + Memory string + Name string + Ports []PortMapSpec + RestartCount int + RestartPolicy string + StartedAt *string + State string + StoppedAt *string + Volumes []VolumeMountSpec + type VMInfo struct + Health string + ID string + Image string + Name string + State string + type VMStatsResponse struct + CPUPct float64 + DiskBytes int64 + ID string + MemBytes int64 + NetRxBytes int64 + NetTxBytes int64 + Source string + State string + Timestamp string + type VolumeMountSpec struct + DiskPath string + GuestPath string + ReadOnly bool v0.48.0 Jun 26, 2026