Blame internal/osbuild2/lorax_script_stage.go

Packit Service 15f37d
package osbuild2
Packit Service 15f37d
Packit Service 15f37d
type LoraxScriptStageOptions struct {
Packit Service 15f37d
	// Where to put the script
Packit Service 15f37d
	Path string `json:"path"`
Packit Service 15f37d
Packit Service 15f37d
	// The basic architecture parameter to supply to the template
Packit Service 15f37d
	BaseArch string `json:"basearch,omitempty"`
Packit Service 15f37d
Packit Service 15f37d
	Product Product `json:"product,omitempty"`
Packit Service 15f37d
Packit Service 15f37d
	LibDir string `json:"libdir,omitempty"`
Packit Service 15f37d
}
Packit Service 15f37d
Packit Service 15f37d
type Product struct {
Packit Service 15f37d
	Name    string `json:"name"`
Packit Service 15f37d
	Version string `json:"version"`
Packit Service 15f37d
}
Packit Service 15f37d
Packit Service 15f37d
func (LoraxScriptStageOptions) isStageOptions() {}
Packit Service 15f37d
Packit Service 15f37d
// Run a Lorax template script on the tree
Packit Service 15f37d
func NewLoraxScriptStage(options *LoraxScriptStageOptions) *Stage {
Packit Service 15f37d
	return &Stage{
Packit Service 15f37d
		Type:    "org.osbuild.lorax-script",
Packit Service 15f37d
		Options: options,
Packit Service 15f37d
	}
Packit Service 15f37d
}