Example #1
0
func (command *commandGet) Execute(resource *handler.Resource) {
	params := resource.Params.(*paramsGet)
	volumeAttachment, err := osVolumeAttach.Get(command.Ctx.ServiceClient, params.serverID, params.volumeID).Extract()
	if err != nil {
		resource.Err = err
		return
	}
	resource.Result = structs.Map(volumeAttachment)
}
Example #2
0
// Get returns public data about a previously created VolumeAttachment.
func Get(client *gophercloud.ServiceClient, serverID, aID string) os.GetResult {
	return os.Get(client, serverID, aID)
}