Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{
Use: "Dispatch",
Short: "Low level distributed init system",
Long: `Dispatch is a distributed server system on top of systemd and etcd`,
}
RootCmd represents the base command when called without any subcommands
Functions ¶
Types ¶
type StandardResponse ¶
StandardResponse is the server's response for most of the non get requests
type TemplateContent ¶
type TemplateContent struct {
Name string `json:"name"`
Ports []int64 `json:"ports"`
Constraints map[string]string `json:"constraints"`
UnitContent string `json:"unitContent"`
MaxPerMachine int64 `json:"maxPerMachine"`
}
TemplateContent are all the properties for a unit
type TemplateParams ¶
type TemplateParams struct {
Name string `json:"name"`
Ports []int64 `json:"ports"`
Constraints map[string]string `json:"constraints"`
UnitContent string `json:"unitContent"`
MaxPerMachine int64 `json:"maxPerMachine"`
}
TemplateParams contains all the parameters needed to create a template
type UnitContent ¶
type UnitContent struct {
Name string `json:"name"`
DesiredState int `json:"desiredState"`
Ports []int64 `json:"ports"`
Constraints map[string]string
UnitContent string `json:"unitContent"`
State int `json:"state"`
Machine string `json:"machine"`
}
UnitContent are all the properties for a unit
Click to show internal directories.
Click to hide internal directories.