|
|
@ -48,10 +48,10 @@ func (z *BucketMetadata) DecodeMsg(dc *msgp.Reader) (err error) { |
|
|
|
err = msgp.WrapError(err, "PolicyConfigJSON") |
|
|
|
err = msgp.WrapError(err, "PolicyConfigJSON") |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
case "NotificationXML": |
|
|
|
case "NotificationConfigXML": |
|
|
|
z.NotificationXML, err = dc.ReadBytes(z.NotificationXML) |
|
|
|
z.NotificationConfigXML, err = dc.ReadBytes(z.NotificationConfigXML) |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|
err = msgp.WrapError(err, "NotificationXML") |
|
|
|
err = msgp.WrapError(err, "NotificationConfigXML") |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
case "LifecycleConfigXML": |
|
|
|
case "LifecycleConfigXML": |
|
|
@ -60,10 +60,10 @@ func (z *BucketMetadata) DecodeMsg(dc *msgp.Reader) (err error) { |
|
|
|
err = msgp.WrapError(err, "LifecycleConfigXML") |
|
|
|
err = msgp.WrapError(err, "LifecycleConfigXML") |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
case "ObjectLockConfigurationXML": |
|
|
|
case "ObjectLockConfigXML": |
|
|
|
z.ObjectLockConfigurationXML, err = dc.ReadBytes(z.ObjectLockConfigurationXML) |
|
|
|
z.ObjectLockConfigXML, err = dc.ReadBytes(z.ObjectLockConfigXML) |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|
err = msgp.WrapError(err, "ObjectLockConfigurationXML") |
|
|
|
err = msgp.WrapError(err, "ObjectLockConfigXML") |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
case "EncryptionConfigXML": |
|
|
|
case "EncryptionConfigXML": |
|
|
@ -138,14 +138,14 @@ func (z *BucketMetadata) EncodeMsg(en *msgp.Writer) (err error) { |
|
|
|
err = msgp.WrapError(err, "PolicyConfigJSON") |
|
|
|
err = msgp.WrapError(err, "PolicyConfigJSON") |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
// write "NotificationXML"
|
|
|
|
// write "NotificationConfigXML"
|
|
|
|
err = en.Append(0xaf, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x58, 0x4d, 0x4c) |
|
|
|
err = en.Append(0xb5, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x58, 0x4d, 0x4c) |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
err = en.WriteBytes(z.NotificationXML) |
|
|
|
err = en.WriteBytes(z.NotificationConfigXML) |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|
err = msgp.WrapError(err, "NotificationXML") |
|
|
|
err = msgp.WrapError(err, "NotificationConfigXML") |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
// write "LifecycleConfigXML"
|
|
|
|
// write "LifecycleConfigXML"
|
|
|
@ -158,14 +158,14 @@ func (z *BucketMetadata) EncodeMsg(en *msgp.Writer) (err error) { |
|
|
|
err = msgp.WrapError(err, "LifecycleConfigXML") |
|
|
|
err = msgp.WrapError(err, "LifecycleConfigXML") |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
// write "ObjectLockConfigurationXML"
|
|
|
|
// write "ObjectLockConfigXML"
|
|
|
|
err = en.Append(0xba, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4c, 0x6f, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x58, 0x4d, 0x4c) |
|
|
|
err = en.Append(0xb3, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4c, 0x6f, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x58, 0x4d, 0x4c) |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
err = en.WriteBytes(z.ObjectLockConfigurationXML) |
|
|
|
err = en.WriteBytes(z.ObjectLockConfigXML) |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|
err = msgp.WrapError(err, "ObjectLockConfigurationXML") |
|
|
|
err = msgp.WrapError(err, "ObjectLockConfigXML") |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
// write "EncryptionConfigXML"
|
|
|
|
// write "EncryptionConfigXML"
|
|
|
@ -217,15 +217,15 @@ func (z *BucketMetadata) MarshalMsg(b []byte) (o []byte, err error) { |
|
|
|
// string "PolicyConfigJSON"
|
|
|
|
// string "PolicyConfigJSON"
|
|
|
|
o = append(o, 0xb0, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4a, 0x53, 0x4f, 0x4e) |
|
|
|
o = append(o, 0xb0, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4a, 0x53, 0x4f, 0x4e) |
|
|
|
o = msgp.AppendBytes(o, z.PolicyConfigJSON) |
|
|
|
o = msgp.AppendBytes(o, z.PolicyConfigJSON) |
|
|
|
// string "NotificationXML"
|
|
|
|
// string "NotificationConfigXML"
|
|
|
|
o = append(o, 0xaf, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x58, 0x4d, 0x4c) |
|
|
|
o = append(o, 0xb5, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x58, 0x4d, 0x4c) |
|
|
|
o = msgp.AppendBytes(o, z.NotificationXML) |
|
|
|
o = msgp.AppendBytes(o, z.NotificationConfigXML) |
|
|
|
// string "LifecycleConfigXML"
|
|
|
|
// string "LifecycleConfigXML"
|
|
|
|
o = append(o, 0xb2, 0x4c, 0x69, 0x66, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x58, 0x4d, 0x4c) |
|
|
|
o = append(o, 0xb2, 0x4c, 0x69, 0x66, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x58, 0x4d, 0x4c) |
|
|
|
o = msgp.AppendBytes(o, z.LifecycleConfigXML) |
|
|
|
o = msgp.AppendBytes(o, z.LifecycleConfigXML) |
|
|
|
// string "ObjectLockConfigurationXML"
|
|
|
|
// string "ObjectLockConfigXML"
|
|
|
|
o = append(o, 0xba, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4c, 0x6f, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x58, 0x4d, 0x4c) |
|
|
|
o = append(o, 0xb3, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4c, 0x6f, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x58, 0x4d, 0x4c) |
|
|
|
o = msgp.AppendBytes(o, z.ObjectLockConfigurationXML) |
|
|
|
o = msgp.AppendBytes(o, z.ObjectLockConfigXML) |
|
|
|
// string "EncryptionConfigXML"
|
|
|
|
// string "EncryptionConfigXML"
|
|
|
|
o = append(o, 0xb3, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x58, 0x4d, 0x4c) |
|
|
|
o = append(o, 0xb3, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x58, 0x4d, 0x4c) |
|
|
|
o = msgp.AppendBytes(o, z.EncryptionConfigXML) |
|
|
|
o = msgp.AppendBytes(o, z.EncryptionConfigXML) |
|
|
@ -280,10 +280,10 @@ func (z *BucketMetadata) UnmarshalMsg(bts []byte) (o []byte, err error) { |
|
|
|
err = msgp.WrapError(err, "PolicyConfigJSON") |
|
|
|
err = msgp.WrapError(err, "PolicyConfigJSON") |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
case "NotificationXML": |
|
|
|
case "NotificationConfigXML": |
|
|
|
z.NotificationXML, bts, err = msgp.ReadBytesBytes(bts, z.NotificationXML) |
|
|
|
z.NotificationConfigXML, bts, err = msgp.ReadBytesBytes(bts, z.NotificationConfigXML) |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|
err = msgp.WrapError(err, "NotificationXML") |
|
|
|
err = msgp.WrapError(err, "NotificationConfigXML") |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
case "LifecycleConfigXML": |
|
|
|
case "LifecycleConfigXML": |
|
|
@ -292,10 +292,10 @@ func (z *BucketMetadata) UnmarshalMsg(bts []byte) (o []byte, err error) { |
|
|
|
err = msgp.WrapError(err, "LifecycleConfigXML") |
|
|
|
err = msgp.WrapError(err, "LifecycleConfigXML") |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
case "ObjectLockConfigurationXML": |
|
|
|
case "ObjectLockConfigXML": |
|
|
|
z.ObjectLockConfigurationXML, bts, err = msgp.ReadBytesBytes(bts, z.ObjectLockConfigurationXML) |
|
|
|
z.ObjectLockConfigXML, bts, err = msgp.ReadBytesBytes(bts, z.ObjectLockConfigXML) |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|
err = msgp.WrapError(err, "ObjectLockConfigurationXML") |
|
|
|
err = msgp.WrapError(err, "ObjectLockConfigXML") |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
case "EncryptionConfigXML": |
|
|
|
case "EncryptionConfigXML": |
|
|
@ -330,6 +330,6 @@ func (z *BucketMetadata) UnmarshalMsg(bts []byte) (o []byte, err error) { |
|
|
|
|
|
|
|
|
|
|
|
// Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
|
|
|
|
// Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
|
|
|
|
func (z *BucketMetadata) Msgsize() (s int) { |
|
|
|
func (z *BucketMetadata) Msgsize() (s int) { |
|
|
|
s = 1 + 5 + msgp.StringPrefixSize + len(z.Name) + 8 + msgp.TimeSize + 12 + msgp.BoolSize + 17 + msgp.BytesPrefixSize + len(z.PolicyConfigJSON) + 16 + msgp.BytesPrefixSize + len(z.NotificationXML) + 19 + msgp.BytesPrefixSize + len(z.LifecycleConfigXML) + 27 + msgp.BytesPrefixSize + len(z.ObjectLockConfigurationXML) + 20 + msgp.BytesPrefixSize + len(z.EncryptionConfigXML) + 17 + msgp.BytesPrefixSize + len(z.TaggingConfigXML) + 16 + msgp.BytesPrefixSize + len(z.QuotaConfigJSON) |
|
|
|
s = 1 + 5 + msgp.StringPrefixSize + len(z.Name) + 8 + msgp.TimeSize + 12 + msgp.BoolSize + 17 + msgp.BytesPrefixSize + len(z.PolicyConfigJSON) + 22 + msgp.BytesPrefixSize + len(z.NotificationConfigXML) + 19 + msgp.BytesPrefixSize + len(z.LifecycleConfigXML) + 20 + msgp.BytesPrefixSize + len(z.ObjectLockConfigXML) + 20 + msgp.BytesPrefixSize + len(z.EncryptionConfigXML) + 17 + msgp.BytesPrefixSize + len(z.TaggingConfigXML) + 16 + msgp.BytesPrefixSize + len(z.QuotaConfigJSON) |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|