зеркало из https://github.com/microsoft/docker.git
19 строки
294 B
Go
19 строки
294 B
Go
package daemonbuilder
|
|
|
|
import (
|
|
"github.com/docker/docker/image"
|
|
"github.com/docker/docker/runconfig"
|
|
)
|
|
|
|
type imgWrap struct {
|
|
inner *image.Image
|
|
}
|
|
|
|
func (img imgWrap) ID() string {
|
|
return string(img.inner.ID())
|
|
}
|
|
|
|
func (img imgWrap) Config() *runconfig.Config {
|
|
return img.inner.Config
|
|
}
|