viewdefinitions

package
v0.45.2 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2026 License: MIT Imports: 3 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

Jump to

Keyboard shortcuts

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