Documentation
¶
Overview ¶
Package api exposes read-only JSON endpoints for dashboards and automation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
DefaultTenantID string
DefaultAccountID string
DefaultWindowDays int
MinObservationDays int
AuthToken string
}
Config supplies query defaults when request parameters are omitted.
type Store ¶
type Store interface {
Ping(context.Context) error
QueryPermissionUsage(context.Context, storage.UsageQuery) ([]storage.PermissionUsage, error)
GetCollectorCoverage(context.Context, time.Time) (storage.CollectorCoverage, error)
LatestIAMSnapshot(context.Context, string) (storage.IAMSnapshot, bool, error)
}
Store is the storage surface used by the query API.
Click to show internal directories.
Click to hide internal directories.