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:
parent
edce65eabd
commit
836dddbb33
1 changed files with 15 additions and 0 deletions
15
internal/fdo/fdo.go
Normal file
15
internal/fdo/fdo.go
Normal 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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue