2022-10-03 05:10:15 -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 *BatchJobReplicateCredentials) 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 "AccessKey":
|
|
|
|
z.AccessKey, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "AccessKey")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "SecretKey":
|
|
|
|
z.SecretKey, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "SecretKey")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "SessionToken":
|
|
|
|
z.SessionToken, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "SessionToken")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
err = dc.Skip()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// EncodeMsg implements msgp.Encodable
|
|
|
|
func (z BatchJobReplicateCredentials) EncodeMsg(en *msgp.Writer) (err error) {
|
|
|
|
// map header, size 3
|
|
|
|
// write "AccessKey"
|
|
|
|
err = en.Append(0x83, 0xa9, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteString(z.AccessKey)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "AccessKey")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "SecretKey"
|
|
|
|
err = en.Append(0xa9, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x4b, 0x65, 0x79)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteString(z.SecretKey)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "SecretKey")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "SessionToken"
|
|
|
|
err = en.Append(0xac, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteString(z.SessionToken)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "SessionToken")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalMsg implements msgp.Marshaler
|
|
|
|
func (z BatchJobReplicateCredentials) MarshalMsg(b []byte) (o []byte, err error) {
|
|
|
|
o = msgp.Require(b, z.Msgsize())
|
|
|
|
// map header, size 3
|
|
|
|
// string "AccessKey"
|
|
|
|
o = append(o, 0x83, 0xa9, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79)
|
|
|
|
o = msgp.AppendString(o, z.AccessKey)
|
|
|
|
// string "SecretKey"
|
|
|
|
o = append(o, 0xa9, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x4b, 0x65, 0x79)
|
|
|
|
o = msgp.AppendString(o, z.SecretKey)
|
|
|
|
// string "SessionToken"
|
|
|
|
o = append(o, 0xac, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e)
|
|
|
|
o = msgp.AppendString(o, z.SessionToken)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalMsg implements msgp.Unmarshaler
|
|
|
|
func (z *BatchJobReplicateCredentials) 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 "AccessKey":
|
|
|
|
z.AccessKey, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "AccessKey")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "SecretKey":
|
|
|
|
z.SecretKey, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "SecretKey")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "SessionToken":
|
|
|
|
z.SessionToken, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "SessionToken")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
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 BatchJobReplicateCredentials) Msgsize() (s int) {
|
|
|
|
s = 1 + 10 + msgp.StringPrefixSize + len(z.AccessKey) + 10 + msgp.StringPrefixSize + len(z.SecretKey) + 13 + msgp.StringPrefixSize + len(z.SessionToken)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DecodeMsg implements msgp.Decodable
|
|
|
|
func (z *BatchJobReplicateFlags) 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 "Filter":
|
|
|
|
err = z.Filter.DecodeMsg(dc)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Filter")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "Notify":
|
|
|
|
var zb0002 uint32
|
|
|
|
zb0002, err = dc.ReadMapHeader()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Notify")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
for zb0002 > 0 {
|
|
|
|
zb0002--
|
|
|
|
field, err = dc.ReadMapKeyPtr()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Notify")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
switch msgp.UnsafeString(field) {
|
|
|
|
case "Endpoint":
|
|
|
|
z.Notify.Endpoint, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Notify", "Endpoint")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "Token":
|
|
|
|
z.Notify.Token, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Notify", "Token")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
err = dc.Skip()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Notify")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case "Retry":
|
|
|
|
var zb0003 uint32
|
|
|
|
zb0003, err = dc.ReadMapHeader()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Retry")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
for zb0003 > 0 {
|
|
|
|
zb0003--
|
|
|
|
field, err = dc.ReadMapKeyPtr()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Retry")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
switch msgp.UnsafeString(field) {
|
|
|
|
case "Attempts":
|
|
|
|
z.Retry.Attempts, err = dc.ReadInt()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Retry", "Attempts")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "Delay":
|
|
|
|
z.Retry.Delay, err = dc.ReadDuration()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Retry", "Delay")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
err = dc.Skip()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Retry")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
err = dc.Skip()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// EncodeMsg implements msgp.Encodable
|
|
|
|
func (z *BatchJobReplicateFlags) EncodeMsg(en *msgp.Writer) (err error) {
|
|
|
|
// map header, size 3
|
|
|
|
// write "Filter"
|
|
|
|
err = en.Append(0x83, 0xa6, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = z.Filter.EncodeMsg(en)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Filter")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "Notify"
|
|
|
|
err = en.Append(0xa6, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// map header, size 2
|
|
|
|
// write "Endpoint"
|
|
|
|
err = en.Append(0x82, 0xa8, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteString(z.Notify.Endpoint)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Notify", "Endpoint")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "Token"
|
|
|
|
err = en.Append(0xa5, 0x54, 0x6f, 0x6b, 0x65, 0x6e)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteString(z.Notify.Token)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Notify", "Token")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "Retry"
|
|
|
|
err = en.Append(0xa5, 0x52, 0x65, 0x74, 0x72, 0x79)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// map header, size 2
|
|
|
|
// write "Attempts"
|
|
|
|
err = en.Append(0x82, 0xa8, 0x41, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x73)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteInt(z.Retry.Attempts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Retry", "Attempts")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "Delay"
|
|
|
|
err = en.Append(0xa5, 0x44, 0x65, 0x6c, 0x61, 0x79)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteDuration(z.Retry.Delay)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Retry", "Delay")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalMsg implements msgp.Marshaler
|
|
|
|
func (z *BatchJobReplicateFlags) MarshalMsg(b []byte) (o []byte, err error) {
|
|
|
|
o = msgp.Require(b, z.Msgsize())
|
|
|
|
// map header, size 3
|
|
|
|
// string "Filter"
|
|
|
|
o = append(o, 0x83, 0xa6, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72)
|
|
|
|
o, err = z.Filter.MarshalMsg(o)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Filter")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// string "Notify"
|
|
|
|
o = append(o, 0xa6, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79)
|
|
|
|
// map header, size 2
|
|
|
|
// string "Endpoint"
|
|
|
|
o = append(o, 0x82, 0xa8, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74)
|
|
|
|
o = msgp.AppendString(o, z.Notify.Endpoint)
|
|
|
|
// string "Token"
|
|
|
|
o = append(o, 0xa5, 0x54, 0x6f, 0x6b, 0x65, 0x6e)
|
|
|
|
o = msgp.AppendString(o, z.Notify.Token)
|
|
|
|
// string "Retry"
|
|
|
|
o = append(o, 0xa5, 0x52, 0x65, 0x74, 0x72, 0x79)
|
|
|
|
// map header, size 2
|
|
|
|
// string "Attempts"
|
|
|
|
o = append(o, 0x82, 0xa8, 0x41, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x73)
|
|
|
|
o = msgp.AppendInt(o, z.Retry.Attempts)
|
|
|
|
// string "Delay"
|
|
|
|
o = append(o, 0xa5, 0x44, 0x65, 0x6c, 0x61, 0x79)
|
|
|
|
o = msgp.AppendDuration(o, z.Retry.Delay)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalMsg implements msgp.Unmarshaler
|
|
|
|
func (z *BatchJobReplicateFlags) 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 "Filter":
|
|
|
|
bts, err = z.Filter.UnmarshalMsg(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Filter")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "Notify":
|
|
|
|
var zb0002 uint32
|
|
|
|
zb0002, bts, err = msgp.ReadMapHeaderBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Notify")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
for zb0002 > 0 {
|
|
|
|
zb0002--
|
|
|
|
field, bts, err = msgp.ReadMapKeyZC(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Notify")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
switch msgp.UnsafeString(field) {
|
|
|
|
case "Endpoint":
|
|
|
|
z.Notify.Endpoint, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Notify", "Endpoint")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "Token":
|
|
|
|
z.Notify.Token, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Notify", "Token")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
bts, err = msgp.Skip(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Notify")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case "Retry":
|
|
|
|
var zb0003 uint32
|
|
|
|
zb0003, bts, err = msgp.ReadMapHeaderBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Retry")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
for zb0003 > 0 {
|
|
|
|
zb0003--
|
|
|
|
field, bts, err = msgp.ReadMapKeyZC(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Retry")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
switch msgp.UnsafeString(field) {
|
|
|
|
case "Attempts":
|
|
|
|
z.Retry.Attempts, bts, err = msgp.ReadIntBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Retry", "Attempts")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "Delay":
|
|
|
|
z.Retry.Delay, bts, err = msgp.ReadDurationBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Retry", "Delay")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
bts, err = msgp.Skip(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Retry")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
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 *BatchJobReplicateFlags) Msgsize() (s int) {
|
|
|
|
s = 1 + 7 + z.Filter.Msgsize() + 7 + 1 + 9 + msgp.StringPrefixSize + len(z.Notify.Endpoint) + 6 + msgp.StringPrefixSize + len(z.Notify.Token) + 6 + 1 + 9 + msgp.IntSize + 6 + msgp.DurationSize
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DecodeMsg implements msgp.Decodable
|
|
|
|
func (z *BatchJobReplicateKV) 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 "Key":
|
|
|
|
z.Key, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Key")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "Value":
|
|
|
|
z.Value, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Value")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
err = dc.Skip()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// EncodeMsg implements msgp.Encodable
|
|
|
|
func (z BatchJobReplicateKV) EncodeMsg(en *msgp.Writer) (err error) {
|
|
|
|
// map header, size 2
|
|
|
|
// write "Key"
|
|
|
|
err = en.Append(0x82, 0xa3, 0x4b, 0x65, 0x79)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteString(z.Key)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Key")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "Value"
|
|
|
|
err = en.Append(0xa5, 0x56, 0x61, 0x6c, 0x75, 0x65)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteString(z.Value)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Value")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalMsg implements msgp.Marshaler
|
|
|
|
func (z BatchJobReplicateKV) MarshalMsg(b []byte) (o []byte, err error) {
|
|
|
|
o = msgp.Require(b, z.Msgsize())
|
|
|
|
// map header, size 2
|
|
|
|
// string "Key"
|
|
|
|
o = append(o, 0x82, 0xa3, 0x4b, 0x65, 0x79)
|
|
|
|
o = msgp.AppendString(o, z.Key)
|
|
|
|
// string "Value"
|
|
|
|
o = append(o, 0xa5, 0x56, 0x61, 0x6c, 0x75, 0x65)
|
|
|
|
o = msgp.AppendString(o, z.Value)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalMsg implements msgp.Unmarshaler
|
|
|
|
func (z *BatchJobReplicateKV) 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 "Key":
|
|
|
|
z.Key, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Key")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "Value":
|
|
|
|
z.Value, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Value")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
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 BatchJobReplicateKV) Msgsize() (s int) {
|
|
|
|
s = 1 + 4 + msgp.StringPrefixSize + len(z.Key) + 6 + msgp.StringPrefixSize + len(z.Value)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DecodeMsg implements msgp.Decodable
|
|
|
|
func (z *BatchJobReplicateResourceType) DecodeMsg(dc *msgp.Reader) (err error) {
|
|
|
|
{
|
|
|
|
var zb0001 string
|
|
|
|
zb0001, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
(*z) = BatchJobReplicateResourceType(zb0001)
|
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// EncodeMsg implements msgp.Encodable
|
|
|
|
func (z BatchJobReplicateResourceType) EncodeMsg(en *msgp.Writer) (err error) {
|
|
|
|
err = en.WriteString(string(z))
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalMsg implements msgp.Marshaler
|
|
|
|
func (z BatchJobReplicateResourceType) MarshalMsg(b []byte) (o []byte, err error) {
|
|
|
|
o = msgp.Require(b, z.Msgsize())
|
|
|
|
o = msgp.AppendString(o, string(z))
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalMsg implements msgp.Unmarshaler
|
|
|
|
func (z *BatchJobReplicateResourceType) UnmarshalMsg(bts []byte) (o []byte, err error) {
|
|
|
|
{
|
|
|
|
var zb0001 string
|
|
|
|
zb0001, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
(*z) = BatchJobReplicateResourceType(zb0001)
|
|
|
|
}
|
|
|
|
o = bts
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
|
|
|
|
func (z BatchJobReplicateResourceType) Msgsize() (s int) {
|
|
|
|
s = msgp.StringPrefixSize + len(string(z))
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DecodeMsg implements msgp.Decodable
|
|
|
|
func (z *BatchJobReplicateSource) 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 "Type":
|
|
|
|
{
|
|
|
|
var zb0002 string
|
|
|
|
zb0002, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Type")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
z.Type = BatchJobReplicateResourceType(zb0002)
|
|
|
|
}
|
|
|
|
case "Bucket":
|
|
|
|
z.Bucket, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Bucket")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "Prefix":
|
|
|
|
z.Prefix, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Prefix")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "Endpoint":
|
|
|
|
z.Endpoint, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Endpoint")
|
|
|
|
return
|
|
|
|
}
|
2023-05-21 18:16:31 -04:00
|
|
|
case "Path":
|
|
|
|
z.Path, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Path")
|
|
|
|
return
|
|
|
|
}
|
2022-10-03 05:10:15 -04:00
|
|
|
case "Creds":
|
|
|
|
var zb0003 uint32
|
|
|
|
zb0003, err = dc.ReadMapHeader()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Creds")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
for zb0003 > 0 {
|
|
|
|
zb0003--
|
|
|
|
field, err = dc.ReadMapKeyPtr()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Creds")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
switch msgp.UnsafeString(field) {
|
|
|
|
case "AccessKey":
|
|
|
|
z.Creds.AccessKey, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Creds", "AccessKey")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "SecretKey":
|
|
|
|
z.Creds.SecretKey, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Creds", "SecretKey")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "SessionToken":
|
|
|
|
z.Creds.SessionToken, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Creds", "SessionToken")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
err = dc.Skip()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Creds")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
err = dc.Skip()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// EncodeMsg implements msgp.Encodable
|
|
|
|
func (z *BatchJobReplicateSource) EncodeMsg(en *msgp.Writer) (err error) {
|
2023-05-21 18:16:31 -04:00
|
|
|
// map header, size 6
|
2022-10-03 05:10:15 -04:00
|
|
|
// write "Type"
|
2023-05-21 18:16:31 -04:00
|
|
|
err = en.Append(0x86, 0xa4, 0x54, 0x79, 0x70, 0x65)
|
2022-10-03 05:10:15 -04:00
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteString(string(z.Type))
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Type")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "Bucket"
|
|
|
|
err = en.Append(0xa6, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteString(z.Bucket)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Bucket")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "Prefix"
|
|
|
|
err = en.Append(0xa6, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteString(z.Prefix)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Prefix")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "Endpoint"
|
|
|
|
err = en.Append(0xa8, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteString(z.Endpoint)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Endpoint")
|
|
|
|
return
|
|
|
|
}
|
2023-05-21 18:16:31 -04:00
|
|
|
// write "Path"
|
|
|
|
err = en.Append(0xa4, 0x50, 0x61, 0x74, 0x68)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteString(z.Path)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Path")
|
|
|
|
return
|
|
|
|
}
|
2022-10-03 05:10:15 -04:00
|
|
|
// write "Creds"
|
|
|
|
err = en.Append(0xa5, 0x43, 0x72, 0x65, 0x64, 0x73)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// map header, size 3
|
|
|
|
// write "AccessKey"
|
|
|
|
err = en.Append(0x83, 0xa9, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteString(z.Creds.AccessKey)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Creds", "AccessKey")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "SecretKey"
|
|
|
|
err = en.Append(0xa9, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x4b, 0x65, 0x79)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteString(z.Creds.SecretKey)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Creds", "SecretKey")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "SessionToken"
|
|
|
|
err = en.Append(0xac, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteString(z.Creds.SessionToken)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Creds", "SessionToken")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalMsg implements msgp.Marshaler
|
|
|
|
func (z *BatchJobReplicateSource) MarshalMsg(b []byte) (o []byte, err error) {
|
|
|
|
o = msgp.Require(b, z.Msgsize())
|
2023-05-21 18:16:31 -04:00
|
|
|
// map header, size 6
|
2022-10-03 05:10:15 -04:00
|
|
|
// string "Type"
|
2023-05-21 18:16:31 -04:00
|
|
|
o = append(o, 0x86, 0xa4, 0x54, 0x79, 0x70, 0x65)
|
2022-10-03 05:10:15 -04:00
|
|
|
o = msgp.AppendString(o, string(z.Type))
|
|
|
|
// string "Bucket"
|
|
|
|
o = append(o, 0xa6, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74)
|
|
|
|
o = msgp.AppendString(o, z.Bucket)
|
|
|
|
// string "Prefix"
|
|
|
|
o = append(o, 0xa6, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78)
|
|
|
|
o = msgp.AppendString(o, z.Prefix)
|
|
|
|
// string "Endpoint"
|
|
|
|
o = append(o, 0xa8, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74)
|
|
|
|
o = msgp.AppendString(o, z.Endpoint)
|
2023-05-21 18:16:31 -04:00
|
|
|
// string "Path"
|
|
|
|
o = append(o, 0xa4, 0x50, 0x61, 0x74, 0x68)
|
|
|
|
o = msgp.AppendString(o, z.Path)
|
2022-10-03 05:10:15 -04:00
|
|
|
// string "Creds"
|
|
|
|
o = append(o, 0xa5, 0x43, 0x72, 0x65, 0x64, 0x73)
|
|
|
|
// map header, size 3
|
|
|
|
// string "AccessKey"
|
|
|
|
o = append(o, 0x83, 0xa9, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79)
|
|
|
|
o = msgp.AppendString(o, z.Creds.AccessKey)
|
|
|
|
// string "SecretKey"
|
|
|
|
o = append(o, 0xa9, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x4b, 0x65, 0x79)
|
|
|
|
o = msgp.AppendString(o, z.Creds.SecretKey)
|
|
|
|
// string "SessionToken"
|
|
|
|
o = append(o, 0xac, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e)
|
|
|
|
o = msgp.AppendString(o, z.Creds.SessionToken)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalMsg implements msgp.Unmarshaler
|
|
|
|
func (z *BatchJobReplicateSource) 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 "Type":
|
|
|
|
{
|
|
|
|
var zb0002 string
|
|
|
|
zb0002, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Type")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
z.Type = BatchJobReplicateResourceType(zb0002)
|
|
|
|
}
|
|
|
|
case "Bucket":
|
|
|
|
z.Bucket, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Bucket")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "Prefix":
|
|
|
|
z.Prefix, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Prefix")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "Endpoint":
|
|
|
|
z.Endpoint, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Endpoint")
|
|
|
|
return
|
|
|
|
}
|
2023-05-21 18:16:31 -04:00
|
|
|
case "Path":
|
|
|
|
z.Path, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Path")
|
|
|
|
return
|
|
|
|
}
|
2022-10-03 05:10:15 -04:00
|
|
|
case "Creds":
|
|
|
|
var zb0003 uint32
|
|
|
|
zb0003, bts, err = msgp.ReadMapHeaderBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Creds")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
for zb0003 > 0 {
|
|
|
|
zb0003--
|
|
|
|
field, bts, err = msgp.ReadMapKeyZC(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Creds")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
switch msgp.UnsafeString(field) {
|
|
|
|
case "AccessKey":
|
|
|
|
z.Creds.AccessKey, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Creds", "AccessKey")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "SecretKey":
|
|
|
|
z.Creds.SecretKey, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Creds", "SecretKey")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "SessionToken":
|
|
|
|
z.Creds.SessionToken, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Creds", "SessionToken")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
bts, err = msgp.Skip(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Creds")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
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 *BatchJobReplicateSource) Msgsize() (s int) {
|
2023-05-21 18:16:31 -04:00
|
|
|
s = 1 + 5 + msgp.StringPrefixSize + len(string(z.Type)) + 7 + msgp.StringPrefixSize + len(z.Bucket) + 7 + msgp.StringPrefixSize + len(z.Prefix) + 9 + msgp.StringPrefixSize + len(z.Endpoint) + 5 + msgp.StringPrefixSize + len(z.Path) + 6 + 1 + 10 + msgp.StringPrefixSize + len(z.Creds.AccessKey) + 10 + msgp.StringPrefixSize + len(z.Creds.SecretKey) + 13 + msgp.StringPrefixSize + len(z.Creds.SessionToken)
|
2022-10-03 05:10:15 -04:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DecodeMsg implements msgp.Decodable
|
|
|
|
func (z *BatchJobReplicateTarget) 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 "Type":
|
|
|
|
{
|
|
|
|
var zb0002 string
|
|
|
|
zb0002, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Type")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
z.Type = BatchJobReplicateResourceType(zb0002)
|
|
|
|
}
|
|
|
|
case "Bucket":
|
|
|
|
z.Bucket, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Bucket")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "Prefix":
|
|
|
|
z.Prefix, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Prefix")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "Endpoint":
|
|
|
|
z.Endpoint, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Endpoint")
|
|
|
|
return
|
|
|
|
}
|
2023-05-21 18:16:31 -04:00
|
|
|
case "Path":
|
|
|
|
z.Path, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Path")
|
|
|
|
return
|
|
|
|
}
|
2022-10-03 05:10:15 -04:00
|
|
|
case "Creds":
|
|
|
|
var zb0003 uint32
|
|
|
|
zb0003, err = dc.ReadMapHeader()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Creds")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
for zb0003 > 0 {
|
|
|
|
zb0003--
|
|
|
|
field, err = dc.ReadMapKeyPtr()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Creds")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
switch msgp.UnsafeString(field) {
|
|
|
|
case "AccessKey":
|
|
|
|
z.Creds.AccessKey, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Creds", "AccessKey")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "SecretKey":
|
|
|
|
z.Creds.SecretKey, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Creds", "SecretKey")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "SessionToken":
|
|
|
|
z.Creds.SessionToken, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Creds", "SessionToken")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
err = dc.Skip()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Creds")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
err = dc.Skip()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// EncodeMsg implements msgp.Encodable
|
|
|
|
func (z *BatchJobReplicateTarget) EncodeMsg(en *msgp.Writer) (err error) {
|
2023-05-21 18:16:31 -04:00
|
|
|
// map header, size 6
|
2022-10-03 05:10:15 -04:00
|
|
|
// write "Type"
|
2023-05-21 18:16:31 -04:00
|
|
|
err = en.Append(0x86, 0xa4, 0x54, 0x79, 0x70, 0x65)
|
2022-10-03 05:10:15 -04:00
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteString(string(z.Type))
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Type")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "Bucket"
|
|
|
|
err = en.Append(0xa6, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteString(z.Bucket)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Bucket")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "Prefix"
|
|
|
|
err = en.Append(0xa6, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteString(z.Prefix)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Prefix")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "Endpoint"
|
|
|
|
err = en.Append(0xa8, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteString(z.Endpoint)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Endpoint")
|
|
|
|
return
|
|
|
|
}
|
2023-05-21 18:16:31 -04:00
|
|
|
// write "Path"
|
|
|
|
err = en.Append(0xa4, 0x50, 0x61, 0x74, 0x68)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteString(z.Path)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Path")
|
|
|
|
return
|
|
|
|
}
|
2022-10-03 05:10:15 -04:00
|
|
|
// write "Creds"
|
|
|
|
err = en.Append(0xa5, 0x43, 0x72, 0x65, 0x64, 0x73)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// map header, size 3
|
|
|
|
// write "AccessKey"
|
|
|
|
err = en.Append(0x83, 0xa9, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteString(z.Creds.AccessKey)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Creds", "AccessKey")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "SecretKey"
|
|
|
|
err = en.Append(0xa9, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x4b, 0x65, 0x79)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteString(z.Creds.SecretKey)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Creds", "SecretKey")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "SessionToken"
|
|
|
|
err = en.Append(0xac, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteString(z.Creds.SessionToken)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Creds", "SessionToken")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalMsg implements msgp.Marshaler
|
|
|
|
func (z *BatchJobReplicateTarget) MarshalMsg(b []byte) (o []byte, err error) {
|
|
|
|
o = msgp.Require(b, z.Msgsize())
|
2023-05-21 18:16:31 -04:00
|
|
|
// map header, size 6
|
2022-10-03 05:10:15 -04:00
|
|
|
// string "Type"
|
2023-05-21 18:16:31 -04:00
|
|
|
o = append(o, 0x86, 0xa4, 0x54, 0x79, 0x70, 0x65)
|
2022-10-03 05:10:15 -04:00
|
|
|
o = msgp.AppendString(o, string(z.Type))
|
|
|
|
// string "Bucket"
|
|
|
|
o = append(o, 0xa6, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74)
|
|
|
|
o = msgp.AppendString(o, z.Bucket)
|
|
|
|
// string "Prefix"
|
|
|
|
o = append(o, 0xa6, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78)
|
|
|
|
o = msgp.AppendString(o, z.Prefix)
|
|
|
|
// string "Endpoint"
|
|
|
|
o = append(o, 0xa8, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74)
|
|
|
|
o = msgp.AppendString(o, z.Endpoint)
|
2023-05-21 18:16:31 -04:00
|
|
|
// string "Path"
|
|
|
|
o = append(o, 0xa4, 0x50, 0x61, 0x74, 0x68)
|
|
|
|
o = msgp.AppendString(o, z.Path)
|
2022-10-03 05:10:15 -04:00
|
|
|
// string "Creds"
|
|
|
|
o = append(o, 0xa5, 0x43, 0x72, 0x65, 0x64, 0x73)
|
|
|
|
// map header, size 3
|
|
|
|
// string "AccessKey"
|
|
|
|
o = append(o, 0x83, 0xa9, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79)
|
|
|
|
o = msgp.AppendString(o, z.Creds.AccessKey)
|
|
|
|
// string "SecretKey"
|
|
|
|
o = append(o, 0xa9, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x4b, 0x65, 0x79)
|
|
|
|
o = msgp.AppendString(o, z.Creds.SecretKey)
|
|
|
|
// string "SessionToken"
|
|
|
|
o = append(o, 0xac, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e)
|
|
|
|
o = msgp.AppendString(o, z.Creds.SessionToken)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalMsg implements msgp.Unmarshaler
|
|
|
|
func (z *BatchJobReplicateTarget) 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 "Type":
|
|
|
|
{
|
|
|
|
var zb0002 string
|
|
|
|
zb0002, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Type")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
z.Type = BatchJobReplicateResourceType(zb0002)
|
|
|
|
}
|
|
|
|
case "Bucket":
|
|
|
|
z.Bucket, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Bucket")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "Prefix":
|
|
|
|
z.Prefix, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Prefix")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "Endpoint":
|
|
|
|
z.Endpoint, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Endpoint")
|
|
|
|
return
|
|
|
|
}
|
2023-05-21 18:16:31 -04:00
|
|
|
case "Path":
|
|
|
|
z.Path, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Path")
|
|
|
|
return
|
|
|
|
}
|
2022-10-03 05:10:15 -04:00
|
|
|
case "Creds":
|
|
|
|
var zb0003 uint32
|
|
|
|
zb0003, bts, err = msgp.ReadMapHeaderBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Creds")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
for zb0003 > 0 {
|
|
|
|
zb0003--
|
|
|
|
field, bts, err = msgp.ReadMapKeyZC(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Creds")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
switch msgp.UnsafeString(field) {
|
|
|
|
case "AccessKey":
|
|
|
|
z.Creds.AccessKey, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Creds", "AccessKey")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "SecretKey":
|
|
|
|
z.Creds.SecretKey, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Creds", "SecretKey")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "SessionToken":
|
|
|
|
z.Creds.SessionToken, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Creds", "SessionToken")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
bts, err = msgp.Skip(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Creds")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
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 *BatchJobReplicateTarget) Msgsize() (s int) {
|
2023-05-21 18:16:31 -04:00
|
|
|
s = 1 + 5 + msgp.StringPrefixSize + len(string(z.Type)) + 7 + msgp.StringPrefixSize + len(z.Bucket) + 7 + msgp.StringPrefixSize + len(z.Prefix) + 9 + msgp.StringPrefixSize + len(z.Endpoint) + 5 + msgp.StringPrefixSize + len(z.Path) + 6 + 1 + 10 + msgp.StringPrefixSize + len(z.Creds.AccessKey) + 10 + msgp.StringPrefixSize + len(z.Creds.SecretKey) + 13 + msgp.StringPrefixSize + len(z.Creds.SessionToken)
|
2022-10-03 05:10:15 -04:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DecodeMsg implements msgp.Decodable
|
|
|
|
func (z *BatchJobReplicateV1) 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 "APIVersion":
|
|
|
|
z.APIVersion, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "APIVersion")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "Flags":
|
|
|
|
err = z.Flags.DecodeMsg(dc)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Flags")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "Target":
|
|
|
|
err = z.Target.DecodeMsg(dc)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Target")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "Source":
|
|
|
|
err = z.Source.DecodeMsg(dc)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Source")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
err = dc.Skip()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// EncodeMsg implements msgp.Encodable
|
|
|
|
func (z *BatchJobReplicateV1) EncodeMsg(en *msgp.Writer) (err error) {
|
|
|
|
// map header, size 4
|
|
|
|
// write "APIVersion"
|
|
|
|
err = en.Append(0x84, 0xaa, 0x41, 0x50, 0x49, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteString(z.APIVersion)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "APIVersion")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "Flags"
|
|
|
|
err = en.Append(0xa5, 0x46, 0x6c, 0x61, 0x67, 0x73)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = z.Flags.EncodeMsg(en)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Flags")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "Target"
|
|
|
|
err = en.Append(0xa6, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = z.Target.EncodeMsg(en)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Target")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "Source"
|
|
|
|
err = en.Append(0xa6, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = z.Source.EncodeMsg(en)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Source")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalMsg implements msgp.Marshaler
|
|
|
|
func (z *BatchJobReplicateV1) MarshalMsg(b []byte) (o []byte, err error) {
|
|
|
|
o = msgp.Require(b, z.Msgsize())
|
|
|
|
// map header, size 4
|
|
|
|
// string "APIVersion"
|
|
|
|
o = append(o, 0x84, 0xaa, 0x41, 0x50, 0x49, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e)
|
|
|
|
o = msgp.AppendString(o, z.APIVersion)
|
|
|
|
// string "Flags"
|
|
|
|
o = append(o, 0xa5, 0x46, 0x6c, 0x61, 0x67, 0x73)
|
|
|
|
o, err = z.Flags.MarshalMsg(o)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Flags")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// string "Target"
|
|
|
|
o = append(o, 0xa6, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74)
|
|
|
|
o, err = z.Target.MarshalMsg(o)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Target")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// string "Source"
|
|
|
|
o = append(o, 0xa6, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65)
|
|
|
|
o, err = z.Source.MarshalMsg(o)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Source")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalMsg implements msgp.Unmarshaler
|
|
|
|
func (z *BatchJobReplicateV1) 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 "APIVersion":
|
|
|
|
z.APIVersion, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "APIVersion")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "Flags":
|
|
|
|
bts, err = z.Flags.UnmarshalMsg(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Flags")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "Target":
|
|
|
|
bts, err = z.Target.UnmarshalMsg(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Target")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "Source":
|
|
|
|
bts, err = z.Source.UnmarshalMsg(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Source")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
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 *BatchJobReplicateV1) Msgsize() (s int) {
|
|
|
|
s = 1 + 11 + msgp.StringPrefixSize + len(z.APIVersion) + 6 + z.Flags.Msgsize() + 7 + z.Target.Msgsize() + 7 + z.Source.Msgsize()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DecodeMsg implements msgp.Decodable
|
|
|
|
func (z *BatchJobRequest) 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 "ID":
|
|
|
|
z.ID, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "ID")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "User":
|
|
|
|
z.User, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "User")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "Started":
|
|
|
|
z.Started, err = dc.ReadTime()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Started")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "Location":
|
|
|
|
z.Location, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Location")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "Replicate":
|
|
|
|
if dc.IsNil() {
|
|
|
|
err = dc.ReadNil()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Replicate")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
z.Replicate = nil
|
|
|
|
} else {
|
|
|
|
if z.Replicate == nil {
|
|
|
|
z.Replicate = new(BatchJobReplicateV1)
|
|
|
|
}
|
|
|
|
err = z.Replicate.DecodeMsg(dc)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Replicate")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
2023-04-04 13:56:54 -04:00
|
|
|
case "KeyRotate":
|
|
|
|
if dc.IsNil() {
|
|
|
|
err = dc.ReadNil()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "KeyRotate")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
z.KeyRotate = nil
|
|
|
|
} else {
|
|
|
|
if z.KeyRotate == nil {
|
|
|
|
z.KeyRotate = new(BatchJobKeyRotateV1)
|
|
|
|
}
|
|
|
|
err = z.KeyRotate.DecodeMsg(dc)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "KeyRotate")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
2022-10-03 05:10:15 -04:00
|
|
|
default:
|
|
|
|
err = dc.Skip()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// EncodeMsg implements msgp.Encodable
|
|
|
|
func (z *BatchJobRequest) EncodeMsg(en *msgp.Writer) (err error) {
|
2023-04-04 13:56:54 -04:00
|
|
|
// map header, size 6
|
2022-10-03 05:10:15 -04:00
|
|
|
// write "ID"
|
2023-04-04 13:56:54 -04:00
|
|
|
err = en.Append(0x86, 0xa2, 0x49, 0x44)
|
2022-10-03 05:10:15 -04:00
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteString(z.ID)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "ID")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "User"
|
|
|
|
err = en.Append(0xa4, 0x55, 0x73, 0x65, 0x72)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteString(z.User)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "User")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "Started"
|
|
|
|
err = en.Append(0xa7, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteTime(z.Started)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Started")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "Location"
|
|
|
|
err = en.Append(0xa8, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteString(z.Location)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Location")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "Replicate"
|
|
|
|
err = en.Append(0xa9, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
if z.Replicate == nil {
|
|
|
|
err = en.WriteNil()
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
err = z.Replicate.EncodeMsg(en)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Replicate")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
2023-04-04 13:56:54 -04:00
|
|
|
// write "KeyRotate"
|
|
|
|
err = en.Append(0xa9, 0x4b, 0x65, 0x79, 0x52, 0x6f, 0x74, 0x61, 0x74, 0x65)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
if z.KeyRotate == nil {
|
|
|
|
err = en.WriteNil()
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
err = z.KeyRotate.EncodeMsg(en)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "KeyRotate")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
2022-10-03 05:10:15 -04:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalMsg implements msgp.Marshaler
|
|
|
|
func (z *BatchJobRequest) MarshalMsg(b []byte) (o []byte, err error) {
|
|
|
|
o = msgp.Require(b, z.Msgsize())
|
2023-04-04 13:56:54 -04:00
|
|
|
// map header, size 6
|
2022-10-03 05:10:15 -04:00
|
|
|
// string "ID"
|
2023-04-04 13:56:54 -04:00
|
|
|
o = append(o, 0x86, 0xa2, 0x49, 0x44)
|
2022-10-03 05:10:15 -04:00
|
|
|
o = msgp.AppendString(o, z.ID)
|
|
|
|
// string "User"
|
|
|
|
o = append(o, 0xa4, 0x55, 0x73, 0x65, 0x72)
|
|
|
|
o = msgp.AppendString(o, z.User)
|
|
|
|
// string "Started"
|
|
|
|
o = append(o, 0xa7, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64)
|
|
|
|
o = msgp.AppendTime(o, z.Started)
|
|
|
|
// string "Location"
|
|
|
|
o = append(o, 0xa8, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e)
|
|
|
|
o = msgp.AppendString(o, z.Location)
|
|
|
|
// string "Replicate"
|
|
|
|
o = append(o, 0xa9, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65)
|
|
|
|
if z.Replicate == nil {
|
|
|
|
o = msgp.AppendNil(o)
|
|
|
|
} else {
|
|
|
|
o, err = z.Replicate.MarshalMsg(o)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Replicate")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
2023-04-04 13:56:54 -04:00
|
|
|
// string "KeyRotate"
|
|
|
|
o = append(o, 0xa9, 0x4b, 0x65, 0x79, 0x52, 0x6f, 0x74, 0x61, 0x74, 0x65)
|
|
|
|
if z.KeyRotate == nil {
|
|
|
|
o = msgp.AppendNil(o)
|
|
|
|
} else {
|
|
|
|
o, err = z.KeyRotate.MarshalMsg(o)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "KeyRotate")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
2022-10-03 05:10:15 -04:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalMsg implements msgp.Unmarshaler
|
|
|
|
func (z *BatchJobRequest) 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 "ID":
|
|
|
|
z.ID, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "ID")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "User":
|
|
|
|
z.User, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "User")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "Started":
|
|
|
|
z.Started, bts, err = msgp.ReadTimeBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Started")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "Location":
|
|
|
|
z.Location, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Location")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "Replicate":
|
|
|
|
if msgp.IsNil(bts) {
|
|
|
|
bts, err = msgp.ReadNilBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
z.Replicate = nil
|
|
|
|
} else {
|
|
|
|
if z.Replicate == nil {
|
|
|
|
z.Replicate = new(BatchJobReplicateV1)
|
|
|
|
}
|
|
|
|
bts, err = z.Replicate.UnmarshalMsg(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Replicate")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
2023-04-04 13:56:54 -04:00
|
|
|
case "KeyRotate":
|
|
|
|
if msgp.IsNil(bts) {
|
|
|
|
bts, err = msgp.ReadNilBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
z.KeyRotate = nil
|
|
|
|
} else {
|
|
|
|
if z.KeyRotate == nil {
|
|
|
|
z.KeyRotate = new(BatchJobKeyRotateV1)
|
|
|
|
}
|
|
|
|
bts, err = z.KeyRotate.UnmarshalMsg(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "KeyRotate")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
2022-10-03 05:10:15 -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 *BatchJobRequest) Msgsize() (s int) {
|
|
|
|
s = 1 + 3 + msgp.StringPrefixSize + len(z.ID) + 5 + msgp.StringPrefixSize + len(z.User) + 8 + msgp.TimeSize + 9 + msgp.StringPrefixSize + len(z.Location) + 10
|
|
|
|
if z.Replicate == nil {
|
|
|
|
s += msgp.NilSize
|
|
|
|
} else {
|
|
|
|
s += z.Replicate.Msgsize()
|
|
|
|
}
|
2023-04-04 13:56:54 -04:00
|
|
|
s += 10
|
|
|
|
if z.KeyRotate == nil {
|
|
|
|
s += msgp.NilSize
|
|
|
|
} else {
|
|
|
|
s += z.KeyRotate.Msgsize()
|
|
|
|
}
|
2022-10-03 05:10:15 -04:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DecodeMsg implements msgp.Decodable
|
|
|
|
func (z *BatchReplicateFilter) 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 "NewerThan":
|
|
|
|
z.NewerThan, err = dc.ReadDuration()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "NewerThan")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "OlderThan":
|
|
|
|
z.OlderThan, err = dc.ReadDuration()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "OlderThan")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "CreatedAfter":
|
|
|
|
z.CreatedAfter, err = dc.ReadTime()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "CreatedAfter")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "CreatedBefore":
|
|
|
|
z.CreatedBefore, err = dc.ReadTime()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "CreatedBefore")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "Tags":
|
|
|
|
var zb0002 uint32
|
|
|
|
zb0002, err = dc.ReadArrayHeader()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Tags")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
if cap(z.Tags) >= int(zb0002) {
|
|
|
|
z.Tags = (z.Tags)[:zb0002]
|
|
|
|
} else {
|
|
|
|
z.Tags = make([]BatchJobReplicateKV, zb0002)
|
|
|
|
}
|
|
|
|
for za0001 := range z.Tags {
|
|
|
|
var zb0003 uint32
|
|
|
|
zb0003, err = dc.ReadMapHeader()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Tags", za0001)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
for zb0003 > 0 {
|
|
|
|
zb0003--
|
|
|
|
field, err = dc.ReadMapKeyPtr()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Tags", za0001)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
switch msgp.UnsafeString(field) {
|
|
|
|
case "Key":
|
|
|
|
z.Tags[za0001].Key, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Tags", za0001, "Key")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "Value":
|
|
|
|
z.Tags[za0001].Value, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Tags", za0001, "Value")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
err = dc.Skip()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Tags", za0001)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case "Metadata":
|
|
|
|
var zb0004 uint32
|
|
|
|
zb0004, err = dc.ReadArrayHeader()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Metadata")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
if cap(z.Metadata) >= int(zb0004) {
|
|
|
|
z.Metadata = (z.Metadata)[:zb0004]
|
|
|
|
} else {
|
|
|
|
z.Metadata = make([]BatchJobReplicateKV, zb0004)
|
|
|
|
}
|
|
|
|
for za0002 := range z.Metadata {
|
|
|
|
var zb0005 uint32
|
|
|
|
zb0005, err = dc.ReadMapHeader()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Metadata", za0002)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
for zb0005 > 0 {
|
|
|
|
zb0005--
|
|
|
|
field, err = dc.ReadMapKeyPtr()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Metadata", za0002)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
switch msgp.UnsafeString(field) {
|
|
|
|
case "Key":
|
|
|
|
z.Metadata[za0002].Key, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Metadata", za0002, "Key")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "Value":
|
|
|
|
z.Metadata[za0002].Value, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Metadata", za0002, "Value")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
err = dc.Skip()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Metadata", za0002)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
err = dc.Skip()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// EncodeMsg implements msgp.Encodable
|
|
|
|
func (z *BatchReplicateFilter) EncodeMsg(en *msgp.Writer) (err error) {
|
|
|
|
// map header, size 6
|
|
|
|
// write "NewerThan"
|
|
|
|
err = en.Append(0x86, 0xa9, 0x4e, 0x65, 0x77, 0x65, 0x72, 0x54, 0x68, 0x61, 0x6e)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteDuration(z.NewerThan)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "NewerThan")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "OlderThan"
|
|
|
|
err = en.Append(0xa9, 0x4f, 0x6c, 0x64, 0x65, 0x72, 0x54, 0x68, 0x61, 0x6e)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteDuration(z.OlderThan)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "OlderThan")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "CreatedAfter"
|
|
|
|
err = en.Append(0xac, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x66, 0x74, 0x65, 0x72)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteTime(z.CreatedAfter)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "CreatedAfter")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "CreatedBefore"
|
|
|
|
err = en.Append(0xad, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x42, 0x65, 0x66, 0x6f, 0x72, 0x65)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteTime(z.CreatedBefore)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "CreatedBefore")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "Tags"
|
|
|
|
err = en.Append(0xa4, 0x54, 0x61, 0x67, 0x73)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteArrayHeader(uint32(len(z.Tags)))
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Tags")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
for za0001 := range z.Tags {
|
|
|
|
// map header, size 2
|
|
|
|
// write "Key"
|
|
|
|
err = en.Append(0x82, 0xa3, 0x4b, 0x65, 0x79)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteString(z.Tags[za0001].Key)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Tags", za0001, "Key")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "Value"
|
|
|
|
err = en.Append(0xa5, 0x56, 0x61, 0x6c, 0x75, 0x65)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteString(z.Tags[za0001].Value)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Tags", za0001, "Value")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// write "Metadata"
|
|
|
|
err = en.Append(0xa8, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteArrayHeader(uint32(len(z.Metadata)))
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Metadata")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
for za0002 := range z.Metadata {
|
|
|
|
// map header, size 2
|
|
|
|
// write "Key"
|
|
|
|
err = en.Append(0x82, 0xa3, 0x4b, 0x65, 0x79)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteString(z.Metadata[za0002].Key)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Metadata", za0002, "Key")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "Value"
|
|
|
|
err = en.Append(0xa5, 0x56, 0x61, 0x6c, 0x75, 0x65)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteString(z.Metadata[za0002].Value)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Metadata", za0002, "Value")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalMsg implements msgp.Marshaler
|
|
|
|
func (z *BatchReplicateFilter) MarshalMsg(b []byte) (o []byte, err error) {
|
|
|
|
o = msgp.Require(b, z.Msgsize())
|
|
|
|
// map header, size 6
|
|
|
|
// string "NewerThan"
|
|
|
|
o = append(o, 0x86, 0xa9, 0x4e, 0x65, 0x77, 0x65, 0x72, 0x54, 0x68, 0x61, 0x6e)
|
|
|
|
o = msgp.AppendDuration(o, z.NewerThan)
|
|
|
|
// string "OlderThan"
|
|
|
|
o = append(o, 0xa9, 0x4f, 0x6c, 0x64, 0x65, 0x72, 0x54, 0x68, 0x61, 0x6e)
|
|
|
|
o = msgp.AppendDuration(o, z.OlderThan)
|
|
|
|
// string "CreatedAfter"
|
|
|
|
o = append(o, 0xac, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x66, 0x74, 0x65, 0x72)
|
|
|
|
o = msgp.AppendTime(o, z.CreatedAfter)
|
|
|
|
// string "CreatedBefore"
|
|
|
|
o = append(o, 0xad, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x42, 0x65, 0x66, 0x6f, 0x72, 0x65)
|
|
|
|
o = msgp.AppendTime(o, z.CreatedBefore)
|
|
|
|
// string "Tags"
|
|
|
|
o = append(o, 0xa4, 0x54, 0x61, 0x67, 0x73)
|
|
|
|
o = msgp.AppendArrayHeader(o, uint32(len(z.Tags)))
|
|
|
|
for za0001 := range z.Tags {
|
|
|
|
// map header, size 2
|
|
|
|
// string "Key"
|
|
|
|
o = append(o, 0x82, 0xa3, 0x4b, 0x65, 0x79)
|
|
|
|
o = msgp.AppendString(o, z.Tags[za0001].Key)
|
|
|
|
// string "Value"
|
|
|
|
o = append(o, 0xa5, 0x56, 0x61, 0x6c, 0x75, 0x65)
|
|
|
|
o = msgp.AppendString(o, z.Tags[za0001].Value)
|
|
|
|
}
|
|
|
|
// string "Metadata"
|
|
|
|
o = append(o, 0xa8, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61)
|
|
|
|
o = msgp.AppendArrayHeader(o, uint32(len(z.Metadata)))
|
|
|
|
for za0002 := range z.Metadata {
|
|
|
|
// map header, size 2
|
|
|
|
// string "Key"
|
|
|
|
o = append(o, 0x82, 0xa3, 0x4b, 0x65, 0x79)
|
|
|
|
o = msgp.AppendString(o, z.Metadata[za0002].Key)
|
|
|
|
// string "Value"
|
|
|
|
o = append(o, 0xa5, 0x56, 0x61, 0x6c, 0x75, 0x65)
|
|
|
|
o = msgp.AppendString(o, z.Metadata[za0002].Value)
|
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalMsg implements msgp.Unmarshaler
|
|
|
|
func (z *BatchReplicateFilter) 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 "NewerThan":
|
|
|
|
z.NewerThan, bts, err = msgp.ReadDurationBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "NewerThan")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "OlderThan":
|
|
|
|
z.OlderThan, bts, err = msgp.ReadDurationBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "OlderThan")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "CreatedAfter":
|
|
|
|
z.CreatedAfter, bts, err = msgp.ReadTimeBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "CreatedAfter")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "CreatedBefore":
|
|
|
|
z.CreatedBefore, bts, err = msgp.ReadTimeBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "CreatedBefore")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "Tags":
|
|
|
|
var zb0002 uint32
|
|
|
|
zb0002, bts, err = msgp.ReadArrayHeaderBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Tags")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
if cap(z.Tags) >= int(zb0002) {
|
|
|
|
z.Tags = (z.Tags)[:zb0002]
|
|
|
|
} else {
|
|
|
|
z.Tags = make([]BatchJobReplicateKV, zb0002)
|
|
|
|
}
|
|
|
|
for za0001 := range z.Tags {
|
|
|
|
var zb0003 uint32
|
|
|
|
zb0003, bts, err = msgp.ReadMapHeaderBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Tags", za0001)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
for zb0003 > 0 {
|
|
|
|
zb0003--
|
|
|
|
field, bts, err = msgp.ReadMapKeyZC(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Tags", za0001)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
switch msgp.UnsafeString(field) {
|
|
|
|
case "Key":
|
|
|
|
z.Tags[za0001].Key, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Tags", za0001, "Key")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "Value":
|
|
|
|
z.Tags[za0001].Value, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Tags", za0001, "Value")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
bts, err = msgp.Skip(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Tags", za0001)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case "Metadata":
|
|
|
|
var zb0004 uint32
|
|
|
|
zb0004, bts, err = msgp.ReadArrayHeaderBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Metadata")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
if cap(z.Metadata) >= int(zb0004) {
|
|
|
|
z.Metadata = (z.Metadata)[:zb0004]
|
|
|
|
} else {
|
|
|
|
z.Metadata = make([]BatchJobReplicateKV, zb0004)
|
|
|
|
}
|
|
|
|
for za0002 := range z.Metadata {
|
|
|
|
var zb0005 uint32
|
|
|
|
zb0005, bts, err = msgp.ReadMapHeaderBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Metadata", za0002)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
for zb0005 > 0 {
|
|
|
|
zb0005--
|
|
|
|
field, bts, err = msgp.ReadMapKeyZC(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Metadata", za0002)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
switch msgp.UnsafeString(field) {
|
|
|
|
case "Key":
|
|
|
|
z.Metadata[za0002].Key, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Metadata", za0002, "Key")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "Value":
|
|
|
|
z.Metadata[za0002].Value, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Metadata", za0002, "Value")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
bts, err = msgp.Skip(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Metadata", za0002)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
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 *BatchReplicateFilter) Msgsize() (s int) {
|
|
|
|
s = 1 + 10 + msgp.DurationSize + 10 + msgp.DurationSize + 13 + msgp.TimeSize + 14 + msgp.TimeSize + 5 + msgp.ArrayHeaderSize
|
|
|
|
for za0001 := range z.Tags {
|
|
|
|
s += 1 + 4 + msgp.StringPrefixSize + len(z.Tags[za0001].Key) + 6 + msgp.StringPrefixSize + len(z.Tags[za0001].Value)
|
|
|
|
}
|
|
|
|
s += 9 + msgp.ArrayHeaderSize
|
|
|
|
for za0002 := range z.Metadata {
|
|
|
|
s += 1 + 4 + msgp.StringPrefixSize + len(z.Metadata[za0002].Key) + 6 + msgp.StringPrefixSize + len(z.Metadata[za0002].Value)
|
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DecodeMsg implements msgp.Decodable
|
|
|
|
func (z *BatchReplicateNotification) 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 "Endpoint":
|
|
|
|
z.Endpoint, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Endpoint")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "Token":
|
|
|
|
z.Token, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Token")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
err = dc.Skip()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// EncodeMsg implements msgp.Encodable
|
|
|
|
func (z BatchReplicateNotification) EncodeMsg(en *msgp.Writer) (err error) {
|
|
|
|
// map header, size 2
|
|
|
|
// write "Endpoint"
|
|
|
|
err = en.Append(0x82, 0xa8, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteString(z.Endpoint)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Endpoint")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "Token"
|
|
|
|
err = en.Append(0xa5, 0x54, 0x6f, 0x6b, 0x65, 0x6e)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteString(z.Token)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Token")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalMsg implements msgp.Marshaler
|
|
|
|
func (z BatchReplicateNotification) MarshalMsg(b []byte) (o []byte, err error) {
|
|
|
|
o = msgp.Require(b, z.Msgsize())
|
|
|
|
// map header, size 2
|
|
|
|
// string "Endpoint"
|
|
|
|
o = append(o, 0x82, 0xa8, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74)
|
|
|
|
o = msgp.AppendString(o, z.Endpoint)
|
|
|
|
// string "Token"
|
|
|
|
o = append(o, 0xa5, 0x54, 0x6f, 0x6b, 0x65, 0x6e)
|
|
|
|
o = msgp.AppendString(o, z.Token)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalMsg implements msgp.Unmarshaler
|
|
|
|
func (z *BatchReplicateNotification) 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 "Endpoint":
|
|
|
|
z.Endpoint, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Endpoint")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "Token":
|
|
|
|
z.Token, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Token")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
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 BatchReplicateNotification) Msgsize() (s int) {
|
|
|
|
s = 1 + 9 + msgp.StringPrefixSize + len(z.Endpoint) + 6 + msgp.StringPrefixSize + len(z.Token)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DecodeMsg implements msgp.Decodable
|
|
|
|
func (z *BatchReplicateRetry) 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 "Attempts":
|
|
|
|
z.Attempts, err = dc.ReadInt()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Attempts")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "Delay":
|
|
|
|
z.Delay, err = dc.ReadDuration()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Delay")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
err = dc.Skip()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// EncodeMsg implements msgp.Encodable
|
|
|
|
func (z BatchReplicateRetry) EncodeMsg(en *msgp.Writer) (err error) {
|
|
|
|
// map header, size 2
|
|
|
|
// write "Attempts"
|
|
|
|
err = en.Append(0x82, 0xa8, 0x41, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x73)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteInt(z.Attempts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Attempts")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "Delay"
|
|
|
|
err = en.Append(0xa5, 0x44, 0x65, 0x6c, 0x61, 0x79)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteDuration(z.Delay)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Delay")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalMsg implements msgp.Marshaler
|
|
|
|
func (z BatchReplicateRetry) MarshalMsg(b []byte) (o []byte, err error) {
|
|
|
|
o = msgp.Require(b, z.Msgsize())
|
|
|
|
// map header, size 2
|
|
|
|
// string "Attempts"
|
|
|
|
o = append(o, 0x82, 0xa8, 0x41, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x73)
|
|
|
|
o = msgp.AppendInt(o, z.Attempts)
|
|
|
|
// string "Delay"
|
|
|
|
o = append(o, 0xa5, 0x44, 0x65, 0x6c, 0x61, 0x79)
|
|
|
|
o = msgp.AppendDuration(o, z.Delay)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalMsg implements msgp.Unmarshaler
|
|
|
|
func (z *BatchReplicateRetry) 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 "Attempts":
|
|
|
|
z.Attempts, bts, err = msgp.ReadIntBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Attempts")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "Delay":
|
|
|
|
z.Delay, bts, err = msgp.ReadDurationBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Delay")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
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 BatchReplicateRetry) Msgsize() (s int) {
|
|
|
|
s = 1 + 9 + msgp.IntSize + 6 + msgp.DurationSize
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DecodeMsg implements msgp.Decodable
|
|
|
|
func (z *batchJobInfo) 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 "v":
|
|
|
|
z.Version, err = dc.ReadInt()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Version")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "jid":
|
|
|
|
z.JobID, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "JobID")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "jt":
|
|
|
|
z.JobType, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "JobType")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "st":
|
|
|
|
z.StartTime, err = dc.ReadTime()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "StartTime")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "lu":
|
|
|
|
z.LastUpdate, err = dc.ReadTime()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "LastUpdate")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "ra":
|
|
|
|
z.RetryAttempts, err = dc.ReadInt()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "RetryAttempts")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "cmp":
|
|
|
|
z.Complete, err = dc.ReadBool()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Complete")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "fld":
|
|
|
|
z.Failed, err = dc.ReadBool()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Failed")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "lbkt":
|
|
|
|
z.Bucket, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Bucket")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "lobj":
|
|
|
|
z.Object, err = dc.ReadString()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Object")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "ob":
|
|
|
|
z.Objects, err = dc.ReadInt64()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Objects")
|
|
|
|
return
|
|
|
|
}
|
2022-10-13 17:42:10 -04:00
|
|
|
case "dm":
|
|
|
|
z.DeleteMarkers, err = dc.ReadInt64()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "DeleteMarkers")
|
|
|
|
return
|
|
|
|
}
|
2022-10-03 05:10:15 -04:00
|
|
|
case "obf":
|
|
|
|
z.ObjectsFailed, err = dc.ReadInt64()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "ObjectsFailed")
|
|
|
|
return
|
|
|
|
}
|
2022-10-13 17:42:10 -04:00
|
|
|
case "dmf":
|
|
|
|
z.DeleteMarkersFailed, err = dc.ReadInt64()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "DeleteMarkersFailed")
|
|
|
|
return
|
|
|
|
}
|
2022-10-03 05:10:15 -04:00
|
|
|
case "bt":
|
|
|
|
z.BytesTransferred, err = dc.ReadInt64()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "BytesTransferred")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "bf":
|
|
|
|
z.BytesFailed, err = dc.ReadInt64()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "BytesFailed")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
err = dc.Skip()
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// EncodeMsg implements msgp.Encodable
|
|
|
|
func (z *batchJobInfo) EncodeMsg(en *msgp.Writer) (err error) {
|
2022-10-13 17:42:10 -04:00
|
|
|
// map header, size 16
|
2022-10-03 05:10:15 -04:00
|
|
|
// write "v"
|
2022-10-13 17:42:10 -04:00
|
|
|
err = en.Append(0xde, 0x0, 0x10, 0xa1, 0x76)
|
2022-10-03 05:10:15 -04:00
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteInt(z.Version)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Version")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "jid"
|
|
|
|
err = en.Append(0xa3, 0x6a, 0x69, 0x64)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteString(z.JobID)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "JobID")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "jt"
|
|
|
|
err = en.Append(0xa2, 0x6a, 0x74)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteString(z.JobType)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "JobType")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "st"
|
|
|
|
err = en.Append(0xa2, 0x73, 0x74)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteTime(z.StartTime)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "StartTime")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "lu"
|
|
|
|
err = en.Append(0xa2, 0x6c, 0x75)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteTime(z.LastUpdate)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "LastUpdate")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "ra"
|
|
|
|
err = en.Append(0xa2, 0x72, 0x61)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteInt(z.RetryAttempts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "RetryAttempts")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "cmp"
|
|
|
|
err = en.Append(0xa3, 0x63, 0x6d, 0x70)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteBool(z.Complete)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Complete")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "fld"
|
|
|
|
err = en.Append(0xa3, 0x66, 0x6c, 0x64)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteBool(z.Failed)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Failed")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "lbkt"
|
|
|
|
err = en.Append(0xa4, 0x6c, 0x62, 0x6b, 0x74)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteString(z.Bucket)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Bucket")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "lobj"
|
|
|
|
err = en.Append(0xa4, 0x6c, 0x6f, 0x62, 0x6a)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteString(z.Object)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Object")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "ob"
|
|
|
|
err = en.Append(0xa2, 0x6f, 0x62)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteInt64(z.Objects)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Objects")
|
|
|
|
return
|
|
|
|
}
|
2022-10-13 17:42:10 -04:00
|
|
|
// write "dm"
|
|
|
|
err = en.Append(0xa2, 0x64, 0x6d)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteInt64(z.DeleteMarkers)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "DeleteMarkers")
|
|
|
|
return
|
|
|
|
}
|
2022-10-03 05:10:15 -04:00
|
|
|
// write "obf"
|
|
|
|
err = en.Append(0xa3, 0x6f, 0x62, 0x66)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteInt64(z.ObjectsFailed)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "ObjectsFailed")
|
|
|
|
return
|
|
|
|
}
|
2022-10-13 17:42:10 -04:00
|
|
|
// write "dmf"
|
|
|
|
err = en.Append(0xa3, 0x64, 0x6d, 0x66)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteInt64(z.DeleteMarkersFailed)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "DeleteMarkersFailed")
|
|
|
|
return
|
|
|
|
}
|
2022-10-03 05:10:15 -04:00
|
|
|
// write "bt"
|
|
|
|
err = en.Append(0xa2, 0x62, 0x74)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteInt64(z.BytesTransferred)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "BytesTransferred")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
// write "bf"
|
|
|
|
err = en.Append(0xa2, 0x62, 0x66)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = en.WriteInt64(z.BytesFailed)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "BytesFailed")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalMsg implements msgp.Marshaler
|
|
|
|
func (z *batchJobInfo) MarshalMsg(b []byte) (o []byte, err error) {
|
|
|
|
o = msgp.Require(b, z.Msgsize())
|
2022-10-13 17:42:10 -04:00
|
|
|
// map header, size 16
|
2022-10-03 05:10:15 -04:00
|
|
|
// string "v"
|
2022-10-13 17:42:10 -04:00
|
|
|
o = append(o, 0xde, 0x0, 0x10, 0xa1, 0x76)
|
2022-10-03 05:10:15 -04:00
|
|
|
o = msgp.AppendInt(o, z.Version)
|
|
|
|
// string "jid"
|
|
|
|
o = append(o, 0xa3, 0x6a, 0x69, 0x64)
|
|
|
|
o = msgp.AppendString(o, z.JobID)
|
|
|
|
// string "jt"
|
|
|
|
o = append(o, 0xa2, 0x6a, 0x74)
|
|
|
|
o = msgp.AppendString(o, z.JobType)
|
|
|
|
// string "st"
|
|
|
|
o = append(o, 0xa2, 0x73, 0x74)
|
|
|
|
o = msgp.AppendTime(o, z.StartTime)
|
|
|
|
// string "lu"
|
|
|
|
o = append(o, 0xa2, 0x6c, 0x75)
|
|
|
|
o = msgp.AppendTime(o, z.LastUpdate)
|
|
|
|
// string "ra"
|
|
|
|
o = append(o, 0xa2, 0x72, 0x61)
|
|
|
|
o = msgp.AppendInt(o, z.RetryAttempts)
|
|
|
|
// string "cmp"
|
|
|
|
o = append(o, 0xa3, 0x63, 0x6d, 0x70)
|
|
|
|
o = msgp.AppendBool(o, z.Complete)
|
|
|
|
// string "fld"
|
|
|
|
o = append(o, 0xa3, 0x66, 0x6c, 0x64)
|
|
|
|
o = msgp.AppendBool(o, z.Failed)
|
|
|
|
// string "lbkt"
|
|
|
|
o = append(o, 0xa4, 0x6c, 0x62, 0x6b, 0x74)
|
|
|
|
o = msgp.AppendString(o, z.Bucket)
|
|
|
|
// string "lobj"
|
|
|
|
o = append(o, 0xa4, 0x6c, 0x6f, 0x62, 0x6a)
|
|
|
|
o = msgp.AppendString(o, z.Object)
|
|
|
|
// string "ob"
|
|
|
|
o = append(o, 0xa2, 0x6f, 0x62)
|
|
|
|
o = msgp.AppendInt64(o, z.Objects)
|
2022-10-13 17:42:10 -04:00
|
|
|
// string "dm"
|
|
|
|
o = append(o, 0xa2, 0x64, 0x6d)
|
|
|
|
o = msgp.AppendInt64(o, z.DeleteMarkers)
|
2022-10-03 05:10:15 -04:00
|
|
|
// string "obf"
|
|
|
|
o = append(o, 0xa3, 0x6f, 0x62, 0x66)
|
|
|
|
o = msgp.AppendInt64(o, z.ObjectsFailed)
|
2022-10-13 17:42:10 -04:00
|
|
|
// string "dmf"
|
|
|
|
o = append(o, 0xa3, 0x64, 0x6d, 0x66)
|
|
|
|
o = msgp.AppendInt64(o, z.DeleteMarkersFailed)
|
2022-10-03 05:10:15 -04:00
|
|
|
// string "bt"
|
|
|
|
o = append(o, 0xa2, 0x62, 0x74)
|
|
|
|
o = msgp.AppendInt64(o, z.BytesTransferred)
|
|
|
|
// string "bf"
|
|
|
|
o = append(o, 0xa2, 0x62, 0x66)
|
|
|
|
o = msgp.AppendInt64(o, z.BytesFailed)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalMsg implements msgp.Unmarshaler
|
|
|
|
func (z *batchJobInfo) 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 "v":
|
|
|
|
z.Version, bts, err = msgp.ReadIntBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Version")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "jid":
|
|
|
|
z.JobID, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "JobID")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "jt":
|
|
|
|
z.JobType, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "JobType")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "st":
|
|
|
|
z.StartTime, bts, err = msgp.ReadTimeBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "StartTime")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "lu":
|
|
|
|
z.LastUpdate, bts, err = msgp.ReadTimeBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "LastUpdate")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "ra":
|
|
|
|
z.RetryAttempts, bts, err = msgp.ReadIntBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "RetryAttempts")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "cmp":
|
|
|
|
z.Complete, bts, err = msgp.ReadBoolBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Complete")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "fld":
|
|
|
|
z.Failed, bts, err = msgp.ReadBoolBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Failed")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "lbkt":
|
|
|
|
z.Bucket, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Bucket")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "lobj":
|
|
|
|
z.Object, bts, err = msgp.ReadStringBytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Object")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "ob":
|
|
|
|
z.Objects, bts, err = msgp.ReadInt64Bytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "Objects")
|
|
|
|
return
|
|
|
|
}
|
2022-10-13 17:42:10 -04:00
|
|
|
case "dm":
|
|
|
|
z.DeleteMarkers, bts, err = msgp.ReadInt64Bytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "DeleteMarkers")
|
|
|
|
return
|
|
|
|
}
|
2022-10-03 05:10:15 -04:00
|
|
|
case "obf":
|
|
|
|
z.ObjectsFailed, bts, err = msgp.ReadInt64Bytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "ObjectsFailed")
|
|
|
|
return
|
|
|
|
}
|
2022-10-13 17:42:10 -04:00
|
|
|
case "dmf":
|
|
|
|
z.DeleteMarkersFailed, bts, err = msgp.ReadInt64Bytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "DeleteMarkersFailed")
|
|
|
|
return
|
|
|
|
}
|
2022-10-03 05:10:15 -04:00
|
|
|
case "bt":
|
|
|
|
z.BytesTransferred, bts, err = msgp.ReadInt64Bytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "BytesTransferred")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
case "bf":
|
|
|
|
z.BytesFailed, bts, err = msgp.ReadInt64Bytes(bts)
|
|
|
|
if err != nil {
|
|
|
|
err = msgp.WrapError(err, "BytesFailed")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
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 *batchJobInfo) Msgsize() (s int) {
|
2022-10-13 17:42:10 -04:00
|
|
|
s = 3 + 2 + msgp.IntSize + 4 + msgp.StringPrefixSize + len(z.JobID) + 3 + msgp.StringPrefixSize + len(z.JobType) + 3 + msgp.TimeSize + 3 + msgp.TimeSize + 3 + msgp.IntSize + 4 + msgp.BoolSize + 4 + msgp.BoolSize + 5 + msgp.StringPrefixSize + len(z.Bucket) + 5 + msgp.StringPrefixSize + len(z.Object) + 3 + msgp.Int64Size + 3 + msgp.Int64Size + 4 + msgp.Int64Size + 4 + msgp.Int64Size + 3 + msgp.Int64Size + 3 + msgp.Int64Size
|
2022-10-03 05:10:15 -04:00
|
|
|
return
|
|
|
|
}
|