MCPcopy Index your code
hub / github.com/containerd/containerd / LoadBundle

Function LoadBundle

core/runtime/v2/bundle.go:34–44  ·  view source on GitHub ↗

LoadBundle loads an existing bundle from disk

(ctx context.Context, root, id string)

Source from the content-addressed store, hash-verified

32
33// LoadBundle loads an existing bundle from disk
34func LoadBundle(ctx context.Context, root, id string) (*Bundle, error) {
35 ns, err := namespaces.NamespaceRequired(ctx)
36 if err != nil {
37 return nil, err
38 }
39 return &Bundle{
40 ID: id,
41 Path: filepath.Join(root, ns, id),
42 Namespace: ns,
43 }, nil
44}
45
46// NewBundle returns a new bundle on disk
47func NewBundle(ctx context.Context, root, state, id string, spec typeurl.Any) (b *Bundle, err error) {

Callers 1

loadShimsMethod · 0.85

Calls 1

NamespaceRequiredFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…