convert

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StringPtr

func StringPtr(input string) *string

StringPtr returns a pointer to the string value passed in.

func StringValue

func StringValue(input *string) string

StringValue returns the value of the string pointer passed in or "" if the pointer is nil.

func ToYAMLArray

func ToYAMLArray(input string) ([]interface{}, error)

ToYAMLArray unmarshals stringified YAML into an array.

func ToYAMLMap

func ToYAMLMap(input string) (interface{}, error)

ToYAMLMap unmarshals stringified YAML into an interface.

func UnwrapParamValue

func UnwrapParamValue(wrapped *string, parameterType kudoapi.ParameterType) (unwrapped interface{}, err error)

UnwrapParamValue unwraps a parameter value to an interface according to its type. Depending on the parameter type, the input value can represent a string or an object described in YAML.

func WrapParamValue

func WrapParamValue(unwrapped interface{}, parameterType kudoapi.ParameterType) (*string, error)

WrapParamValue wraps a parameter value to a string according to its type. Complex parameter types will be described as YAML, simple parameter types use the string value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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