slackapps

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const NAME = "SlackApp"

Variables

This section is empty.

Functions

This section is empty.

Types

type SlackApp

type SlackApp struct {
	metadata.MetadataInfo
	XMLName xml.Name `xml:"SlackApp"`
	Xmlns   string   `xml:"xmlns,attr"`

	AppKey struct {
		Text string `xml:",chardata"`
	} `xml:"appKey"`
	AppToken struct {
		Text string `xml:",chardata"`
	} `xml:"appToken"`
	BotScopes *struct {
		Text string `xml:",chardata"`
	} `xml:"botScopes,omitempty"`
	ClientKey struct {
		Text string `xml:",chardata"`
	} `xml:"clientKey"`
	ClientSecret struct {
		Text string `xml:",chardata"`
	} `xml:"clientSecret"`
	IsProtected *struct {
		Text string `xml:",chardata"`
	} `xml:"isProtected,omitempty"`
	MasterLabel struct {
		Text string `xml:",chardata"`
	} `xml:"masterLabel"`
	SigningSecret struct {
		Text string `xml:",chardata"`
	} `xml:"signingSecret"`
	UserScopes *struct {
		Text string `xml:",chardata"`
	} `xml:"userScopes,omitempty"`
}

SlackApp represents the SlackApp metadata type. The accompanying .slackapp file (YAML, holding the app's command/shortcut/event handler definitions) sits next to the .slackapp-meta.xml file in the slackapps directory and is read separately by consumers.

func Open

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

func (*SlackApp) SetMetadata

func (s *SlackApp) SetMetadata(m metadata.MetadataInfo)

func (*SlackApp) Type

func (s *SlackApp) Type() metadata.MetadataType

Jump to

Keyboard shortcuts

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