utils

package
v0.0.0-...-4f2a983 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const ERROR_FILEPATH string = "./enum-results/errors/"
View Source
const FILEPATH string = "./enum-results/"

Variables

View Source
var Cyan = color.New(color.FgCyan).SprintFunc()
View Source
var Green = color.New(color.FgGreen).SprintFunc()
View Source
var Magenta = color.New(color.FgMagenta).SprintFunc()
View Source
var Red = color.New(color.FgRed).SprintFunc()
View Source
var White = color.New(color.FgWhite).SprintFunc()
View Source
var Yellow = color.New(color.FgYellow).SprintFunc()

Colors

Functions

func AnalyseService

func AnalyseService(service string, print bool, filter string, errors_dump bool)

func CheckEnvFileExistance

func CheckEnvFileExistance() bool

func CheckFileExistance

func CheckFileExistance(path string) bool

func CreateAWScredentialsFile

func CreateAWScredentialsFile(aws_region, aws_access_key_id, aws_secret_access_key, aws_session_token *string)

func Find

func Find(a []string, x string) bool

func GetJsonFromFile

func GetJsonFromFile(filepath string) (result map[string]interface{})

func GetJsonKey

func GetJsonKey(m string) (key interface{})

func LoadEnv

func LoadEnv()

func PackResponse

func PackResponse(response interface{}) string

func PrintDividedLine

func PrintDividedLine(service string)

func PrintPrettifiedJson

func PrintPrettifiedJson(to_prettify string) (string, error)

func ProcessServiceArgument

func ProcessServiceArgument(str string) []string

func RemoveDuplicateValues

func RemoveDuplicateValues(intSlice []string) []string

func ServiceNames

func ServiceNames() []string

func ToLowerServices

func ToLowerServices(a []string) (services_lowercase []string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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