Versions in this module Expand all Collapse all v1 v1.0.7 Jan 8, 2026 Changes in this version + func ParseDeploymentID(deploymentStr string) (uint32, uint64, error) + type Deps struct + Network Network + Provision Provision + VM VM + type GetRequest struct + Deployment string + func ParseGetRequest(payload []byte) (GetRequest, error) + type GetResponse struct + Deployment gridtypes.Deployment + func Get(ctx context.Context, deps Deps, req GetRequest) (GetResponse, error) + type HealthRequest struct + Deployment string + Options map[string]interface{} + func ParseHealthRequest(payload []byte) (HealthRequest, error) + type HealthResponse struct + ContractID uint64 + TwinID uint32 + Workloads []WorkloadHealth + func Health(ctx context.Context, deps Deps, req HealthRequest) (HealthResponse, error) + type HealthStatus string + const HealthHealthy + const HealthUnhealthy + type HistoryRequest struct + Deployment string + func ParseHistoryRequest(payload []byte) (HistoryRequest, error) + type HistoryResponse struct + Deployment string + History []WorkloadTransaction + func History(ctx context.Context, deps Deps, req HistoryRequest) (HistoryResponse, error) + type InfoRequest struct + Deployment string + Verbose bool + Workload string + func ParseInfoRequest(payload []byte) (InfoRequest, error) + type InfoResponse struct + Info interface{} + Logs string + Name string + Type string + WorkloadID string + func Info(ctx context.Context, deps Deps, req InfoRequest) (InfoResponse, error) + type ListDeployment struct + ContractID uint64 + TwinID uint32 + Workloads []ListWorkload + type ListRequest struct + TwinID uint32 + func ParseListRequest(payload []byte) (ListRequest, error) + type ListResponse struct + Deployments []ListDeployment + func List(ctx context.Context, deps Deps, req ListRequest) (ListResponse, error) + type ListWorkload struct + Name string + State string + Type string + type Network interface + Namespace func(ctx context.Context, id zos.NetID) string + type Provision interface + Changes func(ctx context.Context, twin uint32, contract uint64) ([]gridtypes.Workload, error) + Get func(ctx context.Context, twin uint32, contract uint64) (gridtypes.Deployment, error) + List func(ctx context.Context, twin uint32) ([]gridtypes.Deployment, error) + ListTwins func(ctx context.Context) ([]uint32, error) + type VM interface + Exists func(ctx context.Context, id string) bool + Inspect func(ctx context.Context, id string) (pkg.VMInfo, error) + Logs func(ctx context.Context, id string) (string, error) + LogsFull func(ctx context.Context, id string) (string, error) + type WorkloadHealth struct + Checks []checks.HealthCheck + Name string + Status HealthStatus + Type string + WorkloadID string + type WorkloadTransaction struct + Created gridtypes.Timestamp + Message string + Name string + Seq int + State gridtypes.ResultState + Type string