Documentation ¶
Index ¶
- Constants
- func CheckDirExistsAndIsWritable(path string) (exists bool, isWritable bool)
- func CheckIfFileExists(fileName string) bool
- func CopyDir(srcDir, destDir string, lc logger.LoggingClient) error
- func CopyFile(fileSrc, fileDest string) (int64, error)
- func CreateDirectoryIfNotExists(dirName string) (err error)
- func Deploy(srcDir, destDir string, lc logger.LoggingClient) error
- func GenTLSAssets(jsonConfig string, lc logger.LoggingClient) error
- func GetCacheDir(configuration *config.ConfigurationStruct) (string, error)
- func GetCertConfigDir(configuration *config.ConfigurationStruct) (string, error)
- func GetDeployDir(configuration *config.ConfigurationStruct) (string, error)
- func GetWorkDir(configuration *config.ConfigurationStruct) (string, error)
- func IsDirEmpty(dir string) (empty bool, err error)
- func SecureEraseFile(fileToErase string) error
Constants ¶
View Source
const ( EnvXdgRuntimeDir = "XDG_RUNTIME_DIR" PkiInitFilePerServiceComplete = ".security-secrets-setup.complete" )
Variables ¶
This section is empty.
Functions ¶
func CheckIfFileExists ¶
func GenTLSAssets ¶
func GenTLSAssets(jsonConfig string, lc logger.LoggingClient) error
GenTLSAssets generates the TLS assets based on the JSON configuration file
func GetCacheDir ¶
func GetCacheDir(configuration *config.ConfigurationStruct) (string, error)
func GetCertConfigDir ¶
func GetCertConfigDir(configuration *config.ConfigurationStruct) (string, error)
func GetDeployDir ¶
func GetDeployDir(configuration *config.ConfigurationStruct) (string, error)
func GetWorkDir ¶
func GetWorkDir(configuration *config.ConfigurationStruct) (string, error)
func IsDirEmpty ¶
func SecureEraseFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.