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 Add(s *state.State, a asserts.Assertion) error + func AddBatch(s *state.State, batch *asserts.Batch, opts *asserts.CommitOptions) error + func ApplyEnforcedValidationSets(st *state.State, valsets map[string]*asserts.ValidationSet, ...) error + func AutoAliases(s *state.State, info *snap.Info) (map[string]string, error) + func AutoRefreshAssertions(s *state.State, userID int) error + func BaseDeclaration(s *state.State) (*asserts.BaseDeclaration, error) + func DB(s *state.State) asserts.RODatabase + func ForgetValidationSet(st *state.State, accountID, name string) error + func GetValidationSet(st *state.State, accountID, name string, tr *ValidationSetTracking) error + func Publisher(s *state.State, snapID string) (*asserts.Account, error) + func PublisherStoreAccount(st *state.State, snapID string) (snap.StoreAccount, error) + func RefreshSnapAssertions(s *state.State, userID int, opts *RefreshAssertionsOptions) error + func RefreshSnapDeclarations(s *state.State, userID int, opts *RefreshAssertionsOptions) error + func RefreshValidationSetAssertions(s *state.State, userID int, opts *RefreshAssertionsOptions) error + func ReplaceDB(state *state.State, db *asserts.Database) + func RestoreValidationSetsTracking(st *state.State) error + func SnapDeclaration(s *state.State, snapID string) (*asserts.SnapDeclaration, error) + func Store(s *state.State, store string) (*asserts.Store, error) + func TemporaryDB(st *state.State) *asserts.Database + func TrackedEnforcedValidationSets(st *state.State, extraVss ...*asserts.ValidationSet) (*snapasserts.ValidationSets, error) + func TryEnforcedValidationSets(st *state.State, validationSets []string, userID int, ...) error + func UpdateValidationSet(st *state.State, tr *ValidationSetTracking) + func ValidateRefreshes(s *state.State, snapInfos []*snap.Info, ignoreValidation map[string]bool, ...) (validated []*snap.Info, err error) + func ValidationSetKey(accountID, name string) string + func ValidationSets(st *state.State) (map[string]*ValidationSetTracking, error) + func ValidationSetsHistory(st *state.State) ([]map[string]*ValidationSetTracking, error) + type AssertManager struct + func Manager(s *state.State, runner *state.TaskRunner) (*AssertManager, error) + func (m *AssertManager) Ensure() error + type RefreshAssertionsOptions struct + IsAutoRefresh bool + IsRefreshOfAllSnaps bool + type ResolveOptions struct + AllowLocalFallback bool + type ValidationSetMode int + const Enforce + const Monitor + type ValidationSetTracking struct + AccountID string + Current int + LocalOnly bool + Mode ValidationSetMode + Name string + PinnedAt int + func FetchAndApplyEnforcedValidationSet(st *state.State, accountID, name string, sequence, userID int, ...) (*ValidationSetTracking, error) + func MonitorValidationSet(st *state.State, accountID, name string, sequence int, userID int) (*ValidationSetTracking, error)