agentconnmock

package
v2.38.2 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: AGPL-3.0 Imports: 18 Imported by: 0 modules, 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

Overview

Package agentconnmock is a generated GoMock package.

Package agentconnmock contains a mock implementation of workspacesdk.AgentConn for use in tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAgentConn

type MockAgentConn struct {
	// contains filtered or unexported fields
}

MockAgentConn is a mock of AgentConn interface.

func NewMockAgentConn

func NewMockAgentConn(ctrl *gomock.Controller) *MockAgentConn

NewMockAgentConn creates a new mock instance.

func (*MockAgentConn) AppHTTPClient added in v2.29.19

func (m *MockAgentConn) AppHTTPClient() *http.Client

AppHTTPClient mocks base method.

func (*MockAgentConn) AwaitReachable

func (m *MockAgentConn) AwaitReachable(ctx context.Context) bool

AwaitReachable mocks base method.

func (*MockAgentConn) BundleFiles added in v2.36.0

func (m *MockAgentConn) BundleFiles(ctx context.Context, req workspacesdk.BundleFilesRequest) ([]byte, error)

BundleFiles mocks base method.

func (*MockAgentConn) CallMCPTool added in v2.32.0

CallMCPTool mocks base method.

func (*MockAgentConn) Close

func (m *MockAgentConn) Close() error

Close mocks base method.

func (*MockAgentConn) ConnectDesktopVNC added in v2.32.0

func (m *MockAgentConn) ConnectDesktopVNC(ctx context.Context) (net.Conn, error)

ConnectDesktopVNC mocks base method.

func (*MockAgentConn) ContextConfig added in v2.32.0

ContextConfig mocks base method.

func (*MockAgentConn) DebugLogs

func (m *MockAgentConn) DebugLogs(ctx context.Context, opts ...workspacesdk.DebugLogsOption) ([]byte, error)

DebugLogs mocks base method.

func (*MockAgentConn) DebugMagicsock

func (m *MockAgentConn) DebugMagicsock(ctx context.Context) ([]byte, error)

DebugMagicsock mocks base method.

func (*MockAgentConn) DebugManifest

func (m *MockAgentConn) DebugManifest(ctx context.Context) ([]byte, error)

DebugManifest mocks base method.

func (*MockAgentConn) DeleteDevcontainer added in v2.30.0

func (m *MockAgentConn) DeleteDevcontainer(ctx context.Context, devcontainerID string) error

DeleteDevcontainer mocks base method.

func (*MockAgentConn) DialContext

func (m *MockAgentConn) DialContext(ctx context.Context, network, addr string) (net.Conn, error)

DialContext mocks base method.

func (*MockAgentConn) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAgentConn) EditFiles added in v2.27.0

EditFiles mocks base method.

func (*MockAgentConn) ExecuteDesktopAction added in v2.32.0

ExecuteDesktopAction mocks base method.

func (*MockAgentConn) GetPeerDiagnostics

func (m *MockAgentConn) GetPeerDiagnostics() tailnet.PeerDiagnostics

GetPeerDiagnostics mocks base method.

func (*MockAgentConn) LS added in v2.27.0

LS mocks base method.

func (*MockAgentConn) ListContainers

ListContainers mocks base method.

func (*MockAgentConn) ListProcesses added in v2.32.0

ListProcesses mocks base method.

func (*MockAgentConn) ListeningPorts

ListeningPorts mocks base method.

func (*MockAgentConn) Netcheck

Netcheck mocks base method.

func (*MockAgentConn) Ping

Ping mocks base method.

func (*MockAgentConn) ProcessOutput added in v2.32.0

ProcessOutput mocks base method.

func (*MockAgentConn) PrometheusMetrics

func (m *MockAgentConn) PrometheusMetrics(ctx context.Context) ([]byte, error)

PrometheusMetrics mocks base method.

func (*MockAgentConn) ReadFile added in v2.27.0

func (m *MockAgentConn) ReadFile(ctx context.Context, path string, offset, limit int64) (io.ReadCloser, string, error)

ReadFile mocks base method.

func (*MockAgentConn) ReadFileLines added in v2.32.0

func (m *MockAgentConn) ReadFileLines(ctx context.Context, path string, offset, limit int64, limits workspacesdk.ReadFileLinesLimits) (workspacesdk.ReadFileLinesResponse, error)

ReadFileLines mocks base method.

func (*MockAgentConn) ReconnectingPTY

func (m *MockAgentConn) ReconnectingPTY(ctx context.Context, id uuid.UUID, height, width uint16, command string, initOpts ...workspacesdk.AgentReconnectingPTYInitOption) (net.Conn, error)

ReconnectingPTY mocks base method.

func (*MockAgentConn) RecreateDevcontainer

func (m *MockAgentConn) RecreateDevcontainer(ctx context.Context, devcontainerID string) (codersdk.Response, error)

RecreateDevcontainer mocks base method.

func (*MockAgentConn) ResolvePath added in v2.33.0

func (m *MockAgentConn) ResolvePath(ctx context.Context, path string) (string, error)

ResolvePath mocks base method.

func (*MockAgentConn) SSH

func (m *MockAgentConn) SSH(ctx context.Context) (*gonet.TCPConn, error)

SSH mocks base method.

func (*MockAgentConn) SSHClient

func (m *MockAgentConn) SSHClient(ctx context.Context) (*ssh.Client, error)

SSHClient mocks base method.

func (*MockAgentConn) SSHClientOnPort

func (m *MockAgentConn) SSHClientOnPort(ctx context.Context, port uint16) (*ssh.Client, error)

SSHClientOnPort mocks base method.

func (*MockAgentConn) SSHOnPort

func (m *MockAgentConn) SSHOnPort(ctx context.Context, port uint16) (*gonet.TCPConn, error)

SSHOnPort mocks base method.

func (*MockAgentConn) SetExtraHeaders added in v2.32.0

func (m *MockAgentConn) SetExtraHeaders(h http.Header)

SetExtraHeaders mocks base method.

func (*MockAgentConn) SignalProcess added in v2.32.0

func (m *MockAgentConn) SignalProcess(ctx context.Context, id, signal string) error

SignalProcess mocks base method.

func (*MockAgentConn) Speedtest

func (m *MockAgentConn) Speedtest(ctx context.Context, direction speedtest.Direction, duration time.Duration) ([]speedtest.Result, error)

Speedtest mocks base method.

func (*MockAgentConn) StartDesktopRecording added in v2.32.0

func (m *MockAgentConn) StartDesktopRecording(ctx context.Context, req workspacesdk.StartDesktopRecordingRequest) error

StartDesktopRecording mocks base method.

func (*MockAgentConn) StartProcess added in v2.32.0

StartProcess mocks base method.

func (*MockAgentConn) StopDesktopRecording added in v2.32.0

StopDesktopRecording mocks base method.

func (*MockAgentConn) TailnetConn

func (m *MockAgentConn) TailnetConn() *tailnet.Conn

TailnetConn mocks base method.

func (*MockAgentConn) UploadChatFile

UploadChatFile mocks base method.

func (*MockAgentConn) WatchContainers

WatchContainers mocks base method.

func (*MockAgentConn) WatchGit added in v2.32.0

WatchGit mocks base method.

func (*MockAgentConn) WriteFile added in v2.27.0

func (m *MockAgentConn) WriteFile(ctx context.Context, path string, reader io.Reader) error

WriteFile mocks base method.

type MockAgentConnMockRecorder

type MockAgentConnMockRecorder struct {
	// contains filtered or unexported fields
}

MockAgentConnMockRecorder is the mock recorder for MockAgentConn.

func (*MockAgentConnMockRecorder) AppHTTPClient added in v2.29.19

func (mr *MockAgentConnMockRecorder) AppHTTPClient() *gomock.Call

AppHTTPClient indicates an expected call of AppHTTPClient.

func (*MockAgentConnMockRecorder) AwaitReachable

func (mr *MockAgentConnMockRecorder) AwaitReachable(ctx any) *gomock.Call

AwaitReachable indicates an expected call of AwaitReachable.

func (*MockAgentConnMockRecorder) BundleFiles added in v2.36.0

func (mr *MockAgentConnMockRecorder) BundleFiles(ctx, req any) *gomock.Call

BundleFiles indicates an expected call of BundleFiles.

func (*MockAgentConnMockRecorder) CallMCPTool added in v2.32.0

func (mr *MockAgentConnMockRecorder) CallMCPTool(ctx, req any) *gomock.Call

CallMCPTool indicates an expected call of CallMCPTool.

func (*MockAgentConnMockRecorder) Close

func (mr *MockAgentConnMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockAgentConnMockRecorder) ConnectDesktopVNC added in v2.32.0

func (mr *MockAgentConnMockRecorder) ConnectDesktopVNC(ctx any) *gomock.Call

ConnectDesktopVNC indicates an expected call of ConnectDesktopVNC.

func (*MockAgentConnMockRecorder) ContextConfig added in v2.32.0

func (mr *MockAgentConnMockRecorder) ContextConfig(ctx any) *gomock.Call

ContextConfig indicates an expected call of ContextConfig.

func (*MockAgentConnMockRecorder) DebugLogs

func (mr *MockAgentConnMockRecorder) DebugLogs(ctx any, opts ...any) *gomock.Call

DebugLogs indicates an expected call of DebugLogs.

func (*MockAgentConnMockRecorder) DebugMagicsock

func (mr *MockAgentConnMockRecorder) DebugMagicsock(ctx any) *gomock.Call

DebugMagicsock indicates an expected call of DebugMagicsock.

func (*MockAgentConnMockRecorder) DebugManifest

func (mr *MockAgentConnMockRecorder) DebugManifest(ctx any) *gomock.Call

DebugManifest indicates an expected call of DebugManifest.

func (*MockAgentConnMockRecorder) DeleteDevcontainer added in v2.30.0

func (mr *MockAgentConnMockRecorder) DeleteDevcontainer(ctx, devcontainerID any) *gomock.Call

DeleteDevcontainer indicates an expected call of DeleteDevcontainer.

func (*MockAgentConnMockRecorder) DialContext

func (mr *MockAgentConnMockRecorder) DialContext(ctx, network, addr any) *gomock.Call

DialContext indicates an expected call of DialContext.

func (*MockAgentConnMockRecorder) EditFiles added in v2.27.0

func (mr *MockAgentConnMockRecorder) EditFiles(ctx, edits any) *gomock.Call

EditFiles indicates an expected call of EditFiles.

func (*MockAgentConnMockRecorder) ExecuteDesktopAction added in v2.32.0

func (mr *MockAgentConnMockRecorder) ExecuteDesktopAction(ctx, action any) *gomock.Call

ExecuteDesktopAction indicates an expected call of ExecuteDesktopAction.

func (*MockAgentConnMockRecorder) GetPeerDiagnostics

func (mr *MockAgentConnMockRecorder) GetPeerDiagnostics() *gomock.Call

GetPeerDiagnostics indicates an expected call of GetPeerDiagnostics.

func (*MockAgentConnMockRecorder) LS added in v2.27.0

func (mr *MockAgentConnMockRecorder) LS(ctx, path, req any) *gomock.Call

LS indicates an expected call of LS.

func (*MockAgentConnMockRecorder) ListContainers

func (mr *MockAgentConnMockRecorder) ListContainers(ctx any) *gomock.Call

ListContainers indicates an expected call of ListContainers.

func (*MockAgentConnMockRecorder) ListProcesses added in v2.32.0

func (mr *MockAgentConnMockRecorder) ListProcesses(ctx any) *gomock.Call

ListProcesses indicates an expected call of ListProcesses.

func (*MockAgentConnMockRecorder) ListeningPorts

func (mr *MockAgentConnMockRecorder) ListeningPorts(ctx any) *gomock.Call

ListeningPorts indicates an expected call of ListeningPorts.

func (*MockAgentConnMockRecorder) Netcheck

func (mr *MockAgentConnMockRecorder) Netcheck(ctx any) *gomock.Call

Netcheck indicates an expected call of Netcheck.

func (*MockAgentConnMockRecorder) Ping

func (mr *MockAgentConnMockRecorder) Ping(ctx any) *gomock.Call

Ping indicates an expected call of Ping.

func (*MockAgentConnMockRecorder) ProcessOutput added in v2.32.0

func (mr *MockAgentConnMockRecorder) ProcessOutput(ctx, id, opts any) *gomock.Call

ProcessOutput indicates an expected call of ProcessOutput.

func (*MockAgentConnMockRecorder) PrometheusMetrics

func (mr *MockAgentConnMockRecorder) PrometheusMetrics(ctx any) *gomock.Call

PrometheusMetrics indicates an expected call of PrometheusMetrics.

func (*MockAgentConnMockRecorder) ReadFile added in v2.27.0

func (mr *MockAgentConnMockRecorder) ReadFile(ctx, path, offset, limit any) *gomock.Call

ReadFile indicates an expected call of ReadFile.

func (*MockAgentConnMockRecorder) ReadFileLines added in v2.32.0

func (mr *MockAgentConnMockRecorder) ReadFileLines(ctx, path, offset, limit, limits any) *gomock.Call

ReadFileLines indicates an expected call of ReadFileLines.

func (*MockAgentConnMockRecorder) ReconnectingPTY

func (mr *MockAgentConnMockRecorder) ReconnectingPTY(ctx, id, height, width, command any, initOpts ...any) *gomock.Call

ReconnectingPTY indicates an expected call of ReconnectingPTY.

func (*MockAgentConnMockRecorder) RecreateDevcontainer

func (mr *MockAgentConnMockRecorder) RecreateDevcontainer(ctx, devcontainerID any) *gomock.Call

RecreateDevcontainer indicates an expected call of RecreateDevcontainer.

func (*MockAgentConnMockRecorder) ResolvePath added in v2.33.0

func (mr *MockAgentConnMockRecorder) ResolvePath(ctx, path any) *gomock.Call

ResolvePath indicates an expected call of ResolvePath.

func (*MockAgentConnMockRecorder) SSH

func (mr *MockAgentConnMockRecorder) SSH(ctx any) *gomock.Call

SSH indicates an expected call of SSH.

func (*MockAgentConnMockRecorder) SSHClient

func (mr *MockAgentConnMockRecorder) SSHClient(ctx any) *gomock.Call

SSHClient indicates an expected call of SSHClient.

func (*MockAgentConnMockRecorder) SSHClientOnPort

func (mr *MockAgentConnMockRecorder) SSHClientOnPort(ctx, port any) *gomock.Call

SSHClientOnPort indicates an expected call of SSHClientOnPort.

func (*MockAgentConnMockRecorder) SSHOnPort

func (mr *MockAgentConnMockRecorder) SSHOnPort(ctx, port any) *gomock.Call

SSHOnPort indicates an expected call of SSHOnPort.

func (*MockAgentConnMockRecorder) SetExtraHeaders added in v2.32.0

func (mr *MockAgentConnMockRecorder) SetExtraHeaders(h any) *gomock.Call

SetExtraHeaders indicates an expected call of SetExtraHeaders.

func (*MockAgentConnMockRecorder) SignalProcess added in v2.32.0

func (mr *MockAgentConnMockRecorder) SignalProcess(ctx, id, signal any) *gomock.Call

SignalProcess indicates an expected call of SignalProcess.

func (*MockAgentConnMockRecorder) Speedtest

func (mr *MockAgentConnMockRecorder) Speedtest(ctx, direction, duration any) *gomock.Call

Speedtest indicates an expected call of Speedtest.

func (*MockAgentConnMockRecorder) StartDesktopRecording added in v2.32.0

func (mr *MockAgentConnMockRecorder) StartDesktopRecording(ctx, req any) *gomock.Call

StartDesktopRecording indicates an expected call of StartDesktopRecording.

func (*MockAgentConnMockRecorder) StartProcess added in v2.32.0

func (mr *MockAgentConnMockRecorder) StartProcess(ctx, req any) *gomock.Call

StartProcess indicates an expected call of StartProcess.

func (*MockAgentConnMockRecorder) StopDesktopRecording added in v2.32.0

func (mr *MockAgentConnMockRecorder) StopDesktopRecording(ctx, req any) *gomock.Call

StopDesktopRecording indicates an expected call of StopDesktopRecording.

func (*MockAgentConnMockRecorder) TailnetConn

func (mr *MockAgentConnMockRecorder) TailnetConn() *gomock.Call

TailnetConn indicates an expected call of TailnetConn.

func (*MockAgentConnMockRecorder) UploadChatFile

func (mr *MockAgentConnMockRecorder) UploadChatFile(ctx, req any) *gomock.Call

UploadChatFile indicates an expected call of UploadChatFile.

func (*MockAgentConnMockRecorder) WatchContainers

func (mr *MockAgentConnMockRecorder) WatchContainers(ctx, logger any) *gomock.Call

WatchContainers indicates an expected call of WatchContainers.

func (*MockAgentConnMockRecorder) WatchGit added in v2.32.0

func (mr *MockAgentConnMockRecorder) WatchGit(ctx, logger, chatID any) *gomock.Call

WatchGit indicates an expected call of WatchGit.

func (*MockAgentConnMockRecorder) WriteFile added in v2.27.0

func (mr *MockAgentConnMockRecorder) WriteFile(ctx, path, reader any) *gomock.Call

WriteFile indicates an expected call of WriteFile.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL