base

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 12 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SortKeyEntries

func SortKeyEntries(entries []*KeyEntry)

Types

type Base

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

func New

func New(impl Impl) *Base

func (*Base) SetEntries

func (m *Base) SetEntries(entries []*KeyEntry)

func (*Base) SignData

type ErrorFn

type ErrorFn func(format string, args ...interface{}) error

type Impl

type Impl struct {
	ErrorFn ErrorFn
	WriteFn WriteFn
}

type KeyEntry

type KeyEntry struct {
	PrivateKey crypto.PrivateKey
	*keymanager.PublicKey
}

func MakeKeyEntryFromKey

func MakeKeyEntryFromKey(id string, privateKey crypto.PrivateKey) (*KeyEntry, error)

type WriteFn

type WriteFn func(ctx context.Context, entries []*KeyEntry) error

Jump to

Keyboard shortcuts

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