plugin

package
v29.10.0-rc.1+incompat... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2026 License: Apache-2.0 Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PersistentPreRunE func(*cobra.Command, []string) error

PersistentPreRunE must be called by any plugin command (or subcommand) which uses the cobra `PersistentPreRun*` hook. Plugins which do not make use of `PersistentPreRun*` do not need to call this (although it remains safe to do so). Plugins are recommended to use `PersistentPreRunE` to enable the error to be returned. Should not be called outside of a command's PersistentPreRunE hook and must not be run unless Run has been called.

Functions

func Run

func Run(makeCmd func(command.Cli) *cobra.Command, meta metadata.Metadata, ops ...command.CLIOption)

Run is the top-level entry point to the CLI plugin framework. It should be called from the plugin's "main()" function. It initializes a new command.DockerCli instance with the given options before calling makeCmd to construct the plugin command, then invokes the plugin command using RunPlugin.

func RunPlugin

func RunPlugin(dockerCli *command.DockerCli, plugin *cobra.Command, meta metadata.Metadata) error

RunPlugin executes the specified plugin command

func RunningStandalone

func RunningStandalone() bool

RunningStandalone tells a CLI plugin it is run standalone by direct execution

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL