Documentation ¶
Overview ¶
Package tlsutil provides utility for working with test lab services.
Test lab services provide lab service access for Chrome OS Remote Test Drivers to different test lab environments.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeTestClient ¶
MakeTestClient returns a gRPC client connected to a listener which is implemented using an in-memory buffer. This is to be used for testing.
Types ¶
type Logger ¶
type Logger interface {
Printf(string, ...interface{})
}
Logger is the interface used for a logging sink.
type SSHStub ¶
type SSHStub struct { Output []byte ExitStatus uint32 // Logger is used to print messages for debugging if set. Logger Logger }
SSHStub is a stub implementation of an SSH server for testing. It returns canned stdout output and exit status.
type WiringFake ¶
type WiringFake struct { tls.UnimplementedWiringServer // DUTAddress is a static string to return for OpenDutPort. DUTAddress string // DUTPort is a static int to return for OpenDutPort. DUTPort int32 }
WiringFake is a fake implementation of tls.WiringServer for testing.
func (WiringFake) OpenDutPort ¶
func (s WiringFake) OpenDutPort(ctx context.Context, req *tls.OpenDutPortRequest) (*tls.OpenDutPortResponse, error)
OpenDutPort implements the respective gRPC.
Click to show internal directories.
Click to hide internal directories.