Documentation ¶
Index ¶
- func CreateTempLoadFile(dest *backendconfig.DestinationT) (string, error)
- func Init()
- func StepsToValidate(dest *backendconfig.DestinationT) *model.StepsResponse
- func Validate(ctx context.Context, req *model.ValidationRequest) (*model.ValidationResponse, error)
- type DestinationValidator
- type Validator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTempLoadFile ¶
func CreateTempLoadFile(dest *backendconfig.DestinationT) (string, error)
CreateTempLoadFile creates a temporary load file
func StepsToValidate ¶ added in v1.7.0
func StepsToValidate(dest *backendconfig.DestinationT) *model.StepsResponse
func Validate ¶ added in v1.7.0
func Validate(ctx context.Context, req *model.ValidationRequest) (*model.ValidationResponse, error)
Validate the destination by running all the validation steps
Types ¶
type DestinationValidator ¶
type DestinationValidator interface {
Validate(ctx context.Context, dest *backendconfig.DestinationT) *model.DestinationValidationResponse
}
func NewDestinationValidator ¶
func NewDestinationValidator() DestinationValidator
type Validator ¶ added in v1.7.0
func NewValidator ¶ added in v1.7.0
func NewValidator(ctx context.Context, step string, dest *backendconfig.DestinationT) (Validator, error)
Click to show internal directories.
Click to hide internal directories.