user

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Overview

Command construction is serialized by the agent dispatcher.

Package user implements user-related CLI subcommands.

Index

Constants

This section is empty.

Variables

View Source
var UserCreateCmd = makeUserCreateCmd()

UserCreateCmd Creates a Passbolt User

View Source
var UserDeleteCmd = makeUserDeleteCmd()

UserDeleteCmd Deletes a User

View Source
var UserGetCmd = makeUserGetCmd()

UserGetCmd Gets a Passbolt User

View Source
var UserListCmd = makeUserListCmd()

UserListCmd Lists a Passbolt User

View Source
var UserRecoverCmd = &cobra.Command{
	Use:   "user",
	Short: "Requests account recovery mail or renews an invitation",
	Long:  "Requests account recovery mail, or renews the invitation for an account that has not completed setup. Success does not confirm account existence or email delivery.",
	Args:  cobra.NoArgs,
	RunE:  UserRecover,
}

UserRecoverCmd requests recovery mail or renews an unfinished account's invitation.

View Source
var UserUpdateCmd = makeUserUpdateCmd()

UserUpdateCmd Updates a Passbolt User

Functions

func ResetCommands added in v0.6.0

func ResetCommands()

func UserCreate

func UserCreate(cmd *cobra.Command, args []string) error

func UserDelete

func UserDelete(cmd *cobra.Command, args []string) error

func UserGet

func UserGet(cmd *cobra.Command, args []string) error

func UserList

func UserList(cmd *cobra.Command, args []string) error

func UserRecover added in v0.6.0

func UserRecover(cmd *cobra.Command, args []string) error

func UserUpdate

func UserUpdate(cmd *cobra.Command, args []string) error

Types

type UserJSONOutput

type UserJSONOutput struct {
	IsMFAEnabled      *bool           `json:"is_mfa_enabled,omitempty"`
	ScimEntry         json.RawMessage `json:"scim_entry,omitempty"`
	ID                *string         `json:"id,omitempty"`
	Username          *string         `json:"username,omitempty"`
	FirstName         *string         `json:"first_name,omitempty"`
	LastName          *string         `json:"last_name,omitempty"`
	Role              *string         `json:"role,omitempty"`
	CreatedTimestamp  *time.Time      `json:"created_timestamp,omitempty"`
	ModifiedTimestamp *time.Time      `json:"modified_timestamp,omitempty"`
	// Lifecycle flags use non-pointer bool without omitempty so that `false`
	// values reach JSON output and remain distinguishable from "absent" when
	// users do --filter 'active == false'.
	Active   bool `json:"active"`
	Deleted  bool `json:"deleted"`
	Disabled bool `json:"disabled"`
}

Jump to

Keyboard shortcuts

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