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
|
|
|
"github.com/docker/distribution/manifest/schema1"
|
|
|
|
"github.com/docker/docker/image"
|
|
|
|
)
|
|
|
|
|
|
|
|
func detectBaseLayer(is image.Store, m *schema1.Manifest, rootFS *image.RootFS) error {
|
|
|
|
return nil
|
|
|
|
}
|
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)
|
|
|
|
}
|