github.com/coreos/docker@v1.13.1/daemon/inspect_solaris.go (about) 1 package daemon 2 3 import ( 4 "github.com/docker/docker/api/types" 5 "github.com/docker/docker/api/types/backend" 6 "github.com/docker/docker/api/types/versions/v1p19" 7 "github.com/docker/docker/container" 8 "github.com/docker/docker/daemon/exec" 9 ) 10 11 // This sets platform-specific fields 12 func setPlatformSpecificContainerFields(container *container.Container, contJSONBase *types.ContainerJSONBase) *types.ContainerJSONBase { 13 return contJSONBase 14 } 15 16 // containerInspectPre120 get containers for pre 1.20 APIs. 17 func (daemon *Daemon) containerInspectPre120(name string) (*v1p19.ContainerJSON, error) { 18 return &v1p19.ContainerJSON{}, nil 19 } 20 21 func addMountPoints(container *container.Container) []types.MountPoint { 22 mountPoints := make([]types.MountPoint, 0, len(container.MountPoints)) 23 for _, m := range container.MountPoints { 24 mountPoints = append(mountPoints, types.MountPoint{ 25 Name: m.Name, 26 Source: m.Path(), 27 Destination: m.Destination, 28 Driver: m.Driver, 29 RW: m.RW, 30 }) 31 } 32 return mountPoints 33 } 34 35 func inspectExecProcessConfig(e *exec.Config) *backend.ExecProcessConfig { 36 return &backend.ExecProcessConfig{ 37 Tty: e.Tty, 38 Entrypoint: e.Entrypoint, 39 Arguments: e.Args, 40 } 41 }