Documentation ¶
Index ¶
- type Lifecycle
- func (l *Lifecycle) Assert(t *testing.T, rules ...*s3.LifecycleRule) *Lifecycle
- func (l *Lifecycle) ExpDate(date time.Time) *Lifecycle
- func (l *Lifecycle) ExpDays(days int64) *Lifecycle
- func (l *Lifecycle) Filter(filter shared.Filter) *Lifecycle
- func (l *Lifecycle) FilterAnd(prefix string, tag ...*s3.Tag) *Lifecycle
- func (l *Lifecycle) FilterPrefix(value string) *Lifecycle
- func (l *Lifecycle) FilterTag(key, value string) *Lifecycle
- func (l *Lifecycle) First(t *testing.T, rules ...*s3.LifecycleRule) *Lifecycle
- func (l *Lifecycle) IsExp() *Lifecycle
- func (l *Lifecycle) Method(method string) *Lifecycle
- func (l *Lifecycle) Selected() *s3.LifecycleRule
- func (l *Lifecycle) Status(status string) *Lifecycle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lifecycle ¶
type Lifecycle struct {
// contains filtered or unexported fields
}
Lifecycle contains the necessary properties for filtering *s3.LifecycleRule objects
func New ¶
func New(client client.ConfigProvider, name string) *Lifecycle
New returns a new *Lifecycle
func (*Lifecycle) 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 rule if rules is not provided, *s3.LifecycleRule objects will be retreived from AWS
func (*Lifecycle) ExpDate ¶
ExpDate adds the ExpDate filter to the filter list the ExpDate filter: filters rules by ExpDate where 'date' provided is the expected Expiration Date value
func (*Lifecycle) ExpDays ¶
ExpDays adds the ExpDays filter to the filter list the ExpDays filter: filters rules by ExpDays where 'days' provided is the expected Expiration Days value
func (*Lifecycle) FilterAnd ¶
FilterAnd adds the FilterAnd filter to the filter list the FilterAnd filter: filters rules by Filter[And] where 'key and value' provided is the expected Tag key and value
func (*Lifecycle) FilterPrefix ¶
FilterPrefix adds the FilterPrefix filter to the filter list the FilterPrefix filter: filters rules by Filter[Prefix] where 'value' provided is the expected Prefix value
func (*Lifecycle) FilterTag ¶
FilterTag adds the FilterTag filter to the filter list the FilterTag filter: filters rules by Filter[Tag] where 'key and value' provided is the expected Tag key and value
func (*Lifecycle) First ¶
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 rules is not provided, *s3.LifecycleRule objects will be retreived from AWS
func (*Lifecycle) IsExp ¶
IsExp adds the IsExp filter to the filter list the IsExp filter: filters rules by whether they have an Expiration set
func (*Lifecycle) Method ¶
Method adds the Method filter to the filter list the Method filter: filters rules by Method where 'method' provided is the expected ID value
func (*Lifecycle) Selected ¶
func (l *Lifecycle) Selected() *s3.LifecycleRule
Selected returns the currently selected *s3.LifecycleRule