Documentation ¶
Index ¶
- func StringPtr(input string) *string
- func StringValue(input *string) string
- func ToYAMLArray(input string) ([]interface{}, error)
- func ToYAMLMap(input string) (interface{}, error)
- func UnwrapParamValue(wrapped *string, parameterType kudov1beta1.ParameterType) (unwrapped interface{}, err error)
- func WrapParamValue(unwrapped interface{}, parameterType kudov1beta1.ParameterType) (*string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StringValue ¶
StringValue returns the value of the string pointer passed in or "" if the pointer is nil.
func ToYAMLArray ¶
ToYAMLArray unmarshals stringified YAML into an array.
func UnwrapParamValue ¶
func UnwrapParamValue(wrapped *string, parameterType kudov1beta1.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 kudov1beta1.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.
Click to show internal directories.
Click to hide internal directories.