Documentation
¶
Index ¶
Constants ¶
View Source
const NAME = "ViewDefinition"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ViewDefinition ¶
type ViewDefinition struct {
metadata.MetadataInfo
XMLName xml.Name `xml:"ViewDefinition"`
Xmlns string `xml:"xmlns,attr"`
ApiVersion *struct {
Text string `xml:",chardata"`
} `xml:"apiVersion,omitempty"`
IsProtected *struct {
Text string `xml:",chardata"`
} `xml:"isProtected,omitempty"`
MasterLabel struct {
Text string `xml:",chardata"`
} `xml:"masterLabel"`
TargetType *struct {
Text string `xml:",chardata"`
} `xml:"targetType,omitempty"`
}
ViewDefinition represents the ViewDefinition metadata type used by Slack apps. The accompanying .view file (YAML, holding the block-kit component tree) sits next to the .view-meta.xml file in the viewdefinitions directory and is read separately by consumers.
func Open ¶
func Open(path string) (*ViewDefinition, error)
func (*ViewDefinition) SetMetadata ¶
func (v *ViewDefinition) SetMetadata(m metadata.MetadataInfo)
func (*ViewDefinition) Type ¶
func (v *ViewDefinition) Type() metadata.MetadataType
Click to show internal directories.
Click to hide internal directories.