cmd

package
v0.0.0-...-fd683d2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2019 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "0.1.0"

Version is set by main during build

Variables

View Source
var GitCommit string

GitCommit is set by main during build

Functions

func Download

func Download(svc *s3.S3, s3Uri string, destination string) error

Download downloads a file to the local filesystem using s3downloader

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func Ls

func Ls(svc *s3.S3, s3Uris []string, recursive bool, delimiter string, searchDepth int, keyRegex string) (chan *s3wrapper.ListOutput, error)

Ls lists S3 keys and prefixes using svc, s3Uris specifies which S3 prefixes/keys to list, recursive tells whether or not to list everything under s3Uris, delimiter tells which character to use as the delimiter for listing prefixes, searchDepth determines how many prefixes to list before parallelizing list calls, keyRegex is a regex filter on Keys

Types

This section is empty.

Jump to

Keyboard shortcuts

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