Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deployment ¶
Deployment interface defined with LeaseID and ManifestGroup methods
type ForwardedPortStatus ¶
type InventoryStatus ¶
type InventoryStatus struct { Active []atypes.ResourceUnits `json:"active"` Pending []atypes.ResourceUnits `json:"pending"` Available []atypes.ResourceUnits `json:"available"` Error error `json:"error"` }
InventoryStatus stores active, pending and available units
type LeaseStatus ¶
type LeaseStatus struct { Services map[string]*ServiceStatus `json:"services"` ForwardedPorts map[string][]ForwardedPortStatus `json:"forwarded-ports"` // Container services that are externally accessible }
LeaseStatus includes list of services with their status
type Node ¶
type Node interface { ID() string Available() atypes.ResourceUnits Reserve(atypes.ResourceUnits) error }
Node interface predefined with ID and Available methods
type Reservation ¶
type Reservation interface { OrderID() mtypes.OrderID Resources() atypes.ResourceGroup }
Reservation interface implements orders and resources
type ServiceLog ¶
type ServiceLog struct { Name string Stream io.ReadCloser Scanner *bufio.Scanner }
ServiceLog stores name, stream and scanner
type ServiceStatus ¶
type ServiceStatus struct { Name string `json:"name"` Available int32 `json:"available"` Total int32 `json:"total"` URIs []string `json:"uris"` ObservedGeneration int64 `json:"observed-generation"` Replicas int32 `json:"replicas"` UpdatedReplicas int32 `json:"updated-replicas"` ReadyReplicas int32 `json:"ready-replicas"` AvailableReplicas int32 `json:"available-replicas"` }
ServiceStatus stores the current status of service
type Status ¶
type Status struct { Leases uint32 `json:"leases"` Inventory InventoryStatus `json:"inventory"` }
Status stores current leases and inventory statuses
Click to show internal directories.
Click to hide internal directories.