reporter

package
v1.9.9 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JobReporter

type JobReporter struct {
	Seq       int
	Ctx       context.Context
	Client    *network.ZadigClient
	Logger    *log.JobLogger
	Offset    int64
	CurLogNum int64
	Log       string
	JobCancel *bool
	Result    *types.JobExecuteResult
}

func NewJobReporter

func NewJobReporter(result *types.JobExecuteResult, client *network.ZadigClient, cancel *bool) *JobReporter

func (*JobReporter) FinishedJobReport

func (r *JobReporter) FinishedJobReport(status common.Status, err error) error

func (*JobReporter) GetJobLog

func (r *JobReporter) GetJobLog() (string, bool, error)

func (*JobReporter) Report

func (r *JobReporter) Report() error

func (*JobReporter) ReportWithData

func (r *JobReporter) ReportWithData(result *types.JobExecuteResult) (*types.ReportAgentJobResp, error)

func (*JobReporter) SetLog

func (r *JobReporter) SetLog() error

func (*JobReporter) Start

func (r *JobReporter) Start(ctx context.Context)

Jump to

Keyboard shortcuts

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