bundleclient

package
v0.0.0-...-b5d9cbe Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package bundleclient provides bundle services client implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is a bundle client.

func New

func New(ctx context.Context, target *protocol.TargetDevice, name string, hr *protocol.HandshakeRequest) (_ *Client, retErr error)

New creates a client connecting to a bundle in a different machine. Returned client is suitable for framework to use. target specifies the target bundle. name represents the bundle basename, like "cros".

func (*Client) Close

func (c *Client) Close(ctx context.Context) error

Close closes the underlying connections.

func (*Client) SSHConn

func (c *Client) SSHConn() *ssh.Conn

SSHConn returns the underlying SSH connection.

func (*Client) TestService

func (c *Client) TestService() protocol.TestServiceClient

TestService returns test service client.

Jump to

Keyboard shortcuts

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