Categorygithub.com/DataManager-Go/libdatamanager
modulepackage
1.4.4
Repository: https://github.com/datamanager-go/libdatamanager.git
Documentation: pkg.go.dev

# README

libDataManager

A go package implementing the DataManager protocol

# Functions

ChiperToInt cipter to int.
DecryptAES decrypt stuff.
DecryptAGE decrypt stuff.
EncryptAES encrypts input stream and writes it to out.
EncryptAGE encrypts input stream and writes it to out.
EncryptionIValid return true if encryption i is valid.
GetFilesizeFromDownloadRequest returns the filesize from a file from the response headers.
IsValidCipher return true if given cipher is valid.
NewErrorFromResponse return error from response.
NewKeystore create a new keystore.
NewLibDM create new libDM "class".

# Constants

Authorizanion types.
Authorizanion types.
DefaultBuffersize The default buffersize for filestreams.
Requests.
Attribute.
Group.
Remote endpoints.
Tags.
Files.
Remote endpoints.
Remote endpoints.
Remote endpoints.
Remote endpoints.
Remote endpoints.
Upload.
Remote endpoints.
Remote endpoints.
Remote endpoints.
Remote endpoints.
Remote endpoints.
Namespace.
Remote endpoints.
Remote endpoints.
Remote endpoints.
Remote endpoints.
Ping.
Remote endpoints.
Remote endpoints.
Remote endpoints.
Remote endpoints.
Remote endpoints.
User.
Remote endpoints.
Available upload types.
Requests.
Attributes.
HeaderChecksum files checksum.
HeaderContentLength request content length.
HeaderContentType contenttype of response.
HeaderEncryption encryption header.
HeaderFileID fileid header.
HeaderFileName filename header.
HeaderFileType filetype header.
HeaderRequest request content.
HeaderStatus headername for status in response.
HeaderStatusMessage headername for status in response.
Content types.
Request types.
KeyringService the servicename for the keyring.
KeystoreDBFile the sqlite DB containing the file-key associations.
POST
Requests.
Requests.
Request types.
ResponseError if there was an error.
ResponseSuccess if the response is successful.
Attributes.
Available upload types.

# Variables

EncryptionCiphers supported encryption method.
ErrCancelled if something was cancelled.
ErrChecksumNotMatch error if the checksum of the downloaded file doesn't match with the checksum of the remote file.
ErrCipherNotSupported if cipher is not supported.
ErrFileEncrypted error if no key was given and nodecrypt is false.
ErrInvalidResponseHeaders error on missing or malformed response headers.
ErrKeyAlreadyexists error if keystore already contains an entry for the given fileid.
ErrKeystoreNoDir error if keystore is no directory.
ErrKeyUnavailable if keystore key is unavailable.
ErrResponseError response returned an error.
ErrResponseFilenameInvalid if server returns no filename.
ErrUnsupportedScheme error if url has an unsupported scheme.
NoProxyReader use to fill proxyWriter arg in UpdloadFile.
NoProxyWriter use to fill proxyWriter arg in UpdloadFile.

# Structs

Authorization the authorization params for a server request.
BulkPublishResponse response for publishing a file.
CountResponse response containing a count of changed items.
CredentialsRequest request containing credentials.
No description provided by the author
FileAttributes attributes for a file.
FileChanges file changes for updating a file.
FileDownloadRequest request for downloading a file.
FileDownloadResponse response for downloading a file.
FileListRequest contains file info (and a file).
FileListResponse response for listing files.
FileRequest contains data to update a file.
FileResponseItem file item for file response.
FileUpdateItem lists changes to a file.
IDsResponse response containing a list of ids.
Keystore a place to store keys.
KeystoreFile the keystore row.
LibDM data required in all requests.
LoginResponse response for login.
Namespaceinfo info for namespace.
NamespaceRequest namespace action request.
OptionalRequetsParameter optional request parameter.
PingRequest a ping request content.
PublishResponse response for publishing a file.
Request a rest server request.
RequestConfig configurations for requests.
ResponseErr response error.
RestRequestResponse the response of a rest call.
StatsRequestStruct informations about a stat-request.
StatsResponse for user stats request.
StringResponse response containing only one string.
StringSliceResponse response containing only one string slice.
UpdateAttributeRequest contains data to update a tag.
UploadRequest a uploadrequest.
UploadRequestStruct contains file info (and a file).
UploadResponse response for uploading file.
UserAttributeDataResponse response for userattribute data.
UserAttributesRequest request for getting namespaces and groups.

# Type aliases

Attribute attribute for file (tag/group).
AuthorizationType authorization type.
ContentType contenttype header of request.
Endpoint a remote url-path.
FileSizeCallback gets called if the filesize is known.
Method http request method.
ReaderProxy proxy writing.
RequestType type of request.
ResponseStatus the status of response.
SortByName sorts NamespaceInfo by name.
UploadType type of upload.
WriterProxy proxy writing.