mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
7ac4232e70
- Make the API client library completely standalone. - Move windows partition isolation detection to the client, so the driver doesn't use external types. Signed-off-by: David Calavera <david.calavera@gmail.com>
18 lines
304 B
Go
18 lines
304 B
Go
package daemonbuilder
|
|
|
|
import (
|
|
"github.com/docker/docker/api/types/container"
|
|
"github.com/docker/docker/image"
|
|
)
|
|
|
|
type imgWrap struct {
|
|
inner *image.Image
|
|
}
|
|
|
|
func (img imgWrap) ID() string {
|
|
return string(img.inner.ID())
|
|
}
|
|
|
|
func (img imgWrap) Config() *container.Config {
|
|
return img.inner.Config
|
|
}
|