From 836dddbb33e61a81c1d8ee2aced9e6314cb4e239 Mon Sep 17 00:00:00 2001 From: Achilleas Koutsou Date: Tue, 29 Nov 2022 19:30:29 +0100 Subject: [PATCH] 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. --- internal/fdo/fdo.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 internal/fdo/fdo.go diff --git a/internal/fdo/fdo.go b/internal/fdo/fdo.go new file mode 100644 index 000000000..badd407ad --- /dev/null +++ b/internal/fdo/fdo.go @@ -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 +}