mirror of
https://github.com/genuinetools/reg.git
synced 2024-09-12 06:11:03 -04:00
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)
|
|
}
|