package
2024.3.0+incompatible
Repository: https://github.com/hiveot/hub.git
Documentation: pkg.go.dev

# Functions

AuthAddServiceCommand adds a service with key and auth token.
AuthAddUserCommand adds a user.
AuthListClientsCommand lists user profiles.
AuthRemoveClientCommand removes a user.
AuthRoleCommand changes a user's role.
AuthSetPasswordCommand sets a client's password.
GeneratePassword with upper, lower, numbers and special characters.
HandleAddService adds a service with key and token loginID is required displayName is optional certsDir with directory to store keys/token.
HandleAddUser adds a user and displays a temporary password.
HandleListClients shows a list of user profiles.
HandleRemoveClient removes a user.
HandleSetPassword resets or replaces a password loginID is the ID or email of the user newPassword can be empty to auto-generate a password.
HandleSetRole sets a new role loginID is the ID or email of the user newPassword can be empty to auto-generate a password.