utils

package
v0.0.1-dev.12 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandFilePaths

func ExpandFilePaths(paths []string, recursive bool) ([]string, error)

ExpandFilePaths expands file paths to include files in directories and glob patterns.

func FileExists

func FileExists(path string) bool

FileExists checks if a file exists.

func GetYAMLFilesInDirectory

func GetYAMLFilesInDirectory(dirPath string, recursive bool) ([]string, error)

GetYAMLFilesInDirectory returns all YAML files (.yaml or .yml) in a directory.

func IsDirectory

func IsDirectory(path string) bool

IsDirectory checks if a path is a directory.

func ParseSelector

func ParseSelector(selector string) (map[string]string, error)

ParseSelector parses a selector string into a map of key-value pairs Example: "app=frontend,env=prod" -> {"app": "frontend", "env": "prod"}

Types

This section is empty.

Jump to

Keyboard shortcuts

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