loader

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstallFunctionPackageFromRepo

func InstallFunctionPackageFromRepo(
	dataDir, repoURL string,
	forceClone bool,
	logger logger.LoggerInterface,
) error

InstallFunctionPackageFromRepo fetches and installs an external function package from a repository.

func RegisterFunctionsFromPath

func RegisterFunctionsFromPath(packagePath string, logger logger.LoggerInterface) error

RegisterFunctionsFromPath registers functions from a local Go package.

Types

type DynamicTemplateFuncProvider

type DynamicTemplateFuncProvider struct {
	// contains filtered or unexported fields
}

DynamicTemplateFuncProvider implements tempo_api.TemplateFuncProvider

func (*DynamicTemplateFuncProvider) GetFunctions

func (p *DynamicTemplateFuncProvider) GetFunctions() template.FuncMap

GetFunctions returns registered function names

type ProviderMetadata

type ProviderMetadata struct {
	FilePath  string // Path to provider.go
	ModuleDir string // Root path of the provider module
	Package   string // The package name containing the Provider variable
}

ProviderMetadata holds information about a provider file.

Jump to

Keyboard shortcuts

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