signer

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2016 License: Apache-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 Config added in v0.3.0

type Config struct {
	HTTPAddr       string
	GRPCAddr       string
	TLSConfig      *tls.Config
	CryptoServices CryptoServiceIndex
}

Config tells how to configure a notary-signer

type CryptoServiceIndex

type CryptoServiceIndex map[string]signed.CryptoService

CryptoServiceIndex represents a mapping between a service algorithm string and a CryptoService

type KeyManager

type KeyManager interface {
	// CreateKey creates a new key and returns it's Information
	CreateKey() (*pb.PublicKey, error)

	// DeleteKey removes a key
	DeleteKey(keyID *pb.KeyID) (*pb.Void, error)

	// KeyInfo returns the public key of a particular key
	KeyInfo(keyID *pb.KeyID) (*pb.PublicKey, error)
}

KeyManager is the interface to implement key management (possibly a key database)

type Signer

type Signer interface {
	Sign(request *pb.SignatureRequest) (*pb.Signature, error)
}

Signer is the interface that allows the signing service to return signatures

type SigningService

type SigningService interface {
	KeyManager

	// Signer returns a Signer for a given keyID
	Signer(keyID *pb.KeyID) (Signer, error)
}

SigningService is the interface to implement a key management and signing service

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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