Documentation
¶
Overview ¶
Command disco is a cloud-resource discovery CLI — see CLAUDE.md and the package docs under cmd/ for usage. main only dispatches to cmd.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package cmd contains the cobra-rooted CLI for `disco`.
|
Package cmd contains the cobra-rooted CLI for `disco`. |
|
aws-resolver-audit
command
aws-resolver-audit walks every AWS resource's AttributesJSON, extracts ARN and bare-ID references to other scanned types, then diffs the proposed (source_type, target_type) pairs against edges already persisted in `relationships`.
|
aws-resolver-audit walks every AWS resource's AttributesJSON, extracts ARN and bare-ID references to other scanned types, then diffs the proposed (source_type, target_type) pairs against edges already persisted in `relationships`. |
|
disco-scaffold
command
disco-scaffold is a forward-only dev tool: it reads a provider's live upstream catalog (via the already-wired coverage.Provider.Fetch), subtracts the types disco already scans, and emits restype.Descriptor-shaped stubs for the *uncovered* types so a new scanner is born in the unified shape.
|
disco-scaffold is a forward-only dev tool: it reads a provider's live upstream catalog (via the already-wired coverage.Provider.Fetch), subtracts the types disco already scans, and emits restype.Descriptor-shaped stubs for the *uncovered* types so a new scanner is born in the unified shape. |
|
internal
|
|
|
coverage
Package coverage builds the disco-vs-upstream type coverage matrix for every registered cloud provider.
|
Package coverage builds the disco-vs-upstream type coverage matrix for every registered cloud provider. |
|
managed
Package managed records disco resource types that are UNCONDITIONALLY provider-managed — created automatically by the cloud and not user-deletable (Azure built-in policy/role definitions, AWS-owned prefix lists, per-(account,region) singleton config rows, ...).
|
Package managed records disco resource types that are UNCONDITIONALLY provider-managed — created automatically by the cloud and not user-deletable (Azure built-in policy/role definitions, AWS-owned prefix lists, per-(account,region) singleton config rows, ...). |
|
policy
Package policy is the Rego policy engine for `disco check`: local-store resources are handed to a prepared Rego query, which binds `data.disco.deny` to a set of finding objects.
|
Package policy is the Rego policy engine for `disco check`: local-store resources are handed to a prepared Rego query, which binds `data.disco.deny` to a set of finding objects. |
|
providers
Package providers hosts the cloud-provider Scanner registry.
|
Package providers hosts the cloud-provider Scanner registry. |
|
providers/all
Package all is the single wiring point pulling cloud providers into the binary.
|
Package all is the single wiring point pulling cloud providers into the binary. |
|
providers/aws
Package aws implements cloud resource discovery for Amazon Web Services.
|
Package aws implements cloud resource discovery for Amazon Web Services. |
|
providers/aws/awsregions
Package awsregions is disco's static list of supported AWS commercial-partition regions.
|
Package awsregions is disco's static list of supported AWS commercial-partition regions. |
|
providers/azure
Package azure implements cloud resource discovery for Microsoft Azure via per-service API calls using the Azure SDK for Go (arm* packages), following the two-phase scan pattern.
|
Package azure implements cloud resource discovery for Microsoft Azure via per-service API calls using the Azure SDK for Go (arm* packages), following the two-phase scan pattern. |
|
providers/azure/azureregions
Package azureregions is disco's static list of Azure ARM public-cloud locations.
|
Package azureregions is disco's static list of Azure ARM public-cloud locations. |
|
providers/gcp
Package gcp implements cloud resource discovery for Google Cloud Platform.
|
Package gcp implements cloud resource discovery for Google Cloud Platform. |
|
providers/gcp/gcpregions
Package gcpregions is disco's static list of supported GCP compute regions.
|
Package gcpregions is disco's static list of supported GCP compute regions. |
|
redact
Package redact applies provider-declared redaction rules to resource AttributesJSON at the store boundary.
|
Package redact applies provider-declared redaction rules to resource AttributesJSON at the store boundary. |
|
restype
Package restype defines the unified per-type Descriptor: one declaration site for everything disco knows about a resource type, replacing the four previously-separate per-type registrations (coverage emit, upstream alias, redaction rules, volatile fields) plus the unconditional managed flag.
|
Package restype defines the unified per-type Descriptor: one declaration site for everything disco knows about a resource type, replacing the four previously-separate per-type registrations (coverage emit, upstream alias, redaction rules, volatile fields) plus the unconditional managed flag. |
|
scanrun
Package scanrun wraps the orchestration core of `disco scan` so the engine is reusable outside the CLI front end (cmd/scan.go).
|
Package scanrun wraps the orchestration core of `disco scan` so the engine is reusable outside the CLI front end (cmd/scan.go). |
|
snapshot
Package snapshot defines the disco-snapshot envelope: a manifest carrying tool version, scan IDs, generated-at timestamp, and a SHA-256 of the frozen DB.
|
Package snapshot defines the disco-snapshot envelope: a manifest carrying tool version, scan IDs, generated-at timestamp, and a SHA-256 of the frozen DB. |
|
util
Package util provides small helper functions shared across provider packages.
|
Package util provides small helper functions shared across provider packages. |
|
volatile
Package volatile drops provider-declared volatile fields from resource AttributesJSON at the store boundary, BEFORE the version-comparison in Store.UpsertResources.
|
Package volatile drops provider-declared volatile fields from resource AttributesJSON at the store boundary, BEFORE the version-comparison in Store.UpsertResources. |
|
Package regions is the dependency-free public view of the cloud regions disco's scanners support, per provider.
|
Package regions is the dependency-free public view of the cloud regions disco's scanners support, per provider. |
|
all
Package all is the single wiring point that registers every provider's supported-region list into the codeberg.org/icearp/disco/regions registry for standalone consumers (e.g.
|
Package all is the single wiring point that registers every provider's supported-region list into the codeberg.org/icearp/disco/regions registry for standalone consumers (e.g. |
|
RDS IAM database authentication for the Postgres backend.
|
RDS IAM database authentication for the Postgres backend. |
Click to show internal directories.
Click to hide internal directories.