debian-forge-composer/internal/osbuildexecutor/osbuild-executor.go
Sanne Raymaekers 2a621521a8 osbuildexecutor/aws.ec2: set hostname of executor via cloud-init
This way much more of the journal will be captured under the new
hostname.
2024-06-25 10:58:10 +02:00

21 lines
384 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
}
type Executor interface {
RunOSBuild(manifest []byte, opts *OsbuildOpts, errorWriter io.Writer) (*osbuild.Result, error)
}