-
Notifications
You must be signed in to change notification settings - Fork 2.2k
/
instance.go
executable file
·41 lines (36 loc) · 1.14 KB
/
instance.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package compute
import (
iacTypes "github.com/aquasecurity/trivy/pkg/iac/types"
)
type Instance struct {
Metadata iacTypes.Metadata
Name iacTypes.StringValue
NetworkInterfaces []NetworkInterface
ShieldedVM ShieldedVMConfig
ServiceAccount ServiceAccount
CanIPForward iacTypes.BoolValue
OSLoginEnabled iacTypes.BoolValue
EnableProjectSSHKeyBlocking iacTypes.BoolValue
EnableSerialPort iacTypes.BoolValue
BootDisks []Disk
AttachedDisks []Disk
}
type ServiceAccount struct {
Metadata iacTypes.Metadata
Email iacTypes.StringValue
IsDefault iacTypes.BoolValue
Scopes []iacTypes.StringValue
}
type NetworkInterface struct {
Metadata iacTypes.Metadata
Network *Network
SubNetwork *SubNetwork
HasPublicIP iacTypes.BoolValue
NATIP iacTypes.StringValue
}
type ShieldedVMConfig struct {
Metadata iacTypes.Metadata
SecureBootEnabled iacTypes.BoolValue
IntegrityMonitoringEnabled iacTypes.BoolValue
VTPMEnabled iacTypes.BoolValue
}