Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrorConflict indicates manifest conflict ErrorConflict = errors.New("manifest conflict") )
Functions ¶
This section is empty.
Types ¶
type ComponentManifest ¶
type ComponentManifest struct {
// Signatures value
Signatures []v1manifest.Signature `json:"signatures"`
// Signed value; any value here must have the SignedBase base.
Signed v1manifest.Component `json:"signed"`
}
ComponentManifest represents xxx.json
type IndexManifest ¶
type IndexManifest struct {
// Signatures value
Signatures []v1manifest.Signature `json:"signatures"`
// Signed value; any value here must have the SignedBase base.
Signed v1manifest.Index `json:"signed"`
}
IndexManifest represents index.json
type Model ¶
type Model interface {
UpdateComponentManifest(component string, manifest *ComponentManifest) error
UpdateRootManifest(manifest *RootManifest) error
UpdateIndexManifest(func(*IndexManifest) *IndexManifest) error
UpdateSnapshotManifest(func(*SnapshotManifest) *SnapshotManifest) error
UpdateTimestampManifest() error
}
Model defines operations on the manifests
type RootManifest ¶
type RootManifest struct {
// Signatures value
Signatures []v1manifest.Signature `json:"signatures"`
// Signed value; any value here must have the SignedBase base.
Signed v1manifest.Root `json:"signed"`
}
RootManifest represents root.json
type SnapshotManifest ¶
type SnapshotManifest struct {
// Signatures value
Signatures []v1manifest.Signature `json:"signatures"`
// Signed value; any value here must have the SignedBase base.
Signed v1manifest.Snapshot `json:"signed"`
}
SnapshotManifest represents snapshot.json
type TimestampManifest ¶
type TimestampManifest struct {
// Signatures value
Signatures []v1manifest.Signature `json:"signatures"`
// Signed value; any value here must have the SignedBase base.
Signed v1manifest.Timestamp `json:"signed"`
}
TimestampManifest represents timestamp.json
Click to show internal directories.
Click to hide internal directories.