(ctx context.Context, name string)
| 924 | } |
| 925 | |
| 926 | func (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 |
no test coverage detected