blob

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: AGPL-3.0 Imports: 6 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidKeyFormat = errors.New("Blob key is in invalid format")

ErrInvalidKeyFormat is returned when blob key is in invalid format

View Source
var ErrNotFound = errors.New("Blob not found")

ErrNotFound is returned when given blob is not found

Functions

func EnsureAuthorizedPrefix added in v0.19.0

func EnsureAuthorizedPrefix(ctx context.Context, path string)

EnsureAuthorizedPrefix panics if the path is invalid under the given context

func SanitizeFileName

func SanitizeFileName(fileName string) string

SanitizeFileName replaces invalid characters from given filename

func ValidateKey

func ValidateKey(key string) error

ValidateKey checks if key is is valid format

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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