Documentation ¶
Index ¶
- func GetServiceDiff(engine *docker.Client, srvName string) []string
- func ListNetworkByMode(client *docker.Client, mode string) ([]string, error)
- func ServiceAddNet(engine *docker.Client, network string)
- func ServiceCreate(engine *docker.Client, name, image string, envs []string) (string, error)
- func ServiceDelNet(engine *docker.Client, network string)
- func ServiceIPMap(engine *docker.Client) (map[string]string, error)
- func ServiceInspect(engine *docker.Client, name string) (*swarm.Service, error)
- func ServiceNetwork(client *docker.Client, name string) ([]string, error)
- func ServiceUpdateNet(engine *docker.Client, srvName string, networks []string) error
- func ServiceVersion(engine *docker.Client, srvName string) (uint64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListNetworkByMode ¶
func ServiceAddNet ¶
func ServiceCreate ¶
func ServiceDelNet ¶
func ServiceInspect ¶
func ServiceNetwork ¶
get service's networks, here is network id
func ServiceUpdateNet ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.