security

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EscapeBashStr added in v0.9.3

func EscapeBashStr(s string) string

According to https://www.gnu.org/software/bash/manual/html_node/ANSI_002dC-Quoting.html#ANSI_002dC-Quoting a -> a a b -> a b $a -> $'$a' $'a' -> $'$\'$a'\'

func FilterCommand

func FilterCommand(command []string) (filteredCommand []string)

func FilterString

func FilterString(line string) string

func UpdateSensitiveKey

func UpdateSensitiveKey(key string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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