v1

package
v1.43.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1 is the v1 version of the API. +groupName=multicluster.agones.dev

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeBuilder registers our types
	SchemeBuilder = k8sruntime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme local alias for SchemeBuilder.AddToScheme
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: multicluster.GroupName, Version: "v1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

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 {
	// 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

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

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.

func (*ConnectionInfoIterator) Next

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

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

func (*GameServerAllocationPolicy) DeepCopyInto

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

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

func (*GameServerAllocationPolicyList) DeepCopyInto

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

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

func (*GameServerAllocationPolicySpec) 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