validation

package
v0.30.3 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateTransfer

func ValidateTransfer(c Config, path string) error

Types

type ChecksumExistsValidator

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

ChecksumExistsValidator is a Validator that checks...

func (ChecksumExistsValidator) Valid

func (v ChecksumExistsValidator) Valid() error

type Config

type Config struct {
	ChecksumsCheckEnabled bool
}

func (Config) IsEnabled

func (c Config) IsEnabled() bool

type Validator

type Validator interface {
	Valid() error
}

Validator is the interface that all validators must implement.

Jump to

Keyboard shortcuts

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