debian-forge-composer/internal/osbuildexecutor/osbuild-executor.go
Michael Vogt aa3d70a429 osbuildexecutor: tweak RunOSBuild() signature and use opts
Introduce a new OsbuildOpts struct to make the API a bit easier
to extend and use in the packages.

Also add a new `JobID` field in the `OsbuildOpts`.
2024-06-14 15:02:08 +02:00

24 lines
428 B
Go

package osbuildexecutor
import (
"io"
"github.com/osbuild/images/pkg/osbuild"
)
type OsbuildOpts struct {
StoreDir string
OutputDir string
Exports []string
ExportPaths []string
Checkpoints []string
ExtraEnv []string
Result bool
// not strict a osbuild opt
JobID string
}
type Executor interface {
RunOSBuild(manifest []byte, opts *OsbuildOpts, errorWriter io.Writer) (*osbuild.Result, error)
}