Files
Packer-Cn/builder/googlecompute/image.go
T
Rickard von Essen 6376d2744f builder/googlecompute: Properly vendor test dependencies
Properly vendor github.com/stretchr/testify/assert
2016-10-03 13:48:29 -07:00

26 lines
403 B
Go

package googlecompute
import (
"strings"
// To get test dependencies managed by Godeps
_ "github.com/stretchr/testify/assert"
)
type Image struct {
Licenses []string
Name string
ProjectId string
SelfLink string
SizeGb int64
}
func (i *Image) IsWindows() bool {
for _, license := range i.Licenses {
if strings.Contains(license, "windows") {
return true
}
}
return false
}