{"modulePath":"github.com/ReadyStackFree/cli","version":"v29.9.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package metadata\n\n## Constants\n\n```go\nconst (\n\t// CommandAnnotationPlugin is added to every stub command added by\n\t// AddPluginCommandStubs with the value \"true\" and so can be\n\t// used to distinguish plugin stubs from regular commands.\n\tCommandAnnotationPlugin = \"com.docker.cli.plugin\"\n\n\t// CommandAnnotationPluginVendor is added to every stub command\n\t// added by AddPluginCommandStubs and contains the vendor of\n\t// that plugin.\n\tCommandAnnotationPluginVendor = \"com.docker.cli.plugin.vendor\"\n\n\t// CommandAnnotationPluginVersion is added to every stub command\n\t// added by AddPluginCommandStubs and contains the version of\n\t// that plugin.\n\tCommandAnnotationPluginVersion = \"com.docker.cli.plugin.version\"\n\n\t// CommandAnnotationPluginInvalid is added to any stub command\n\t// added by AddPluginCommandStubs for an invalid command (that\n\t// is, one which failed it's candidate test) and contains the\n\t// reason for the failure.\n\tCommandAnnotationPluginInvalid = \"com.docker.cli.plugin-invalid\"\n\n\t// CommandAnnotationPluginCommandPath is added to overwrite the\n\t// command path for a plugin invocation.\n\tCommandAnnotationPluginCommandPath = \"com.docker.cli.plugin.command_path\"\n)\n```\n\n```go\nconst (\n\t// NamePrefix is the prefix required on all plugin binary names\n\tNamePrefix = \"docker-\"\n\n\t// MetadataSubcommandName is the name of the plugin subcommand\n\t// which must be supported by every plugin and returns the\n\t// plugin metadata.\n\tMetadataSubcommandName = \"docker-cli-plugin-metadata\"\n\n\t// HookSubcommandName is the name of the plugin subcommand\n\t// which must be implemented by plugins declaring support\n\t// for hooks in their metadata.\n\tHookSubcommandName = \"docker-cli-plugin-hooks\"\n\n\t// ReexecEnvvar is the name of an ennvar which is set to the command\n\t// used to originally invoke the docker CLI when executing a\n\t// plugin. Assuming $PATH and $CWD remain unchanged this should allow\n\t// the plugin to re-execute the original CLI.\n\tReexecEnvvar = \"DOCKER_CLI_PLUGIN_ORIGINAL_CLI_COMMAND\"\n)\n```\n\n## Types\n\n```go\ntype Metadata struct {\n\t// SchemaVersion describes the version of this struct. Mandatory, must be \"0.1.0\"\n\tSchemaVersion string `json:\",omitempty\"`\n\t// Vendor is the name of the plugin vendor. Mandatory\n\tVendor string `json:\",omitempty\"`\n\t// Version is the optional version of this plugin.\n\tVersion string `json:\",omitempty\"`\n\t// ShortDescription should be suitable for a single line help message.\n\tShortDescription string `json:\",omitempty\"`\n\t// URL is a pointer to the plugin's homepage.\n\tURL string `json:\",omitempty\"`\n\t// Hidden hides the plugin in completion and help message output.\n\tHidden bool `json:\",omitempty\"`\n\t// Features declares optional contracts supported by the plugin, keyed by\n\t// feature name.\n\tFeatures map[string]any `json:\",omitempty\"`\n}\n```\nMetadata provided by the plugin.\n\n","path":"github.com/ReadyStackFree/cli/cli-plugins/metadata","name":"metadata","synopsis":"","isRedistributable":true}
