trigger

package
v1.9.3 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plan added in v1.6.1

type Plan struct {
	// Roots is a 0-indexed list of root actions.
	Roots []int `json:"roots,omitempty"`
	// Exchanges is a 0-indexed list of exchange actions.
	Exchanges []int `json:"exchanges,omitempty"`
	// Types specifies the type number of each exchange Point.
	// The client may use this to further optimize the plan
	// or raise exceptions.
	Types []int `json:"types,omitempty"`
	// Steps contains the optimal sequence of actions needed to execute the given pipelines.
	Steps []PlanStep `json:"steps,omitempty"`
}

func (*Plan) GetExchanges added in v1.6.1

func (p *Plan) GetExchanges() []int

func (*Plan) GetRoots added in v1.6.1

func (p *Plan) GetRoots() []int

func (*Plan) GetSteps added in v1.6.1

func (p *Plan) GetSteps() []PlanStep

type PlanStep added in v1.6.1

type PlanStep struct {
	// Input is the node number representing the input to this step.
	//
	// The node number is 1-indexed, therefore equal to one greater
	// than the slice index. A value of 0 indicates the step has no
	// inputs, and that it is a root.
	Input         int `json:"input,omitempty"`
	nuggit.Action `json:"action,omitempty"`
}

type Planner

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

func (*Planner) AddPipe added in v1.6.0

func (p *Planner) AddPipe(name, digest string, pipe nuggit.Pipe) error

func (*Planner) AddReferencedPipe added in v1.6.0

func (p *Planner) AddReferencedPipe(name, digest string, pipe nuggit.Pipe)

func (*Planner) Build

func (p *Planner) Build() *Plan

Jump to

Keyboard shortcuts

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