logs

package
v0.3.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	Client        *api.Client
	Region        string
	DefaultRegion string
	// AvailableRegions is the optional caller-supplied region set used when
	// `Region == "all"`. When empty the driver falls back to a small built-in
	// list of commercial-partition regions; a real probe via DescribeRegions
	// happens upstream in the EC2 driver and is not duplicated here.
	AvailableRegions []string
	// contains filtered or unexported fields
}

Driver enumerates AWS CloudWatch Logs log groups across one or all regions and surfaces them as the cloudlist `log` asset. Per-region failures are captured via PartialError so a single denied region does not abort the remaining cloudlist work.

func (*Driver) GetLogs

func (d *Driver) GetLogs(ctx context.Context) ([]schema.Log, error)

GetLogs returns one schema.Log per log group, surfaced as `<region>/<logGroupName>` with the storage size in description.

func (*Driver) PartialError

func (d *Driver) PartialError() error

PartialError returns the aggregated per-region errors collected during the last GetLogs call (nil when every region succeeded).

Jump to

Keyboard shortcuts

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