indexes

package
v3.6.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 11 Imported by: 4

Documentation

Index

Constants

View Source
const (
	ClusterWorkflowTemplateIndex = "clusterworkflowtemplate"
	CronWorkflowIndex            = "cronworkflow"
	NodeIDIndex                  = "nodeID"
	WorkflowIndex                = "workflow"
	WorkflowTemplateIndex        = "workflowtemplate"
	WorkflowPhaseIndex           = "workflow.phase"
	PodPhaseIndex                = "pod.phase"
	ConfigMapLabelsIndex         = "configmap.labels"
	ConditionsIndex              = "status.conditions"
	SemaphoreConfigIndexName     = "bySemaphoreConfigMap"
	UIDIndex                     = "uid"
)

Variables

View Source
var MetaUIDFunc cache.IndexFunc = func(obj interface{}) ([]string, error) {
	v, err := meta.Accessor(obj)
	if err != nil {
		return nil, nil
	}
	return []string{string(v.GetUID())}, nil
}

Functions

func ConditionValue

func ConditionValue(x wfv1.Condition) string

func ConditionsIndexFunc

func ConditionsIndexFunc(obj interface{}) ([]string, error)

func ConfigMapIndexFunc added in v3.2.0

func ConfigMapIndexFunc(obj interface{}) ([]string, error)

func MetaNamespaceLabelIndex

func MetaNamespaceLabelIndex(namespace, label string) string

func MetaNamespaceLabelIndexFunc

func MetaNamespaceLabelIndexFunc(label string) cache.IndexFunc

func MetaNodeIDIndexFunc added in v3.2.0

func MetaNodeIDIndexFunc(obj interface{}) ([]string, error)

MetaNodeIDIndexFunc takes a kubernetes object and returns either the namespace and its node id or the namespace and its name

func MetaWorkflowIndexFunc

func MetaWorkflowIndexFunc(obj interface{}) ([]string, error)

func MetaWorkflowPhaseIndexFunc

func MetaWorkflowPhaseIndexFunc() cache.IndexFunc

func PodPhaseIndexFunc

func PodPhaseIndexFunc(obj interface{}) ([]string, error)

func WorkflowIndexValue

func WorkflowIndexValue(namespace, name string) string

func WorkflowSemaphoreKeysIndexFunc

func WorkflowSemaphoreKeysIndexFunc() cache.IndexFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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