validator

package module
v0.0.0-...-b99e5f4 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidARN

func IsValidARN(fl validator.FieldLevel) bool

IsValidObjectName verifies an object name in accordance with Amazon's requirements.

See: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html

func IsValidBucketName

func IsValidBucketName(fl validator.FieldLevel) bool

IsValidBucketName verifies that a bucket name is in accordance with Amazon's requirements (i.e. DNS naming conventions). It must be 3-63 characters long, and it must be a sequence of one or more labels separated by periods. Each label can contain lowercase ascii letters, decimal digits and hyphens, but must not begin or end with a hyphen. See: http://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html

func IsValidDynamoDBTable

func IsValidDynamoDBTable(fl validator.FieldLevel) bool

func IsValidObjectName

func IsValidObjectName(fl validator.FieldLevel) bool

IsValidObjectName verifies an object name in accordance with Amazon's requirements. It cannot exceed 1024 characters and must be a valid UTF8 string.

See: http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html

func New

func New() *validator.Validate

New returns a new instance of 'validate' with sane defaults and AWS addons.

Types

This section is empty.

Jump to

Keyboard shortcuts

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