testutils

package
v0.0.0-...-9bcdad0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2015 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTarget

func AddTarget(role string, r *tuf.TufRepo) (name string, meta data.FileMeta, content []byte, err error)

func EmptyRepo

func EmptyRepo() (*keys.KeyDB, *tuf.TufRepo, signed.CryptoService)

EmptyRepo creates an in memory key database, crypto service and initializes a repo with no targets or delegations.

func FlushDB

func FlushDB(db *sql.DB)

func GetSqliteDB

func GetSqliteDB() *sql.DB

func RandomByteSlice

func RandomByteSlice(maxSize int) []byte

func SampleMeta

func SampleMeta() data.FileMeta

func Serialize

func Serialize(sRoot, sTargets, sSnapshot, sTimestamp *data.Signed) (root, targets, snapshot, timestamp []byte, err error)

func Sign

func Sign(repo *tuf.TufRepo) (root, targets, snapshot, timestamp *data.Signed, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL