Help us shape the future of Go! Take the 2026 Go Developer Survey

validator

package
v0.33.9 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2025 License: Apache-2.0 Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBodyDataSize = errors.New("data size exceeds max chunk size of 65536 bytes")
View Source
var ErrPaginationSize = errors.New("pagination size must be >= 1 and <= 100")

Functions

func Body

func Body(msg *dsm3.Body) error

func CheckPermissionRequest

func CheckPermissionRequest(msg *dsr3.CheckPermissionRequest) error

CheckPermissionRequest gets handled by CheckRequest, hence returns nil.

func CheckRelationRequest

func CheckRelationRequest(msg *dsr3.CheckRelationRequest) error

CheckRelationRequest gets handled by CheckRequest, hence returns nil.

func CheckRequest

func CheckRequest(msg *dsr3.CheckRequest) error

func ChecksRequest

func ChecksRequest(msg *dsr3.ChecksRequest) error

func DeleteManifestRequest

func DeleteManifestRequest(msg *dsm3.DeleteManifestRequest) error

func DeleteObjectRequest

func DeleteObjectRequest(msg *dsw3.DeleteObjectRequest) error

func DeleteRelationRequest

func DeleteRelationRequest(msg *dsw3.DeleteRelationRequest) error

func DisplayName

func DisplayName(fld Field, val string) error

func Etag

func Etag(fld Field, val string) error

func GetGraphRequest

func GetGraphRequest(msg *dsr3.GetGraphRequest) error

func GetManifestRequest

func GetManifestRequest(msg *dsm3.GetManifestRequest) error

func GetObjectManyRequest

func GetObjectManyRequest(msg *dsr3.GetObjectManyRequest) error

func GetObjectRequest

func GetObjectRequest(msg *dsr3.GetObjectRequest) error

func GetObjectsRequest

func GetObjectsRequest(msg *dsr3.GetObjectsRequest) error

func GetRelationRequest

func GetRelationRequest(msg *dsr3.GetRelationRequest) error

func GetRelationsRequest

func GetRelationsRequest(msg *dsr3.GetRelationsRequest) error

nolint: cyclop

func IdentifierTypePresence

func IdentifierTypePresence(idFld, typeFld Field, idVal, typeVal string) error

IdentifierTypePresence desc: Identifiers always require a type to be specified.

func ImportRequest

func ImportRequest(msg *dsi3.ImportRequest) error

func InstanceIdentifier

func InstanceIdentifier(fld Field, val string) error

func Metadata

func Metadata(msg *dsm3.Metadata) error

func Object

func Object(msg *dsc3.Object) error

func ObjectIdentifier

func ObjectIdentifier(msg *dsc3.ObjectIdentifier) error

func PaginationRequest

func PaginationRequest(msg *dsc3.PaginationRequest) error

func Relation

func Relation(msg *dsc3.Relation) error

func RelationIdentifier

func RelationIdentifier(msg *dsc3.RelationIdentifier) error

func SetManifestRequest

func SetManifestRequest(msg *dsm3.SetManifestRequest) error

func SetObjectRequest

func SetObjectRequest(msg *dsw3.SetObjectRequest) error

func SetRelationRequest

func SetRelationRequest(msg *dsw3.SetRelationRequest) error

func TypeIdentifier

func TypeIdentifier(fld Field, val string) error

Types

type Field

type Field string

Jump to

Keyboard shortcuts

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