Documentation
¶
Overview ¶
Package v1 is the v1 version of the API. +groupName=multicluster.agones.dev
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: "v1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
Types ¶
type ClusterConnectionInfo ¶
type ClusterConnectionInfo struct {
// Optional: the name of the targeted cluster
ClusterName string `json:"clusterName"`
// The endpoints for the allocator service in the targeted cluster.
// If the AllocationEndpoints is not set, the allocation happens on local cluster.
// If there are multiple endpoints any of the endpoints that can handle allocation request should suffice
AllocationEndpoints []string `json:"allocationEndpoints,omitempty"`
// The name of the secret that contains TLS client certificates to connect the allocator server in the targeted cluster
SecretName string `json:"secretName"`
// The cluster namespace from which to allocate gameservers
Namespace string `json:"namespace"`
// The PEM encoded server CA, used by the allocator client to authenticate the remote server.
ServerCA []byte `json:"serverCa,omitempty"`
}
ClusterConnectionInfo defines the connection information for a cluster
func (*ClusterConnectionInfo) DeepCopy ¶
func (in *ClusterConnectionInfo) DeepCopy() *ClusterConnectionInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterConnectionInfo.
func (*ClusterConnectionInfo) DeepCopyInto ¶
func (in *ClusterConnectionInfo) DeepCopyInto(out *ClusterConnectionInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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) DeepCopy ¶
func (in *ConnectionInfoIterator) DeepCopy() *ConnectionInfoIterator
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConnectionInfoIterator.
func (*ConnectionInfoIterator) DeepCopyInto ¶
func (in *ConnectionInfoIterator) DeepCopyInto(out *ConnectionInfoIterator)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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 int32 `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.