agent

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentController

type AgentController struct {
	Client               *network.ZadigClient
	JobChan              chan *types.ZadigJobTask
	StopPollingJobChan   chan struct{}
	StopRunJobChan       chan struct{}
	Concurrency          int
	ConcurrencyBlockTime int
	CurrentJobNum        int
	WorkingDirectory     string
}

func NewAgentController

func NewAgentController() *AgentController

func (*AgentController) PollingJob

func (c *AgentController) PollingJob(ctx context.Context)

func (*AgentController) RunJob

func (c *AgentController) RunJob(ctx context.Context)

func (*AgentController) RunSingleJob

func (c *AgentController) RunSingleJob(ctx context.Context, job *types.ZadigJobTask) error

func (*AgentController) Start

func (c *AgentController) Start(ctx context.Context)

func (*AgentController) StopPollingJob

func (c *AgentController) StopPollingJob()

func (*AgentController) StopRunJob

func (c *AgentController) StopRunJob()

Directories

Path Synopsis
git

Jump to

Keyboard shortcuts

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