utils

package module
v0.86.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: Apache-2.0 Imports: 4 Imported by: 3 modules, 2 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

Overview

Package utils contains a series of helpers function for the secrets Component and its mock. Direct usage of this helpers outside of the secrets Component sphere should be avoided.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEnc

func IsEnc(str string) (bool, string)

IsEnc returns true is the string match the 'ENC[...]' format

Types

type Walker

type Walker struct {
	// Resolver is called for eachs string type found in the data tree
	Resolver func(path []string, value string) (string, error)
}

Walker recursively explores a loaded YAML in search for string values to replace. For each string the 'Resolver' callback will be called allowing it to overwrite the string value.

func (*Walker) Walk

func (w *Walker) Walk(data *interface{}) error

Walk recursively explores a loaded YAML in search for string values to replace. For each string the 'resolver' will be called allowing it to overwrite the string value.

Jump to

Keyboard shortcuts

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