Fix interface{} in api/types.go; plumb through system.

This commit is contained in:
Daniel Smith
2014-06-30 19:46:10 -07:00
parent d523ccb428
commit 049bc6b6d4
10 changed files with 219 additions and 93 deletions

View File

@@ -16,6 +16,10 @@ limitations under the License.
package api
import (
"github.com/fsouza/go-dockerclient"
)
// Common string formats
// ---------------------
// Many fields in this API have formatting requirements. The commonly used
@@ -159,7 +163,13 @@ type PodState struct {
Status PodStatus `json:"status,omitempty" yaml:"status,omitempty"`
Host string `json:"host,omitempty" yaml:"host,omitempty"`
HostIP string `json:"hostIP,omitempty" yaml:"hostIP,omitempty"`
Info interface{} `json:"info,omitempty" yaml:"info,omitempty"`
// The key of this map is the *name* of the container within the manifest; it has one
// entry per container in the manifest. The value of this map is currently the output
// of `docker inspect`. This output format is *not* final and should not be relied
// upon.
// TODO: Make real decisions about what our info should look like.
Info map[string]docker.Container `json:"info,omitempty" yaml:"info,omitempty"`
}
type PodList struct {