github.com/getong/docker@v1.13.1/api/server/httputils/decoder.go (about)

     1  package httputils
     2  
     3  import (
     4  	"io"
     5  
     6  	"github.com/docker/docker/api/types/container"
     7  	"github.com/docker/docker/api/types/network"
     8  )
     9  
    10  // ContainerDecoder specifies how
    11  // to translate an io.Reader into
    12  // container configuration.
    13  type ContainerDecoder interface {
    14  	DecodeConfig(src io.Reader) (*container.Config, *container.HostConfig, *network.NetworkingConfig, error)
    15  	DecodeHostConfig(src io.Reader) (*container.HostConfig, error)
    16  }