2018-12-10 10:30:19 -05:00
|
|
|
package manager
|
|
|
|
|
|
|
|
const (
|
|
|
|
// NamePrefix is the prefix required on all plugin binary names
|
|
|
|
NamePrefix = "docker-"
|
|
|
|
|
|
|
|
// MetadataSubcommandName is the name of the plugin subcommand
|
|
|
|
// which must be supported by every plugin and returns the
|
|
|
|
// plugin metadata.
|
|
|
|
MetadataSubcommandName = "docker-cli-plugin-metadata"
|
|
|
|
)
|
|
|
|
|
2019-01-09 06:18:25 -05:00
|
|
|
// Metadata provided by the plugin. See docs/extend/cli_plugins.md for canonical information.
|
2018-12-10 10:30:19 -05:00
|
|
|
type Metadata struct {
|
|
|
|
// SchemaVersion describes the version of this struct. Mandatory, must be "0.1.0"
|
2018-12-19 09:49:20 -05:00
|
|
|
SchemaVersion string `json:",omitempty"`
|
2018-12-10 10:30:19 -05:00
|
|
|
// Vendor is the name of the plugin vendor. Mandatory
|
2018-12-19 09:49:20 -05:00
|
|
|
Vendor string `json:",omitempty"`
|
2018-12-10 10:30:19 -05:00
|
|
|
// Version is the optional version of this plugin.
|
2018-12-19 09:49:20 -05:00
|
|
|
Version string `json:",omitempty"`
|
2018-12-10 10:30:19 -05:00
|
|
|
// ShortDescription should be suitable for a single line help message.
|
2018-12-19 09:49:20 -05:00
|
|
|
ShortDescription string `json:",omitempty"`
|
2018-12-10 10:30:19 -05:00
|
|
|
// URL is a pointer to the plugin's homepage.
|
2018-12-19 09:49:20 -05:00
|
|
|
URL string `json:",omitempty"`
|
2018-12-10 10:30:19 -05:00
|
|
|
}
|