worker

package
v0.0.0-...-527d7c5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

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

type Stage

type Stage interface {
	Name() string
	Run(ctx *Context) error
}

type Worker

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

func NewWorker

func NewWorker(payload *payload.PushPayload, runsBaseDir, serverBaseDir, staticBaseDir, username, password string, stages ...Stage) (*Worker, error)

func (*Worker) Run

func (w *Worker) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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