package
27.5.1+incompatible
Repository: https://github.com/docker/cli.git
Documentation: pkg.go.dev

# Functions

AddPluginCommandStubs adds a stub cobra.Commands for each valid and invalid plugin.
GetPlugin returns a plugin on the system by its name.
IsNotFound is true if the given error is due to a plugin not being found.
IsPluginCommand checks if the given cmd is a plugin-stub.
ListPlugins produces a list of the plugins available on the system.
NewPluginError creates a new pluginError, analogous to errors.Errorf.
PluginRunCommand returns an "os/exec".Cmd which when .Run() will execute the named plugin.
RunCLICommandHooks is the entrypoint into the hooks execution flow after a main CLI command was executed.
RunPluginHooks is the entrypoint for the hooks execution flow after a plugin command was just executed by the CLI.

# Constants

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.
CommandAnnotationPluginCommandPath is added to overwrite the command path for a plugin invocation.
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.
CommandAnnotationPluginVendor is added to every stub command added by AddPluginCommandStubs and contains the vendor of that plugin.
CommandAnnotationPluginVersion is added to every stub command added by AddPluginCommandStubs and contains the version of that plugin.
HookSubcommandName is the name of the plugin subcommand which must be implemented by plugins declaring support for hooks in their metadata.
MetadataSubcommandName is the name of the plugin subcommand which must be supported by every plugin and returns the plugin metadata.
NamePrefix is the prefix required on all plugin binary names.
ReexecEnvvar is the name of an ennvar which is set to the command used to originally invoke the docker CLI when executing a plugin.
ResourceAttributesEnvvar is the name of the envvar that includes additional resource attributes for OTEL.

# Structs

HookPluginData is the type representing the information that plugins declaring support for hooks get passed when being invoked following a CLI command execution.
Metadata provided by the plugin.
Plugin represents a potential plugin with all it's metadata.

# Interfaces

Candidate represents a possible plugin candidate, for mocking purposes.