This moves the types for the `engine-api` repo to the existing types package. Signed-off-by: Michael Crosby <crosbymichael@gmail.com> Upstream-commit: 91e197d614547f0202e6ae9b8a24d88ee131d950 Component: engine
17 lines
434 B
Go
17 lines
434 B
Go
package httputils
|
|
|
|
import (
|
|
"io"
|
|
|
|
"github.com/docker/docker/api/types/container"
|
|
"github.com/docker/docker/api/types/network"
|
|
)
|
|
|
|
// ContainerDecoder specifies how
|
|
// to translate an io.Reader into
|
|
// container configuration.
|
|
type ContainerDecoder interface {
|
|
DecodeConfig(src io.Reader) (*container.Config, *container.HostConfig, *network.NetworkingConfig, error)
|
|
DecodeHostConfig(src io.Reader) (*container.HostConfig, error)
|
|
}
|