v1alpha1

package
v0.0.0-...-b0afa23 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the game v1alpha1 API group +kubebuilder:object:generate=true +groupName=game.believer.dev

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "game.believer.dev", 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 GameServer

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

	Spec   GameServerSpec   `json:"spec,omitempty"`
	Status GameServerStatus `json:"status,omitempty"`
}

GameServer is the Schema for the gameservers API

func (*GameServer) DeepCopy

func (in *GameServer) DeepCopy() *GameServer

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

func (*GameServer) DeepCopyInto

func (in *GameServer) DeepCopyInto(out *GameServer)

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

func (*GameServer) DeepCopyObject

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

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

type GameServerList

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

GameServerList contains a list of GameServer

func (*GameServerList) DeepCopy

func (in *GameServerList) DeepCopy() *GameServerList

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

func (*GameServerList) DeepCopyInto

func (in *GameServerList) DeepCopyInto(out *GameServerList)

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

func (*GameServerList) DeepCopyObject

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

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

type GameServerSpec

type GameServerSpec struct {

	// DisplayName is the human-readable name of the game server
	DisplayName string `json:"displayName,omitempty"`

	// Version corresponds to the git commit SHA of the desired game version
	Version string `json:"version"`

	// Path to map for server to load
	Map string `json:"map,omitempty"`
}

GameServerSpec defines the desired state of GameServer

func (*GameServerSpec) DeepCopy

func (in *GameServerSpec) DeepCopy() *GameServerSpec

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

func (*GameServerSpec) DeepCopyInto

func (in *GameServerSpec) DeepCopyInto(out *GameServerSpec)

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

type GameServerStatus

type GameServerStatus struct {

	// IP represents the underlying pod's external IP
	IP string `json:"ip,omitempty"`

	// InternalIP represents the underlying pod's internal IP
	InternalIP string `json:"internalIP,omitempty"`

	// Port represents the port on which the underlying Pod is listening for game traffic
	Port int32 `json:"port,omitempty"`

	// NetImguiPort represents the port on which the underlying pod is listening for netimgui traffic
	NetImguiPort int32 `json:"netimguiPort,omitempty"`

	// Status port represents the port on which the game server is serving game/session status information
	StatusPort int32 `json:"statusPort,omitempty"`

	// PodRef refers to the name of the Pod backing the GameServer
	PodRef *corev1.LocalObjectReference `json:"podRef,omitempty"`
}

GameServerStatus defines the observed state of GameServer

func (*GameServerStatus) DeepCopy

func (in *GameServerStatus) DeepCopy() *GameServerStatus

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

func (*GameServerStatus) DeepCopyInto

func (in *GameServerStatus) DeepCopyInto(out *GameServerStatus)

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

type Playtest

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

	Spec   PlaytestSpec   `json:"spec,omitempty"`
	Status PlaytestStatus `json:"status,omitempty"`
}

Playtest is the Schema for the playtests API

func (*Playtest) DeepCopy

func (in *Playtest) DeepCopy() *Playtest

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

func (*Playtest) DeepCopyInto

func (in *Playtest) DeepCopyInto(out *Playtest)

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

func (*Playtest) DeepCopyObject

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

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

type PlaytestGroup

type PlaytestGroup struct {
	Name  string   `json:"name,omitempty"`
	Users []string `json:"users,omitempty"`
}

EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN! NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.

func (*PlaytestGroup) DeepCopy

func (in *PlaytestGroup) DeepCopy() *PlaytestGroup

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

func (*PlaytestGroup) DeepCopyInto

func (in *PlaytestGroup) DeepCopyInto(out *PlaytestGroup)

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

type PlaytestGroupStatus

type PlaytestGroupStatus struct {
	Name      string                       `json:"name,omitempty"`
	ServerRef *corev1.LocalObjectReference `json:"serverRef,omitempty"`
	Users     []string                     `json:"users,omitempty"`
}

func (*PlaytestGroupStatus) DeepCopy

func (in *PlaytestGroupStatus) DeepCopy() *PlaytestGroupStatus

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

func (*PlaytestGroupStatus) DeepCopyInto

func (in *PlaytestGroupStatus) DeepCopyInto(out *PlaytestGroupStatus)

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

type PlaytestList

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

PlaytestList contains a list of Playtest

func (*PlaytestList) DeepCopy

func (in *PlaytestList) DeepCopy() *PlaytestList

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

func (*PlaytestList) DeepCopyInto

func (in *PlaytestList) DeepCopyInto(out *PlaytestList)

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

func (*PlaytestList) DeepCopyObject

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

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

type PlaytestSpec

type PlaytestSpec struct {
	DisplayName     string      `json:"displayName,omitempty"`
	Version         string      `json:"version,omitempty"`
	Map             string      `json:"map,omitempty"`
	MinGroups       int         `json:"minGroups,omitempty"`
	PlayersPerGroup int         `json:"playersPerGroup,omitempty"`
	StartTime       metav1.Time `json:"startTime,omitempty"`
	FeedbackURL     string      `json:"feedbackURL,omitempty"`

	// +optional
	UsersToAutoAssign []string `json:"usersToAutoAssign,omitempty"`

	Groups []PlaytestGroup `json:"groups,omitempty"`
}

PlaytestSpec defines the desired state of Playtest

func (*PlaytestSpec) DeepCopy

func (in *PlaytestSpec) DeepCopy() *PlaytestSpec

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

func (*PlaytestSpec) DeepCopyInto

func (in *PlaytestSpec) DeepCopyInto(out *PlaytestSpec)

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

type PlaytestStatus

type PlaytestStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	Groups []PlaytestGroupStatus `json:"groups,omitempty"`
}

PlaytestStatus defines the observed state of Playtest

func (*PlaytestStatus) DeepCopy

func (in *PlaytestStatus) DeepCopy() *PlaytestStatus

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

func (*PlaytestStatus) DeepCopyInto

func (in *PlaytestStatus) DeepCopyInto(out *PlaytestStatus)

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