Documentation ¶
Index ¶
Constants ¶
View Source
const KeyIDLength = sha256.Size * 2
Variables ¶
This section is empty.
Functions ¶
func DefaultExpires ¶
func SetDefaultExpiryTimes ¶
SetDefaultExpiryTimes allows one to change the default expiries.
Types ¶
type FileMeta ¶
type FileMeta struct { Length int64 `json:"length"` Hashes Hashes `json:"hashes"` Custom *json.RawMessage `json:"custom,omitempty"` }
func (FileMeta) HashAlgorithms ¶
type Root ¶
type Signed ¶
type Signed struct { Signed json.RawMessage `json:"signed"` Signatures []Signature `json:"signatures"` }
type Snapshot ¶
type Snapshot struct { Type string `json:"_type"` Version int `json:"version"` Expires time.Time `json:"expires"` Meta Files `json:"meta"` }
func NewSnapshot ¶
func NewSnapshot() *Snapshot
Click to show internal directories.
Click to hide internal directories.