Help us shape the future of Go! Take the 2026 Go Developer Survey

trusts

package
v0.0.0-...-84b5455 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

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

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) All

func (a *API) All(ctx context.Context, options ...resource.ListOption) ([]*Trust, error)

func (*API) CheckRole

func (a *API) CheckRole(ctx context.Context, id string, roleID string) error

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

func (a *API) Delete(ctx context.Context, trustID string) error

Delete invokes the upstream API with library-owned builders and result handling.

func (*API) DeleteRecord

func (a *API) DeleteRecord(ctx context.Context, id string, options ...RecordDeleteOption) error

DeleteRecord defaults to ignoring a clean HTTP404, preserving all mixed causes.

func (*API) Find

func (a *API) Find(ctx context.Context, ref resource.Ref, options ...resource.LookupOption) (*Trust, error)

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) Get

func (a *API) Get(ctx context.Context, id string) (*Trust, error)

Get invokes the upstream API with library-owned builders and result handling.

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

func (a *API) GetRole(ctx context.Context, id string, roleID string) (*Role, error)

GetRole invokes the upstream API with library-owned builders and result handling.

func (*API) List

func (a *API) List(ctx context.Context, options ...ListOption) iter.Seq2[*Trust, error]

List 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

func (a *API) ListRoles(ctx context.Context, id string) iter.Seq2[*Role, error]

ListRoles invokes the upstream API with library-owned builders and result handling.

func (*API) RawClient

func (a *API) RawClient() *gophercloud.ServiceClient

func (*API) Remove

func (a *API) Remove(ctx context.Context, ref resource.Ref, options ...resource.LookupOption) error

func (*API) WaitFor

func (a *API) WaitFor(ctx context.Context, ref resource.Ref, status string, options ...resource.WaitOption) (*Trust, error)

func (*API) WaitForDeletion

func (a *API) WaitForDeletion(ctx context.Context, ref resource.Ref, options ...resource.WaitOption) error

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 GetResult

type GetResult = upstream.GetResult

type GetRoleResult

type GetRoleResult = upstream.GetRoleResult

type ListOption

type ListOption = request.Option[ListOpts]

func WithListOptions

func WithListOptions(value ListOpts) ListOption

func WithListQuery

func WithListQuery(key, value string) ListOption

type ListOpts

type ListOpts = upstream.ListOpts

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 RecordDeleteOpts struct {
	Headers       map[string]string
	IgnoreMissing *bool
}

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 RecordListOpts struct {
	Headers   map[string]string
	Query     map[string]json.RawMessage
	Limit     *int
	Marker    string
	MaxItems  int
	Paginated *bool
}

type RecordReadOption

type RecordReadOption func(*RecordReadOpts) error

func WithRecordReadHeaders

func WithRecordReadHeaders(values map[string]string) RecordReadOption

type RecordReadOpts

type RecordReadOpts struct{ Headers map[string]string }

type Role

type Role = upstream.Role

type RolesPage

type RolesPage = upstream.RolesPage

type TokenExt

type TokenExt = upstream.TokenExt

type Trust

type Trust = upstream.Trust

type TrustPage

type TrustPage = upstream.TrustPage

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

Jump to

Keyboard shortcuts

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