Documentation
¶
Overview ¶
Package util provides logging and testing related utility functions.
Index ¶
Examples ¶
Constants ¶
View Source
const ( // LoggerKey is the key used to extract logger from context LoggerKey = "logger" // OriginalStatusKey is the key used to extract the original status from the context OriginalStatusKey = "originalStatus" )
Variables ¶
This section is empty.
Functions ¶
func CompletePath ¶
CompletePath is a helper function for converting file paths, specified relative to the caller of this function, into absolute ones. CompletePath is useful in tests and enables deriving the absolute path of experiment YAML files.
Example ¶
filePath := CompletePath("../test/data", "expwithextrafields.yaml")
_, _ = ioutil.ReadFile(filePath)
func OriginalStatus ¶
func OriginalStatus(ctx context.Context) *v2alpha1.ExperimentStatus
OriginalStatus gets the status from the context
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.