validations

package
v1.8.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TableSchemaMap = model.TableSchema{
		"id":  "int",
		"val": "string",
	}
	PayloadMap = map[string]interface{}{
		"id":  1,
		"val": "RudderStack",
	}
	AlterColumnMap = model.TableSchema{
		"val_alter": "string",
	}
	Namespace = "rudderstack_setup_test"
	Table     = "setup_test_staging"
)

Functions

func CreateTempLoadFile

func CreateTempLoadFile(dest *backendconfig.DestinationT) (string, error)

CreateTempLoadFile creates a temporary load file

func Init

func Init()

func StepsToValidate added in v1.7.0

func StepsToValidate(dest *backendconfig.DestinationT) *model.StepsResponse

func Validate added in v1.7.0

Validate the destination by running all the validation steps

Types

type DestinationValidator

type DestinationValidator interface {
	Validate(dest *backendconfig.DestinationT) *model.DestinationValidationResponse
}

func NewDestinationValidator

func NewDestinationValidator() DestinationValidator

type Validator added in v1.7.0

type Validator interface {
	Validate() error
}

func NewValidator added in v1.7.0

func NewValidator(step string, dest *backendconfig.DestinationT) (Validator, error)

Jump to

Keyboard shortcuts

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