s3

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfBucketNoReplicationOtherRegion added in v1.6.0

func CheckIfBucketNoReplicationOtherRegion(checkConfig commons.CheckConfig, buckets []S3ToReplicationOtherRegion, 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, string)

Return true if the bucket is in the region, false with the correct region if not

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 S3ToReplicationOtherRegion added in v1.6.0

type S3ToReplicationOtherRegion struct {
	BucketName            string
	ReplicatedOtherRegion bool
	OtherRegion           string
}

func GetS3ToReplicationOtherRegion added in v1.6.0

func GetS3ToReplicationOtherRegion(s aws.Config, b []types.Bucket) []S3ToReplicationOtherRegion

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