loader

package
v1.75.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrFileWrongExtension is returned when a file has an unexpected extension for a batch hook
	ErrFileWrongExtension = errors.New("file has wrong extension")
	// ErrFileNotBatchHook is returned when a file doesn't respond correctly to "hook list"
	ErrFileNotBatchHook = errors.New("file is not batch hook")
	// ErrFileNotExecutable is returned when a hook file lacks executable permissions
	ErrFileNotExecutable = errors.New("no executable permissions, chmod +x is required to run this hook")
)
View Source
var (
	// ErrPackageNotFound is returned when the requested package directory doesn't exist
	ErrPackageNotFound = errors.New("package not found")
)

Functions

func LoadAppConf

func LoadAppConf(ctx context.Context, appDir string, logger *log.Logger) (*apps.Config, error)

LoadAppConf loads an application package from the filesystem based on the instance specification. It performs the following steps:

  1. Validates package directory exists
  2. Loads package definition (package.yaml)
  3. Loads values (static values.yaml and OpenAPI schemas)
  4. Discovers and loads hooks
  5. Creates and returns an Application config

Returns ErrPackageNotFound if package directory doesn't exist.

func LoadModuleConf

func LoadModuleConf(ctx context.Context, moduleDir string, logger *log.Logger) (*modules.Config, error)

LoadModuleConf loads a module package from the filesystem based on the instance specification. It performs the following steps:

  1. Validates package directory exists
  2. Loads package definition (module.yaml)
  3. Loads values (static values.yaml and OpenAPI schemas)
  4. Discovers and loads hooks
  5. Creates and returns a Module config

Returns ErrPackageNotFound if package directory doesn't exist.

Types

This section is empty.

Jump to

Keyboard shortcuts

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