common

package
v0.0.0-...-0342304 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFile

func GetFile(ctx context.Context, file string, dut api.DutServiceClient) (string, error)

GetFile gets a file from a remote DUT via DutServiceClient.

func RunCmd

func RunCmd(ctx context.Context, cmd string, args []string, dut api.DutServiceClient) (string, error)

RunCmd runs a command in a remote DUT via DutServiceClient.

Types

type FetchFile

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

FetchFile is a helper struct for GetFile.

type Publisher

type Publisher struct {
	Topic *pubsub.Topic
}

func (*Publisher) Publish

func (p *Publisher) Publish(ctx context.Context, data []byte) error

Publish publishes a message.

type Zip

type Zip struct{}

func (Zip) Tar

func (Zip) Tar(ctx context.Context, srcFile, destTarFile string) error

func (Zip) Untar

func (Zip) Untar(ctx context.Context, tarFileName, destDir, destFileName string) (string, error)

Jump to

Keyboard shortcuts

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