Documentation ¶
Index ¶
- Variables
- func CacheIP() map[string]string
- func CheckDashboard(node string) bool
- func ClearSSHClient(ip string)
- func DefineDB(ip string, json []byte) error
- func DefineDashboard(ip string, json []byte) error
- func DrainNodes(ip string, nodes []string) (string, error)
- func Execute()
- func GetIP(node string) string
- func GetPublicIP(ips *digitalocean.Networks) string
- func GetSSHClient(ip string) (ssh.Client, error)
- func InstallDashboard(node string) error
- func ListDroplets()
- func PrintDroplets(droplets []*digitalocean.Droplet)
- func SwarmInit(ip string) (string, error)
- func SwarmJoinAsMaster(ip string, prime string, token string) (string, error)
- func SwarmJoinAsWorker(ip string, prime string, token string) (string, error)
- func SwarmNodeList(ip string) ([]byte, error)
- func SwarmToken(ip string, kind string) (string, error)
- func SwarmUpdate(ip string, policy string) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ClusterCmd = &cobra.Command{ Use: "cluster", Short: "cluster sub commands", Long: `A longer description that spans multiple lines and likely contains examples and usage of using your command. For example: Cobra is a CLI library for Go that empowers applications. This application is a tool to generate the needed files to quickly create a Cobra application.`, Run: func(cmd *cobra.Command, args []string) { }, }
clusterCmd represents the cluster command
View Source
var RootCmd = &cobra.Command{
Use: "belt",
Short: "A machine provision utility for Docker cluster",
Long: `A machine provision utility for Docker cluster.`,
}
RootCmd represents the base command when called without any subcommands
Functions ¶
func CheckDashboard ¶
func ClearSSHClient ¶
func ClearSSHClient(ip string)
func DefineDashboard ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func GetPublicIP ¶
func GetPublicIP(ips *digitalocean.Networks) string
func InstallDashboard ¶
func ListDroplets ¶
func ListDroplets()
func PrintDroplets ¶
func PrintDroplets(droplets []*digitalocean.Droplet)
func SwarmJoinAsMaster ¶
func SwarmJoinAsWorker ¶
func SwarmNodeList ¶
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.