cloudtrailprocessor

package
v0.0.0-...-4e65831 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cloudtrail

type Cloudtrail struct {
	Records []json.RawMessage
}

Cloudtrail cloudtrail document used to store audit records

type Copier

type Copier interface {
	Copy(ctx context.Context, bucket, key string) error
}

func NewCopier

func NewCopier(cfg flags.S3Processor, awscfg *aws.Config) Copier

NewProcessor setup a new s3 event processor

type S3API

type S3API interface {
	GetObjectWithContext(aws.Context, *s3.GetObjectInput, ...request.Option) (*s3.GetObjectOutput, error)
}

type S3Copier

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

Copier copies cloudtrail files between a source and destination bucket with filtering via rules

func (*S3Copier) Copy

func (cp *S3Copier) Copy(ctx context.Context, bucket, key string) error

type UploaderAPI

type UploaderAPI interface {
	UploadWithContext(aws.Context, *s3manager.UploadInput, ...func(*s3manager.Uploader)) (*s3manager.UploadOutput, error)
}

Jump to

Keyboard shortcuts

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