2015-11-18 22:18:44 +00:00
|
|
|
// +build !windows
|
|
|
|
|
|
|
|
package distribution
|
|
|
|
|
|
|
|
import (
|
2016-05-26 02:11:51 +00:00
|
|
|
"github.com/docker/distribution"
|
|
|
|
"github.com/docker/distribution/context"
|
2015-11-18 22:18:44 +00:00
|
|
|
)
|
|
|
|
|
2016-05-26 02:11:51 +00:00
|
|
|
func (ld *v2LayerDescriptor) open(ctx context.Context) (distribution.ReadSeekCloser, error) {
|
|
|
|
blobs := ld.repo.Blobs(ctx)
|
|
|
|
return blobs.Open(ctx, ld.digest)
|
|
|
|
}
|