common

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateGraphCommand

func CreateGraphCommand(p cli.Params, fetcher GraphFetcher) *cobra.Command

func RunGraphCommand

func RunGraphCommand(p cli.Params, opts *GraphOptions, fetcher GraphFetcher, args []string) error

Types

type GraphFetcher

type GraphFetcher interface {
	GetByName(cs *cli.Clients, name, namespace string) (*Pipeline, error)
	GetAll(cs *cli.Clients, namespace string) ([]Pipeline, error)
}

GraphFetcher is an interface that defines the methods to fetch the Pipeline

type GraphOptions

type GraphOptions struct {
	OutputFormat string
	OutputDir    string
	WithTaskRef  bool
}

GraphOptions holds the options for the graph command OutputFormat: dot, puml, mmd OutputDir: the directory to save the output files. Otherwise, the output is printed to the screen WithTaskRef: Include TaskRefName information in the output

type Pipeline

type Pipeline struct {
	Name           string
	TektonPipeline v1.Pipeline
}

Holds the Pipeline name and the Pipeline itself, in case of PipelineRun it holds the PipelineRun name and the Pipeline

Jump to

Keyboard shortcuts

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