v1beta1

package
v0.0.0-...-147248c Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1beta1 contains API Schema definitions for the forward v1beta1 API group +kubebuilder:object:generate=true +groupName=forward.techsquad.rocks

Index

Constants

View Source
const (
	PhasePending = "PENDING"
	PhaseRunning = "RUNNING"
	PhaseFailed  = "FAILED"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "forward.techsquad.rocks", Version: "v1beta1"}

	// 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 Map

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

	Spec   MapSpec   `json:"spec,omitempty"`
	Status MapStatus `json:"status,omitempty"`
}

Map is the Schema for the maps API

func (*Map) DeepCopy

func (in *Map) DeepCopy() *Map

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

func (*Map) DeepCopyInto

func (in *Map) DeepCopyInto(out *Map)

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

func (*Map) DeepCopyObject

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

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

type MapList

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

MapList contains a list of Map

func (*MapList) DeepCopy

func (in *MapList) DeepCopy() *MapList

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

func (*MapList) DeepCopyInto

func (in *MapList) DeepCopyInto(out *MapList)

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

func (*MapList) DeepCopyObject

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

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

type MapSpec

type MapSpec struct {

	// TCP/UDP protocol
	Protocol string `json:"protocol,omitempty"`

	// Port
	Port int `json:"port,omitempty"`

	// Host
	Host string `json:"host,omitempty"`

	// LivenessProbe
	LivenessProbe bool `json:"liveness_probe"`
}

MapSpec defines the desired state of Map

func (*MapSpec) DeepCopy

func (in *MapSpec) DeepCopy() *MapSpec

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

func (*MapSpec) DeepCopyInto

func (in *MapSpec) DeepCopyInto(out *MapSpec)

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

type MapStatus

type MapStatus struct {
	Phase string `json:"phase,omitempty"`
}

MapStatus defines the observed state of Map

func (*MapStatus) DeepCopy

func (in *MapStatus) DeepCopy() *MapStatus

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

func (*MapStatus) DeepCopyInto

func (in *MapStatus) DeepCopyInto(out *MapStatus)

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