Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeBuilder registers our types SchemeBuilder = k8sruntime.NewSchemeBuilder(addKnownTypes) // AddToScheme local alias for SchemeBuilder.AddToScheme AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: multicluster.GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type ClusterConnectionInfo ¶
type ClusterConnectionInfo struct { ClusterName string `json:"clusterName"` AllocationEndpoint string `json:"allocationEndpoint"` SecretName string `json:"secretName"` }
ClusterConnectionInfo defines the connection information for a cluster
type ConnectionInfoIterator ¶
type ConnectionInfoIterator struct {
// contains filtered or unexported fields
}
ConnectionInfoIterator an iterator on ClusterConnectionInfo
func NewConnectionInfoIterator ¶
func NewConnectionInfoIterator(policies []*GameServerAllocationPolicy) *ConnectionInfoIterator
NewConnectionInfoIterator creates an iterator for connection info
func (*ConnectionInfoIterator) Next ¶
func (it *ConnectionInfoIterator) Next() *ClusterConnectionInfo
Next returns the next ClusterConnectionInfo value if available or nil if iterator reaches the end.
type GameServerAllocationPolicy ¶
type GameServerAllocationPolicy struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec GameServerAllocationPolicySpec `json:"spec,omitempty"` }
GameServerAllocationPolicy is the Schema for the gameserverallocationpolicies API +k8s:openapi-gen=true
func (*GameServerAllocationPolicy) DeepCopy ¶
func (in *GameServerAllocationPolicy) DeepCopy() *GameServerAllocationPolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GameServerAllocationPolicy.
func (*GameServerAllocationPolicy) DeepCopyInto ¶
func (in *GameServerAllocationPolicy) DeepCopyInto(out *GameServerAllocationPolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GameServerAllocationPolicy) DeepCopyObject ¶
func (in *GameServerAllocationPolicy) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GameServerAllocationPolicyList ¶
type GameServerAllocationPolicyList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []GameServerAllocationPolicy `json:"items"` }
GameServerAllocationPolicyList contains a list of GameServerAllocationPolicy
func (*GameServerAllocationPolicyList) DeepCopy ¶
func (in *GameServerAllocationPolicyList) DeepCopy() *GameServerAllocationPolicyList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GameServerAllocationPolicyList.
func (*GameServerAllocationPolicyList) DeepCopyInto ¶
func (in *GameServerAllocationPolicyList) DeepCopyInto(out *GameServerAllocationPolicyList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GameServerAllocationPolicyList) DeepCopyObject ¶
func (in *GameServerAllocationPolicyList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GameServerAllocationPolicySpec ¶
type GameServerAllocationPolicySpec struct { // +kubebuilder:validation:Minimum=0 Priority int `json:"priority"` // +kubebuilder:validation:Minimum=0 Weight int `json:"weight"` ConnectionInfo ClusterConnectionInfo `json:"connectionInfo,omitempty"` }
GameServerAllocationPolicySpec defines the desired state of GameServerAllocationPolicy
func (*GameServerAllocationPolicySpec) DeepCopy ¶
func (in *GameServerAllocationPolicySpec) DeepCopy() *GameServerAllocationPolicySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GameServerAllocationPolicySpec.
func (*GameServerAllocationPolicySpec) DeepCopyInto ¶
func (in *GameServerAllocationPolicySpec) DeepCopyInto(out *GameServerAllocationPolicySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.