Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotCached = errors.New("not cached")
)
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage interface {
// LoadSVID loads the SVID from storage. Returns ErrNotCached if the SVID
// does not exist in the cache.
LoadSVID() ([]*x509.Certificate, bool, error)
// StoreSVID stores the SVID.
StoreSVID(certs []*x509.Certificate, reattestable bool) error
// DeleteSVID deletes the SVID.
DeleteSVID() error
// LoadBundle loads the bundle from storage. Returns ErrNotCached if the
// bundle does not exist in the cache.
LoadBundle() ([]*x509.Certificate, error)
// StoreBundle stores the bundle.
StoreBundle(certs []*x509.Certificate) error
// LoadBootstrapState returns the Bootstrap state items
LoadBootstrapState() (use int, start_time time.Time, connectionAttempts int, err error)
// StoreBootstrapState stores the use and start_time bootstrap states for future use
StoreBootstrapState(use int, start_time time.Time, connectionAttempts int) error
// DeleteBootstrapState removes the bootstrap state
DeleteBootstrapState() error
}
Click to show internal directories.
Click to hide internal directories.