 Documentation
      ¶
      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"
 Click to show internal directories. 
   Click to hide internal directories.