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