Versions in this module Expand all Collapse all v0 v0.0.1 Apr 28, 2016 Changes in this version + var ErrPublicKeyExpired = errors.New("Key has expired.") + var ErrPublicKeyNotFound = errors.New("Could not find any matching public key") + var ErrUnkownResponse = errors.New("Unexpected response.") + func RegisterManager(name string, mc ManagerConstructor) + func RegisterReader(name string, rc ReaderConstructor) + type KeyPolicy struct + Expiration *time.Time + RotationPolicy *time.Duration + type Manager interface + DeletePublicKey func(toRevoke *key.PrivateKey) error + PublishPublicKey func(key *key.PublicKey, policy *KeyPolicy, signingKey *key.PrivateKey) *PublishResult + VerifyPublicKey func(keyID string) error + func NewManager(cfg config.RegistrableComponentConfig, signerParams config.SignerParams) (Manager, error) + type ManagerConstructor func(config.RegistrableComponentConfig, config.SignerParams) (Manager, error) + type PublishResult struct + func NewPublishResult() *PublishResult + func (pr *PublishResult) Cancel() + func (pr *PublishResult) Result() <-chan error + func (pr *PublishResult) SetError(err error) + func (pr *PublishResult) Success() + func (pr *PublishResult) WaitForCancel() <-chan struct{} + type Reader interface + GetPublicKey func(issuer string, keyID string) (*key.PublicKey, error) + func NewReader(cfg config.RegistrableComponentConfig) (Reader, error) + type ReaderConstructor func(config.RegistrableComponentConfig) (Reader, error)