Protobuf model and library code for oaktree
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

image.pb.go 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. // Code generated by protoc-gen-go.
  2. // source: image.proto
  3. // DO NOT EDIT!
  4. /*
  5. Package oaktree is a generated protocol buffer package.
  6. It is generated from these files:
  7. image.proto
  8. It has these top-level messages:
  9. DiskFormat
  10. ContainerFormat
  11. Image
  12. ImageList
  13. */
  14. package oaktree
  15. import proto "github.com/golang/protobuf/proto"
  16. import fmt "fmt"
  17. import math "math"
  18. import oaktree1 "."
  19. // Reference imports to suppress errors if they are not otherwise used.
  20. var _ = proto.Marshal
  21. var _ = fmt.Errorf
  22. var _ = math.Inf
  23. // This is a compile-time assertion to ensure that this generated file
  24. // is compatible with the proto package it is being compiled against.
  25. // A compilation error at this line likely means your copy of the
  26. // proto package needs to be updated.
  27. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  28. type DiskFormat_DiskFormatChoice int32
  29. const (
  30. DiskFormat_qcow2 DiskFormat_DiskFormatChoice = 0
  31. DiskFormat_raw DiskFormat_DiskFormatChoice = 1
  32. DiskFormat_vhd DiskFormat_DiskFormatChoice = 2
  33. DiskFormat_iso DiskFormat_DiskFormatChoice = 3
  34. DiskFormat_vmdk DiskFormat_DiskFormatChoice = 4
  35. DiskFormat_vdi DiskFormat_DiskFormatChoice = 5
  36. DiskFormat_ami DiskFormat_DiskFormatChoice = 6
  37. DiskFormat_ari DiskFormat_DiskFormatChoice = 7
  38. DiskFormat_aki DiskFormat_DiskFormatChoice = 8
  39. )
  40. var DiskFormat_DiskFormatChoice_name = map[int32]string{
  41. 0: "qcow2",
  42. 1: "raw",
  43. 2: "vhd",
  44. 3: "iso",
  45. 4: "vmdk",
  46. 5: "vdi",
  47. 6: "ami",
  48. 7: "ari",
  49. 8: "aki",
  50. }
  51. var DiskFormat_DiskFormatChoice_value = map[string]int32{
  52. "qcow2": 0,
  53. "raw": 1,
  54. "vhd": 2,
  55. "iso": 3,
  56. "vmdk": 4,
  57. "vdi": 5,
  58. "ami": 6,
  59. "ari": 7,
  60. "aki": 8,
  61. }
  62. func (x DiskFormat_DiskFormatChoice) String() string {
  63. return proto.EnumName(DiskFormat_DiskFormatChoice_name, int32(x))
  64. }
  65. func (DiskFormat_DiskFormatChoice) EnumDescriptor() ([]byte, []int) {
  66. return fileDescriptor0, []int{0, 0}
  67. }
  68. type ContainerFormat_ContainerFormatChoice int32
  69. const (
  70. ContainerFormat_bare ContainerFormat_ContainerFormatChoice = 0
  71. ContainerFormat_docker ContainerFormat_ContainerFormatChoice = 1
  72. ContainerFormat_ovf ContainerFormat_ContainerFormatChoice = 2
  73. ContainerFormat_ova ContainerFormat_ContainerFormatChoice = 3
  74. ContainerFormat_ami ContainerFormat_ContainerFormatChoice = 4
  75. ContainerFormat_ari ContainerFormat_ContainerFormatChoice = 5
  76. ContainerFormat_aki ContainerFormat_ContainerFormatChoice = 6
  77. )
  78. var ContainerFormat_ContainerFormatChoice_name = map[int32]string{
  79. 0: "bare",
  80. 1: "docker",
  81. 2: "ovf",
  82. 3: "ova",
  83. 4: "ami",
  84. 5: "ari",
  85. 6: "aki",
  86. }
  87. var ContainerFormat_ContainerFormatChoice_value = map[string]int32{
  88. "bare": 0,
  89. "docker": 1,
  90. "ovf": 2,
  91. "ova": 3,
  92. "ami": 4,
  93. "ari": 5,
  94. "aki": 6,
  95. }
  96. func (x ContainerFormat_ContainerFormatChoice) String() string {
  97. return proto.EnumName(ContainerFormat_ContainerFormatChoice_name, int32(x))
  98. }
  99. func (ContainerFormat_ContainerFormatChoice) EnumDescriptor() ([]byte, []int) {
  100. return fileDescriptor0, []int{1, 0}
  101. }
  102. type Image_Status int32
  103. const (
  104. Image_active Image_Status = 0
  105. Image_queued Image_Status = 1
  106. Image_saving Image_Status = 2
  107. Image_deleted Image_Status = 3
  108. Image_killed Image_Status = 4
  109. Image_pending_delete Image_Status = 5
  110. Image_deactivated Image_Status = 6
  111. )
  112. var Image_Status_name = map[int32]string{
  113. 0: "active",
  114. 1: "queued",
  115. 2: "saving",
  116. 3: "deleted",
  117. 4: "killed",
  118. 5: "pending_delete",
  119. 6: "deactivated",
  120. }
  121. var Image_Status_value = map[string]int32{
  122. "active": 0,
  123. "queued": 1,
  124. "saving": 2,
  125. "deleted": 3,
  126. "killed": 4,
  127. "pending_delete": 5,
  128. "deactivated": 6,
  129. }
  130. func (x Image_Status) String() string {
  131. return proto.EnumName(Image_Status_name, int32(x))
  132. }
  133. func (Image_Status) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{2, 0} }
  134. type DiskFormat struct {
  135. }
  136. func (m *DiskFormat) Reset() { *m = DiskFormat{} }
  137. func (m *DiskFormat) String() string { return proto.CompactTextString(m) }
  138. func (*DiskFormat) ProtoMessage() {}
  139. func (*DiskFormat) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  140. type ContainerFormat struct {
  141. }
  142. func (m *ContainerFormat) Reset() { *m = ContainerFormat{} }
  143. func (m *ContainerFormat) String() string { return proto.CompactTextString(m) }
  144. func (*ContainerFormat) ProtoMessage() {}
  145. func (*ContainerFormat) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  146. type Image struct {
  147. Location *oaktree1.Location `protobuf:"bytes,1,opt,name=location" json:"location,omitempty"`
  148. Id string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"`
  149. Name string `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"`
  150. MinRam uint32 `protobuf:"varint,4,opt,name=min_ram,json=minRam" json:"min_ram,omitempty"`
  151. MinDisk uint64 `protobuf:"varint,5,opt,name=min_disk,json=minDisk" json:"min_disk,omitempty"`
  152. Size uint64 `protobuf:"varint,6,opt,name=size" json:"size,omitempty"`
  153. VirtualSize uint64 `protobuf:"varint,7,opt,name=virtual_size,json=virtualSize" json:"virtual_size,omitempty"`
  154. ContainerFormat ContainerFormat_ContainerFormatChoice `protobuf:"varint,8,opt,name=container_format,json=containerFormat,enum=oaktree.ContainerFormat_ContainerFormatChoice" json:"container_format,omitempty"`
  155. DiskFormat DiskFormat_DiskFormatChoice `protobuf:"varint,9,opt,name=disk_format,json=diskFormat,enum=oaktree.DiskFormat_DiskFormatChoice" json:"disk_format,omitempty"`
  156. Checksum string `protobuf:"bytes,10,opt,name=checksum" json:"checksum,omitempty"`
  157. CreatedAt string `protobuf:"bytes,11,opt,name=created_at,json=createdAt" json:"created_at,omitempty"`
  158. UpdatedAt string `protobuf:"bytes,12,opt,name=updated_at,json=updatedAt" json:"updated_at,omitempty"`
  159. Owner string `protobuf:"bytes,13,opt,name=owner" json:"owner,omitempty"`
  160. IsPublic bool `protobuf:"varint,14,opt,name=is_public,json=isPublic" json:"is_public,omitempty"`
  161. IsProtected bool `protobuf:"varint,15,opt,name=is_protected,json=isProtected" json:"is_protected,omitempty"`
  162. Status Image_Status `protobuf:"varint,16,opt,name=status,enum=oaktree.Image_Status" json:"status,omitempty"`
  163. Locations []string `protobuf:"bytes,17,rep,name=locations" json:"locations,omitempty"`
  164. DirectUrl string `protobuf:"bytes,18,opt,name=direct_url,json=directUrl" json:"direct_url,omitempty"`
  165. Tags []string `protobuf:"bytes,19,rep,name=tags" json:"tags,omitempty"`
  166. Properties map[string]string `protobuf:"bytes,99,rep,name=properties" json:"properties,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  167. }
  168. func (m *Image) Reset() { *m = Image{} }
  169. func (m *Image) String() string { return proto.CompactTextString(m) }
  170. func (*Image) ProtoMessage() {}
  171. func (*Image) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
  172. func (m *Image) GetLocation() *oaktree1.Location {
  173. if m != nil {
  174. return m.Location
  175. }
  176. return nil
  177. }
  178. func (m *Image) GetProperties() map[string]string {
  179. if m != nil {
  180. return m.Properties
  181. }
  182. return nil
  183. }
  184. type ImageList struct {
  185. Images []*Image `protobuf:"bytes,1,rep,name=images" json:"images,omitempty"`
  186. }
  187. func (m *ImageList) Reset() { *m = ImageList{} }
  188. func (m *ImageList) String() string { return proto.CompactTextString(m) }
  189. func (*ImageList) ProtoMessage() {}
  190. func (*ImageList) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
  191. func (m *ImageList) GetImages() []*Image {
  192. if m != nil {
  193. return m.Images
  194. }
  195. return nil
  196. }
  197. func init() {
  198. proto.RegisterType((*DiskFormat)(nil), "oaktree.DiskFormat")
  199. proto.RegisterType((*ContainerFormat)(nil), "oaktree.ContainerFormat")
  200. proto.RegisterType((*Image)(nil), "oaktree.Image")
  201. proto.RegisterType((*ImageList)(nil), "oaktree.ImageList")
  202. proto.RegisterEnum("oaktree.DiskFormat_DiskFormatChoice", DiskFormat_DiskFormatChoice_name, DiskFormat_DiskFormatChoice_value)
  203. proto.RegisterEnum("oaktree.ContainerFormat_ContainerFormatChoice", ContainerFormat_ContainerFormatChoice_name, ContainerFormat_ContainerFormatChoice_value)
  204. proto.RegisterEnum("oaktree.Image_Status", Image_Status_name, Image_Status_value)
  205. }
  206. func init() { proto.RegisterFile("image.proto", fileDescriptor0) }
  207. var fileDescriptor0 = []byte{
  208. // 676 bytes of a gzipped FileDescriptorProto
  209. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x6c, 0x54, 0x4b, 0x6f, 0xd3, 0x4c,
  210. 0x14, 0xfd, 0xf2, 0x72, 0xec, 0xeb, 0x36, 0x71, 0xe7, 0xa3, 0x62, 0x28, 0x0f, 0x95, 0x08, 0x21,
  211. 0x36, 0x64, 0x91, 0x6e, 0x10, 0x12, 0x48, 0xa8, 0x14, 0x09, 0xa9, 0x8b, 0xca, 0x15, 0x0b, 0xd8,
  212. 0x44, 0x53, 0x7b, 0xda, 0x0e, 0x7e, 0x4c, 0x3a, 0x33, 0x76, 0x55, 0x96, 0xfc, 0x72, 0xee, 0x8c,
  213. 0x1f, 0xa5, 0x11, 0xbb, 0x33, 0xe7, 0xdc, 0xdc, 0xc7, 0xc9, 0xbd, 0x86, 0x50, 0x14, 0xec, 0x8a,
  214. 0x2f, 0x37, 0x4a, 0x1a, 0x49, 0xa6, 0x92, 0x65, 0x46, 0x71, 0x7e, 0xb0, 0x93, 0xc8, 0xa2, 0x90,
  215. 0x65, 0x43, 0x2f, 0x0c, 0xc0, 0x67, 0xa1, 0xb3, 0x2f, 0x52, 0x15, 0xcc, 0x2c, 0x2e, 0x21, 0xba,
  216. 0x7f, 0x1d, 0x5f, 0x4b, 0x91, 0x70, 0x12, 0xc0, 0xe4, 0x26, 0x91, 0xb7, 0xab, 0xe8, 0x3f, 0x32,
  217. 0x85, 0x91, 0x62, 0xb7, 0xd1, 0xc0, 0x82, 0xfa, 0x3a, 0x8d, 0x86, 0x16, 0x08, 0x2d, 0xa3, 0x11,
  218. 0xf1, 0x61, 0x5c, 0x17, 0x69, 0x16, 0x8d, 0x9d, 0x96, 0x8a, 0x68, 0x62, 0x01, 0x2b, 0x44, 0xe4,
  219. 0x39, 0xa0, 0x44, 0x34, 0x75, 0x20, 0x13, 0x91, 0xbf, 0x28, 0x60, 0x7e, 0x2c, 0x4b, 0xc3, 0x44,
  220. 0xc9, 0x55, 0x5b, 0xfa, 0x07, 0xec, 0x6f, 0x51, 0x6d, 0x7d, 0xcc, 0x7c, 0xc1, 0x14, 0xc7, 0xf2,
  221. 0x00, 0x5e, 0x2a, 0x93, 0x8c, 0xab, 0xa6, 0x03, 0x59, 0x5f, 0x36, 0x1d, 0xc8, 0x9a, 0x61, 0x07,
  222. 0x6d, 0xb9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xd4, 0xbf, 0xc9, 0x73, 0x80, 0x44, 0x71, 0x66, 0x78, 0xba, 0xc6, 0x0a, 0xa1, 0x53, 0x83, 0x96,
  234. 0xf9, 0x64, 0xac, 0x5c, 0x6d, 0xd2, 0x4e, 0xde, 0x69, 0xe4, 0x96, 0x41, 0xf9, 0x11, 0x4c, 0xe4,
  235. 0x2d, 0xf6, 0x4b, 0x77, 0x9d, 0xd2, 0x3c, 0xc8, 0x53, 0x08, 0x84, 0x5e, 0x6f, 0xaa, 0x8b, 0x5c,
  236. 0x24, 0x74, 0x86, 0x8a, 0x1f, 0xfb, 0x42, 0x9f, 0xb9, 0xb7, 0x75, 0xd4, 0x8a, 0xb8, 0xe7, 0x3c,
  237. 0xc1, 0x24, 0x74, 0xee, 0xf4, 0x10, 0xf5, 0x8e, 0xc2, 0x7d, 0xf0, 0xb4, 0x61, 0xa6, 0xd2, 0x34,
  238. 0x72, 0x13, 0xef, 0xf7, 0x13, 0xbb, 0x7d, 0x59, 0x9e, 0x3b, 0x31, 0x6e, 0x83, 0xc8, 0x33, 0x08,
  239. 0xba, 0xdd, 0xd0, 0x74, 0xef, 0x70, 0x64, 0x5b, 0xec, 0x09, 0x3b, 0x41, 0x2a, 0x14, 0x26, 0x5e,
  240. 0x57, 0x2a, 0xa7, 0xa4, 0x99, 0xa0, 0x61, 0xbe, 0xa9, 0xdc, 0xfe, 0xe9, 0x86, 0x5d, 0x69, 0xfa,
  241. 0xbf, 0xfb, 0x9d, 0xc3, 0xe4, 0x23, 0x00, 0xf6, 0xb7, 0xe1, 0xca, 0x08, 0xae, 0x69, 0x82, 0x4a,
  242. 0xb8, 0x7a, 0xb1, 0xd5, 0xc3, 0x59, 0x1f, 0x70, 0x52, 0x1a, 0x75, 0x17, 0xff, 0xf5, 0x8b, 0x83,
  243. 0x0f, 0x30, 0xdf, 0x92, 0x49, 0x04, 0xa3, 0x8c, 0xdf, 0xb9, 0xed, 0x0e, 0x62, 0x0b, 0xad, 0x75,
  244. 0x35, 0xcb, 0x2b, 0xde, 0x2e, 0x72, 0xf3, 0x78, 0x3f, 0x7c, 0x37, 0x58, 0xfc, 0x04, 0xaf, 0x99,
  245. 0xd0, 0xde, 0x16, 0x4b, 0x8c, 0xa8, 0xdb, 0x3b, 0xbb, 0xa9, 0x78, 0xc5, 0x53, 0xbc, 0x33, 0xc4,
  246. 0x9a, 0xd5, 0xa2, 0xbc, 0xc2, 0x53, 0x0b, 0x61, 0x9a, 0xf2, 0x9c, 0xa3, 0x6f, 0x78, 0x6e, 0x28,
  247. 0x64, 0x22, 0xcf, 0x11, 0x8f, 0x71, 0xb2, 0xd9, 0x86, 0x97, 0x29, 0x46, 0xad, 0x9b, 0x00, 0x3c,
  248. 0xbe, 0x39, 0x2e, 0x14, 0x77, 0x29, 0xed, 0x1f, 0x88, 0x47, 0x78, 0x04, 0x81, 0x9b, 0xe7, 0x54,
  249. 0x68, 0x43, 0x5e, 0x83, 0xe7, 0x3e, 0x4e, 0x1a, 0xfb, 0xb4, 0x33, 0xcf, 0x1e, 0xce, 0x1c, 0xb7,
  250. 0xea, 0x85, 0xe7, 0xbe, 0x52, 0x47, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x9f, 0xb3, 0x99, 0x9b,
  251. 0xcb, 0x04, 0x00, 0x00,
  252. }