Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "flomesh.io", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type GlobalTrafficPolicy ¶
type GlobalTrafficPolicy struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec GlobalTrafficPolicySpec `json:"spec,omitempty"` Status GlobalTrafficPolicyStatus `json:"status,omitempty"` }
GlobalTrafficPolicy is the Schema for the GlobalTrafficPolicys API
func (*GlobalTrafficPolicy) DeepCopy ¶
func (in *GlobalTrafficPolicy) DeepCopy() *GlobalTrafficPolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GlobalTrafficPolicy.
func (*GlobalTrafficPolicy) DeepCopyInto ¶
func (in *GlobalTrafficPolicy) DeepCopyInto(out *GlobalTrafficPolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GlobalTrafficPolicy) DeepCopyObject ¶
func (in *GlobalTrafficPolicy) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GlobalTrafficPolicyList ¶
type GlobalTrafficPolicyList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []GlobalTrafficPolicy `json:"items"` }
GlobalTrafficPolicyList contains a list of GlobalTrafficPolicy
func (*GlobalTrafficPolicyList) DeepCopy ¶
func (in *GlobalTrafficPolicyList) DeepCopy() *GlobalTrafficPolicyList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GlobalTrafficPolicyList.
func (*GlobalTrafficPolicyList) DeepCopyInto ¶
func (in *GlobalTrafficPolicyList) DeepCopyInto(out *GlobalTrafficPolicyList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GlobalTrafficPolicyList) DeepCopyObject ¶
func (in *GlobalTrafficPolicyList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GlobalTrafficPolicySpec ¶
type GlobalTrafficPolicySpec struct { // +kubebuilder:default=Locality // +kubebuilder:validation:Enum=Locality;ActiveActive;FailOver // Type of global load distribution LbType LoadBalancerType `json:"lbType"` // +optional Targets []TrafficTarget `json:"targets,omitempty"` }
GlobalTrafficPolicySpec defines the desired state of GlobalTrafficPolicy
func (*GlobalTrafficPolicySpec) DeepCopy ¶
func (in *GlobalTrafficPolicySpec) DeepCopy() *GlobalTrafficPolicySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GlobalTrafficPolicySpec.
func (*GlobalTrafficPolicySpec) DeepCopyInto ¶
func (in *GlobalTrafficPolicySpec) DeepCopyInto(out *GlobalTrafficPolicySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GlobalTrafficPolicyStatus ¶
type GlobalTrafficPolicyStatus struct { }
GlobalTrafficPolicyStatus defines the observed state of GlobalTrafficPolicy
func (*GlobalTrafficPolicyStatus) DeepCopy ¶
func (in *GlobalTrafficPolicyStatus) DeepCopy() *GlobalTrafficPolicyStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GlobalTrafficPolicyStatus.
func (*GlobalTrafficPolicyStatus) DeepCopyInto ¶
func (in *GlobalTrafficPolicyStatus) DeepCopyInto(out *GlobalTrafficPolicyStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LoadBalancerType ¶
type LoadBalancerType string
const ( ActiveActiveLbType LoadBalancerType = "ActiveActive" LocalityLbType LoadBalancerType = "Locality" FailOverLbType LoadBalancerType = "FailOver" )
type TrafficTarget ¶
type TrafficTarget struct { // Format: [region]/[zone]/[group]/[cluster] ClusterKey string `json:"clusterKey"` // +optional Weight *int `json:"weight,omitempty"` }
func (*TrafficTarget) DeepCopy ¶
func (in *TrafficTarget) DeepCopy() *TrafficTarget
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TrafficTarget.
func (*TrafficTarget) DeepCopyInto ¶
func (in *TrafficTarget) DeepCopyInto(out *TrafficTarget)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.