v1alpha1

package
v0.0.0-...-491c235 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the operator v1alpha1 API group +kubebuilder:object:generate=true +groupName=operator.contrib.dosbox.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "operator.contrib.dosbox.com", Version: "v1alpha1"}

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

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

	Spec   GameSpec   `json:"spec,omitempty"`
	Status GameStatus `json:"status,omitempty"`
}

Game is the Schema for the games API +kubebuilder:printcolumn:name="Game",type=string,JSONPath=`.spec.gameName` +kubebuilder:printcolumn:name="Deploy",type=boolean,JSONPath=`.spec.deploy` +kubebuilder:printcolumn:name="Ready",type=boolean,JSONPath=`.status.ready`

func (*Game) DeepCopy

func (in *Game) DeepCopy() *Game

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

func (*Game) DeepCopyInto

func (in *Game) DeepCopyInto(out *Game)

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

func (*Game) DeepCopyObject

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

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

type GameList

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

GameList contains a list of Game

func (*GameList) DeepCopy

func (in *GameList) DeepCopy() *GameList

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

func (*GameList) DeepCopyInto

func (in *GameList) DeepCopyInto(out *GameList)

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

func (*GameList) DeepCopyObject

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

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

type GameSpec

type GameSpec struct {

	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Type=string
	GameName string `json:"gameName"`

	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Pattern:=`^https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_\+.~#?&\/=]*)$`
	Url string `json:"url"`

	// +kubebuilder:default:=false
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Type=boolean
	Deploy bool `json:"deploy"`

	// +optional
	// +kubebuilder:default:=false
	// +kubebuilder:validation:Type=boolean
	ForceRedeploy bool `json:"forceRedeploy,omitempty"`

	// +optional
	// +kubebuilder:default=80
	// +kubebuilder:validation:Type=integer
	// +kubebuilder:validation:Minimum=1
	// +kubebuilder:validation:Maximum=65535
	// +kubebuilder:validation:ExclusiveMinimum=false
	// +kubebuilder:validation:ExclusiveMaximum=false
	Port int `json:"port,omitempty"`
}

GameSpec defines the desired state of Game

func (*GameSpec) DeepCopy

func (in *GameSpec) DeepCopy() *GameSpec

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

func (*GameSpec) DeepCopyInto

func (in *GameSpec) DeepCopyInto(out *GameSpec)

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

type GameStatus

type GameStatus struct {
	Ready *bool `json:"ready,omitempty"`
}

GameStatus defines the observed state of Game

func (*GameStatus) DeepCopy

func (in *GameStatus) DeepCopy() *GameStatus

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

func (*GameStatus) DeepCopyInto

func (in *GameStatus) DeepCopyInto(out *GameStatus)

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