Help us shape the future of Go! Take the 2026 Go Developer Survey

wave

package
v0.68.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const APP_NAME = "WaveApplication"
View Source
const DATA_FLOW_NAME = "WaveDataflow"
View Source
const DATA_SET_NAME = "WaveDataset"
View Source
const RECIPE_NAME = "WaveRecipe"

Variables

This section is empty.

Functions

This section is empty.

Types

type WaveApplication

type WaveApplication struct {
	metadata.MetadataInfo
	XMLName   xml.Name `xml:"WaveApplication"`
	Xmlns     string   `xml:"xmlns,attr"`
	AssetIcon struct {
		Text string `xml:",chardata"`
	} `xml:"assetIcon"`
	Folder struct {
		Text string `xml:",chardata"`
	} `xml:"folder"`
	MasterLabel struct {
		Text string `xml:",chardata"`
	} `xml:"masterLabel"`
	Shares struct {
		AccessLevel struct {
			Text string `xml:",chardata"`
		} `xml:"accessLevel"`
		SharedTo struct {
			Text string `xml:",chardata"`
		} `xml:"sharedTo"`
		SharedToType struct {
			Text string `xml:",chardata"`
		} `xml:"sharedToType"`
	} `xml:"shares"`
	TemplateOrigin struct {
		Text string `xml:",chardata"`
	} `xml:"templateOrigin"`
	TemplateVersion struct {
		Text string `xml:",chardata"`
	} `xml:"templateVersion"`
}

func OpenApplication

func OpenApplication(path string) (*WaveApplication, error)

func (*WaveApplication) SetMetadata

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

func (*WaveApplication) Type

type WaveDataflow

type WaveDataflow struct {
	metadata.MetadataInfo
	XMLName     xml.Name `xml:"WaveDataflow"`
	Xmlns       string   `xml:"xmlns,attr"`
	Xsi         string   `xml:"xsi,attr"`
	Application *struct {
		Text string `xml:",chardata"`
	} `xml:"application"`
	Content struct {
		Nil string `xml:"nil,attr"`
	} `xml:"content"`
	DataflowType struct {
		Text string `xml:",chardata"`
	} `xml:"dataflowType"`
	Description *struct {
		Text string `xml:",chardata"`
	} `xml:"description"`
	MasterLabel struct {
		Text string `xml:",chardata"`
	} `xml:"masterLabel"`

	// Non-XML fields to store the actual dataflow content
	SourceContent []byte `xml:"-"`
	SourcePath    string `xml:"-"`
}

func OpenDataflow

func OpenDataflow(path string) (*WaveDataflow, error)

func (*WaveDataflow) Files

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

func (*WaveDataflow) SetMetadata

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

func (*WaveDataflow) Type

type WaveDataset

type WaveDataset struct {
	metadata.MetadataInfo
	XMLName     xml.Name `xml:"WaveDataset"`
	Xmlns       string   `xml:"xmlns,attr"`
	Application struct {
		Text string `xml:",chardata"`
	} `xml:"application"`
	MasterLabel struct {
		Text string `xml:",chardata"`
	} `xml:"masterLabel"`
	Description *struct {
		Text string `xml:",chardata"`
	} `xml:"description"`
	DatasetType *struct {
		Text string `xml:",chardata"`
	} `xml:"type"`
	TemplateAssetSourceName *struct {
		Text string `xml:",chardata"`
	} `xml:"templateAssetSourceName"`

	// Fields for handling companion files
	SourcePath    string `xml:"-"`
	SourceContent []byte `xml:"-"`
}

func OpenDataset

func OpenDataset(path string) (*WaveDataset, error)

func (*WaveDataset) Files

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

func (*WaveDataset) SetMetadata

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

func (*WaveDataset) Type

func (c *WaveDataset) Type() metadata.MetadataType

type WaveRecipe

type WaveRecipe struct {
	metadata.MetadataInfo
	XMLName xml.Name `xml:"WaveRecipe"`
	Xmlns   string   `xml:"xmlns,attr"`
	Xsi     string   `xml:"xsi,attr"`
	Content struct {
		Nil string `xml:"nil,attr"`
	} `xml:"content"`
	Dataflow struct {
		Text string `xml:",chardata"`
	} `xml:"dataflow"`
	Format struct {
		Text string `xml:",chardata"`
	} `xml:"format"`
	MasterLabel struct {
		Text string `xml:",chardata"`
	} `xml:"masterLabel"`

	// Fields for handling companion files
	SourcePath    string `xml:"-"`
	SourceContent []byte `xml:"-"`
}

func OpenRecipe

func OpenRecipe(path string) (*WaveRecipe, error)

func (*WaveRecipe) Files

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

func (*WaveRecipe) SetMetadata

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

func (*WaveRecipe) Type

func (c *WaveRecipe) Type() metadata.MetadataType

Jump to

Keyboard shortcuts

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