package
0.0.0-20210118082621-7f33b96c2c55
Repository: https://github.com/mirisbowring/primboard.git
Documentation: pkg.go.dev

# Functions

CreateFile writes a reader to the filesystem to as passed absolute filename 0 -> ok 1 -> could not create file 2 -> could not write file.
CreateFileFromMultipart creates the file on the filesystem for the user 0 -> ok 1 -> unknown transmission type 2 -> could not create path 3 -> could not create file 4 -> could not copy uploaded file into created file.
CreateKeycloakClient parses a tls.Config (if passed) and authenticates to the passed keycloak api.
CreateThumbnail uses ffmpeg to generate a thumbnail for the given reader.
DeleteFile deletes the specified file for the specified user.
DeleteFiles deletes all content from specified path.
DeleteShares deletes the file and all it's hardlinks returns a list of group/file maps that has failed.
GetDirectories lists all directories from specified path returns [](dirs in path), [](files in path).
GetSessionByUser Returns the session for the passed user if exist.
GetSessionByUsername returns the session for the passed username if exist.
LinkUser creates a symlink for the user folder from basepath to token link in targetpath 0 -> ok || 1 -> could not create symlink.
NodeAuthentication can be called by the server to authenticate or unauthenticate a user from a node.
ParseFileName parses the filename from hash, username and extension (thumb toggle).
ParseThumbnailName accepts a file like "abcd.xyz" and adds "_thumb" right before the dot.
RemoveFile removes the file and writes an error response if fails.
RemoveSession finds the entry with the passed token and deletes it.
ShareFiles tries to hardlink the specified files to the specified groups returns a list of file/group maps, the sharing process has failed for.
UnlinkUser removes the symlink for the token from targetPath 0 -> ok || 1 -> could not delete symlink.