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 ¶
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. |