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 ¶
- type API
- func (a *API) All(ctx context.Context, options ...resource.ListOption) ([]*Trust, error)
- func (a *API) CheckRole(ctx context.Context, id string, roleID string) error
- func (a *API) Create(ctx context.Context, opts CreateOpts, options ...CreateOption) (*Trust, error)
- func (a *API) CreateRecord(ctx context.Context, options ...RecordCreateOption) (*TrustRecord, error)
- func (a *API) Delete(ctx context.Context, trustID string) error
- func (a *API) DeleteRecord(ctx context.Context, id string, options ...RecordDeleteOption) error
- func (a *API) Find(ctx context.Context, ref resource.Ref, options ...resource.LookupOption) (*Trust, error)
- func (a *API) FindRecord(ctx context.Context, nameOrID string, options ...RecordFindOption) (*TrustRecord, error)
- func (a *API) Get(ctx context.Context, id string) (*Trust, error)
- func (a *API) GetRecord(ctx context.Context, id string, options ...RecordReadOption) (*TrustRecord, error)
- func (a *API) GetRole(ctx context.Context, id string, roleID string) (*Role, error)
- func (a *API) List(ctx context.Context, options ...ListOption) iter.Seq2[*Trust, error]
- func (a *API) ListRecords(ctx context.Context, options ...RecordListOption) iter.Seq2[*TrustRecord, error]
- func (a *API) ListRoles(ctx context.Context, id string) iter.Seq2[*Role, error]
- func (a *API) RawClient() *gophercloud.ServiceClient
- func (a *API) Remove(ctx context.Context, ref resource.Ref, options ...resource.LookupOption) error
- func (a *API) WaitFor(ctx context.Context, ref resource.Ref, status string, ...) (*Trust, error)
- func (a *API) WaitForDeletion(ctx context.Context, ref resource.Ref, options ...resource.WaitOption) error
- type CheckRoleResult
- type CreateOption
- type CreateOpts
- type CreateResult
- type DeleteResult
- type GetResult
- type GetRoleResult
- type ListOption
- type ListOpts
- type RecordCreateOption
- type RecordCreateOpts
- type RecordDeleteOption
- type RecordDeleteOpts
- type RecordFindOption
- type RecordFindOpts
- type RecordListOption
- func WithRecordListHeaders(values map[string]string) RecordListOption
- func WithRecordListLimit(v int) RecordListOption
- func WithRecordListMarker(v string) RecordListOption
- func WithRecordListMaxItems(v int) RecordListOption
- func WithRecordListOpts(v RecordListOpts) RecordListOption
- func WithRecordListPaginated(v bool) RecordListOption
- func WithRecordListQuery(key string, value any) RecordListOption
- func WithRecordListTrusteeUserID(v string) RecordListOption
- func WithRecordListTrustorUserID(v string) RecordListOption
- type RecordListOpts
- type RecordReadOption
- type RecordReadOpts
- type Role
- type RolesPage
- type TokenExt
- type Trust
- type TrustPage
- type TrustRecord
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
Resources *resource.Collection[Trust]
// contains filtered or unexported fields
}
API owns typed operations and their shared resource policies.
func New ¶
func New(client *gophercloud.ServiceClient) *API
func (*API) CheckRole ¶
CheckRole 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) (*Trust, error)
Create invokes the upstream API with library-owned builders and result handling.
func (*API) CreateRecord ¶
func (a *API) CreateRecord(ctx context.Context, options ...RecordCreateOption) (*TrustRecord, error)
CreateRecord sends declared Python Trust Body attrs only. Missing values are omitted and explicit null/false/empty values remain in the request.
func (*API) Delete ¶
Delete invokes the upstream API with library-owned builders and result handling.
func (*API) DeleteRecord ¶
DeleteRecord defaults to ignoring a clean HTTP404, preserving all mixed causes.
func (*API) FindRecord ¶
func (a *API) FindRecord(ctx context.Context, nameOrID string, options ...RecordFindOption) (*TrustRecord, error)
FindRecord follows Python's GET-first, exact-ID-or-name fallback. It exposes the only Source find_trust option: IgnoreMissing, defaulting to true.
func (*API) GetRecord ¶
func (a *API) GetRecord(ctx context.Context, id string, options ...RecordReadOption) (*TrustRecord, error)
GetRecord fetches a literal /trusts member without native expiry/roles/count coercion.
func (*API) GetRole ¶
GetRole invokes the upstream API with library-owned builders and result handling.
func (*API) ListRecords ¶
func (a *API) ListRecords(ctx context.Context, options ...RecordListOption) iter.Seq2[*TrustRecord, error]
ListRecords splits Source trustor_user_id/trustee_user_id server query from other Body filters.
func (*API) ListRoles ¶
ListRoles invokes the upstream API with library-owned builders and result handling.
func (*API) RawClient ¶
func (a *API) RawClient() *gophercloud.ServiceClient
func (*API) WaitForDeletion ¶
type CheckRoleResult ¶
type CheckRoleResult = upstream.CheckRoleResult
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 GetRoleResult ¶
type GetRoleResult = upstream.GetRoleResult
type ListOption ¶
func WithListOptions ¶
func WithListOptions(value ListOpts) ListOption
func WithListQuery ¶
func WithListQuery(key, value string) ListOption
type RecordCreateOption ¶
type RecordCreateOption func(*RecordCreateOpts) error
func WithRecordCreateField ¶
func WithRecordCreateField(key string, value any) RecordCreateOption
func WithRecordCreateOpts ¶
func WithRecordCreateOpts(v RecordCreateOpts) RecordCreateOption
type RecordCreateOpts ¶
type RecordCreateOpts struct {
Headers map[string]string
Fields map[string]json.RawMessage
}
type RecordDeleteOption ¶
type RecordDeleteOption func(*RecordDeleteOpts) error
func WithRecordDeleteHeaders ¶
func WithRecordDeleteHeaders(values map[string]string) RecordDeleteOption
func WithRecordDeleteIgnoreMissing ¶
func WithRecordDeleteIgnoreMissing(v bool) RecordDeleteOption
type RecordDeleteOpts ¶
type RecordFindOption ¶
type RecordFindOption func(*RecordFindOpts) error
func WithRecordFindIgnoreMissing ¶
func WithRecordFindIgnoreMissing(v bool) RecordFindOption
type RecordFindOpts ¶
type RecordFindOpts struct{ IgnoreMissing *bool }
type RecordListOption ¶
type RecordListOption func(*RecordListOpts) error
func WithRecordListHeaders ¶
func WithRecordListHeaders(values map[string]string) RecordListOption
func WithRecordListLimit ¶
func WithRecordListLimit(v int) RecordListOption
func WithRecordListMarker ¶
func WithRecordListMarker(v string) RecordListOption
func WithRecordListMaxItems ¶
func WithRecordListMaxItems(v int) RecordListOption
func WithRecordListOpts ¶
func WithRecordListOpts(v RecordListOpts) RecordListOption
func WithRecordListPaginated ¶
func WithRecordListPaginated(v bool) RecordListOption
func WithRecordListQuery ¶
func WithRecordListQuery(key string, value any) RecordListOption
WithRecordListQuery classifies the Trust's known kwargs: trustor_user_id/trustee_user_id are Requests-encoded server values; other declared Body fields filter locally.
func WithRecordListTrusteeUserID ¶
func WithRecordListTrusteeUserID(v string) RecordListOption
func WithRecordListTrustorUserID ¶
func WithRecordListTrustorUserID(v string) RecordListOption
type RecordListOpts ¶
type RecordReadOption ¶
type RecordReadOption func(*RecordReadOpts) error
func WithRecordReadHeaders ¶
func WithRecordReadHeaders(values map[string]string) RecordReadOption
type RecordReadOpts ¶
type TrustRecord ¶
type TrustRecord struct {
Resource, Wire *resource.RawResource
Envelope json.RawMessage
Header http.Header
StatusCode int
}
TrustRecord owns a declared Python descriptor view and separate raw HTTP evidence. Untyped roles, expiry and counters retain their original JSON types.
func (*TrustRecord) UnmarshalJSON ¶
func (v *TrustRecord) UnmarshalJSON(data []byte) error