report

package
v0.0.0-...-d2a275e Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetReportAccount

func GetReportAccount(report string) string

Types

type Report

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

Report is a struct for report

func NewReport

func NewReport(bucketName string, awsRegion string, csvFileName string) (Report, error)

NewReport creates new report object

func (*Report) GenerateReports

func (rep *Report) GenerateReports(lastReports []string) (Reports, error)

GenerateReports generates reports

func (*Report) GetAccountOwners

func (rep *Report) GetAccountOwners() (map[string]string, error)

GetAccountOwners gets account owners

func (*Report) GetLastReports

func (rep *Report) GetLastReports(files []string) ([]string, error)

GetLastReport gets the last report dir from the bucket.

func (*Report) GetReportUsers

func (rep *Report) GetReportUsers(reportName string) ([]User, error)

GetReport gets report

func (*Report) ListBucket

func (rep *Report) ListBucket() ([]string, error)

ListBucket lists the contents of an s3 bucket.

type Reports

type Reports map[string]User

Reports is a struct for reports

type User

type User struct {
	UserName        string
	Created         string
	PasswordEnabled string
	// contains filtered or unexported fields
}

User is a struct for user

Jump to

Keyboard shortcuts

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