image: add OSTreeRawImage ImageKind

InstantiateManifest is a stub.  No implementation yet.

Co-Authored-By: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
Achilleas Koutsou 2022-08-15 22:21:59 +02:00 committed by Tom Gundersen
parent 280d27a1c8
commit 5d61ba5d39

View file

@ -0,0 +1,42 @@
package image
import (
"math/rand"
"github.com/osbuild/osbuild-composer/internal/artifact"
"github.com/osbuild/osbuild-composer/internal/disk"
"github.com/osbuild/osbuild-composer/internal/manifest"
"github.com/osbuild/osbuild-composer/internal/platform"
"github.com/osbuild/osbuild-composer/internal/rpmmd"
"github.com/osbuild/osbuild-composer/internal/runner"
"github.com/osbuild/osbuild-composer/internal/workload"
)
type OSTreeRawImage struct {
Base
Platform platform.Platform
Workload workload.Workload
PartitionTable *disk.PartitionTable
OSTreeURL string
OSTreeRef string
OSTreeCommit string
Remote string
OSName string
Filename string
}
func NewOSTreeRawImage() *OSTreeRawImage {
return &OSTreeRawImage{
Base: NewBase("ostree-raw-image"),
}
}
func (img *OSTreeRawImage) InstantiateManifest(m *manifest.Manifest,
repos []rpmmd.RepoConfig,
runner runner.Runner,
rng *rand.Rand) (*artifact.Artifact, error) {
return nil, nil
}