utils

package
v0.0.0-...-07420df Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAuth

func CheckAuth(cfg config.Config) bool

CheckAuth checks if required authentication is configured

func ConfigExists

func ConfigExists(path string)

func DisableAuthCheck

func DisableAuthCheck(cmd *cobra.Command)

DisableAuthCheck disables the auth check for a command

func IsAuthCheckEnabled

func IsAuthCheckEnabled(cmd *cobra.Command) bool

IsAuthCheckEnabled checks if the auth check is enabled for a command

func ReadYAML

func ReadYAML(yamlContent interface{}, fileName string) any

func ValidateRegExp

func ValidateRegExp(regex string, value string) bool

func WriteYAML

func WriteYAML(yamlContent interface{}, fileName string)

WriteYAML writes a YAML file to disk.

Types

This section is empty.

Jump to

Keyboard shortcuts

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