Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PopulateILMDataForDisplay ¶
func PopulateILMDataForDisplay(ilmCfg *lifecycle.Configuration, rowCheck *map[string]int, alignedHdrLabels *[]string, cellDataNoTags *[][]string, cellDataWithTags *[][]string, tagRows *map[string][]string, showAll, showExpiry, showTransition bool)
PopulateILMDataForDisplay based on showDetails determined by user input, populate the ILM display table with information. Table is constructed row-by-row. Headers are first, then the rest of the rows.
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 Prefix string Status bool IsTagsSet bool IsStorageClassSet bool Tags string ExpiryDate string ExpiryDays string TransitionDate string TransitionDays string StorageClass string ExpiredObjectDeleteMarker bool NoncurrentVersionExpirationDays int NoncurrentVersionTransitionDays int NoncurrentVersionTransitionStorageClass string }
LifecycleOptions is structure to encapsulate
func GetLifecycleOptions ¶
func GetLifecycleOptions(ctx *cli.Context) LifecycleOptions
GetLifecycleOptions create LifeCycleOptions based on cli inputs
func (LifecycleOptions) ToConfig ¶
func (opts LifecycleOptions) ToConfig(config *lifecycle.Configuration) (*lifecycle.Configuration, *probe.Error)
ToConfig create lifecycle.Configuration based on LifecycleOptions
Click to show internal directories.
Click to hide internal directories.