Documentation
¶
Index ¶
- type Cleaner
- type SeedSnaps
- func (ss *SeedSnaps) AssertedSnap(snapName string) (snapFile string)
- func (ss *SeedSnaps) AssertedSnapID(snapName string) string
- func (ss *SeedSnaps) AssertedSnapInfo(snapName string) *snap.Info
- func (ss *SeedSnaps) MakeAssertedSnap(c *C, snapYaml string, files [][]string, revision snap.Revision, ...) (*asserts.SnapDeclaration, *asserts.SnapRevision)
- func (ss *SeedSnaps) SetupAssertSigning(storeBrandID string, cleaner Cleaner)
- type TestingSeed
- func (s *TestingSeed) MakeAssertedSnap(c *C, snapYaml string, files [][]string, revision snap.Revision, ...) (snapFname string, snapDecl *asserts.SnapDeclaration, ...)
- func (s *TestingSeed) MakeModelAssertionChain(brandID, model string, extras ...map[string]interface{}) []asserts.Assertion
- func (s *TestingSeed) WriteAssertions(fn string, assertions ...asserts.Assertion)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SeedSnaps ¶
type SeedSnaps struct { StoreSigning *assertstest.StoreStack Brands *assertstest.SigningAccounts // DB will be populated with snap assertions if not nil DB *asserts.Database // contains filtered or unexported fields }
SeedSnaps helps creating snaps for a seed.
func (*SeedSnaps) AssertedSnap ¶
func (*SeedSnaps) AssertedSnapID ¶
func (*SeedSnaps) AssertedSnapInfo ¶
func (*SeedSnaps) MakeAssertedSnap ¶
func (ss *SeedSnaps) MakeAssertedSnap(c *C, snapYaml string, files [][]string, revision snap.Revision, developerID string) (*asserts.SnapDeclaration, *asserts.SnapRevision)
func (*SeedSnaps) SetupAssertSigning ¶
SetupAssertSigning initializes StoreSigning for storeBrandID and Brands.
type TestingSeed ¶
TestingSeed helps setting up a populated testing seed.
func (*TestingSeed) MakeAssertedSnap ¶
func (s *TestingSeed) MakeAssertedSnap(c *C, snapYaml string, files [][]string, revision snap.Revision, developerID string) (snapFname string, snapDecl *asserts.SnapDeclaration, snapRev *asserts.SnapRevision)
func (*TestingSeed) MakeModelAssertionChain ¶
func (s *TestingSeed) MakeModelAssertionChain(brandID, model string, extras ...map[string]interface{}) []asserts.Assertion
func (*TestingSeed) WriteAssertions ¶
func (s *TestingSeed) WriteAssertions(fn string, assertions ...asserts.Assertion)
Click to show internal directories.
Click to hide internal directories.