Documentation ¶
Index ¶
- Constants
- type Attribute
- type AttributeValue
- type Attributes
- type CPU
- type DeploymentID
- type Endpoint
- type GPU
- type Group
- type Kind
- type Memory
- type ResourceUnits
- type ResourceValue
- type Service
- type ServiceExpose
- type ServiceExposeHTTPOptions
- type ServiceParams
- type ServiceProtocol
- type Storage
- type StorageParams
Constants ¶
View Source
const ( TCP = ServiceProtocol("TCP") UDP = ServiceProtocol("UDP") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttributeValue ¶
type Attributes ¶
type Attributes []Attribute
func (Attributes) Find ¶
func (attr Attributes) Find(glob string) AttributeValue
type CPU ¶
type CPU struct { Units ResourceValue Attributes []Attribute }
type DeploymentID ¶
type GPU ¶
type GPU struct { Units ResourceValue Attributes Attributes }
type Memory ¶
type Memory struct { Quantity ResourceValue Attributes []Attribute }
type ResourceUnits ¶
type ResourceUnits struct { CPU *CPU Memory *Memory Storage []*Storage GPU *GPU Endpoints []*Endpoint }
func NewResourceUnits ¶
func NewResourceUnits(cpu, gpu, memory uint64, storage []*Storage) *ResourceUnits
type ResourceValue ¶
func NewResourceValue ¶
func NewResourceValue(v uint64) ResourceValue
type Service ¶
type Service struct { Name string Image string Command []string Args []string Env []string Resources *ResourceUnits Count int32 Expose []*ServiceExpose Params *ServiceParams OSType string }
type ServiceExpose ¶
type ServiceExpose struct { // request Port uint32 ExternalPort uint32 // request Proto ServiceProtocol Service string Global bool Hosts []string HTTPOptions ServiceExposeHTTPOptions IP string EndpointSequenceNumber uint32 }
ServiceExpose stores exposed ports and hosts details
type ServiceParams ¶
type ServiceParams struct {
Storage []StorageParams
}
type ServiceProtocol ¶
type ServiceProtocol string
func (ServiceProtocol) ToString ¶
func (sp ServiceProtocol) ToString() string
type Storage ¶
type Storage struct { Name string Quantity ResourceValue Attributes Attributes }
type StorageParams ¶
Click to show internal directories.
Click to hide internal directories.