utils

package
v0.0.0-...-be15534 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDmCtl

func CreateDmCtl(addr string) (pb.MasterClient, error)

CreateDmCtl creates a gRPC client to DM-master.

func ExitWithError

func ExitWithError(err error)

ExitWithError forces to exist the process, it's often used in integration tests.

func OperateTask

func OperateTask(ctx context.Context, cli pb.MasterClient, op pb.TaskOp, name string, workers []string) error

OperateTask does operations on the task.

func StartTask

func StartTask(ctx context.Context, cli pb.MasterClient, configFile string, workers []string) error

StartTask starts a task with the specified config.

Types

This section is empty.

Jump to

Keyboard shortcuts

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