commandRunner

package
v0.0.0-...-1d800d4 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCommandOutput

func CreateCommandOutput(dir types.CompileDir) (*types.CommandOutputFiles, error)

func ResolveTemplatePath

func ResolveTemplatePath(path string, compileDir types.CompileDir, outputDir types.OutputDir) string

Types

type NamespacedRun

type NamespacedRun func(ctx context.Context, options *types.CommandOptions) (types.ExitCode, error)

type Runner

type Runner interface {
	Setup(ctx context.Context, namespace types.Namespace, imageName sharedTypes.ImageName) (*time.Time, error)
	Run(ctx context.Context, namespace types.Namespace, options *types.CommandOptions) (types.ExitCode, error)
	Stop(namespace types.Namespace) error
	Resolve(path string, namespace types.Namespace) (sharedTypes.PathName, error)
}

func New

func New(options *types.Options) (Runner, error)

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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