github.com/amanya/packer@v0.12.1-0.20161117214323-902ac5ab2eb6/builder/googlecompute/image.go (about) 1 package googlecompute 2 3 import ( 4 "strings" 5 ) 6 7 type Image struct { 8 Licenses []string 9 Name string 10 ProjectId string 11 SelfLink string 12 SizeGb int64 13 } 14 15 func (i *Image) IsWindows() bool { 16 for _, license := range i.Licenses { 17 if strings.Contains(license, "windows") { 18 return true 19 } 20 } 21 return false 22 }