Documentation ¶
Index ¶
- func IsZeroOfUnderlyingType(x interface{}) bool
- func JsonPathRead(value interface{}, path string) (interface{}, error)
- func ParseRef(un unstructured.Unstructured, path string) (unstructured.Unstructured, error)
- func WalkUnstructured(body interface{}, visitor func(value interface{}) (interface{}, error)) (interface{}, error)
- type Executor
- type ExecutorParams
- type JsonPathFilterFunc
- type OverrideConfig
- type ParserFunc
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsZeroOfUnderlyingType ¶
func IsZeroOfUnderlyingType(x interface{}) bool
func JsonPathRead ¶
JsonPathRead a path from a decoded JSON array or object ([]interface{} or unstructured.Unstructured) and returns the corresponding value or an error.
The returned value type depends on the requested path and the JSON value.
func ParseRef ¶
func ParseRef(un unstructured.Unstructured, path string) (unstructured.Unstructured, error)
func WalkUnstructured ¶
Types ¶
type Executor ¶
type Executor struct { Params ExecutorParams // contains filtered or unexported fields }
func (*Executor) RestoreItem ¶
func (e *Executor) RestoreItem(ctx context.Context, body unstructured.Unstructured) error
type ExecutorParams ¶
type JsonPathFilterFunc ¶
type JsonPathFilterFunc func(value interface{}) (interface{}, error)
JsonPathFilterFunc applies a prepared json path to a JSON decoded value
func JsonPathPrepare ¶
func JsonPathPrepare(path string) (JsonPathFilterFunc, error)
JsonPathPrepare will parse the path and return a filter function that can then be applied to decoded JSON values.
type OverrideConfig ¶
type ParserFunc ¶
type ParserFunc func(reader io.Reader, consumer func(data unstructured.Unstructured) error) error
type Writer ¶
func (*Writer) WriteRecord ¶
func (w *Writer) WriteRecord(namespace string, resourceName string, record *model.Record) (unstructured.Unstructured, error)
func (*Writer) WriteResource ¶
func (w *Writer) WriteResource(resource *model.Resource) (unstructured.Unstructured, error)
Click to show internal directories.
Click to hide internal directories.