keys

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(protoType string) (*any.Any, error)

New returns a protobuf message of the specified type that describes a private key. A ProtoBuilder must have been registered for this type using RegisterType() first.

func RegisterType

func RegisterType(protoType string, builder ProtoBuilder)

RegisterType registers a func that can create protobuf messages which describe a private key.

func RegisteredTypes

func RegisteredTypes() []string

RegisteredTypes returns a list of protobuf message types that have been registered using RegisterType().

Types

type ProtoBuilder

type ProtoBuilder func() (proto.Message, error)

ProtoBuilder creates a protobuf message that describes a private key. It may use flags to obtain the required information, e.g. file paths.

Jump to

Keyboard shortcuts

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