result

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PvnWrapperVersion = "0.0.2"
)

Variables

This section is empty.

Functions

func RunWrapper

func RunWrapper(inputFiles []InputFile, successExitCodes []int32, run func(context.Context) (*pvn_wrapper_pb.Output, []OutputFileUpload, error))

Handle the "main" function of wrapper commands. This function never returns.

Types

type InputFile

type InputFile struct {
	Path   string
	BlobId string
}

type OutputFileUpload

type OutputFileUpload struct {
	Name   string
	Stdout bool
	Stderr bool

	// only one or the other can be specified
	Path    string
	Content []byte
}

func RunCmd

func RunCmd(cmd *exec.Cmd) (*pvn_wrapper_pb.Output, []OutputFileUpload, error)

Jump to

Keyboard shortcuts

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