Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package +groupName=loadbalancer.harvesterhci.io
+k8s:deepcopy-gen=package +groupName=loadbalancer.harvesterhci.io
+k8s:deepcopy-gen=package +groupName=loadbalancer.harvesterhci.io
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type AllocatedAddress
- type Condition
- type HealthCheck
- type IPAM
- type IPPool
- type IPPoolList
- type IPPoolSpec
- type IPPoolStatus
- type Listener
- type LoadBalancer
- type LoadBalancerList
- type LoadBalancerSpec
- type LoadBalancerStatus
- type Range
- type Selector
- type Tuple
- type WorkloadType
Constants ¶
const LoadBalancerReady condition.Cond = "Ready"
Variables ¶
var ( IPPoolResourceName = "ippools" LoadBalancerResourceName = "loadbalancers" )
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var (
IPPoolReady condition.Cond = "Ready"
)
var SchemeGroupVersion = schema.GroupVersion{Group: loadbalancer.GroupName, Version: "v1beta1"}
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 AllocatedAddress ¶
type AllocatedAddress struct { IPPool string `json:"ipPool,omitempty"` IP string `json:"ip,omitempty"` Mask string `json:"mask,omitempty"` Gateway string `json:"gateway,omitempty"` }
func (*AllocatedAddress) DeepCopy ¶
func (in *AllocatedAddress) DeepCopy() *AllocatedAddress
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AllocatedAddress.
func (*AllocatedAddress) DeepCopyInto ¶
func (in *AllocatedAddress) DeepCopyInto(out *AllocatedAddress)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Condition ¶
type Condition struct { // Type of the condition. Type condition.Cond `json:"type"` // Status of the condition, one of True, False, Unknown. Status corev1.ConditionStatus `json:"status"` // The last time this condition was updated. LastUpdateTime string `json:"lastUpdateTime,omitempty"` // Last time the condition transitioned from one status to another. LastTransitionTime string `json:"lastTransitionTime,omitempty"` // The reason for the condition's last transition. Reason string `json:"reason,omitempty"` // Human-readable message indicating details about last transition Message string `json:"message,omitempty"` }
func (*Condition) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.
func (*Condition) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HealthCheck ¶
type HealthCheck struct { Port uint `json:"port,omitempty"` // +optional SuccessThreshold uint `json:"successThreshold,omitempty"` // +optional FailureThreshold uint `json:"failureThreshold,omitempty"` // +optional PeriodSeconds uint `json:"periodSeconds,omitempty"` // +optional TimeoutSeconds uint `json:"timeoutSeconds,omitempty"` }
func (*HealthCheck) DeepCopy ¶
func (in *HealthCheck) DeepCopy() *HealthCheck
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealthCheck.
func (*HealthCheck) DeepCopyInto ¶
func (in *HealthCheck) DeepCopyInto(out *HealthCheck)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IPPool ¶
type IPPool struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec IPPoolSpec `json:"spec"` Status IPPoolStatus `json:"status,omitempty"` }
func (*IPPool) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPPool.
func (*IPPool) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IPPool) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type IPPoolList ¶
type IPPoolList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []IPPool `json:"items"` }
IPPoolList is a list of IPPool resources
func (*IPPoolList) DeepCopy ¶
func (in *IPPoolList) DeepCopy() *IPPoolList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPPoolList.
func (*IPPoolList) DeepCopyInto ¶
func (in *IPPoolList) DeepCopyInto(out *IPPoolList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IPPoolList) DeepCopyObject ¶
func (in *IPPoolList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type IPPoolSpec ¶
type IPPoolSpec struct { // +optional Description string `json:"description,omitempty"` Ranges []Range `json:"ranges"` // +optional Selector Selector `json:"selector"` }
func (*IPPoolSpec) DeepCopy ¶
func (in *IPPoolSpec) DeepCopy() *IPPoolSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPPoolSpec.
func (*IPPoolSpec) DeepCopyInto ¶
func (in *IPPoolSpec) DeepCopyInto(out *IPPoolSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IPPoolStatus ¶
type IPPoolStatus struct { Total int64 `json:"total"` Available int64 `json:"available"` LastAllocated string `json:"lastAllocated"` // +optional Allocated map[string]string `json:"allocated,omitempty"` // +optional AllocatedHistory map[string]string `json:"allocatedHistory,omitempty"` // +optional Conditions []Condition `json:"conditions,omitempty"` }
func (*IPPoolStatus) DeepCopy ¶
func (in *IPPoolStatus) DeepCopy() *IPPoolStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPPoolStatus.
func (*IPPoolStatus) DeepCopyInto ¶
func (in *IPPoolStatus) DeepCopyInto(out *IPPoolStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Listener ¶
type Listener struct { // +optional Name string `json:"name"` Port int32 `json:"port"` Protocol corev1.Protocol `json:"protocol"` BackendPort int32 `json:"backendPort"` }
func (*Listener) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Listener.
func (*Listener) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LoadBalancer ¶
type LoadBalancer struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec LoadBalancerSpec `json:"spec"` Status LoadBalancerStatus `json:"status,omitempty"` }
func NewLoadBalancer ¶
func NewLoadBalancer(namespace, name string, obj LoadBalancer) *LoadBalancer
func (*LoadBalancer) DeepCopy ¶
func (in *LoadBalancer) DeepCopy() *LoadBalancer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancer.
func (*LoadBalancer) DeepCopyInto ¶
func (in *LoadBalancer) DeepCopyInto(out *LoadBalancer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LoadBalancer) DeepCopyObject ¶
func (in *LoadBalancer) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type LoadBalancerList ¶
type LoadBalancerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []LoadBalancer `json:"items"` }
LoadBalancerList is a list of LoadBalancer resources
func (*LoadBalancerList) DeepCopy ¶
func (in *LoadBalancerList) DeepCopy() *LoadBalancerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerList.
func (*LoadBalancerList) DeepCopyInto ¶
func (in *LoadBalancerList) DeepCopyInto(out *LoadBalancerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LoadBalancerList) DeepCopyObject ¶
func (in *LoadBalancerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type LoadBalancerSpec ¶
type LoadBalancerSpec struct { // +optional Description string `json:"description,omitempty"` // +optional WorkloadType WorkloadType `json:"workloadType,omitempty"` // +optional IPAM IPAM `json:"ipam,omitempty"` // +optional IPPool string `json:"ipPool,omitempty"` Listeners []Listener `json:"listeners,omitempty"` // +optional BackendServerSelector map[string][]string `json:"backendServerSelector,omitempty"` // +optional HealthCheck *HealthCheck `json:"healthCheck,omitempty"` }
func (*LoadBalancerSpec) DeepCopy ¶
func (in *LoadBalancerSpec) DeepCopy() *LoadBalancerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerSpec.
func (*LoadBalancerSpec) DeepCopyInto ¶
func (in *LoadBalancerSpec) DeepCopyInto(out *LoadBalancerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LoadBalancerStatus ¶
type LoadBalancerStatus struct { // +optional BackendServers []string `json:"backendServers,omitempty"` // +optional AllocatedAddress AllocatedAddress `json:"allocatedAddress,omitempty"` // +optional Address string `json:"address,omitempty"` // +optional Conditions []Condition `json:"conditions,omitempty"` }
func (*LoadBalancerStatus) DeepCopy ¶
func (in *LoadBalancerStatus) DeepCopy() *LoadBalancerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerStatus.
func (*LoadBalancerStatus) DeepCopyInto ¶
func (in *LoadBalancerStatus) DeepCopyInto(out *LoadBalancerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Range ¶
type Range struct { RangeStart string `json:"rangeStart,omitempty"` // The first ip, inclusive RangeEnd string `json:"rangeEnd,omitempty"` // The last ip, inclusive Subnet string `json:"subnet"` Gateway string `json:"gateway,omitempty"` }
Range refers to github.com/containernetworking/plugins/plugins/ipam/host-local/backend/allocator.Range
func (*Range) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Range.
func (*Range) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Selector ¶
type Selector struct { // +optional Priority uint32 `json:"priority,omitempty"` // +optional Network string `json:"network,omitempty"` // +optional Scope []Tuple `json:"scope,omitempty"` }
func (*Selector) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Selector.
func (*Selector) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Tuple ¶
type Tuple struct { Project string `json:"project,omitempty"` Namespace string `json:"namespace,omitempty"` GuestCluster string `json:"guestCluster,omitempty"` }
func (*Tuple) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Tuple.
func (*Tuple) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkloadType ¶
type WorkloadType string
+kubebuilder:validation:Enum=vm;cluster
const ( VM WorkloadType = "vm" Cluster WorkloadType = "cluster" )