package
0.16.3
Repository: https://github.com/shellhub-io/shellhub.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

No description provided by the author
NewErrAPIKeyDuplicated returns an error when the APIKey name is duplicated.
No description provided by the author
NewErrAPIKeyNotFound returns an error when the APIKey is not found.
No description provided by the author
NewErrAuthInvalid returns a error to be used when the auth data is invalid.
NewErrAuthUnathorized returns a error to be used when the auth is unauthorized.
NewErrBadRequest returns a error to be used when the auth is unauthorized.
No description provided by the author
No description provided by the author
No description provided by the author
NewErrDeviceCreate returns a error to be used when the device create fails.
NewErrDeviceDuplicated returns an error to be used when the device already exist in the namespace.
NewErrDeviceInvalid returns an error to be used when the device data is invalid.
NewErrDeviceLimit returns an error to be used when the device limit is reached.
NewErrDeviceLookupNotFound returns an error to be used when the device lookup is not found.
No description provided by the author
NewErrDeviceNotFound returns an error when the device is not found.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewErrDeviceSetOnline returns a error to be used when the device set online fails.
NewErrDeviceStatusAccepted returns an error to be used when the device's status is accepted.
NewErrDeviceStatusInvalid returns an error to be used when the device's status is invalid.
NewErrDuplicated returns an error with the ErrDataDuplicated and wrap an error.
NewErrForbidden return a error to be used when the access to a resource is forbidden.
NewErrInvalid returns an error with the ErrDataInvalid and wrap an error.
NewErrLimit returns an error with the ErrDataLimit and wrap an error.
NewErrNamespaceCreateStore returns an error to be used when the store function that create a namespace fails.
NewErrNamespaceDuplicated returns an error to be used when the namespace is duplicated.
NewErrNamespaceInvalid returns an error to be used when the namespace is invalid.
NewErrNamespaceLimitReached a error to be used when the user namespace limit number is reached.
NewErrNamespaceList return an error to be used when cannot list namespaces.
NewErrNamespaceMemberDuplicated returns an error to be used when the namespace member already exist in the namespace.
NewErrNamespaceMemberFillData returns an error to be used when the conversion of models.Member, with only the ID and role set, to a complete structure, fails.
NewErrNamespaceMemberInvalid returns an error to be used when the namespace member is invalid.
NewErrNamespaceMemberNotFound returns an error to be used when the namespace member is not found.
NewErrNamespaceNotFound returns an error when the namespace is not found.
NewErrNotFound returns an error with the ErrDataNotFound and wrap an error.
NewErrNotFound returns an error with the ErrDataNotFound and wrap an error.
NewErrPublicKeyDataInvalid returns an error when the public key data is invalid.
NewErrPublicKeyDuplicated returns an error when the public key is duplicated.
NewErrPublicKeyFilter returns an error when the public key has more than one filter.
NewErrPublicKeyInvalid returns an error when the public key is invalid.
NewErrPublicKeyNotFound returns an error when the public key is not found.
NewErrPublicKeyTagsEmpty returns an error when the public key has no tags.
NewErrBadRequest returns a error to be used when the access to a resource is not authorized.
No description provided by the author
NewErrSameTags returns an error when the.
NewErrSessionNotFound returns an error when the session is not found.
NewErrStore return an error to be used when the main store function fails.
NewErrTagDuplicated returns an error when the tag is duplicated.
NewErrTagEmpty returns an error when the none tag is found.
NewErrTagInvalid returns an error when the tag is invalid.
NewErrTagLimit returns an error when the tag limit is reached.
NewErrTagNotFound returns an error when the tag is not found.
NewErrTokenSigned returns an error to be used when the token signed fails.
NewErrUnathorized returns a error to be used when the access to a resource is not authorized.
NewErrUserDuplicated returns an error when the user is duplicated.
NewErrUserInvalid returns an error when the user is invalid.
NewErrUserNotConfirmed returns an error to be used when the user is not confirmed.
NewErrUserNotFound returns an error when the user is not found.
NewErrUserPasswordDuplicated returns an error when the user's current password is equal to new password.
NewErrUserPasswordInvalid returns an error when the user's password is invalid.
NewErrUserPasswordNotMatch returns an error when the user's password doesn't match with the current password.
NewErrUserUpdate returns a error to be used when the user update fails.
No description provided by the author

# Constants

DeviceMaxTags is the number of tags that a device can have.
ErrCodeDuplicated is the error code for when a resource is duplicated.
ErrCodeForbidden is the error code for when the access to resource is forbidden.
ErrCodeInvalid is the error code for when a resource is invalid.
ErrCodeLimit is the error code for when a resource is reached the limit.
ErrCodeNoContentChange is the error that occurs when the store function does not change any resource.
ErrCodeNotFound is the error code for when a resource is not found.
ErrCodePayment is the error code for when a resource required payment.
ErrCodeStore is the error code for when the store function fails.
ErrCodeUnauthorized is the error code for when the access to resource is unauthorized.
ErrLayer is an error level.
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
ErrDataDuplicated structure should be used to add errors.Data to an error when the resource is duplicated.
ErrDataInvalid structure should be used to add errors.Data to an error when the resource is invalid.
ErrDataLimit structure should be used to add errors.Data to an error when the resource is reached the limit.
ErrDataNotFound structure should be used to add errors.Data to an error when the resource is not found.
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DeviceTags contains the service's function to manage device tags.
No description provided by the author
go:generate mockery --name Service --filename services.go.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author