Documentation
¶
Index ¶
- func ConnFunc(config *sshconf.Config) func() (*ssh.SshConn, error)
- func InterruptHandler(fn func() error)
- func RunFunc(config *sshconf.Config) func(string) (string, error)
- func ValidateAmountOfCpus(required int) error
- func ValidateAmountOfRam(minRequiredInMb int) error
- func ValidateDistro(regExp, file string) error
- func ValidateHostname(hostname string) error
- func ValidateNics(nicList []string) error
- func ValidateUserID(id int) error
- func ValidateUserName(userName string) error
- type ConnFuncAlias
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InterruptHandler ¶
func InterruptHandler(fn func() error)
InterruptHandler is trying to release appropriate image in case SIGHUP, SIGINT or SIGTERM signal received
func RunFunc ¶
RunFunc is a generic solution for running appropriate commands on local or remote host
func ValidateAmountOfCpus ¶
ValidateAmountOfCpus gets amount of CPUs required It verifies that amount of installed CPUs is equal to amount of required
func ValidateAmountOfRam ¶
ValidateAmountOfRam gets amount of RAM needed for proceeding The function verifies if eligable amount RAM is installed
func ValidateDistro ¶
ValidateDistro validates distribution
func ValidateHostname ¶
func ValidateNics ¶
ValidateNics gets a reference to a string slice containing NICs names and verifies if appropriate NIC is available
func ValidateUserID ¶
func ValidateUserName ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.