mirror of
https://github.com/docker/cli.git
synced 2026-01-26 15:41:42 +03:00
The https://github.com/docker/notary repository has moved to https://github.com/theupdateframework/notary Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
19 lines
482 B
Go
19 lines
482 B
Go
// +build !pkcs11
|
|
|
|
package client
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/theupdateframework/notary"
|
|
"github.com/theupdateframework/notary/trustmanager"
|
|
)
|
|
|
|
func getKeyStores(baseDir string, retriever notary.PassRetriever) ([]trustmanager.KeyStore, error) {
|
|
fileKeyStore, err := trustmanager.NewKeyFileStore(baseDir, retriever)
|
|
if err != nil {
|
|
return nil, fmt.Errorf("failed to create private key store in directory: %s", baseDir)
|
|
}
|
|
return []trustmanager.KeyStore{fileKeyStore}, nil
|
|
}
|