config

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HeaderMattermostUserID = "Mattermost-User-Id"
)
View Source
const (
	PluginName = "com.mattermost.confluence"
)

Variables

View Source
var (
	Mattermost plugin.API
	BotUserID  string
)

Functions

func SetConfig

func SetConfig(c *Configuration)

Types

type Configuration

type Configuration struct {
	Secret                      string `json:"secret"`
	EncryptionKey               string `json:"encryptionkey"` // The encryption key used to encrypt tokens
	AdminAPIToken               string `json:"adminapitoken"` // API token from Confluence Data Center
	ConfluenceOAuthClientID     string `json:"confluenceoauthclientid"`
	ConfluenceOAuthClientSecret string `json:"confluenceoauthclientsecret"`
	ConfluenceURL               string `json:"confluenceurl"`
	ServerVersionGreaterthan9   bool   `json:"serverversiongreaterthan9"`
}

func GetConfig

func GetConfig() *Configuration

func (*Configuration) GetConfluenceBaseURL added in v1.4.0

func (c *Configuration) GetConfluenceBaseURL() string

func (*Configuration) IsOAuthConfigured added in v1.4.0

func (c *Configuration) IsOAuthConfigured() bool

func (*Configuration) IsValid

func (c *Configuration) IsValid() error

func (*Configuration) ProcessConfiguration

func (c *Configuration) ProcessConfiguration() error

func (*Configuration) Sanitize added in v1.4.0

func (c *Configuration) Sanitize()

func (*Configuration) ToMap added in v1.4.0

func (c *Configuration) ToMap() (map[string]interface{}, error)

Jump to

Keyboard shortcuts

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