extendedserverattributes

package
v0.5.19 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package extendedserverattributes provides the ability to extend a server result with the extended usage information.

Example to Get an extended information:

type serverAttributesExt struct {
  servers.Server
  extendedserverattributes.ServerAttributesExt
}
var serverWithAttributesExt serverAttributesExt

err := servers.Get(computeClient, "d650a0ce-17c3-497d-961a-43c4af80998a").ExtractInto(&serverWithAttributesExt)
if err != nil {
  panic(err)
}

fmt.Printf("%+v\n", serverWithAttributesExt)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerAttributesExt

type ServerAttributesExt struct {
	Host               string `json:"OS-EXT-SRV-ATTR:host"`
	InstanceName       string `json:"OS-EXT-SRV-ATTR:instance_name"`
	HypervisorHostname string `json:"OS-EXT-SRV-ATTR:hypervisor_hostname"`
}

ServerAttributesExt represents OS-EXT-SRV-ATTR server response fields.

Following fields will be added after implementing full API microversion support in the Gophercloud:

  • OS-EXT-SRV-ATTR:reservation_id"
  • OS-EXT-SRV-ATTR:launch_index"
  • OS-EXT-SRV-ATTR:hostname"
  • OS-EXT-SRV-ATTR:kernel_id"
  • OS-EXT-SRV-ATTR:ramdisk_id"
  • OS-EXT-SRV-ATTR:root_device_name"
  • OS-EXT-SRV-ATTR:user_data"

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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