Documentation
¶
Index ¶
- func CreateConfigFile(dirPath string, email string) error
- func GenerateKeyPair() (ed25519.PublicKey, ed25519.PrivateKey, error)
- func ValidateKeyPair(pubKey ed25519.PublicKey, privKey ed25519.PrivateKey) bool
- func WriteKeysToFile(pubKeyPath string, privKeyPath string, pubKey ed25519.PublicKey, ...) error
- type Config
- type InitCmd
- type NewCmd
- type SetCmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateConfigFile ¶
func GenerateKeyPair ¶
func GenerateKeyPair() (ed25519.PublicKey, ed25519.PrivateKey, error)
func ValidateKeyPair ¶
func ValidateKeyPair(pubKey ed25519.PublicKey, privKey ed25519.PrivateKey) bool
func WriteKeysToFile ¶
Types ¶
type InitCmd ¶
type InitCmd struct{}
func (*InitCmd) Execute ¶
func (c *InitCmd) Execute(ctx context.Context, f *flag.FlagSet, args ...interface{}) subcommands.ExitStatus
type NewCmd ¶
type NewCmd struct{}
func (*NewCmd) Execute ¶
func (*NewCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus
Click to show internal directories.
Click to hide internal directories.