utils

package
v0.0.0-...-523450b Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: MIT Imports: 13 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertStringToValidLabel

func ConvertStringToValidLabel(s string) string

func DeepCopyDependencyList

func DeepCopyDependencyList(dependencyList map[string]map[string]bool) map[string]map[string]bool

func FormatAsString

func FormatAsString(val interface{}) string

func HasCircularDependency

func HasCircularDependency(object string, field string, context EvaluationContext) bool

func JsonPathQuery

func JsonPathQuery(obj interface{}, jsonPath string) (interface{}, error)

func ParseProperty

func ParseProperty(val string) string

func UnmarshalDuration

func UnmarshalDuration(duration string) (time.Duration, error)

func UpdateDependencyList

func UpdateDependencyList(object string, field string, dependencyList map[string]map[string]bool) map[string]map[string]bool

Types

type EvaluationContext

type EvaluationContext struct {
	ConfigProvider config.IExtConfigProvider
	SecretProvider secret.IExtSecretProvider
	DeploymentSpec interface{}
	Properties     map[string]string
	Inputs         map[string]interface{}
	Outputs        map[string]map[string]interface{}
	Triggers       map[string]interface{}
	Component      string
	Value          interface{}
	Namespace      string
	ParentConfigs  map[string]map[string]bool
	Context        context.Context
}

func (*EvaluationContext) Clone

Jump to

Keyboard shortcuts

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