/
types.go
100 lines (76 loc) · 3.6 KB
/
types.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
/*
Copyright 2021 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package v1beta1
// PowerVSInstanceState describes the state of an IBM Power VS instance.
type PowerVSInstanceState string
var (
// PowerVSInstanceStateACTIVE is the string representing an instance in a ACTIVE state.
PowerVSInstanceStateACTIVE = PowerVSInstanceState("ACTIVE")
// PowerVSInstanceStateBUILD is the string representing an instance in a BUILD state.
PowerVSInstanceStateBUILD = PowerVSInstanceState("BUILD")
// PowerVSInstanceStateSHUTOFF is the string representing an instance in a SHUTOFF state.
PowerVSInstanceStateSHUTOFF = PowerVSInstanceState("SHUTOFF")
// PowerVSInstanceStateREBOOT is the string representing an instance in a REBOOT state.
PowerVSInstanceStateREBOOT = PowerVSInstanceState("REBOOT")
// PowerVSInstanceStateERROR is the string representing an instance in a ERROR state.
PowerVSInstanceStateERROR = PowerVSInstanceState("ERROR")
)
// PowerVSImageState describes the state of an IBM Power VS image.
type PowerVSImageState string
var (
// PowerVSImageStateACTIVE is the string representing an image in a active state.
PowerVSImageStateACTIVE = PowerVSImageState("active")
// PowerVSImageStateQue is the string representing an image in a queued state.
PowerVSImageStateQue = PowerVSImageState("queued")
// PowerVSImageStateFailed is the string representing an image in a failed state.
PowerVSImageStateFailed = PowerVSImageState("failed")
// PowerVSImageStateImporting is the string representing an image in a failed state.
PowerVSImageStateImporting = PowerVSImageState("importing")
)
// VPCLoadBalancerState describes the state of the load balancer.
type VPCLoadBalancerState string
var (
// VPCLoadBalancerStateActive is the string representing the load balancer in a active state.
VPCLoadBalancerStateActive = VPCLoadBalancerState("active")
// VPCLoadBalancerStateCreatePending is the string representing the load balancer in a queued state.
VPCLoadBalancerStateCreatePending = VPCLoadBalancerState("create_pending")
// VPCLoadBalancerStateDeletePending is the string representing the load balancer in a failed state.
VPCLoadBalancerStateDeletePending = VPCLoadBalancerState("delete_pending")
)
// DeletePolicy defines the policy used to identify images to be preserved.
type DeletePolicy string
var (
// DeletePolicyRetain is the string representing an image to be retained.
DeletePolicyRetain = DeletePolicy("retain")
)
// NetworkInterface holds the network interface information like subnet id.
type NetworkInterface struct {
// Subnet ID of the network interface.
Subnet string `json:"subnet,omitempty"`
}
// Subnet describes a subnet.
type Subnet struct {
Ipv4CidrBlock *string `json:"cidr"`
Name *string `json:"name"`
ID *string `json:"id"`
Zone *string `json:"zone"`
}
// VPCEndpoint describes a VPCEndpoint.
type VPCEndpoint struct {
Address *string `json:"address"`
// +optional
// Deprecated: This field has no function and is going to be removed in the next release.
FIPID *string `json:"floatingIPID,omitempty"`
// +optional
LBID *string `json:"loadBalancerIPID,omitempty"`
}