execs

package
v0.0.0-...-e560ebb Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package execs provides collection of execution functions for actions and ability to execute them.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, name string, args *RunArgs) error

Run runs exec function provided by this package by name.

func ServodCallGet

func ServodCallGet(ctx context.Context, in *RunArgs, command string) (*tlw.CallServodResponse, error)

ServodCallGet calls servod with get method. Get method used to read values.

func ServodCallHas

func ServodCallHas(ctx context.Context, in *RunArgs, command string) (*tlw.CallServodResponse, error)

ServodCallHas calls servod with doc method and verify if command is known by servod.

func ServodCallSet

func ServodCallSet(ctx context.Context, in *RunArgs, command string, value interface{}) (*tlw.CallServodResponse, error)

ServodCallSet calls servod with set method. Set method used to update the values or call functions with arguments.

Types

type RunArgs

type RunArgs struct {
	DUT    *tlw.Dut
	Access tlw.Access
}

RunArgs holds input arguments for an exec function.

Jump to

Keyboard shortcuts

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