s3

package
v6.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: MPL-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBucketPolicyNotFound = errors.New("s3 bucket policy not found")

ErrBucketPolicyNotFound returned for 404

View Source
var ErrBucketPublicAccessBlockNotFound = errors.New("s3 bucket public access block not found")

ErrBucketPublicAccessBlockNotFound returned for 404

Functions

func FindObject

func FindObject(ctx context.Context, client *s3.APIClient, data *objectResourceModel) (*s3.HeadObjectOutput, *s3.APIResponse, error)

FindObject finds the object.

func GetBucketPolicy

func GetBucketPolicy(ctx context.Context, client *s3.APIClient, bucketName string) (*s3.BucketPolicy, error)

GetBucketPolicy retrieves the policy of the bucket specified by bucketName

func GetBucketPublicAccessBlock

func GetBucketPublicAccessBlock(ctx context.Context, client *s3.APIClient, bucketName string) (*s3.BlockPublicAccessOutput, error)

GetBucketPublicAccessBlock retrieves the public access block for the bucket

func IsBucketDeleted

func IsBucketDeleted(ctx context.Context, client *s3.APIClient, bucket string) error

IsBucketDeleted checks if the bucket is deleted.

func NewBucketDataSource

func NewBucketDataSource() datasource.DataSource

NewBucketDataSource creates a new data source for the bucket resource.

func NewBucketPolicyDataSource

func NewBucketPolicyDataSource() datasource.DataSource

NewBucketPolicyDataSource creates a new data source for the bucket resource.

func NewBucketPolicyResource

func NewBucketPolicyResource() resource.Resource

NewBucketPolicyResource creates a new resource for the bucket resource.

func NewBucketPublicAccessBlockDataSource

func NewBucketPublicAccessBlockDataSource() datasource.DataSource

NewBucketPublicAccessBlockDataSource creates a new data source for the bucket public access block resource.

func NewBucketPublicAccessBlockResource

func NewBucketPublicAccessBlockResource() resource.Resource

NewBucketPublicAccessBlockResource creates a new resource for the bucket public access block resource.

func NewBucketResource

func NewBucketResource() resource.Resource

NewBucketResource creates a new resource for the bucket resource.

func NewObjectDataSource

func NewObjectDataSource() datasource.DataSource

NewObjectDataSource creates a new data source for object.

func NewObjectResource

func NewObjectResource() resource.Resource

NewObjectResource creates a new resource for the object resource.

Types

This section is empty.

Jump to

Keyboard shortcuts

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