Documentation ¶
Index ¶
- Variables
- func BuildBrevHome(fs afero.Fs, userHome string) error
- func DeleteFile(fs afero.Fs, filepath string) error
- func GetActiveOrgFile() string
- func GetActiveOrgsPath(home string) (string, error)
- func GetBrevDirectory() string
- func GetBrevHome(userHome string) (string, error)
- func GetBrevSSHConfigPath(home string) (string, error)
- func GetKubeCertFileName() string
- func GetNewBackupSSHConfigFileName() string
- func GetNewBackupSSHConfigFilePath(home string) (*string, error)
- func GetOrCreateSSHConfigFile(fs afero.Fs, home string) (afero.File, error)
- func GetOrgCacheFile() string
- func GetPersonalSettingsCache() string
- func GetPersonalSettingsCachePath(home string) (string, error)
- func GetSSHPrivateKeyFileName() string
- func GetSSHPrivateKeyPath(home string) (string, error)
- func GetTailScaleOutFileName() string
- func GetTailScaleOutFilePath(home string) (*string, error)
- func GetUserSSHConfigPath(home string) (string, error)
- func GetWorkspaceCacheFile() string
- func OverwriteJSON(fs afero.Fs, filepath string, v interface{}) error
- func OverwriteString(fs afero.Fs, filepath string, data string) error
- func ReadJSON(fs afero.Fs, unsafeFilePathString string, v interface{}) error
- func ReadString(fs afero.Fs, unsafeFilePathString string) (string, error)
- func WriteSSHPrivateKey(fs afero.Fs, data string, home string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var AppFs = afero.NewOsFs()
Functions ¶
func DeleteFile ¶
Delete a single file altogether.
func GetActiveOrgFile ¶
func GetActiveOrgFile() string
func GetActiveOrgsPath ¶
func GetBrevDirectory ¶
func GetBrevDirectory() string
func GetBrevHome ¶ added in v0.6.0
func GetBrevSSHConfigPath ¶ added in v0.6.0
func GetKubeCertFileName ¶
func GetKubeCertFileName() string
func GetNewBackupSSHConfigFileName ¶ added in v0.2.0
func GetNewBackupSSHConfigFileName() string
func GetNewBackupSSHConfigFilePath ¶ added in v0.2.0
func GetOrCreateSSHConfigFile ¶ added in v0.2.0
func GetOrgCacheFile ¶
func GetOrgCacheFile() string
func GetPersonalSettingsCache ¶ added in v0.6.5
func GetPersonalSettingsCache() string
func GetPersonalSettingsCachePath ¶ added in v0.6.5
func GetSSHPrivateKeyFileName ¶
func GetSSHPrivateKeyFileName() string
func GetSSHPrivateKeyPath ¶ added in v0.6.0
func GetTailScaleOutFileName ¶ added in v0.6.22
func GetTailScaleOutFileName() string
func GetTailScaleOutFilePath ¶ added in v0.6.22
func GetUserSSHConfigPath ¶ added in v0.2.0
func GetWorkspaceCacheFile ¶
func GetWorkspaceCacheFile() 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")
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.