Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
*client.OneflowClient
}
func Session ¶
func Session(c *client.OneflowClient) *Client
func (*Client) CreateServiceTemplate ¶
func (s *Client) CreateServiceTemplate(st *ServiceTemplate) (string, error)
func (*Client) DestroyService ¶
func (*Client) DestroyServiceTemplate ¶
type ElasticityPolicy ¶
type Role ¶
type Role struct { Name string `json:"name"` Cardinality int `json:"cardinality"` VMTemplate int `json:"vm_template"` VMTemplateContents string `json:"vm_template_contents,omitempty"` Parents []string `json:"parents"` ShutdownAction string `json:"shutdown_action,omitempty"` MinVMs int `json:"min_vms"` MaxVMs int `json:"max_vms"` Cooldown int `json:"cooldown"` ElasticityPolicies []ElasticityPolicy `json:"elasticity_policies"` ScheduledPolicies []ScheduledPolicy `json:"scheduled_policies"` }
type ScheduledPolicy ¶
type ServiceResponseTemplate ¶
type ServiceResponseTemplate struct { Document struct { ID string `json:"ID"` } `json:"DOCUMENT"` }
type ServiceTemplate ¶
type ServiceTemplate struct { ID string `json:"id,omitempty"` Name string `json:"name"` Deployment string `json:"deployment"` ShutdownAction string `json:"shutdown_action,omitempty"` ReadyStatusGate bool `json:"ready_status_gate,omitempty"` Roles []Role `json:"roles"` CustomAttrs util.StringMap `json:"custom_attrs,omitempty"` }
Click to show internal directories.
Click to hide internal directories.