package
2.85.0+incompatible
Repository: https://github.com/transcom/mymove.git
Documentation: pkg.go.dev
# Functions
ComputeChecksum calculates the SHA256 checksum for the provided data.
DetectContentType leverages http.DetectContentType to identify the content type of the provided data.
InitStorage initializes the storage backend.
NewFilesystem creates a new Filesystem struct using the provided FilesystemParams.
NewFilesystemHandler returns an Handler that adds a Content-Type header so that files are handled properly by the browser.
NewFilesystemParams returns FilesystemParams after checking path.
NewMemory creates a new Memory struct using the provided MemoryParams.
NewMemoryHandler returns an Handler that adds a Content-Type header so that files are handled properly by the browser.
NewMemoryParams returns default values for MemoryParams.
NewS3 creates a new S3 using the provided AWS session.
# Structs
Filesystem is a storage backend that uses the local filesystem.
FilesystemParams contains parameter for instantiating a Filesystem storage backend.
Memory is a storage backend that uses an in memory filesystem.
MemoryParams contains parameter for instantiating a Memory storage backend.
S3 implements the file storage API using S3.
StoreResult represents the result of a call to Store().
# Interfaces
FileStorer is the set of methods needed to store and retrieve objects.