func (l ImageInfoList) GetByImageID(imageID string) (ImageInfo, bool) {
	for _, x := range l {
		if x.ImageID == imageID {
			return x, true
		}
	}
	return ImageInfo{}, false
}
GetByImageID returns the info in the given list for the image with given id.
If not found, false is returned.
package v2alpha1
import (
	"fmt"
	driver "github.com/arangodb/go-driver"
)
type ImageInfo struct {
	Image           string         `json:"image"`                       
	ImageID         string         `json:"image-id,omitempty"`          
	ArangoDBVersion driver.Version `json:"arangodb-version,omitempty"`  
	Enterprise      bool           `json:"enterprise,omitempty"`        
}
func (i *ImageInfo) String() string {
	if i == nil {
		return "undefined"
	}
	e := "Community"
	if i.Enterprise {
		e = "Enterprise"
	}
	return fmt.Sprintf("ArangoDB %s %s (%s)", e, string(i.ArangoDBVersion), i.Image)
}
type ImageInfoList []ImageInfo
func (l ImageInfoList) Add(i ...ImageInfo) ImageInfoList {
	return append(l, i...)
}
func (l ImageInfoList) GetByImage(image string) (ImageInfo, bool) {
	for _, x := range l {
		if x.Image == image {
			return x, true
		}
	}
	return ImageInfo{}, false
}