Documentation
¶
Index ¶
- func LoadIntent(path string) (*model.Intent, error)
- func LoadJSONSchema(path string) (interface{}, error)
- func LoadJobRegistry(path string) (*model.JobRegistry, error)
- func LoadResolvedIntent(path string) (*model.Intent, *model.ComponentTree, error)
- func WriteComponentTreeCache(intentPath string, tree *model.ComponentTree) error
- func WriteCompositionLockFile(intentPath string, sources []model.ResolvedCompositionSource) error
- type Composition
- type CompositionRegistry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadIntent ¶
LoadIntent loads and parses an intent YAML file
func LoadJSONSchema ¶
LoadJSONSchema loads a JSON schema file
func LoadJobRegistry ¶
func LoadJobRegistry(path string) (*model.JobRegistry, error)
LoadJobRegistry loads and parses a job registry YAML file
func LoadResolvedIntent ¶
LoadResolvedIntent loads an intent file, discovers external component manifests, and returns a merged intent plus the component discovery tree used to build it.
func WriteComponentTreeCache ¶
func WriteComponentTreeCache(intentPath string, tree *model.ComponentTree) error
WriteComponentTreeCache persists the resolved component tree next to the intent.
func WriteCompositionLockFile ¶
func WriteCompositionLockFile(intentPath string, sources []model.ResolvedCompositionSource) error
WriteCompositionLockFile writes .orun/compositions.lock.yaml for the resolved sources.
Types ¶
type Composition ¶
type Composition = compositionpkg.Composition
Composition holds a composition's job definitions and schema.
type CompositionRegistry ¶
type CompositionRegistry = compositionpkg.Registry
CompositionRegistry holds resolved compositions.
func LoadCompositionsForIntent ¶
func LoadCompositionsForIntent(intent *model.Intent, intentPath, configDir string) (*CompositionRegistry, error)
LoadCompositionsForIntent resolves declared composition sources from intent and falls back to legacy --config-dir when needed.
func LoadCompositionsFromDir ¶
func LoadCompositionsFromDir(configDir string) (*CompositionRegistry, error)
LoadCompositionsFromDir loads legacy folder-shaped compositions from --config-dir.