dataweave

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const NAME = "DataWeaveResource"

Variables

This section is empty.

Functions

This section is empty.

Types

type DataWeaveResource

type DataWeaveResource struct {
	metadata.MetadataInfo
	XMLName    xml.Name `xml:"DataWeaveResource"`
	Xmlns      string   `xml:"xmlns,attr"`
	ApiVersion struct {
		Text string `xml:",chardata"`
	} `xml:"apiVersion"`
	IsGlobal struct {
		Text string `xml:",chardata"`
	} `xml:"isGlobal"`

	// Non-XML field to store the actual DataWeave code
	SourceCode []byte `xml:"-"`
	SourcePath string `xml:"-"`
}

func Open

func Open(path string) (*DataWeaveResource, error)

func (*DataWeaveResource) Files

func (c *DataWeaveResource) Files(format metadata.Format) (map[string][]byte, error)

func (*DataWeaveResource) SetMetadata

func (c *DataWeaveResource) SetMetadata(m metadata.MetadataInfo)

func (*DataWeaveResource) Type

Jump to

Keyboard shortcuts

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