Documentation ¶
Index ¶
- Variables
- func Resource(resource string) schema.GroupResource
- type DGSActivePlayersAutoScalerDetails
- type DGSColHealth
- type DGSHealth
- type DGSState
- type DedicatedGameServer
- type DedicatedGameServerCollection
- type DedicatedGameServerCollectionList
- type DedicatedGameServerCollectionSpec
- type DedicatedGameServerCollectionStatus
- type DedicatedGameServerFailBehavior
- type DedicatedGameServerList
- type DedicatedGameServerSpec
- type DedicatedGameServerStatus
Constants ¶
This section is empty.
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
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 ¶
func (in *DGSActivePlayersAutoScalerDetails) DeepCopy() *DGSActivePlayersAutoScalerDetails
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DGSActivePlayersAutoScalerDetails.
func (*DGSActivePlayersAutoScalerDetails) DeepCopyInto ¶
func (in *DGSActivePlayersAutoScalerDetails) DeepCopyInto(out *DGSActivePlayersAutoScalerDetails)
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 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 ¶
func (in *DedicatedGameServerCollection) DeepCopy() *DedicatedGameServerCollection
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DedicatedGameServerCollection.
func (*DedicatedGameServerCollection) DeepCopyInto ¶
func (in *DedicatedGameServerCollection) DeepCopyInto(out *DedicatedGameServerCollection)
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 ¶
func (in *DedicatedGameServerCollectionList) DeepCopy() *DedicatedGameServerCollectionList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DedicatedGameServerCollectionList.
func (*DedicatedGameServerCollectionList) DeepCopyInto ¶
func (in *DedicatedGameServerCollectionList) DeepCopyInto(out *DedicatedGameServerCollectionList)
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 ¶
func (in *DedicatedGameServerCollectionSpec) DeepCopy() *DedicatedGameServerCollectionSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DedicatedGameServerCollectionSpec.
func (*DedicatedGameServerCollectionSpec) DeepCopyInto ¶
func (in *DedicatedGameServerCollectionSpec) DeepCopyInto(out *DedicatedGameServerCollectionSpec)
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 ¶
func (in *DedicatedGameServerCollectionStatus) DeepCopy() *DedicatedGameServerCollectionStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DedicatedGameServerCollectionStatus.
func (*DedicatedGameServerCollectionStatus) DeepCopyInto ¶
func (in *DedicatedGameServerCollectionStatus) DeepCopyInto(out *DedicatedGameServerCollectionStatus)
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 ¶
func (in *DedicatedGameServerList) DeepCopy() *DedicatedGameServerList
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 ¶
func (in *DedicatedGameServerSpec) DeepCopy() *DedicatedGameServerSpec
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 ¶
func (in *DedicatedGameServerStatus) DeepCopy() *DedicatedGameServerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DedicatedGameServerStatus.
func (*DedicatedGameServerStatus) DeepCopyInto ¶
func (in *DedicatedGameServerStatus) DeepCopyInto(out *DedicatedGameServerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.