loader

package
v0.20.2 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadIntent

func LoadIntent(path string) (*model.Intent, error)

LoadIntent loads and parses an intent YAML file

func LoadJSONSchema

func LoadJSONSchema(path string) (interface{}, error)

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

func LoadResolvedIntent(path string) (*model.Intent, *model.ComponentTree, error)

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.

Jump to

Keyboard shortcuts

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