Documentation ¶
Index ¶
- Constants
- func CopyFilePaths(fromPath, toPath string) (err error)
- func CopyPathToWriter(originalFilePath string, targetWriter io.Writer) (err error)
- func CopyReaderToPath(src io.Reader, targetPath string) (err error)
- func CreateFile(path string) (file *os.File, err error)
- func Exists(path string) bool
- func ExtractVarsFromRequest(r *http.Request, varName string) string
- func GeneratePublicKey(privateKey []byte) (string, error)
- func GetPath(paths []string) string
- func GetSshClient(username string, privateKey []byte, ip string) (*awsSshClient, error)
- func IsDirEmpty(dir string) (isEmpty bool, err error)
- func MarshalAndRecord(object interface{}, dir string, fileName string) error
- func MarshalPublickKey(key ssh.PublicKey) string
- func MkDir(path string) bool
- func OpenFile(path string) (file *os.File, err error)
- func ProvisionDataFromRequest(r *http.Request, object interface{}) error
- func ReadAndUnmarshal(object interface{}, dir string, fileName string) error
- func ReadFile(path string) (content []byte, err error)
- func ReadFile2(file *os.File) string
- func SetExecutableBits(dest string, fileInfoToCopy os.FileInfo) (err error)
- func SetExecutableBitsWithPaths(dest string, src string) (err error)
- func SetStdout(s io.Writer)
- func WriteFile(path string, content []byte) error
- func WriteResponse(w http.ResponseWriter, code int, object interface{})
- type Printer
- type SshClient
Constants ¶
View Source
const ( AWS = "AWS" BOSH = "Bosh" DOCKER = "Docker" SOFTLAYER = "SoftLayer" SL = "SL" )
View Source
const CBBROKER_TRACE = "CBBROKER_TRACE"
Variables ¶
This section is empty.
Functions ¶
func CopyFilePaths ¶
func CopyPathToWriter ¶
func GeneratePublicKey ¶
func GetSshClient ¶
func IsDirEmpty ¶
func MarshalAndRecord ¶
func MarshalPublickKey ¶
func ReadAndUnmarshal ¶
func SetExecutableBits ¶
func WriteResponse ¶
func WriteResponse(w http.ResponseWriter, code int, object interface{})
Types ¶
Click to show internal directories.
Click to hide internal directories.