s3

package
v1.5.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfBucketInOneZone

func CheckIfBucketInOneZone(checkConfig commons.CheckConfig, buckets BucketAndNotInRegion, testName string)

func CheckIfBucketObjectVersioningEnabled

func CheckIfBucketObjectVersioningEnabled(checkConfig commons.CheckConfig, buckets []S3ToVersioning, testName string)

func CheckIfObjectLockConfigurationEnabled

func CheckIfObjectLockConfigurationEnabled(checkConfig commons.CheckConfig, buckets []S3ToObjectLock, testName string)

func CheckIfS3PublicAccessBlockEnabled

func CheckIfS3PublicAccessBlockEnabled(checkConfig commons.CheckConfig, s3toPublicBlockAccess []S3toPublicBlockAccess, testName string)

func CheckS3Location

func CheckS3Location(s aws.Config, bucket, region string) bool

func GetListS3

func GetListS3(s aws.Config) []types.Bucket

func GetListS3NotInRegion

func GetListS3NotInRegion(s aws.Config, region string) []types.Bucket

func OnlyBucketInRegion

func OnlyBucketInRegion(BucketAndNotInRegion BucketAndNotInRegion) []types.Bucket

func RunChecks

func RunChecks(wa *sync.WaitGroup, s aws.Config, c *commons.Config, queue chan []commons.Check)

Types

type BucketAndNotInRegion

type BucketAndNotInRegion struct {
	Buckets     []types.Bucket
	NotInRegion []types.Bucket
}

type S3ToEncryption

type S3ToEncryption struct {
	BucketName string
	Encrypted  bool
}

func GetS3ToEncryption

func GetS3ToEncryption(s aws.Config, b []types.Bucket) []S3ToEncryption

type S3ToObjectLock

type S3ToObjectLock struct {
	BucketName string
	ObjectLock bool
}

func GetS3ToObjectLock

func GetS3ToObjectLock(s aws.Config, b []types.Bucket) []S3ToObjectLock

type S3ToVersioning

type S3ToVersioning struct {
	BucketName string
	Versioning bool
}

func GetS3ToVersioning

func GetS3ToVersioning(s aws.Config, b []types.Bucket) []S3ToVersioning

type S3toPublicBlockAccess

type S3toPublicBlockAccess struct {
	BucketName string
	Config     bool
}

func GetS3ToPublicBlockAccess

func GetS3ToPublicBlockAccess(s aws.Config, b []types.Bucket) []S3toPublicBlockAccess

Jump to

Keyboard shortcuts

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