runner

package
v0.0.0-...-736ef05 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(f *cmdutil.Factory, c CommandV2, out, err io.Writer, in io.Reader) error

func ExecuteDaemon

func ExecuteDaemon(c CommandV2) error

func RunCommand

func RunCommand(cmd *cobra.Command, f *cmdutil.Factory, realCmd Command)

func RunCommandWithStartedContainer

func RunCommandWithStartedContainer(cmd *cobra.Command, f *cmdutil.Factory, realCmd CommandWithExecs)

func StartDocker

func StartDocker(ctx context.Context, f *cmdutil.Factory, c CommandV2) error

Types

type Command

type Command interface {
	DockerCommand() docker.Command
	ContainerConfig() docker.ContainerConfig
}

type CommandV2

type CommandV2 interface {
	// Prepare is called before the command is executed
	Prepare() error
	Command() []string
	ContainerConfig() docker.ContainerConfig
}

type CommandWithExecs

type CommandWithExecs interface {
	Command
	Execs(f *cmdutil.Factory, container docker.Container) []error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳