fixing lint comments

Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
This commit is contained in:
David Lawrence 2015-11-07 15:14:07 -08:00
parent f9cf7bcca5
commit de9f651494
2 changed files with 3 additions and 0 deletions

View File

@ -133,6 +133,8 @@ func (trust *NotarySigner) CheckHealth(timeout time.Duration) error {
return err
}
// ImportRootKey satisfies the CryptoService interface. It should not be implemented
// for a NotarySigner.
func (trust *NotarySigner) ImportRootKey(r io.Reader) error {
return errors.New("Importing a root key to NotarySigner is not supported")
}

View File

@ -119,6 +119,7 @@ func (e *Ed25519) GetPrivateKey(keyID string) (data.PrivateKey, string, error) {
return e.keys[keyID].privKey, "", nil
}
// ImportRootKey adds an Ed25519 key to the store as a root key
func (e *Ed25519) ImportRootKey(r io.Reader) error {
raw, err := ioutil.ReadAll(r)
if err != nil {