Documentation
¶
Index ¶
- func AcceptTermsInteractive() bool
- func BoolToInt(b bool) int
- func CreateJwtSecret(dest string) error
- func Exit(message string, exitCode int) error
- func FileExists(path string) bool
- func FlagFileExists(ctx *cli.Context, flag string) bool
- func GetLastFile(dir string, dependency string) (string, error)
- func PrepareTimestampedFile(logDir, logFileName string) (logFile string, err error)
- func ReadValidatorPassword(ctx *cli.Context) (f *os.File, err error)
- func RegisterInputWithMessage(message string) (input string)
- func TruncateFileFromDir(filePath string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AcceptTermsInteractive ¶
func AcceptTermsInteractive() bool
func CreateJwtSecret ¶
func FileExists ¶
func FlagFileExists ¶
FlagFileExists check whether a path under given flag exists
func GetLastFile ¶
GetLastFile returns name of last file from given directory in alphabetical order. In case of log files last one is also the newest (format increments similar to typical number - YYYY-MM-DD_HH:MM:SS)
func PrepareTimestampedFile ¶
func ReadValidatorPassword ¶
ReadValidatorPassword is responsible for creating a secure way to pass a validator password from lukso CLI to a client of user's choosing
func TruncateFileFromDir ¶
TruncateFileFromDir removes file name from its path. Example: /path/to/foo/foo.txt => /path/to/foo
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.