{"modulePath":"github.com/linuxuser586/gcpemu","version":"v0.18.0","isStandardLibrary":false,"packages":{"items":[{"path":"github.com/linuxuser586/gcpemu/cmd/gcpemu","name":"main","synopsis":"Command gcpemu is a local emulator for Google Cloud services.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/cmd/gcpemu-echo","name":"main","synopsis":"Command gcpemu-echo is the Conformance suite's test backend (#859): an HTTP server that answers /status/\u003ccode\u003e with that status, any other path with 200, and every request with a JSON report of the request it received, holding only the headers named in ECHO_HEADERS.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/cmd/gcpemu-testdir","name":"main","synopsis":"Command gcpemu-testdir lets a test harness with no OS file lock of its own, such as the console's Playwright e2e, keep its Instances in Test data dirs (ADR 0077, #1035).","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/compat","name":"compat","synopsis":"Package compat is the client compatibility suite (SRS 7.1, IF-003 to IF-009): the real gcloud, the aws CLI v2, the Python, Node and Java client libraries, kubectl with gke-gcloud-auth-plugin, Helm, Docker, crane, ko, psql, the Cloud SQL Auth Proxy v2 and dig run against a detached gcpemu instance with only endpoint configuration.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/conformance","name":"conformance","synopsis":"Package conformance is the Conformance suite (SRS 11.1, ADR 0023): tests that use only public GCP APIs, through the official Go client libraries, so the same test body runs against an in-process Instance or a real project.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/console","name":"console","synopsis":"Package console embeds the Web console's built bundle (FR-UI-001).","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/e2e","name":"e2e","synopsis":"Package e2e holds the SRS 11.2 reference stack acceptance test: one OpenTofu root module (stack/), a Go API (app/) and the test that drives them against an in-process emulator.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/e2e/app","name":"main","synopsis":"Command app is the Go API of the SRS 11.2 reference stack.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/emutest","name":"emutest","synopsis":"Package emutest starts an in-process gcpemu instance for Go tests (FR-CI-009).","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/admin","name":"admin","synopsis":"Package admin holds the OpenAPI description of the /_emu/v1/ admin API (SRS 7.3), embedded in the binary for `gcpemu admin openapi`.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/agent","name":"agent","synopsis":"Package agent runs gcpemu helper processes inside containers the emulator launches (GKE node metadata proxy, Cloud SQL server-side proxy).","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/apidef","name":"apidef","synopsis":"Package apidef holds the API surface generated from Google's published definitions (NFR-MNT-001): the google.api.http routes and field behaviours (AIP-203) of the gRPC APIs, read from googleapis at the commit pinned in apis.yaml, and the methods and field annotations of the discovery (JSON/REST) APIs, read from the discovery documents vendored in the google.golang.org/api module pinned in go.mod.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/apidef/internal/apigen","name":"main","synopsis":"Command apigen generates internal/apidef's route and field-behaviour tables (NFR-MNT-001) from Google's published API definitions:","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/apierr","name":"apierr","synopsis":"Package apierr models GCP API errors and renders them as the JSON error envelope used by REST APIs and as google.rpc.Status for gRPC (FR-CORE-025).","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/ca","name":"ca","synopsis":"Package ca is the emulator's local certificate authority (Section 7.4).","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/cli","name":"cli","synopsis":"Package cli implements the gcpemu command line (FR-CORE-001..007).","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/clock","name":"clock","synopsis":"Package clock provides the Emulator clock (NFR-REL-002): real by default, or under --deterministic a fake clock that moves once per API request.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/config","name":"config","synopsis":"Package config loads emulator configuration with the precedence flags \u003e env (GCPEMU_*) \u003e gcpemu.yaml \u003e defaults (FR-CORE-010).","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/devtool","name":"main","synopsis":"Command devtool holds the control flow of the justfile's recipes (ADR 0061), so each recipe is one plain command per line that runs the same in sh and in Windows PowerShell.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/devtool/productimages","name":"main","synopsis":"Command productimages prints every Product image (CONTEXT.md), one reference per line, sorted, from the values the emulator runs: Cloud SQL's postgres images, GKE's k3s images, the system images they preload and the add-on manifests' images, and the Managed emulator images.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/edgeagent","name":"edgeagent","synopsis":"Package edgeagent is the Edge relay's Sidecar agent, which relays TCP connections to an ingress in the emulator with a PROXY v2 header, and the LAN relay containers that run it in LAN mode on the host network: lb-lan for --lb-bind and gfe-lan, the LAN front-end relay, for --gfe-bind.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/emu","name":"emu","synopsis":"Package emu defines the contract between the emulator core and service modules (NFR-MNT-002) and the shared environment they run in.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/emutestx","name":"emutestx","synopsis":"Package emutestx holds test helpers about gcpemu's own internals, for gcpemu's tests only: they inspect an emutest.Instance's VM relay, and set up objects on the host outside any Instance, tagged so that a killed run's are reclaimed (HostNetwork).","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/escapeguard","name":"escapeguard","synopsis":"Package escapeguard is the Escape guard (see CONTEXT.md): a proxy that OpenTofu and gcloud runs in the acceptance tests go through, so that an Escaped request fails the test, naming the host, instead of reaching Google.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/events","name":"events","synopsis":"Package events is the Instance's change feed, served as server-sent events at /_emu/v1/events (FR-CORE-045, FR-UI-006): resource changes, Operation progress, Request log entries and IAM denials.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/fault","name":"fault","synopsis":"Package fault implements fault injection rules (FR-CORE-060): inject an error code, latency or a dropped connection by service, method, resource pattern and probability or count.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/filelock","name":"filelock","synopsis":"Package filelock takes exclusive OS locks on files, which the OS drops when the holding process dies.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/frontend","name":"frontend","synopsis":"Package frontend is the emulator's \"Google front end\": a TLS terminator that lets unmodified clients reach emulated services by their real hostnames (storage.googleapis.com, pubsub.googleapis.com, LOCATION-docker.pkg.dev, ...) over HTTPS, HTTP/2 and gRPC (FR-INT-007, FR-CORE-043).","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/gateway","name":"gateway","synopsis":"Package gateway is the control-plane gateway (FR-CORE-040): one listener serving every API over HTTP/1.1 REST and gRPC (h2c), routing by path prefix and Host, authenticating callers and recording the request log.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/hostmode","name":"hostmode","synopsis":"Package hostmode implements host mode (FR-CORE-043): host processes reach emulated services by their real hostnames (storage.googleapis.com, LOCATION-docker.pkg.dev, ...) once the local CA is trusted.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/hosttest","name":"hosttest","synopsis":"Package hosttest holds helpers for tests that drive gcpemu from the host through the docker CLI and the clients' environment, for gcpemu's own tests only: the Containerized Instance tests and the Pre-release host checks.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/httpserver","name":"httpserver","synopsis":"Package httpserver is the HTTP server the API gateway and the Services' endpoints serve with: HTTP/1.1 and h2c, and a Shutdown that stops even when its ctx has already ended (#1034, #1117).","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/inflight","name":"inflight","synopsis":"Package inflight tracks a service's background work across Instance Resets.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/instance","name":"instance","synopsis":"Package instance assembles and runs one emulator instance: state store, gateway, admin API and the selected services.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/lanbind","name":"lanbind","synopsis":"Package lanbind holds what the emulator says about the --lb-bind, --gke-bind, --ar-bind, --gfe-bind, --sql-bind and --link-bind addresses in a Containerized Instance, in one place so that start, the Services and doctor say the same (#497, ADR 0011).","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/lbenv","name":"lbenv","synopsis":"Package lbenv derives the `gcpemu env` variables of load balancing endpoints (ADR 0013): forwarding rules' GCPEMU_LB_* and GKE LoadBalancer Service ports' GCPEMU_GKE_*, from their Service endpoint names.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/link","name":"link","synopsis":"Package link connects an Instance to Linked Instances (ADR 0027).","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/listfilter","name":"listfilter","synopsis":"Package listfilter evaluates the filter of a list call, as gcloud and the client libraries send it: field OP value terms (value bare or double-quoted) combined with AND, OR, NOT and parentheses, adjacent terms ANDed.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/listpage","name":"listpage","synopsis":"Package listpage pages a list call's results by offset.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/locations","name":"locations","synopsis":"Package locations embeds the real Google Cloud regions and zones (FR-CORE-021) so every service validates locations the same way.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/loopback","name":"loopback","synopsis":"Package loopback reports whether the host has loopback addresses beyond 127.0.0.1 (ADR 0005), and on macOS whether each is a /32.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/lro","name":"lro","synopsis":"Package lro implements google.longrunning Operations for services whose mutations are long-running in GCP (FR-CORE-023).","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/maskpath","name":"maskpath","synopsis":"Package maskpath parses one update_mask path into its field segment and, for a path into a map field, the key it names (AIP-161, ADR 0075).","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/mdns","name":"mdns","synopsis":"Package mdns advertises and browses DNS-SD services over multicast DNS (RFC 6762, RFC 6763), over IPv4, as Linked Instances find each other on the LAN (ADR 0027).","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/netplane","name":"netplane","synopsis":"Package netplane connects the emulator process to the container networks it creates (Section 3.3).","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/porttest","name":"porttest","synopsis":"Package porttest picks free ports for gcpemu's own tests.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/project","name":"project","synopsis":"Package project implements project identity (FR-CORE-020): any project ID is accepted, and its number is derived deterministically from the ID.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/published","name":"published","synopsis":"Package published chooses the Published ports (ADR 0012) a Containerized Instance serves host clients on: the ports its own container publishes to the host.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/registryrelay","name":"registryrelay","synopsis":"Package registryrelay implements the Registry relay (ADR 0043).","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/reqlog","name":"reqlog","synopsis":"Package reqlog records every API call and data-plane request as a structured entry (FR-CORE-061) and keeps the most recent ones in memory for the admin API (FR-CORE-045).","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/runtime","name":"runtime","synopsis":"Package runtime is the container runtime driver (Section 3.1): a small client for the Docker Engine API, which Docker Engine and Podman (its Docker-compatible socket) both serve.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/sonobuoytest","name":"sonobuoytest","synopsis":"Package sonobuoytest runs Kubernetes conformance, Sonobuoy's quick mode, for gcpemu's own tests: the Autopilot acceptance (e2e) on Autopilot clusters and TestKubeConformance (compat) on Standard clusters.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/store","name":"store","synopsis":"Package store is the control-plane state store (FR-CORE-032): a small transactional, namespaced key-value interface with an in-memory implementation for --ephemeral and a bbolt (pure Go) one for --data-dir.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/testlog","name":"testlog","synopsis":"Package testlog keeps the emulator logs of gcpemu's tests in the dir GCPEMU_TEST_LOG_DIR names, so a CI job can upload those of a failed run (#1147).","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/transcode","name":"transcode","synopsis":"Package transcode serves the REST surface of gRPC services: it maps the google.api.http bindings generated into internal/apidef onto the services' gRPC implementations (AIP-127), validating each request's field behaviours on the way in.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/trust","name":"trust","synopsis":"Package trust builds CA bundles that combine the host's Public roots with the Instance CA (Section 7.4), for clients that read a single bundle file: SSL_CERT_FILE from `gcpemu env --trust` (FR-CORE-004), the bundle injected into GKE pods (FR-INT-007) and Cloud Build steps.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/vmrelay","name":"vmrelay","synopsis":"Package vmrelay implements the VM relay (ADR 0005).","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/webconsole","name":"webconsole","synopsis":"Package webconsole serves the Web console's bundle on the gateway under /console (FR-UI-002).","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/internal/workload","name":"workload","synopsis":"Package workload holds what the emulator gives the containers that run users' code as on GCP, GKE pods and Build steps, so that unmodified clients reach the Instance by real hostname as a service account: the metadata and registry proxies their Sidecar agents serve, the DNS answers that send Google hostnames to the Sidecar agent's :443 relay to the Google front end, and the names of the Instance CA bundle and its variables.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/prerelease","name":"prerelease","synopsis":"Package prerelease holds the Pre-release host checks (docs/release.md, #606): the checks run on macOS and Windows hosts before a release is tagged, on the VM runtimes CI cannot run.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/services","name":"services","synopsis":"Package services lists the service modules compiled into gcpemu.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/services/ar","name":"ar","synopsis":"Package ar emulates Artifact Registry (SRS 5.3): the artifactregistry v1 control plane over gRPC and REST on the gateway, and an OCI Distribution v1.1 registry on its own port (default 4561).","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/services/build","name":"build","synopsis":"Package build emulates Cloud Build's Builds API (cloudbuild.googleapis.com v1) over gRPC and REST on the API gateway, on both projects/*/builds and projects/*/locations/*/builds.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/services/cdn","name":"cdn","synopsis":"Package cdn emulates Cloud CDN (SRS 5.9): the HTTP cache the load balancer puts in front of CDN-enabled backend services and backend buckets.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/services/certs","name":"certs","synopsis":"Package certs emulates Certificate Manager (certificatemanager.googleapis.com v1) and the Network Security API (networksecurity.googleapis.com v1: backend authentication configs, server and client TLS policies) and provides emu.CertManager, the view of those resources the load balancer data plane consumes (FR-LB-004, FR-LB-006, FR-LB-009).","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/services/compute","name":"compute","synopsis":"Package compute emulates the parts of compute.googleapis.com v1 the other services build on (SRS 1.2 supporting resources, 3.3, 5.10): regions and zones, projects.get, VPC networks, subnetworks, firewalls, routes, addresses, Cloud Routers with Cloud NAT (FR-NAT-001), network endpoint groups (zonal for FR-GKE-008, regional and global), VPC Network Peering (recorded) and compute Operations (FR-CORE-023), plus the minimal servicenetworking.googleapis.com API that binds private services access ranges to a VPC.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/services/dns","name":"dns","synopsis":"Package dns emulates Cloud DNS (SRS 5.2): the dns.googleapis.com v1 REST control plane (managed zones, record sets, changes; FR-DNS-001/002; zone IAM policies, FR-IAM-003; server and response policies, FR-DNS-006) and an authoritative DNS data plane on UDP and TCP that answers from the stored zones and response policies and forwards other names to the host resolver (FR-DNS-003/004).","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/services/gcs","name":"gcs","synopsis":"Package gcs emulates Cloud Storage (SRS 5.4): the JSON API v1 (buckets, objects, uploads, notifications, IAM, HMAC keys, legacy ACLs, managed folders), the XML API subset used by the official clients for reads and by S3-style tools, V4 signed URLs and POST policies, Pub/Sub notifications and lifecycle rules.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/services/gke","name":"gke","synopsis":"Package gke emulates Google Kubernetes Engine (SRS 5.7): the container.googleapis.com v1 API over gRPC and REST on the gateway, backed by real k3s clusters running in the host's container runtime.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/services/iam","name":"iam","synopsis":"Package iam emulates Identity and Access Management (SRS 5.1): service accounts and keys, predefined and custom roles, IAM policies on projects and resources with a shared policy evaluator, OAuth2 token issuance, the IAM Credentials API, IAM v2 deny policies and a GCE-compatible metadata server.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/services/lb","name":"lb","synopsis":"Package lb emulates the Application Load Balancer (SRS 5.8): the compute v1 load-balancing collections (forwarding rules, target HTTP(S) proxies, URL maps, backend services and buckets, health checks, SSL certificates and SSL policies, global and regional; FR-LB-001) served on the compute API, and a real in-process L7 proxy per forwarding rule wired exactly as GCP wires them: forwarding rule → target proxy → URL map → backend service or bucket → NEG endpoints (FR-LB-002..010).","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/services/lb/urlmap","name":"urlmap","synopsis":"Package urlmap is the load balancer's URL map routing engine (FR-LB-003): a pure library that compiles a compute v1 UrlMap and selects, for a request, the backend (service or bucket), redirect, URL rewrite and header actions exactly as GCP's Application Load Balancers do:","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/services/nat","name":"nat","synopsis":"Package nat is the Cloud NAT service module (SRS 5.10).","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/services/pubsub","name":"pubsub","synopsis":"Package pubsub emulates Cloud Pub/Sub (SRS 5.5): topics, subscriptions, publish, pull, streaming pull and push delivery, ordering, dead-letter topics, filters, exactly-once delivery, snapshots, seek and schemas.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/services/secrets","name":"secrets","synopsis":"Package secrets emulates Secret Manager (secretmanager.googleapis.com v1) over gRPC and REST on the gateway: global and regional secrets, versions and their payloads, version aliases, expiry, delayed version destruction, rotation notifications to Pub/Sub topics, managed rotation of Cloud SQL credentials, and secret IAM policies.","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/services/sql","name":"sql","synopsis":"Package sql emulates Cloud SQL for PostgreSQL (SRS 5.6).","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/services/sql/internal/genflags","name":"main","synopsis":"Command genflags generates Cloud SQL for PostgreSQL's database flag allow-list (FR-SQL-003) from Google's documentation:","isRedistributable":true},{"path":"github.com/linuxuser586/gcpemu/services/sql/proxy","name":"proxy","synopsis":"Package proxy is the Cloud SQL in-container agent (FR-SQL-004..007).","isRedistributable":true}],"total":78}}
