2024-12-13 08:09:14 +00:00
|
|
|
package supabase
|
|
|
|
|
2025-01-04 16:07:49 +00:00
|
|
|
import "fmt"
|
|
|
|
|
2024-12-13 08:09:14 +00:00
|
|
|
type ImageRef struct {
|
|
|
|
// The repository of the image
|
|
|
|
Repository string
|
|
|
|
// The tag of the image
|
|
|
|
Tag string
|
|
|
|
}
|
|
|
|
|
2025-01-04 16:07:49 +00:00
|
|
|
func (r ImageRef) String() string {
|
|
|
|
return fmt.Sprintf("%s:%s", r.Repository, r.Tag)
|
|
|
|
}
|
|
|
|
|
|
|
|
var Images = struct{
|
|
|
|
{{- range $name, $image := .Images }}
|
|
|
|
{{$name}} ImageRef
|
|
|
|
{{- end }}
|
|
|
|
}{
|
2024-12-13 08:09:14 +00:00
|
|
|
{{- range $name, $image := .Images }}
|
2025-01-04 16:07:49 +00:00
|
|
|
{{$name}}: ImageRef{
|
2024-12-13 08:09:14 +00:00
|
|
|
Repository: "{{$image.Repository}}",
|
|
|
|
Tag: "{{$image.Tag}}",
|
|
|
|
},
|
|
|
|
{{- end }}
|
|
|
|
}
|