MCPcopy Index your code
hub / github.com/docker/docker-agent / GetUUID

Function GetUUID

pkg/desktop/uuid.go:11–18  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

9var uuidMemoizer = memoize.New[string](memoize.NoExpiration)
10
11func GetUUID(ctx context.Context) string {
12 uuid, _ := uuidMemoizer.Memoize("desktopUUID", func() (string, error) {
13 var uuid string
14 _ = ClientBackend.Get(ctx, "/uuid", &uuid)
15 return uuid, nil
16 })
17 return uuid
18}

Callers 1

newClientFunction · 0.92

Calls 2

MemoizeMethod · 0.80
GetMethod · 0.65

Tested by

no test coverage detected