resourceexplorer2

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: May 24, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package resourceexplorer2 serves the AWS Resource Explorer 2 REST-JSON protocol against a *resourcediscovery.Engine.

Resource Explorer maintains stateful Views (saved filter expressions) and Indexes (per-region resource catalogs). This handler stores both in memory and routes Search/ListResources through the engine.

Filter language: a documented subset of real Resource Explorer query syntax. Supported tokens:

service:<name>          (e.g., service:s3)
tag.<key>:<value>       (e.g., tag.env:prod)
region:<name>           (e.g., region:us-east-1)

Unknown tokens are tolerated and ignored. Real Resource Explorer supports a wider grammar; tighten this as later phases need.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler serves Resource Explorer 2 REST-JSON requests.

func New

func New(engine *resourcediscovery.Engine, accountID, region string) *Handler

New returns a Resource Explorer 2 handler.

func (*Handler) Matches

func (*Handler) Matches(r *http.Request) bool

Matches returns true for POST requests whose path is one of the known Resource Explorer 2 operations.

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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