mirror of https://github.com/docker/docs.git
13 lines
467 B
Go
13 lines
467 B
Go
package storage
|
|
|
|
import "github.com/endophage/gotuf/data"
|
|
|
|
// MetaStore holds the methods that are used for a Metadata Store
|
|
type MetaStore interface {
|
|
UpdateCurrent(gun, role string, version int, data []byte) error
|
|
GetCurrent(gun, tufRole string) (data []byte, err error)
|
|
Delete(gun string) error
|
|
GetTimestampKey(gun string) (algorithm data.KeyAlgorithm, public []byte, err error)
|
|
SetTimestampKey(gun string, algorithm data.KeyAlgorithm, public []byte) error
|
|
}
|