common

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2025 License: MIT Imports: 3 Imported by: 6 modules, 5 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// TagCVE
	TagCVE = "cve"

	// 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 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