s3Tools

package module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 License: MIT Imports: 4 Imported by: 0

README

s3Tools

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBucketEncryption

func GetBucketEncryption(ctx context.Context, client BucketEncryption, bucketName string) (string, string)

GetBucketEncryption is a function in which gathers the encryption and encryption type of a S3 Bucket

func GetBucketLocation

func GetBucketLocation(ctx context.Context, client BucketLocation, bucketName string) (*s3.GetBucketLocationOutput, error)

GetBucketLocation is a function to return the region in which a S3 bucket exists.

func GetBucketLogging

func GetBucketLogging(ctx context.Context, client BucketLogging, bucketName string) (string, string)

GetBucketLogging is a function in which gathers the logging of a S3 Bucket

func GetBucketPolicyStatus

func GetBucketPolicyStatus(ctx context.Context, client BucketVisibility, bucketName string) bool

GetBucketPolicyStatus is a function that determines whether a S3 Bucket is public or not.

func GetBucketVersioning

func GetBucketVersioning(ctx context.Context, client BucketVersioning, bucketName string) string

GetBucketVersioning is a function in which gathers the version of a S3 Bucket

func ListBuckets

func ListBuckets(ctx context.Context, client BucketListing) (*s3.ListBucketsOutput, error)

ListBuckets is a function to list all S3 Buckets

Types

type BucketEncryption

type BucketEncryption interface {
	GetBucketEncryption(ctx context.Context, input *s3.GetBucketEncryptionInput, optFns ...func(*s3.Options)) (*s3.GetBucketEncryptionOutput, error)
}

BucketEncryption is an interface for the AWS API Call GetBucketEncryption

type BucketListing

type BucketListing interface {
	ListBuckets(ctx context.Context, input *s3.ListBucketsInput, optFns ...func(*s3.Options)) (*s3.ListBucketsOutput, error)
}

BucketListing is an interface for the AWS API Call List Buckets

type BucketLocation

type BucketLocation interface {
	GetBucketLocation(ctx context.Context, input *s3.GetBucketLocationInput, optFns ...func(*s3.Options)) (*s3.GetBucketLocationOutput, error)
}

BucketLocation is an interface for the AWS API Call GetBucketLocation

type BucketLogging

type BucketLogging interface {
	GetBucketLogging(ctx context.Context, input *s3.GetBucketLoggingInput, optFns ...func(*s3.Options)) (*s3.GetBucketLoggingOutput, error)
}

BucketLogging is an interface for the AWS API Call GetBucketLogging

type BucketVersioning

type BucketVersioning interface {
	GetBucketVersioning(ctx context.Context, input *s3.GetBucketVersioningInput, optFns ...func(*s3.Options)) (*s3.GetBucketVersioningOutput, error)
}

BucketVersioning is an interface for the AWS API Call GetBucketVersioning

type BucketVisibility

type BucketVisibility interface {
	GetBucketPolicyStatus(ctx context.Context, input *s3.GetBucketPolicyStatusInput, optFns ...func(*s3.Options)) (*s3.GetBucketPolicyStatusOutput, error)
}

BucketVisibility is an interface for the AWS API Call GetBucketPolicy

Jump to

Keyboard shortcuts

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