summaryrefslogtreecommitdiff
path: root/api/server/httputils/decoder.go
blob: 8293503c48162da56bdca19d3a1fbcdbbbbc3ee0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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)
}