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) ([]*Hypervisor, error)
- func (a *API) AllRecords(ctx context.Context, options ...RecordOption) ([]*ReadRecord, error)
- func (a *API) Find(ctx context.Context, ref resource.Ref, options ...resource.LookupOption) (*Hypervisor, error)
- func (a *API) FindRecord(ctx context.Context, identity string, options ...RecordOption) (*ReadRecord, error)
- func (a *API) Get(ctx context.Context, hypervisorID string) (*Hypervisor, error)
- func (a *API) GetExt(ctx context.Context, hypervisorID string, options ...GetExtOption) (*Hypervisor, error)
- func (a *API) GetStatistics(ctx context.Context) (*Statistics, error)
- func (a *API) GetUptime(ctx context.Context, hypervisorID string) (*Uptime, error)
- func (a *API) List(ctx context.Context, options ...ListOption) iter.Seq2[*Hypervisor, error]
- func (a *API) ListRecords(ctx context.Context, options ...RecordOption) iter.Seq2[*ReadRecord, error]
- func (a *API) ProxyListRecords(ctx context.Context, options ...RecordOption) (*ProxyRecordResult, 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, ...) (*Hypervisor, error)
- func (a *API) WaitForDeletion(ctx context.Context, ref resource.Ref, options ...resource.WaitOption) error
- type CPUInfo
- type GetExtOption
- type GetOpts
- type Hypervisor
- type HypervisorPage
- type HypervisorResult
- type ListOption
- type ListOpts
- type ProxyRecordResult
- type ReadRecord
- type RecordGenerator
- type RecordOption
- func WithRecordDetails(v bool) RecordOption
- func WithRecordHeaders(v map[string]string) RecordOption
- func WithRecordIgnoreMissing(v bool) RecordOption
- func WithRecordListBasePath(v string) RecordOption
- func WithRecordMicroversion(v string) RecordOption
- func WithRecordOptions(v RecordOptions) RecordOption
- func WithRecordQuery(k string, v any) RecordOption
- type RecordOptions
- type Server
- type Service
- type Statistics
- type StatisticsResult
- type Topology
- type Uptime
- type UptimeResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
Resources *resource.Collection[Hypervisor]
// 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) ([]*Hypervisor, error)
func (*API) AllRecords ¶
func (a *API) AllRecords(ctx context.Context, options ...RecordOption) ([]*ReadRecord, error)
func (*API) Find ¶
func (a *API) Find(ctx context.Context, ref resource.Ref, options ...resource.LookupOption) (*Hypervisor, error)
func (*API) FindRecord ¶
func (a *API) FindRecord(ctx context.Context, identity string, options ...RecordOption) (*ReadRecord, error)
FindRecord performs GET first and searches detail rows by id or hostname.
func (*API) GetExt ¶
func (a *API) GetExt(ctx context.Context, hypervisorID string, options ...GetExtOption) (*Hypervisor, error)
GetExt invokes the upstream API with library-owned builders and result handling.
func (*API) GetStatistics ¶
func (a *API) GetStatistics(ctx context.Context) (*Statistics, error)
GetStatistics invokes the upstream API with library-owned builders and result handling.
func (*API) GetUptime ¶
GetUptime 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[*Hypervisor, error]
List invokes the upstream API with library-owned builders and result handling.
func (*API) ListRecords ¶
func (a *API) ListRecords(ctx context.Context, options ...RecordOption) iter.Seq2[*ReadRecord, error]
ListRecords is lazy and defaults to Source's summary route.
func (*API) ProxyListRecords ¶
func (a *API) ProxyListRecords(ctx context.Context, options ...RecordOption) (*ProxyRecordResult, error)
ProxyListRecords evaluates JMESPath against the same opaque lazy generator as Source Proxy._list. It uses the shared JMESPath interpreter and identity ABI.
func (*API) RawClient ¶
func (a *API) RawClient() *gophercloud.ServiceClient
func (*API) WaitFor ¶
func (a *API) WaitFor(ctx context.Context, ref resource.Ref, status string, options ...resource.WaitOption) (*Hypervisor, error)
func (*API) WaitForDeletion ¶
type GetExtOption ¶
func WithGetExtOptions ¶
func WithGetExtOptions(value GetOpts) GetExtOption
func WithGetExtQuery ¶
func WithGetExtQuery(key, value string) GetExtOption
type Hypervisor ¶
type Hypervisor = upstream.Hypervisor
type HypervisorPage ¶
type HypervisorPage = upstream.HypervisorPage
type HypervisorResult ¶
type HypervisorResult = upstream.HypervisorResult
type ListOption ¶
func WithListOptions ¶
func WithListOptions(value ListOpts) ListOption
func WithListQuery ¶
func WithListQuery(key, value string) ListOption
type ProxyRecordResult ¶
type ProxyRecordResult struct {
Value any
JSON json.RawMessage
}
type ReadRecord ¶
type ReadRecord struct {
Resource, Wire *resource.RawResource
Envelope json.RawMessage
Header http.Header
StatusCode int
Discovery microversions.Discovery
}
ReadRecord preserves the declared Source view separately from the physical response.
type RecordGenerator ¶
type RecordGenerator struct{ Records iter.Seq2[*ReadRecord, error] }
RecordGenerator preserves Source's unconsumed generator identity.
func (*RecordGenerator) JMESPathIdentity ¶
func (g *RecordGenerator) JMESPathIdentity() any
func (*RecordGenerator) MarshalJSON ¶
func (*RecordGenerator) MarshalJSON() ([]byte, error)
type RecordOption ¶
type RecordOption func(*RecordOptions) error
func WithRecordDetails ¶
func WithRecordDetails(v bool) RecordOption
WithRecordDetails chooses summary/detail lists; FindRecord defaults to detail.
func WithRecordHeaders ¶
func WithRecordHeaders(v map[string]string) RecordOption
func WithRecordIgnoreMissing ¶
func WithRecordIgnoreMissing(v bool) RecordOption
func WithRecordListBasePath ¶
func WithRecordListBasePath(v string) RecordOption
func WithRecordMicroversion ¶
func WithRecordMicroversion(v string) RecordOption
func WithRecordOptions ¶
func WithRecordOptions(v RecordOptions) RecordOption
func WithRecordQuery ¶
func WithRecordQuery(k string, v any) RecordOption
type RecordOptions ¶
type RecordOptions struct {
Query map[string]json.RawMessage
Headers map[string]string
Microversion *string
IgnoreMissing *bool
Details *bool
ListBasePath *string
// contains filtered or unexported fields
}
RecordOptions owns the JSON query/profile and transport controls.
type Statistics ¶
type Statistics = upstream.Statistics
type StatisticsResult ¶
type StatisticsResult = upstream.StatisticsResult
type UptimeResult ¶
type UptimeResult = upstream.UptimeResult