validation

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleKeyGeneration

func HandleKeyGeneration(cmd *cobra.Command, absVaultPath string, params KeyGenParams) (*config.KeyConfig, error)

HandleKeyGeneration manages key generation or import for a vault

func ValidateAndPrepareInputs

func ValidateAndPrepareInputs(author string, tags []string, templateName string, configFile string) (string, []string, error)

Types

type KeyGenParams

type KeyGenParams struct {
	KeyType          string
	UsePassphrase    bool
	KeyFile          string
	AESMode          string
	UseScrypt        bool
	ScryptN          int
	ScryptR          int
	ScryptP          int
	PBKDF2Iterations int
}

KeyGenParams holds all parameters needed for key generation

Jump to

Keyboard shortcuts

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