Documentation
¶
Index ¶
- type CompressionType
- type Repo
- func (r *Repo) AddTargets(custom json.RawMessage, paths ...string) error
- func (r *Repo) AddTargetsWithExpires(custom json.RawMessage, expires time.Time, paths ...string) error
- func (r *Repo) Clean() error
- func (r *Repo) Commit() error
- func (r *Repo) GenKey(role string) (string, error)
- func (r *Repo) GenKeyWithExpires(keyRole string, expires time.Time) (string, error)
- func (r *Repo) GetKeyIDs(name string) ([]string, error)
- func (r *Repo) GetKeys(name string) ([]*keys.PublicKey, error)
- func (r *Repo) Init(consistentSnapshot bool) error
- func (r *Repo) RemoveTargets(paths ...string) error
- func (r *Repo) RemoveTargetsWithExpires(expires time.Time, paths ...string) error
- func (r *Repo) RevokeKey(role, id string) error
- func (r *Repo) RevokeKeyWithExpires(keyRole, id string, expires time.Time) error
- func (r *Repo) RootKeys() ([]*data.Key, error)
- func (r *Repo) Sign(name string) error
- func (r *Repo) Snapshot(t CompressionType) error
- func (r *Repo) SnapshotWithExpires(t CompressionType, expires time.Time) error
- func (r *Repo) Timestamp() error
- func (r *Repo) TimestampWithExpires(expires time.Time) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompressionType ¶
type CompressionType uint8
const ( CompressionTypeNone CompressionType = iota CompressionTypeGzip )
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
Repo represents an instance of a TUF repo
func NewRepo ¶
func NewRepo(trust signed.CryptoService, local store.LocalStore, hashAlgorithms ...string) (*Repo, error)
NewRepo is a factory function for instantiating new TUF repos objects. If the local store is already populated, local.GetMeta() will initialise the Repo with the appropriate state.
func (*Repo) AddTargets ¶
func (r *Repo) AddTargets(custom json.RawMessage, paths ...string) error
func (*Repo) AddTargetsWithExpires ¶
func (*Repo) GenKeyWithExpires ¶
func (*Repo) Init ¶
Init attempts to initialize a brand new TUF repo. It will fail if an existing targets file is detected.
func (*Repo) RemoveTargets ¶
RemoveTargets calls through to RemoveTargetsWithExpires, setting the default expiry time for the targets file.
func (*Repo) RemoveTargetsWithExpires ¶
RemoveTargetsWithExpires removes targets from the current set of targets. If no paths are provided, all targets will be removed.
func (*Repo) RevokeKeyWithExpires ¶
func (*Repo) Snapshot ¶
func (r *Repo) Snapshot(t CompressionType) error
Snapshot calls through to SnapshotWithExpires, setting the default expiry time for the snapshot file
func (*Repo) SnapshotWithExpires ¶
func (r *Repo) SnapshotWithExpires(t CompressionType, expires time.Time) error
SnapshotWithExpires creates a TUF snapshot with the given expiry time.
Directories
¶
Path | Synopsis |
---|---|
Godeps
|
|
_workspace/src/github.com/agl/ed25519
Package ed25519 implements the Ed25519 signature algorithm.
|
Package ed25519 implements the Ed25519 signature algorithm. |
_workspace/src/github.com/agl/ed25519/edwards25519
Package edwards25519 implements operations in GF(2**255-19) and on an Edwards curve that is isomorphic to curve25519.
|
Package edwards25519 implements operations in GF(2**255-19) and on an Edwards curve that is isomorphic to curve25519. |
_workspace/src/github.com/boltdb/bolt
Package bolt implements a low-level key/value store in pure Go.
|
Package bolt implements a low-level key/value store in pure Go. |
_workspace/src/github.com/dustin/go-humanize
Package humanize converts boring ugly numbers to human-friendly strings and back.
|
Package humanize converts boring ugly numbers to human-friendly strings and back. |
_workspace/src/github.com/flynn/go-docopt
Package docopt parses command-line arguments based on a help message.
|
Package docopt parses command-line arguments based on a help message. |
_workspace/src/golang.org/x/crypto/nacl/secretbox
Package secretbox encrypts and authenticates small messages.
|
Package secretbox encrypts and authenticates small messages. |
_workspace/src/golang.org/x/crypto/pbkdf2
Package pbkdf2 implements the key derivation function PBKDF2 as defined in RFC 2898 / PKCS #5 v2.0.
|
Package pbkdf2 implements the key derivation function PBKDF2 as defined in RFC 2898 / PKCS #5 v2.0. |
_workspace/src/golang.org/x/crypto/poly1305
Package poly1305 implements Poly1305 one-time message authentication code as specified in http://cr.yp.to/mac/poly1305-20050329.pdf.
|
Package poly1305 implements Poly1305 one-time message authentication code as specified in http://cr.yp.to/mac/poly1305-20050329.pdf. |
_workspace/src/golang.org/x/crypto/salsa20/salsa
Package salsa provides low-level access to functions in the Salsa family.
|
Package salsa provides low-level access to functions in the Salsa family. |
_workspace/src/golang.org/x/crypto/scrypt
Package scrypt implements the scrypt key derivation function as defined in Colin Percival's paper "Stronger Key Derivation via Sequential Memory-Hard Functions" (http://www.tarsnap.com/scrypt/scrypt.pdf).
|
Package scrypt implements the scrypt key derivation function as defined in Colin Percival's paper "Stronger Key Derivation via Sequential Memory-Hard Functions" (http://www.tarsnap.com/scrypt/scrypt.pdf). |
_workspace/src/gopkg.in/check.v1
Package check is a rich testing extension for Go's testing package.
|
Package check is a rich testing extension for Go's testing package. |
cmd
|
|
Package encrypted provides a simple, secure system for encrypting data symmetrically with a passphrase.
|
Package encrypted provides a simple, secure system for encrypting data symmetrically with a passphrase. |