github.com/opentelekomcloud/gophertelekomcloud@v0.9.3/openstack/ecs/v1/block_devices/results.go (about)

     1  package block_devices
     2  
     3  import "github.com/opentelekomcloud/gophertelekomcloud"
     4  
     5  type VolumeAttachment struct {
     6  	PciAddress string `json:"pciAddress"`
     7  	Size       int    `json:"size"`
     8  	BootIndex  int    `json:"bootIndex"`
     9  }
    10  
    11  type GetResult struct {
    12  	golangsdk.Result
    13  }
    14  
    15  func (r GetResult) Extract() (*VolumeAttachment, error) {
    16  	s := &VolumeAttachment{}
    17  	return s, r.ExtractInto(s)
    18  }
    19  
    20  func (r GetResult) ExtractInto(v interface{}) error {
    21  	return r.Result.ExtractIntoStructPtr(v, "volumeAttachment")
    22  }