Documentation ¶
Index ¶
- func NewInvalidArgumentError(field string, value string) error
- func NewInvalidFilterError(entity common.Entity, propertyEntity common.Entity) error
- func NewMissingArgumentError(field string) error
- func ValidateArtifact(artifact *datacatalog.Artifact) error
- func ValidateArtifactFilterTypes(filters []*datacatalog.SinglePropertyFilter) error
- func ValidateDatasetID(ds *datacatalog.DatasetID) error
- func ValidateEmptyArtifactData(artifactData []*datacatalog.ArtifactData) error
- func ValidateEmptyStringField(field, fieldName string) error
- func ValidateGetArtifactRequest(request *datacatalog.GetArtifactRequest) error
- func ValidateListArtifactRequest(request *datacatalog.ListArtifactsRequest) error
- func ValidateListDatasetsRequest(request *datacatalog.ListDatasetsRequest) error
- func ValidatePagination(options *datacatalog.PaginationOptions) error
- func ValidatePartitions(datasetPartitionKeys []string, artifactPartitions []*datacatalog.Partition) error
- func ValidateTag(tag *datacatalog.Tag) error
- func ValidateToken(token string) error
- func ValidateUniquePartitionKeys(partitionKeys []string) error
- func ValidateUpdateArtifactRequest(request *datacatalog.UpdateArtifactRequest) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInvalidArgumentError ¶
func NewInvalidFilterError ¶
func NewMissingArgumentError ¶
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 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 ¶
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 ¶
Validate that the partition keys are unique strings
func ValidateUpdateArtifactRequest ¶
func ValidateUpdateArtifactRequest(request *datacatalog.UpdateArtifactRequest) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.