utils

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Provider      = "provider"
	Payload       = "payload"
	AccessKey     = "accesskey"
	SecretKey     = "secretkey"
	SecurityToken = "token"
	Region        = "region"
	Version       = "version"
)
View Source
const (
	AzureClientId       = "clientId"
	AzureClientSecret   = "clientSecret"
	AzureTenantId       = "tenantId"
	AzureSubscriptionId = "subscriptionId"
)
View Source
const (
	Metadata    = "metadata"
	BucketCheck = "list all"
	EventCheck  = "dump all"
)
View Source
const (
	GCPserviceAccountJSON = "base64Json"
)

Variables

View Source
var (
	DoSave       bool
	ListPolicies bool
	LogDir       string
	Cloudlist    []string
	IAMUserCheck string
	RDSAccount   string
	RunTimeout   time.Duration
)

Functions

func CheckLogDir added in v0.0.9

func CheckLogDir()

func Md5Encode added in v0.0.3

func Md5Encode(s string) string

func ParseBytes added in v0.1.0

func ParseBytes(size int64) string

func ParseCmd

func ParseCmd(s string) (cmd string, args []string)

func WriteLog added in v0.1.0

func WriteLog(filename string, msg string)

Types

This section is empty.

Directories

Path Synopsis
Package argparse splits payload metadata strings into tokens with shell-style quoting so values containing spaces (passwords, etc.) survive intact.
Package argparse splits payload metadata strings into tokens with shell-style quoting so values containing spaces (passwords, etc.) survive intact.

Jump to

Keyboard shortcuts

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