v0.0.26 Latest Latest

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

Go to latest
Published: Jun 18, 2021 License: MIT Imports: 12 Imported by: 0




This section is empty.


View Source
var HourlyExpiringSecurityFindingTypes = []string{
	"CIS AWS Benchmark/Console Signin",
	"CIS AWS Benchmark/Console Signin No MFA",
	"CIS AWS Benchmark/Unauthorized API Calls",


func FormatFloatPointer

func FormatFloatPointer(value *float64) string

func FormatInterface

func FormatInterface(value interface{}) string

func FormatStringPointer

func FormatStringPointer(value *string) string

func GetConfig

func GetConfig(key string, defaultValue string) string

func GetFloat64WithJsonPointer added in v0.0.15

func GetFloat64WithJsonPointer(configuration map[string]interface{}, jsonPointer string) *float64

func GetInt64WithJsonPointer added in v0.0.15

func GetInt64WithJsonPointer(configuration map[string]interface{}, jsonPointer string) *int64

func GetSecret

func GetSecret(key string) (string, error)

func GetStringWithJsonPointer

func GetStringWithJsonPointer(configuration map[string]interface{}, jsonPointer string) *string

func IsFindingExpired

func IsFindingExpired(finding *model2.SecurityFinding) bool

func LoadConfig

func LoadConfig()

func Reverse

func Reverse(s interface{})

func StringSliceContains

func StringSliceContains(strings []string, str string) bool

func StringSliceIndexOf

func StringSliceIndexOf(strings []string, str string) int

func ToJson added in v0.0.9

func ToJson(value interface{}) (string, error)

func ToPrettyJson

func ToPrettyJson(value interface{}) (string, error)

func ValueToFloat64 added in v0.0.15

func ValueToFloat64(value interface{}) float64

func ValueToFloatPointer

func ValueToFloatPointer(value interface{}) *float64

func ValueToInt64 added in v0.0.15

func ValueToInt64(value interface{}) int64

func ValueToString

func ValueToString(value interface{}) string

func ValueToStringPointer

func ValueToStringPointer(value interface{}) *string


type FlagArray

type FlagArray []string

func (*FlagArray) Set

func (a *FlagArray) Set(value string) error

func (*FlagArray) String

func (a *FlagArray) String() string

Jump to

Keyboard shortcuts

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