v1alpha1

package
v0.2.4-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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 Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

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

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

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GlobalTrafficPolicyStatus.

func (*GlobalTrafficPolicyStatus) DeepCopyInto

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL