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 ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Game.
func (*Game) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Game) DeepCopyObject ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GameList.
func (*GameList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GameList) DeepCopyObject ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GameSpec.
func (*GameSpec) DeepCopyInto ¶
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.