user

package
v0.29.32 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand() *cobra.Command

func NewDeprecatedTopLevelCommand

func NewDeprecatedTopLevelCommand() *cobra.Command

NewDeprecatedTopLevelCommand returns a hidden top-level "user" command that preserves backward compatibility for the four UserOperation-issuing commands that existed at the root before the iam refactor:

d8 user lock <user> <duration>
d8 user unlock <user>
d8 user reset-password <user> <bcryptHash>   (legacy 2-positional form)
d8 user reset-2fa <user>                     (alias of reset2fa)

lock / unlock / reset2fa are reused verbatim from the in-package factory (newUserOpCommand) so their flags / completion / wait semantics stay byte-identical with the new `d8 iam user ...` counterparts.

reset-password is the one shape we cannot reuse: the legacy command took a positional bcrypt hash, while the modern iam form expects --password-hash. We rebuild the legacy 2-arg signature explicitly here and delegate the actual UserOperation wire shape to runUserOperation (the same helper the modern command uses), so the only difference is the input-parsing layer.

Other former d8 user surfaces (create / delete / get / list) are NOT re-exposed here — they were either added in this PR (no BC obligation) or never existed at the root (so there is nothing to break).

Types

This section is empty.

Jump to

Keyboard shortcuts

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