File: image.go

package info (click to toggle)
packer 1.3.4%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 8,324 kB
  • sloc: python: 619; sh: 557; makefile: 111
file content (23 lines) | stat: -rw-r--r-- 344 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package googlecompute

import (
	"strings"
)

type Image struct {
	Labels    map[string]string
	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
}