dotcloud/docker

View on GitHub
api/server/httputils/decoder.go

Summary

Maintainability
A
0 mins
Test Coverage
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)
}