tasks

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	STATUS_OK = iota
	STATUS_SKIP
	STATUS_ERROR
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecOptions

type ExecOptions struct {
	Concurrency   uint
	SilentMainBar bool
	SilentSubBar  bool
	SkipError     bool
}

type Tasks

type Tasks struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewTasks

func NewTasks() *Tasks

func (*Tasks) AddTask

func (ts *Tasks) AddTask(t ...*task.Task)

func (*Tasks) CountPtid

func (ts *Tasks) CountPtid(ptid string) int64

func (*Tasks) Execute

func (ts *Tasks) Execute(option ExecOptions) error

* Pull Image: [ERROR] * + host=10.0.0.1 image=opencurvedocker/curvefs 1/1 [OK] * + host=10.0.0.2 image=opencurvedocker/curvefs 1/2 [OK] * + host=10.0.0.3 image=opencurvedocker/curvefs 1/10 [ERROR] * + host=10.0.0.1 image=opencurvedocker/curvefs 10/10 [OK] * + host=10.0.0.2 image=opencurvedocker/curvefs 10/10 [OK] * + host=10.0.0.3 image=opencurvedocker/curvefs 1/10 [OK]

Jump to

Keyboard shortcuts

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