authcli

package
v0.0.0-...-147f0cf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthAddUserCommand

func AuthAddUserCommand(hc **hubclient.HubClient) *cli.Command

AuthnAddUserCommand adds a user

func AuthListClientsCommand

func AuthListClientsCommand(hc **hubclient.HubClient) *cli.Command

AuthListClientsCommand lists user profiles

func AuthPasswordCommand

func AuthPasswordCommand(hc **hubclient.HubClient) *cli.Command

AuthPasswordCommand replaces a user's password

func AuthRemoveClientCommand

func AuthRemoveClientCommand(hc **hubclient.HubClient) *cli.Command

AuthRemoveClientCommand removes a user

func AuthRoleCommand

func AuthRoleCommand(hc **hubclient.HubClient) *cli.Command

AuthRoleCommand changes a user's role

func GeneratePassword

func GeneratePassword(length int, useSpecial bool) (password string)

GeneratePassword with upper, lower, numbers and special characters

func HandleAddUser

func HandleAddUser(
	hc *hubclient.HubClient, loginID string, displayName string, role string) (err error)

HandleAddUser adds a user and displays a temperary password

func HandleListClients

func HandleListClients(hc *hubclient.HubClient) (err error)

HandleListClients shows a list of user profiles

func HandleRemoveClient

func HandleRemoveClient(hc *hubclient.HubClient, clientID string) (err error)

HandleRemoveClient removes a user

func HandleSetPassword

func HandleSetPassword(hc *hubclient.HubClient, loginID string, newPassword string) error

HandleSetPassword resets or replaces a password

loginID is the ID or email of the user
newPassword can be empty to auto-generate a password

func HandleSetRole

func HandleSetRole(hc *hubclient.HubClient, loginID string, newRole string) error

HandleSetRole sets a new role

loginID is the ID or email of the user
newPassword can be empty to auto-generate a password

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL