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

Function Copy

pkg/gcrane/copy.go:64–68  ·  view source on GitHub ↗

Copy copies a remote image or index from src to dst.

(src, dst string, opts ...Option)

Source from the content-addressed store, hash-verified

62
63// Copy copies a remote image or index from src to dst.
64func Copy(src, dst string, opts ...Option) error {
65 o := makeOptions(opts...)
66 // Just reuse crane's copy logic with gcrane's credential logic.
67 return crane.Copy(src, dst, o.crane...)
68}
69
70// CopyRepository copies everything from the src GCR repository to the
71// dst GCR repository.

Callers 4

NewCmdCopyFunction · 0.92
TestCopyFunction · 0.70
TestCopyWithPlatformFunction · 0.70
TestBadInputsFunction · 0.70

Calls 2

CopyFunction · 0.92
makeOptionsFunction · 0.70

Tested by 3

TestCopyFunction · 0.56
TestCopyWithPlatformFunction · 0.56
TestBadInputsFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…