runnerv2client

package
v3.11.3 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const MaxMsgSize = 32 * 1024 * 1024 // 32 MiB

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	runnerv2.RunnerServiceClient
	grpc_health_v1.HealthClient
	// contains filtered or unexported fields
}

func New

func New(clientConn *grpc.ClientConn, logger *zap.Logger) *Client

func (*Client) Close added in v3.9.3

func (c *Client) Close() error

func (*Client) ExecuteProgram added in v3.9.3

func (c *Client) ExecuteProgram(
	ctx context.Context,
	cfg *runnerv2.ProgramConfig,
	opts ExecuteProgramOptions,
) error

type ExecuteProgramOptions added in v3.9.3

type ExecuteProgramOptions struct {
	InputData        []byte
	SessionID        string
	Stdin            io.ReadCloser
	Stdout           io.Writer
	Stderr           io.Writer
	StoreStdoutInEnv bool
	Winsize          *runnerv2.Winsize
}

Jump to

Keyboard shortcuts

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