v1

package
v0.0.0-...-2864b0a Latest Latest
Warning

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

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

Documentation

Overview

Package v1 contains API Schema definitions for the terminal v1 API group +kubebuilder:object:generate=true +groupName=terminal.sealos.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "terminal.sealos.io", 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 IngressType

type IngressType string

+kubebuilder:validation:Enum=nginx

const (
	Nginx IngressType = "nginx"
)

type Terminal

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

	Spec   TerminalSpec   `json:"spec,omitempty"`
	Status TerminalStatus `json:"status,omitempty"`
}

Terminal is the Schema for the terminals API

func (*Terminal) DeepCopy

func (in *Terminal) DeepCopy() *Terminal

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

func (*Terminal) DeepCopyInto

func (in *Terminal) DeepCopyInto(out *Terminal)

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

func (*Terminal) DeepCopyObject

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

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

type TerminalList

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

TerminalList contains a list of Terminal

func (*TerminalList) DeepCopy

func (in *TerminalList) DeepCopy() *TerminalList

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

func (*TerminalList) DeepCopyInto

func (in *TerminalList) DeepCopyInto(out *TerminalList)

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

func (*TerminalList) DeepCopyObject

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

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

type TerminalSpec

type TerminalSpec struct {

	//+kubebuilder:validation:Required
	User string `json:"user"`
	//+kubebuilder:validation:Required
	Token string `json:"token"`
	//+kubebuilder:validation:Required
	TTYImage string `json:"ttyImage"`
	//+kubebuilder:validation:Required
	Replicas *int32 `json:"replicas"`
	//+kubebuilder:validation:Required
	Keepalived string `json:"keepalived"`
	//+kubebuilder:validation:Optional
	APIServer string `json:"apiServer"`
	//+kubebuilder:validation:Optional
	//+kubebuilder:default=nginx
	IngressType IngressType `json:"ingressType"`
}

TerminalSpec defines the desired state of Terminal

func (*TerminalSpec) DeepCopy

func (in *TerminalSpec) DeepCopy() *TerminalSpec

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

func (*TerminalSpec) DeepCopyInto

func (in *TerminalSpec) DeepCopyInto(out *TerminalSpec)

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

type TerminalStatus

type TerminalStatus struct {
	AvailableReplicas int32  `json:"availableReplicas"`
	ServiceName       string `json:"serviceName"`
	SecretHeader      string `json:"secretHeader"`
	Domain            string `json:"domain"`
}

TerminalStatus defines the observed state of Terminal

func (*TerminalStatus) DeepCopy

func (in *TerminalStatus) DeepCopy() *TerminalStatus

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

func (*TerminalStatus) DeepCopyInto

func (in *TerminalStatus) DeepCopyInto(out *TerminalStatus)

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