utils

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 5 Imported by: 29

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPEM

func GetPEM(val string) ([]byte, error)

GetPEM loads a PEM-encoded file (certificate or key).

func IsTruthy

func IsTruthy(val string) bool

IsTruthy returns true if a string is a truthy value. Truthy values are "y", "yes", "true", "t", "on", "1" (case-insensitive); everything else is false.

func IsValidPEM

func IsValidPEM(val string) bool

IsValidPEM validates the provided input has PEM formatted block.

func IsYaml

func IsYaml(fileName string) bool

IsYaml checks whether the file is yaml or not.

Types

This section is empty.

Jump to

Keyboard shortcuts

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