keymgr

package
v0.0.0-...-3301e3d Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FSManager

type FSManager struct {
	// contains filtered or unexported fields
}

FSManager is a File System key manager

func NewFSManager

func NewFSManager(path string) (*FSManager, error)

NewFSManager is the FSManager constructor

func (*FSManager) GetPriv

func (m *FSManager) GetPriv(id string) (string, error)

GetPriv gets a private key by id

func (*FSManager) GetPub

func (m *FSManager) GetPub(id string) (string, error)

GetPub gets a public key by id

func (*FSManager) PutPriv

func (m *FSManager) PutPriv(id string, blob string) error

PutPriv saves a private key by id

func (*FSManager) PutPub

func (m *FSManager) PutPub(id string, blob string) error

PutPub saves a public key by id

type Manager

type Manager interface {
	PutPriv(string, string) error
	GetPriv(string) (string, error)
	PutPub(string, string) error
	GetPub(string) (string, error)
}

Manager represents key management operations

Jump to

Keyboard shortcuts

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