Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the internal v1alpha1 API group +kubebuilder:object:generate=true +groupName=service.everoute.io
Index ¶
Constants ¶
const (
LabelRefEndpoints = "endpoints.service.everoute.io"
)
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "service.everoute.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 Backend ¶
type Backend struct { IP string `json:"ip"` Protocol corev1.Protocol `json:"protocol,omitempty"` Port int32 `json:"port"` Node string `json:"node"` }
Backend provides the specification of a ServicePortSpec.Backends
func (*Backend) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Backend.
func (*Backend) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServicePort ¶
type ServicePort struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ServicePortSpec `json:"spec"` }
ServicePort collect info from service endpoints
func (*ServicePort) DeepCopy ¶
func (in *ServicePort) DeepCopy() *ServicePort
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServicePort.
func (*ServicePort) DeepCopyInto ¶
func (in *ServicePort) DeepCopyInto(out *ServicePort)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServicePort) DeepCopyObject ¶
func (in *ServicePort) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ServicePort) Equal ¶
func (s *ServicePort) Equal(s1 *ServicePort) bool
type ServicePortList ¶
type ServicePortList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ServicePort `json:"items"` }
ServicePortList contains a list of ServicePort
func (*ServicePortList) DeepCopy ¶
func (in *ServicePortList) DeepCopy() *ServicePortList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServicePortList.
func (*ServicePortList) DeepCopyInto ¶
func (in *ServicePortList) DeepCopyInto(out *ServicePortList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServicePortList) DeepCopyObject ¶
func (in *ServicePortList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ServicePortSpec ¶
type ServicePortSpec struct { // PortName is the service port name PortName string `json:"portName,omitempty"` // SvcRef is the ServicePort related Service name SvcRef string `json:"svcRef,omitempty"` // Backends is the Backend ip and port and node info Backends []Backend `json:"backends,omitempty"` }
ServicePortSpec provides the specification of a ServicePort
func (*ServicePortSpec) DeepCopy ¶
func (in *ServicePortSpec) DeepCopy() *ServicePortSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServicePortSpec.
func (*ServicePortSpec) DeepCopyInto ¶
func (in *ServicePortSpec) DeepCopyInto(out *ServicePortSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.