New package: fdo

Defines an fdo.Options struct for the internal representation of the FDO
options.  It can be easily converted from the blueprint FDO
customizations and is added to OSCustomizations in the pipeline
generators, which in turn define stage options.
This commit is contained in:
Achilleas Koutsou 2022-11-29 19:30:29 +01:00 committed by Tom Gundersen
parent edce65eabd
commit 836dddbb33

15
internal/fdo/fdo.go Normal file
View file

@ -0,0 +1,15 @@
package fdo
import "github.com/osbuild/osbuild-composer/internal/blueprint"
type Options struct {
ManufacturingServerURL string
DiunPubKeyInsecure string
DiunPubKeyHash string
DiunPubKeyRootCerts string
}
func FromBP(bpFDO blueprint.FDOCustomization) *Options {
fdo := Options(bpFDO)
return &fdo
}