ilm

package
v0.0.0-...-c962c10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2022 License: AGPL-3.0 Imports: 10 Imported by: 0

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

ToConfig create lifecycle.Configuration based on LifecycleOptions

Jump to

Keyboard shortcuts

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