package
0.0.0-20231116081957-bc579e3d8a7d
Repository: https://github.com/kripsy/gophkeeper.git
Documentation: pkg.go.dev
# Functions
NewSecretNotFoundError creates a new SecretNotFoundError with a formatted message including the secret ID.
NewSyncError creates a new synchronization error with the provided text.
NewUnionError creates a new UnionError with a specified error text.
NewUserExistsError creates a new UserExistsError with a formatted message including the username.
NewUserLoginError creates a new UserLoginError with a formatted message including the username.
# Constants
Sync for this user already exists.
Sync not found.
Unexpected error.
This sync for this user already exists.
# Variables
Predefined errors for common failure scenarios.
Predefined errors for common failure scenarios.
Predefined errors for users failure scenarios.
Predefined errors for users failure scenarios.
Predefined errors for users failure scenarios.
UnionError represents a general error for union-type scenarios.
Predefined errors for common failure scenarios.
Predefined errors for users failure scenarios.
SyncErrorMessages contains error messages corresponding to SyncErrorEnum.
# Structs
DataInfo represents information about user data.
MultipartDownloadFileRequest represents the request data structure for downloading a file part.
MultipartDownloadFileResponse represents the data structure for downloading a file part.
MultipartUploadFileData represents the data structure for uploading a file in multiple parts.
ObjectPart represents a part of a multipart upload, including its number and ETag.
SecretNotFoundError represents an error when a specific secret is not found.
SyncError represents a synchronization error with a custom message.
UnionError is a custom error type for general union errors.
User represents user information, including username, password, and a key.
UserData represents the user data structure, including User information and UserMeta.
UserExistsError represents an error when a user already exists in the system.
UserLoginError represents an error during the user login process.
UserMeta represents metadata associated with a user and secrets.
# Type aliases
Deleted represents a set of deleted data IDs.
MetaData represents meta-information about secrets DataInfo by keys and secret name.
SyncErrorEnum contains the enumeration of synchronization errors.