list

package
v1.168.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FormatTable = "table"
	FormatJSON  = "json"
	FormatCSV   = "csv"
)

Variables

View Source
var (
	// ErrParseStacks is returned when stack data cannot be parsed.
	ErrParseStacks = errors.New("could not parse stacks")
	// ErrParseComponents is returned when component data cannot be parsed.
	ErrParseComponents = errors.New("could not parse components")
	// ErrParseTerraformComponents is returned when terraform component data cannot be parsed.
	ErrParseTerraformComponents = errors.New("could not parse Terraform components")
	// ErrStackNotFound is returned when a requested stack is not found.
	ErrStackNotFound = errors.New("stack not found")
	// ErrProcessStack is returned when there's an error processing a stack.
	ErrProcessStack = errors.New("error processing stack")
)

Error definitions for component listing.

Functions

func FilterAndListComponents

func FilterAndListComponents(stackFlag string, stacksMap map[string]any) ([]string, error)

FilterAndListComponents filters and lists components based on the given stack.

func FilterAndListStacks

func FilterAndListStacks(stacksMap map[string]any, component string) ([]string, error)

FilterAndListStacks filters stacks by the given component

func FilterAndListWorkflows added in v1.155.0

func FilterAndListWorkflows(fileFlag string, listConfig schema.ListConfig, format string, delimiter string) (string, error)

FilterAndListWorkflows filters and lists workflows based on the given file

func ValidateFormat added in v1.155.0

func ValidateFormat(format string) error

ValidateFormat checks if the given format is supported

Types

This section is empty.

Jump to

Keyboard shortcuts

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