package
0.21.6
Repository: https://github.com/neuronlabs/neuron.git
Documentation: pkg.go.dev

# Functions

FileWithBucket create file with provided bucket.
FileWithDirectory create the file with given 'directory'.
GetMimeType gets the default mime type for given file extension.
GetWithBucket get file with provided bucket.
GetWithDirectory sets the get file options with 'directory'.
GetWithVersion gets the file with given version.
ListWithBucket sets the list bucket filter.
ListWithExtension sets the list extension filter.
ListWithLimit sets the list limit filter.
ListWithOffset sets the list offset filter.
PutWithOverwrite is the put option that forces the put to overwrite given file.

# Variables

ErrAlreadyOpened is an error thrown when the file is already opened.
ErrClosed is an error if the file is already closed.
ErrExists is an error if the file already exists.
ErrFileIsDir is an error if provided file name is a directory.
ErrFileName is an error for invalid file names.
ErrFileStore is the general error for this package.
ErrInternal is an internal error for this package.
ErrNotExists is an error when the file doesn't exists.
ErrNotOpened is an error if the file is not opened yet and wanted to be read.
ErrPermission is an error with the file permissions.
ErrStore is the error with the store by itself.
ErrVersionsNotAllowed is an error if the store doesn't support file versions.
MimeTypes are the file extension well-known mime types.

# Structs

FileOptions are the options file creating new file.
GetOptions are the options while getting the file.
ListOptions are the settings while listing the files.
PutOptions are the options used on putting the file.

# Interfaces

File is a basic interface for the file abstraction.
Metadater is an interface used.
Model is the interface that defines file model.
Store is an interface that allows to execute operation on files.

# Type aliases

FileOption is function that changes file options.
GetOption is an option function that set get options.
ListOption is a function that sets up list options.
PutOption is the function that changes the put options.