MCPcopy
hub / github.com/google/go-containerregistry / Example

Function Example

pkg/crane/example_test.go:23–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21)
22
23func Example() {
24 c := map[string][]byte{
25 "/binary": []byte("binary contents"),
26 }
27 i, _ := crane.Image(c)
28 d, _ := i.Digest()
29 fmt.Println(d)
30 // Output: sha256:09fb0c6289cefaad8c74c7e5fd6758ad6906ab8f57f1350d9f4eb5a7df45ff8b
31}

Callers

nothing calls this directly

Calls 2

ImageFunction · 0.92
DigestMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…