extract

package
v1.201.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// VendorTypeComponent is the type for components with component manifests.
	VendorTypeComponent = "Component Manifest"
	// VendorTypeVendor is the type for vendor manifests.
	VendorTypeVendor = "Vendor Manifest"
)

Variables

This section is empty.

Functions

func Components

func Components(stacksMap map[string]any) ([]map[string]any, error)

Components transforms stacksMap into structured component data. Returns []map[string]any suitable for the renderer pipeline.

func ComponentsForStack

func ComponentsForStack(stackName string, stacksMap map[string]any) ([]map[string]any, error)

ComponentsForStack extracts components for a specific stack only.

func Instances

func Instances(instances []schema.Instance) []map[string]any

ExtractInstances transforms schema.Instance slice into []map[string]any for renderer. Converts structured Instance objects into flat maps accessible by column templates.

func Metadata

func Metadata(instances []schema.Instance) []map[string]any

Metadata transforms a slice of schema.Instance into []map[string]any for the renderer. It extracts metadata fields and makes them accessible to column templates.

func Stacks

func Stacks(stacksMap map[string]any) ([]map[string]any, error)

Stacks transforms stacksMap into structured stack data. It returns []map[string]any suitable for the renderer pipeline.

func StacksForComponent

func StacksForComponent(componentName string, stacksMap map[string]any) ([]map[string]any, error)

StacksForComponent extracts stacks that contain a specific component.

func Vendor

func Vendor(vendorInfos []VendorInfo) ([]map[string]any, error)

Vendor transforms vendorInfos into structured data. Returns []map[string]any suitable for the renderer pipeline.

func Workflows

func Workflows(atmosConfig *schema.AtmosConfiguration, fileFilter string) ([]map[string]any, error)

ExtractWorkflows transforms workflow manifests into structured data. Returns []map[string]any suitable for the renderer pipeline.

Types

type GetVendorInfosFunc

type GetVendorInfosFunc func(*schema.AtmosConfiguration) ([]VendorInfo, error)

GetVendorInfosFunc is a function type for getting vendor information. This allows the extract package to avoid importing the list package.

type VendorInfo

type VendorInfo struct {
	Component string
	Type      string
	Manifest  string
	Folder    string
}

VendorInfo holds information about a vendor component.

Jump to

Keyboard shortcuts

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