githubinfo

package
v0.47.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitHubInfo

type GitHubInfo interface {
	// WriteGitHubInfo writes GitHub info for an manifest.Node in a separate goroutine
	// returns true if the task was added for processing, false if it was skipped
	WriteGitHubInfo(node *manifest.Node) bool
}

GitHubInfo is the functional interface for writing GitHub infos

func New

func New(workerCount int, failFast bool, wg *sync.WaitGroup, registry registry.Interface, writer writers.Writer) (GitHubInfo, taskqueue.QueueController, error)

New creates GitHubInfo object for writing GitHub infos

type Worker

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

Worker github info worker

func NewGithubWorker

func NewGithubWorker(registry registry.Interface, writer writers.Writer) (*Worker, error)

NewGithubWorker creates new Worker object

func (*Worker) WriteGithubInfo

func (w *Worker) WriteGithubInfo(ctx context.Context, node *manifest.Node) error

WriteGithubInfo writes github info to writer for a given node

Jump to

Keyboard shortcuts

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