packages

package
v0.32.5 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefinitionFile is the filename for package metadata
	DefinitionFile = "package.yaml"

	TypeModule      = "Module"
	TypeApplication = "Application"
)

Variables

This section is empty.

Functions

func Render

func Render(ctx context.Context, def Definition, path string) ([]render.Object, error)

Render loads the package at path and renders it to a slice of resource objects: it reads the values schemas, scans images/ for per-image digests, builds the runtime context, and invokes the Helm renderer.

Types

type Definition

type Definition struct {
	APIVersion string `yaml:"apiVersion" json:"apiVersion"`
	Type       string `yaml:"type" json:"type"`
	Name       string `yaml:"name" json:"name"`

	Descriptions Descriptions `yaml:"descriptions,omitempty" json:"descriptions,omitempty"`
}

Definition represents common package metadata loaded from package.yaml.

func LoadDefinitionByDir

func LoadDefinitionByDir(dir string) (Definition, error)

LoadDefinitionByDir reads and parses the package definition file from the given directory.

type Descriptions

type Descriptions struct {
	Ru string `json:"ru,omitempty" yaml:"ru,omitempty"`
	En string `json:"en,omitempty" yaml:"en,omitempty"`
}

Descriptions holds localized description text for the package.

type Remote

type Remote struct {
	Repository   string `json:"repository" yaml:"repository"`
	DockerConfig string `json:"dockercfg" yaml:"dockercfg"`
}

Remote describes the OCI registry a package is published to. It is embedded into the runtime context surfaced to templates so manifests can reference the registry and its credentials.

Directories

Path Synopsis
schema/defaults
Package defaults synthesizes an example value map from an OpenAPI schema.
Package defaults synthesizes an example value map from an OpenAPI schema.
schema/reggen
Package reggen produces example strings that match a Perl-flavored regular expression.
Package reggen produces example strings that match a Perl-flavored regular expression.

Jump to

Keyboard shortcuts

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