hsm

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenKey

func GenKey(c ctl.Control, p interface{}) error

GenKey generates a key

func KeyInfo

func KeyInfo(c ctl.Control, p interface{}) error

KeyInfo retrieves info about a key

func Keys

func Keys(c ctl.Control, p interface{}) error

Keys shows keys

func RmKey

func RmKey(c ctl.Control, p interface{}) error

RmKey destroys a key

func Slots

func Slots(c ctl.Control, _ interface{}) error

Slots shows hsm slots

Types

type GenKeyFlags

type GenKeyFlags struct {
	// Algo specifies algorithm
	Algo *string
	// Size specifies key size in bits
	Size *int
	// Purpose
	Purpose *string
	// Label specifies name for generated key
	Label *string
	// Output specifies the prefix for generated key
	// if not set, the output will be printed to STDOUT only
	Output *string
	// Force to override key file if exists
	Force *bool
}

GenKeyFlags specifies flags for GenKey command

type KeyInfoFlags

type KeyInfoFlags struct {
	// Token specifies slot token
	Token *string
	// Serial specifies slot serial
	Serial *string
	// ID specifies key Id
	ID *string
	// Prefix specifies if public key should be listed
	Public *bool
}

KeyInfoFlags specifies flags for the key info action

type LsKeyFlags

type LsKeyFlags struct {
	// Token specifies slot token
	Token *string
	// Serial specifies slot serial
	Serial *string
	// Prefix specifies key label prefix
	Prefix *string
}

LsKeyFlags specifies flags for the Keys action

type RmKeyFlags

type RmKeyFlags struct {
	// Token specifies slot token
	Token *string
	// Serial specifies slot serial
	Serial *string
	// ID specifies key Id
	ID *string
	// Prefix specifies key label prefix
	Prefix *string
	// Force specifies an option to delete keys without additional confirmation
	Force *bool
}

RmKeyFlags specifies flags for the delete key action

Jump to

Keyboard shortcuts

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