transport

package
v0.0.0-...-d57de80 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2022 License: Apache-2.0 Imports: 3 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteMessage

func WriteMessage(writer io.Writer, req interface{}) error

Types

type NetInRequest

type NetInRequest struct {
	Handle        string `json:"handle,omitempty"`
	HostPort      uint32 `json:"host_port,omitempty"`
	ContainerPort uint32 `json:"container_port,omitempty"`
}

type NetInResponse

type NetInResponse struct {
	HostPort      uint32 `json:"host_port,omitempty"`
	ContainerPort uint32 `json:"container_port,omitempty"`
}

type ProcessPayload

type ProcessPayload struct {
	ProcessID  string          `json:"process_id,omitempty"`
	StreamID   string          `json:"stream_id,omitempty"`
	Source     *Source         `json:"source,omitempty"`
	Data       *string         `json:"data,omitempty"`
	ExitStatus *int            `json:"exit_status,omitempty"`
	Error      *string         `json:"error,omitempty"`
	TTY        *garden.TTYSpec `json:"tty,omitempty"`
	Signal     *garden.Signal  `json:"signal,omitempty"`
}

type Source

type Source int
const (
	Stdin Source = iota
	Stdout
	Stderr
)

Jump to

Keyboard shortcuts

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