inventory

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Inventory

type Inventory struct {
	Region    string     `json:"region"`
	Resources []Resource `json:"resources"`
}

Inventory holds the scan results for a single region.

type Resource

type Resource struct {
	Type   string `json:"type"`
	Name   string `json:"name"`
	ARN    string `json:"arn,omitempty"`
	Status string `json:"status,omitempty"`
	Detail string `json:"detail,omitempty"`
}

Resource represents a single AWS resource managed by ludus.

type Scanner

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

Scanner discovers ludus-managed AWS resources.

func NewScanner

func NewScanner(awsCfg aws.Config, region string, ecrRepoNames []string, s3BucketPrefix string) *Scanner

NewScanner creates a Scanner from an AWS config.

func (*Scanner) Scan

func (s *Scanner) Scan(ctx context.Context) (*Inventory, error)

Scan discovers all ludus-managed resources in the account.

Jump to

Keyboard shortcuts

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