helper

package
v1.3.1-dev.18.0...-398431f Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfFileExists

func CheckIfFileExists(fileName string) bool

CheckIfFileExists returns true if the specified fileName exists

func CreateDirectoryIfNotExists

func CreateDirectoryIfNotExists(dirName string) (err error)

CreateDirectoryIfNotExists makes a directory if not exists yet

func GenerateACLConfig

func GenerateACLConfig(aclFile *os.File, pwd *string) error

GenerateACLConfig writes the redis ACL file based on the pre-defined templates

func GenerateRandomString

func GenerateRandomString(n int) string

GenerateRandomString will return a randomized string of characters at the length specified via input variable `n`

func GenerateRedisConfig

func GenerateRedisConfig(confFile *os.File, aclfilePath string) error

GenerateRedisConfig writes the startup configuration of Redis server based on pre-defined template

func MarkComplete

func MarkComplete(dirPath, doneFile string) error

MarkComplete creates a doneFile file

Types

This section is empty.

Jump to

Keyboard shortcuts

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