Documentation
¶
Index ¶
- func CompareHash(hashed string, content []byte) bool
- func FileExists(path string) bool
- func FindCommand(in string) (string, bool)
- func GenHash(content []byte) string
- func GenSecretKey(n int) ([]byte, error)
- func GetExpirationFromToken(token string) (*time.Time, error)
- func GetNameFromToken(token string) (string, error)
- func IsFlagPassed(name string) bool
- func OnlyOne(in []models.Version) []models.Version
- func ReadSecret(msg string) (string, error)
- func RestoreTermState()
- func SaveTermState()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareHash ¶
CompareHash - compare hash string with []byte
func FindCommand ¶
FindCommand - find commant in TUI user input
func GenSecretKey ¶
GenSecretKey - generates a random cryptographic sequence of bytes
n - size of slice []byte{}
func GetExpirationFromToken ¶
GetExpirationFromToken - get expiration time from jwt token value
func GetNameFromToken ¶
GetNameFromToken - get vault name from jwt token value
func IsFlagPassed ¶
IsFlagPassed - checking the using of the flag
func ReadSecret ¶
ReadSecret - read secret from stdin in security mode
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.