Documentation ¶
Index ¶
- func DeleteFile(filepath string) error
- func Exists(filepath string, isDir bool) (bool, error)
- func GetActiveOrgFile() string
- func GetActiveOrgsPath() string
- func GetBrevDirectory() string
- func GetCertFilePath() string
- func GetHomeDir() string
- func GetKubeCertFileName() string
- func GetOrgCacheFile() string
- func GetOrgCacheFilePath() string
- func GetSSHPrivateKeyFileName() string
- func GetSSHPrivateKeyFilePath() string
- func GetWorkspaceCacheFile() string
- func GetWorkspacesCacheFilePath() string
- func OverwriteJSON(filepath string, v interface{}) error
- func OverwriteString(filepath string, data string) error
- func ReadJSON(unsafeFilePathString string, v interface{}) error
- func ReadString(unsafeFilePathString string) (string, error)
- func WriteSSHPrivateKey(data string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetActiveOrgFile ¶
func GetActiveOrgFile() string
func GetActiveOrgsPath ¶
func GetActiveOrgsPath() string
func GetBrevDirectory ¶
func GetBrevDirectory() string
func GetCertFilePath ¶
func GetCertFilePath() string
func GetHomeDir ¶
func GetHomeDir() string
func GetKubeCertFileName ¶
func GetKubeCertFileName() string
func GetOrgCacheFile ¶
func GetOrgCacheFile() string
func GetOrgCacheFilePath ¶
func GetOrgCacheFilePath() string
func GetSSHPrivateKeyFileName ¶
func GetSSHPrivateKeyFileName() string
func GetSSHPrivateKeyFilePath ¶
func GetSSHPrivateKeyFilePath() string
func GetWorkspaceCacheFile ¶
func GetWorkspaceCacheFile() string
func GetWorkspacesCacheFilePath ¶
func GetWorkspacesCacheFilePath() string
func OverwriteJSON ¶
OverwriteJSON data in the target file with data from the given struct
Usage (unstructured):
OverwriteJSON("tmp/a/b/c.json", map[string]string{ "hi": "there", })
Usage (struct):
var foo myStruct OverwriteJSON("tmp/a/b/c.json", foo)
func OverwriteString ¶
OverwriteString data in the target file with data from the given string
Usage
OverwriteString("tmp/a/b/c.txt", "hi there")
func ReadJSON ¶
ReadJSON reads data from a file into the given struct
Usage:
var foo myStruct files.ReadJSON("tmp/a.json", &foo)
func ReadString ¶
func WriteSSHPrivateKey ¶
OverwriteString data in the target file with data from the given string
Usage
OverwriteString("tmp/a/b/c.txt", "hi there")
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.