Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bundle ¶
type Bundle struct { Stack BundleService `json:"Stack"` Namespace string `json:"Namespace"` }
bundle stores the contents of services and stack name
type BundleService ¶
type BundleService struct { Version string `json:"Version"` Services map[string]CraneServiceSpec `json:"Services"` }
BundleService content services spec map and stack version Correspondence docker daemon type BundleFile
type ContainerStatOptions ¶
type CraneContainerStat ¶
type CraneService ¶
type CraneService struct { ID string `json:"ID"` swarm.Meta Spec CraneServiceSpec `json:"Spec"` Endpoint swarm.Endpoint `json:"Endpoint"` UpdateStatus swarm.UpdateStatus `json:"UpdateStatus"` }
type CraneServiceSpec ¶
type CraneServiceSpec struct { Name string `json:"Name"` Labels map[string]string `json:"Labels"` TaskTemplate swarm.TaskSpec `json:"TaskTemplate"` Mode swarm.ServiceMode `json:"Mode"` UpdateConfig *swarm.UpdateConfig `json:"UpdateConfig"` Networks []string `json:"Networks"` EndpointSpec *swarm.EndpointSpec `json:"EndpointSpec"` RegistryAuth string `json:"RegistryAuth"` }
Click to show internal directories.
Click to hide internal directories.