dmutil

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

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 HTTP Client for DM.

func NewDMClient

func NewDMClient(c *http.Client, masterAddr string) *Client

NewDMClient creates a HTTP Client for DM.

func (*Client) CheckTaskStage

func (c *Client) CheckTaskStage(task, stage string, sourceCount int) error

CheckTaskStage checks task's current stage by `query-status`.

func (*Client) CreateSource

func (c *Client) CreateSource(conf string) error

CreateSource does `operate-source create` operation.

func (*Client) StartTask

func (c *Client) StartTask(conf string, sourceCount int) error

StartTask does `start-task` operation.

Jump to

Keyboard shortcuts

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