datasource

package
v0.0.85-test 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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateURL

func ValidateURL(typeName, urlStr string) (*url.URL, error)

ValidateURL validates a data source's URL.

The data source's type and URL must be provided. If successful, the valid URL object is returned, otherwise an error is returned.

Types

type URLValidationError

type URLValidationError struct {
	Err error

	URL string
}

URLValidationError represents an error from validating a data source URL.

func (URLValidationError) Error

func (e URLValidationError) Error() string

Error returns the error message.

func (URLValidationError) Unwrap

func (e URLValidationError) Unwrap() error

nolint:unused Unwrap returns the wrapped error. Used by errors package.

Jump to

Keyboard shortcuts

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