mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
4f0d95fa6e
Signed-off-by: Daniel Nephin <dnephin@docker.com>
16 lines
492 B
Go
16 lines
492 B
Go
package httputils // import "github.com/docker/docker/api/server/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)
|
|
}
|