options

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoggerKey added in v0.2.3

type LoggerKey struct{}

type OptsKey added in v0.2.3

type OptsKey struct{}

type RootOptions

type RootOptions struct {
	// AccessKey is the access key credentials for accessing AWS over client
	AccessKey string
	// SecretKey is the secret key credentials for accessing AWS over client
	SecretKey string
	// BucketName is the name of target bucket
	BucketName string
	// FileNamePrefix is the prefix of target bucket objects, means it can be used for folder-based object grouping buckets
	FileNamePrefix string
	// Region is the region of the target bucket
	Region string
	// VerboseLog is the verbosity of the logging library
	VerboseLog bool
}

RootOptions contains frequent command line and application options.

func GetRootOptions

func GetRootOptions() *RootOptions

GetRootOptions returns the pointer of S3CleanerOptions

func (*RootOptions) InitFlags added in v0.2.5

func (opts *RootOptions) InitFlags(cmd *cobra.Command)

func (*RootOptions) SetAccessCredentialsFromEnv added in v0.2.5

func (opts *RootOptions) SetAccessCredentialsFromEnv(cmd *cobra.Command) error

Jump to

Keyboard shortcuts

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