Skip to content

Commit

Permalink
osbuild: add Len() to the ContainersInputReferences interface
Browse files Browse the repository at this point in the history
  • Loading branch information
achilleas-k committed Nov 27, 2023
1 parent dcc85af commit 0464233
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/osbuild/containers_input.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (

type ContainersInputReferences interface {
isContainersInputReferences()
Len() int
}

type ContainersInputSourceRef struct {
Expand All @@ -16,6 +17,10 @@ type ContainersInputSourceMap map[string]ContainersInputSourceRef

func (ContainersInputSourceMap) isContainersInputReferences() {}

func (cism ContainersInputSourceMap) Len() int {
return len(cism)
}

type ContainersInput struct {
inputCommon
References ContainersInputReferences `json:"references"`
Expand Down

0 comments on commit 0464233

Please sign in to comment.