devices

package
v0.0.0-...-5f8858b Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractDevicesInto

func ExtractDevicesInto(r pagination.Page, v any) error

Types

type Device

type Device struct {
	UUID            string `json:"uuid"`
	Hostname        string `json:"hostname"`
	Type            string `json:"type"`
	Vendor          string `json:"vendor"`
	Model           string `json:"model"`
	StdBoardInfo    string `json:"std_board_info"`
	VendorBoardInfo string `json:"vendor_board_info"`
	CreatedAt       string `json:"created_at"`
	UpdatedAt       string `json:"updated_at"`
}

func ExtractDevices

func ExtractDevices(r pagination.Page) ([]Device, error)

func List

func List(client *gophercloud.ServiceClient, opts ListOptsBuilder) ([]Device, error)

type DevicePage

type DevicePage struct {
	pagination.LinkedPageBase
}

func (DevicePage) IsEmpty

func (d DevicePage) IsEmpty() (bool, error)

func (DevicePage) NextPageURL

func (r DevicePage) NextPageURL() (string, error)

type ListOpts

type ListOpts struct {
	Type     string            `q:"type"`
	Vendor   string            `q:"vendor"`
	Hostname string            `q:"hostname"`
	Filters  map[string]string `q:"-"`
}

func (ListOpts) ToDeviceListQuery

func (opts ListOpts) ToDeviceListQuery() (string, error)

type ListOptsBuilder

type ListOptsBuilder interface {
	ToDeviceListQuery() (string, error)
}

Jump to

Keyboard shortcuts

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