Documentation ¶
Index ¶
- func AcceptTermsInteractive() bool
- func BoolToInt(b bool) int
- func CreateJwtSecret(dest string) error
- func EthEpochToTimestamp(ethEpoch, epochZeroTimestamp uint64) (t time.Time, isValid bool)
- 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 MaxLength(strs []string) (length int)
- 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 EthEpochToTimestamp ¶ added in v0.21.0
EthEpochToTimestamp converts given Ethereum Epoch to a timestamp of its occurence, assuming the chain started at given epochZeroTimestamp (in unix epoch format). It returns the converted time and bool, which is false when the time is invalid or too large.
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 MaxLength ¶ added in v0.22.0
MaxLength returns the length of the longest string - used for creating padding from a given client set.
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.