util

package
v0.1.29 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

internal/util/env.go

internal/util/logger.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigValue added in v0.1.23

func GetConfigValue(key string) string

GetConfigValue returns key from the environment, else from the file the chart mounts at /etc/zxporter/config/<key>.

func LoadCollectionPolicySpecFromEnv

func LoadCollectionPolicySpecFromEnv() (v1.CollectionPolicySpec, error)

LoadCollectionPolicySpecFromEnv reads environment variables, applies them over the provided oldSpec, and returns the new spec along with a boolean indicating whether any field changed, or an error if parsing fails.

func NewLogger

func NewLogger(name string) logr.Logger

NewLogger creates a new logger with the given name

Types

This section is empty.

Jump to

Keyboard shortcuts

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