swarm

package
v0.0.0-...-0cc9b00 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetServiceDiff

func GetServiceDiff(engine *docker.Client, srvName string) []string

func ListNetworkByMode

func ListNetworkByMode(client *docker.Client, mode string) ([]string, error)

func ServiceAddNet

func ServiceAddNet(engine *docker.Client, network string)

func ServiceCreate

func ServiceCreate(engine *docker.Client, name, image string, envs []string) (string, error)

func ServiceDelNet

func ServiceDelNet(engine *docker.Client, network string)

func ServiceIPMap

func ServiceIPMap(engine *docker.Client) (map[string]string, error)

func ServiceInspect

func ServiceInspect(engine *docker.Client, name string) (*swarm.Service, error)

func ServiceNetwork

func ServiceNetwork(client *docker.Client, name string) ([]string, error)

get service's networks, here is network id

func ServiceUpdateNet

func ServiceUpdateNet(engine *docker.Client, srvName string, networks []string) error

func ServiceVersion

func ServiceVersion(engine *docker.Client, srvName string) (uint64, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL