iot: change the copy stages

Split this into two separate copystages so that we are not overriding
types.
This commit is contained in:
Simon de Vlieger 2023-04-18 14:02:35 +02:00
parent b0fce3bfd1
commit 258f450021
7 changed files with 520 additions and 291 deletions

View file

@ -5,7 +5,7 @@ type OSTreeInput struct {
inputCommon
}
func (OSTreeInput) isInput() {}
func (OSTreeInput) isStageInputs() {}
func NewOSTreeInput() *OSTreeInput {
input := new(OSTreeInput)
@ -20,8 +20,6 @@ type OSTreeCheckoutInput struct {
References OSTreeCheckoutReferences `json:"references"`
}
func (OSTreeCheckoutInput) isInput() {}
type OSTreeCheckoutReferences []string
func (OSTreeCheckoutReferences) isReferences() {}
@ -40,3 +38,7 @@ func NewOSTreeCheckoutInput(origin, name string) *OSTreeCheckoutInput {
input.References = inputRefs
return input
}
type OSTreeCheckoutInputs map[string]OSTreeCheckoutInput
func (c OSTreeCheckoutInputs) isStageInputs() {}

View file

@ -19,7 +19,7 @@ func NewTreeInput(reference string) *TreeInput {
return input
}
type PipelineTreeInputs map[string]Input
type PipelineTreeInputs map[string]TreeInput
func NewPipelineTreeInputs(name, pipeline string) *PipelineTreeInputs {
return &PipelineTreeInputs{