preparedDataTable

package
v0.0.0-...-f36794c Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

type Cmd struct {
	// Positional arguments
	TableName string `arg:"" name:"table" help:"Name of the DynamoDB table from which to purge data."`

	// Flags
	PurgeFFIS        bool                `help:"Purge all item attributes sourced from FFIS.org data (ignored if --purge-all is given)."`
	PurgeGov         bool                `help:"Purge all item attributes sourced from Grants.gov data (ignored if --purge-all is given)."`
	KeepRevisionIDs  bool                `name:"keep-revision-ids" help:"Retain item revision_id attributes when purging data (ignored if --purge-all is given)."`
	PurgeAll         bool                `help:"Delete all table items completely."`
	ReadConcurrency  ct.ConcurrencyLimit `default:"1" help:"Max DynamoDB parallel scan workers."`
	WriteConcurrency ct.ConcurrencyLimit `default:"10" help:"Max concurrent batch-write operations."`
	TotalsAfter      ct.TotalsAfter      `default:"1000" help:"Log DynamoDB item totals after this many successful/failed deletions (silent if 0)."`
	IgnoreStreams    bool                `help:"Purge data even if the DynamoDB table has an active stream. Not recommended."`
	DryRun           bool                `help:"Dry run only - no DynamoDB table items will be modified or deleted."`
	// contains filtered or unexported fields
}

func (*Cmd) AfterApply

func (cmd *Cmd) AfterApply(app *kong.Kong) error

func (*Cmd) BeforeApply

func (cmd *Cmd) BeforeApply(app *kong.Kong, logger *log.Logger) error

func (*Cmd) Run

func (cmd *Cmd) Run(app *kong.Kong) error

type DDBItem

type DDBItem map[string]types.AttributeValue

Aliases

Jump to

Keyboard shortcuts

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