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:
parent
280d27a1c8
commit
5d61ba5d39
1 changed files with 42 additions and 0 deletions
42
internal/image/ostree_raw.go
Normal file
42
internal/image/ostree_raw.go
Normal 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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue