Movatterモバイル変換


[0]ホーム

URL:


fakes

package
v1.92.2Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License:BSD-3-ClauseImports:10Imported by:0

Details

Repository

github.com/tailscale/tailscale

Links

Documentation

Overview

Package fakes contains mocks used for testing 'kubectl exec' sessionrecording functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcAsciinemaCastHeaderMsgadded inv1.86.0

func AsciinemaCastHeaderMsg(t *testing.T, width, heightint) []byte

funcAsciinemaCastResizeMsgadded inv1.86.0

func AsciinemaCastResizeMsg(t *testing.T, width, heightint) []byte

funcCastLine

func CastLine(t *testing.T, p []byte, clocktstime.Clock) []byte

funcNew

func New(connnet.Conn, wbbytes.Buffer, rbbytes.Buffer, closedbool)net.Conn

funcRandomBytes

func RandomBytes(t *testing.T) [][]byte

Types

typeTestConn

type TestConn struct {net.Connsync.RWMutex// protects the following// contains filtered or unexported fields}

func (*TestConn)Close

func (tc *TestConn) Close()error

func (*TestConn)IsClosed

func (tc *TestConn) IsClosed()bool

func (*TestConn)Read

func (tc *TestConn) Read(b []byte) (int,error)

func (*TestConn)ResetReadBuf

func (tc *TestConn) ResetReadBuf()

func (*TestConn)Write

func (tc *TestConn) Write(b []byte) (int,error)

func (*TestConn)WriteBufBytes

func (tc *TestConn) WriteBufBytes() []byte

func (*TestConn)WriteReadBufBytes

func (tc *TestConn) WriteReadBufBytes(b []byte)error

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

func (*TestSessionRecorder)Write

func (t *TestSessionRecorder) Write(b []byte) (int,error)

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp