mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00

Windows base layers are no longer the special "layers+base" type, so we can remove all the special handling for that. Signed-off-by: Stefan J. Wernli <swernli@microsoft.com>
13 lines
290 B
Go
13 lines
290 B
Go
// +build !windows
|
|
|
|
package distribution
|
|
|
|
import (
|
|
"github.com/docker/distribution"
|
|
"github.com/docker/distribution/context"
|
|
)
|
|
|
|
func (ld *v2LayerDescriptor) open(ctx context.Context) (distribution.ReadSeekCloser, error) {
|
|
blobs := ld.repo.Blobs(ctx)
|
|
return blobs.Open(ctx, ld.digest)
|
|
}
|