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.
15 lines
322 B
Go
15 lines
322 B
Go
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
|
|
}
|