routines

package
v0.0.0-...-683b059 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallGetRoutineUpdate

func CallGetRoutineUpdate(ctx context.Context,
	request *dtcpb.GetRoutineUpdateRequest, response *dtcpb.GetRoutineUpdateResponse) error

CallGetRoutineUpdate executes a GetRoutineUpdate call.

func CallRunRoutine

func CallRunRoutine(ctx context.Context, request *dtcpb.RunRoutineRequest, response *dtcpb.RunRoutineResponse) error

CallRunRoutine executes a RunRoutine call and does validity checks on the result.

func CancelRoutine

func CancelRoutine(ctx context.Context, uuid int32) error

CancelRoutine cancels a routine by calling CANCEL.

func GetRoutineStatus

func GetRoutineStatus(ctx context.Context, uuid int32, includeOutput bool,
	response *dtcpb.GetRoutineUpdateResponse) error

GetRoutineStatus gets the status of a routine by calling GET_STATUS.

func RemoveRoutine

func RemoveRoutine(ctx context.Context, uuid int32) error

RemoveRoutine removes a routine by calling REMOVE.

func ResumeRoutine

func ResumeRoutine(ctx context.Context, uuid int32) error

ResumeRoutine resumes a routine by calling RESUME.

func WaitUntilRoutineChangesState

func WaitUntilRoutineChangesState(ctx context.Context, uuid int32,
	state dtcpb.DiagnosticRoutineStatus, timeout time.Duration) error

WaitUntilRoutineChangesState polls until the status of a routine changes from the state parameter or times out.

Types

This section is empty.

Jump to

Keyboard shortcuts

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