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

hypervisors

package
v0.0.0-...-9ec2bbf Latest Latest
Warning

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

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

README

Hypervisors

Use Source-shaped listing and lookup for summary/detail defaults, hostname search, name lookup and raw response evidence. Existing typed native APIs remain available.

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

func (a *API) Get(ctx context.Context, hypervisorID string) (*Hypervisor, error)

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

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

func (a *API) GetUptime(ctx context.Context, hypervisorID string) (*Uptime, error)

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) 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) (*Hypervisor, error)

func (*API) WaitForDeletion

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

type CPUInfo

type CPUInfo = upstream.CPUInfo

type GetExtOption

type GetExtOption = request.Option[GetOpts]

func WithGetExtOptions

func WithGetExtOptions(value GetOpts) GetExtOption

func WithGetExtQuery

func WithGetExtQuery(key, value string) GetExtOption

type GetOpts

type GetOpts = upstream.GetOpts

type Hypervisor

type Hypervisor = upstream.Hypervisor

type HypervisorPage

type HypervisorPage = upstream.HypervisorPage

type HypervisorResult

type HypervisorResult = upstream.HypervisorResult

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 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 Server

type Server = upstream.Server

type Service

type Service = upstream.Service

type Statistics

type Statistics = upstream.Statistics

type StatisticsResult

type StatisticsResult = upstream.StatisticsResult

type Topology

type Topology = upstream.Topology

type Uptime

type Uptime = upstream.Uptime

type UptimeResult

type UptimeResult = upstream.UptimeResult

Jump to

Keyboard shortcuts

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