Documentation ¶
Index ¶
- type Alias
- func (a *Alias) Arn(arn string) *Alias
- func (a *Alias) Assert(t *testing.T, aliases ...*kms.AliasListEntry) *Alias
- func (a *Alias) Filter(filter shared.Filter) *Alias
- func (a *Alias) First(t *testing.T, aliases ...*kms.AliasListEntry) *Alias
- func (a *Alias) ID(id string) *Alias
- func (a *Alias) Key(t *testing.T) *kms.KeyMetadata
- func (a *Alias) Name(name string) *Alias
- func (a *Alias) Policy(t *testing.T) *policy.Policy
- func (a *Alias) Selected() *kms.AliasListEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alias ¶
type Alias struct {
// contains filtered or unexported fields
}
Alias contains the necessary properties for testing *kms.AliasListEntry objects
func (*Alias) Arn ¶
Arn adds the Arn filter to the filter list the Arn filter: filters aliases by Arn where 'arn' provided is the expected Arn value
func (*Alias) Assert ¶
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 alias if aliases is not provided, *kms.AliasListEntry objects will be retreived from AWS
func (*Alias) First ¶
First applies all filters that have been called, resets the list of filters, fails the test if there are no matches, and stores the first match if aliases is not provided, *kms.AliasListEntry objects will be retreived from AWS
func (*Alias) ID ¶
ID adds the ID filter to the filter list the ID filter: filters aliases by ID where 'id' provided is the expected TargetKeyId value
func (*Alias) Key ¶
func (a *Alias) Key(t *testing.T) *kms.KeyMetadata
Key returns the currently selected Aliases' targeted *kms.KeyMetadata
func (*Alias) Name ¶
Name adds the Name filter to the filter list the Name filter: filters aliases by Name where 'name' provided is the expected PolicyName value
func (*Alias) Policy ¶
Policy returns a newly instantiated *policy.Policy using the TargetKeyId as the required keyID value requires a prior call to Assert or First to "select" the Alias whose TargetKeyId will be used
func (*Alias) Selected ¶
func (a *Alias) Selected() *kms.AliasListEntry
Selected returns the currently selected *kms.AliasListEntry