Versions in this module Expand all Collapse all v0 v0.1.0 Nov 12, 2022 v0.0.1 Nov 10, 2022 Changes in this version + func CheckProvenanceWithVerifiedRevision(snapPath string, verifiedRev *asserts.SnapRevision) error + func CrossCheck(instanceName, snapSHA3_384, provenance string, snapSize uint64, ...) (snapRev *asserts.SnapRevision, err error) + func CrossCheckProvenance(instanceName string, snapRev *asserts.SnapRevision, ...) (signedProvenance string, err error) + func DeriveSideInfo(snapPath string, model *asserts.Model, db Finder) (*snap.SideInfo, error) + func DeriveSideInfoFromDigestAndSize(snapPath string, snapSHA3_384 string, snapSize uint64, model *asserts.Model, ...) (*snap.SideInfo, error) + func FetchSnapAssertions(f asserts.Fetcher, snapSHA3_384, provenance string) error + func FetchSnapDeclaration(f asserts.Fetcher, snapID string) error + func FetchStore(f asserts.Fetcher, storeID string) error + func ParseValidationSet(arg string) (account, name string, seq int, err error) + func SideInfoFromSnapAssertions(snapDecl *asserts.SnapDeclaration, snapRev *asserts.SnapRevision) *snap.SideInfo + type Finder interface + Find func(assertionType *asserts.AssertionType, headers map[string]string) (asserts.Assertion, error) + FindMany func(assertionType *asserts.AssertionType, headers map[string]string) ([]asserts.Assertion, error) + type InstalledSnap struct + Revision snap.Revision + func NewInstalledSnap(name, snapID string, revision snap.Revision) *InstalledSnap + type PresenceConstraintError struct + Presence asserts.Presence + SnapName string + func (e *PresenceConstraintError) Error() string + type ValidationSetKey string + func NewValidationSetKey(vs *asserts.ValidationSet) ValidationSetKey + func (k ValidationSetKey) Components() []string + func (k ValidationSetKey) String() string + type ValidationSetKeySlice []ValidationSetKey + func (s ValidationSetKeySlice) CommaSeparated() string + func (s ValidationSetKeySlice) Len() int + func (s ValidationSetKeySlice) Less(i, j int) bool + func (s ValidationSetKeySlice) Swap(i, j int) + type ValidationSets struct + func NewValidationSets() *ValidationSets + func (v *ValidationSets) Add(valset *asserts.ValidationSet) error + func (v *ValidationSets) CheckInstalledSnaps(snaps []*InstalledSnap, ignoreValidation map[string]bool) error + func (v *ValidationSets) CheckPresenceInvalid(snapRef naming.SnapRef) ([]ValidationSetKey, error) + func (v *ValidationSets) CheckPresenceRequired(snapRef naming.SnapRef) ([]ValidationSetKey, snap.Revision, error) + func (v *ValidationSets) Conflict() error + type ValidationSetsConflictError struct + Sets map[string]*asserts.ValidationSet + Snaps map[string]error + func (e *ValidationSetsConflictError) Error() string + type ValidationSetsValidationError struct + InvalidSnaps map[string][]string + MissingSnaps map[string]map[snap.Revision][]string + Sets map[string]*asserts.ValidationSet + WrongRevisionSnaps map[string]map[snap.Revision][]string + func (e *ValidationSetsValidationError) Error() string