github.com/containers/podman/v4@v4.9.4/libpod/define/diff.go (about) 1 package define 2 3 // extra type to use as enum 4 type DiffType uint8 5 6 const ( 7 // only diff containers 8 DiffContainer DiffType = 1 << iota 9 // only diff images 10 DiffImage 11 // diff both containers and images 12 DiffAll DiffType = 0b11111111 13 ) 14 15 func (d DiffType) String() string { 16 switch d { 17 case DiffAll: 18 return "all" 19 case DiffContainer: 20 return "container" 21 case DiffImage: 22 return "image" 23 default: 24 return "unknown" 25 } 26 }