graph

package
v0.0.0-...-6c3dbee Latest Latest
Warning

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

Go to latest
Published: May 25, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JobGraph

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

func (*JobGraph) AddEdge

func (g *JobGraph) AddEdge(start string, end string)

Add a dependency for the end job with the start job

func (*JobGraph) AddJob

func (g *JobGraph) AddJob(pipeline gitlab.Pipeline, job gitlab.Job)

func (*JobGraph) GetDependencies

func (g *JobGraph) GetDependencies(job string) []string

Get all direct and indirect dependencies for a given job

func (*JobGraph) GetJob

func (g *JobGraph) GetJob(job string) (gitlab.Job, error)

func (*JobGraph) HasDependency

func (g *JobGraph) HasDependency(dependency string, job string) bool

Checks if a job has a (indirect) dependency on the given dependency

func (*JobGraph) HasJob

func (g *JobGraph) HasJob(job string) bool

func (*JobGraph) New

func (g *JobGraph) New(pipeline gitlab.Pipeline, variables map[string]string) error

func (JobGraph) Validate

func (g JobGraph) Validate() error

Jump to

Keyboard shortcuts

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