Blame internal/osbuild2/ostree_init_stage.go

Packit Service 15f37d
package osbuild2
Packit Service 15f37d
Packit Service 15f37d
type InitMode string
Packit Service 15f37d
Packit Service 15f37d
const (
Packit Service 15f37d
	ModeBare         InitMode = "bare"
Packit Service 15f37d
	ModeBareUser     InitMode = "bare-user"
Packit Service 15f37d
	ModeBareUserOnly InitMode = "bare-user-only"
Packit Service 15f37d
	ModeArchvie      InitMode = "archive"
Packit Service 15f37d
)
Packit Service 15f37d
Packit Service 15f37d
// Options for the org.osbuild.ostree.init stage.
Packit Service 15f37d
type OSTreeInitStageOptions struct {
Packit Service 15f37d
	// The Mode in which to initialise the repo
Packit Service 15f37d
	Mode InitMode `json:"mode,omitempty"`
Packit Service 15f37d
Packit Service 15f37d
	// Location in which to create the repo
Packit Service 15f37d
	Path string `json:"path,omitempty"`
Packit Service 15f37d
}
Packit Service 15f37d
Packit Service 15f37d
func (OSTreeInitStageOptions) isStageOptions() {}
Packit Service 15f37d
Packit Service 15f37d
// A new org.osbuild.ostree.init stage to create an OSTree repository
Packit Service 15f37d
func NewOSTreeInitStage(options *OSTreeInitStageOptions) *Stage {
Packit Service 15f37d
	return &Stage{
Packit Service 15f37d
		Type:    "org.osbuild.ostree.init",
Packit Service 15f37d
		Options: options,
Packit Service 15f37d
	}
Packit Service 15f37d
}