github.com/minio/minio@v0.0.0-20240328213742-3f72439b8a27/cmd/object-api-interface_gen.go (about) 1 package cmd 2 3 // Code generated by github.com/tinylib/msgp DO NOT EDIT. 4 5 import ( 6 "github.com/tinylib/msgp/msgp" 7 ) 8 9 // MarshalMsg implements msgp.Marshaler 10 func (z BucketOptions) MarshalMsg(b []byte) (o []byte, err error) { 11 o = msgp.Require(b, z.Msgsize()) 12 // map header, size 2 13 // string "Deleted" 14 o = append(o, 0x82, 0xa7, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64) 15 o = msgp.AppendBool(o, z.Deleted) 16 // string "Cached" 17 o = append(o, 0xa6, 0x43, 0x61, 0x63, 0x68, 0x65, 0x64) 18 o = msgp.AppendBool(o, z.Cached) 19 return 20 } 21 22 // UnmarshalMsg implements msgp.Unmarshaler 23 func (z *BucketOptions) UnmarshalMsg(bts []byte) (o []byte, err error) { 24 var field []byte 25 _ = field 26 var zb0001 uint32 27 zb0001, bts, err = msgp.ReadMapHeaderBytes(bts) 28 if err != nil { 29 err = msgp.WrapError(err) 30 return 31 } 32 for zb0001 > 0 { 33 zb0001-- 34 field, bts, err = msgp.ReadMapKeyZC(bts) 35 if err != nil { 36 err = msgp.WrapError(err) 37 return 38 } 39 switch msgp.UnsafeString(field) { 40 case "Deleted": 41 z.Deleted, bts, err = msgp.ReadBoolBytes(bts) 42 if err != nil { 43 err = msgp.WrapError(err, "Deleted") 44 return 45 } 46 case "Cached": 47 z.Cached, bts, err = msgp.ReadBoolBytes(bts) 48 if err != nil { 49 err = msgp.WrapError(err, "Cached") 50 return 51 } 52 default: 53 bts, err = msgp.Skip(bts) 54 if err != nil { 55 err = msgp.WrapError(err) 56 return 57 } 58 } 59 } 60 o = bts 61 return 62 } 63 64 // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message 65 func (z BucketOptions) Msgsize() (s int) { 66 s = 1 + 8 + msgp.BoolSize + 7 + msgp.BoolSize 67 return 68 } 69 70 // MarshalMsg implements msgp.Marshaler 71 func (z ExpirationOptions) MarshalMsg(b []byte) (o []byte, err error) { 72 o = msgp.Require(b, z.Msgsize()) 73 // map header, size 1 74 // string "Expire" 75 o = append(o, 0x81, 0xa6, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65) 76 o = msgp.AppendBool(o, z.Expire) 77 return 78 } 79 80 // UnmarshalMsg implements msgp.Unmarshaler 81 func (z *ExpirationOptions) UnmarshalMsg(bts []byte) (o []byte, err error) { 82 var field []byte 83 _ = field 84 var zb0001 uint32 85 zb0001, bts, err = msgp.ReadMapHeaderBytes(bts) 86 if err != nil { 87 err = msgp.WrapError(err) 88 return 89 } 90 for zb0001 > 0 { 91 zb0001-- 92 field, bts, err = msgp.ReadMapKeyZC(bts) 93 if err != nil { 94 err = msgp.WrapError(err) 95 return 96 } 97 switch msgp.UnsafeString(field) { 98 case "Expire": 99 z.Expire, bts, err = msgp.ReadBoolBytes(bts) 100 if err != nil { 101 err = msgp.WrapError(err, "Expire") 102 return 103 } 104 default: 105 bts, err = msgp.Skip(bts) 106 if err != nil { 107 err = msgp.WrapError(err) 108 return 109 } 110 } 111 } 112 o = bts 113 return 114 } 115 116 // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message 117 func (z ExpirationOptions) Msgsize() (s int) { 118 s = 1 + 7 + msgp.BoolSize 119 return 120 } 121 122 // MarshalMsg implements msgp.Marshaler 123 func (z *MakeBucketOptions) MarshalMsg(b []byte) (o []byte, err error) { 124 o = msgp.Require(b, z.Msgsize()) 125 // map header, size 5 126 // string "LockEnabled" 127 o = append(o, 0x85, 0xab, 0x4c, 0x6f, 0x63, 0x6b, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64) 128 o = msgp.AppendBool(o, z.LockEnabled) 129 // string "VersioningEnabled" 130 o = append(o, 0xb1, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64) 131 o = msgp.AppendBool(o, z.VersioningEnabled) 132 // string "ForceCreate" 133 o = append(o, 0xab, 0x46, 0x6f, 0x72, 0x63, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65) 134 o = msgp.AppendBool(o, z.ForceCreate) 135 // string "CreatedAt" 136 o = append(o, 0xa9, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74) 137 o = msgp.AppendTime(o, z.CreatedAt) 138 // string "NoLock" 139 o = append(o, 0xa6, 0x4e, 0x6f, 0x4c, 0x6f, 0x63, 0x6b) 140 o = msgp.AppendBool(o, z.NoLock) 141 return 142 } 143 144 // UnmarshalMsg implements msgp.Unmarshaler 145 func (z *MakeBucketOptions) UnmarshalMsg(bts []byte) (o []byte, err error) { 146 var field []byte 147 _ = field 148 var zb0001 uint32 149 zb0001, bts, err = msgp.ReadMapHeaderBytes(bts) 150 if err != nil { 151 err = msgp.WrapError(err) 152 return 153 } 154 for zb0001 > 0 { 155 zb0001-- 156 field, bts, err = msgp.ReadMapKeyZC(bts) 157 if err != nil { 158 err = msgp.WrapError(err) 159 return 160 } 161 switch msgp.UnsafeString(field) { 162 case "LockEnabled": 163 z.LockEnabled, bts, err = msgp.ReadBoolBytes(bts) 164 if err != nil { 165 err = msgp.WrapError(err, "LockEnabled") 166 return 167 } 168 case "VersioningEnabled": 169 z.VersioningEnabled, bts, err = msgp.ReadBoolBytes(bts) 170 if err != nil { 171 err = msgp.WrapError(err, "VersioningEnabled") 172 return 173 } 174 case "ForceCreate": 175 z.ForceCreate, bts, err = msgp.ReadBoolBytes(bts) 176 if err != nil { 177 err = msgp.WrapError(err, "ForceCreate") 178 return 179 } 180 case "CreatedAt": 181 z.CreatedAt, bts, err = msgp.ReadTimeBytes(bts) 182 if err != nil { 183 err = msgp.WrapError(err, "CreatedAt") 184 return 185 } 186 case "NoLock": 187 z.NoLock, bts, err = msgp.ReadBoolBytes(bts) 188 if err != nil { 189 err = msgp.WrapError(err, "NoLock") 190 return 191 } 192 default: 193 bts, err = msgp.Skip(bts) 194 if err != nil { 195 err = msgp.WrapError(err) 196 return 197 } 198 } 199 } 200 o = bts 201 return 202 } 203 204 // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message 205 func (z *MakeBucketOptions) Msgsize() (s int) { 206 s = 1 + 12 + msgp.BoolSize + 18 + msgp.BoolSize + 12 + msgp.BoolSize + 10 + msgp.TimeSize + 7 + msgp.BoolSize 207 return 208 } 209 210 // MarshalMsg implements msgp.Marshaler 211 func (z *WalkOptions) MarshalMsg(b []byte) (o []byte, err error) { 212 o = msgp.Require(b, z.Msgsize()) 213 // map header, size 4 214 // string "Marker" 215 o = append(o, 0x84, 0xa6, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x72) 216 o = msgp.AppendString(o, z.Marker) 217 // string "LatestOnly" 218 o = append(o, 0xaa, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x4f, 0x6e, 0x6c, 0x79) 219 o = msgp.AppendBool(o, z.LatestOnly) 220 // string "AskDisks" 221 o = append(o, 0xa8, 0x41, 0x73, 0x6b, 0x44, 0x69, 0x73, 0x6b, 0x73) 222 o = msgp.AppendString(o, z.AskDisks) 223 // string "VersionsSort" 224 o = append(o, 0xac, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x53, 0x6f, 0x72, 0x74) 225 o = msgp.AppendUint8(o, uint8(z.VersionsSort)) 226 return 227 } 228 229 // UnmarshalMsg implements msgp.Unmarshaler 230 func (z *WalkOptions) UnmarshalMsg(bts []byte) (o []byte, err error) { 231 var field []byte 232 _ = field 233 var zb0001 uint32 234 zb0001, bts, err = msgp.ReadMapHeaderBytes(bts) 235 if err != nil { 236 err = msgp.WrapError(err) 237 return 238 } 239 for zb0001 > 0 { 240 zb0001-- 241 field, bts, err = msgp.ReadMapKeyZC(bts) 242 if err != nil { 243 err = msgp.WrapError(err) 244 return 245 } 246 switch msgp.UnsafeString(field) { 247 case "Marker": 248 z.Marker, bts, err = msgp.ReadStringBytes(bts) 249 if err != nil { 250 err = msgp.WrapError(err, "Marker") 251 return 252 } 253 case "LatestOnly": 254 z.LatestOnly, bts, err = msgp.ReadBoolBytes(bts) 255 if err != nil { 256 err = msgp.WrapError(err, "LatestOnly") 257 return 258 } 259 case "AskDisks": 260 z.AskDisks, bts, err = msgp.ReadStringBytes(bts) 261 if err != nil { 262 err = msgp.WrapError(err, "AskDisks") 263 return 264 } 265 case "VersionsSort": 266 { 267 var zb0002 uint8 268 zb0002, bts, err = msgp.ReadUint8Bytes(bts) 269 if err != nil { 270 err = msgp.WrapError(err, "VersionsSort") 271 return 272 } 273 z.VersionsSort = WalkVersionsSortOrder(zb0002) 274 } 275 default: 276 bts, err = msgp.Skip(bts) 277 if err != nil { 278 err = msgp.WrapError(err) 279 return 280 } 281 } 282 } 283 o = bts 284 return 285 } 286 287 // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message 288 func (z *WalkOptions) Msgsize() (s int) { 289 s = 1 + 7 + msgp.StringPrefixSize + len(z.Marker) + 11 + msgp.BoolSize + 9 + msgp.StringPrefixSize + len(z.AskDisks) + 13 + msgp.Uint8Size 290 return 291 } 292 293 // MarshalMsg implements msgp.Marshaler 294 func (z WalkVersionsSortOrder) MarshalMsg(b []byte) (o []byte, err error) { 295 o = msgp.Require(b, z.Msgsize()) 296 o = msgp.AppendUint8(o, uint8(z)) 297 return 298 } 299 300 // UnmarshalMsg implements msgp.Unmarshaler 301 func (z *WalkVersionsSortOrder) UnmarshalMsg(bts []byte) (o []byte, err error) { 302 { 303 var zb0001 uint8 304 zb0001, bts, err = msgp.ReadUint8Bytes(bts) 305 if err != nil { 306 err = msgp.WrapError(err) 307 return 308 } 309 (*z) = WalkVersionsSortOrder(zb0001) 310 } 311 o = bts 312 return 313 } 314 315 // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message 316 func (z WalkVersionsSortOrder) Msgsize() (s int) { 317 s = msgp.Uint8Size 318 return 319 }