/
label.go
46 lines (40 loc) · 1.37 KB
/
label.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package model
// Label represents a label shown in the Plugin Marketplace UI.
type Label struct {
Name string `json:"name"`
Description string `json:"description"`
URL string `json:"url"`
Color string `json:"color"`
}
var AllLabels = []Label{
PartnerLabel,
CommunityLabel,
BetaLabel,
ExperimentalLabel,
EnterpriseLabel,
}
var PartnerLabel = Label{
Name: "Partner",
Description: "This plugin is maintained by a Mattermost Partner.",
URL: "https://mattermost.com/pl/default-partner-plugins",
}
var CommunityLabel = Label{
Name: "Community",
Description: "This plugin is maintained by the Open Source Community.",
URL: "https://mattermost.com/pl/default-community-plugins",
}
var BetaLabel = Label{
Name: "Beta",
Description: "This plugin is currently in Beta and is not recommended for use in production.",
URL: "https://mattermost.com/pl/default-beta-plugins",
}
var ExperimentalLabel = Label{
Name: "Experimental",
Description: "This plugin is marked as experimental and not meant for production use. Please use with caution.",
URL: "https://mattermost.com/pl/default-experimental-plugins",
}
var EnterpriseLabel = Label{
Name: "Professional/Enterprise",
Description: "This plugin requires a Professional or Enterprise subscription.",
URL: "https://mattermost.com/pricing/",
}