Skip to content

Commit 4860389

Browse files
committed
comments on instance type and instance
1 parent a02e2a0 commit 4860389

2 files changed

Lines changed: 17 additions & 16 deletions

File tree

pkg/v1/instance.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,10 @@ type Instance struct {
202202
// From private node to bastion
203203
// i.e. SSH port 2222 is mapped to 2022 on the Bastion node
204204
InternalPortMappings []PortMapping
205-
VPCID string
206-
SubnetID string
207-
FirewallRules FirewallRules
205+
206+
VPCID string
207+
SubnetID string
208+
FirewallRules FirewallRules
208209

209210
ImageID string
210211
DiskSize units.Base2Bytes

pkg/v1/instancetype.go

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,23 +36,23 @@ type InstanceType struct {
3636
MaximumNetworkInterfaces int32
3737
NetworkPerformance string
3838

39-
Quota InstanceTypeQuota
40-
BasePrice *currency.Amount
39+
IsAvailable bool
40+
Quota InstanceTypeQuota
41+
BasePrice *currency.Amount
4142

4243
EstimatedDeployTime *time.Duration
4344

4445
// capabilities
45-
IsContainer bool
46-
CanModifyFirewallRules bool
47-
UserPrivilegeEscalationDisabled bool
48-
NotPrivileged bool
49-
Stoppable bool
50-
Rebootable bool
51-
VariablePrice bool
52-
Preemptible bool
53-
IsAvailable bool
54-
ElasticRootVolume bool
55-
SubLocationTypeChangeable bool
46+
CanModifyFirewallRules bool // can we modify the firewall rules?
47+
IsContainer bool // is the instance a container?
48+
UserPrivilegeEscalationDisabled bool // can the user escalate privileges? (processes can not be more privileged than initial process)
49+
NotPrivileged bool // is the instance not privileged? (i.e. no sudo)
50+
Stoppable bool // can the instance be stopped?
51+
Rebootable bool // can the instance be rebooted?
52+
VariablePrice bool // will the price change over time?
53+
Preemptible bool // can the instance be preempted?
54+
ElasticRootVolume bool // can we change the root volume size? (i.e. can we resize the root volume?)
55+
SubLocationTypeChangeable bool // can we change the instance type to a different type in the same sublocation?
5656
}
5757

5858
func MakeGenericInstanceTypeID(instanceType InstanceType) InstanceTypeID {

0 commit comments

Comments
 (0)