osbuild2: add org.osbuild.waagent.config stage

Add the necessary structs for the `org.osbuild.waagent.config` stage.
This commit is contained in:
Christian Kellner 2022-02-24 15:49:39 +01:00 committed by Achilleas Koutsou
parent 8f746698f0
commit fcbaf80d67

View file

@ -0,0 +1,19 @@
package osbuild2
type WAAgentConfig struct {
RDFormat *bool `json:"ResourceDisk.Format"`
RDEnableSwap *bool `json:"ResourceDisk.EnableSwap"`
}
type WAAgentConfStageOptions struct {
Config WAAgentConfig `json:"config"`
}
func (WAAgentConfStageOptions) isStageOptions() {}
func NewWAAgentConfStage(options *WAAgentConfStageOptions) *Stage {
return &Stage{
Type: "org.osbuild.waagent.conf",
Options: options,
}
}