README ¶ Docker swarm cluster bootstrap Install go get github.com/aacfactory/fns-contrib/cluster/swarm Usage import ( _ "github.com/aacfactory/fns-contrib/cluster/swarm" ) Config cluster: devMode: false kind: "swarm" options: swarm: fromEnv: false host: "swarm master host" certDir: "cert file dir, there are [ca.pem, cert.pem, key.pem] in the dir" labels: - "FNS-SERVICE" - "ACTIVE=dev" Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type Config Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Config ¶ type Config struct { FromENV bool `json:"fromEnv"` Host string `json:"host"` CertDir string `json:"certDir"` Labels []string `json:"labels"` } Source Files ¶ View all Source files bootstrap.go config.go Click to show internal directories. Click to hide internal directories.