values

package
v1.74.5 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

Storage manages package values with layering, patching, and schema validation. It maintains both the user config (before merging) and the final result after all layers.

Thread Safety: Protected by mutex for concurrent access.

func NewStorage

func NewStorage(name string, staticValues addonutils.Values, configBytes, valuesBytes []byte) (*Storage, error)

NewStorage creates a new values storage with the specified schemas and static values. It initializes the schema storage for validation and calculates initial result values.

Parameters:

  • name: Package name (will be converted to values key format)
  • staticValues: Pre-loaded static values from values.yaml
  • configBytes: OpenAPI config schema (YAML bytes)
  • valuesBytes: OpenAPI values schema (YAML bytes)

Returns error if schema initialization or initial value calculation fails.

func (*Storage) ApplyConfigValues

func (s *Storage) ApplyConfigValues(settings addonutils.Values) error

ApplyConfigValues validates and saves config values

func (*Storage) ApplyPatch

func (s *Storage) ApplyPatch(patch addonutils.ValuesPatch) error

func (*Storage) GetConfigChecksum

func (s *Storage) GetConfigChecksum() string

func (*Storage) GetConfigValues

func (s *Storage) GetConfigValues() addonutils.Values

GetConfigValues returns only user defined values

func (*Storage) GetValues

func (s *Storage) GetValues() addonutils.Values

func (*Storage) GetValuesChecksum

func (s *Storage) GetValuesChecksum() string

Jump to

Keyboard shortcuts

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