options

package
v1.0.19 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 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 ConfirmRunnerKey added in v1.0.19

type ConfirmRunnerKey struct{}

type LoggerKey

type LoggerKey struct{}

type OptsKey

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
	// Region is the region of the target bucket
	Region string
	// VerboseLog is the verbosity of the logging library
	VerboseLog bool
	// BannerFilePath is the relative path to the banner file
	BannerFilePath string
	// AutoApprove is the boolean flag that lets you bypass approval before non read only operations
	AutoApprove bool
	// DryRun is the boolean flag that lets you see what will be changed before non read only operations
	DryRun bool
}

RootOptions contains frequent command line and application options.

func GetMockedRootOptions added in v1.0.10

func GetMockedRootOptions() *RootOptions

func GetRootOptions

func GetRootOptions() *RootOptions

func (*RootOptions) InitFlags

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

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()

type S3SvcKey added in v0.0.3

type S3SvcKey struct{}

Jump to

Keyboard shortcuts

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