Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagego
type SupportPacket struct {
        ServerOS string `yaml:"server_os"`
        DatabaseType string `yaml:"database_type"`
        DatabaseVersion string `yaml:"database_version"`
        LdapVendorName string   `yaml:"ldap_vendor_name,omitempty"`
        LdapVendorVersion string   `yaml:"ldap_vendor_version,omitempty"`
        ElasticServerVersion string   `yaml:"elastic_server_version,omitempty"`
        ElasticServerPlugins string[]   `yaml:"elastic_server_plugins,omitempty"`
}

More information on the Go YAML library we use today can be found here gopkg.in/yaml.v2

plugins.json

Code Block
languagejson
{
	"active": [

	],
	"inactive": [{
		"id": "antivirus",
		"name": "Antivirus",
		"description": "Antivirus plugin for scanning uploaded files.",
		"version": "0.1.2",
		"server": {
			"executables": {
				"linux-amd64": "server/dist/plugin-linux-amd64",
				"darwin-amd64": "server/dist/plugin-darwin-amd64",
				"windows-amd64": "server/dist/plugin-windows-amd64.exe"
			},
			"executable": ""
		},
		"settings_schema": {
			"header": "Antivirus plugin for scanning uploaded files to Mattermost, uses ClamAV to scan files. See [documentation here](https://github.com/mattermost/mattermost-plugin-antivirus)",
			"footer": "",
			"settings": [{
					"key": "ClamavHostPort",
					"display_name": "ClamAV - Host and Port",
					"type": "text",
					"help_text": "The hostname and port to connect to clamd",
					"placeholder": "localhost:3310",
					"default": "localhost:3310"
				},
				{
					"key": "ScanTimeoutSeconds",
					"display_name": "Scan Timeout (seconds)",
					"type": "number",
					"help_text": "How long the virus scan can take before giving up.",
					"placeholder": "10",
					"default": 10
				}
			]
		}
	}]
}

...