MCPcopy Create free account
hub / github.com/docker/docker-language-server / NewHubClient

Function NewHubClient

internal/hub/client.go:45–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43}
44
45func NewHubClient() *HubClientImpl {
46 return &HubClientImpl{
47 client: http.Client{
48 Timeout: 30 * time.Second,
49 },
50 }
51}
52
53func (c *HubClientImpl) GetTags(ctx context.Context, repository, image string) ([]TagResult, error) {
54 return c.GetTagsFromURL(ctx, fmt.Sprintf(getTagsUrl, repository, image))

Callers 1

NewServiceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected