github.com/containers/libpod@v1.9.4-0.20220419124438-4284fd425507/libpod/define/config.go (about) 1 package define 2 3 import ( 4 "bufio" 5 "io" 6 ) 7 8 var ( 9 // DefaultInfraImage to use for infra container 10 DefaultInfraImage = "k8s.gcr.io/pause:3.2" 11 // DefaultInfraCommand to be run in an infra container 12 DefaultInfraCommand = "/pause" 13 // DefaultSHMLockPath is the default path for SHM locks 14 DefaultSHMLockPath = "/libpod_lock" 15 // DefaultRootlessSHMLockPath is the default path for rootless SHM locks 16 DefaultRootlessSHMLockPath = "/libpod_rootless_lock" 17 ) 18 19 const ( 20 // DefaultTransport is a prefix that we apply to an image name 21 // to check docker hub first for the image 22 DefaultTransport = "docker://" 23 ) 24 25 // InfoData holds the info type, i.e store, host etc and the data for each type 26 type InfoData struct { 27 Type string 28 Data map[string]interface{} 29 } 30 31 // VolumeDriverLocal is the "local" volume driver. It is managed by libpod 32 // itself. 33 const VolumeDriverLocal = "local" 34 35 const ( 36 OCIManifestDir = "oci-dir" 37 OCIArchive = "oci-archive" 38 V2s2ManifestDir = "docker-dir" 39 V2s2Archive = "docker-archive" 40 ) 41 42 // AttachStreams contains streams that will be attached to the container 43 type AttachStreams struct { 44 // OutputStream will be attached to container's STDOUT 45 OutputStream io.WriteCloser 46 // ErrorStream will be attached to container's STDERR 47 ErrorStream io.WriteCloser 48 // InputStream will be attached to container's STDIN 49 InputStream *bufio.Reader 50 // AttachOutput is whether to attach to STDOUT 51 // If false, stdout will not be attached 52 AttachOutput bool 53 // AttachError is whether to attach to STDERR 54 // If false, stdout will not be attached 55 AttachError bool 56 // AttachInput is whether to attach to STDIN 57 // If false, stdout will not be attached 58 AttachInput bool 59 }