mirror of
https://github.com/docker/cli.git
synced 2026-09-26 09:20:58 -04:00
move cli-plugins metadata types/consts to a separate package
This prevents cli-plugins having to import the plugin-manager. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
||||
"time"
|
||||
|
||||
pluginmanager "github.com/docker/cli/cli-plugins/manager"
|
||||
"github.com/docker/cli/cli-plugins/metadata"
|
||||
"github.com/docker/cli/internal/test"
|
||||
registrytypes "github.com/docker/docker/api/types/registry"
|
||||
"github.com/docker/docker/api/types/swarm"
|
||||
@@ -201,7 +202,7 @@ var samplePluginsInfo = []pluginmanager.Plugin{
|
||||
{
|
||||
Name: "goodplugin",
|
||||
Path: "/path/to/docker-goodplugin",
|
||||
Metadata: pluginmanager.Metadata{
|
||||
Metadata: metadata.Metadata{
|
||||
SchemaVersion: "0.1.0",
|
||||
ShortDescription: "unit test is good",
|
||||
Vendor: "ACME Corp",
|
||||
@@ -211,7 +212,7 @@ var samplePluginsInfo = []pluginmanager.Plugin{
|
||||
{
|
||||
Name: "unversionedplugin",
|
||||
Path: "/path/to/docker-unversionedplugin",
|
||||
Metadata: pluginmanager.Metadata{
|
||||
Metadata: metadata.Metadata{
|
||||
SchemaVersion: "0.1.0",
|
||||
ShortDescription: "this plugin has no version",
|
||||
Vendor: "ACME Corp",
|
||||
|
||||
Reference in New Issue
Block a user