2020-05-19 16:53:54 -04:00
|
|
|
package cmd
|
|
|
|
|
|
|
|
// Code generated by github.com/tinylib/msgp DO NOT EDIT.
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/tinylib/msgp/msgp"
|
|
|
|
)
|
|
|
|
|
|
|
|
// DecodeMsg implements msgp.Decodable
|
|
|
|
func (z *BucketMetadata) DecodeMsg(dc *msgp.Reader) (err error) {
|
|
|
|
var field []byte
|
|
|
|
_ = field
|
|
|
|
var zb0001 uint32
|
|
|
|
zb0001, err = dc.ReadMapHeader()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
for zb0001 > 0 {
|
|
|
|
zb0001--
|
|
|
|
field, err = dc.ReadMapKeyPtr()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
switch msgp.UnsafeString(field) {
|
|
|
|
case "Name":
|
|
|
|
z.Name, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Name")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "Created":
|
|
|
|
z.Created, err = dc.ReadTime()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Created")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "LockEnabled":
|
|
|
|
z.LockEnabled, err = dc.ReadBool()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "LockEnabled")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "PolicyConfigJSON":
|
|
|
|
z.PolicyConfigJSON, err = dc.ReadBytes(z.PolicyConfigJSON)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "PolicyConfigJSON")
|
|
|
|
return
|
|
|
|
}
|
2020-05-21 14:03:59 -04:00
|
|
|
case "NotificationConfigXML":
|
|
|
|
z.NotificationConfigXML, err = dc.ReadBytes(z.NotificationConfigXML)
|
2020-05-19 16:53:54 -04:00
|
|
|
if err != nil {
|
2020-05-21 14:03:59 -04:00
|
|
|
err = msgp.WrapError(err, "NotificationConfigXML")
|
2020-05-19 16:53:54 -04:00
|
|
|
return
|
|
|
|
}
|
|
|
|
case "LifecycleConfigXML":
|
|
|
|
z.LifecycleConfigXML, err = dc.ReadBytes(z.LifecycleConfigXML)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "LifecycleConfigXML")
|
|
|
|
return
|
|
|
|
}
|
2020-05-21 14:03:59 -04:00
|
|
|
case "ObjectLockConfigXML":
|
|
|
|
z.ObjectLockConfigXML, err = dc.ReadBytes(z.ObjectLockConfigXML)
|
2020-05-19 16:53:54 -04:00
|
|
|
if err != nil {
|
2020-05-21 14:03:59 -04:00
|
|
|
err = msgp.WrapError(err, "ObjectLockConfigXML")
|
2020-05-19 16:53:54 -04:00
|
|
|
return
|
|
|
|
}
|
2020-06-12 23:04:01 -04:00
|
|
|
case "VersioningConfigXML":
|
|
|
|
z.VersioningConfigXML, err = dc.ReadBytes(z.VersioningConfigXML)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "VersioningConfigXML")
|
|
|
|
return
|
|
|
|
}
|
2020-05-19 16:53:54 -04:00
|
|
|
case "EncryptionConfigXML":
|
|
|
|
z.EncryptionConfigXML, err = dc.ReadBytes(z.EncryptionConfigXML)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "EncryptionConfigXML")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "TaggingConfigXML":
|
|
|
|
z.TaggingConfigXML, err = dc.ReadBytes(z.TaggingConfigXML)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "TaggingConfigXML")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "QuotaConfigJSON":
|
|
|
|
z.QuotaConfigJSON, err = dc.ReadBytes(z.QuotaConfigJSON)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "QuotaConfigJSON")
|
|
|
|
return
|
|
|
|
}
|
2020-07-21 20:49:56 -04:00
|
|
|
case "ReplicationConfigXML":
|
|
|
|
z.ReplicationConfigXML, err = dc.ReadBytes(z.ReplicationConfigXML)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "ReplicationConfigXML")
|
|
|
|
return
|
|
|
|
}
|
2020-07-28 14:50:47 -04:00
|
|
|
case "BucketTargetsConfigJSON":
|
|
|
|
z.BucketTargetsConfigJSON, err = dc.ReadBytes(z.BucketTargetsConfigJSON)
|
2020-07-21 20:49:56 -04:00
|
|
|
if err != nil {
|
2020-07-28 14:50:47 -04:00
|
|
|
err = msgp.WrapError(err, "BucketTargetsConfigJSON")
|
2020-07-21 20:49:56 -04:00
|
|
|
return
|
|
|
|
}
|
2020-12-21 19:21:33 -05:00
|
|
|
case "BucketTargetsConfigMetaJSON":
|
|
|
|
z.BucketTargetsConfigMetaJSON, err = dc.ReadBytes(z.BucketTargetsConfigMetaJSON)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "BucketTargetsConfigMetaJSON")
|
|
|
|
return
|
|
|
|
}
|
2022-04-24 05:36:31 -04:00
|
|
|
case "PolicyConfigUpdatedAt":
|
|
|
|
z.PolicyConfigUpdatedAt, err = dc.ReadTime()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "PolicyConfigUpdatedAt")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "ObjectLockConfigUpdatedAt":
|
|
|
|
z.ObjectLockConfigUpdatedAt, err = dc.ReadTime()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "ObjectLockConfigUpdatedAt")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "EncryptionConfigUpdatedAt":
|
|
|
|
z.EncryptionConfigUpdatedAt, err = dc.ReadTime()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "EncryptionConfigUpdatedAt")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "TaggingConfigUpdatedAt":
|
|
|
|
z.TaggingConfigUpdatedAt, err = dc.ReadTime()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "TaggingConfigUpdatedAt")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "QuotaConfigUpdatedAt":
|
|
|
|
z.QuotaConfigUpdatedAt, err = dc.ReadTime()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "QuotaConfigUpdatedAt")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "ReplicationConfigUpdatedAt":
|
|
|
|
z.ReplicationConfigUpdatedAt, err = dc.ReadTime()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "ReplicationConfigUpdatedAt")
|
|
|
|
return
|
|
|
|
}
|
2022-05-31 05:57:57 -04:00
|
|
|
case "VersioningConfigUpdatedAt":
|
|
|
|
z.VersioningConfigUpdatedAt, err = dc.ReadTime()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "VersioningConfigUpdatedAt")
|
|
|
|
return
|
|
|
|
}
|
2020-05-19 16:53:54 -04:00
|
|
|
default:
|
|
|
|
err = dc.Skip()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// EncodeMsg implements msgp.Encodable
|
|
|
|
func (z *BucketMetadata) EncodeMsg(en *msgp.Writer) (err error) {
|
2022-05-31 05:57:57 -04:00
|
|
|
// map header, size 21
|
2020-05-19 16:53:54 -04:00
|
|
|
// write "Name"
|
2022-05-31 05:57:57 -04:00
|
|
|
err = en.Append(0xde, 0x0, 0x15, 0xa4, 0x4e, 0x61, 0x6d, 0x65)
|
2020-05-19 16:53:54 -04:00
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteString(z.Name)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Name")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "Created"
|
|
|
|
err = en.Append(0xa7, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteTime(z.Created)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Created")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "LockEnabled"
|
|
|
|
err = en.Append(0xab, 0x4c, 0x6f, 0x63, 0x6b, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteBool(z.LockEnabled)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "LockEnabled")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "PolicyConfigJSON"
|
|
|
|
err = en.Append(0xb0, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4a, 0x53, 0x4f, 0x4e)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteBytes(z.PolicyConfigJSON)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "PolicyConfigJSON")
|
|
|
|
return
|
|
|
|
}
|
2020-05-21 14:03:59 -04:00
|
|
|
// write "NotificationConfigXML"
|
|
|
|
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)
|
2020-05-19 16:53:54 -04:00
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
2020-05-21 14:03:59 -04:00
|
|
|
err = en.WriteBytes(z.NotificationConfigXML)
|
2020-05-19 16:53:54 -04:00
|
|
|
if err != nil {
|
2020-05-21 14:03:59 -04:00
|
|
|
err = msgp.WrapError(err, "NotificationConfigXML")
|
2020-05-19 16:53:54 -04:00
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "LifecycleConfigXML"
|
|
|
|
err = en.Append(0xb2, 0x4c, 0x69, 0x66, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x58, 0x4d, 0x4c)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteBytes(z.LifecycleConfigXML)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "LifecycleConfigXML")
|
|
|
|
return
|
|
|
|
}
|
2020-05-21 14:03:59 -04:00
|
|
|
// write "ObjectLockConfigXML"
|
|
|
|
err = en.Append(0xb3, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4c, 0x6f, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x58, 0x4d, 0x4c)
|
2020-05-19 16:53:54 -04:00
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
2020-05-21 14:03:59 -04:00
|
|
|
err = en.WriteBytes(z.ObjectLockConfigXML)
|
2020-05-19 16:53:54 -04:00
|
|
|
if err != nil {
|
2020-05-21 14:03:59 -04:00
|
|
|
err = msgp.WrapError(err, "ObjectLockConfigXML")
|
2020-05-19 16:53:54 -04:00
|
|
|
return
|
|
|
|
}
|
2020-06-12 23:04:01 -04:00
|
|
|
// write "VersioningConfigXML"
|
|
|
|
err = en.Append(0xb3, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x58, 0x4d, 0x4c)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteBytes(z.VersioningConfigXML)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "VersioningConfigXML")
|
|
|
|
return
|
|
|
|
}
|
2020-05-19 16:53:54 -04:00
|
|
|
// write "EncryptionConfigXML"
|
|
|
|
err = en.Append(0xb3, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x58, 0x4d, 0x4c)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteBytes(z.EncryptionConfigXML)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "EncryptionConfigXML")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "TaggingConfigXML"
|
|
|
|
err = en.Append(0xb0, 0x54, 0x61, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x58, 0x4d, 0x4c)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteBytes(z.TaggingConfigXML)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "TaggingConfigXML")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "QuotaConfigJSON"
|
|
|
|
err = en.Append(0xaf, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4a, 0x53, 0x4f, 0x4e)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteBytes(z.QuotaConfigJSON)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "QuotaConfigJSON")
|
|
|
|
return
|
|
|
|
}
|
2020-07-21 20:49:56 -04:00
|
|
|
// write "ReplicationConfigXML"
|
|
|
|
err = en.Append(0xb4, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x58, 0x4d, 0x4c)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteBytes(z.ReplicationConfigXML)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "ReplicationConfigXML")
|
|
|
|
return
|
|
|
|
}
|
2020-07-28 14:50:47 -04:00
|
|
|
// write "BucketTargetsConfigJSON"
|
|
|
|
err = en.Append(0xb7, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4a, 0x53, 0x4f, 0x4e)
|
2020-07-21 20:49:56 -04:00
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
2020-07-28 14:50:47 -04:00
|
|
|
err = en.WriteBytes(z.BucketTargetsConfigJSON)
|
2020-07-21 20:49:56 -04:00
|
|
|
if err != nil {
|
2020-07-28 14:50:47 -04:00
|
|
|
err = msgp.WrapError(err, "BucketTargetsConfigJSON")
|
2020-07-21 20:49:56 -04:00
|
|
|
return
|
|
|
|
}
|
2020-12-21 19:21:33 -05:00
|
|
|
// write "BucketTargetsConfigMetaJSON"
|
|
|
|
err = en.Append(0xbb, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4d, 0x65, 0x74, 0x61, 0x4a, 0x53, 0x4f, 0x4e)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteBytes(z.BucketTargetsConfigMetaJSON)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "BucketTargetsConfigMetaJSON")
|
|
|
|
return
|
|
|
|
}
|
2022-04-24 05:36:31 -04:00
|
|
|
// write "PolicyConfigUpdatedAt"
|
|
|
|
err = en.Append(0xb5, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteTime(z.PolicyConfigUpdatedAt)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "PolicyConfigUpdatedAt")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "ObjectLockConfigUpdatedAt"
|
|
|
|
err = en.Append(0xb9, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4c, 0x6f, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteTime(z.ObjectLockConfigUpdatedAt)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "ObjectLockConfigUpdatedAt")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "EncryptionConfigUpdatedAt"
|
|
|
|
err = en.Append(0xb9, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteTime(z.EncryptionConfigUpdatedAt)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "EncryptionConfigUpdatedAt")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "TaggingConfigUpdatedAt"
|
|
|
|
err = en.Append(0xb6, 0x54, 0x61, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteTime(z.TaggingConfigUpdatedAt)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "TaggingConfigUpdatedAt")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "QuotaConfigUpdatedAt"
|
|
|
|
err = en.Append(0xb4, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteTime(z.QuotaConfigUpdatedAt)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "QuotaConfigUpdatedAt")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "ReplicationConfigUpdatedAt"
|
|
|
|
err = en.Append(0xba, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteTime(z.ReplicationConfigUpdatedAt)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "ReplicationConfigUpdatedAt")
|
|
|
|
return
|
|
|
|
}
|
2022-05-31 05:57:57 -04:00
|
|
|
// write "VersioningConfigUpdatedAt"
|
|
|
|
err = en.Append(0xb9, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteTime(z.VersioningConfigUpdatedAt)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "VersioningConfigUpdatedAt")
|
|
|
|
return
|
|
|
|
}
|
2020-05-19 16:53:54 -04:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalMsg implements msgp.Marshaler
|
|
|
|
func (z *BucketMetadata) MarshalMsg(b []byte) (o []byte, err error) {
|
|
|
|
o = msgp.Require(b, z.Msgsize())
|
2022-05-31 05:57:57 -04:00
|
|
|
// map header, size 21
|
2020-05-19 16:53:54 -04:00
|
|
|
// string "Name"
|
2022-05-31 05:57:57 -04:00
|
|
|
o = append(o, 0xde, 0x0, 0x15, 0xa4, 0x4e, 0x61, 0x6d, 0x65)
|
2020-05-19 16:53:54 -04:00
|
|
|
o = msgp.AppendString(o, z.Name)
|
|
|
|
// string "Created"
|
|
|
|
o = append(o, 0xa7, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64)
|
|
|
|
o = msgp.AppendTime(o, z.Created)
|
|
|
|
// string "LockEnabled"
|
|
|
|
o = append(o, 0xab, 0x4c, 0x6f, 0x63, 0x6b, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64)
|
|
|
|
o = msgp.AppendBool(o, z.LockEnabled)
|
|
|
|
// string "PolicyConfigJSON"
|
|
|
|
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)
|
2020-05-21 14:03:59 -04:00
|
|
|
// string "NotificationConfigXML"
|
|
|
|
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.NotificationConfigXML)
|
2020-05-19 16:53:54 -04:00
|
|
|
// 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 = msgp.AppendBytes(o, z.LifecycleConfigXML)
|
2020-05-21 14:03:59 -04:00
|
|
|
// string "ObjectLockConfigXML"
|
|
|
|
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.ObjectLockConfigXML)
|
2020-06-12 23:04:01 -04:00
|
|
|
// string "VersioningConfigXML"
|
|
|
|
o = append(o, 0xb3, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x58, 0x4d, 0x4c)
|
|
|
|
o = msgp.AppendBytes(o, z.VersioningConfigXML)
|
2020-05-19 16:53:54 -04:00
|
|
|
// 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 = msgp.AppendBytes(o, z.EncryptionConfigXML)
|
|
|
|
// string "TaggingConfigXML"
|
|
|
|
o = append(o, 0xb0, 0x54, 0x61, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x58, 0x4d, 0x4c)
|
|
|
|
o = msgp.AppendBytes(o, z.TaggingConfigXML)
|
|
|
|
// string "QuotaConfigJSON"
|
|
|
|
o = append(o, 0xaf, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4a, 0x53, 0x4f, 0x4e)
|
|
|
|
o = msgp.AppendBytes(o, z.QuotaConfigJSON)
|
2020-07-21 20:49:56 -04:00
|
|
|
// string "ReplicationConfigXML"
|
|
|
|
o = append(o, 0xb4, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x58, 0x4d, 0x4c)
|
|
|
|
o = msgp.AppendBytes(o, z.ReplicationConfigXML)
|
2020-07-28 14:50:47 -04:00
|
|
|
// string "BucketTargetsConfigJSON"
|
|
|
|
o = append(o, 0xb7, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4a, 0x53, 0x4f, 0x4e)
|
|
|
|
o = msgp.AppendBytes(o, z.BucketTargetsConfigJSON)
|
2020-12-21 19:21:33 -05:00
|
|
|
// string "BucketTargetsConfigMetaJSON"
|
|
|
|
o = append(o, 0xbb, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4d, 0x65, 0x74, 0x61, 0x4a, 0x53, 0x4f, 0x4e)
|
|
|
|
o = msgp.AppendBytes(o, z.BucketTargetsConfigMetaJSON)
|
2022-04-24 05:36:31 -04:00
|
|
|
// string "PolicyConfigUpdatedAt"
|
|
|
|
o = append(o, 0xb5, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74)
|
|
|
|
o = msgp.AppendTime(o, z.PolicyConfigUpdatedAt)
|
|
|
|
// string "ObjectLockConfigUpdatedAt"
|
|
|
|
o = append(o, 0xb9, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4c, 0x6f, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74)
|
|
|
|
o = msgp.AppendTime(o, z.ObjectLockConfigUpdatedAt)
|
|
|
|
// string "EncryptionConfigUpdatedAt"
|
|
|
|
o = append(o, 0xb9, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74)
|
|
|
|
o = msgp.AppendTime(o, z.EncryptionConfigUpdatedAt)
|
|
|
|
// string "TaggingConfigUpdatedAt"
|
|
|
|
o = append(o, 0xb6, 0x54, 0x61, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74)
|
|
|
|
o = msgp.AppendTime(o, z.TaggingConfigUpdatedAt)
|
|
|
|
// string "QuotaConfigUpdatedAt"
|
|
|
|
o = append(o, 0xb4, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74)
|
|
|
|
o = msgp.AppendTime(o, z.QuotaConfigUpdatedAt)
|
|
|
|
// string "ReplicationConfigUpdatedAt"
|
|
|
|
o = append(o, 0xba, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74)
|
|
|
|
o = msgp.AppendTime(o, z.ReplicationConfigUpdatedAt)
|
2022-05-31 05:57:57 -04:00
|
|
|
// string "VersioningConfigUpdatedAt"
|
|
|
|
o = append(o, 0xb9, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74)
|
|
|
|
o = msgp.AppendTime(o, z.VersioningConfigUpdatedAt)
|
2020-05-19 16:53:54 -04:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalMsg implements msgp.Unmarshaler
|
|
|
|
func (z *BucketMetadata) UnmarshalMsg(bts []byte) (o []byte, err error) {
|
|
|
|
var field []byte
|
|
|
|
_ = field
|
|
|
|
var zb0001 uint32
|
|
|
|
zb0001, bts, err = msgp.ReadMapHeaderBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
for zb0001 > 0 {
|
|
|
|
zb0001--
|
|
|
|
field, bts, err = msgp.ReadMapKeyZC(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
switch msgp.UnsafeString(field) {
|
|
|
|
case "Name":
|
|
|
|
z.Name, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Name")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "Created":
|
|
|
|
z.Created, bts, err = msgp.ReadTimeBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Created")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "LockEnabled":
|
|
|
|
z.LockEnabled, bts, err = msgp.ReadBoolBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "LockEnabled")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "PolicyConfigJSON":
|
|
|
|
z.PolicyConfigJSON, bts, err = msgp.ReadBytesBytes(bts, z.PolicyConfigJSON)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "PolicyConfigJSON")
|
|
|
|
return
|
|
|
|
}
|
2020-05-21 14:03:59 -04:00
|
|
|
case "NotificationConfigXML":
|
|
|
|
z.NotificationConfigXML, bts, err = msgp.ReadBytesBytes(bts, z.NotificationConfigXML)
|
2020-05-19 16:53:54 -04:00
|
|
|
if err != nil {
|
2020-05-21 14:03:59 -04:00
|
|
|
err = msgp.WrapError(err, "NotificationConfigXML")
|
2020-05-19 16:53:54 -04:00
|
|
|
return
|
|
|
|
}
|
|
|
|
case "LifecycleConfigXML":
|
|
|
|
z.LifecycleConfigXML, bts, err = msgp.ReadBytesBytes(bts, z.LifecycleConfigXML)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "LifecycleConfigXML")
|
|
|
|
return
|
|
|
|
}
|
2020-05-21 14:03:59 -04:00
|
|
|
case "ObjectLockConfigXML":
|
|
|
|
z.ObjectLockConfigXML, bts, err = msgp.ReadBytesBytes(bts, z.ObjectLockConfigXML)
|
2020-05-19 16:53:54 -04:00
|
|
|
if err != nil {
|
2020-05-21 14:03:59 -04:00
|
|
|
err = msgp.WrapError(err, "ObjectLockConfigXML")
|
2020-05-19 16:53:54 -04:00
|
|
|
return
|
|
|
|
}
|
2020-06-12 23:04:01 -04:00
|
|
|
case "VersioningConfigXML":
|
|
|
|
z.VersioningConfigXML, bts, err = msgp.ReadBytesBytes(bts, z.VersioningConfigXML)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "VersioningConfigXML")
|
|
|
|
return
|
|
|
|
}
|
2020-05-19 16:53:54 -04:00
|
|
|
case "EncryptionConfigXML":
|
|
|
|
z.EncryptionConfigXML, bts, err = msgp.ReadBytesBytes(bts, z.EncryptionConfigXML)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "EncryptionConfigXML")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "TaggingConfigXML":
|
|
|
|
z.TaggingConfigXML, bts, err = msgp.ReadBytesBytes(bts, z.TaggingConfigXML)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "TaggingConfigXML")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "QuotaConfigJSON":
|
|
|
|
z.QuotaConfigJSON, bts, err = msgp.ReadBytesBytes(bts, z.QuotaConfigJSON)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "QuotaConfigJSON")
|
|
|
|
return
|
|
|
|
}
|
2020-07-21 20:49:56 -04:00
|
|
|
case "ReplicationConfigXML":
|
|
|
|
z.ReplicationConfigXML, bts, err = msgp.ReadBytesBytes(bts, z.ReplicationConfigXML)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "ReplicationConfigXML")
|
|
|
|
return
|
|
|
|
}
|
2020-07-28 14:50:47 -04:00
|
|
|
case "BucketTargetsConfigJSON":
|
|
|
|
z.BucketTargetsConfigJSON, bts, err = msgp.ReadBytesBytes(bts, z.BucketTargetsConfigJSON)
|
2020-07-21 20:49:56 -04:00
|
|
|
if err != nil {
|
2020-07-28 14:50:47 -04:00
|
|
|
err = msgp.WrapError(err, "BucketTargetsConfigJSON")
|
2020-07-21 20:49:56 -04:00
|
|
|
return
|
|
|
|
}
|
2020-12-21 19:21:33 -05:00
|
|
|
case "BucketTargetsConfigMetaJSON":
|
|
|
|
z.BucketTargetsConfigMetaJSON, bts, err = msgp.ReadBytesBytes(bts, z.BucketTargetsConfigMetaJSON)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "BucketTargetsConfigMetaJSON")
|
|
|
|
return
|
|
|
|
}
|
2022-04-24 05:36:31 -04:00
|
|
|
case "PolicyConfigUpdatedAt":
|
|
|
|
z.PolicyConfigUpdatedAt, bts, err = msgp.ReadTimeBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "PolicyConfigUpdatedAt")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "ObjectLockConfigUpdatedAt":
|
|
|
|
z.ObjectLockConfigUpdatedAt, bts, err = msgp.ReadTimeBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "ObjectLockConfigUpdatedAt")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "EncryptionConfigUpdatedAt":
|
|
|
|
z.EncryptionConfigUpdatedAt, bts, err = msgp.ReadTimeBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "EncryptionConfigUpdatedAt")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "TaggingConfigUpdatedAt":
|
|
|
|
z.TaggingConfigUpdatedAt, bts, err = msgp.ReadTimeBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "TaggingConfigUpdatedAt")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "QuotaConfigUpdatedAt":
|
|
|
|
z.QuotaConfigUpdatedAt, bts, err = msgp.ReadTimeBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "QuotaConfigUpdatedAt")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "ReplicationConfigUpdatedAt":
|
|
|
|
z.ReplicationConfigUpdatedAt, bts, err = msgp.ReadTimeBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "ReplicationConfigUpdatedAt")
|
|
|
|
return
|
|
|
|
}
|
2022-05-31 05:57:57 -04:00
|
|
|
case "VersioningConfigUpdatedAt":
|
|
|
|
z.VersioningConfigUpdatedAt, bts, err = msgp.ReadTimeBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "VersioningConfigUpdatedAt")
|
|
|
|
return
|
|
|
|
}
|
2020-05-19 16:53:54 -04:00
|
|
|
default:
|
|
|
|
bts, err = msgp.Skip(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
o = bts
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
|
|
|
|
func (z *BucketMetadata) Msgsize() (s int) {
|
2022-05-31 05:57:57 -04:00
|
|
|
s = 3 + 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.VersioningConfigXML) + 20 + msgp.BytesPrefixSize + len(z.EncryptionConfigXML) + 17 + msgp.BytesPrefixSize + len(z.TaggingConfigXML) + 16 + msgp.BytesPrefixSize + len(z.QuotaConfigJSON) + 21 + msgp.BytesPrefixSize + len(z.ReplicationConfigXML) + 24 + msgp.BytesPrefixSize + len(z.BucketTargetsConfigJSON) + 28 + msgp.BytesPrefixSize + len(z.BucketTargetsConfigMetaJSON) + 22 + msgp.TimeSize + 26 + msgp.TimeSize + 26 + msgp.TimeSize + 23 + msgp.TimeSize + 21 + msgp.TimeSize + 27 + msgp.TimeSize + 26 + msgp.TimeSize
|
2020-05-19 16:53:54 -04:00
|
|
|
return
|
|
|
|
}
|