options

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	PartSize              int64  `short:"p" long:"part-size" description:"Part size in bytes of parts to be downloaded"`
	Concurrency           int    `short:"c" long:"concurrency" description:"Download concurrency"`
	BufferSize            int    `short:"b" long:"buffer-size" description:"Size of download buffer in bytes"`
	Checksum              bool   `long:"checksum" description:"Compare checksum if downloading or place checksum in metadata if uploading"`
	Recursive             bool   `short:"r" long:"recursive" description:"Copy directories or folders recursively"`
	Version               bool   `long:"version" description:"Print the current version"`
	S3Url                 string `` /* 135-byte string literal not displayed */
	MaxRetries            int    `long:"max-retries" description:"Max per chunk retries" default:"3"`
	DisableSSL            bool   `long:"disable-ssl" description:"Disable SSL"`
	FileCachedCredentials bool   `long:"file-cached-credentials" description:"Cache AWS credentials to the file system"`
	Verbose               bool   `short:"v" long:"verbose" description:"verbose logging"`
	Positional            struct {
		Source      flags.Filename `description:"Source to copy from"`
		Destination flags.Filename `description:"Destination to copy to (Optional, defaults to source's base name)"`
	} `positional-args:"yes"`
}

Options - the options passed to the executable

func ParseArgs

func ParseArgs(args []string) (Options, error)

ParseArgs wraps flags.ParseArgs and adds system-dependent defaults

Jump to

Keyboard shortcuts

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