Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrPublicKeyNotFound = errors.New("Could not find any matching public key") ErrPublicKeyExpired = errors.New("Key has expired.") )
Functions ¶
func RegisterManager ¶
func RegisterManager(name string, mc ManagerConstructor)
func RegisterReader ¶
func RegisterReader(name string, rc ReaderConstructor)
Types ¶
type Manager ¶
type Manager interface { stop.Stoppable VerifyPublicKey(keyID string) error PublishPublicKey(key *key.PublicKey, policy *KeyPolicy, signingKey *key.PrivateKey) *PublishResult DeletePublicKey(toRevoke *key.PrivateKey) error }
func NewManager ¶
func NewManager(cfg config.RegistrableComponentConfig, signerParams config.SignerParams) (Manager, error)
type ManagerConstructor ¶
type ManagerConstructor func(config.RegistrableComponentConfig, config.SignerParams) (Manager, error)
type PublishResult ¶
type PublishResult struct {
// contains filtered or unexported fields
}
func NewPublishResult ¶
func NewPublishResult() *PublishResult
func (*PublishResult) Cancel ¶
func (pr *PublishResult) Cancel()
func (*PublishResult) Result ¶
func (pr *PublishResult) Result() <-chan error
func (*PublishResult) SetError ¶
func (pr *PublishResult) SetError(err error)
func (*PublishResult) Success ¶
func (pr *PublishResult) Success()
func (*PublishResult) WaitForCancel ¶
func (pr *PublishResult) WaitForCancel() <-chan struct{}
type Reader ¶
type ReaderConstructor ¶
type ReaderConstructor func(config.RegistrableComponentConfig) (Reader, error)
Click to show internal directories.
Click to hide internal directories.