Documentation
¶
Overview ¶
Command construction is serialized by the agent dispatcher.
Package user implements user-related CLI subcommands.
Index ¶
- Variables
- func ResetCommands()
- func UserCreate(cmd *cobra.Command, args []string) error
- func UserDelete(cmd *cobra.Command, args []string) error
- func UserGet(cmd *cobra.Command, args []string) error
- func UserList(cmd *cobra.Command, args []string) error
- func UserRecover(cmd *cobra.Command, args []string) error
- func UserUpdate(cmd *cobra.Command, args []string) error
- type UserJSONOutput
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()
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"`
}
Click to show internal directories.
Click to hide internal directories.