Documentation ¶
Index ¶
- Variables
- func FindObject(ctx context.Context, client *s3.APIClient, data *objectResourceModel) (*s3.HeadObjectOutput, *s3.APIResponse, error)
- func GetBucketPolicy(ctx context.Context, client *s3.APIClient, bucketName string) (*s3.BucketPolicy, error)
- func GetBucketPublicAccessBlock(ctx context.Context, client *s3.APIClient, bucketName string) (*s3.BlockPublicAccessOutput, error)
- func IsBucketDeleted(ctx context.Context, client *s3.APIClient, bucket string) error
- func NewBucketDataSource() datasource.DataSource
- func NewBucketPolicyDataSource() datasource.DataSource
- func NewBucketPolicyResource() resource.Resource
- func NewBucketPublicAccessBlockDataSource() datasource.DataSource
- func NewBucketPublicAccessBlockResource() resource.Resource
- func NewBucketResource() resource.Resource
- func NewObjectDataSource() datasource.DataSource
- func NewObjectResource() resource.Resource
Constants ¶
This section is empty.
Variables ¶
var ErrBucketPolicyNotFound = errors.New("s3 bucket policy not found")
ErrBucketPolicyNotFound returned for 404
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 ¶
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 ¶
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 ¶
NewBucketPublicAccessBlockResource creates a new resource for the bucket public access block resource.
func NewBucketResource ¶
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 ¶
NewObjectResource creates a new resource for the object resource.
Types ¶
This section is empty.