guest_image.go 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. // Copyright 2019 Yunion
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. package compute
  15. type SSubImage struct {
  16. Id string `json:"id"`
  17. Name string `json:"name"`
  18. MinDiskMB int32 `json:"min_disk_mb"`
  19. DiskFormat string `json:"disk_format"`
  20. }
  21. type SImagesInGuest struct {
  22. Id string `json:"id"`
  23. Name string `json:"name"`
  24. RootImage SSubImage `json:"root_image"`
  25. DataImages []SSubImage `json:"data_images"`
  26. }
  27. type SGuestScreenDumpInfo struct {
  28. S3AccessKey string `json:"s3_access_key"`
  29. S3SecretKey string `json:"s3_secret_key"`
  30. S3Endpoint string `json:"s3_endpoint"`
  31. S3BucketName string `json:"s3_bucket_name"`
  32. S3ObjectName string `json:"s3_object_name"`
  33. S3UseSSL bool `json:"s3_use_ssl"`
  34. }
  35. type GuestScreenDumpListInput struct {
  36. Server string `json:"server"`
  37. }
  38. type GetDetailsGuestScreenDumpInput struct {
  39. ObjectName string `json:"object_name"`
  40. }
  41. type GetDetailsGuestScreenDumpOutput struct {
  42. GuestId string `json:"guest_id"`
  43. Name string `json:"name"`
  44. ScreenDump string `json:"screen_dump"`
  45. }