sysdb

package
v0.0.0-...-7cedb2b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2016 License: GPL-3.0 Imports: 3 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func InjectTrusted

func InjectTrusted(extra []asserts.Assertion) (restore func())

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 Open

func Open() (*asserts.Database, error)

Open opens the system-wide assertion database with the trusted assertions set configured.

func Trusted

func Trusted() []asserts.Assertion

Trusted returns a copy of the current set of trusted assertions as used by Open.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL