MCPcopy Create free account
hub / github.com/devfile/devworkspace-operator / getContainerEndpointByName

Function getContainerEndpointByName

pkg/library/annotate/urls.go:44–51  ·  view source on GitHub ↗
(name string, container *dw.ContainerComponent)

Source from the content-addressed store, hash-verified

42}
43
44func getContainerEndpointByName(name string, container *dw.ContainerComponent) *dw.Endpoint {
45 for idx, endpoint := range container.Endpoints {
46 if endpoint.Name == name {
47 return &container.Endpoints[idx]
48 }
49 }
50 return nil
51}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected