Documentation ¶
Index ¶
- type Encryption
- func (e *Encryption) Alg(alg string) *Encryption
- func (e *Encryption) Assert(t *testing.T, rules ...*s3.ServerSideEncryptionRule) *Encryption
- func (e *Encryption) Filter(filter shared.Filter) *Encryption
- func (e *Encryption) First(t *testing.T, rules ...*s3.ServerSideEncryptionRule) *Encryption
- func (e *Encryption) ID(id string) *Encryption
- func (e *Encryption) IsSSE() *Encryption
- func (e *Encryption) Selected() *s3.ServerSideEncryptionRule
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