Documentation ¶
Index ¶
- func ObjectToAnalysisRun(obj any) *v1alpha1.AnalysisRun
- func ObjectToExperiment(obj any) *v1alpha1.Experiment
- func ObjectToRollout(obj any) *v1alpha1.Rollout
- func SplitYAML(out string) ([]*unstructured.Unstructured, error)
- func StrToUnstructured(jsonStr string) (*unstructured.Unstructured, error)
- func StrToUnstructuredUnsafe(jsonStr string) *unstructured.Unstructured
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ObjectToAnalysisRun ¶
func ObjectToAnalysisRun(obj any) *v1alpha1.AnalysisRun
func ObjectToExperiment ¶
func ObjectToExperiment(obj any) *v1alpha1.Experiment
func ObjectToRollout ¶
func SplitYAML ¶
func SplitYAML(out string) ([]*unstructured.Unstructured, error)
SplitYAML splits a YAML file into unstructured objects. Returns list of all unstructured objects found in the yaml. Panics if any errors occurred.
func StrToUnstructured ¶
func StrToUnstructured(jsonStr string) (*unstructured.Unstructured, error)
func StrToUnstructuredUnsafe ¶
func StrToUnstructuredUnsafe(jsonStr string) *unstructured.Unstructured
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.