gcp

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2026 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Overview

Package gcp provides the read-only Google Cloud posture connector.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connector

type Connector struct {
	// contains filtered or unexported fields
}

Connector observes GCP resources using only list operations.

func New

func New(vault ports.CredentialVault, opts Options) (*Connector, error)

New creates a bounded GCP connector.

func (*Connector) Enumerate

Enumerate lists visible GCP projects and their compute, storage, network, and identity resources. Per-category failures are coverage gaps, never clean results.

func (*Connector) Evaluate

Evaluate uses the SDK-neutral posture policy.

type Options

type Options struct {
	Endpoint       string
	HTTPClient     *http.Client
	MaxProjects    int
	MaxFolders     int
	MaxResources   int
	MinRequestWait time.Duration
}

Options bounds remote enumeration. HTTPClient and Endpoint are intended for emulator and httptest use; production uses the credential resolved from Vault.

Jump to

Keyboard shortcuts

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