github.com/tilt-dev/tilt@v0.33.15-0.20240515162809-0a22ed45d8a0/internal/controllers/apis/dockerimage/dockerimage.go (about)

     1  package dockerimage
     2  
     3  import (
     4  	"fmt"
     5  
     6  	"github.com/tilt-dev/tilt/pkg/apis"
     7  	"github.com/tilt-dev/tilt/pkg/model"
     8  )
     9  
    10  // Generate the name for the DockerImage API object from an ImageTarget and ManifestName.
    11  func GetName(mn model.ManifestName, id model.TargetID) string {
    12  	return apis.SanitizeName(fmt.Sprintf("%s:%s", mn.String(), id.Name))
    13  }