Versions in this module Expand all Collapse all v0 v0.1.1 Nov 12, 2026 Changes in this version + var ErrCommandClash = errors.New("authcli: two commands share a name") + func NewFlagSet(name, usage string, stderr io.Writer) *flag.FlagSet + func ParseFlags(fs *flag.FlagSet, args []string) (code int, stop bool) + type Command struct + Name string + Run func(ctx context.Context, a *auth.Auth, args []string, io IO) int + Usage string + type CommandProvider interface + Commands func() []Command + type IO struct + Stderr io.Writer + Stdin io.Reader + Stdout io.Writer v0.1.0 Oct 14, 2026 Changes in this version + const AdminCreate + const AdminGrant + const CmdAdmin + const CmdCheck + const CmdClient + const CmdClientTS + const CmdGenerate + const CmdInfo + const CmdMaintain + const CmdMigrate + const CmdOrphans + const CmdSQL + const CmdSecret + const CmdStatus + const CmdSweep + const ExitFailed + const ExitOK + const ExitUsage + const FlagPasswordStdin + const ModulePath + const SecretBytes + var ErrNoAddressPlugin = errors.New(...) + var ErrNoAdminPlugin = errors.New("authcli: the admin plugin is not registered (auth.WithPlugins(admin.New()))") + var ErrNoPassword = errors.New("authcli: --password-stdin: nothing was read from stdin") + var ErrNoPasswordPlugin = errors.New("authcli: no plugin can set a password (auth.WithPlugins(password.New()))") + func Main(ctx context.Context, a *auth.Auth, args []string, stdout, stderr io.Writer) int + func MainWithStdin(ctx context.Context, a *auth.Auth, args []string, stdin io.Reader, ...) int + type AddressSetter interface + Identifiers func() []auth.IdentifierKind + SetFor func(ctx context.Context, userID, address string, verified bool) error + type AdminGranter interface + Grant func(ctx context.Context, userID string) error + type AdminResult struct + Created bool + DryRun bool + Email string + Granted bool + PasswordSet bool + UserID string + type Duration time.Duration + func (d *Duration) UnmarshalText(b []byte) error + func (d Duration) MarshalText() ([]byte, error) + func (d Duration) String() string + type Info struct + BaseURL string + Disabled []auth.EndpointID + Engine string + FreshWindow Duration + Identifiers []string + Migrations []MigrationRef + Operations []OperationInfo + Plugins []string + Session SessionInfo + TrustedOrigins []string + Version string + func InfoOf(a *auth.Auth) (Info, error) + type MigrationRef struct + Name string + Owner string + type OperationInfo struct + ID auth.EndpointID + Kind auth.OpKind + Require auth.Requirement + Route string + type PasswordSetter interface + SetPassword func(ctx context.Context, userID string, password auth.Token) error + type SessionInfo struct + IdleTimeout Duration + MaxLifetime Duration + RefreshAfter Duration + TransientIdleTimeout Duration