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