Skip to content

Commit

Permalink
FS-1123: Add generic configuration functions to interface
Browse files Browse the repository at this point in the history
  • Loading branch information
splaspood committed Jun 6, 2024
1 parent a070a21 commit cfd9f1a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions config/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,18 @@ import (
)

type VendorConfigManager interface {
EnableTPM()
EnableSRIOV()

Raw(name, value string, menuPath []string)
Marshal() (string, error)
Unmarshal(cfgData string) (err error)
StandardConfig() (biosConfig map[string]string, err error)

BootMode(mode string) error
BootOrder(mode string) error
IntelSGX(mode string) error
SecureBoot(enable bool) error
TPM(enable bool) error
SMT(enable bool) error
SRIOV(enable bool) error
}

func NewVendorConfigManager(configFormat, vendorName string, vendorOptions map[string]string) (VendorConfigManager, error) {
Expand Down

0 comments on commit cfd9f1a

Please sign in to comment.