signupcmd

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: MIT Imports: 11 Imported by: 0

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

func AllowanceCommand(open Open) *cobra.Command

AllowanceCommand returns "allowance": how many people each member may invite with codes of their own.

func CodeCommand

func CodeCommand(open Open, signupURL func() string) *cobra.Command

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

func InviteCommand(open Open) *cobra.Command

InviteCommand returns "invite": manage the addresses allowed to create an account while the deployment is invite-only.

func WaitlistCommand

func WaitlistCommand(open Open) *cobra.Command

WaitlistCommand returns "waitlist": the addresses that asked to be told when sign-up opens. Nothing is emailed from here; export the list instead.

Types

type Open

type Open func(ctx context.Context) (client *ent.Client, closeFn func() error, err error)

Open opens the identity database for one command, returning its client and the function that closes it.

Jump to

Keyboard shortcuts

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