helper

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvXdgRuntimeDir = "XDG_RUNTIME_DIR"

	PkiInitFilePerServiceComplete = ".security-secrets-setup.complete"
)

Variables

This section is empty.

Functions

func CheckDirExistsAndIsWritable

func CheckDirExistsAndIsWritable(path string) (exists bool, isWritable bool)

func CheckIfFileExists

func CheckIfFileExists(fileName string) bool

func CopyDir

func CopyDir(srcDir, destDir string, lc logger.LoggingClient) error

func CopyFile

func CopyFile(fileSrc, fileDest string) (int64, error)

func CreateDirectoryIfNotExists

func CreateDirectoryIfNotExists(dirName string) (err error)

func Deploy

func Deploy(srcDir, destDir string, lc logger.LoggingClient) error

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 IsDirEmpty(dir string) (empty bool, err error)

func SecureEraseFile

func SecureEraseFile(fileToErase string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL