Movatterモバイル変換


[0]ホーム

URL:


agentconnmock

package
v2.28.4Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2025 License:AGPL-3.0Imports:16Imported by:0

Details

Repository

github.com/coder/coder

Links

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

typeMockAgentConn

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

MockAgentConn is a mock of AgentConn interface.

funcNewMockAgentConn

func NewMockAgentConn(ctrl *gomock.Controller) *MockAgentConn

NewMockAgentConn creates a new mock instance.

func (*MockAgentConn)AwaitReachable

func (m *MockAgentConn) AwaitReachable(ctxcontext.Context)bool

AwaitReachable mocks base method.

func (*MockAgentConn)Close

func (m *MockAgentConn) Close()error

Close mocks base method.

func (*MockAgentConn)DebugLogs

func (m *MockAgentConn) DebugLogs(ctxcontext.Context) ([]byte,error)

DebugLogs mocks base method.

func (*MockAgentConn)DebugMagicsock

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

DebugMagicsock mocks base method.

func (*MockAgentConn)DebugManifest

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

DebugManifest mocks base method.

func (*MockAgentConn)DialContext

func (m *MockAgentConn) DialContext(ctxcontext.Context, network, addrstring) (net.Conn,error)

DialContext mocks base method.

func (*MockAgentConn)EXPECT

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

func (*MockAgentConn)EditFilesadded inv2.27.0

EditFiles mocks base method.

func (*MockAgentConn)GetPeerDiagnostics

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

GetPeerDiagnostics mocks base method.

func (*MockAgentConn)LSadded inv2.27.0

LS mocks base method.

func (*MockAgentConn)ListContainers

ListContainers 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)PrometheusMetrics

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

PrometheusMetrics mocks base method.

func (*MockAgentConn)ReadFileadded inv2.27.0

func (m *MockAgentConn) ReadFile(ctxcontext.Context, pathstring, offset, limitint64) (io.ReadCloser,string,error)

ReadFile mocks base method.

func (*MockAgentConn)ReconnectingPTY

func (m *MockAgentConn) ReconnectingPTY(ctxcontext.Context, iduuid.UUID, height, widthuint16, commandstring, initOpts ...workspacesdk.AgentReconnectingPTYInitOption) (net.Conn,error)

ReconnectingPTY mocks base method.

func (*MockAgentConn)RecreateDevcontainer

func (m *MockAgentConn) RecreateDevcontainer(ctxcontext.Context, devcontainerIDstring) (codersdk.Response,error)

RecreateDevcontainer mocks base method.

func (*MockAgentConn)SSH

SSH mocks base method.

func (*MockAgentConn)SSHClient

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

SSHClient mocks base method.

func (*MockAgentConn)SSHClientOnPort

func (m *MockAgentConn) SSHClientOnPort(ctxcontext.Context, portuint16) (*ssh.Client,error)

SSHClientOnPort mocks base method.

func (*MockAgentConn)SSHOnPort

func (m *MockAgentConn) SSHOnPort(ctxcontext.Context, portuint16) (*gonet.TCPConn,error)

SSHOnPort mocks base method.

func (*MockAgentConn)Speedtest

func (m *MockAgentConn) Speedtest(ctxcontext.Context, directionspeedtest.Direction, durationtime.Duration) ([]speedtest.Result,error)

Speedtest mocks base method.

func (*MockAgentConn)TailnetConn

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

TailnetConn mocks base method.

func (*MockAgentConn)WatchContainers

WatchContainers mocks base method.

func (*MockAgentConn)WriteFileadded inv2.27.0

func (m *MockAgentConn) WriteFile(ctxcontext.Context, pathstring, readerio.Reader)error

WriteFile mocks base method.

typeMockAgentConnMockRecorder

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

MockAgentConnMockRecorder is the mock recorder for MockAgentConn.

func (*MockAgentConnMockRecorder)AwaitReachable

func (mr *MockAgentConnMockRecorder) AwaitReachable(ctxany) *gomock.Call

AwaitReachable indicates an expected call of AwaitReachable.

func (*MockAgentConnMockRecorder)Close

Close indicates an expected call of Close.

func (*MockAgentConnMockRecorder)DebugLogs

func (mr *MockAgentConnMockRecorder) DebugLogs(ctxany) *gomock.Call

DebugLogs indicates an expected call of DebugLogs.

func (*MockAgentConnMockRecorder)DebugMagicsock

func (mr *MockAgentConnMockRecorder) DebugMagicsock(ctxany) *gomock.Call

DebugMagicsock indicates an expected call of DebugMagicsock.

func (*MockAgentConnMockRecorder)DebugManifest

func (mr *MockAgentConnMockRecorder) DebugManifest(ctxany) *gomock.Call

DebugManifest indicates an expected call of DebugManifest.

func (*MockAgentConnMockRecorder)DialContext

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

DialContext indicates an expected call of DialContext.

func (*MockAgentConnMockRecorder)EditFilesadded inv2.27.0

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

EditFiles indicates an expected call of EditFiles.

func (*MockAgentConnMockRecorder)GetPeerDiagnostics

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

GetPeerDiagnostics indicates an expected call of GetPeerDiagnostics.

func (*MockAgentConnMockRecorder)LSadded inv2.27.0

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

LS indicates an expected call of LS.

func (*MockAgentConnMockRecorder)ListContainers

func (mr *MockAgentConnMockRecorder) ListContainers(ctxany) *gomock.Call

ListContainers indicates an expected call of ListContainers.

func (*MockAgentConnMockRecorder)ListeningPorts

func (mr *MockAgentConnMockRecorder) ListeningPorts(ctxany) *gomock.Call

ListeningPorts indicates an expected call of ListeningPorts.

func (*MockAgentConnMockRecorder)Netcheck

func (mr *MockAgentConnMockRecorder) Netcheck(ctxany) *gomock.Call

Netcheck indicates an expected call of Netcheck.

func (*MockAgentConnMockRecorder)Ping

Ping indicates an expected call of Ping.

func (*MockAgentConnMockRecorder)PrometheusMetrics

func (mr *MockAgentConnMockRecorder) PrometheusMetrics(ctxany) *gomock.Call

PrometheusMetrics indicates an expected call of PrometheusMetrics.

func (*MockAgentConnMockRecorder)ReadFileadded inv2.27.0

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

ReadFile indicates an expected call of ReadFile.

func (*MockAgentConnMockRecorder)ReconnectingPTY

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

ReconnectingPTY indicates an expected call of ReconnectingPTY.

func (*MockAgentConnMockRecorder)RecreateDevcontainer

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

RecreateDevcontainer indicates an expected call of RecreateDevcontainer.

func (*MockAgentConnMockRecorder)SSH

SSH indicates an expected call of SSH.

func (*MockAgentConnMockRecorder)SSHClient

func (mr *MockAgentConnMockRecorder) SSHClient(ctxany) *gomock.Call

SSHClient indicates an expected call of SSHClient.

func (*MockAgentConnMockRecorder)SSHClientOnPort

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

SSHClientOnPort indicates an expected call of SSHClientOnPort.

func (*MockAgentConnMockRecorder)SSHOnPort

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

SSHOnPort indicates an expected call of SSHOnPort.

func (*MockAgentConnMockRecorder)Speedtest

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

Speedtest indicates an expected call of Speedtest.

func (*MockAgentConnMockRecorder)TailnetConn

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

TailnetConn indicates an expected call of TailnetConn.

func (*MockAgentConnMockRecorder)WatchContainers

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

WatchContainers indicates an expected call of WatchContainers.

func (*MockAgentConnMockRecorder)WriteFileadded inv2.27.0

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

WriteFile indicates an expected call of WriteFile.

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