gcp

package
v0.51.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 60 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 added in v0.35.0

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

func AccessApprovalService added in v0.26.0

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

AccessApprovalService returns the service connection for GCP Project AccessApproval service

func AppEngineService added in v0.49.0

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

AppEngineService returns the service connection for GCP App Engine service

func ArtifactRegistryService added in v0.45.0

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

ArtifactRegistryService returns the service connection for GCP ArtifactRegistry service

func BigQueryService added in v0.5.0

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

BigQueryService returns the service connection for GCP BigQueryService service

func BigtableAdminService added in v0.4.0

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

BigtableAdminService returns the service connection for GCP Bigtable Admin service

func BillingBudgetsService added in v0.38.0

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

BillingBudgetsService returns the service connection for GCP Billing Budgets service

func BillingService added in v0.38.0

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

BillingService returns the service connection for GCP Billing service

func BuildArtifactRegistryLocationList added in v0.45.0

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

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

func BuildComputeLocationList added in v0.26.0

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 BuildLocationList added in v0.8.0

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

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

func BuildRedisLocationList added in v0.43.0

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

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

func BuildVertexAILocationList added in v0.46.0

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

func BuildVertexAILocationListByClientType added in v0.46.0

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

func CloudAssetService added in v0.48.0

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

CloudAssetService returns the service connection for GCP Asset Service

func CloudFunctionsService added in v0.1.0

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

CloudFunctionsService returns the service connection for GCP Cloud Functions service

func CloudIdentityService added in v0.42.0

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

CloudIdentityService returns the service connection for GCP Identity service

func CloudResourceManagerService added in v0.1.0

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

CloudResourceManagerService returns the service connection for GCP Cloud Resource Manager service

func CloudRunService added in v0.45.0

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

CloudRunService returns the service connection for GCP Cloud Run service

func CloudSQLAdminService added in v0.2.0

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

CloudSQLAdminService returns the service connection for GCP Cloud SQL Admin service

func ComputeBetaService added in v0.1.0

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

ComputeBetaService returns the service connection for GCP Compute service beta version

func ComputeService added in v0.1.0

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

ComputeService returns the service connection for GCP Compute service

func ConfigInstance added in v0.1.0

func ConfigInstance() interface{}

func ContainerService added in v0.16.0

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

ContainerService returns the service connection for GCP Container service

func DataprocService added in v0.26.0

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

DataprocService returns the service connection for GCP Dataproc service

func DnsService added in v0.5.0

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

DnsService returns the service connection for GCP DNS service

func EssentialContactService added in v0.26.0

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

EssentialContactService returns the service connection for GCP Cloud Organization Essential Contacts

func GetConfig added in v0.1.0

func GetConfig(connection *plugin.Connection) gcpConfig

GetConfig :: retrieve and cast connection config from query data

func IAMService added in v0.1.0

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

IAMService returns the service connection for GCP IAM service

func KMSService added in v0.8.0

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

KMSService returns the service connection for GCP KMS service

func LoggingService added in v0.1.0

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

LoggingService returns the service connection for GCP Logging service

func MonitoringService added in v0.1.0

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 added in v0.1.0

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

PubsubService returns the service connection for GCP Pub/Sub service

func RedisService added in v0.43.0

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

RedisService returns the service connection for GCP Redis service

func ServiceUsageService added in v0.1.0

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

ServiceUsageService returns the service connection for GCP Service Usage service

func StorageService added in v0.1.0

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

StorageService returns the service connection for GCP Storage service

Types

type AIplatfromServiceClients added in v0.46.0

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

func AIService added in v0.46.0

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

type PointWithTimeStamp added in v0.14.0

type PointWithTimeStamp struct {
	// Point Value
	Point float64

	// Time stamp of the point value
	TimeStamp string
}

type Statistics added in v0.14.0

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