MCPcopy
hub / github.com/containerd/containerd / getSnapshotter

Method getSnapshotter

client/client.go:926–938  ·  view source on GitHub ↗
(ctx context.Context, name string)

Source from the content-addressed store, hash-verified

924}
925
926func (c *Client) getSnapshotter(ctx context.Context, name string) (snapshots.Snapshotter, error) {
927 name, err := c.resolveSnapshotterName(ctx, name)
928 if err != nil {
929 return nil, err
930 }
931
932 s := c.SnapshotService(name)
933 if s == nil {
934 return nil, fmt.Errorf("snapshotter %s was not found: %w", name, errdefs.ErrNotFound)
935 }
936
937 return s, nil
938}
939
940// GetSnapshotterSupportedPlatforms returns a platform matchers which represents the
941// supported platforms for the given snapshotters

Callers 7

IsUnpackedMethod · 0.45
UnpackMethod · 0.45
WithSnapshotFunction · 0.45
WithSnapshotCleanupFunction · 0.45
withNewSnapshotFunction · 0.45
handleMountsMethod · 0.45
withRemappedSnapshotBaseFunction · 0.45

Calls 2

SnapshotServiceMethod · 0.95

Tested by

no test coverage detected