utils

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

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

Go to latest
Published: Feb 26, 2016 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FloatStringToInt

func FloatStringToInt(floatStr string, multiply int) (int, error)

func FloatStringsSliceToInt

func FloatStringsSliceToInt(strSlice []string) (int, error)

func FormatError

func FormatError(err error) error

func IntToHexString

func IntToHexString(number int) string

func ParseXMLBuff

func ParseXMLBuff(fb []byte, data interface{}) (interface{}, error)

func ParseXMLFile

func ParseXMLFile(xmlpath string, data interface{}) (interface{}, error)

func ProcessTemplate

func ProcessTemplate(str string, userData interface{}) ([]byte, error)

ProcessTemplate is responsible for writing appapropriate user data to any metadata

func RunFunc

func RunFunc(config *sshconf.Config) func(string) (string, error)

RunFunc is a generic solution for running appropriate commands on local or remote host

func UploadBinaries

func UploadBinaries(conf *sshconf.Config, pathbins ...string) (string, error)

UploadBinaries is intended to create a temporary directory on a remote server, upload binaries to the temporary location and return path to the directory. The tempoary directory will be removed before the program exits

func WaitForResult

func WaitForResult(ch <-chan error, num int) error

WaitForResult waits for multyple goroutines to finish and returns result

Types

This section is empty.

Directories

Path Synopsis
hwinfo

Jump to

Keyboard shortcuts

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