Versions in this module Expand all Collapse all v2 v2.2.1 Sep 25, 2024 Changes in this version + func List(client *gophercloud.ServiceClient, opts ListOptsBuilder) pagination.Pager + func ListGroups(client *gophercloud.ServiceClient, userID string) pagination.Pager + func ListInGroup(client *gophercloud.ServiceClient, groupID string, opts ListOptsBuilder) pagination.Pager + func ListProjects(client *gophercloud.ServiceClient, userID string) pagination.Pager + type AddToGroupResult struct + func AddToGroup(ctx context.Context, client *gophercloud.ServiceClient, groupID, userID string) (r AddToGroupResult) + type ChangePasswordOpts struct + OriginalPassword string + Password string + func (opts ChangePasswordOpts) ToUserChangePasswordMap() (map[string]any, error) + type ChangePasswordOptsBuilder interface + ToUserChangePasswordMap func() (map[string]any, error) + type ChangePasswordResult struct + func ChangePassword(ctx context.Context, client *gophercloud.ServiceClient, userID string, ...) (r ChangePasswordResult) + type CreateOpts struct + DefaultProjectID string + Description string + DomainID string + Enabled *bool + Extra map[string]any + Name string + Options map[Option]any + Password string + func (opts CreateOpts) ToUserCreateMap() (map[string]any, error) + type CreateOptsBuilder interface + ToUserCreateMap func() (map[string]any, error) + type CreateResult struct + func Create(ctx context.Context, client *gophercloud.ServiceClient, opts CreateOptsBuilder) (r CreateResult) + func (r CreateResult) Extract() (*User, error) + type DeleteResult struct + func Delete(ctx context.Context, client *gophercloud.ServiceClient, userID string) (r DeleteResult) + type GetResult struct + func Get(ctx context.Context, client *gophercloud.ServiceClient, id string) (r GetResult) + func (r GetResult) Extract() (*User, error) + type InvalidListFilter struct + FilterName string + func (e InvalidListFilter) Error() string + type IsMemberOfGroupResult struct + func IsMemberOfGroup(ctx context.Context, client *gophercloud.ServiceClient, groupID, userID string) (r IsMemberOfGroupResult) + func (r IsMemberOfGroupResult) Extract() (bool, error) + type ListOpts struct + DomainID string + Enabled *bool + Filters map[string]string + IdPID string + Name string + PasswordExpiresAt string + ProtocolID string + UniqueID string + func (opts ListOpts) ToUserListQuery() (string, error) + type ListOptsBuilder interface + ToUserListQuery func() (string, error) + type Option string + const IgnoreChangePasswordUponFirstUse + const IgnoreLockoutFailureAttempts + const IgnorePasswordExpiry + const MultiFactorAuthEnabled + const MultiFactorAuthRules + type RemoveFromGroupResult struct + func RemoveFromGroup(ctx context.Context, client *gophercloud.ServiceClient, groupID, userID string) (r RemoveFromGroupResult) + type UpdateOpts struct + DefaultProjectID string + Description *string + DomainID string + Enabled *bool + Extra map[string]any + Name string + Options map[Option]any + Password string + func (opts UpdateOpts) ToUserUpdateMap() (map[string]any, error) + type UpdateOptsBuilder interface + ToUserUpdateMap func() (map[string]any, error) + type UpdateResult struct + func Update(ctx context.Context, client *gophercloud.ServiceClient, userID string, ...) (r UpdateResult) + func (r UpdateResult) Extract() (*User, error) + type User struct + DefaultProjectID string + Description string + DomainID string + Enabled bool + Extra map[string]any + ID string + Links map[string]any + Name string + Options map[string]any + PasswordExpiresAt time.Time + func ExtractUsers(r pagination.Page) ([]User, error) + func (r *User) UnmarshalJSON(b []byte) error + type UserPage struct + func (r UserPage) IsEmpty() (bool, error) + func (r UserPage) NextPageURL() (string, error)