docs/server/storage/interface.go

10 lines
324 B
Go

package storage
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) (cipher string, public []byte, err error)
SetTimestampKey(gun, cipher string, public []byte) error
}