Documentation
¶
Index ¶
- func DeleteIOSlave(pid *uint32)
- func NewStreamIOMaster(slave grpc.BidiStreamingClient[daemon.AttachReq, daemon.AttachResp]) (stdIn *StreamIOWriter, stdOut *StreamIOReader, stdErr *StreamIOReader, ...)
- func NewStreamIOSlave(ctx context.Context, wg *sync.WaitGroup, pid uint32, exitCode chan int) (stdIn *StreamIOReader, stdOut *StreamIOWriter, stdErr *StreamIOWriter)
- func SetIOSlave(pid uint32, slave *StreamIOSlave)
- func SetIOSlavePID(oldId uint32, pid *uint32)
- type StreamIOMaster
- type StreamIOReader
- type StreamIOSlave
- type StreamIOWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteIOSlave ¶
func DeleteIOSlave(pid *uint32)
DeleteIOSlave deletes the slave associated with a PID. Uses the PID value of pointer at the time of the call.
func NewStreamIOMaster ¶
func NewStreamIOMaster( slave grpc.BidiStreamingClient[daemon.AttachReq, daemon.AttachResp], ) (stdIn *StreamIOWriter, stdOut *StreamIOReader, stdErr *StreamIOReader, exitCode chan int, errors chan error)
func NewStreamIOSlave ¶
func NewStreamIOSlave( ctx context.Context, wg *sync.WaitGroup, pid uint32, exitCode chan int, ) (stdIn *StreamIOReader, stdOut *StreamIOWriter, stdErr *StreamIOWriter)
func SetIOSlave ¶
func SetIOSlave(pid uint32, slave *StreamIOSlave)
SetIOSlave sets the slave associated with a PID.
func SetIOSlavePID ¶
SetIOSlavePID updates the PID of an existing slave. Uses the PID value of pointer at the time of the call.
Types ¶
type StreamIOMaster ¶
type StreamIOMaster struct {
// contains filtered or unexported fields
}
type StreamIOReader ¶
type StreamIOSlave ¶
type StreamIOSlave struct {
PID uint32
// contains filtered or unexported fields
}
func GetIOSlave ¶
func GetIOSlave(pid uint32) *StreamIOSlave
GetIOSlave returns the slave associated with a PID.
func (*StreamIOSlave) Attach ¶
func (s *StreamIOSlave) Attach( ctx context.Context, master grpc.BidiStreamingServer[daemon.AttachReq, daemon.AttachResp], ) error
Attach attaches a master stream to the slave.
type StreamIOWriter ¶
type StreamIOWriter struct {
io.WriteCloser
io.ReaderFrom
// contains filtered or unexported fields
}
func (*StreamIOWriter) Close ¶
func (s *StreamIOWriter) Close() error
Click to show internal directories.
Click to hide internal directories.