2018-02-05 16:05:59 -05:00
|
|
|
package httputils // import "github.com/docker/docker/api/server/httputils"
|
2016-03-28 14:22:23 -04:00
|
|
|
|
|
|
|
import (
|
|
|
|
"io"
|
|
|
|
|
2016-09-06 14:18:12 -04:00
|
|
|
"github.com/docker/docker/api/types/container"
|
|
|
|
"github.com/docker/docker/api/types/network"
|
2016-03-28 14:22:23 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
// 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)
|
|
|
|
}
|