Documentation
¶
Overview ¶
Package signupcmd provides the operator commands for invite-only sign-up as cobra commands a host CLI mounts: "invite" (add, list, revoke), "code" (create, list, revoke, joined), "allowance" (set, list) and "waitlist" (list, invite, remove). They open the identity database directly, so they work whether or not the server is running, and never change the schema; the tables come from the schema migration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllowanceCommand ¶
AllowanceCommand returns "allowance": how many people each member may invite with codes of their own.
func CodeCommand ¶
CodeCommand returns "code": manage invite codes, which let up to a set number of people create an account while the deployment is invite-only. signupURL, when not nil, returns the sign-up page URL (for example https://auth.example.com/signup); a new code is then also printed as a link. It is called after the command's flags are parsed.
func InviteCommand ¶
InviteCommand returns "invite": manage the addresses allowed to create an account while the deployment is invite-only.
func WaitlistCommand ¶
WaitlistCommand returns "waitlist": the addresses that asked to be told when sign-up opens. Nothing is emailed from here; export the list instead.