common

package
v0.0.0-...-a1208dc Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

View Source
const (
	DeleteEventKeyPrefix = "delete_event:"
)

Variables

This section is empty.

Functions

func GetCurrentTime

func GetCurrentTime() *metav1.Time

func GetInterConnKusciaPartyDomainIDs

func GetInterConnKusciaPartyDomainIDs(obj metav1.Object) []string

func GetJobStage

func GetJobStage(stage string) v1alpha1.JobStage

func GetObjectAnnotation

func GetObjectAnnotation(obj metav1.Object, key string) string

func GetObjectLabel

func GetObjectLabel(obj metav1.Object, key string) string

func GetObjectNamespaceName

func GetObjectNamespaceName(obj metav1.Object) string

func GetPartyMasterDomains

func GetPartyMasterDomains(domainLister kuscialistersv1alpha1.DomainLister, obj metav1.Object) (map[string][]string, error)

func GetSelfClusterPartyDomainIDs

func GetSelfClusterPartyDomainIDs(obj metav1.Object) []string

func IsOriginalResourceDeleteEvent

func IsOriginalResourceDeleteEvent(key string) (string, bool)

func SelfClusterIsInitiator

func SelfClusterIsInitiator(domainLister kuscialistersv1alpha1.DomainLister, obj metav1.Object) (bool, error)

func UpdateJobStage

func UpdateJobStage(job *v1alpha1.KusciaJob, jobSummary *v1alpha1.KusciaJobSummary) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL