Documentation ¶
Overview ¶
Package sysdb supports the system-wide assertion database with ways to open it and to manage the trusted set of assertions founding it.
Index ¶
- func Generic() []asserts.Assertion
- func GenericClassicModel() *asserts.Model
- func InjectGeneric(extra []asserts.Assertion) (restore func())
- func InjectTrusted(extra []asserts.Assertion) (restore func())
- func MockGenericClassicModel(mod *asserts.Model) (restore func())
- func Open() (*asserts.Database, error)
- func Trusted() []asserts.Assertion
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generic ¶
Generic returns a copy of the current set of predefined assertions for the 'generic' authority as used by Open.
func GenericClassicModel ¶
GenericClassicModel returns the model assertion for the "generic"'s "generic-classic" fallback model.
func InjectGeneric ¶
InjectGeneric injects further predefined assertions into the set used Open. Returns a restore function to reinstate the previous set. Useful for tests or called globally without worrying about restoring.
func InjectTrusted ¶
InjectTrusted injects further assertions into the trusted set for Open. Returns a restore function to reinstate the previous set. Useful for tests or called globally without worrying about restoring.
func MockGenericClassicModel ¶
MockGenericClassicModel mocks the predefined generic-classic model returned by GenericClassicModel.
Types ¶
This section is empty.