osbuild2: tar stage
Rename creation function from old assembler and add inputs.
This commit is contained in:
parent
5c3dd46d63
commit
883adea2ac
1 changed files with 19 additions and 1 deletions
|
|
@ -16,11 +16,29 @@ type TarStageOptions struct {
|
|||
|
||||
func (TarStageOptions) isStageOptions() {}
|
||||
|
||||
type TarStageInput struct {
|
||||
inputCommon
|
||||
References TarStageReferences `json:"references"`
|
||||
}
|
||||
|
||||
func (TarStageInput) isStageInput() {}
|
||||
|
||||
type TarStageInputs struct {
|
||||
Tree *TarStageInput `json:"tree"`
|
||||
}
|
||||
|
||||
func (TarStageInputs) isStageInputs() {}
|
||||
|
||||
type TarStageReferences []string
|
||||
|
||||
func (TarStageReferences) isReferences() {}
|
||||
|
||||
// Assembles a tree into a tar archive. Compression is determined by the suffix
|
||||
// (i.e., --auto-compress is used).
|
||||
func NewTarAssembler(options *TarStageOptions) *Stage {
|
||||
func NewTarStage(options *TarStageOptions, inputs *TarStageInputs) *Stage {
|
||||
return &Stage{
|
||||
Type: "org.osbuild.tar",
|
||||
Options: options,
|
||||
Inputs: inputs,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue