Documentation
¶
Overview ¶
Package fakes contains mocks used for testing 'kubectl exec' session recording functionality.
Index ¶
- func AsciinemaCastHeaderMsg(t *testing.T, width, height int) []byte
- func AsciinemaCastResizeMsg(t *testing.T, width, height int) []byte
- func CastLine(t *testing.T, p []byte, clock tstime.Clock) []byte
- func New(conn net.Conn, wb bytes.Buffer, rb bytes.Buffer, closed bool) net.Conn
- func RandomBytes(t *testing.T) [][]byte
- type TestConn
- type TestSessionRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsciinemaCastHeaderMsg ¶ added in v1.86.0
func AsciinemaCastResizeMsg ¶ added in v1.86.0
func RandomBytes ¶
Types ¶
type TestConn ¶
type TestConn struct { net.Conn sync.RWMutex // protects the following // contains filtered or unexported fields }
func (*TestConn) ResetReadBuf ¶
func (tc *TestConn) ResetReadBuf()
func (*TestConn) WriteBufBytes ¶
func (*TestConn) WriteReadBufBytes ¶
type TestSessionRecorder ¶
type TestSessionRecorder struct {
// contains filtered or unexported fields
}
func (*TestSessionRecorder) Bytes ¶
func (t *TestSessionRecorder) Bytes() []byte
func (*TestSessionRecorder) Close ¶
func (t *TestSessionRecorder) Close() error
Click to show internal directories.
Click to hide internal directories.