Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Logger *log.Logger
Functions ¶
func BuildVersion ¶
BuildVersion constructs a formatted version string using build information. It combines the application version with details about the build environment and compilation settings for diagnostic and informational purposes.
-Version: The semantic version of the application (e.g., "v1.0.0"). -Commit: The Git commit hash of the source code used for the build. -Date: The timestamp when the build was created. -BuiltBy: The entity (person, CI system) that created the build. Returns: A multi-line string containing formatted version and build information.
func CreateLogger ¶ added in v0.9.0
func CreateLogger(verbose bool)
CreateLogger creates and configures the package-level Logger instance based on the desired verbosity. This function can create a new logger or reconfigure an existing one.
-verbose: Boolean indicating if debug-level logging should be enabled.
func LogRateLimitStatus ¶ added in v0.5.0
func LogRateLimitStatus(limitType string)
func ValidateFilePath ¶
ValidateFilePath validates a file path to ensure it's safe for filesystem operations. It performs multiple security checks including path traversal prevention, character validation, and ensuring the path contains only a filename without directory components.
-path: The file path string to validate. Returns: The cleaned and validated file path, and an error if validation fails.
func ValidateWorkflowFilePath ¶
ValidateWorkflowFilePath validates a workflow file path to ensure it is accessible within the project root and doesn't contain potentially unsafe path components.
-filePath: The path to the workflow file to validate. Returns: An error if the path is invalid, traverses outside project root, or cannot be resolved.
Types ¶
This section is empty.