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

territory2rule

package
v0.71.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const NAME = "Territory2Rule"

Variables

This section is empty.

Functions

This section is empty.

Types

type RuleItem

type RuleItem struct {
	Field struct {
		Text string `xml:",chardata"`
	} `xml:"field"`
	Operation struct {
		Text string `xml:",chardata"`
	} `xml:"operation"`
	Value *struct {
		Text string `xml:",chardata"`
	} `xml:"value"`
}

type Territory2Rule

type Territory2Rule struct {
	metadata.MetadataInfo
	XMLName xml.Name `xml:"Territory2Rule"`
	Xmlns   string   `xml:"xmlns,attr"`
	Active  struct {
		Text string `xml:",chardata"`
	} `xml:"active"`
	BooleanFilter *struct {
		Text string `xml:",chardata"`
	} `xml:"booleanFilter"`
	Name struct {
		Text string `xml:",chardata"`
	} `xml:"name"`
	ObjectType struct {
		Text string `xml:",chardata"`
	} `xml:"objectType"`
	RuleItems []RuleItem `xml:"ruleItems"`
}

func Open

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

func (*Territory2Rule) Files added in v0.63.0

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

Files writes the rule into its model's directory: territory2Models/<Model>/rules/<Rule>.territory2Rule.

func (*Territory2Rule) NameFromPath added in v0.63.0

func (c *Territory2Rule) NameFromPath(path string) metadata.MetadataObjectName

NameFromPath names a rule as package.xml does, <Model>.<Rule>, since rules of different models may share a name.

func (*Territory2Rule) SetMetadata

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

func (*Territory2Rule) Type

Jump to

Keyboard shortcuts

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