fakes
package v1.92.2
Go to latest Published: Dec 10, 2025 License:BSD-3-Clause
Opens a new window with list of versions in this module.
Latest LatestThis package is not in the latest version of its module.
Opens a new window with license information.
Imports:10 Opens a new window with list of imports.
Imported by:0 Opens a new window with list of known importers.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package fakes contains mocks used for testing 'kubectl exec' sessionrecording 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¶
funcAsciinemaCastHeaderMsg¶added inv1.86.0
funcAsciinemaCastResizeMsg¶added inv1.86.0
funcRandomBytes¶
Types¶
typeTestConn¶
type TestConn struct {net.Connsync.RWMutex// protects the following// contains filtered or unexported fields}func (*TestConn)ResetReadBuf¶
func (tc *TestConn) ResetReadBuf()
func (*TestConn)WriteBufBytes¶
func (*TestConn)WriteReadBufBytes¶
typeTestSessionRecorder¶
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.