Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DatabasePath string
)
Functions ¶
Types ¶
type Config ¶
type Config struct { Landlock bool `json:"landlock"` Keydir string `json:"keydir"` GUID string `json:"guid"` FilesDb string `json:"files_db"` BundlesDb string `json:"bundles_db"` DbAdditions []string `json:"db_additions,omitempty"` Files []*FileConfig `json:"files,omitempty"` Keys *Keys `json:"keys"` }
Note: Anything serialized as part of this struct will end up in a public debug dump at some point, probably.
func DefaultConfig ¶
func DefaultConfig() *Config
type FileConfig ¶
type Keys ¶
type Keys struct { PK *KeyConfig `json:"pk"` KEK *KeyConfig `json:"kek"` Db *KeyConfig `json:"db"` }
func (*Keys) GetKeysConfigs ¶
type State ¶
type State struct { Fs afero.Fs TPM func() transport.TPMCloser Config *Config Efivarfs *efivarfs.Efivarfs }
Key creation is going to require differen callbacks to we abstract them away
func (*State) HasLandlock ¶
func (*State) IsInstalled ¶
func (*State) MarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.