validate

package
v3.0.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CalculateHash     = "calculate-hash"
	CalculateHashHelp = `` /* 141-byte string literal not displayed */
)

Variables

This section is empty.

Functions

func NewCmdValidate

func NewCmdValidate() *cobra.Command

func NewCountingReader

func NewCountingReader(ioReader io.Reader, hashFunction string) io.Reader

Types

type ValidateFlags

type ValidateFlags struct {
	IndexFlags            *flag.IndexFlags
	OutputHookFlags       *flag.OutputHookFlags
	InputHookFlags        *flag.InputHookFlags
	FileWalkerFlags       flag.FileWalkerFlags
	FilterFlags           flag.FilterFlags
	WarcRecordOptionFlags flag.WarcRecordOptionFlags
	ConcurrencyFlags      flag.ConcurrencyFlags
}

func NewValidateFlags

func NewValidateFlags() ValidateFlags

func (ValidateFlags) AddFlags

func (f ValidateFlags) AddFlags(cmd *cobra.Command)

func (ValidateFlags) HashFunction

func (f ValidateFlags) HashFunction() string

func (ValidateFlags) OutputDir

func (f ValidateFlags) OutputDir() string

func (ValidateFlags) ToOptions

func (f ValidateFlags) ToOptions() (*ValidateOptions, error)

type ValidateOptions

type ValidateOptions struct {
	FileIndex *index.FileIndex

	FileWalker *filewalker.FileWalker
	// contains filtered or unexported fields
}

func (*ValidateOptions) Complete

func (o *ValidateOptions) Complete(cmd *cobra.Command, args []string) error

func (*ValidateOptions) Run

func (o *ValidateOptions) Run() error

func (*ValidateOptions) Validate

func (o *ValidateOptions) Validate() error

Jump to

Keyboard shortcuts

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