streams

package
v1.0.35 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IO

type IO struct {
	Stream *Stream
}

IO implements an io.ReadWriter that forwards everything to the stream

func (*IO) Read

func (io *IO) Read(p []byte) (int, error)

func (*IO) Write

func (io *IO) Write(p []byte) (n int, err error)

type Log

type Log struct {
	Stream grpc.ServerStream
}

Log implements an io.Writer that proxies logs over a gRPC stream

func (*Log) Write

func (w *Log) Write(p []byte) (n int, err error)

type Stream

type Stream struct {
	streamsv1.Streaming_NewStreamServer

	ErrChan chan<- error
	// contains filtered or unexported fields
}

Stream is a bidirectional stream for container IO

func (*Stream) CloseWithError

func (s *Stream) CloseWithError(err error) error

CloseWithError sends the result of an action to the errChan or nil if no erros

Jump to

Keyboard shortcuts

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