Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SelectRunner prompt.SelectRunner = prompt.GetSelectRunner("Select operation", []string{"search", "clean"}) AccessKeyRunner prompt.PromptRunner = prompt.GetPromptRunner("Provide AWS Access Key", nil) SecretKeyRunner prompt.PromptRunner = prompt.GetPromptRunner("Provide AWS Secret Key", nil) RegionRunner prompt.PromptRunner = prompt.GetPromptRunner("Provide AWS Region", nil) BucketRunner prompt.PromptRunner = prompt.GetPromptRunner("Provide AWS Bucket Name", nil) )
Functions ¶
This section is empty.
Types ¶
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 // Region is the region of the target bucket Region string // VerboseLog is the verbosity of the logging library VerboseLog bool // Interactive is the decision of that if you want to use interactive feature Interactive bool // BannerFilePath is the relative path to the banner file BannerFilePath string }
RootOptions contains frequent command line and application options.
func GetRootOptions ¶
func GetRootOptions() *RootOptions
GetRootOptions returns the pointer of S3CleanerOptions
func (*RootOptions) InitFlags ¶
func (opts *RootOptions) InitFlags(cmd *cobra.Command)
func (*RootOptions) PromptAccessCredentials ¶ added in v0.1.1
func (opts *RootOptions) PromptAccessCredentials(accessKeyRunner, secretKeyRunner, bucketRunner, regionRunner prompt.PromptRunner) error
func (*RootOptions) SetAccessCredentialsFromEnv ¶
func (opts *RootOptions) SetAccessCredentialsFromEnv() error
func (*RootOptions) SetAccessFlagsRequired ¶ added in v0.0.3
func (opts *RootOptions) SetAccessFlagsRequired(cmd *cobra.Command)
func (*RootOptions) SetZeroValues ¶ added in v0.0.3
func (opts *RootOptions) SetZeroValues()
Click to show internal directories.
Click to hide internal directories.