Documentation ¶
Index ¶
- func AddPrefixGameKruise(s string) string
- func AddPrefixGsSyncToPod(s string) string
- func DeepHashObject(hasher hash.Hash, objectToWrite interface{})
- func GetAstsHash(gss *gameKruiseV1alpha1.GameServerSet) string
- func GetGameServerSetOfPod(pod *corev1.Pod, c client.Client, ctx context.Context) (*gameKruiseV1alpha1.GameServerSet, error)
- func GetGsTemplateMetadataHash(gss *gameKruiseV1alpha1.GameServerSet) string
- func GetHash(objectToWrite interface{}) string
- func GetIndexFromGsName(gsName string) int
- func GetIndexListFromGsList(gsList []gameKruiseV1alpha1.GameServer) []int
- func GetIndexListFromPodList(podList []corev1.Pod) []int
- func GetNetworkIntervalTime() time.Duration
- func GetNetworkTotalWaitTime() time.Duration
- func GetNewAstsFromGss(gss *gameKruiseV1alpha1.GameServerSet, asts *kruiseV1beta1.StatefulSet) *kruiseV1beta1.StatefulSet
- func GetPodConditionFromList(conditions []corev1.PodCondition, conditionType corev1.PodConditionType) (int, *corev1.PodCondition)
- func GetSliceInANotInB(a, b []int) []int
- func GetSliceInAandInB(a, b []int) []int
- func InitGameServer(gss *gameKruiseV1alpha1.GameServerSet, name string) *gameKruiseV1alpha1.GameServer
- func Int32SliceToString(number []int32, delimiter string) string
- func IntSliceToString(number []int, delimiter string) string
- func IsAllowNotReadyContainers(networkConfParams []gameKruiseV1alpha1.NetworkConfParams) bool
- func IsContainersPreInplaceUpdating(pod *corev1.Pod, gss *gameKruiseV1alpha1.GameServerSet, ...) bool
- func IsHasNegativeNum(nums []int) bool
- func IsHasPrefixGsSyncToPod(s string) bool
- func IsNumInList(num int, list []int) bool
- func IsRepeat(nums []int) bool
- func IsSliceEqual(a, b []int) bool
- func IsStringInList(str string, list []string) bool
- func MergeMapString(map1, map2 map[string]string) map[string]string
- func Min(a, b int) int
- func RemovePrefixGameKruise(s string) string
- func RemoveRepeat(nums []int) []int
- func StringToInt32Slice(str string, delimiter string) []int32
- func StringToIntSlice(str string, delimiter string) []int
- type DeleteSequenceGs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPrefixGameKruise ¶
func AddPrefixGsSyncToPod ¶ added in v0.8.0
func DeepHashObject ¶
DeepHashObject writes specified object to hash using the spew library which follows pointers and prints actual values of the nested objects ensuring the hash does not change when a pointer changes.
func GetAstsHash ¶
func GetAstsHash(gss *gameKruiseV1alpha1.GameServerSet) string
func GetGameServerSetOfPod ¶ added in v0.2.0
func GetGameServerSetOfPod(pod *corev1.Pod, c client.Client, ctx context.Context) (*gameKruiseV1alpha1.GameServerSet, error)
func GetGsTemplateMetadataHash ¶ added in v0.5.0
func GetGsTemplateMetadataHash(gss *gameKruiseV1alpha1.GameServerSet) string
func GetIndexFromGsName ¶
func GetIndexListFromGsList ¶
func GetIndexListFromGsList(gsList []gameKruiseV1alpha1.GameServer) []int
func GetIndexListFromPodList ¶
func GetNetworkIntervalTime ¶ added in v0.3.0
func GetNetworkTotalWaitTime ¶ added in v0.3.0
func GetNewAstsFromGss ¶
func GetNewAstsFromGss(gss *gameKruiseV1alpha1.GameServerSet, asts *kruiseV1beta1.StatefulSet) *kruiseV1beta1.StatefulSet
func GetPodConditionFromList ¶
func GetPodConditionFromList(conditions []corev1.PodCondition, conditionType corev1.PodConditionType) (int, *corev1.PodCondition)
GetPodConditionFromList extracts the provided condition from the given list of condition and returns the index of the condition and the condition. Returns -1 and nil if the condition is not present.
func GetSliceInANotInB ¶
func GetSliceInAandInB ¶
func InitGameServer ¶ added in v0.7.0
func InitGameServer(gss *gameKruiseV1alpha1.GameServerSet, name string) *gameKruiseV1alpha1.GameServer
func Int32SliceToString ¶ added in v0.2.0
func IntSliceToString ¶
func IsAllowNotReadyContainers ¶ added in v0.6.0
func IsAllowNotReadyContainers(networkConfParams []gameKruiseV1alpha1.NetworkConfParams) bool
func IsContainersPreInplaceUpdating ¶ added in v0.6.0
func IsContainersPreInplaceUpdating(pod *corev1.Pod, gss *gameKruiseV1alpha1.GameServerSet, containerNames []string) bool
func IsHasNegativeNum ¶
func IsHasPrefixGsSyncToPod ¶ added in v0.8.0
func IsNumInList ¶
func IsSliceEqual ¶
func IsStringInList ¶
func MergeMapString ¶ added in v0.9.0
func RemovePrefixGameKruise ¶
func RemoveRepeat ¶
func StringToInt32Slice ¶ added in v0.2.0
func StringToIntSlice ¶
Types ¶
type DeleteSequenceGs ¶
func (DeleteSequenceGs) Len ¶
func (dg DeleteSequenceGs) Len() int
func (DeleteSequenceGs) Less ¶
func (dg DeleteSequenceGs) Less(i, j int) bool
func (DeleteSequenceGs) Swap ¶
func (dg DeleteSequenceGs) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.