alias

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 Alias

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

Alias contains the necessary properties for testing *kms.AliasListEntry objects

func New

func New(client client.ConfigProvider) *Alias

New returns a new *Alias

func (*Alias) Arn

func (a *Alias) Arn(arn string) *Alias

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

func (a *Alias) Assert(t *testing.T, aliases ...*kms.AliasListEntry) *Alias

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) Filter

func (a *Alias) Filter(filter shared.Filter) *Alias

Filter adds the 'filter' provided to the filter list

func (*Alias) First

func (a *Alias) First(t *testing.T, aliases ...*kms.AliasListEntry) *Alias

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

func (a *Alias) ID(id string) *Alias

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

func (a *Alias) Name(name string) *Alias

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

func (a *Alias) Policy(t *testing.T) *policy.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

Jump to

Keyboard shortcuts

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