loader

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package loader provides functions to load providers and module releases from CUE module directories. These are the entry points for embedding the OPM engine in other tools.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadModulePackage

func LoadModulePackage(ctx *cue.Context, dirPath string) (cue.Value, error)

LoadModulePackage loads a module CUE package from a directory and returns the raw cue.Value. Used by opm module vet to load a module for validation.

func LoadProvider

func LoadProvider(providerName string, providers map[string]cue.Value) (*provider.Provider, error)

LoadProvider selects and wraps a provider from the pre-loaded config providers map.

providers is the map of provider CUE values loaded from config (GlobalConfig.Providers). providerName selects which provider to use. If empty, defaults to "kubernetes". If the named provider is not found, an error listing available names is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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