worker

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

type Runner interface {
	Run(ctx context.Context, params *runner.RunParams) (*storage.RunResult, error)
}

type ScanContext

type ScanContext struct {
	ProjectName   string
	ProjectURL    string
	StackPath     string
	ScanID        string
	CommitSHA     string
	WorkspacePath string
	TFVersion     string
	TGVersion     string
	Auth          transport.AuthMethod
	Scan          *queue.Scan
}

type Worker

type Worker struct {
	// contains filtered or unexported fields
}

func New

func New(q *queue.Queue, r Runner, concurrency int, cfg *config.Config, provider projects.Provider) *Worker

func (*Worker) Start

func (w *Worker) Start()

func (*Worker) Stop

func (w *Worker) Stop()

Jump to

Keyboard shortcuts

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