Documentation
¶
Index ¶
Constants ¶
View Source
const NAME = "CustomMetadata"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomMetadata ¶
type CustomMetadata struct {
metadata.MetadataInfo
XMLName xml.Name `xml:"CustomMetadata"`
Xmlns string `xml:"xmlns,attr"`
Xsi string `xml:"xmlns:xsi,attr,omitempty"`
Xsd string `xml:"xmlns:xsd,attr,omitempty"`
Label string `xml:"label"`
Protected BooleanText `xml:"protected"`
Values []Value `xml:"values"`
}
func Open ¶
func Open(path string) (*CustomMetadata, error)
func (*CustomMetadata) AddValue ¶
func (m *CustomMetadata) AddValue(key string, value any)
func (*CustomMetadata) SetMetadata ¶
func (c *CustomMetadata) SetMetadata(m metadata.MetadataInfo)
func (*CustomMetadata) Tidy ¶
func (p *CustomMetadata) Tidy()
func (*CustomMetadata) Type ¶
func (c *CustomMetadata) Type() metadata.MetadataType
func (*CustomMetadata) UpdateFieldValue ¶
func (p *CustomMetadata) UpdateFieldValue(field string, value string) error
type TypedValue ¶
type Value ¶
type Value struct {
Field string `xml:"field"`
Value TypedValue `xml:"value"`
}
Click to show internal directories.
Click to hide internal directories.