bucket

package
v0.0.5-0...-3bd4ab3 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: CC0-1.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bucket

type Bucket struct {
	// contains filtered or unexported fields
}

Bucket contains properties for testing S3 Bucket objects

func New

func New(client client.ConfigProvider) *Bucket

New returns a new *Bucket

func (*Bucket) Assert

func (b *Bucket) Assert(t *testing.T) *Bucket

Assert executes the checker method (normally s3.Head) to verify the bucket with the name give to Name exists fails if bucket doesn't exist

func (*Bucket) Encryption

func (b *Bucket) Encryption() *encryption.Encryption

Encryption returns a new *encryption.Encryption instantiated with the current bucket name set by calling Name()

func (*Bucket) Lifecycle

func (b *Bucket) Lifecycle() *lifecycle.Lifecycle

Lifecycle returns a new *lifecycle.Lifecycle instantiated with the current bucket name set by calling Name()

func (*Bucket) Name

func (b *Bucket) Name(name string) *Bucket

Name sets the bucket name to use when calling Assert

func (*Bucket) Notification

func (b *Bucket) Notification() *notification.Notification

Notification returns a new *notification.Notification instantiated with the current bucket name set by calling Name()

func (*Bucket) Policy

func (b *Bucket) Policy() *policy.Policy

Policy returns a new *policy.Policy instantiated with the current bucket name set by calling Name()

func (*Bucket) PublicAccessBlock

func (b *Bucket) PublicAccessBlock() *pubaccblk.PublicAccessBlock

PublicAccessBlock returns a new *pubaccblk.PublicAccessBlock instantiated with the current bucket name set by calling Name()

Directories

Path Synopsis
Package pubaccblk provides methods and filters to test AWS S3 PublicAccessBlocks
Package pubaccblk provides methods and filters to test AWS S3 PublicAccessBlocks

Jump to

Keyboard shortcuts

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