validate

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BucketName

func BucketName(name string) error

BucketName validates the bucket name according to AWS S3 naming rules and protects against path traversal attacks.

func Key

func Key(key string) error

Key validates S3 object key according to AWS S3 specifications.

AWS S3 object key naming rules: - Keys can be up to 1024 bytes in length - Keys can contain any UTF-8 character - However, we add security constraints to prevent path traversal attacks

func Prefix

func Prefix(prefix string) error

Prefix validates S3 object prefix for listing operations.

Prefixes are used to filter objects in ListObjects operations. They follow similar rules to keys but are more lenient since they're for filtering. An empty prefix is valid (lists all objects).

Types

This section is empty.

Jump to

Keyboard shortcuts

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