werf

package
v0.1.84 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetWerfConfig

func GetWerfConfig(dir string) (string, error)

func NewFiles

func NewFiles(rootDir, moduleDir string) files

Types

type ModuleImageWerfFile added in v0.1.84

type ModuleImageWerfFile struct {
	// RelPath is the module-relative path of the source werf.inc.yaml file.
	RelPath string
	// Content is the rendered werf.inc.yaml content.
	Content string
}

ModuleImageWerfFile holds a rendered werf.inc.yaml file together with its path relative to the module directory (e.g. "images/<name>/werf.inc.yaml").

func GetModuleImagesWerfFiles added in v0.1.84

func GetModuleImagesWerfFiles(moduleDir string) ([]ModuleImageWerfFile, error)

GetModuleImagesWerfFiles renders every "images/*/werf.inc.yaml" file found in the module directory and returns them keyed by their module-relative path.

Unlike GetWerfConfig, it does not walk up to the repository root werf.yaml and does not aggregate stages/base images from outside the module. Only the module's own images are considered. Files that cannot be rendered in isolation (e.g. they rely on build context that is only available to the full werf pipeline) are skipped rather than reported as errors.

Jump to

Keyboard shortcuts

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