Documentation ¶
Index ¶
- func ObjectToAnalysisRun(obj interface{}) *v1alpha1.AnalysisRun
- func ObjectToExperiment(obj interface{}) *v1alpha1.Experiment
- func ObjectToRollout(obj interface{}) *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 ¶ added in v0.9.1
func ObjectToAnalysisRun(obj interface{}) *v1alpha1.AnalysisRun
func ObjectToExperiment ¶ added in v1.3.0
func ObjectToExperiment(obj interface{}) *v1alpha1.Experiment
func ObjectToRollout ¶ added in v0.9.1
func SplitYAML ¶ added in v0.9.1
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.