blob

package
v0.0.0-...-acda5ee Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

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

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