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"
|
|
|
|
)
|
|
|
|
|
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"`
|
2019-05-21 12:50:12 -04:00
|
|
|
// Experimental specifies whether the plugin is experimental.
|
2023-05-09 16:17:27 -04:00
|
|
|
//
|
2020-10-02 08:19:34 -04:00
|
|
|
// Deprecated: experimental features are now always enabled in the CLI
|
2019-05-21 12:50:12 -04:00
|
|
|
Experimental bool `json:",omitempty"`
|
2018-12-10 10:30:19 -05:00
|
|
|
}
|