debian-forge-composer/internal/osbuild2/waagent_conf.go
Christian Kellner fcbaf80d67 osbuild2: add org.osbuild.waagent.config stage
Add the necessary structs for the `org.osbuild.waagent.config` stage.
2022-02-27 22:03:36 +01:00

19 lines
430 B
Go

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,
}
}