supabase-operator/magefiles/templates/images.go.tmpl

28 lines
505 B
Cheetah
Raw Permalink Normal View History

package supabase
import "fmt"
type ImageRef struct {
// The repository of the image
Repository string
// The tag of the image
Tag string
}
func (r ImageRef) String() string {
return fmt.Sprintf("%s:%s", r.Repository, r.Tag)
}
var Images = struct{
{{- range $name, $image := .Images }}
{{$name}} ImageRef
{{- end }}
}{
{{- range $name, $image := .Images }}
{{$name}}: ImageRef{
Repository: "{{$image.Repository}}",
Tag: "{{$image.Tag}}",
},
{{- end }}
}