Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AnchorRecord ¶
type AnchorRecord struct {
Fingerprint string `json:"fingerprint"`
IssuerReference string `json:"issuer_reference,omitempty"`
Backend string `json:"backend"`
Path string `json:"path"`
InstalledAt time.Time `json:"installed_at"`
}
func StateRecords ¶
func StateRecords(stateDir string) ([]AnchorRecord, error)
type Backend ¶
type Backend interface {
Name() string
AnchorPath(fingerprint string) (string, error)
Install(context.Context, string, string) error
Remove(context.Context, string) error
}
func DetectSystemBackend ¶
type State ¶
type State struct {
Version int `json:"version"`
Anchors []AnchorRecord `json:"anchors,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.