Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the mcing v1alpha1 API group +kubebuilder:object:generate=true +groupName=mcing.kmdkuk.com
Index ¶
- Variables
- type Minecraft
- func (in *Minecraft) DeepCopy() *Minecraft
- func (in *Minecraft) DeepCopyInto(out *Minecraft)
- func (in *Minecraft) DeepCopyObject() runtime.Object
- func (r *Minecraft) Default()
- func (r *Minecraft) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *Minecraft) ValidateCreate() error
- func (r *Minecraft) ValidateDelete() error
- func (r *Minecraft) ValidateUpdate(old runtime.Object) error
- type MinecraftList
- type MinecraftSpec
- type MinecraftStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "mcing.kmdkuk.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 Minecraft ¶
type Minecraft struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec MinecraftSpec `json:"spec,omitempty"`
Status MinecraftStatus `json:"status,omitempty"`
}
Minecraft is the Schema for the minecrafts API
func (*Minecraft) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Minecraft.
func (*Minecraft) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Minecraft) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Minecraft) Default ¶
func (r *Minecraft) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*Minecraft) SetupWebhookWithManager ¶
func (*Minecraft) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Minecraft) ValidateDelete ¶
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
type MinecraftList ¶
type MinecraftList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Minecraft `json:"items"`
}
MinecraftList contains a list of Minecraft
func (*MinecraftList) DeepCopy ¶
func (in *MinecraftList) DeepCopy() *MinecraftList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MinecraftList.
func (*MinecraftList) DeepCopyInto ¶
func (in *MinecraftList) DeepCopyInto(out *MinecraftList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MinecraftList) DeepCopyObject ¶
func (in *MinecraftList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MinecraftSpec ¶
type MinecraftSpec struct {
// Image for minecraft server
// +optional
Image string `json:"image,omitempty"`
// Environment variable to be set for the container
// `EULA` is required
// The server will not start unless EULA=true.
// +kubebuilder:validation:MinItems=1
Env []corev1.EnvVar `json:"env"`
// PersistentVolumeClaimSpec is a specification of `PersistentVolumeClaim` for persisting data in minecraft.
VolumeClaimSpec corev1.PersistentVolumeClaimSpec `json:"volumeClaimSpec"`
}
MinecraftSpec defines the desired state of Minecraft
func (*MinecraftSpec) DeepCopy ¶
func (in *MinecraftSpec) DeepCopy() *MinecraftSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MinecraftSpec.
func (*MinecraftSpec) DeepCopyInto ¶
func (in *MinecraftSpec) DeepCopyInto(out *MinecraftSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MinecraftStatus ¶
type MinecraftStatus struct {
}
MinecraftStatus defines the observed state of Minecraft
func (*MinecraftStatus) DeepCopy ¶
func (in *MinecraftStatus) DeepCopy() *MinecraftStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MinecraftStatus.
func (*MinecraftStatus) DeepCopyInto ¶
func (in *MinecraftStatus) DeepCopyInto(out *MinecraftStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.