2020-04-20 16:36:34 +00:00
|
|
|
package plugins
|
|
|
|
|
2021-06-25 13:50:09 +00:00
|
|
|
// Descriptor The static part of a plugin configuration.
|
2020-04-20 16:36:34 +00:00
|
|
|
type Descriptor struct {
|
|
|
|
// ModuleName (required)
|
2020-10-30 11:44:05 +00:00
|
|
|
ModuleName string `description:"plugin's module name." json:"moduleName,omitempty" toml:"moduleName,omitempty" yaml:"moduleName,omitempty" export:"true"`
|
2020-04-20 16:36:34 +00:00
|
|
|
|
|
|
|
// Version (required)
|
2020-10-30 11:44:05 +00:00
|
|
|
Version string `description:"plugin's version." json:"version,omitempty" toml:"version,omitempty" yaml:"version,omitempty" export:"true"`
|
2020-04-20 16:36:34 +00:00
|
|
|
}
|
|
|
|
|
2021-06-25 13:50:09 +00:00
|
|
|
// LocalDescriptor The static part of a local plugin configuration.
|
|
|
|
type LocalDescriptor struct {
|
2020-04-20 16:36:34 +00:00
|
|
|
// ModuleName (required)
|
2021-06-25 13:50:09 +00:00
|
|
|
ModuleName string `description:"plugin's module name." json:"moduleName,omitempty" toml:"moduleName,omitempty" yaml:"moduleName,omitempty" export:"true"`
|
2020-04-20 16:36:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Manifest The plugin manifest.
|
|
|
|
type Manifest struct {
|
|
|
|
DisplayName string `yaml:"displayName"`
|
|
|
|
Type string `yaml:"type"`
|
|
|
|
Import string `yaml:"import"`
|
|
|
|
BasePkg string `yaml:"basePkg"`
|
|
|
|
Compatibility string `yaml:"compatibility"`
|
|
|
|
Summary string `yaml:"summary"`
|
|
|
|
TestData map[string]interface{} `yaml:"testData"`
|
|
|
|
}
|