util

package
v1.0.0-rc07 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: Apache-2.0 Imports: 2 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

Overview

Package util provides utility functions for opencenter.

This package contains helper functions that are used by other packages in the application.

When to use

This package is used internally by opencenter and is not intended for direct use by end-users.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindField

func FindField(v reflect.Value, name string) reflect.Value

FindField finds a struct field by its 'yaml' or 'json' tag.

It takes a reflect.Value of a struct and the name of the tag to find. It returns the reflect.Value of the field if found, otherwise it returns an invalid reflect.Value.

Inputs:

  • v: The reflect.Value of the struct to search.
  • name: The name of the yaml or json tag to find.

Outputs:

  • reflect.Value: The value of the found field, or an invalid value if not found.

Types

This section is empty.

Directories

Path Synopsis
Package crypto provides cryptographic utilities for key generation, validation, and management.
Package crypto provides cryptographic utilities for key generation, validation, and management.
Package errors provides structured error handling utilities with actionable suggestions.
Package errors provides structured error handling utilities with actionable suggestions.
Package files contains the legacy atomic write helper still used by key management code.
Package files contains the legacy atomic write helper still used by key management code.
Package fs provides safe file system operations with consistent error handling.
Package fs provides safe file system operations with consistent error handling.
Package metrics provides performance tracking and metrics collection for opencenter operations.
Package metrics provides performance tracking and metrics collection for opencenter operations.
Package security provides security utilities for handling sensitive data, credential masking, secure temporary file operations, and audit logging.
Package security provides security utilities for handling sensitive data, credential masking, secure temporary file operations, and audit logging.

Jump to

Keyboard shortcuts

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