package
0.0.0-20250312152250-ea85ec9d2454
Repository: https://github.com/snapcore/snapd.git
Documentation: pkg.go.dev
# Functions
DeriveComponentSideInfo tries to construct a ComponentSideInfo for the given component using its digest to fetch the relevant assertions.
DeriveSideInfo tries to construct a SideInfo for the given snap using its digest to fetch the relevant snap assertions.
No description provided by the author
MakeSeedAssertionFetcher makes a SeedAssertionFetcher using newFetcher which can build a base Fetcher with an additional save function, to capture assertion references.
MockManifest is stricly for unit tests, do not use for non-test code.
New returns a Writer to write a seed for the given model and using the given Options.
No description provided by the author
ReadManifest reads a seed.manifest previously generated by Manifest.Write and returns a new Manifest structure reflecting the contents.
# Structs
Represents the validation-sets and snaps that are used to build an image seed.
ManifestSnapRevision represents a snap revision as noted in the seed manifest.
ManifestValidationSet represents a validation set as noted in the seed manifest.
Options holds the options for a Writer.
OptionsComponent represents an options-referred snap with its option values.
OptionsSnap represents an options-referred snap with its option values.
SeedComponent holds details of a component being added to a seed.
SeedSnap holds details of a snap being added to a seed.
SystemAlreadyExistsError is an error returned when given seed system already exists.
Downloaded must be passed an AssertsFetchFunc responsible for fetching or retrieving snap assertions when applicable.
# Interfaces
SeedAssertionFetcher is a Fetcher which is designed to help with the fetching of assertions during seeding.
# Type aliases
An AssertsFetchFunc should fetch appropriate assertions for the snap sn, it can take into account format constraints caused by the given systemSnap and kernelSnap if set.
A NewFetcherFunc can build a Fetcher saving to an (implicit) database and also calling the given additional save function.