Documentation
¶
Overview ¶
Code generated by sdkgen from Gophercloud v2.15.0; DO NOT EDIT.
Code generated by sdkgen from Gophercloud v2.15.0; DO NOT EDIT.
Index ¶
- Constants
- type API
- func (a *API) AddToGroup(ctx context.Context, groupID string, userID string) error
- func (a *API) All(ctx context.Context, options ...resource.ListOption) ([]*User, error)
- func (a *API) ChangePassword(ctx context.Context, userID string, opts ChangePasswordOpts, ...) error
- func (a *API) Create(ctx context.Context, opts CreateOpts, options ...CreateOption) (*User, error)
- func (a *API) Delete(ctx context.Context, userID string) error
- func (a *API) Find(ctx context.Context, ref resource.Ref, options ...resource.LookupOption) (*User, error)
- func (a *API) FindIdentity(ctx context.Context, identity string, options ...resource.IdentityFindOption) (*User, error)
- func (a *API) Get(ctx context.Context, id string) (*User, error)
- func (a *API) IsMemberOfGroup(ctx context.Context, groupID string, userID string) (bool, error)
- func (a *API) List(ctx context.Context, options ...ListOption) iter.Seq2[*User, error]
- func (a *API) ListGroupRecords(ctx context.Context, userID string) iter.Seq2[*UserGroupRecord, error]
- func (a *API) ListGroups(ctx context.Context, userID string) iter.Seq2[*groups.Group, error]
- func (a *API) ListInGroup(ctx context.Context, groupID string, options ...ListInGroupOption) iter.Seq2[*User, error]
- func (a *API) ListProjectRecords(ctx context.Context, userID string, options ...ListProjectRecordsOption) iter.Seq2[*UserProjectRecord, error]
- func (a *API) ListProjects(ctx context.Context, userID string) iter.Seq2[*projects.Project, error]
- func (a *API) RawClient() *gophercloud.ServiceClient
- func (a *API) Remove(ctx context.Context, ref resource.Ref, options ...resource.LookupOption) error
- func (a *API) RemoveFromGroup(ctx context.Context, groupID string, userID string) error
- func (a *API) Update(ctx context.Context, userID string, opts UpdateOpts, options ...UpdateOption) (*User, error)
- func (a *API) WaitFor(ctx context.Context, ref resource.Ref, status string, ...) (*User, error)
- func (a *API) WaitForDeletion(ctx context.Context, ref resource.Ref, options ...resource.WaitOption) error
- type AddToGroupResult
- type ChangePasswordOption
- type ChangePasswordOpts
- type ChangePasswordResult
- type CreateOption
- type CreateOpts
- type CreateResult
- type DeleteResult
- type GetResult
- type InvalidListFilter
- type IsMemberOfGroupResult
- type ListInGroupOption
- type ListOption
- type ListOpts
- type ListProjectRecordsOption
- func WithProjectListFilter(field string, value any) ListProjectRecordsOption
- func WithProjectListFilters(values map[string]any) ListProjectRecordsOption
- func WithProjectListHeader(key, value string) ListProjectRecordsOption
- func WithProjectListMaxItems(value int) ListProjectRecordsOption
- func WithProjectListMicroversion(value string) ListProjectRecordsOption
- func WithProjectListOptions(value ListProjectRecordsOpts) ListProjectRecordsOption
- func WithProjectListPaginated(value bool) ListProjectRecordsOption
- func WithProjectListQuery(key, value string) ListProjectRecordsOption
- type ListProjectRecordsOpts
- type Option
- type RemoveFromGroupResult
- type UpdateOption
- type UpdateOpts
- type UpdateResult
- type User
- type UserGroupRecord
- type UserPage
- type UserProjectRecord
Constants ¶
const IgnoreChangePasswordUponFirstUse = upstream.IgnoreChangePasswordUponFirstUse
const IgnoreLockoutFailureAttempts = upstream.IgnoreLockoutFailureAttempts
const IgnorePasswordExpiry = upstream.IgnorePasswordExpiry
const MultiFactorAuthEnabled = upstream.MultiFactorAuthEnabled
const MultiFactorAuthRules = upstream.MultiFactorAuthRules
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
Resources *resource.Collection[User]
// contains filtered or unexported fields
}
API owns typed operations and their shared resource policies.
func New ¶
func New(client *gophercloud.ServiceClient) *API
func (*API) AddToGroup ¶
AddToGroup invokes the upstream API with library-owned builders and result handling.
func (*API) ChangePassword ¶
func (a *API) ChangePassword(ctx context.Context, userID string, opts ChangePasswordOpts, options ...ChangePasswordOption) error
ChangePassword invokes the upstream API with library-owned builders and result handling.
func (*API) Create ¶
func (a *API) Create(ctx context.Context, opts CreateOpts, options ...CreateOption) (*User, error)
Create invokes the upstream API with library-owned builders and result handling.
func (*API) Delete ¶
Delete invokes the upstream API with library-owned builders and result handling.
func (*API) FindIdentity ¶
func (a *API) FindIdentity(ctx context.Context, identity string, options ...resource.IdentityFindOption) (*User, error)
FindIdentity tries an ID request before exact ID/name fallback within this collection.
func (*API) IsMemberOfGroup ¶
IsMemberOfGroup invokes the upstream API with library-owned builders and result handling.
func (*API) ListGroupRecords ¶
func (a *API) ListGroupRecords(ctx context.Context, userID string) iter.Seq2[*UserGroupRecord, error]
ListGroupRecords lazily lists the groups containing the explicit user ID. It starts without query/control options, as does Python user_groups(user), and consumes advertised continuation links through the owned read policy. Native ListGroups remains available with its original native Group result.
func (*API) ListGroups ¶
ListGroups invokes the upstream API with library-owned builders and result handling.
func (*API) ListInGroup ¶
func (a *API) ListInGroup(ctx context.Context, groupID string, options ...ListInGroupOption) iter.Seq2[*User, error]
ListInGroup invokes the upstream API with library-owned builders and result handling.
func (*API) ListProjectRecords ¶
func (a *API) ListProjectRecords(ctx context.Context, userID string, options ...ListProjectRecordsOption) iter.Seq2[*UserProjectRecord, error]
ListProjectRecords lazily lists projects available to the explicit user ID. It preserves response JSON, applies declared semantic filters and follows advertised continuations or a raw-ID marker when an explicit limit is set. Break stops requests; each iteration applies options once to a fresh snapshot. The native ListProjects method and its native Project results remain available.
func (*API) ListProjects ¶
ListProjects invokes the upstream API with library-owned builders and result handling.
func (*API) RawClient ¶
func (a *API) RawClient() *gophercloud.ServiceClient
func (*API) RemoveFromGroup ¶
RemoveFromGroup invokes the upstream API with library-owned builders and result handling.
func (*API) Update ¶
func (a *API) Update(ctx context.Context, userID string, opts UpdateOpts, options ...UpdateOption) (*User, error)
Update invokes the upstream API with library-owned builders and result handling.
func (*API) WaitForDeletion ¶
type AddToGroupResult ¶
type AddToGroupResult = upstream.AddToGroupResult
type ChangePasswordOption ¶
type ChangePasswordOption = request.Option[ChangePasswordOpts]
func WithChangePasswordField ¶
func WithChangePasswordField(key string, value any) ChangePasswordOption
func WithChangePasswordOptions ¶
func WithChangePasswordOptions(value ChangePasswordOpts) ChangePasswordOption
type ChangePasswordOpts ¶
type ChangePasswordOpts = upstream.ChangePasswordOpts
type ChangePasswordResult ¶
type ChangePasswordResult = upstream.ChangePasswordResult
type CreateOption ¶
type CreateOption = request.Option[CreateOpts]
func WithCreateField ¶
func WithCreateField(key string, value any) CreateOption
func WithCreateOptions ¶
func WithCreateOptions(value CreateOpts) CreateOption
type CreateOpts ¶
type CreateOpts = upstream.CreateOpts
type CreateResult ¶
type CreateResult = upstream.CreateResult
type DeleteResult ¶
type DeleteResult = upstream.DeleteResult
type InvalidListFilter ¶
type InvalidListFilter = upstream.InvalidListFilter
type IsMemberOfGroupResult ¶
type IsMemberOfGroupResult = upstream.IsMemberOfGroupResult
type ListInGroupOption ¶
func WithListInGroupOptions ¶
func WithListInGroupOptions(value ListOpts) ListInGroupOption
func WithListInGroupQuery ¶
func WithListInGroupQuery(key, value string) ListInGroupOption
type ListOption ¶
func WithListOptions ¶
func WithListOptions(value ListOpts) ListOption
func WithListQuery ¶
func WithListQuery(key, value string) ListOption
type ListProjectRecordsOption ¶
type ListProjectRecordsOption = request.Option[ListProjectRecordsOpts]
func WithProjectListFilter ¶
func WithProjectListFilter(field string, value any) ListProjectRecordsOption
WithProjectListFilter adds a declared query attribute or local Body filter. Unknown attributes are discarded. Repeated attributes use the final value.
func WithProjectListFilters ¶
func WithProjectListFilters(values map[string]any) ListProjectRecordsOption
WithProjectListFilters replaces semantic filters; nil/empty clears them. Canonical attributes take precedence over wire aliases within one bulk map. Semantic query keys cannot overlap typed or raw query keys, even if equal.
func WithProjectListHeader ¶
func WithProjectListHeader(key, value string) ListProjectRecordsOption
func WithProjectListMaxItems ¶
func WithProjectListMaxItems(value int) ListProjectRecordsOption
WithProjectListMaxItems caps raw rows before local filtering. Zero is unlimited.
func WithProjectListMicroversion ¶
func WithProjectListMicroversion(value string) ListProjectRecordsOption
WithProjectListMicroversion selects an operation-local version, including an explicit empty value. It never modifies the original service client.
func WithProjectListOptions ¶
func WithProjectListOptions(value ListProjectRecordsOpts) ListProjectRecordsOption
WithProjectListOptions replaces typed options while retaining headers, raw queries and semantic filters. Pointer values are owned now and per iteration.
func WithProjectListPaginated ¶
func WithProjectListPaginated(value bool) ListProjectRecordsOption
WithProjectListPaginated(false) consumes only the first page.
func WithProjectListQuery ¶
func WithProjectListQuery(key, value string) ListProjectRecordsOption
WithProjectListQuery passes a wire query without attribute classification. It overrides the same typed query; local controls need dedicated options.
type ListProjectRecordsOpts ¶
type ListProjectRecordsOpts struct {
Limit int
Marker string
MaxItems int
Paginated *bool
Microversion *string
}
ListProjectRecordsOpts supplies query and local paging controls for the projects visible to one user. Nil Paginated uses all advertised pages. Nil Microversion preserves the selected Identity client's policy.
type RemoveFromGroupResult ¶
type RemoveFromGroupResult = upstream.RemoveFromGroupResult
type UpdateOption ¶
type UpdateOption = request.Option[UpdateOpts]
func WithUpdateField ¶
func WithUpdateField(key string, value any) UpdateOption
func WithUpdateOptions ¶
func WithUpdateOptions(value UpdateOpts) UpdateOption
type UpdateOpts ¶
type UpdateOpts = upstream.UpdateOpts
type UpdateResult ¶
type UpdateResult = upstream.UpdateResult
type UserGroupRecord ¶
type UserGroupRecord struct {
Resource *resource.RawResource
Wire *resource.RawResource
}
UserGroupRecord keeps the actual group response and an independent view bound to the requested user. It does not add Group CRUD or resource-routing methods.
func (*UserGroupRecord) UnmarshalJSON ¶
func (value *UserGroupRecord) UnmarshalJSON(data []byte) error
UnmarshalJSON retains arbitrary group fields without native model coercion.
type UserProjectRecord ¶
type UserProjectRecord struct {
Resource *resource.RawResource
Wire *resource.RawResource
}
UserProjectRecord keeps the actual response separate from the Python-style view bound to the requested user. Both resources own their fields and metadata.
func (*UserProjectRecord) UnmarshalJSON ¶
func (value *UserProjectRecord) UnmarshalJSON(data []byte) error
UnmarshalJSON retains arbitrary project fields without native model coercion. Keep the Wire pointer used by the shared decoder's metadata hook stable.