2022-07-18 06:51:49 -04:00
|
|
|
package containerd
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
2022-08-10 09:22:32 -04:00
|
|
|
"errors"
|
2022-07-18 06:51:49 -04:00
|
|
|
|
|
|
|
"github.com/docker/docker/api/types/backend"
|
|
|
|
"github.com/docker/docker/builder"
|
2022-08-10 09:22:32 -04:00
|
|
|
"github.com/docker/docker/errdefs"
|
2022-07-18 06:51:49 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
// GetImageAndReleasableLayer returns an image and releaseable layer for a
|
|
|
|
// reference or ID. Every call to GetImageAndReleasableLayer MUST call
|
|
|
|
// releasableLayer.Release() to prevent leaking of layers.
|
|
|
|
func (i *ImageService) GetImageAndReleasableLayer(ctx context.Context, refOrID string, opts backend.GetImageAndLayerOptions) (builder.Image, builder.ROLayer, error) {
|
2022-08-10 09:22:32 -04:00
|
|
|
return nil, nil, errdefs.NotImplemented(errors.New("not implemented"))
|
2022-07-18 06:51:49 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// CreateImage creates a new image by adding a config and ID to the image store.
|
|
|
|
// This is similar to LoadImage() except that it receives JSON encoded bytes of
|
|
|
|
// an image instead of a tar archive.
|
|
|
|
func (i *ImageService) CreateImage(config []byte, parent string) (builder.Image, error) {
|
2022-08-10 09:22:32 -04:00
|
|
|
return nil, errdefs.NotImplemented(errors.New("not implemented"))
|
2022-07-18 06:51:49 -04:00
|
|
|
}
|