common

package module
v0.0.0-...-7154deb Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: MIT Imports: 3 Imported by: 5

Documentation

Index

Constants

View Source
const (
	// TagGoogle tag
	TagGoogle = "google"
	// TagGCP tag
	TagGCP = "gcp"
	// TagAssetInventory tag
	TagAssetInventory = "asset"
	// TagServiceAccount tag
	TagServiceAccount = "serviceAccount"
	// TagCloudSploit tag
	TagCloudSploit = "cloudsploit"
	// TagSCC tag
	TagSCC = "scc"
	// TagPortscan tag
	TagPortscan = "portscan"
)
View Source
const UnknownService string = "unknown"

UnknownService unknown service name label

Variables

This section is empty.

Functions

func CutString

func CutString(input string, cut int) string

CutString returns cutting specific `cut` characters with ` ...` suffix from `input` string.

func GetServiceName

func GetServiceName(fullResourceName string) string

GetServiceName return service name from `fullResourceName`. (Resource name format: https://cloud.google.com/asset-inventory/docs/resource-name-format)

func GetShortResourceName

func GetShortResourceName(gcpProjectID, fullResourceName string) string

GetShortResourceName return short resoruce name from `fullResourceName`. (Resource name format: https://cloud.google.com/asset-inventory/docs/resource-name-format)

func InitScanStatus

InitScanStatus return init AttachGCPDataSourceRequest data

Types

This section is empty.

Jump to

Keyboard shortcuts

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