github.com/cloud-foundations/dominator@v0.0.0-20221004181915-6e4fee580046/proto/imageunpacker/string.go (about) 1 package imageunpacker 2 3 func (status StreamStatus) string() string { 4 switch status { 5 case StatusStreamNoDevice: 6 return "no device" 7 case StatusStreamNotMounted: 8 return "not mounted" 9 case StatusStreamMounted: 10 return "mounted" 11 case StatusStreamScanning: 12 return "scanning" 13 case StatusStreamScanned: 14 return "scanned" 15 case StatusStreamFetching: 16 return "fetching" 17 case StatusStreamUpdating: 18 return "updating" 19 case StatusStreamPreparing: 20 return "preparing" 21 case StatusStreamExporting: 22 return "exporting" 23 case StatusStreamNoFileSystem: 24 return "no file-system" 25 default: 26 return "UNKNOWN" 27 } 28 }