Blame internal/osbuild2/zipl_stage.go
|
Packit Service |
15f37d |
package osbuild2
|
|
Packit Service |
15f37d |
|
|
Packit Service |
15f37d |
// The ZiplStageOptions describe how to create zipl stage
|
|
Packit Service |
15f37d |
//
|
|
Packit Service |
15f37d |
// The only configuration option available is a boot timeout and it is optional
|
|
Packit Service |
15f37d |
type ZiplStageOptions struct {
|
|
Packit Service |
15f37d |
Timeout int `json:"timeout,omitempty"`
|
|
Packit Service |
15f37d |
}
|
|
Packit Service |
15f37d |
|
|
Packit Service |
15f37d |
func (ZiplStageOptions) isStageOptions() {}
|
|
Packit Service |
15f37d |
|
|
Packit Service |
15f37d |
// NewZiplStageOptions creates a new ZiplStageOptions object with no timeout
|
|
Packit Service |
15f37d |
func NewZiplStageOptions() *ZiplStageOptions {
|
|
Packit Service |
15f37d |
return &ZiplStageOptions{
|
|
Packit Service |
15f37d |
Timeout: 0,
|
|
Packit Service |
15f37d |
}
|
|
Packit Service |
15f37d |
}
|
|
Packit Service |
15f37d |
|
|
Packit Service |
15f37d |
// NewZiplStage creates a new zipl Stage object.
|
|
Packit Service |
15f37d |
func NewZiplStage(options *ZiplStageOptions) *Stage {
|
|
Packit Service |
15f37d |
return &Stage{
|
|
Packit Service |
15f37d |
Type: "org.osbuild.zipl",
|
|
Packit Service |
15f37d |
Options: options,
|
|
Packit Service |
15f37d |
}
|
|
Packit Service |
15f37d |
}
|