format

package
v0.0.0-...-0d34ca8 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2018 License: MIT Imports: 2 Imported by: 4

Documentation

Index

Constants

View Source
const (
	// PublicKeyField is the key name at which the public key should be
	// stored in an ecfg document.
	PublicKeyField = "_public_key"
)

Variables

View Source
var ErrPublicKeyInvalid = errors.New("public key has invalid format")

ErrPublicKeyInvalid means that the PublicKeyField key was found, but the value could not be parsed into a valid key.

View Source
var ErrPublicKeyMissing = errors.New("public key not present in ecfg file")

ErrPublicKeyMissing indicates that the PublicKeyField key was not found at the top level of the JSON document provided.

Functions

func ExtractPublicKeyHelper

func ExtractPublicKeyHelper(obj map[string]interface{}) (key [32]byte, err error)

Types

type FormatHandler

type FormatHandler interface {
	TransformScalarValues([]byte, func([]byte) ([]byte, error)) ([]byte, error)
	ExtractPublicKey([]byte) ([32]byte, error)
}

Jump to

Keyboard shortcuts

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