v1

package
v0.0.0-...-765c3b1 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the v1 API group +kubebuilder:object:generate=true +groupName=strela.dev

Index

Constants

View Source
const MinecraftServerSetOwnerKey string = ".metadata.controller"

Variables

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

type ConfigurationMode string
const (
	Bungeecord       ConfigurationMode = "BUNGEECORD"
	Velocity         ConfigurationMode = "VELOCITY"
	PaperVelocity    ConfigurationMode = "PAPER_VELOCITY"
	SpgiotBungeecord ConfigurationMode = "SPIGOT_BUNGEECORD"
)

type MinecraftDeployment

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

	Spec   MinecraftDeploymentSpec   `json:"spec,omitempty"`
	Status MinecraftDeploymentStatus `json:"status,omitempty"`
}

MinecraftDeployment is the Schema for the minecraftdeployments API

func (*MinecraftDeployment) DeepCopy

func (in *MinecraftDeployment) DeepCopy() *MinecraftDeployment

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

func (*MinecraftDeployment) DeepCopyInto

func (in *MinecraftDeployment) DeepCopyInto(out *MinecraftDeployment)

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

func (*MinecraftDeployment) DeepCopyObject

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

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

func (*MinecraftDeployment) GetActiveMinecraftServerSet

func (deployment *MinecraftDeployment) GetActiveMinecraftServerSet(cl client.Client, ctx context.Context) (*MinecraftServerSet, error)

func (*MinecraftDeployment) GetMinecraftSets

func (m *MinecraftDeployment) GetMinecraftSets(cl client.Client, ctx context.Context) ([]MinecraftServerSet, error)

type MinecraftDeploymentList

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

MinecraftDeploymentList contains a list of MinecraftDeployment

func (*MinecraftDeploymentList) DeepCopy

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

func (*MinecraftDeploymentList) DeepCopyInto

func (in *MinecraftDeploymentList) DeepCopyInto(out *MinecraftDeploymentList)

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

func (*MinecraftDeploymentList) DeepCopyObject

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

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

type MinecraftDeploymentSpec

type MinecraftDeploymentSpec struct {

	// Foo is an example field of MinecraftDeployment. Edit minecraftdeployment_types.go to remove/update
	Replicas int                         `json:"replicas,omitempty"`
	Template MinecraftServerTemplateSpec `json:"template,omitempty"`
}

MinecraftDeploymentSpec defines the desired state of MinecraftDeployment

func (*MinecraftDeploymentSpec) DeepCopy

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

func (*MinecraftDeploymentSpec) DeepCopyInto

func (in *MinecraftDeploymentSpec) DeepCopyInto(out *MinecraftDeploymentSpec)

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

type MinecraftDeploymentStatus

type MinecraftDeploymentStatus struct {
	Replicas int `json:"replicas,omitempty"`
	Ready    int `json:"ready,omitempty"`
	Ingame   int `json:"ingame,omitempty"`
}

MinecraftDeploymentStatus defines the observed state of MinecraftDeployment

func (*MinecraftDeploymentStatus) DeepCopy

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

func (*MinecraftDeploymentStatus) DeepCopyInto

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

type MinecraftServer

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

	Spec   MinecraftServerSpec   `json:"spec,omitempty"`
	Status MinecraftServerStatus `json:"status,omitempty"`
}

MinecraftServer is the Schema for the minecraftservers API

func (*MinecraftServer) DeepCopy

func (in *MinecraftServer) DeepCopy() *MinecraftServer

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

func (*MinecraftServer) DeepCopyInto

func (in *MinecraftServer) DeepCopyInto(out *MinecraftServer)

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

func (*MinecraftServer) DeepCopyObject

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

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

type MinecraftServerAutoscaler

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

	Spec   MinecraftServerAutoscalerSpec   `json:"spec,omitempty"`
	Status MinecraftServerAutoscalerStatus `json:"status,omitempty"`
}

MinecraftServerAutoscaler is the Schema for the minecraftserverautoscalers API

func (*MinecraftServerAutoscaler) DeepCopy

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

func (*MinecraftServerAutoscaler) DeepCopyInto

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

func (*MinecraftServerAutoscaler) DeepCopyObject

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

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

type MinecraftServerAutoscalerList

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

MinecraftServerAutoscalerList contains a list of MinecraftServerAutoscaler

func (*MinecraftServerAutoscalerList) DeepCopy

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

func (*MinecraftServerAutoscalerList) DeepCopyInto

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

func (*MinecraftServerAutoscalerList) DeepCopyObject

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

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

type MinecraftServerAutoscalerSpec

type MinecraftServerAutoscalerSpec struct {
	TargetDeployment string                        `json:"targetDeployment"`
	Type             MinecraftServerAutoscalerType `json:"type"`
	DesiredPlayers   int                           `json:"desiredPlayers,omitempty"`
	Factor           int                           `json:"factor,omitempty"`
	Constant         int                           `json:"constant,omitempty"`
	MinScalePause    int                           `json:"minScalePause"`
}

MinecraftServerAutoscalerSpec defines the desired state of MinecraftServerAutoscaler

func (*MinecraftServerAutoscalerSpec) DeepCopy

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

func (*MinecraftServerAutoscalerSpec) DeepCopyInto

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

type MinecraftServerAutoscalerStatus

type MinecraftServerAutoscalerStatus struct {
	LastScaleTime int32 `json:"lastScaleTime"`
}

MinecraftServerAutoscalerStatus defines the observed state of MinecraftServerAutoscaler

func (*MinecraftServerAutoscalerStatus) DeepCopy

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

func (*MinecraftServerAutoscalerStatus) DeepCopyInto

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

type MinecraftServerAutoscalerType

type MinecraftServerAutoscalerType string
const (
	ServerAutoscale MinecraftServerAutoscalerType = "SERVER"
	SlotAutoscale   MinecraftServerAutoscalerType = "SLOT"
)

type MinecraftServerList

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

MinecraftServerList contains a list of MinecraftServer

func (*MinecraftServerList) DeepCopy

func (in *MinecraftServerList) DeepCopy() *MinecraftServerList

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

func (*MinecraftServerList) DeepCopyInto

func (in *MinecraftServerList) DeepCopyInto(out *MinecraftServerList)

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

func (*MinecraftServerList) DeepCopyObject

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

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

type MinecraftServerSet

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

	Spec   MinecraftServerSetSpec   `json:"spec,omitempty"`
	Status MinecraftServerSetStatus `json:"status,omitempty"`
}

MinecraftServerSet is the Schema for the minecraftserversets API

func (*MinecraftServerSet) DeepCopy

func (in *MinecraftServerSet) DeepCopy() *MinecraftServerSet

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

func (*MinecraftServerSet) DeepCopyInto

func (in *MinecraftServerSet) DeepCopyInto(out *MinecraftServerSet)

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

func (*MinecraftServerSet) DeepCopyObject

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

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

type MinecraftServerSetList

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

MinecraftServerSetList contains a list of MinecraftServerSet

func (*MinecraftServerSetList) DeepCopy

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

func (*MinecraftServerSetList) DeepCopyInto

func (in *MinecraftServerSetList) DeepCopyInto(out *MinecraftServerSetList)

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

func (*MinecraftServerSetList) DeepCopyObject

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

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

type MinecraftServerSetSpec

type MinecraftServerSetSpec struct {

	// Foo is an example field of MinecraftServerSet. Edit minecraftserverset_types.go to remove/update
	Replicas int                         `json:"replicas,omitempty"`
	Template MinecraftServerTemplateSpec `json:"template"`
}

MinecraftServerSetSpec defines the desired state of MinecraftServerSet

func (*MinecraftServerSetSpec) DeepCopy

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

func (*MinecraftServerSetSpec) DeepCopyInto

func (in *MinecraftServerSetSpec) DeepCopyInto(out *MinecraftServerSetSpec)

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

type MinecraftServerSetStatus

type MinecraftServerSetStatus struct {
	Replicas int `json:"replicas,omitempty"`
	Ingame   int `json:"ingame,omitempty"`
	Ready    int `json:"ready,omitempty"`
}

MinecraftServerSetStatus defines the observed state of MinecraftServerSet

func (*MinecraftServerSetStatus) DeepCopy

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

func (*MinecraftServerSetStatus) DeepCopyInto

func (in *MinecraftServerSetStatus) DeepCopyInto(out *MinecraftServerSetStatus)

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

type MinecraftServerSpec

type MinecraftServerSpec struct {

	// Foo is an example field of MinecraftServer. Edit minecraftserver_types.go to remove/update
	Container         string                 `json:"container,omitempty"`
	Type              MinecraftServerType    `json:"serverType,omitempty"`
	ConfigurationMode ConfigurationMode      `json:"configurationMode,omitempty"`
	ConfigDir         string                 `json:"configDir,omitempty"`
	MaxPlayers        int                    `json:"maxPlayers,omitempty"`
	Template          corev1.PodTemplateSpec `json:"template"`
}

MinecraftServerSpec defines the desired state of MinecraftServer

func (*MinecraftServerSpec) DeepCopy

func (in *MinecraftServerSpec) DeepCopy() *MinecraftServerSpec

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

func (*MinecraftServerSpec) DeepCopyInto

func (in *MinecraftServerSpec) DeepCopyInto(out *MinecraftServerSpec)

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

type MinecraftServerStatus

type MinecraftServerStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	Ingame      bool        `json:"ingame,omitempty"`
	Ready       bool        `json:"ready,omitempty"`
	PlayerCount int         `json:"playerCount,omitempty"`
	ReadyTime   metav1.Time `json:"readyTime,omitempty"`
	IngameTime  metav1.Time `json:"ingameTime,omitempty"`
	PodIP       string      `json:"podIP,omitempty"`
}

MinecraftServerStatus defines the observed state of MinecraftServer

func (*MinecraftServerStatus) DeepCopy

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

func (*MinecraftServerStatus) DeepCopyInto

func (in *MinecraftServerStatus) DeepCopyInto(out *MinecraftServerStatus)

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

type MinecraftServerTemplateSpec

type MinecraftServerTemplateSpec struct {
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// +optional
	Spec MinecraftServerSpec `json:"spec,omitempty"`
}

func (*MinecraftServerTemplateSpec) DeepCopy

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

func (*MinecraftServerTemplateSpec) DeepCopyInto

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

func (*MinecraftServerTemplateSpec) GenerateTemplateSpecHash

func (template *MinecraftServerTemplateSpec) GenerateTemplateSpecHash() (string, error)

type MinecraftServerType

type MinecraftServerType string
const (
	Proxy  MinecraftServerType = "PROXY"
	Server MinecraftServerType = "SERVER"
)

type MinecraftStatefulSet

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

	Spec   MinecraftStatefulSetSpec   `json:"spec,omitempty"`
	Status MinecraftStatefulSetStatus `json:"status,omitempty"`
}

MinecraftStatefulSet is the Schema for the minecraftstatefulsets API

func (*MinecraftStatefulSet) DeepCopy

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

func (*MinecraftStatefulSet) DeepCopyInto

func (in *MinecraftStatefulSet) DeepCopyInto(out *MinecraftStatefulSet)

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

func (*MinecraftStatefulSet) DeepCopyObject

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

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

type MinecraftStatefulSetList

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

MinecraftStatefulSetList contains a list of MinecraftStatefulSet

func (*MinecraftStatefulSetList) DeepCopy

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

func (*MinecraftStatefulSetList) DeepCopyInto

func (in *MinecraftStatefulSetList) DeepCopyInto(out *MinecraftStatefulSetList)

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

func (*MinecraftStatefulSetList) DeepCopyObject

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

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

type MinecraftStatefulSetSpec

type MinecraftStatefulSetSpec struct {
	Replicas        int                         `json:"replicas,omitempty"`
	MinReadySeconds int32                       `json:"minReadySeconds,omitempty"`
	Template        MinecraftServerTemplateSpec `json:"template,omitempty"`
	// +optional
	VolumeClaimTemplates []SelfVolumeClaimSpec `json:"volumeClaimTemplates,omitempty"`
}

MinecraftStatefulSetSpec defines the desired state of MinecraftStatefulSet

func (*MinecraftStatefulSetSpec) DeepCopy

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

func (*MinecraftStatefulSetSpec) DeepCopyInto

func (in *MinecraftStatefulSetSpec) DeepCopyInto(out *MinecraftStatefulSetSpec)

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

type MinecraftStatefulSetStatus

type MinecraftStatefulSetStatus struct {
	Replicas int `json:"replicas,omitempty"`
	Ready    int `json:"ready,omitempty"`
}

MinecraftStatefulSetStatus defines the observed state of MinecraftStatefulSet

func (*MinecraftStatefulSetStatus) DeepCopy

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

func (*MinecraftStatefulSetStatus) DeepCopyInto

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

type SelfMetadata

type SelfMetadata struct {
	Name string `json:"name,omitempty"`
}

func (*SelfMetadata) DeepCopy

func (in *SelfMetadata) DeepCopy() *SelfMetadata

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

func (*SelfMetadata) DeepCopyInto

func (in *SelfMetadata) DeepCopyInto(out *SelfMetadata)

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

type SelfVolumeClaimSpec

type SelfVolumeClaimSpec struct {
	Metadata SelfMetadata                     `json:"metadata,omitempty"`
	Spec     corev1.PersistentVolumeClaimSpec `json:"spec,omitempty"`
}

func (*SelfVolumeClaimSpec) DeepCopy

func (in *SelfVolumeClaimSpec) DeepCopy() *SelfVolumeClaimSpec

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

func (*SelfVolumeClaimSpec) DeepCopyInto

func (in *SelfVolumeClaimSpec) DeepCopyInto(out *SelfVolumeClaimSpec)

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