Documentation ¶
Index ¶
- func CopyToDir(src string, destDir string) error
- func CreateDir(baseDir string, requestedDir string) error
- func CreateTmpDir() (string, error)
- func DownloadFromURL(url string, downloadPath string) error
- func GetCWD() string
- func Info(prefix string, info string)
- func InfoPrint(info string)
- func IsDir(dirPath string) (bool, error)
- func MatrixPrint(headers []string, items [][]string)
- func ParseJSON(jsonString string, query string) (string, error)
- func PathExists(path string) bool
- func ReadFile(fileName string) ([]byte, error)
- func RmDir(dir string) error
- func Sha2sumFile(filePath string) (string, error)
- func WriteFile(fileName string, data []byte, fileMode os.FileMode) error
- type BoshJSONOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTmpDir ¶
CreateTmpDir wrapper around ioutil since i am lazy
func DownloadFromURL ¶
DownloadFromURL download a file from a url
func PathExists ¶
PathExists check if file or path does not exists
func Sha2sumFile ¶
Sha2sumFile return a sha2sum of a file
Types ¶
type BoshJSONOutput ¶
type BoshJSONOutput struct { Tables []struct { Content string `json:"Content"` Header struct { Az string `json:"az"` Instance string `json:"instance"` Ips string `json:"ips"` ProcessState string `json:"process_state"` } `json:"Header"` Rows []struct { Az string `json:"az"` Instance string `json:"instance"` Ips string `json:"ips"` ProcessState string `json:"process_state"` } `json:"Rows"` Notes interface{} `json:"Notes"` } `json:"Tables"` Blocks interface{} `json:"Blocks"` Lines []string `json:"Lines"` }
BoshJSONOutput represents a bosh outpit with --env json
Click to show internal directories.
Click to hide internal directories.