Documentation ¶
Overview ¶
Types package includes all the structures shared between the caravela's server/daemon and its clients.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
RequestIDKey = requestCtxKey("ID")
)
Functions ¶
Types ¶
type AvailableOffer ¶
type ContainerConfig ¶
type ContainerConfig struct { Name string `json:"Name"` ImageKey string `json:"ImageKey"` Args []string `json:"Args"` PortMappings []PortMapping `json:"PortMappings"` Resources Resources `json:"Resources"` GroupPolicy GroupPolicy `json:"GroupPolicy"` }
type ContainerStatus ¶
type ContainerStatus struct { ContainerConfig `json:"ContainerConfig"` SupplierIP string `json:"SupplierIP"` ContainerID string `json:"ContainerID"` Status string `json:"Status"` }
type GroupPolicy ¶ added in v0.2.0
type GroupPolicy uint
const ( SpreadGroupPolicy GroupPolicy = iota CoLocationGroupPolicy )
func (GroupPolicy) String ¶ added in v0.2.0
func (gp GroupPolicy) String() string
func (*GroupPolicy) ValueOf ¶ added in v0.2.0
func (gp *GroupPolicy) ValueOf(arg string) error
type PortMapping ¶
Click to show internal directories.
Click to hide internal directories.