streams

package
v1.0.25 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: Apache-2.0 Imports: 7 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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