Documentation
¶
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type ConditionType
- type CustomInterface
- type DnatRule
- type Eip
- type FloutingIpRule
- type HtbQos
- type HtbQosList
- type HtbQosSpec
- type IP
- type IPList
- type IPSpec
- type PolicyRoute
- type PolicyRouteAction
- type ProviderNetwork
- type ProviderNetworkCondition
- type ProviderNetworkList
- type ProviderNetworkSpec
- type ProviderNetworkStatus
- func (pns *ProviderNetworkStatus) Bytes() ([]byte, error)
- func (s *ProviderNetworkStatus) ClearNodeCondition(node string, ctype ConditionType, reason, message string)
- func (s *ProviderNetworkStatus) ConditionReason(node string, ctype ConditionType) string
- func (in *ProviderNetworkStatus) DeepCopy() *ProviderNetworkStatus
- func (in *ProviderNetworkStatus) DeepCopyInto(out *ProviderNetworkStatus)
- func (s *ProviderNetworkStatus) EnsureNodeCondition(node string, ctype ConditionType) bool
- func (s *ProviderNetworkStatus) EnsureNodeStandardConditions(node string) bool
- func (s *ProviderNetworkStatus) GetNodeCondition(node string, ctype ConditionType) *ProviderNetworkCondition
- func (s *ProviderNetworkStatus) IsNodeConditionTrue(node string, ctype ConditionType) bool
- func (s *ProviderNetworkStatus) IsReady() bool
- func (s *ProviderNetworkStatus) NodeIsReady(node string) bool
- func (s *ProviderNetworkStatus) RemoveNodeCondition(node string, ctype ConditionType)
- func (s *ProviderNetworkStatus) RemoveNodeConditions(node string) bool
- func (s *ProviderNetworkStatus) SetNodeCondition(node string, ctype ConditionType, reason, message string)
- func (s *ProviderNetworkStatus) SetNodeNotReady(node, reason, message string)
- func (s *ProviderNetworkStatus) SetNodeReady(node, reason, message string)
- type RoutePolicy
- type SecurityGroup
- type SecurityGroupList
- type SecurityGroupSpec
- type SecurityGroupStatus
- type SgPolicy
- type SgProtocol
- type SgRemoteType
- type SgRule
- type SnatRule
- type StaticRoute
- type Subnet
- type SubnetCondition
- type SubnetList
- type SubnetSpec
- type SubnetStatus
- func (ss *SubnetStatus) Bytes() ([]byte, error)
- func (m *SubnetStatus) ClearAllConditions()
- func (m *SubnetStatus) ClearCondition(ctype ConditionType, reason, message string)
- func (m *SubnetStatus) ClearError()
- func (m *SubnetStatus) ConditionReason(ctype ConditionType) string
- func (in *SubnetStatus) DeepCopy() *SubnetStatus
- func (in *SubnetStatus) DeepCopyInto(out *SubnetStatus)
- func (m *SubnetStatus) EnsureCondition(ctype ConditionType)
- func (m *SubnetStatus) EnsureStandardConditions()
- func (m *SubnetStatus) GetCondition(ctype ConditionType) *SubnetCondition
- func (m *SubnetStatus) IsConditionTrue(ctype ConditionType) bool
- func (m *SubnetStatus) IsNotReady() bool
- func (m *SubnetStatus) IsNotValidated() bool
- func (m *SubnetStatus) IsReady() bool
- func (m *SubnetStatus) IsValidated() bool
- func (m *SubnetStatus) NotReady(reason, message string)
- func (m *SubnetStatus) NotValidated(reason, message string)
- func (m *SubnetStatus) Ready(reason, message string)
- func (m *SubnetStatus) RemoveAllConditions()
- func (m *SubnetStatus) RemoveCondition(ctype ConditionType)
- func (m *SubnetStatus) SetCondition(ctype ConditionType, reason, message string)
- func (m *SubnetStatus) SetError(reason, message string)
- func (m *SubnetStatus) Validated(reason, message string)
- type Vlan
- type VlanCondition
- type VlanList
- type VlanSpec
- type VlanStatus
- type Vpc
- type VpcCondition
- type VpcList
- type VpcNatGateway
- type VpcNatGatewayList
- type VpcNatSpec
- type VpcSpec
- type VpcStatus
Constants ¶
const ( ProtocolIPv4 = "IPv4" ProtocolIPv6 = "IPv6" ProtocolDual = "Dual" GWDistributedType = "distributed" GWCentralizedType = "centralized" )
const ( // Ready => controller considers this resource Ready Ready = "Ready" // Validated => Spec passed validating Validated = "Validated" // Error => last recorded error Error = "Error" ReasonInit = "Init" )
Constants for condition
Variables ¶
var ( // SchemeBuilder initializes a scheme builder SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme is a global function that registers this API group & version to a scheme AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: kubeovn.GroupName, Version: "v1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type CustomInterface ¶ added in v1.7.1
func (*CustomInterface) DeepCopy ¶ added in v1.7.1
func (in *CustomInterface) DeepCopy() *CustomInterface
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomInterface.
func (*CustomInterface) DeepCopyInto ¶ added in v1.7.1
func (in *CustomInterface) DeepCopyInto(out *CustomInterface)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DnatRule ¶
type DnatRule struct { Eip string `json:"eip"` ExternalPort string `json:"externalPort"` Protocol string `json:"protocol,omitempty"` InternalIp string `json:"internalIp"` InternalPort string `json:"internalPort"` }
func (*DnatRule) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DnatRule.
func (*DnatRule) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Eip ¶
func (*Eip) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Eip.
func (*Eip) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FloutingIpRule ¶
func (*FloutingIpRule) DeepCopy ¶
func (in *FloutingIpRule) DeepCopy() *FloutingIpRule
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FloutingIpRule.
func (*FloutingIpRule) DeepCopyInto ¶
func (in *FloutingIpRule) DeepCopyInto(out *FloutingIpRule)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HtbQos ¶ added in v1.9.0
type HtbQos struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec HtbQosSpec `json:"spec"` }
func (*HtbQos) DeepCopy ¶ added in v1.9.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HtbQos.
func (*HtbQos) DeepCopyInto ¶ added in v1.9.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HtbQos) DeepCopyObject ¶ added in v1.9.0
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type HtbQosList ¶ added in v1.9.0
type HtbQosList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []HtbQos `json:"items"` }
func (*HtbQosList) DeepCopy ¶ added in v1.9.0
func (in *HtbQosList) DeepCopy() *HtbQosList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HtbQosList.
func (*HtbQosList) DeepCopyInto ¶ added in v1.9.0
func (in *HtbQosList) DeepCopyInto(out *HtbQosList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HtbQosList) DeepCopyObject ¶ added in v1.9.0
func (in *HtbQosList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type HtbQosSpec ¶ added in v1.9.0
type HtbQosSpec struct {
Priority string `json:"priority"`
}
func (*HtbQosSpec) DeepCopy ¶ added in v1.9.0
func (in *HtbQosSpec) DeepCopy() *HtbQosSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HtbQosSpec.
func (*HtbQosSpec) DeepCopyInto ¶ added in v1.9.0
func (in *HtbQosSpec) DeepCopyInto(out *HtbQosSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IP ¶
type IP struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec IPSpec `json:"spec"` }
func (*IP) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IP.
func (*IP) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IP) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type IPList ¶
type IPList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []IP `json:"items"` }
func (*IPList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPList.
func (*IPList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IPList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type IPSpec ¶
type IPSpec struct { PodName string `json:"podName"` Namespace string `json:"namespace"` Subnet string `json:"subnet"` AttachSubnets []string `json:"attachSubnets"` NodeName string `json:"nodeName"` IPAddress string `json:"ipAddress"` V4IPAddress string `json:"v4IpAddress"` V6IPAddress string `json:"v6IpAddress"` AttachIPs []string `json:"attachIps"` MacAddress string `json:"macAddress"` AttachMacs []string `json:"attachMacs"` ContainerID string `json:"containerID"` }
func (*IPSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPSpec.
func (*IPSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PolicyRoute ¶ added in v1.9.0
type PolicyRoute struct { Priority int32 `json:"priority,omitempty"` Match string `json:"match,omitempty"` Action PolicyRouteAction `json:"action,omitempty"` // NextHopIP is an optional parameter. It needs to be provided only when 'action' is 'reroute'. // +optional NextHopIP string `json:"nextHopIP,omitempty"` }
func (*PolicyRoute) DeepCopy ¶ added in v1.9.0
func (in *PolicyRoute) DeepCopy() *PolicyRoute
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyRoute.
func (*PolicyRoute) DeepCopyInto ¶ added in v1.9.0
func (in *PolicyRoute) DeepCopyInto(out *PolicyRoute)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PolicyRouteAction ¶ added in v1.9.0
type PolicyRouteAction string
const ( PolicyRouteActionAllow PolicyRouteAction = "allow" PolicyRouteActionDrop PolicyRouteAction = "drop" PolicyRouteActionReroute PolicyRouteAction = "reroute" )
type ProviderNetwork ¶ added in v1.7.1
type ProviderNetwork struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ProviderNetworkSpec `json:"spec"` Status ProviderNetworkStatus `json:"status"` }
func (*ProviderNetwork) DeepCopy ¶ added in v1.7.1
func (in *ProviderNetwork) DeepCopy() *ProviderNetwork
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderNetwork.
func (*ProviderNetwork) DeepCopyInto ¶ added in v1.7.1
func (in *ProviderNetwork) DeepCopyInto(out *ProviderNetwork)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProviderNetwork) DeepCopyObject ¶ added in v1.7.1
func (in *ProviderNetwork) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProviderNetworkCondition ¶ added in v1.7.1
type ProviderNetworkCondition struct { // Node name Node string `json:"node"` // Type of condition. Type ConditionType `json:"type"` // Status of the condition, one of True, False, Unknown. Status corev1.ConditionStatus `json:"status"` // The reason for the condition's last transition. // +optional Reason string `json:"reason,omitempty"` // A human readable message indicating details about the transition. // +optional Message string `json:"message,omitempty"` // Last time the condition was probed // +optional LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"` // Last time the condition transitioned from one status to another. // +optional LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"` }
Condition describes the state of an object at a certain point. +k8s:deepcopy-gen=true
func (*ProviderNetworkCondition) DeepCopy ¶ added in v1.7.1
func (in *ProviderNetworkCondition) DeepCopy() *ProviderNetworkCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderNetworkCondition.
func (*ProviderNetworkCondition) DeepCopyInto ¶ added in v1.7.1
func (in *ProviderNetworkCondition) DeepCopyInto(out *ProviderNetworkCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProviderNetworkList ¶ added in v1.7.1
type ProviderNetworkList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []ProviderNetwork `json:"items"` }
func (*ProviderNetworkList) DeepCopy ¶ added in v1.7.1
func (in *ProviderNetworkList) DeepCopy() *ProviderNetworkList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderNetworkList.
func (*ProviderNetworkList) DeepCopyInto ¶ added in v1.7.1
func (in *ProviderNetworkList) DeepCopyInto(out *ProviderNetworkList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProviderNetworkList) DeepCopyObject ¶ added in v1.7.1
func (in *ProviderNetworkList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProviderNetworkSpec ¶ added in v1.7.1
type ProviderNetworkSpec struct { DefaultInterface string `json:"defaultInterface,omitempty"` CustomInterfaces []CustomInterface `json:"customInterfaces,omitempty"` ExcludeNodes []string `json:"excludeNodes,omitempty"` }
func (*ProviderNetworkSpec) DeepCopy ¶ added in v1.7.1
func (in *ProviderNetworkSpec) DeepCopy() *ProviderNetworkSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderNetworkSpec.
func (*ProviderNetworkSpec) DeepCopyInto ¶ added in v1.7.1
func (in *ProviderNetworkSpec) DeepCopyInto(out *ProviderNetworkSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProviderNetworkStatus ¶ added in v1.7.1
type ProviderNetworkStatus struct { // +optional // +patchStrategy=merge Ready bool `json:"ready" patchStrategy:"merge"` // +optional // +patchStrategy=merge ReadyNodes []string `json:"readyNodes,omitempty" patchStrategy:"merge"` // +optional // +patchStrategy=merge Vlans []string `json:"vlans,omitempty" patchStrategy:"merge"` // Conditions represents the latest state of the object // +optional // +patchMergeKey=node // +patchStrategy=merge Conditions []ProviderNetworkCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"node"` }
func (*ProviderNetworkStatus) Bytes ¶ added in v1.7.1
func (pns *ProviderNetworkStatus) Bytes() ([]byte, error)
func (*ProviderNetworkStatus) ClearNodeCondition ¶ added in v1.7.1
func (s *ProviderNetworkStatus) ClearNodeCondition(node string, ctype ConditionType, reason, message string)
ClearNodeCondition updates or creates a new condition
func (*ProviderNetworkStatus) ConditionReason ¶ added in v1.7.1
func (s *ProviderNetworkStatus) ConditionReason(node string, ctype ConditionType) string
ConditionReason - return condition reason
func (*ProviderNetworkStatus) DeepCopy ¶ added in v1.7.1
func (in *ProviderNetworkStatus) DeepCopy() *ProviderNetworkStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderNetworkStatus.
func (*ProviderNetworkStatus) DeepCopyInto ¶ added in v1.7.1
func (in *ProviderNetworkStatus) DeepCopyInto(out *ProviderNetworkStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProviderNetworkStatus) EnsureNodeCondition ¶ added in v1.7.1
func (s *ProviderNetworkStatus) EnsureNodeCondition(node string, ctype ConditionType) bool
EnsureNodeCondition useful for adding default conditions
func (*ProviderNetworkStatus) EnsureNodeStandardConditions ¶ added in v1.7.1
func (s *ProviderNetworkStatus) EnsureNodeStandardConditions(node string) bool
EnsureStandardConditions - helper to inject standard conditions
func (*ProviderNetworkStatus) GetNodeCondition ¶ added in v1.7.1
func (s *ProviderNetworkStatus) GetNodeCondition(node string, ctype ConditionType) *ProviderNetworkCondition
GetCondition get existing condition
func (*ProviderNetworkStatus) IsNodeConditionTrue ¶ added in v1.7.1
func (s *ProviderNetworkStatus) IsNodeConditionTrue(node string, ctype ConditionType) bool
IsNodeConditionTrue - if condition is true
func (*ProviderNetworkStatus) IsReady ¶ added in v1.7.1
func (s *ProviderNetworkStatus) IsReady() bool
IsReady returns true if ready condition is set
func (*ProviderNetworkStatus) NodeIsReady ¶ added in v1.7.1
func (s *ProviderNetworkStatus) NodeIsReady(node string) bool
NodeIsReady returns true if ready condition is set
func (*ProviderNetworkStatus) RemoveNodeCondition ¶ added in v1.7.1
func (s *ProviderNetworkStatus) RemoveNodeCondition(node string, ctype ConditionType)
RemoveCondition removes the condition with the provided type.
func (*ProviderNetworkStatus) RemoveNodeConditions ¶ added in v1.7.1
func (s *ProviderNetworkStatus) RemoveNodeConditions(node string) bool
RemoveNodeConditions updates or creates a new condition
func (*ProviderNetworkStatus) SetNodeCondition ¶ added in v1.7.1
func (s *ProviderNetworkStatus) SetNodeCondition(node string, ctype ConditionType, reason, message string)
SetNodeCondition updates or creates a new condition
func (*ProviderNetworkStatus) SetNodeNotReady ¶ added in v1.7.1
func (s *ProviderNetworkStatus) SetNodeNotReady(node, reason, message string)
NodeNotReady - shortcut to set ready condition to false
func (*ProviderNetworkStatus) SetNodeReady ¶ added in v1.7.1
func (s *ProviderNetworkStatus) SetNodeReady(node, reason, message string)
NodeReady - shortcut to set ready condition to true
type RoutePolicy ¶
type RoutePolicy string
const ( PolicySrc RoutePolicy = "policySrc" PolicyDst RoutePolicy = "policyDst" )
type SecurityGroup ¶ added in v1.8.0
type SecurityGroup struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SecurityGroupSpec `json:"spec"` Status SecurityGroupStatus `json:"status"` }
func (*SecurityGroup) DeepCopy ¶ added in v1.8.0
func (in *SecurityGroup) DeepCopy() *SecurityGroup
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityGroup.
func (*SecurityGroup) DeepCopyInto ¶ added in v1.8.0
func (in *SecurityGroup) DeepCopyInto(out *SecurityGroup)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SecurityGroup) DeepCopyObject ¶ added in v1.8.0
func (in *SecurityGroup) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SecurityGroupList ¶ added in v1.8.0
type SecurityGroupList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []SecurityGroup `json:"items"` }
func (*SecurityGroupList) DeepCopy ¶ added in v1.8.0
func (in *SecurityGroupList) DeepCopy() *SecurityGroupList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityGroupList.
func (*SecurityGroupList) DeepCopyInto ¶ added in v1.8.0
func (in *SecurityGroupList) DeepCopyInto(out *SecurityGroupList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SecurityGroupList) DeepCopyObject ¶ added in v1.8.0
func (in *SecurityGroupList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SecurityGroupSpec ¶ added in v1.8.0
type SecurityGroupSpec struct { IngressRules []*SgRule `json:"ingressRules,omitempty"` EgressRules []*SgRule `json:"egressRules,omitempty"` AllowSameGroupTraffic bool `json:"allowSameGroupTraffic,omitempty"` }
func (*SecurityGroupSpec) DeepCopy ¶ added in v1.8.0
func (in *SecurityGroupSpec) DeepCopy() *SecurityGroupSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityGroupSpec.
func (*SecurityGroupSpec) DeepCopyInto ¶ added in v1.8.0
func (in *SecurityGroupSpec) DeepCopyInto(out *SecurityGroupSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecurityGroupStatus ¶ added in v1.8.0
type SecurityGroupStatus struct { PortGroup string `json:"portGroup"` AllowSameGroupTraffic bool `json:"allowSameGroupTraffic"` IngressMd5 string `json:"ingressMd5"` EgressMd5 string `json:"egressMd5"` IngressLastSyncSuccess bool `json:"ingressLastSyncSuccess"` EgressLastSyncSuccess bool `json:"egressLastSyncSuccess"` }
func (*SecurityGroupStatus) Bytes ¶ added in v1.8.0
func (sgs *SecurityGroupStatus) Bytes() ([]byte, error)
func (*SecurityGroupStatus) DeepCopy ¶ added in v1.8.0
func (in *SecurityGroupStatus) DeepCopy() *SecurityGroupStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityGroupStatus.
func (*SecurityGroupStatus) DeepCopyInto ¶ added in v1.8.0
func (in *SecurityGroupStatus) DeepCopyInto(out *SecurityGroupStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SgProtocol ¶ added in v1.8.0
type SgProtocol string
const ( ProtocolALL SgProtocol = "all" ProtocolICMP SgProtocol = "icmp" ProtocolTCP SgProtocol = "tcp" ProtocolUDP SgProtocol = "udp" )
type SgRemoteType ¶ added in v1.8.0
type SgRemoteType string
const ( SgRemoteTypeAddress SgRemoteType = "address" SgRemoteTypeSg SgRemoteType = "securityGroup" )
type SgRule ¶ added in v1.8.0
type SgRule struct { IPVersion string `json:"ipVersion"` Protocol SgProtocol `json:"protocol,omitempty"` Priority int `json:"priority,omitempty"` RemoteType SgRemoteType `json:"remoteType"` RemoteAddress string `json:"remoteAddress,omitempty"` RemoteSecurityGroup string `json:"remoteSecurityGroup,omitempty"` PortRangeMin int `json:"portRangeMin,omitempty"` PortRangeMax int `json:"portRangeMax,omitempty"` Policy SgPolicy `json:"policy"` }
func (*SgRule) DeepCopy ¶ added in v1.8.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SgRule.
func (*SgRule) DeepCopyInto ¶ added in v1.8.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SnatRule ¶
func (*SnatRule) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnatRule.
func (*SnatRule) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StaticRoute ¶
type StaticRoute struct { Policy RoutePolicy `json:"policy,omitempty"` CIDR string `json:"cidr"` NextHopIP string `json:"nextHopIP"` }
func (*StaticRoute) DeepCopy ¶
func (in *StaticRoute) DeepCopy() *StaticRoute
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StaticRoute.
func (*StaticRoute) DeepCopyInto ¶
func (in *StaticRoute) DeepCopyInto(out *StaticRoute)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Subnet ¶
type Subnet struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SubnetSpec `json:"spec"` Status SubnetStatus `json:"status,omitempty"` }
func (*Subnet) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Subnet.
func (*Subnet) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Subnet) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SubnetCondition ¶
type SubnetCondition struct { // Type of condition. Type ConditionType `json:"type"` // Status of the condition, one of True, False, Unknown. Status corev1.ConditionStatus `json:"status"` // The reason for the condition's last transition. // +optional Reason string `json:"reason,omitempty"` // A human readable message indicating details about the transition. // +optional Message string `json:"message,omitempty"` // Last time the condition was probed // +optional LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"` // Last time the condition transitioned from one status to another. // +optional LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"` }
Condition describes the state of an object at a certain point. +k8s:deepcopy-gen=true
func (*SubnetCondition) DeepCopy ¶
func (in *SubnetCondition) DeepCopy() *SubnetCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetCondition.
func (*SubnetCondition) DeepCopyInto ¶
func (in *SubnetCondition) DeepCopyInto(out *SubnetCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SubnetList ¶
type SubnetList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Subnet `json:"items"` }
func (*SubnetList) DeepCopy ¶
func (in *SubnetList) DeepCopy() *SubnetList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetList.
func (*SubnetList) DeepCopyInto ¶
func (in *SubnetList) DeepCopyInto(out *SubnetList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SubnetList) DeepCopyObject ¶
func (in *SubnetList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SubnetSpec ¶
type SubnetSpec struct { Default bool `json:"default"` Vpc string `json:"vpc,omitempty"` Protocol string `json:"protocol"` Namespaces []string `json:"namespaces,omitempty"` CIDRBlock string `json:"cidrBlock"` Gateway string `json:"gateway"` ExcludeIps []string `json:"excludeIps,omitempty"` Provider string `json:"provider,omitempty"` GatewayType string `json:"gatewayType"` GatewayNode string `json:"gatewayNode"` NatOutgoing bool `json:"natOutgoing"` ExternalEgressGateway string `json:"externalEgressGateway,omitempty"` PolicyRoutingPriority uint32 `json:"policyRoutingPriority,omitempty"` PolicyRoutingTableID uint32 `json:"policyRoutingTableID,omitempty"` Private bool `json:"private"` AllowSubnets []string `json:"allowSubnets,omitempty"` Vlan string `json:"vlan,omitempty"` HtbQos string `json:"htbqos,omitempty"` LogicalGateway bool `json:"logicalGateway"` DisableGatewayCheck bool `json:"disableGatewayCheck"` DisableInterConnection bool `json:"disableInterConnection"` }
func (*SubnetSpec) DeepCopy ¶
func (in *SubnetSpec) DeepCopy() *SubnetSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetSpec.
func (*SubnetSpec) DeepCopyInto ¶
func (in *SubnetSpec) DeepCopyInto(out *SubnetSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SubnetStatus ¶
type SubnetStatus struct { // Conditions represents the latest state of the object // +optional // +patchMergeKey=type // +patchStrategy=merge Conditions []SubnetCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"` AvailableIPs float64 `json:"availableIPs"` UsingIPs float64 `json:"usingIPs"` V4AvailableIPs float64 `json:"v4availableIPs"` V4UsingIPs float64 `json:"v4usingIPs"` V6AvailableIPs float64 `json:"v6availableIPs"` V6UsingIPs float64 `json:"v6usingIPs"` ActivateGateway string `json:"activateGateway"` }
func (*SubnetStatus) Bytes ¶
func (ss *SubnetStatus) Bytes() ([]byte, error)
func (*SubnetStatus) ClearAllConditions ¶
func (m *SubnetStatus) ClearAllConditions()
ClearAllConditions updates or creates a new condition
func (*SubnetStatus) ClearCondition ¶
func (m *SubnetStatus) ClearCondition(ctype ConditionType, reason, message string)
ClearCondition updates or creates a new condition
func (*SubnetStatus) ClearError ¶
func (m *SubnetStatus) ClearError()
ClearError - shortcut to set error condition
func (*SubnetStatus) ConditionReason ¶
func (m *SubnetStatus) ConditionReason(ctype ConditionType) string
ConditionReason - return condition reason
func (*SubnetStatus) DeepCopy ¶
func (in *SubnetStatus) DeepCopy() *SubnetStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetStatus.
func (*SubnetStatus) DeepCopyInto ¶
func (in *SubnetStatus) DeepCopyInto(out *SubnetStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SubnetStatus) EnsureCondition ¶
func (m *SubnetStatus) EnsureCondition(ctype ConditionType)
EnsureCondition useful for adding default conditions
func (*SubnetStatus) EnsureStandardConditions ¶
func (m *SubnetStatus) EnsureStandardConditions()
EnsureStandardConditions - helper to inject standard conditions
func (*SubnetStatus) GetCondition ¶
func (m *SubnetStatus) GetCondition(ctype ConditionType) *SubnetCondition
GetCondition get existing condition
func (*SubnetStatus) IsConditionTrue ¶
func (m *SubnetStatus) IsConditionTrue(ctype ConditionType) bool
IsConditionTrue - if condition is true
func (*SubnetStatus) IsNotReady ¶
func (m *SubnetStatus) IsNotReady() bool
IsNotReady returns true if ready condition is set
func (*SubnetStatus) IsNotValidated ¶
func (m *SubnetStatus) IsNotValidated() bool
IsNotValidated returns true if ready condition is set
func (*SubnetStatus) IsReady ¶
func (m *SubnetStatus) IsReady() bool
IsReady returns true if ready condition is set
func (*SubnetStatus) IsValidated ¶
func (m *SubnetStatus) IsValidated() bool
IsValidated returns true if ready condition is set
func (*SubnetStatus) NotReady ¶
func (m *SubnetStatus) NotReady(reason, message string)
NotReady - shortcut to set ready condition to false
func (*SubnetStatus) NotValidated ¶
func (m *SubnetStatus) NotValidated(reason, message string)
NotValidated - shortcut to set validated condition to false
func (*SubnetStatus) Ready ¶
func (m *SubnetStatus) Ready(reason, message string)
Ready - shortcut to set ready condition to true
func (*SubnetStatus) RemoveAllConditions ¶
func (m *SubnetStatus) RemoveAllConditions()
RemoveAllConditions updates or creates a new condition
func (*SubnetStatus) RemoveCondition ¶
func (m *SubnetStatus) RemoveCondition(ctype ConditionType)
RemoveCondition removes the condition with the provided type.
func (*SubnetStatus) SetCondition ¶
func (m *SubnetStatus) SetCondition(ctype ConditionType, reason, message string)
SetCondition updates or creates a new condition
func (*SubnetStatus) SetError ¶
func (m *SubnetStatus) SetError(reason, message string)
SetError - shortcut to set error condition
func (*SubnetStatus) Validated ¶
func (m *SubnetStatus) Validated(reason, message string)
Validated - shortcut to set validated condition to true
type Vlan ¶
type Vlan struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec VlanSpec `json:"spec"` Status VlanStatus `json:"status"` }
func (*Vlan) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Vlan.
func (*Vlan) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Vlan) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VlanCondition ¶
type VlanCondition struct { // Type of condition. Type ConditionType `json:"type"` // Status of the condition, one of True, False, Unknown. Status corev1.ConditionStatus `json:"status"` // The reason for the condition's last transition. // +optional Reason string `json:"reason,omitempty"` // A human readable message indicating details about the transition. // +optional Message string `json:"message,omitempty"` // Last time the condition was probed // +optional LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"` // Last time the condition transitioned from one status to another. // +optional LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"` }
Condition describes the state of an object at a certain point. +k8s:deepcopy-gen=true
func (*VlanCondition) DeepCopy ¶
func (in *VlanCondition) DeepCopy() *VlanCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VlanCondition.
func (*VlanCondition) DeepCopyInto ¶
func (in *VlanCondition) DeepCopyInto(out *VlanCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VlanList ¶
type VlanList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Vlan `json:"items"` }
func (*VlanList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VlanList.
func (*VlanList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VlanList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VlanSpec ¶
type VlanSpec struct { // deprecated fields, use ID & Provider instead VlanId int `json:"vlanId,omitempty"` ProviderInterfaceName string `json:"providerInterfaceName,omitempty"` ID int `json:"id"` Provider string `json:"provider,omitempty"` }
func (*VlanSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VlanSpec.
func (*VlanSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VlanStatus ¶
type VlanStatus struct { // +optional // +patchStrategy=merge Subnets []string `json:"subnets,omitempty" patchStrategy:"merge"` // Conditions represents the latest state of the object // +optional // +patchMergeKey=type // +patchStrategy=merge Conditions []VlanCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"` }
func (*VlanStatus) Bytes ¶
func (vs *VlanStatus) Bytes() ([]byte, error)
func (*VlanStatus) DeepCopy ¶
func (in *VlanStatus) DeepCopy() *VlanStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VlanStatus.
func (*VlanStatus) DeepCopyInto ¶
func (in *VlanStatus) DeepCopyInto(out *VlanStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VlanStatus) SetVlanCondition ¶
func (v *VlanStatus) SetVlanCondition(ctype ConditionType, reason, message string)
SetCondition updates or creates a new condition
func (*VlanStatus) SetVlanError ¶
func (v *VlanStatus) SetVlanError(reason, message string)
SetError - shortcut to set error condition
type Vpc ¶
type Vpc struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec VpcSpec `json:"spec"` Status VpcStatus `json:"status,omitempty"` }
func (*Vpc) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Vpc.
func (*Vpc) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Vpc) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VpcCondition ¶
type VpcCondition struct { // Type of condition. Type ConditionType `json:"type"` // Status of the condition, one of True, False, Unknown. Status corev1.ConditionStatus `json:"status"` // The reason for the condition's last transition. // +optional Reason string `json:"reason,omitempty"` // A human readable message indicating details about the transition. // +optional Message string `json:"message,omitempty"` // Last time the condition was probed // +optional LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"` // Last time the condition transitioned from one status to another. // +optional LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"` }
Condition describes the state of an object at a certain point. +k8s:deepcopy-gen=true
func (*VpcCondition) DeepCopy ¶
func (in *VpcCondition) DeepCopy() *VpcCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VpcCondition.
func (*VpcCondition) DeepCopyInto ¶
func (in *VpcCondition) DeepCopyInto(out *VpcCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VpcList ¶
type VpcList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Vpc `json:"items"` }
func (*VpcList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VpcList.
func (*VpcList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VpcList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VpcNatGateway ¶
type VpcNatGateway struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec VpcNatSpec `json:"spec"` }
func (*VpcNatGateway) DeepCopy ¶
func (in *VpcNatGateway) DeepCopy() *VpcNatGateway
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VpcNatGateway.
func (*VpcNatGateway) DeepCopyInto ¶
func (in *VpcNatGateway) DeepCopyInto(out *VpcNatGateway)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VpcNatGateway) DeepCopyObject ¶
func (in *VpcNatGateway) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VpcNatGatewayList ¶
type VpcNatGatewayList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []VpcNatGateway `json:"items"` }
func (*VpcNatGatewayList) DeepCopy ¶
func (in *VpcNatGatewayList) DeepCopy() *VpcNatGatewayList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VpcNatGatewayList.
func (*VpcNatGatewayList) DeepCopyInto ¶
func (in *VpcNatGatewayList) DeepCopyInto(out *VpcNatGatewayList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VpcNatGatewayList) DeepCopyObject ¶
func (in *VpcNatGatewayList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VpcNatSpec ¶
type VpcNatSpec struct { Vpc string `json:"vpc"` Subnet string `json:"subnet"` LanIp string `json:"lanIp"` Selector []string `json:"selector"` Eips []*Eip `json:"eips,omitempty"` FloatingIpRules []*FloutingIpRule `json:"floatingIpRules,omitempty"` DnatRules []*DnatRule `json:"dnatRules,omitempty"` SnatRules []*SnatRule `json:"snatRules,omitempty"` }
func (*VpcNatSpec) DeepCopy ¶
func (in *VpcNatSpec) DeepCopy() *VpcNatSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VpcNatSpec.
func (*VpcNatSpec) DeepCopyInto ¶
func (in *VpcNatSpec) DeepCopyInto(out *VpcNatSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VpcSpec ¶
type VpcSpec struct { Namespaces []string `json:"namespaces,omitempty"` StaticRoutes []*StaticRoute `json:"staticRoutes,omitempty"` PolicyRoutes []*PolicyRoute `json:"policyRoutes,omitempty"` }
func (*VpcSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VpcSpec.
func (*VpcSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VpcStatus ¶
type VpcStatus struct { // Conditions represents the latest state of the object // +optional // +patchMergeKey=type // +patchStrategy=merge Conditions []VpcCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"` Standby bool `json:"standby"` Default bool `json:"default"` DefaultLogicalSwitch string `json:"defaultLogicalSwitch"` Router string `json:"router"` TcpLoadBalancer string `json:"tcpLoadBalancer"` UdpLoadBalancer string `json:"udpLoadBalancer"` TcpSessionLoadBalancer string `json:"tcpSessionLoadBalancer"` UdpSessionLoadBalancer string `json:"udpSessionLoadBalancer"` Subnets []string `json:"subnets"` }
func (*VpcStatus) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VpcStatus.
func (*VpcStatus) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.