gcp

package
v1.13.4 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: Apache-2.0 Imports: 78 Imported by: 0

Documentation

Overview

Package gcp implements a steampipe plugin for gcp.

This plugin provides data that Steampipe uses to present foreign tables that represent GCP resources.

Index

Constants

View Source
const (
	ColumnDescriptionAkas     = "Array of globally unique identifier strings (also known as) for the resource."
	ColumnDescriptionTags     = "A map of tags for the resource."
	ColumnDescriptionTitle    = "Title of the resource."
	ColumnDescriptionProject  = "The GCP Project in which the resource is located."
	ColumnDescriptionLocation = "The GCP multi-region, region, or zone in which the resource is located."
)

Constants for Standard Column Descriptions

Variables

View Source
var GcpFilterOperatorMap = map[string]string{
	"=":  "=",
	"<>": "!=",
	"!=": "!=",
	">":  ">",
	"<":  "<",
	"<=": "<",
	">=": ">",
}

Steampipe to GCP query filter map

Filter sets the optional parameter "filter": A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.

Functions

func APIKeysService

func APIKeysService(ctx context.Context, d *plugin.QueryData) (*apikeys.Service, error)

func AccessApprovalService

func AccessApprovalService(ctx context.Context, d *plugin.QueryData) (*accessapproval.Service, error)

AccessApprovalService returns the service connection for GCP Project AccessApproval service

func AlloyDBService

func AlloyDBService(ctx context.Context, d *plugin.QueryData) (*alloydb.Service, error)

AlloyDBService returns the service connection for GCP Alloy DB service

func AppEngineService

func AppEngineService(ctx context.Context, d *plugin.QueryData) (*appengine.APIService, error)

AppEngineService returns the service connection for GCP App Engine service

func ArtifactRegistryService

func ArtifactRegistryService(ctx context.Context, d *plugin.QueryData) (*artifactregistry.Service, error)

ArtifactRegistryService returns the service connection for GCP ArtifactRegistry service

func BigQueryService

func BigQueryService(ctx context.Context, d *plugin.QueryData) (*bigquery.Service, error)

BigQueryService returns the service connection for GCP BigQueryService service

func BigtableAdminService

func BigtableAdminService(ctx context.Context, d *plugin.QueryData) (*bigtableadmin.Service, error)

BigtableAdminService returns the service connection for GCP Bigtable Admin service

func BillingBudgetsService

func BillingBudgetsService(ctx context.Context, d *plugin.QueryData) (*billingbudgets.Service, error)

BillingBudgetsService returns the service connection for GCP Billing Budgets service

func BillingService

func BillingService(ctx context.Context, d *plugin.QueryData) (*cloudbilling.APIService, error)

BillingService returns the service connection for GCP Billing service

func BuildAlloyDBLocationList

func BuildAlloyDBLocationList(ctx context.Context, d *plugin.QueryData) []map[string]interface{}

BuildregionList :: return a list of matrix items, one per region specified

func BuildArtifactRegistryLocationList

func BuildArtifactRegistryLocationList(ctx context.Context, d *plugin.QueryData) []map[string]interface{}

BuildregionList :: return a list of matrix items, one per region specified

func BuildCloudRunLocationList

func BuildCloudRunLocationList(ctx context.Context, d *plugin.QueryData) []map[string]interface{}

https://cloud.google.com/run/docs/locations BuildCloudRunLocationList :: return a list of matrix items, one per region specified

func BuildComputeLocationList

func BuildComputeLocationList(ctx context.Context, d *plugin.QueryData) []map[string]interface{}

BuildregionList :: return a list of matrix items, one per region specified https://cloud.google.com/dataproc/docs/concepts/regional-endpoints

func BuildComputeLocationListWithGlobal

func BuildComputeLocationListWithGlobal(ctx context.Context, d *plugin.QueryData) []map[string]interface{}

BuildComputeLocationListWithGlobal :: return a list of matrix items including global and all regions

func BuildDataplexLocationList

func BuildDataplexLocationList(ctx context.Context, d *plugin.QueryData) []map[string]interface{}

BuildDataplexLocationList :: return a list of matrix items, one per region specified

func BuildDataprocMetastoreLocationList

func BuildDataprocMetastoreLocationList(ctx context.Context, d *plugin.QueryData) []map[string]interface{}

BuildDataprocMetastoreLocationList :: return a list of matrix items, one per region specified

func BuildLocationList

func BuildLocationList(ctx context.Context, d *plugin.QueryData) []map[string]interface{}

BuildregionList :: return a list of matrix items, one per region specified

func BuildVPCAccessLocationList

func BuildVPCAccessLocationList(ctx context.Context, d *plugin.QueryData) []map[string]interface{}

BuildregionList :: return a list of matrix items, one per region specified

func BuildVertexAILocationList

func BuildVertexAILocationList(clientType string) func(ctx context.Context, d *plugin.QueryData) []map[string]interface{}

func BuildVertexAILocationListByClientType

func BuildVertexAILocationListByClientType(clientType string) func(ctx context.Context, d *plugin.QueryData) []map[string]interface{}

func CloudAssetService

func CloudAssetService(ctx context.Context, d *plugin.QueryData) (*cloudasset.Service, error)

CloudAssetService returns the service connection for GCP Asset Service

func CloudFunctionsService

func CloudFunctionsService(ctx context.Context, d *plugin.QueryData) (*cloudfunctions.Service, error)

CloudFunctionsService returns the service connection for GCP Cloud Functions service

func CloudIdentityService

func CloudIdentityService(ctx context.Context, d *plugin.QueryData) (*cloudidentity.Service, error)

CloudIdentityService returns the service connection for GCP Identity service

func CloudResourceManagerService

func CloudResourceManagerService(ctx context.Context, d *plugin.QueryData) (*cloudresourcemanager.Service, error)

CloudResourceManagerService returns the service connection for GCP Cloud Resource Manager service

func CloudRunService

func CloudRunService(ctx context.Context, d *plugin.QueryData) (*run.Service, error)

CloudRunService returns the service connection for GCP Cloud Run service

func CloudRunServiceV1

func CloudRunServiceV1(ctx context.Context, d *plugin.QueryData) (*run1.APIService, error)

CloudRunService returns the service connection for GCP Cloud Run service

func CloudSQLAdminService

func CloudSQLAdminService(ctx context.Context, d *plugin.QueryData) (*sqladmin.Service, error)

CloudSQLAdminService returns the service connection for GCP Cloud SQL Admin service

func ComposerService

func ComposerService(ctx context.Context, d *plugin.QueryData) (*composer.Service, error)

ComposerService returns the service connection for GCP Composer service

func ComputeBetaService

func ComputeBetaService(ctx context.Context, d *plugin.QueryData) (*computeBeta.Service, error)

ComputeBetaService returns the service connection for GCP Compute service beta version

func ComputeService

func ComputeService(ctx context.Context, d *plugin.QueryData) (*compute.Service, error)

ComputeService returns the service connection for GCP Compute service

func ConfigInstance

func ConfigInstance() interface{}

func ContainerService

func ContainerService(ctx context.Context, d *plugin.QueryData) (*container.Service, error)

ContainerService returns the service connection for GCP Container service

func DataplexService

func DataplexService(ctx context.Context, d *plugin.QueryData) (*dataplex.Service, error)

DataplexService returns the service connection for GCP Dataplex service

func DataprocMetastoreService

func DataprocMetastoreService(ctx context.Context, d *plugin.QueryData) (*metastore.APIService, error)

DataprocService returns the service connection for GCP Dataproc service

func DataprocService

func DataprocService(ctx context.Context, d *plugin.QueryData) (*dataproc.Service, error)

DataprocService returns the service connection for GCP Dataproc service

func DnsService

func DnsService(ctx context.Context, d *plugin.QueryData) (*dns.Service, error)

DnsService returns the service connection for GCP DNS service

func EssentialContactService

func EssentialContactService(ctx context.Context, d *plugin.QueryData) (*essentialcontacts.Service, error)

EssentialContactService returns the service connection for GCP Cloud Organization Essential Contacts

func FirestoreDatabaseService

func FirestoreDatabaseService(ctx context.Context, d *plugin.QueryData) (*firestore.Service, error)

FirestoreDatabaseService returns the service connection for GCP Firestore service

func GetConfig

func GetConfig(connection *plugin.Connection) gcpConfig

GetConfig :: retrieve and cast connection config from query data

func IAMService

func IAMService(ctx context.Context, d *plugin.QueryData) (*iam.Service, error)

IAMService returns the service connection for GCP IAM service

func KMSService

func KMSService(ctx context.Context, d *plugin.QueryData) (*cloudkms.Service, error)

KMSService returns the service connection for GCP KMS service

func LoggingService

func LoggingService(ctx context.Context, d *plugin.QueryData) (*logging.Service, error)

LoggingService returns the service connection for GCP Logging service

func MonitoringService

func MonitoringService(ctx context.Context, d *plugin.QueryData) (*monitoring.Service, error)

MonitoringService returns the service connection for GCP Monitoring service

func Plugin

func Plugin(ctx context.Context) *plugin.Plugin

Plugin creates this (gcp) plugin

func PubsubService

func PubsubService(ctx context.Context, d *plugin.QueryData) (*pubsub.Service, error)

PubsubService returns the service connection for GCP Pub/Sub service

func RedisClusterService

func RedisClusterService(ctx context.Context, d *plugin.QueryData) (*rediscluster.CloudRedisClusterClient, error)

RedisClusterService returns the service connection for GCP Memorystore for Redis Cluster service

func RedisService

func RedisService(ctx context.Context, d *plugin.QueryData) (*redis.CloudRedisClient, error)

RedisService returns the service connection for GCP Redis service

func SecretManagerService

func SecretManagerService(ctx context.Context, d *plugin.QueryData) (*secretmanager.Service, error)

func ServiceUsageService

func ServiceUsageService(ctx context.Context, d *plugin.QueryData) (*serviceusage.Service, error)

ServiceUsageService returns the service connection for GCP Service Usage service

func StorageService

func StorageService(ctx context.Context, d *plugin.QueryData) (*storage.Service, error)

StorageService returns the service connection for GCP Storage service

func TPUService

func TPUService(ctx context.Context, d *plugin.QueryData) (*tpu.Service, error)

TPUService returns the service connection for GCP TPU service

func VPCAccessService

func VPCAccessService(ctx context.Context, d *plugin.QueryData) (*vpcaccess.Service, error)

func WorkstationsService

func WorkstationsService(ctx context.Context, d *plugin.QueryData) (*workstations.Service, error)

WorkstationsService returns the service connection for GCP Workstations service

Types

type AIplatfromServiceClients

type AIplatfromServiceClients struct {
	Endpoint *aiplatform.EndpointClient
	Dataset  *aiplatform.DatasetClient
	Index    *aiplatform.IndexClient
	Job      *aiplatform.JobClient
	Model    *aiplatform.ModelClient
	Notebook *aiplatform.NotebookClient
}

func AIService

func AIService(ctx context.Context, d *plugin.QueryData, clientType string) (*AIplatfromServiceClients, error)

type OrganizationAuditConfig

type OrganizationAuditConfig struct {
	OrganizationId  string                                 `json:"organization_id"`
	Service         string                                 `json:"service"`
	AuditLogConfigs []*cloudresourcemanager.AuditLogConfig `json:"audit_log_configs"`
}

OrganizationAuditConfig is a custom struct to include organization_id with audit config

type PointWithTimeStamp

type PointWithTimeStamp struct {
	// Point Value
	Point float64

	// Time stamp of the point value
	TimeStamp string
}

type Statistics

type Statistics struct {
	Maximum     float64
	Minimum     float64
	Sum         float64
	Average     float64
	SampleCount float64
	TimeStamp   string
}

Source Files

Jump to

Keyboard shortcuts

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