tool

package
v0.0.0-...-d433642 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Bucket          string
	CaseInsensitive bool
	KeepDir         string
	KeyRegexp       *regexp.Regexp
	NumWorkers      int
	Region          string
	Regexps         []*regexp.Regexp
	RegexStrings    regxStrs
	Keys            []string
}

Config has all the settings necessary for the tool to run

type Instance

type Instance struct {
	// contains filtered or unexported fields
}

Instance performs the retrieval of objects, text searching and, if applicable, local retention of objects that contain matches.

func NewInstance

func NewInstance(config Config) (Instance, error)

NewInstance generates a toolInstance using the passed-in Config

func (*Instance) GetKeys

func (ti *Instance) GetKeys() error

GetKeys pulls all the object keys down from the S3 bucket, compares them to KeyRegexp and adds any matches to Config.Keys

func (Instance) Run

func (ti Instance) Run() (map[string][]string, []error)

Run does the final work of pulling objects down and matching them against the regex(es)

Jump to

Keyboard shortcuts

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