transformer

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package transformer offers utility functions to transform data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractMapValue

func ExtractMapValue(m map[string]any, key string) (map[string]any, error)

ExtractMapValue extracts a map value where its key matches the provided argument.

func Transform

func Transform(xr *resource.Composite, in io) (io, error)

Transform parses a given XR composite and applies any found settings by running the appropriate transformer.

func TransformFromMap

func TransformFromMap(a map[string]any) map[string]any

TransformFromMap transforms all map values to string.

func TransformToMap

func TransformToMap(a map[string]any) map[string]any

TransformToMap transforms all map values to other maps when possible.

Types

This section is empty.

Jump to

Keyboard shortcuts

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