execclient

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Logger  hclog.Logger
	UI      terminal.UI
	Context context.Context
	Client  pb.WaypointClient
	Args    []string
	Stdin   io.Reader
	Stdout  io.Writer
	Stderr  io.Writer

	// Either DeploymentId or InstanceId have to be set. If both are set, then
	// InstanceId takes priority.
	//
	// These identify a deployment that is used to search for an instance on
	// server side. We target a specific deployment so that the exec session
	// enters the correct application code.
	DeploymentId  string
	DeploymentSeq uint64

	// If set, will cause the server to connect to this specific
	// instance.
	InstanceId string
}

func (*Client) Run

func (c *Client) Run() (int, error)

type EscapeWatcher

type EscapeWatcher struct {
	Cancel func()
	Input  io.Reader
	// contains filtered or unexported fields
}

func (*EscapeWatcher) Read

func (ew *EscapeWatcher) Read(b []byte) (int, error)

Jump to

Keyboard shortcuts

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