v1alpha1

package
v0.0.0-...-e9f4c3e Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the internal v1alpha1 API group +kubebuilder:object:generate=true +groupName=service.everoute.io

Index

Constants

View Source
const (
	LabelRefEndpoints = "endpoints.service.everoute.io"
)

Variables

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

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns 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 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

func (in *Backend) DeepCopy() *Backend

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

func (*Backend) DeepCopyInto

func (in *Backend) DeepCopyInto(out *Backend)

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.

Jump to

Keyboard shortcuts

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