v1

package
v0.0.0-...-1acfc4c Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2023 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the router v1 API group +kubebuilder:object:generate=true +groupName=router.willful.be

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "router.willful.be", Version: "v1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type PortForward

type PortForward struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   PortForwardSpec   `json:"spec,omitempty"`
	Status PortForwardStatus `json:"status,omitempty"`
}

PortForward is the Schema for the portforwards API

func (*PortForward) DeepCopy

func (in *PortForward) DeepCopy() *PortForward

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

func (*PortForward) DeepCopyInto

func (in *PortForward) DeepCopyInto(out *PortForward)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PortForward) DeepCopyObject

func (in *PortForward) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*PortForward) GetCondition

func (t *PortForward) GetCondition(ct string) *metav1.Condition

func (*PortForward) GetConditions

func (t *PortForward) GetConditions() *[]metav1.Condition

func (*PortForward) SetConditions

func (t *PortForward) SetConditions(c ...metav1.Condition)

type PortForwardForServicePortSpec

type PortForwardForServicePortSpec struct {
	Number uint `json:"name"`
}

func (*PortForwardForServicePortSpec) DeepCopy

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

func (*PortForwardForServicePortSpec) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PortForwardForServiceSpec

type PortForwardForServiceSpec struct {
	Name string                        `json:"name"`
	Port PortForwardForServicePortSpec `json:"number"`
}

func (*PortForwardForServiceSpec) DeepCopy

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

func (*PortForwardForServiceSpec) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PortForwardForSpec

type PortForwardForSpec struct {
	Service PortForwardForServiceSpec `json:"service"`
}

func (*PortForwardForSpec) DeepCopy

func (in *PortForwardForSpec) DeepCopy() *PortForwardForSpec

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

func (*PortForwardForSpec) DeepCopyInto

func (in *PortForwardForSpec) DeepCopyInto(out *PortForwardForSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PortForwardList

type PortForwardList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []PortForward `json:"items"`
}

PortForwardList contains a list of PortForward

func (*PortForwardList) DeepCopy

func (in *PortForwardList) DeepCopy() *PortForwardList

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

func (*PortForwardList) DeepCopyInto

func (in *PortForwardList) DeepCopyInto(out *PortForwardList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PortForwardList) DeepCopyObject

func (in *PortForwardList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type PortForwardRuleSpec

type PortForwardRuleSpec struct {
	// External port end - IF NOT SET: The value will be the same as external port start
	ExternalPortEnd uint `json:"externalPortEnd"`

	// External port start
	ExternalPortStart uint `json:"externalPortStart"`

	// Interface
	Interface string `json:"interface"`

	// Internal port end - IF NOT SET: The value will be the same as internal port start
	InternalPortEnd uint `json:"internalPortEnd"`

	// Internal port start
	InternalPortStart uint `json:"internalPortStart"`

	// Protocol <TCP/UDP|TCP|UDP>
	// +kubebuilder:validation:Enum=TCP;UDP;TCP/UDP
	Protocol string `json:"protocol"`

	// Server IP address
	ServerIP string `json:"serverIP,omitempty"`
}

func (*PortForwardRuleSpec) DeepCopy

func (in *PortForwardRuleSpec) DeepCopy() *PortForwardRuleSpec

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

func (*PortForwardRuleSpec) DeepCopyInto

func (in *PortForwardRuleSpec) DeepCopyInto(out *PortForwardRuleSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PortForwardSpec

type PortForwardSpec struct {
	For  PortForwardForSpec  `json:"for,omitempty"`
	Rule PortForwardRuleSpec `json:"rule"`
}

PortForwardSpec defines the desired state of PortForward

func (*PortForwardSpec) DeepCopy

func (in *PortForwardSpec) DeepCopy() *PortForwardSpec

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

func (*PortForwardSpec) DeepCopyInto

func (in *PortForwardSpec) DeepCopyInto(out *PortForwardSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PortForwardStatus

type PortForwardStatus struct {
	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

PortForwardStatus defines the observed state of PortForward

func (*PortForwardStatus) DeepCopy

func (in *PortForwardStatus) DeepCopy() *PortForwardStatus

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

func (*PortForwardStatus) DeepCopyInto

func (in *PortForwardStatus) DeepCopyInto(out *PortForwardStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PortForwardStatus) GetCondition

func (s *PortForwardStatus) GetCondition(ct string) *metav1.Condition

GetCondition returns the condition for the given ConditionType if exists, otherwise returns nil

func (*PortForwardStatus) SetConditions

func (s *PortForwardStatus) SetConditions(c ...metav1.Condition)

SetConditions sets the supplied conditions, replacing any existing conditions of the same type. This is a no-op if all supplied conditions are identical, ignoring the last transition time, to those already set. obsGen should be set to the object current generation to inform other controllers which status they are observing.

Jump to

Keyboard shortcuts

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