report

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2021 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata

type Metadata struct {
	Imported     time.Time
	Generated    time.Time
	Account      string
	Organization string
}

Metadata includes information about the report, such as when the data was snapshotted and for what account

type Report

type Report struct {
	Metadata *Metadata
	Rows     []Row
}

func Generate

func Generate(connectionString string) (*Report, error)

Generate uses a connection string to postgres to produce a report assessing the risk of each resource policy that has been imported.

type Row

type Row struct {
	Arn              string
	Service          string
	ProviderType     string
	InOrgAccounts    []string
	ExternalAccounts []string
	IsPublic         bool
}

func (*Row) Access

func (r *Row) Access() string

Access returns a human-readable string describing who can access the resource associated with this Row

Jump to

Keyboard shortcuts

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