-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move cli-plugins annotation consts to a separate package
Signed-off-by: Sebastiaan van Stijn <[email protected]>
- Loading branch information
Showing
6 changed files
with
76 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package manager | ||
|
||
import "github.com/docker/cli/cli-plugins/plugin/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. | ||
CommandAnnotationPlugin = metadata.CommandAnnotationPlugin | ||
|
||
// CommandAnnotationPluginVendor is added to every stub command | ||
// added by AddPluginCommandStubs and contains the vendor of | ||
// that plugin. | ||
CommandAnnotationPluginVendor = metadata.CommandAnnotationPluginVendor | ||
|
||
// CommandAnnotationPluginVersion is added to every stub command | ||
// added by AddPluginCommandStubs and contains the version of | ||
// that plugin. | ||
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. | ||
CommandAnnotationPluginInvalid = metadata.CommandAnnotationPluginInvalid | ||
|
||
// CommandAnnotationPluginCommandPath is added to overwrite the | ||
// command path for a plugin invocation. | ||
CommandAnnotationPluginCommandPath = metadata.CommandAnnotationPluginCommandPath | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package 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. | ||
CommandAnnotationPlugin = "com.docker.cli.plugin" | ||
|
||
// CommandAnnotationPluginVendor is added to every stub command | ||
// added by AddPluginCommandStubs and contains the vendor of | ||
// that plugin. | ||
CommandAnnotationPluginVendor = "com.docker.cli.plugin.vendor" | ||
|
||
// CommandAnnotationPluginVersion is added to every stub command | ||
// added by AddPluginCommandStubs and contains the version of | ||
// that plugin. | ||
CommandAnnotationPluginVersion = "com.docker.cli.plugin.version" | ||
|
||
// 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. | ||
CommandAnnotationPluginInvalid = "com.docker.cli.plugin-invalid" | ||
|
||
// CommandAnnotationPluginCommandPath is added to overwrite the | ||
// command path for a plugin invocation. | ||
CommandAnnotationPluginCommandPath = "com.docker.cli.plugin.command_path" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters