utils

package
v0.0.0-...-3b2578a Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2018 License: MIT Imports: 17 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CheckSymbol = "\u2714 "
	CrossSymbol = "\u2716 "
)
View Source
var StdChars = []byte("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")

Functions

func Connect

func Connect(user, password, host string, port int) (*ssh.Session, error)
func DisplayLogo(version string)

func ExecuteCmd

func ExecuteCmd(node *models.Node, cmd string)

func GenerateUUID

func GenerateUUID(length int) string

func GetInstallLog

func GetInstallLog(node *models.Node) string

func GetMasterIP

func GetMasterIP() string

func GetToken

func GetToken() string

func IsValidPort

func IsValidPort(port string) bool

func RunSetup

func RunSetup(script string, ch chan int, args ...string)

func SaveMasterIP

func SaveMasterIP(masterIP string)

func SetupDocker

func SetupDocker(masterAddr string) bool

func SetupMaster

func SetupMaster(masterAddr string) bool

func StartServer

func StartServer(filePort string) *http.Server

Types

This section is empty.

Jump to

Keyboard shortcuts

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