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 ¶
LoadAppConf loads an application package from the filesystem based on the instance specification. It performs the following steps:
- Validates package directory exists
- Loads package definition (package.yaml)
- Loads values (static values.yaml and OpenAPI schemas)
- Discovers and loads hooks
- 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:
- Validates package directory exists
- Loads package definition (module.yaml)
- Loads values (static values.yaml and OpenAPI schemas)
- Discovers and loads hooks
- Creates and returns a Module config
Returns ErrPackageNotFound if package directory doesn't exist.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.