Documentation
¶
Index ¶
- func CreateIntermediateDirsForFile(ctx context.Context, filePath string)
- func ExecuteCommand(command string) (string, error)
- func ExecuteCommandOrDie(command string) string
- func GetClusterDir() string
- func GetDownloadedStorageBucketContentsDir(bucketName string) string
- func GetEnv(name string) string
- func GetKubeAidConfigDir() string
- func GetKubeAidDir() string
- func GetParentDirPath(filePath string) string
- func InitTempDir()
- func WrapError(contextualErrorMessage string, err error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateIntermediateDirsForFile ¶
Creates intermediate directories which don't exist for the given file path.
func ExecuteCommand ¶
Executes the given command. Doesn't panic and returns error (if occurred).
func ExecuteCommandOrDie ¶
Executes the given command. Panics if the command execution fails.
func GetClusterDir ¶
func GetClusterDir() string
Returns path to the directory containing cluster specific config, in the KubeAid Config dir.
func GetDownloadedStorageBucketContentsDir ¶
Returns the path to the local temp directory, where contents of the given blob storage bucket will be / is downloaded.
func GetEnv ¶
Returns value of the given environment variable. Panics if the environment variable isn't found.
func GetKubeAidConfigDir ¶
func GetKubeAidConfigDir() string
Returns path to the directory (in temp directory), where the customer's KubeAid Config repo is / will be cloned.
func GetKubeAidDir ¶
func GetKubeAidDir() string
Returns path to the directory (in temp directory), where the KubeAid repo is / will be cloned.
func GetParentDirPath ¶
Returns path to the parent dir of the given file.
func InitTempDir ¶
func InitTempDir()
Creates a temp dir inside /tmp, where KubeAid Bootstrap Script will clone repos. Then sets the value of constants.TempDir as the temp dir path. If the temp dir already exists, then that gets reused.
Types ¶
This section is empty.