validators

package
v1.10.3 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInvalidArgumentError

func NewInvalidArgumentError(field string, value string) error

func NewInvalidFilterError

func NewInvalidFilterError(entity common.Entity, propertyEntity common.Entity) error

func NewMissingArgumentError

func NewMissingArgumentError(field string) error

func ValidateArtifact

func ValidateArtifact(artifact *datacatalog.Artifact) error

func ValidateArtifactFilterTypes

func ValidateArtifactFilterTypes(filters []*datacatalog.SinglePropertyFilter) error

Artifacts cannot be filtered across Datasets

func ValidateDatasetID

func ValidateDatasetID(ds *datacatalog.DatasetID) error

Validate that the DatasetID has all the fields filled

func ValidateEmptyArtifactData

func ValidateEmptyArtifactData(artifactData []*datacatalog.ArtifactData) error

func ValidateEmptyStringField

func ValidateEmptyStringField(field, fieldName string) error

func ValidateGetArtifactRequest

func ValidateGetArtifactRequest(request *datacatalog.GetArtifactRequest) error

func ValidateListArtifactRequest

func ValidateListArtifactRequest(request *datacatalog.ListArtifactsRequest) error

Validate the list request and format the request with proper defaults if not provided

func ValidateListDatasetsRequest

func ValidateListDatasetsRequest(request *datacatalog.ListDatasetsRequest) error

Ensure list Datasets request is properly constructed

func ValidatePagination

func ValidatePagination(options *datacatalog.PaginationOptions) error

Validate the pagination options and set default limits

func ValidatePartitions

func ValidatePartitions(datasetPartitionKeys []string, artifactPartitions []*datacatalog.Partition) error

func ValidateTag

func ValidateTag(tag *datacatalog.Tag) error

func ValidateToken

func ValidateToken(token string) error

The token is a string that should be opaque to the client It represents the offset as an integer encoded as a string, but in the future it can be a string that encodes anything

func ValidateUniquePartitionKeys

func ValidateUniquePartitionKeys(partitionKeys []string) error

Validate that the partition keys are unique strings

func ValidateUpdateArtifactRequest

func ValidateUpdateArtifactRequest(request *datacatalog.UpdateArtifactRequest) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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