Versions in this module Expand all Collapse all v0 v0.1.21 Jul 31, 2024 Changes in this version + const TCP + const UDP + type Attribute struct + Key string + Value string + type AttributeValue interface + AsBool func() (bool, bool) + AsString func() (string, bool) + type Attributes []Attribute + func (attr Attributes) Find(glob string) AttributeValue + type CPU struct + Attributes []Attribute + Units ResourceValue + func NewCPU(cpu uint64) *CPU + type DeploymentID struct + ID string + Owner string + type Endpoint struct + type GPU struct + Attributes Attributes + Units ResourceValue + func NewGPU(gpu uint64) *GPU + type Group struct + Name string + Services []Service + type Kind int + const LEASED_IP + const RandomPort + const ShareHTTP + type Memory struct + Attributes []Attribute + Quantity ResourceValue + func NewMemory(memory uint64) *Memory + type ResourceUnits struct + CPU *CPU + Endpoints []*Endpoint + GPU *GPU + Memory *Memory + Storage []*Storage + func NewResourceUnits(cpu, gpu, memory uint64, storage []*Storage) *ResourceUnits + type ResourceValue struct + Val *big.Int + func NewResourceValue(v uint64) ResourceValue + type Service struct + Args []string + Command []string + Count int32 + Env []string + Expose []*ServiceExpose + Image string + Name string + OSType string + Params *ServiceParams + Resources *ResourceUnits + type ServiceExpose struct + EndpointSequenceNumber uint32 + ExternalPort uint32 + Global bool + HTTPOptions ServiceExposeHTTPOptions + Hosts []string + IP string + Port uint32 + Proto ServiceProtocol + Service string + type ServiceExposeHTTPOptions struct + MaxBodySize uint32 + NextCases []string + NextTimeout uint32 + NextTries uint32 + ReadTimeout uint32 + SendTimeout uint32 + type ServiceParams struct + Storage []StorageParams + type ServiceProtocol string + func (sp ServiceProtocol) ToString() string + type Storage struct + Attributes Attributes + Name string + Quantity ResourceValue + func NewStorage(name string, quantity uint64, persistent bool, mount string) *Storage + type StorageParams struct + Mount string + Name string + ReadOnly bool