Documentation ¶
Index ¶
- func AddTarget(role string, r *tuf.Repo) (name string, meta data.FileMeta, content []byte, err error)
- func EmptyRepo() (*keys.KeyDB, *tuf.Repo, signed.CryptoService)
- func FlushDB(db *sql.DB)
- func GetSqliteDB() *sql.DB
- func RandomByteSlice(maxSize int) []byte
- func SampleMeta() data.FileMeta
- func Serialize(sRoot, sTargets, sSnapshot, sTimestamp *data.Signed) (root, targets, snapshot, timestamp []byte, err error)
- func Sign(repo *tuf.Repo) (root, targets, snapshot, timestamp *data.Signed, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddTarget ¶
func AddTarget(role string, r *tuf.Repo) (name string, meta data.FileMeta, content []byte, err error)
AddTarget generates a fake target and adds it to a repo.
func EmptyRepo ¶
EmptyRepo creates an in memory key database, crypto service and initializes a repo with no targets or delegations.
func RandomByteSlice ¶
RandomByteSlice generates some random data to be used for testing only
func SampleMeta ¶
SampleMeta returns a static, fake (and invalid) FileMeta object
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.