Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyRuleFields ¶
func ApplyRuleFields(dest *lifecycle.Rule, opts LifecycleOptions) *probe.Error
ApplyRuleFields applies non nil fields of LifcycleOptions to the existing lifecycle rule
func RemoveILMRule ¶
func RemoveILMRule(lfcCfg *lifecycle.Configuration, ilmID string) (*lifecycle.Configuration, *probe.Error)
RemoveILMRule - Remove the ILM rule (with ilmID) from the configuration in XML that is provided.
Types ¶
type LifecycleOptions ¶
type LifecycleOptions struct { ID string Status *bool Prefix *string Tags *string ObjectSizeLessThan *int64 ObjectSizeGreaterThan *int64 ExpiryDate *string ExpiryDays *string TransitionDate *string TransitionDays *string StorageClass *string ExpiredObjectDeleteMarker *bool NoncurrentVersionExpirationDays *int NewerNoncurrentExpirationVersions *int NoncurrentVersionTransitionDays *int NewerNoncurrentTransitionVersions *int NoncurrentVersionTransitionStorageClass *string ExpiredObjectAllversions *bool }
LifecycleOptions is structure to encapsulate
func GetLifecycleOptions ¶
func GetLifecycleOptions(ctx *cli.Context) (LifecycleOptions, *probe.Error)
GetLifecycleOptions create LifeCycleOptions based on cli inputs
func (LifecycleOptions) Filter ¶
func (opts LifecycleOptions) Filter() lifecycle.Filter
Filter returns lifecycle.Filter appropriate for opts
Click to show internal directories.
Click to hide internal directories.