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
- Variables
- func APIKeysService(ctx context.Context, d *plugin.QueryData) (*apikeys.Service, error)
- func AccessApprovalService(ctx context.Context, d *plugin.QueryData) (*accessapproval.Service, error)
- func AlloyDBService(ctx context.Context, d *plugin.QueryData) (*alloydb.Service, error)
- func AppEngineService(ctx context.Context, d *plugin.QueryData) (*appengine.APIService, error)
- func ArtifactRegistryService(ctx context.Context, d *plugin.QueryData) (*artifactregistry.Service, error)
- func BigQueryService(ctx context.Context, d *plugin.QueryData) (*bigquery.Service, error)
- func BigtableAdminService(ctx context.Context, d *plugin.QueryData) (*bigtableadmin.Service, error)
- func BillingBudgetsService(ctx context.Context, d *plugin.QueryData) (*billingbudgets.Service, error)
- func BillingService(ctx context.Context, d *plugin.QueryData) (*cloudbilling.APIService, error)
- func BuildAlloyDBLocationList(ctx context.Context, d *plugin.QueryData) []map[string]interface{}
- func BuildArtifactRegistryLocationList(ctx context.Context, d *plugin.QueryData) []map[string]interface{}
- func BuildCloudRunLocationList(ctx context.Context, d *plugin.QueryData) []map[string]interface{}
- func BuildComputeLocationList(ctx context.Context, d *plugin.QueryData) []map[string]interface{}
- func BuildComputeLocationListWithGlobal(ctx context.Context, d *plugin.QueryData) []map[string]interface{}
- func BuildDataplexLocationList(ctx context.Context, d *plugin.QueryData) []map[string]interface{}
- func BuildDataprocMetastoreLocationList(ctx context.Context, d *plugin.QueryData) []map[string]interface{}
- func BuildLocationList(ctx context.Context, d *plugin.QueryData) []map[string]interface{}
- func BuildVPCAccessLocationList(ctx context.Context, d *plugin.QueryData) []map[string]interface{}
- func BuildVertexAILocationList(clientType string) func(ctx context.Context, d *plugin.QueryData) []map[string]interface{}
- func BuildVertexAILocationListByClientType(clientType string) func(ctx context.Context, d *plugin.QueryData) []map[string]interface{}
- func CloudAssetService(ctx context.Context, d *plugin.QueryData) (*cloudasset.Service, error)
- func CloudFunctionsService(ctx context.Context, d *plugin.QueryData) (*cloudfunctions.Service, error)
- func CloudIdentityService(ctx context.Context, d *plugin.QueryData) (*cloudidentity.Service, error)
- func CloudResourceManagerService(ctx context.Context, d *plugin.QueryData) (*cloudresourcemanager.Service, error)
- func CloudRunService(ctx context.Context, d *plugin.QueryData) (*run.Service, error)
- func CloudRunServiceV1(ctx context.Context, d *plugin.QueryData) (*run1.APIService, error)
- func CloudSQLAdminService(ctx context.Context, d *plugin.QueryData) (*sqladmin.Service, error)
- func ComposerService(ctx context.Context, d *plugin.QueryData) (*composer.Service, error)
- func ComputeBetaService(ctx context.Context, d *plugin.QueryData) (*computeBeta.Service, error)
- func ComputeService(ctx context.Context, d *plugin.QueryData) (*compute.Service, error)
- func ConfigInstance() interface{}
- func ContainerService(ctx context.Context, d *plugin.QueryData) (*container.Service, error)
- func DataplexService(ctx context.Context, d *plugin.QueryData) (*dataplex.Service, error)
- func DataprocMetastoreService(ctx context.Context, d *plugin.QueryData) (*metastore.APIService, error)
- func DataprocService(ctx context.Context, d *plugin.QueryData) (*dataproc.Service, error)
- func DnsService(ctx context.Context, d *plugin.QueryData) (*dns.Service, error)
- func EssentialContactService(ctx context.Context, d *plugin.QueryData) (*essentialcontacts.Service, error)
- func FirestoreDatabaseService(ctx context.Context, d *plugin.QueryData) (*firestore.Service, error)
- func GetConfig(connection *plugin.Connection) gcpConfig
- func IAMService(ctx context.Context, d *plugin.QueryData) (*iam.Service, error)
- func KMSService(ctx context.Context, d *plugin.QueryData) (*cloudkms.Service, error)
- func LoggingService(ctx context.Context, d *plugin.QueryData) (*logging.Service, error)
- func MonitoringService(ctx context.Context, d *plugin.QueryData) (*monitoring.Service, error)
- func Plugin(ctx context.Context) *plugin.Plugin
- func PubsubService(ctx context.Context, d *plugin.QueryData) (*pubsub.Service, error)
- func RedisClusterService(ctx context.Context, d *plugin.QueryData) (*rediscluster.CloudRedisClusterClient, error)
- func RedisService(ctx context.Context, d *plugin.QueryData) (*redis.CloudRedisClient, error)
- func SecretManagerService(ctx context.Context, d *plugin.QueryData) (*secretmanager.Service, error)
- func ServiceUsageService(ctx context.Context, d *plugin.QueryData) (*serviceusage.Service, error)
- func StorageService(ctx context.Context, d *plugin.QueryData) (*storage.Service, error)
- func TPUService(ctx context.Context, d *plugin.QueryData) (*tpu.Service, error)
- func VPCAccessService(ctx context.Context, d *plugin.QueryData) (*vpcaccess.Service, error)
- func WorkstationsService(ctx context.Context, d *plugin.QueryData) (*workstations.Service, error)
- type AIplatfromServiceClients
- type OrganizationAuditConfig
- type PointWithTimeStamp
- type Statistics
Constants ¶
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 ¶
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 AccessApprovalService ¶
func AccessApprovalService(ctx context.Context, d *plugin.QueryData) (*accessapproval.Service, error)
AccessApprovalService returns the service connection for GCP Project AccessApproval service
func AlloyDBService ¶
AlloyDBService returns the service connection for GCP Alloy DB service
func AppEngineService ¶
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 ¶
BigQueryService returns the service connection for GCP BigQueryService service
func BigtableAdminService ¶
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 ¶
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 ¶
https://cloud.google.com/run/docs/locations BuildCloudRunLocationList :: return a list of matrix items, one per region specified
func BuildComputeLocationList ¶
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 ¶
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 ¶
BuildregionList :: return a list of matrix items, one per region specified
func BuildVPCAccessLocationList ¶
BuildregionList :: return a list of matrix items, one per region specified
func CloudAssetService ¶
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 ¶
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 ¶
CloudRunService returns the service connection for GCP Cloud Run service
func CloudRunServiceV1 ¶
CloudRunService returns the service connection for GCP Cloud Run service
func CloudSQLAdminService ¶
CloudSQLAdminService returns the service connection for GCP Cloud SQL Admin service
func ComposerService ¶
ComposerService returns the service connection for GCP Composer service
func ComputeBetaService ¶
ComputeBetaService returns the service connection for GCP Compute service beta version
func ComputeService ¶
ComputeService returns the service connection for GCP Compute service
func ConfigInstance ¶
func ConfigInstance() interface{}
func ContainerService ¶
ContainerService returns the service connection for GCP Container service
func DataplexService ¶
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 ¶
DataprocService returns the service connection for GCP Dataproc service
func DnsService ¶
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 ¶
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 ¶
IAMService returns the service connection for GCP IAM service
func KMSService ¶
KMSService returns the service connection for GCP KMS service
func LoggingService ¶
LoggingService returns the service connection for GCP Logging service
func MonitoringService ¶
MonitoringService returns the service connection for GCP Monitoring service
func PubsubService ¶
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 ¶
RedisService returns the service connection for GCP Redis service
func SecretManagerService ¶
func ServiceUsageService ¶
ServiceUsageService returns the service connection for GCP Service Usage service
func StorageService ¶
StorageService returns the service connection for GCP Storage service
func TPUService ¶
TPUService returns the service connection for GCP TPU service
func VPCAccessService ¶
func WorkstationsService ¶
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
}
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 ¶
Source Files
¶
- alloydb_location_list.go
- artifact_registry_location_list.go
- cloud_run_location_list.go
- compute_location_list.go
- connection_config.go
- dataplex_location_list.go
- dataproc_metastore_location_list.go
- ignore_error_predicate.go
- kms_multi_location.go
- monitoring_metric.go
- plugin.go
- service.go
- table_gcp_alloydb_cluster.go
- table_gcp_alloydb_instance.go
- table_gcp_apikeys_key.go
- table_gcp_app_engine_application.go
- table_gcp_artifact_registry_repository.go
- table_gcp_audit_policy.go
- table_gcp_bigquery_dataset.go
- table_gcp_bigquery_job.go
- table_gcp_bigquery_table.go
- table_gcp_bigtable_instance.go
- table_gcp_billing_account.go
- table_gcp_billing_budget.go
- table_gcp_cloud_asset.go
- table_gcp_cloud_identity_group.go
- table_gcp_cloud_identity_group_membership.go
- table_gcp_cloud_run_job.go
- table_gcp_cloud_run_service.go
- table_gcp_cloudfunctions_function.go
- table_gcp_composer_environment.go
- table_gcp_compute_address.go
- table_gcp_compute_autoscaler.go
- table_gcp_compute_backend_bucket.go
- table_gcp_compute_backend_service.go
- table_gcp_compute_disk.go
- table_gcp_compute_disk_metric_read_ops.go
- table_gcp_compute_disk_metric_read_ops_daily.go
- table_gcp_compute_disk_metric_read_ops_hourly.go
- table_gcp_compute_disk_metric_write_ops.go
- table_gcp_compute_disk_metric_write_ops_daily.go
- table_gcp_compute_disk_metric_write_ops_hourly.go
- table_gcp_compute_firewall.go
- table_gcp_compute_forwarding_rule.go
- table_gcp_compute_global_address.go
- table_gcp_compute_global_forwarding_rule.go
- table_gcp_compute_ha_vpn_gateway.go
- table_gcp_compute_image.go
- table_gcp_compute_instance.go
- table_gcp_compute_instance_group.go
- table_gcp_compute_instance_group_manager.go
- table_gcp_compute_instance_metric_cpu_utilization.go
- table_gcp_compute_instance_metric_cpu_utilization_daily.go
- table_gcp_compute_instance_metric_cpu_utilization_hourly.go
- table_gcp_compute_instance_template.go
- table_gcp_compute_machine_image.go
- table_gcp_compute_machine_type.go
- table_gcp_compute_network.go
- table_gcp_compute_node_group.go
- table_gcp_compute_node_template.go
- table_gcp_compute_project_metadata.go
- table_gcp_compute_region.go
- table_gcp_compute_resource_policy.go
- table_gcp_compute_route.go
- table_gcp_compute_router.go
- table_gcp_compute_security_policy.go
- table_gcp_compute_snapshot.go
- table_gcp_compute_ssl_policy.go
- table_gcp_compute_subnetwork.go
- table_gcp_compute_target_https_proxy.go
- table_gcp_compute_target_pool.go
- table_gcp_compute_target_ssl_proxy.go
- table_gcp_compute_target_vpn_gateway.go
- table_gcp_compute_tpu.go
- table_gcp_compute_url_map.go
- table_gcp_compute_vpn_tunnel.go
- table_gcp_compute_zone.go
- table_gcp_dataplex_asset.go
- table_gcp_dataplex_lake.go
- table_gcp_dataplex_task.go
- table_gcp_dataplex_zone.go
- table_gcp_dataproc_cluster.go
- table_gcp_dataproc_metastore_service.go
- table_gcp_dns_managed_zone.go
- table_gcp_dns_policy.go
- table_gcp_dns_record_set.go
- table_gcp_firestore_database.go
- table_gcp_iam_policy.go
- table_gcp_iam_role.go
- table_gcp_kms_key.go
- table_gcp_kms_key_ring.go
- table_gcp_kms_key_version.go
- table_gcp_kubernetes_cluster.go
- table_gcp_kubernetes_node_pool.go
- table_gcp_logging_bucket.go
- table_gcp_logging_exclusion.go
- table_gcp_logging_log_entry.go
- table_gcp_logging_metric.go
- table_gcp_logging_sink.go
- table_gcp_monitoring_alert_policy.go
- table_gcp_monitoring_group.go
- table_gcp_monitoring_notification_channel.go
- table_gcp_organization.go
- table_gcp_organization_audit_policy.go
- table_gcp_organization_project.go
- table_gcp_project.go
- table_gcp_project_organization_policy.go
- table_gcp_project_service.go
- table_gcp_pubsub_snapshot.go
- table_gcp_pubsub_subscription.go
- table_gcp_pubsub_topic.go
- table_gcp_redis_cluster.go
- table_gcp_redis_instance.go
- table_gcp_secret_manager_secret.go
- table_gcp_service_account.go
- table_gcp_service_account_key.go
- table_gcp_sql_backup.go
- table_gcp_sql_database.go
- table_gcp_sql_database_instance.go
- table_gcp_sql_database_instance_metric_connections.go
- table_gcp_sql_database_instance_metric_connections_daily.go
- table_gcp_sql_database_instance_metric_connections_hourly.go
- table_gcp_sql_database_instance_metric_cpu_utilization.go
- table_gcp_sql_database_instance_metric_cpu_utilization_daily.go
- table_gcp_sql_database_instance_metric_cpu_utilization_hourly.go
- table_gcp_storage_bucket.go
- table_gcp_storage_object.go
- table_gcp_tag_binding.go
- table_gcp_tpu_vm.go
- table_gcp_vertex_ai_endpoint.go
- table_gcp_vertex_ai_model.go
- table_gcp_vertex_ai_notebook_runtime_template.go
- table_gcp_vpc_access_connector.go
- table_gcp_workstations_workstation.go
- table_gcp_workstations_workstation_cluster.go
- utils.go
- vertex_ai_location_list.go
- vpc_access_location_list.go