diff --git a/cli-plugins/manager/annotations.go b/cli-plugins/manager/annotations.go deleted file mode 100644 index abe47fe09..000000000 --- a/cli-plugins/manager/annotations.go +++ /dev/null @@ -1,40 +0,0 @@ -package manager - -import "github.com/docker/cli/cli-plugins/metadata" - -const ( - // CommandAnnotationPlugin is added to every stub command added by - // AddPluginCommandStubs with the value "true" and so can be - // used to distinguish plugin stubs from regular commands. - // - // Deprecated: use [metadata.CommandAnnotationPlugin]. This alias will be removed in the next release. - CommandAnnotationPlugin = metadata.CommandAnnotationPlugin - - // CommandAnnotationPluginVendor is added to every stub command - // added by AddPluginCommandStubs and contains the vendor of - // that plugin. - // - // Deprecated: use [metadata.CommandAnnotationPluginVendor]. This alias will be removed in the next release. - CommandAnnotationPluginVendor = metadata.CommandAnnotationPluginVendor - - // CommandAnnotationPluginVersion is added to every stub command - // added by AddPluginCommandStubs and contains the version of - // that plugin. - // - // Deprecated: use [metadata.CommandAnnotationPluginVersion]. This alias will be removed in the next release. - CommandAnnotationPluginVersion = metadata.CommandAnnotationPluginVersion - - // CommandAnnotationPluginInvalid is added to any stub command - // added by AddPluginCommandStubs for an invalid command (that - // is, one which failed it's candidate test) and contains the - // reason for the failure. - // - // Deprecated: use [metadata.CommandAnnotationPluginInvalid]. This alias will be removed in the next release. - CommandAnnotationPluginInvalid = metadata.CommandAnnotationPluginInvalid - - // CommandAnnotationPluginCommandPath is added to overwrite the - // command path for a plugin invocation. - // - // Deprecated: use [metadata.CommandAnnotationPluginCommandPath]. This alias will be removed in the next release. - CommandAnnotationPluginCommandPath = metadata.CommandAnnotationPluginCommandPath -) diff --git a/cli-plugins/manager/manager.go b/cli-plugins/manager/manager.go index 93adb6ff0..6bb047f17 100644 --- a/cli-plugins/manager/manager.go +++ b/cli-plugins/manager/manager.go @@ -18,16 +18,6 @@ import ( "golang.org/x/sync/errgroup" ) -const ( - // ReexecEnvvar is the name of an ennvar which is set to the command - // used to originally invoke the docker CLI when executing a - // plugin. Assuming $PATH and $CWD remain unchanged this should allow - // the plugin to re-execute the original CLI. - // - // Deprecated: use [metadata.ReexecEnvvar]. This alias will be removed in the next release. - ReexecEnvvar = metadata.ReexecEnvvar -) - // errPluginNotFound is the error returned when a plugin could not be found. type errPluginNotFound string diff --git a/cli-plugins/manager/metadata.go b/cli-plugins/manager/metadata.go deleted file mode 100644 index 6fda7fa1a..000000000 --- a/cli-plugins/manager/metadata.go +++ /dev/null @@ -1,31 +0,0 @@ -package manager - -import ( - "github.com/docker/cli/cli-plugins/metadata" -) - -const ( - // NamePrefix is the prefix required on all plugin binary names - // - // Deprecated: use [metadata.NamePrefix]. This alias will be removed in a future release. - NamePrefix = metadata.NamePrefix - - // MetadataSubcommandName is the name of the plugin subcommand - // which must be supported by every plugin and returns the - // plugin metadata. - // - // Deprecated: use [metadata.MetadataSubcommandName]. This alias will be removed in a future release. - MetadataSubcommandName = metadata.MetadataSubcommandName - - // HookSubcommandName is the name of the plugin subcommand - // which must be implemented by plugins declaring support - // for hooks in their metadata. - // - // Deprecated: use [metadata.HookSubcommandName]. This alias will be removed in a future release. - HookSubcommandName = metadata.HookSubcommandName -) - -// Metadata provided by the plugin. -// -// Deprecated: use [metadata.Metadata]. This alias will be removed in a future release. -type Metadata = metadata.Metadata