v1alpha1

package
v0.0.0-...-af0835f Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: MIT Imports: 5 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{
	Group:   azuregaming.GroupName,
	Version: "v1alpha1",
}

SchemeGroupVersion is the identifier for the API which includes the name of the group and the version of the API

Functions

func Resource

func Resource(resource string) schema.GroupResource

Types

type DGSActivePlayersAutoScalerDetails

type DGSActivePlayersAutoScalerDetails struct {
	MinimumReplicas            int    `json:"minimumReplicas"`
	MaximumReplicas            int    `json:"maximumReplicas"`
	ScaleInThreshold           int    `json:"scaleInThreshold"`
	ScaleOutThreshold          int    `json:"scaleOutThreshold"`
	Enabled                    bool   `json:"enabled"`
	CoolDownInMinutes          int    `json:"coolDownInMinutes"`
	LastScaleOperationDateTime string `json:"lastScaleOperationDateTime"`
	MaxPlayersPerServer        int    `json:"maxPlayersPerServer"`
}

DGSActivePlayersAutoScalerDetails contains details about the autoscaling of the dedicated game server collection

func (*DGSActivePlayersAutoScalerDetails) DeepCopy

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

func (*DGSActivePlayersAutoScalerDetails) DeepCopyInto

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

type DGSColHealth

type DGSColHealth string

DGSColHealth represents the Health of the Collection. For it to be Healthy, all the DGS need to be Healthy

const (
	// DGSColHealthy represents a Healthy DGSCollection
	DGSColHealthy DGSColHealth = "Healthy"
	// DGSColCreating represents a Creating DGSCollection
	DGSColCreating DGSColHealth = "Creating"
	// DGSColFailed represents a Failed DGSCollection (i.e. it contains at least one Failed DGS)
	DGSColFailed DGSColHealth = "Failed"
	// DGSColNeedsIntervention represents a DGSCollection that has failed multiple times and needs manual check-up from the clsuter admin
	DGSColNeedsIntervention DGSColHealth = "NeedsIntervention"
)

type DGSHealth

type DGSHealth string

DGSHealth represents the DGS Health

const (
	// DGSCreating represents Creating DGS
	DGSCreating DGSHealth = "Creating"
	// DGSHealthy represents a Healthy DGS
	DGSHealthy DGSHealth = "Healthy"
	// DGSFailed represents a Failed DGS
	DGSFailed DGSHealth = "Failed"
)

type DGSState

type DGSState string

DGSState represents the DGS State

const (
	// DGSIdle represents the Idle state for a DGS
	DGSIdle DGSState = "Idle"
	// DGSAssigned represents the Assigned state for a DGS
	DGSAssigned DGSState = "Assigned"
	// DGSRunning represents the Running state for a DGS
	DGSRunning DGSState = "Running"
	// DGSPostMatch represents the PostMatch state for a DGS
	DGSPostMatch DGSState = "PostMatch"
)

type DedicatedGameServer

type DedicatedGameServer struct {
	// TypeMeta is the metadata for the resource, like kind and apiversion
	meta_v1.TypeMeta `json:",inline"`
	// ObjectMeta contains the metadata for the particular object, including
	// things like...
	//  - name
	//  - namespace
	//  - self link
	//  - labels
	//  - ... etc ...
	meta_v1.ObjectMeta `json:"metadata,omitempty"`

	// Spec is the custom resource spec
	Spec   DedicatedGameServerSpec   `json:"spec"`
	Status DedicatedGameServerStatus `json:"status"`
}

DedicatedGameServer describes a DedicatedGameServer resource

func (*DedicatedGameServer) DeepCopy

func (in *DedicatedGameServer) DeepCopy() *DedicatedGameServer

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

func (*DedicatedGameServer) DeepCopyInto

func (in *DedicatedGameServer) DeepCopyInto(out *DedicatedGameServer)

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

func (*DedicatedGameServer) DeepCopyObject

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

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

type DedicatedGameServerCollection

type DedicatedGameServerCollection struct {
	// TypeMeta is the metadata for the resource, like kind and apiversion
	meta_v1.TypeMeta `json:",inline"`
	// ObjectMeta contains the metadata for the particular object, including
	// things like...
	//  - name
	//  - namespace
	//  - self link
	//  - labels
	//  - ... etc ...
	meta_v1.ObjectMeta `json:"metadata,omitempty"`

	// Spec is the custom resource spec
	Spec   DedicatedGameServerCollectionSpec   `json:"spec"`
	Status DedicatedGameServerCollectionStatus `json:"status"`
}

DedicatedGameServerCollection describes a DedicatedGameServerCollection resource

func (*DedicatedGameServerCollection) DeepCopy

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

func (*DedicatedGameServerCollection) DeepCopyInto

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

func (*DedicatedGameServerCollection) DeepCopyObject

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

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

type DedicatedGameServerCollectionList

type DedicatedGameServerCollectionList struct {
	meta_v1.TypeMeta `json:",inline"`
	meta_v1.ListMeta `json:"metadata"`
	Items            []DedicatedGameServerCollection `json:"items"`
}

DedicatedGameServerCollectionList is a list of DedicatedGameServerCollectionList resources

func (*DedicatedGameServerCollectionList) DeepCopy

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

func (*DedicatedGameServerCollectionList) DeepCopyInto

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

func (*DedicatedGameServerCollectionList) DeepCopyObject

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

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

type DedicatedGameServerCollectionSpec

type DedicatedGameServerCollectionSpec struct {
	// this is where you would put your custom resource data
	Replicas                          int32                              `json:"replicas"`
	PortsToExpose                     []int32                            `json:"portsToExpose"`
	Template                          corev1.PodSpec                     `json:"template"`
	DGSFailBehavior                   DedicatedGameServerFailBehavior    `json:"dgsFailBehavior,omitempty"`
	DGSMaxFailures                    int32                              `json:"dgsMaxFailures,omitempty"`
	DGSActivePlayersAutoScalerDetails *DGSActivePlayersAutoScalerDetails `json:"dgsActivePlayersAutoScalerDetails,omitempty"`
}

DedicatedGameServerCollectionSpec is the spec for a DedicatedGameServerCollection resource

func (*DedicatedGameServerCollectionSpec) DeepCopy

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

func (*DedicatedGameServerCollectionSpec) DeepCopyInto

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

type DedicatedGameServerCollectionStatus

type DedicatedGameServerCollectionStatus struct {
	DGSTimesFailed      int32           `json:"dgsTimesFailed"`
	AvailableReplicas   int32           `json:"availableReplicas"`
	PodCollectionState  corev1.PodPhase `json:"podsState"`
	DGSCollectionHealth DGSColHealth    `json:"dgsHealth"`
}

DedicatedGameServerCollectionStatus is the status for a DedicatedGameServerCollection resource

func (*DedicatedGameServerCollectionStatus) DeepCopy

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

func (*DedicatedGameServerCollectionStatus) DeepCopyInto

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

type DedicatedGameServerFailBehavior

type DedicatedGameServerFailBehavior string
const (
	Delete DedicatedGameServerFailBehavior = "Delete"
	Remove DedicatedGameServerFailBehavior = "Remove"
)

type DedicatedGameServerList

type DedicatedGameServerList struct {
	meta_v1.TypeMeta `json:",inline"`
	meta_v1.ListMeta `json:"metadata"`

	Items []DedicatedGameServer `json:"items"`
}

DedicatedGameServerList is a list of DedicatedGameServerList resources

func (*DedicatedGameServerList) DeepCopy

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

func (*DedicatedGameServerList) DeepCopyInto

func (in *DedicatedGameServerList) DeepCopyInto(out *DedicatedGameServerList)

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

func (*DedicatedGameServerList) DeepCopyObject

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

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

type DedicatedGameServerSpec

type DedicatedGameServerSpec struct {
	PortsToExpose []int32        `json:"portsToExpose"`
	Template      corev1.PodSpec `json:"template"`
}

DedicatedGameServerSpec is the spec for a DedicatedGameServer resource

func (*DedicatedGameServerSpec) DeepCopy

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

func (*DedicatedGameServerSpec) DeepCopyInto

func (in *DedicatedGameServerSpec) DeepCopyInto(out *DedicatedGameServerSpec)

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

type DedicatedGameServerStatus

type DedicatedGameServerStatus struct {
	PodPhase          corev1.PodPhase `json:"podPhase"`
	Health            DGSHealth       `json:"health"`
	DGSState          DGSState        `json:"dgsState"`
	MarkedForDeletion bool            `json:"markedForDeletion"`
	PublicIP          string          `json:"publicIP"`
	NodeName          string          `json:"nodeName"`
	ActivePlayers     int             `json:"activePlayers"`
}

DedicatedGameServerStatus is the status for a DedicatedGameServer resource

func (*DedicatedGameServerStatus) DeepCopy

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

func (*DedicatedGameServerStatus) DeepCopyInto

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