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"
|
2023-07-20 11:25:36 -04:00
|
|
|
|
|
|
|
// HookSubcommandName is the name of the plugin subcommand
|
|
|
|
// which must be implemented by plugins declaring support
|
|
|
|
// for hooks in their metadata.
|
|
|
|
HookSubcommandName = "docker-cli-plugin-hooks"
|
2018-12-10 10:30:19 -05:00
|
|
|
)
|
|
|
|
|
2020-05-12 04:33:16 -04:00
|
|
|
// Metadata provided by the plugin.
|
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
|
|
|
}
|