Documentation ¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct { ID string `json:"id" valid:"required"` TaskID string `json:"taskId"` Role Role `json:"role"` CreatedAt int64 `json:"createdAt" valid:"required"` Provider clouds.Name `json:"provider" valid:"required"` Region string `json:"region" valid:"required"` Size string `json:"size"` PublicIp string `json:"publicIp"` PrivateIp string `json:"privateIp"` State NodeState `json:"state"` Name string `json:"name"` }
TODO(stgleb): Accommodate terminology and rename Node to Machine
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service contains business logic for node in particular cloud provider
func NewService ¶
NewService constructs a Service.
Click to show internal directories.
Click to hide internal directories.