ActionRunner

package
v0.0.0-...-f3ec421 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionArgs

type ActionArgs struct {
	Logger *slog.Logger
	Action ActionDescriptor
}

type ActionDescriptor

type ActionDescriptor struct {
	ActionIdentifier
	Action config.Action `json:"-"`
}

type ActionIdentifier

type ActionIdentifier struct {
	Index      int    `json:"actionIdx"`
	Project    string `json:"project"`
	PipeId     string `json:"pipeId"`
	DeliveryId string `json:"-"`
}

func GetActionIds

func GetActionIds(descs []ActionDescriptor) []ActionIdentifier

type ActionRunner

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

func New

func New(ctx context.Context, actionsDb *actiondb.ActionDb) (runner ActionRunner)

func (ActionRunner) Cancel

func (runner ActionRunner) Cancel()

func (ActionRunner) Chan

func (runner ActionRunner) Chan() chan ActionArgs

func (ActionRunner) Done

func (runner ActionRunner) Done() <-chan struct{}

func (ActionRunner) Wait

func (runner ActionRunner) Wait()

type UnixUserInfo

type UnixUserInfo struct {
	Uid uint32
	Gid uint32
}

Jump to

Keyboard shortcuts

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