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 DeriveSideInfo(snapPath string, model *asserts.Model, rf RefAssertsFetcher, ...) (*snap.SideInfo, []*asserts.Ref, error) + func IsSytemDirectoryExistsError(err error) bool + type NewFetcherFunc func(save func(asserts.Assertion) error) asserts.Fetcher + type Options struct + DefaultChannel string + Label string + SeedDir string + TestSkipCopyUnverifiedModel bool + type OptionsSnap struct + Channel string + Name string + Path string + SnapID string + func (s *OptionsSnap) ID() string + func (s *OptionsSnap) SnapName() string + type RefAssertsFetcher interface + Refs func() []*asserts.Ref + ResetRefs func() + func MakeRefAssertsFetcher(newFetcher NewFetcherFunc) RefAssertsFetcher + type SeedSnap struct + ARefs []*asserts.Ref + Channel string + Info *snap.Info + Path string + type SystemAlreadyExistsError struct + func (e *SystemAlreadyExistsError) Error() string + type Writer struct + func New(model *asserts.Model, opts *Options) (*Writer, error) + func (w *Writer) BootSnaps() ([]*SeedSnap, error) + func (w *Writer) Downloaded() (complete bool, err error) + func (w *Writer) InfoDerived() error + func (w *Writer) LocalSnaps() ([]*SeedSnap, error) + func (w *Writer) SeedSnaps(copySnap func(name, src, dst string) error) error + func (w *Writer) SetInfo(sn *SeedSnap, info *snap.Info) error + func (w *Writer) SetOptionsSnaps(optSnaps []*OptionsSnap) error + func (w *Writer) SetRedirectChannel(sn *SeedSnap, redirectChannel string) error + func (w *Writer) SnapsToDownload() (snaps []*SeedSnap, err error) + func (w *Writer) Start(db asserts.RODatabase, newFetcher NewFetcherFunc) (RefAssertsFetcher, error) + func (w *Writer) UnassertedSnaps() ([]naming.SnapRef, error) + func (w *Writer) Warnings() []string + func (w *Writer) WriteMeta() error