discovery

package
v1.36.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindComponentFile

func FindComponentFile(startDir string) (componentName string, componentFilePath string, err error)

FindComponentFile walks from startDir upward looking for component.yaml (or component.yml). It stops at the git repository root or filesystem root. Returns the component name (from metadata.name) and absolute path to the component file. Returns empty strings with nil error when no component.yaml is found (not an error condition).

func FindIntentFile

func FindIntentFile(startDir string) (intentPath string, intentDir string, err error)

FindIntentFile walks from startDir upward looking for intent.yaml (or intent.yml). It stops at the git repository root or filesystem root. Returns the absolute path to the intent file and its containing directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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