encryption

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Encryption

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

Encryption contains the necessary properties for filtering *s3.ServerSideEncryptionRule objects

func New

func New(client client.ConfigProvider, name string) *Encryption

New returns a new *Encryption

func (*Encryption) Alg

func (e *Encryption) Alg(alg string) *Encryption

Alg adds the Alg filter to the filter list the Alg filter: filters rules by SSEAlgorithm where 'alg' provided is the expected SSEAlgorithm value

func (*Encryption) Assert

func (e *Encryption) Assert(t *testing.T, rules ...*s3.ServerSideEncryptionRule) *Encryption

Assert applies all filters that have been called, resets the list of filters, fails the test if there is not exactly one match, and stores the matched rule if rule is not provided, *s3.ServerSideEncryptionRule objects will be retreived from AWS

func (*Encryption) Filter

func (e *Encryption) Filter(filter shared.Filter) *Encryption

Filter adds the 'filter' provided to the filter list

func (*Encryption) First

func (e *Encryption) First(t *testing.T, rules ...*s3.ServerSideEncryptionRule) *Encryption

First applies all filters that have been called, resets the list of filters, fails the test if there is not exactly one match, and stores the matched rule if rule is not provided, *s3.ServerSideEncryptionRule objects will be retreived from AWS

func (*Encryption) ID

func (e *Encryption) ID(id string) *Encryption

ID adds the ID filter to the filter list the ID filter: filters rules by KMSMasterKeyID where 'id' provided is the expected KMSMasterKeyID value

func (*Encryption) IsSSE

func (e *Encryption) IsSSE() *Encryption

IsSSE adds the IsSSE filter to the filter list the IsSSE filter: filters rules by whether they have ApplyServerSideEncryptionByDefault set

func (*Encryption) Selected

func (e *Encryption) Selected() *s3.ServerSideEncryptionRule

Selected returns the currently selected *s3.ServerSideEncryptionRule

Jump to

Keyboard shortcuts

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