v1alpha1

package
v0.0.0-...-4229600 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

+k8s:deepcopy-gen=package +groupName=pmmp.io

Index

Constants

This section is empty.

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
	// SchemeGroupVersion is the group version used to register these objects.
	SchemeGroupVersion = schema.GroupVersion{Group: pocketmine.GroupName, Version: version}
)

Functions

func Kind

func Kind(kind string) schema.GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Types

type DependencyPolicy

type DependencyPolicy string

+kubebuilder:validation:Enum=AutoCreate;FailOnMissing

const (
	// DependencyPolicyAutoCreate indicates that the PluginSource objects for dependency plugins should be automatically created.
	DependencyPolicyAutoCreate DependencyPolicy = "AutoCreate"
	// DependencyPolicyAutoCreate indicates that failure events should be emitted when a plugin has a missing dependency.
	DependencyPolicyFailOnMissing DependencyPolicy = "FailOnMissing"
)

type Plugin

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

	Spec   PluginSpec   `json:"spec"`
	Status PluginStatus `json:"status,omitempty"`
}

Plugin specifies that a plugin should be installed in servers that share the same `pocketmine-server` label.

func (*Plugin) DeepCopy

func (in *Plugin) DeepCopy() *Plugin

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

func (*Plugin) DeepCopyInto

func (in *Plugin) DeepCopyInto(out *Plugin)

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

func (*Plugin) DeepCopyObject

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

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

type PluginHttpSource

type PluginHttpSource struct {
	// Url is the HTTP/HTTPS URL to download the plugin from.
	// +kubebuilder:validation:Format=uri
	Url string `json:"url"`
	// TimeoutSeconds is the number of seconds to wait for the plugin to download before timing out.
	// +optional
	// +kubebuilder:default=60
	TimeoutSeconds int64 `json:"timeoutSeconds,omitempty"`
}

PluginHttpSource indicates that a plugin should be installed from an HTTP/HTTPS URL.

func (*PluginHttpSource) DeepCopy

func (in *PluginHttpSource) DeepCopy() *PluginHttpSource

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

func (*PluginHttpSource) DeepCopyInto

func (in *PluginHttpSource) DeepCopyInto(out *PluginHttpSource)

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

type PluginList

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

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*PluginList) DeepCopy

func (in *PluginList) DeepCopy() *PluginList

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

func (*PluginList) DeepCopyInto

func (in *PluginList) DeepCopyInto(out *PluginList)

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

func (*PluginList) DeepCopyObject

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

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

type PluginSource

type PluginSource struct {
	// Http is the HTTP URL to download the plugin from.
	// +optional
	Http *PluginHttpSource `json:"http,omitempty"`
	// Data is the raw plugin phar contents.
	// +optional
	Data []byte `json:"data,omitempty"`
}

PluginSource indicates the method to install a plugin. Only either Http or Data should be nonempty. +kubebuilder:validation:MinProperties=1 +kubebuilder:validation:MaxProperties=1

func (*PluginSource) DeepCopy

func (in *PluginSource) DeepCopy() *PluginSource

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

func (*PluginSource) DeepCopyInto

func (in *PluginSource) DeepCopyInto(out *PluginSource)

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

type PluginSpec

type PluginSpec struct {
	// Source is the method to install the plugin.
	Source PluginSource `json:"source"`
	// DependencyPolicy specifies the behavior when a plugin has a missing dependency.
	// +kubebuilder:default=AutoCreate
	// +optional
	DependencyPolicy DependencyPolicy `json:"dependencyPolicy"`
}

PluginSpec is the spec for a Plugin resource.

func (*PluginSpec) DeepCopy

func (in *PluginSpec) DeepCopy() *PluginSpec

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

func (*PluginSpec) DeepCopyInto

func (in *PluginSpec) DeepCopyInto(out *PluginSpec)

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

type PluginStatus

type PluginStatus struct {
	// ExpectedChecksum is the crc32 checksum of the plugin.
	// If the value is nil, the plugin has not been installed on any hosts yet.
	// Reset this value to nil to force update the plugin.
	// +optional
	ExpectedChecksum *uint32 `json:"expectedChecksum,omitempty"`
}

PluginStatus is the status for a Plugin resource.

func (*PluginStatus) DeepCopy

func (in *PluginStatus) DeepCopy() *PluginStatus

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

func (*PluginStatus) DeepCopyInto

func (in *PluginStatus) DeepCopyInto(out *PluginStatus)

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