mirror of https://github.com/k3s-io/k3s
49167 lines
1.1 MiB
49167 lines
1.1 MiB
/*
|
|
Copyright 2015 The Kubernetes Authors All rights reserved.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/
|
|
|
|
// ************************************************************
|
|
// DO NOT EDIT.
|
|
// THIS FILE IS AUTO-GENERATED BY codecgen.
|
|
// ************************************************************
|
|
|
|
package api
|
|
|
|
import (
|
|
"errors"
|
|
"fmt"
|
|
codec1978 "github.com/ugorji/go/codec"
|
|
pkg3_resource "k8s.io/kubernetes/pkg/api/resource"
|
|
pkg2_unversioned "k8s.io/kubernetes/pkg/api/unversioned"
|
|
pkg7_fields "k8s.io/kubernetes/pkg/fields"
|
|
pkg6_labels "k8s.io/kubernetes/pkg/labels"
|
|
pkg8_runtime "k8s.io/kubernetes/pkg/runtime"
|
|
pkg1_types "k8s.io/kubernetes/pkg/types"
|
|
pkg5_intstr "k8s.io/kubernetes/pkg/util/intstr"
|
|
"reflect"
|
|
"runtime"
|
|
pkg4_inf "speter.net/go/exp/math/dec/inf"
|
|
time "time"
|
|
)
|
|
|
|
const (
|
|
// ----- content types ----
|
|
codecSelferC_UTF81234 = 1
|
|
codecSelferC_RAW1234 = 0
|
|
// ----- value types used ----
|
|
codecSelferValueTypeArray1234 = 10
|
|
codecSelferValueTypeMap1234 = 9
|
|
// ----- containerStateValues ----
|
|
codecSelfer_containerMapKey1234 = 2
|
|
codecSelfer_containerMapValue1234 = 3
|
|
codecSelfer_containerMapEnd1234 = 4
|
|
codecSelfer_containerArrayElem1234 = 6
|
|
codecSelfer_containerArrayEnd1234 = 7
|
|
)
|
|
|
|
var (
|
|
codecSelferBitsize1234 = uint8(reflect.TypeOf(uint(0)).Bits())
|
|
codecSelferOnlyMapOrArrayEncodeToStructErr1234 = errors.New(`only encoded map or array can be decoded into a struct`)
|
|
)
|
|
|
|
type codecSelfer1234 struct{}
|
|
|
|
func init() {
|
|
if codec1978.GenVersion != 5 {
|
|
_, file, _, _ := runtime.Caller(0)
|
|
err := fmt.Errorf("codecgen version mismatch: current: %v, need %v. Re-generate file: %v",
|
|
5, codec1978.GenVersion, file)
|
|
panic(err)
|
|
}
|
|
if false { // reference the types, but skip this branch at build/run time
|
|
var v0 pkg3_resource.Quantity
|
|
var v1 pkg2_unversioned.Time
|
|
var v2 pkg7_fields.Selector
|
|
var v3 pkg6_labels.Selector
|
|
var v4 pkg8_runtime.Object
|
|
var v5 pkg1_types.UID
|
|
var v6 pkg5_intstr.IntOrString
|
|
var v7 pkg4_inf.Dec
|
|
var v8 time.Time
|
|
_, _, _, _, _, _, _, _, _ = v0, v1, v2, v3, v4, v5, v6, v7, v8
|
|
}
|
|
}
|
|
|
|
func (x *ObjectMeta) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1 := z.EncBinary()
|
|
_ = yym1
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2 := !z.EncBinary()
|
|
yy2arr2 := z.EncBasicHandle().StructToArray
|
|
var yyq2 [12]bool
|
|
_, _, _ = yysep2, yyq2, yy2arr2
|
|
const yyr2 bool = false
|
|
yyq2[0] = x.Name != ""
|
|
yyq2[1] = x.GenerateName != ""
|
|
yyq2[2] = x.Namespace != ""
|
|
yyq2[3] = x.SelfLink != ""
|
|
yyq2[4] = x.UID != ""
|
|
yyq2[5] = x.ResourceVersion != ""
|
|
yyq2[6] = x.Generation != 0
|
|
yyq2[7] = true
|
|
yyq2[8] = x.DeletionTimestamp != nil
|
|
yyq2[9] = x.DeletionGracePeriodSeconds != nil
|
|
yyq2[10] = len(x.Labels) != 0
|
|
yyq2[11] = len(x.Annotations) != 0
|
|
var yynn2 int
|
|
if yyr2 || yy2arr2 {
|
|
r.EncodeArrayStart(12)
|
|
} else {
|
|
yynn2 = 0
|
|
for _, b := range yyq2 {
|
|
if b {
|
|
yynn2++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2)
|
|
yynn2 = 0
|
|
}
|
|
if yyr2 || yy2arr2 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2[0] {
|
|
yym4 := z.EncBinary()
|
|
_ = yym4
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("name"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym5 := z.EncBinary()
|
|
_ = yym5
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
}
|
|
}
|
|
if yyr2 || yy2arr2 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2[1] {
|
|
yym7 := z.EncBinary()
|
|
_ = yym7
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("generateName"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym8 := z.EncBinary()
|
|
_ = yym8
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName))
|
|
}
|
|
}
|
|
}
|
|
if yyr2 || yy2arr2 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2[2] {
|
|
yym10 := z.EncBinary()
|
|
_ = yym10
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Namespace))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("namespace"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym11 := z.EncBinary()
|
|
_ = yym11
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Namespace))
|
|
}
|
|
}
|
|
}
|
|
if yyr2 || yy2arr2 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2[3] {
|
|
yym13 := z.EncBinary()
|
|
_ = yym13
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.SelfLink))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("selfLink"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym14 := z.EncBinary()
|
|
_ = yym14
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.SelfLink))
|
|
}
|
|
}
|
|
}
|
|
if yyr2 || yy2arr2 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2[4] {
|
|
yym16 := z.EncBinary()
|
|
_ = yym16
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x.UID) {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.UID))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("uid"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym17 := z.EncBinary()
|
|
_ = yym17
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x.UID) {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.UID))
|
|
}
|
|
}
|
|
}
|
|
if yyr2 || yy2arr2 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2[5] {
|
|
yym19 := z.EncBinary()
|
|
_ = yym19
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("resourceVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym20 := z.EncBinary()
|
|
_ = yym20
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2 || yy2arr2 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2[6] {
|
|
yym22 := z.EncBinary()
|
|
_ = yym22
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Generation))
|
|
}
|
|
} else {
|
|
r.EncodeInt(0)
|
|
}
|
|
} else {
|
|
if yyq2[6] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("generation"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym23 := z.EncBinary()
|
|
_ = yym23
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Generation))
|
|
}
|
|
}
|
|
}
|
|
if yyr2 || yy2arr2 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2[7] {
|
|
yy25 := &x.CreationTimestamp
|
|
yym26 := z.EncBinary()
|
|
_ = yym26
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy25) {
|
|
} else if yym26 {
|
|
z.EncBinaryMarshal(yy25)
|
|
} else if !yym26 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy25)
|
|
} else {
|
|
z.EncFallback(yy25)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2[7] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("creationTimestamp"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy27 := &x.CreationTimestamp
|
|
yym28 := z.EncBinary()
|
|
_ = yym28
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy27) {
|
|
} else if yym28 {
|
|
z.EncBinaryMarshal(yy27)
|
|
} else if !yym28 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy27)
|
|
} else {
|
|
z.EncFallback(yy27)
|
|
}
|
|
}
|
|
}
|
|
if yyr2 || yy2arr2 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2[8] {
|
|
if x.DeletionTimestamp == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym30 := z.EncBinary()
|
|
_ = yym30
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x.DeletionTimestamp) {
|
|
} else if yym30 {
|
|
z.EncBinaryMarshal(x.DeletionTimestamp)
|
|
} else if !yym30 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(x.DeletionTimestamp)
|
|
} else {
|
|
z.EncFallback(x.DeletionTimestamp)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2[8] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("deletionTimestamp"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.DeletionTimestamp == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym31 := z.EncBinary()
|
|
_ = yym31
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x.DeletionTimestamp) {
|
|
} else if yym31 {
|
|
z.EncBinaryMarshal(x.DeletionTimestamp)
|
|
} else if !yym31 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(x.DeletionTimestamp)
|
|
} else {
|
|
z.EncFallback(x.DeletionTimestamp)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr2 || yy2arr2 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2[9] {
|
|
if x.DeletionGracePeriodSeconds == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy33 := *x.DeletionGracePeriodSeconds
|
|
yym34 := z.EncBinary()
|
|
_ = yym34
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy33))
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2[9] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("deletionGracePeriodSeconds"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.DeletionGracePeriodSeconds == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy35 := *x.DeletionGracePeriodSeconds
|
|
yym36 := z.EncBinary()
|
|
_ = yym36
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy35))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr2 || yy2arr2 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2[10] {
|
|
if x.Labels == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym38 := z.EncBinary()
|
|
_ = yym38
|
|
if false {
|
|
} else {
|
|
z.F.EncMapStringStringV(x.Labels, false, e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2[10] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("labels"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Labels == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym39 := z.EncBinary()
|
|
_ = yym39
|
|
if false {
|
|
} else {
|
|
z.F.EncMapStringStringV(x.Labels, false, e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr2 || yy2arr2 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2[11] {
|
|
if x.Annotations == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym41 := z.EncBinary()
|
|
_ = yym41
|
|
if false {
|
|
} else {
|
|
z.F.EncMapStringStringV(x.Annotations, false, e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2[11] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("annotations"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Annotations == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym42 := z.EncBinary()
|
|
_ = yym42
|
|
if false {
|
|
} else {
|
|
z.F.EncMapStringStringV(x.Annotations, false, e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr2 || yy2arr2 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ObjectMeta) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym43 := z.DecBinary()
|
|
_ = yym43
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct44 := r.ContainerType()
|
|
if yyct44 == codecSelferValueTypeMap1234 {
|
|
yyl44 := r.ReadMapStart()
|
|
if yyl44 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl44, d)
|
|
}
|
|
} else if yyct44 == codecSelferValueTypeArray1234 {
|
|
yyl44 := r.ReadArrayStart()
|
|
if yyl44 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl44, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ObjectMeta) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys45Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys45Slc
|
|
var yyhl45 bool = l >= 0
|
|
for yyj45 := 0; ; yyj45++ {
|
|
if yyhl45 {
|
|
if yyj45 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys45Slc = r.DecodeBytes(yys45Slc, true, true)
|
|
yys45 := string(yys45Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys45 {
|
|
case "name":
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
case "generateName":
|
|
if r.TryDecodeAsNil() {
|
|
x.GenerateName = ""
|
|
} else {
|
|
x.GenerateName = string(r.DecodeString())
|
|
}
|
|
case "namespace":
|
|
if r.TryDecodeAsNil() {
|
|
x.Namespace = ""
|
|
} else {
|
|
x.Namespace = string(r.DecodeString())
|
|
}
|
|
case "selfLink":
|
|
if r.TryDecodeAsNil() {
|
|
x.SelfLink = ""
|
|
} else {
|
|
x.SelfLink = string(r.DecodeString())
|
|
}
|
|
case "uid":
|
|
if r.TryDecodeAsNil() {
|
|
x.UID = ""
|
|
} else {
|
|
x.UID = pkg1_types.UID(r.DecodeString())
|
|
}
|
|
case "resourceVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.ResourceVersion = ""
|
|
} else {
|
|
x.ResourceVersion = string(r.DecodeString())
|
|
}
|
|
case "generation":
|
|
if r.TryDecodeAsNil() {
|
|
x.Generation = 0
|
|
} else {
|
|
x.Generation = int64(r.DecodeInt(64))
|
|
}
|
|
case "creationTimestamp":
|
|
if r.TryDecodeAsNil() {
|
|
x.CreationTimestamp = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv53 := &x.CreationTimestamp
|
|
yym54 := z.DecBinary()
|
|
_ = yym54
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv53) {
|
|
} else if yym54 {
|
|
z.DecBinaryUnmarshal(yyv53)
|
|
} else if !yym54 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv53)
|
|
} else {
|
|
z.DecFallback(yyv53, false)
|
|
}
|
|
}
|
|
case "deletionTimestamp":
|
|
if r.TryDecodeAsNil() {
|
|
if x.DeletionTimestamp != nil {
|
|
x.DeletionTimestamp = nil
|
|
}
|
|
} else {
|
|
if x.DeletionTimestamp == nil {
|
|
x.DeletionTimestamp = new(pkg2_unversioned.Time)
|
|
}
|
|
yym56 := z.DecBinary()
|
|
_ = yym56
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) {
|
|
} else if yym56 {
|
|
z.DecBinaryUnmarshal(x.DeletionTimestamp)
|
|
} else if !yym56 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(x.DeletionTimestamp)
|
|
} else {
|
|
z.DecFallback(x.DeletionTimestamp, false)
|
|
}
|
|
}
|
|
case "deletionGracePeriodSeconds":
|
|
if r.TryDecodeAsNil() {
|
|
if x.DeletionGracePeriodSeconds != nil {
|
|
x.DeletionGracePeriodSeconds = nil
|
|
}
|
|
} else {
|
|
if x.DeletionGracePeriodSeconds == nil {
|
|
x.DeletionGracePeriodSeconds = new(int64)
|
|
}
|
|
yym58 := z.DecBinary()
|
|
_ = yym58
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
case "labels":
|
|
if r.TryDecodeAsNil() {
|
|
x.Labels = nil
|
|
} else {
|
|
yyv59 := &x.Labels
|
|
yym60 := z.DecBinary()
|
|
_ = yym60
|
|
if false {
|
|
} else {
|
|
z.F.DecMapStringStringX(yyv59, false, d)
|
|
}
|
|
}
|
|
case "annotations":
|
|
if r.TryDecodeAsNil() {
|
|
x.Annotations = nil
|
|
} else {
|
|
yyv61 := &x.Annotations
|
|
yym62 := z.DecBinary()
|
|
_ = yym62
|
|
if false {
|
|
} else {
|
|
z.F.DecMapStringStringX(yyv61, false, d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys45)
|
|
} // end switch yys45
|
|
} // end for yyj45
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *ObjectMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj63 int
|
|
var yyb63 bool
|
|
var yyhl63 bool = l >= 0
|
|
yyj63++
|
|
if yyhl63 {
|
|
yyb63 = yyj63 > l
|
|
} else {
|
|
yyb63 = r.CheckBreak()
|
|
}
|
|
if yyb63 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
yyj63++
|
|
if yyhl63 {
|
|
yyb63 = yyj63 > l
|
|
} else {
|
|
yyb63 = r.CheckBreak()
|
|
}
|
|
if yyb63 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.GenerateName = ""
|
|
} else {
|
|
x.GenerateName = string(r.DecodeString())
|
|
}
|
|
yyj63++
|
|
if yyhl63 {
|
|
yyb63 = yyj63 > l
|
|
} else {
|
|
yyb63 = r.CheckBreak()
|
|
}
|
|
if yyb63 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Namespace = ""
|
|
} else {
|
|
x.Namespace = string(r.DecodeString())
|
|
}
|
|
yyj63++
|
|
if yyhl63 {
|
|
yyb63 = yyj63 > l
|
|
} else {
|
|
yyb63 = r.CheckBreak()
|
|
}
|
|
if yyb63 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.SelfLink = ""
|
|
} else {
|
|
x.SelfLink = string(r.DecodeString())
|
|
}
|
|
yyj63++
|
|
if yyhl63 {
|
|
yyb63 = yyj63 > l
|
|
} else {
|
|
yyb63 = r.CheckBreak()
|
|
}
|
|
if yyb63 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.UID = ""
|
|
} else {
|
|
x.UID = pkg1_types.UID(r.DecodeString())
|
|
}
|
|
yyj63++
|
|
if yyhl63 {
|
|
yyb63 = yyj63 > l
|
|
} else {
|
|
yyb63 = r.CheckBreak()
|
|
}
|
|
if yyb63 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ResourceVersion = ""
|
|
} else {
|
|
x.ResourceVersion = string(r.DecodeString())
|
|
}
|
|
yyj63++
|
|
if yyhl63 {
|
|
yyb63 = yyj63 > l
|
|
} else {
|
|
yyb63 = r.CheckBreak()
|
|
}
|
|
if yyb63 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Generation = 0
|
|
} else {
|
|
x.Generation = int64(r.DecodeInt(64))
|
|
}
|
|
yyj63++
|
|
if yyhl63 {
|
|
yyb63 = yyj63 > l
|
|
} else {
|
|
yyb63 = r.CheckBreak()
|
|
}
|
|
if yyb63 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.CreationTimestamp = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv71 := &x.CreationTimestamp
|
|
yym72 := z.DecBinary()
|
|
_ = yym72
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv71) {
|
|
} else if yym72 {
|
|
z.DecBinaryUnmarshal(yyv71)
|
|
} else if !yym72 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv71)
|
|
} else {
|
|
z.DecFallback(yyv71, false)
|
|
}
|
|
}
|
|
yyj63++
|
|
if yyhl63 {
|
|
yyb63 = yyj63 > l
|
|
} else {
|
|
yyb63 = r.CheckBreak()
|
|
}
|
|
if yyb63 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.DeletionTimestamp != nil {
|
|
x.DeletionTimestamp = nil
|
|
}
|
|
} else {
|
|
if x.DeletionTimestamp == nil {
|
|
x.DeletionTimestamp = new(pkg2_unversioned.Time)
|
|
}
|
|
yym74 := z.DecBinary()
|
|
_ = yym74
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) {
|
|
} else if yym74 {
|
|
z.DecBinaryUnmarshal(x.DeletionTimestamp)
|
|
} else if !yym74 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(x.DeletionTimestamp)
|
|
} else {
|
|
z.DecFallback(x.DeletionTimestamp, false)
|
|
}
|
|
}
|
|
yyj63++
|
|
if yyhl63 {
|
|
yyb63 = yyj63 > l
|
|
} else {
|
|
yyb63 = r.CheckBreak()
|
|
}
|
|
if yyb63 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.DeletionGracePeriodSeconds != nil {
|
|
x.DeletionGracePeriodSeconds = nil
|
|
}
|
|
} else {
|
|
if x.DeletionGracePeriodSeconds == nil {
|
|
x.DeletionGracePeriodSeconds = new(int64)
|
|
}
|
|
yym76 := z.DecBinary()
|
|
_ = yym76
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
yyj63++
|
|
if yyhl63 {
|
|
yyb63 = yyj63 > l
|
|
} else {
|
|
yyb63 = r.CheckBreak()
|
|
}
|
|
if yyb63 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Labels = nil
|
|
} else {
|
|
yyv77 := &x.Labels
|
|
yym78 := z.DecBinary()
|
|
_ = yym78
|
|
if false {
|
|
} else {
|
|
z.F.DecMapStringStringX(yyv77, false, d)
|
|
}
|
|
}
|
|
yyj63++
|
|
if yyhl63 {
|
|
yyb63 = yyj63 > l
|
|
} else {
|
|
yyb63 = r.CheckBreak()
|
|
}
|
|
if yyb63 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Annotations = nil
|
|
} else {
|
|
yyv79 := &x.Annotations
|
|
yym80 := z.DecBinary()
|
|
_ = yym80
|
|
if false {
|
|
} else {
|
|
z.F.DecMapStringStringX(yyv79, false, d)
|
|
}
|
|
}
|
|
for {
|
|
yyj63++
|
|
if yyhl63 {
|
|
yyb63 = yyj63 > l
|
|
} else {
|
|
yyb63 = r.CheckBreak()
|
|
}
|
|
if yyb63 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj63-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym81 := z.EncBinary()
|
|
_ = yym81
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep82 := !z.EncBinary()
|
|
yy2arr82 := z.EncBasicHandle().StructToArray
|
|
var yyq82 [18]bool
|
|
_, _, _ = yysep82, yyq82, yy2arr82
|
|
const yyr82 bool = false
|
|
yyq82[1] = x.VolumeSource.HostPath != nil && x.HostPath != nil
|
|
yyq82[2] = x.VolumeSource.EmptyDir != nil && x.EmptyDir != nil
|
|
yyq82[3] = x.VolumeSource.GCEPersistentDisk != nil && x.GCEPersistentDisk != nil
|
|
yyq82[4] = x.VolumeSource.AWSElasticBlockStore != nil && x.AWSElasticBlockStore != nil
|
|
yyq82[5] = x.VolumeSource.GitRepo != nil && x.GitRepo != nil
|
|
yyq82[6] = x.VolumeSource.Secret != nil && x.Secret != nil
|
|
yyq82[7] = x.VolumeSource.NFS != nil && x.NFS != nil
|
|
yyq82[8] = x.VolumeSource.ISCSI != nil && x.ISCSI != nil
|
|
yyq82[9] = x.VolumeSource.Glusterfs != nil && x.Glusterfs != nil
|
|
yyq82[10] = x.VolumeSource.PersistentVolumeClaim != nil && x.PersistentVolumeClaim != nil
|
|
yyq82[11] = x.VolumeSource.RBD != nil && x.RBD != nil
|
|
yyq82[12] = x.VolumeSource.FlexVolume != nil && x.FlexVolume != nil
|
|
yyq82[13] = x.VolumeSource.Cinder != nil && x.Cinder != nil
|
|
yyq82[14] = x.VolumeSource.CephFS != nil && x.CephFS != nil
|
|
yyq82[15] = x.VolumeSource.Flocker != nil && x.Flocker != nil
|
|
yyq82[16] = x.VolumeSource.DownwardAPI != nil && x.DownwardAPI != nil
|
|
yyq82[17] = x.VolumeSource.FC != nil && x.FC != nil
|
|
var yynn82 int
|
|
if yyr82 || yy2arr82 {
|
|
r.EncodeArrayStart(18)
|
|
} else {
|
|
yynn82 = 1
|
|
for _, b := range yyq82 {
|
|
if b {
|
|
yynn82++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn82)
|
|
yynn82 = 0
|
|
}
|
|
if yyr82 || yy2arr82 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym84 := z.EncBinary()
|
|
_ = yym84
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("name"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym85 := z.EncBinary()
|
|
_ = yym85
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
}
|
|
var yyn86 bool
|
|
if x.VolumeSource.HostPath == nil {
|
|
yyn86 = true
|
|
goto LABEL86
|
|
}
|
|
LABEL86:
|
|
if yyr82 || yy2arr82 {
|
|
if yyn86 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq82[1] {
|
|
if x.HostPath == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.HostPath.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq82[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("hostPath"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn86 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.HostPath == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.HostPath.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn87 bool
|
|
if x.VolumeSource.EmptyDir == nil {
|
|
yyn87 = true
|
|
goto LABEL87
|
|
}
|
|
LABEL87:
|
|
if yyr82 || yy2arr82 {
|
|
if yyn87 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq82[2] {
|
|
if x.EmptyDir == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.EmptyDir.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq82[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("emptyDir"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn87 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.EmptyDir == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.EmptyDir.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn88 bool
|
|
if x.VolumeSource.GCEPersistentDisk == nil {
|
|
yyn88 = true
|
|
goto LABEL88
|
|
}
|
|
LABEL88:
|
|
if yyr82 || yy2arr82 {
|
|
if yyn88 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq82[3] {
|
|
if x.GCEPersistentDisk == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.GCEPersistentDisk.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq82[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn88 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.GCEPersistentDisk == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.GCEPersistentDisk.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn89 bool
|
|
if x.VolumeSource.AWSElasticBlockStore == nil {
|
|
yyn89 = true
|
|
goto LABEL89
|
|
}
|
|
LABEL89:
|
|
if yyr82 || yy2arr82 {
|
|
if yyn89 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq82[4] {
|
|
if x.AWSElasticBlockStore == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.AWSElasticBlockStore.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq82[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn89 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.AWSElasticBlockStore == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.AWSElasticBlockStore.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn90 bool
|
|
if x.VolumeSource.GitRepo == nil {
|
|
yyn90 = true
|
|
goto LABEL90
|
|
}
|
|
LABEL90:
|
|
if yyr82 || yy2arr82 {
|
|
if yyn90 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq82[5] {
|
|
if x.GitRepo == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.GitRepo.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq82[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("gitRepo"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn90 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.GitRepo == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.GitRepo.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn91 bool
|
|
if x.VolumeSource.Secret == nil {
|
|
yyn91 = true
|
|
goto LABEL91
|
|
}
|
|
LABEL91:
|
|
if yyr82 || yy2arr82 {
|
|
if yyn91 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq82[6] {
|
|
if x.Secret == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Secret.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq82[6] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("secret"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn91 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.Secret == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Secret.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn92 bool
|
|
if x.VolumeSource.NFS == nil {
|
|
yyn92 = true
|
|
goto LABEL92
|
|
}
|
|
LABEL92:
|
|
if yyr82 || yy2arr82 {
|
|
if yyn92 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq82[7] {
|
|
if x.NFS == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.NFS.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq82[7] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("nfs"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn92 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.NFS == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.NFS.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn93 bool
|
|
if x.VolumeSource.ISCSI == nil {
|
|
yyn93 = true
|
|
goto LABEL93
|
|
}
|
|
LABEL93:
|
|
if yyr82 || yy2arr82 {
|
|
if yyn93 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq82[8] {
|
|
if x.ISCSI == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.ISCSI.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq82[8] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("iscsi"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn93 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.ISCSI == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.ISCSI.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn94 bool
|
|
if x.VolumeSource.Glusterfs == nil {
|
|
yyn94 = true
|
|
goto LABEL94
|
|
}
|
|
LABEL94:
|
|
if yyr82 || yy2arr82 {
|
|
if yyn94 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq82[9] {
|
|
if x.Glusterfs == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Glusterfs.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq82[9] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("glusterfs"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn94 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.Glusterfs == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Glusterfs.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn95 bool
|
|
if x.VolumeSource.PersistentVolumeClaim == nil {
|
|
yyn95 = true
|
|
goto LABEL95
|
|
}
|
|
LABEL95:
|
|
if yyr82 || yy2arr82 {
|
|
if yyn95 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq82[10] {
|
|
if x.PersistentVolumeClaim == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.PersistentVolumeClaim.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq82[10] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeClaim"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn95 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.PersistentVolumeClaim == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.PersistentVolumeClaim.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn96 bool
|
|
if x.VolumeSource.RBD == nil {
|
|
yyn96 = true
|
|
goto LABEL96
|
|
}
|
|
LABEL96:
|
|
if yyr82 || yy2arr82 {
|
|
if yyn96 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq82[11] {
|
|
if x.RBD == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.RBD.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq82[11] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("rbd"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn96 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.RBD == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.RBD.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn97 bool
|
|
if x.VolumeSource.FlexVolume == nil {
|
|
yyn97 = true
|
|
goto LABEL97
|
|
}
|
|
LABEL97:
|
|
if yyr82 || yy2arr82 {
|
|
if yyn97 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq82[12] {
|
|
if x.FlexVolume == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.FlexVolume.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq82[12] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("flexVolume"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn97 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.FlexVolume == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.FlexVolume.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn98 bool
|
|
if x.VolumeSource.Cinder == nil {
|
|
yyn98 = true
|
|
goto LABEL98
|
|
}
|
|
LABEL98:
|
|
if yyr82 || yy2arr82 {
|
|
if yyn98 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq82[13] {
|
|
if x.Cinder == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Cinder.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq82[13] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("cinder"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn98 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.Cinder == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Cinder.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn99 bool
|
|
if x.VolumeSource.CephFS == nil {
|
|
yyn99 = true
|
|
goto LABEL99
|
|
}
|
|
LABEL99:
|
|
if yyr82 || yy2arr82 {
|
|
if yyn99 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq82[14] {
|
|
if x.CephFS == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.CephFS.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq82[14] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("cephfs"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn99 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.CephFS == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.CephFS.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn100 bool
|
|
if x.VolumeSource.Flocker == nil {
|
|
yyn100 = true
|
|
goto LABEL100
|
|
}
|
|
LABEL100:
|
|
if yyr82 || yy2arr82 {
|
|
if yyn100 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq82[15] {
|
|
if x.Flocker == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Flocker.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq82[15] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("flocker"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn100 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.Flocker == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Flocker.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn101 bool
|
|
if x.VolumeSource.DownwardAPI == nil {
|
|
yyn101 = true
|
|
goto LABEL101
|
|
}
|
|
LABEL101:
|
|
if yyr82 || yy2arr82 {
|
|
if yyn101 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq82[16] {
|
|
if x.DownwardAPI == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.DownwardAPI.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq82[16] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("downwardAPI"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn101 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.DownwardAPI == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.DownwardAPI.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn102 bool
|
|
if x.VolumeSource.FC == nil {
|
|
yyn102 = true
|
|
goto LABEL102
|
|
}
|
|
LABEL102:
|
|
if yyr82 || yy2arr82 {
|
|
if yyn102 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq82[17] {
|
|
if x.FC == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.FC.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq82[17] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("fc"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn102 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.FC == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.FC.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr82 || yy2arr82 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *Volume) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym103 := z.DecBinary()
|
|
_ = yym103
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct104 := r.ContainerType()
|
|
if yyct104 == codecSelferValueTypeMap1234 {
|
|
yyl104 := r.ReadMapStart()
|
|
if yyl104 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl104, d)
|
|
}
|
|
} else if yyct104 == codecSelferValueTypeArray1234 {
|
|
yyl104 := r.ReadArrayStart()
|
|
if yyl104 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl104, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *Volume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys105Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys105Slc
|
|
var yyhl105 bool = l >= 0
|
|
for yyj105 := 0; ; yyj105++ {
|
|
if yyhl105 {
|
|
if yyj105 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys105Slc = r.DecodeBytes(yys105Slc, true, true)
|
|
yys105 := string(yys105Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys105 {
|
|
case "name":
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
case "hostPath":
|
|
if x.VolumeSource.HostPath == nil {
|
|
x.VolumeSource.HostPath = new(HostPathVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.HostPath != nil {
|
|
x.HostPath = nil
|
|
}
|
|
} else {
|
|
if x.HostPath == nil {
|
|
x.HostPath = new(HostPathVolumeSource)
|
|
}
|
|
x.HostPath.CodecDecodeSelf(d)
|
|
}
|
|
case "emptyDir":
|
|
if x.VolumeSource.EmptyDir == nil {
|
|
x.VolumeSource.EmptyDir = new(EmptyDirVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.EmptyDir != nil {
|
|
x.EmptyDir = nil
|
|
}
|
|
} else {
|
|
if x.EmptyDir == nil {
|
|
x.EmptyDir = new(EmptyDirVolumeSource)
|
|
}
|
|
x.EmptyDir.CodecDecodeSelf(d)
|
|
}
|
|
case "gcePersistentDisk":
|
|
if x.VolumeSource.GCEPersistentDisk == nil {
|
|
x.VolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.GCEPersistentDisk != nil {
|
|
x.GCEPersistentDisk = nil
|
|
}
|
|
} else {
|
|
if x.GCEPersistentDisk == nil {
|
|
x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
|
|
}
|
|
x.GCEPersistentDisk.CodecDecodeSelf(d)
|
|
}
|
|
case "awsElasticBlockStore":
|
|
if x.VolumeSource.AWSElasticBlockStore == nil {
|
|
x.VolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.AWSElasticBlockStore != nil {
|
|
x.AWSElasticBlockStore = nil
|
|
}
|
|
} else {
|
|
if x.AWSElasticBlockStore == nil {
|
|
x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
|
|
}
|
|
x.AWSElasticBlockStore.CodecDecodeSelf(d)
|
|
}
|
|
case "gitRepo":
|
|
if x.VolumeSource.GitRepo == nil {
|
|
x.VolumeSource.GitRepo = new(GitRepoVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.GitRepo != nil {
|
|
x.GitRepo = nil
|
|
}
|
|
} else {
|
|
if x.GitRepo == nil {
|
|
x.GitRepo = new(GitRepoVolumeSource)
|
|
}
|
|
x.GitRepo.CodecDecodeSelf(d)
|
|
}
|
|
case "secret":
|
|
if x.VolumeSource.Secret == nil {
|
|
x.VolumeSource.Secret = new(SecretVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.Secret != nil {
|
|
x.Secret = nil
|
|
}
|
|
} else {
|
|
if x.Secret == nil {
|
|
x.Secret = new(SecretVolumeSource)
|
|
}
|
|
x.Secret.CodecDecodeSelf(d)
|
|
}
|
|
case "nfs":
|
|
if x.VolumeSource.NFS == nil {
|
|
x.VolumeSource.NFS = new(NFSVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.NFS != nil {
|
|
x.NFS = nil
|
|
}
|
|
} else {
|
|
if x.NFS == nil {
|
|
x.NFS = new(NFSVolumeSource)
|
|
}
|
|
x.NFS.CodecDecodeSelf(d)
|
|
}
|
|
case "iscsi":
|
|
if x.VolumeSource.ISCSI == nil {
|
|
x.VolumeSource.ISCSI = new(ISCSIVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.ISCSI != nil {
|
|
x.ISCSI = nil
|
|
}
|
|
} else {
|
|
if x.ISCSI == nil {
|
|
x.ISCSI = new(ISCSIVolumeSource)
|
|
}
|
|
x.ISCSI.CodecDecodeSelf(d)
|
|
}
|
|
case "glusterfs":
|
|
if x.VolumeSource.Glusterfs == nil {
|
|
x.VolumeSource.Glusterfs = new(GlusterfsVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.Glusterfs != nil {
|
|
x.Glusterfs = nil
|
|
}
|
|
} else {
|
|
if x.Glusterfs == nil {
|
|
x.Glusterfs = new(GlusterfsVolumeSource)
|
|
}
|
|
x.Glusterfs.CodecDecodeSelf(d)
|
|
}
|
|
case "persistentVolumeClaim":
|
|
if x.VolumeSource.PersistentVolumeClaim == nil {
|
|
x.VolumeSource.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.PersistentVolumeClaim != nil {
|
|
x.PersistentVolumeClaim = nil
|
|
}
|
|
} else {
|
|
if x.PersistentVolumeClaim == nil {
|
|
x.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource)
|
|
}
|
|
x.PersistentVolumeClaim.CodecDecodeSelf(d)
|
|
}
|
|
case "rbd":
|
|
if x.VolumeSource.RBD == nil {
|
|
x.VolumeSource.RBD = new(RBDVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.RBD != nil {
|
|
x.RBD = nil
|
|
}
|
|
} else {
|
|
if x.RBD == nil {
|
|
x.RBD = new(RBDVolumeSource)
|
|
}
|
|
x.RBD.CodecDecodeSelf(d)
|
|
}
|
|
case "flexVolume":
|
|
if x.VolumeSource.FlexVolume == nil {
|
|
x.VolumeSource.FlexVolume = new(FlexVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.FlexVolume != nil {
|
|
x.FlexVolume = nil
|
|
}
|
|
} else {
|
|
if x.FlexVolume == nil {
|
|
x.FlexVolume = new(FlexVolumeSource)
|
|
}
|
|
x.FlexVolume.CodecDecodeSelf(d)
|
|
}
|
|
case "cinder":
|
|
if x.VolumeSource.Cinder == nil {
|
|
x.VolumeSource.Cinder = new(CinderVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.Cinder != nil {
|
|
x.Cinder = nil
|
|
}
|
|
} else {
|
|
if x.Cinder == nil {
|
|
x.Cinder = new(CinderVolumeSource)
|
|
}
|
|
x.Cinder.CodecDecodeSelf(d)
|
|
}
|
|
case "cephfs":
|
|
if x.VolumeSource.CephFS == nil {
|
|
x.VolumeSource.CephFS = new(CephFSVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.CephFS != nil {
|
|
x.CephFS = nil
|
|
}
|
|
} else {
|
|
if x.CephFS == nil {
|
|
x.CephFS = new(CephFSVolumeSource)
|
|
}
|
|
x.CephFS.CodecDecodeSelf(d)
|
|
}
|
|
case "flocker":
|
|
if x.VolumeSource.Flocker == nil {
|
|
x.VolumeSource.Flocker = new(FlockerVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.Flocker != nil {
|
|
x.Flocker = nil
|
|
}
|
|
} else {
|
|
if x.Flocker == nil {
|
|
x.Flocker = new(FlockerVolumeSource)
|
|
}
|
|
x.Flocker.CodecDecodeSelf(d)
|
|
}
|
|
case "downwardAPI":
|
|
if x.VolumeSource.DownwardAPI == nil {
|
|
x.VolumeSource.DownwardAPI = new(DownwardAPIVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.DownwardAPI != nil {
|
|
x.DownwardAPI = nil
|
|
}
|
|
} else {
|
|
if x.DownwardAPI == nil {
|
|
x.DownwardAPI = new(DownwardAPIVolumeSource)
|
|
}
|
|
x.DownwardAPI.CodecDecodeSelf(d)
|
|
}
|
|
case "fc":
|
|
if x.VolumeSource.FC == nil {
|
|
x.VolumeSource.FC = new(FCVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.FC != nil {
|
|
x.FC = nil
|
|
}
|
|
} else {
|
|
if x.FC == nil {
|
|
x.FC = new(FCVolumeSource)
|
|
}
|
|
x.FC.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys105)
|
|
} // end switch yys105
|
|
} // end for yyj105
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj124 int
|
|
var yyb124 bool
|
|
var yyhl124 bool = l >= 0
|
|
yyj124++
|
|
if yyhl124 {
|
|
yyb124 = yyj124 > l
|
|
} else {
|
|
yyb124 = r.CheckBreak()
|
|
}
|
|
if yyb124 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
if x.VolumeSource.HostPath == nil {
|
|
x.VolumeSource.HostPath = new(HostPathVolumeSource)
|
|
}
|
|
yyj124++
|
|
if yyhl124 {
|
|
yyb124 = yyj124 > l
|
|
} else {
|
|
yyb124 = r.CheckBreak()
|
|
}
|
|
if yyb124 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.HostPath != nil {
|
|
x.HostPath = nil
|
|
}
|
|
} else {
|
|
if x.HostPath == nil {
|
|
x.HostPath = new(HostPathVolumeSource)
|
|
}
|
|
x.HostPath.CodecDecodeSelf(d)
|
|
}
|
|
if x.VolumeSource.EmptyDir == nil {
|
|
x.VolumeSource.EmptyDir = new(EmptyDirVolumeSource)
|
|
}
|
|
yyj124++
|
|
if yyhl124 {
|
|
yyb124 = yyj124 > l
|
|
} else {
|
|
yyb124 = r.CheckBreak()
|
|
}
|
|
if yyb124 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.EmptyDir != nil {
|
|
x.EmptyDir = nil
|
|
}
|
|
} else {
|
|
if x.EmptyDir == nil {
|
|
x.EmptyDir = new(EmptyDirVolumeSource)
|
|
}
|
|
x.EmptyDir.CodecDecodeSelf(d)
|
|
}
|
|
if x.VolumeSource.GCEPersistentDisk == nil {
|
|
x.VolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
|
|
}
|
|
yyj124++
|
|
if yyhl124 {
|
|
yyb124 = yyj124 > l
|
|
} else {
|
|
yyb124 = r.CheckBreak()
|
|
}
|
|
if yyb124 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.GCEPersistentDisk != nil {
|
|
x.GCEPersistentDisk = nil
|
|
}
|
|
} else {
|
|
if x.GCEPersistentDisk == nil {
|
|
x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
|
|
}
|
|
x.GCEPersistentDisk.CodecDecodeSelf(d)
|
|
}
|
|
if x.VolumeSource.AWSElasticBlockStore == nil {
|
|
x.VolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
|
|
}
|
|
yyj124++
|
|
if yyhl124 {
|
|
yyb124 = yyj124 > l
|
|
} else {
|
|
yyb124 = r.CheckBreak()
|
|
}
|
|
if yyb124 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.AWSElasticBlockStore != nil {
|
|
x.AWSElasticBlockStore = nil
|
|
}
|
|
} else {
|
|
if x.AWSElasticBlockStore == nil {
|
|
x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
|
|
}
|
|
x.AWSElasticBlockStore.CodecDecodeSelf(d)
|
|
}
|
|
if x.VolumeSource.GitRepo == nil {
|
|
x.VolumeSource.GitRepo = new(GitRepoVolumeSource)
|
|
}
|
|
yyj124++
|
|
if yyhl124 {
|
|
yyb124 = yyj124 > l
|
|
} else {
|
|
yyb124 = r.CheckBreak()
|
|
}
|
|
if yyb124 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.GitRepo != nil {
|
|
x.GitRepo = nil
|
|
}
|
|
} else {
|
|
if x.GitRepo == nil {
|
|
x.GitRepo = new(GitRepoVolumeSource)
|
|
}
|
|
x.GitRepo.CodecDecodeSelf(d)
|
|
}
|
|
if x.VolumeSource.Secret == nil {
|
|
x.VolumeSource.Secret = new(SecretVolumeSource)
|
|
}
|
|
yyj124++
|
|
if yyhl124 {
|
|
yyb124 = yyj124 > l
|
|
} else {
|
|
yyb124 = r.CheckBreak()
|
|
}
|
|
if yyb124 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.Secret != nil {
|
|
x.Secret = nil
|
|
}
|
|
} else {
|
|
if x.Secret == nil {
|
|
x.Secret = new(SecretVolumeSource)
|
|
}
|
|
x.Secret.CodecDecodeSelf(d)
|
|
}
|
|
if x.VolumeSource.NFS == nil {
|
|
x.VolumeSource.NFS = new(NFSVolumeSource)
|
|
}
|
|
yyj124++
|
|
if yyhl124 {
|
|
yyb124 = yyj124 > l
|
|
} else {
|
|
yyb124 = r.CheckBreak()
|
|
}
|
|
if yyb124 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.NFS != nil {
|
|
x.NFS = nil
|
|
}
|
|
} else {
|
|
if x.NFS == nil {
|
|
x.NFS = new(NFSVolumeSource)
|
|
}
|
|
x.NFS.CodecDecodeSelf(d)
|
|
}
|
|
if x.VolumeSource.ISCSI == nil {
|
|
x.VolumeSource.ISCSI = new(ISCSIVolumeSource)
|
|
}
|
|
yyj124++
|
|
if yyhl124 {
|
|
yyb124 = yyj124 > l
|
|
} else {
|
|
yyb124 = r.CheckBreak()
|
|
}
|
|
if yyb124 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.ISCSI != nil {
|
|
x.ISCSI = nil
|
|
}
|
|
} else {
|
|
if x.ISCSI == nil {
|
|
x.ISCSI = new(ISCSIVolumeSource)
|
|
}
|
|
x.ISCSI.CodecDecodeSelf(d)
|
|
}
|
|
if x.VolumeSource.Glusterfs == nil {
|
|
x.VolumeSource.Glusterfs = new(GlusterfsVolumeSource)
|
|
}
|
|
yyj124++
|
|
if yyhl124 {
|
|
yyb124 = yyj124 > l
|
|
} else {
|
|
yyb124 = r.CheckBreak()
|
|
}
|
|
if yyb124 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.Glusterfs != nil {
|
|
x.Glusterfs = nil
|
|
}
|
|
} else {
|
|
if x.Glusterfs == nil {
|
|
x.Glusterfs = new(GlusterfsVolumeSource)
|
|
}
|
|
x.Glusterfs.CodecDecodeSelf(d)
|
|
}
|
|
if x.VolumeSource.PersistentVolumeClaim == nil {
|
|
x.VolumeSource.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource)
|
|
}
|
|
yyj124++
|
|
if yyhl124 {
|
|
yyb124 = yyj124 > l
|
|
} else {
|
|
yyb124 = r.CheckBreak()
|
|
}
|
|
if yyb124 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.PersistentVolumeClaim != nil {
|
|
x.PersistentVolumeClaim = nil
|
|
}
|
|
} else {
|
|
if x.PersistentVolumeClaim == nil {
|
|
x.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource)
|
|
}
|
|
x.PersistentVolumeClaim.CodecDecodeSelf(d)
|
|
}
|
|
if x.VolumeSource.RBD == nil {
|
|
x.VolumeSource.RBD = new(RBDVolumeSource)
|
|
}
|
|
yyj124++
|
|
if yyhl124 {
|
|
yyb124 = yyj124 > l
|
|
} else {
|
|
yyb124 = r.CheckBreak()
|
|
}
|
|
if yyb124 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.RBD != nil {
|
|
x.RBD = nil
|
|
}
|
|
} else {
|
|
if x.RBD == nil {
|
|
x.RBD = new(RBDVolumeSource)
|
|
}
|
|
x.RBD.CodecDecodeSelf(d)
|
|
}
|
|
if x.VolumeSource.FlexVolume == nil {
|
|
x.VolumeSource.FlexVolume = new(FlexVolumeSource)
|
|
}
|
|
yyj124++
|
|
if yyhl124 {
|
|
yyb124 = yyj124 > l
|
|
} else {
|
|
yyb124 = r.CheckBreak()
|
|
}
|
|
if yyb124 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.FlexVolume != nil {
|
|
x.FlexVolume = nil
|
|
}
|
|
} else {
|
|
if x.FlexVolume == nil {
|
|
x.FlexVolume = new(FlexVolumeSource)
|
|
}
|
|
x.FlexVolume.CodecDecodeSelf(d)
|
|
}
|
|
if x.VolumeSource.Cinder == nil {
|
|
x.VolumeSource.Cinder = new(CinderVolumeSource)
|
|
}
|
|
yyj124++
|
|
if yyhl124 {
|
|
yyb124 = yyj124 > l
|
|
} else {
|
|
yyb124 = r.CheckBreak()
|
|
}
|
|
if yyb124 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.Cinder != nil {
|
|
x.Cinder = nil
|
|
}
|
|
} else {
|
|
if x.Cinder == nil {
|
|
x.Cinder = new(CinderVolumeSource)
|
|
}
|
|
x.Cinder.CodecDecodeSelf(d)
|
|
}
|
|
if x.VolumeSource.CephFS == nil {
|
|
x.VolumeSource.CephFS = new(CephFSVolumeSource)
|
|
}
|
|
yyj124++
|
|
if yyhl124 {
|
|
yyb124 = yyj124 > l
|
|
} else {
|
|
yyb124 = r.CheckBreak()
|
|
}
|
|
if yyb124 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.CephFS != nil {
|
|
x.CephFS = nil
|
|
}
|
|
} else {
|
|
if x.CephFS == nil {
|
|
x.CephFS = new(CephFSVolumeSource)
|
|
}
|
|
x.CephFS.CodecDecodeSelf(d)
|
|
}
|
|
if x.VolumeSource.Flocker == nil {
|
|
x.VolumeSource.Flocker = new(FlockerVolumeSource)
|
|
}
|
|
yyj124++
|
|
if yyhl124 {
|
|
yyb124 = yyj124 > l
|
|
} else {
|
|
yyb124 = r.CheckBreak()
|
|
}
|
|
if yyb124 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.Flocker != nil {
|
|
x.Flocker = nil
|
|
}
|
|
} else {
|
|
if x.Flocker == nil {
|
|
x.Flocker = new(FlockerVolumeSource)
|
|
}
|
|
x.Flocker.CodecDecodeSelf(d)
|
|
}
|
|
if x.VolumeSource.DownwardAPI == nil {
|
|
x.VolumeSource.DownwardAPI = new(DownwardAPIVolumeSource)
|
|
}
|
|
yyj124++
|
|
if yyhl124 {
|
|
yyb124 = yyj124 > l
|
|
} else {
|
|
yyb124 = r.CheckBreak()
|
|
}
|
|
if yyb124 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.DownwardAPI != nil {
|
|
x.DownwardAPI = nil
|
|
}
|
|
} else {
|
|
if x.DownwardAPI == nil {
|
|
x.DownwardAPI = new(DownwardAPIVolumeSource)
|
|
}
|
|
x.DownwardAPI.CodecDecodeSelf(d)
|
|
}
|
|
if x.VolumeSource.FC == nil {
|
|
x.VolumeSource.FC = new(FCVolumeSource)
|
|
}
|
|
yyj124++
|
|
if yyhl124 {
|
|
yyb124 = yyj124 > l
|
|
} else {
|
|
yyb124 = r.CheckBreak()
|
|
}
|
|
if yyb124 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.FC != nil {
|
|
x.FC = nil
|
|
}
|
|
} else {
|
|
if x.FC == nil {
|
|
x.FC = new(FCVolumeSource)
|
|
}
|
|
x.FC.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj124++
|
|
if yyhl124 {
|
|
yyb124 = yyj124 > l
|
|
} else {
|
|
yyb124 = r.CheckBreak()
|
|
}
|
|
if yyb124 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj124-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym143 := z.EncBinary()
|
|
_ = yym143
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep144 := !z.EncBinary()
|
|
yy2arr144 := z.EncBasicHandle().StructToArray
|
|
var yyq144 [17]bool
|
|
_, _, _ = yysep144, yyq144, yy2arr144
|
|
const yyr144 bool = false
|
|
yyq144[0] = x.HostPath != nil
|
|
yyq144[1] = x.EmptyDir != nil
|
|
yyq144[2] = x.GCEPersistentDisk != nil
|
|
yyq144[3] = x.AWSElasticBlockStore != nil
|
|
yyq144[4] = x.GitRepo != nil
|
|
yyq144[5] = x.Secret != nil
|
|
yyq144[6] = x.NFS != nil
|
|
yyq144[7] = x.ISCSI != nil
|
|
yyq144[8] = x.Glusterfs != nil
|
|
yyq144[9] = x.PersistentVolumeClaim != nil
|
|
yyq144[10] = x.RBD != nil
|
|
yyq144[11] = x.FlexVolume != nil
|
|
yyq144[12] = x.Cinder != nil
|
|
yyq144[13] = x.CephFS != nil
|
|
yyq144[14] = x.Flocker != nil
|
|
yyq144[15] = x.DownwardAPI != nil
|
|
yyq144[16] = x.FC != nil
|
|
var yynn144 int
|
|
if yyr144 || yy2arr144 {
|
|
r.EncodeArrayStart(17)
|
|
} else {
|
|
yynn144 = 0
|
|
for _, b := range yyq144 {
|
|
if b {
|
|
yynn144++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn144)
|
|
yynn144 = 0
|
|
}
|
|
if yyr144 || yy2arr144 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq144[0] {
|
|
if x.HostPath == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.HostPath.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq144[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("hostPath"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.HostPath == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.HostPath.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr144 || yy2arr144 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq144[1] {
|
|
if x.EmptyDir == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.EmptyDir.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq144[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("emptyDir"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.EmptyDir == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.EmptyDir.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr144 || yy2arr144 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq144[2] {
|
|
if x.GCEPersistentDisk == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.GCEPersistentDisk.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq144[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.GCEPersistentDisk == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.GCEPersistentDisk.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr144 || yy2arr144 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq144[3] {
|
|
if x.AWSElasticBlockStore == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.AWSElasticBlockStore.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq144[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.AWSElasticBlockStore == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.AWSElasticBlockStore.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr144 || yy2arr144 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq144[4] {
|
|
if x.GitRepo == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.GitRepo.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq144[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("gitRepo"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.GitRepo == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.GitRepo.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr144 || yy2arr144 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq144[5] {
|
|
if x.Secret == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Secret.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq144[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("secret"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Secret == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Secret.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr144 || yy2arr144 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq144[6] {
|
|
if x.NFS == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.NFS.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq144[6] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("nfs"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.NFS == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.NFS.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr144 || yy2arr144 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq144[7] {
|
|
if x.ISCSI == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.ISCSI.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq144[7] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("iscsi"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.ISCSI == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.ISCSI.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr144 || yy2arr144 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq144[8] {
|
|
if x.Glusterfs == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Glusterfs.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq144[8] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("glusterfs"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Glusterfs == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Glusterfs.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr144 || yy2arr144 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq144[9] {
|
|
if x.PersistentVolumeClaim == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.PersistentVolumeClaim.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq144[9] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeClaim"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.PersistentVolumeClaim == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.PersistentVolumeClaim.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr144 || yy2arr144 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq144[10] {
|
|
if x.RBD == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.RBD.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq144[10] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("rbd"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.RBD == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.RBD.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr144 || yy2arr144 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq144[11] {
|
|
if x.FlexVolume == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.FlexVolume.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq144[11] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("flexVolume"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.FlexVolume == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.FlexVolume.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr144 || yy2arr144 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq144[12] {
|
|
if x.Cinder == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Cinder.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq144[12] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("cinder"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Cinder == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Cinder.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr144 || yy2arr144 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq144[13] {
|
|
if x.CephFS == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.CephFS.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq144[13] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("cephfs"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.CephFS == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.CephFS.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr144 || yy2arr144 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq144[14] {
|
|
if x.Flocker == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Flocker.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq144[14] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("flocker"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Flocker == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Flocker.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr144 || yy2arr144 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq144[15] {
|
|
if x.DownwardAPI == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.DownwardAPI.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq144[15] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("downwardAPI"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.DownwardAPI == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.DownwardAPI.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr144 || yy2arr144 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq144[16] {
|
|
if x.FC == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.FC.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq144[16] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("fc"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.FC == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.FC.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr144 || yy2arr144 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *VolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym162 := z.DecBinary()
|
|
_ = yym162
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct163 := r.ContainerType()
|
|
if yyct163 == codecSelferValueTypeMap1234 {
|
|
yyl163 := r.ReadMapStart()
|
|
if yyl163 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl163, d)
|
|
}
|
|
} else if yyct163 == codecSelferValueTypeArray1234 {
|
|
yyl163 := r.ReadArrayStart()
|
|
if yyl163 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl163, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *VolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys164Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys164Slc
|
|
var yyhl164 bool = l >= 0
|
|
for yyj164 := 0; ; yyj164++ {
|
|
if yyhl164 {
|
|
if yyj164 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys164Slc = r.DecodeBytes(yys164Slc, true, true)
|
|
yys164 := string(yys164Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys164 {
|
|
case "hostPath":
|
|
if r.TryDecodeAsNil() {
|
|
if x.HostPath != nil {
|
|
x.HostPath = nil
|
|
}
|
|
} else {
|
|
if x.HostPath == nil {
|
|
x.HostPath = new(HostPathVolumeSource)
|
|
}
|
|
x.HostPath.CodecDecodeSelf(d)
|
|
}
|
|
case "emptyDir":
|
|
if r.TryDecodeAsNil() {
|
|
if x.EmptyDir != nil {
|
|
x.EmptyDir = nil
|
|
}
|
|
} else {
|
|
if x.EmptyDir == nil {
|
|
x.EmptyDir = new(EmptyDirVolumeSource)
|
|
}
|
|
x.EmptyDir.CodecDecodeSelf(d)
|
|
}
|
|
case "gcePersistentDisk":
|
|
if r.TryDecodeAsNil() {
|
|
if x.GCEPersistentDisk != nil {
|
|
x.GCEPersistentDisk = nil
|
|
}
|
|
} else {
|
|
if x.GCEPersistentDisk == nil {
|
|
x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
|
|
}
|
|
x.GCEPersistentDisk.CodecDecodeSelf(d)
|
|
}
|
|
case "awsElasticBlockStore":
|
|
if r.TryDecodeAsNil() {
|
|
if x.AWSElasticBlockStore != nil {
|
|
x.AWSElasticBlockStore = nil
|
|
}
|
|
} else {
|
|
if x.AWSElasticBlockStore == nil {
|
|
x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
|
|
}
|
|
x.AWSElasticBlockStore.CodecDecodeSelf(d)
|
|
}
|
|
case "gitRepo":
|
|
if r.TryDecodeAsNil() {
|
|
if x.GitRepo != nil {
|
|
x.GitRepo = nil
|
|
}
|
|
} else {
|
|
if x.GitRepo == nil {
|
|
x.GitRepo = new(GitRepoVolumeSource)
|
|
}
|
|
x.GitRepo.CodecDecodeSelf(d)
|
|
}
|
|
case "secret":
|
|
if r.TryDecodeAsNil() {
|
|
if x.Secret != nil {
|
|
x.Secret = nil
|
|
}
|
|
} else {
|
|
if x.Secret == nil {
|
|
x.Secret = new(SecretVolumeSource)
|
|
}
|
|
x.Secret.CodecDecodeSelf(d)
|
|
}
|
|
case "nfs":
|
|
if r.TryDecodeAsNil() {
|
|
if x.NFS != nil {
|
|
x.NFS = nil
|
|
}
|
|
} else {
|
|
if x.NFS == nil {
|
|
x.NFS = new(NFSVolumeSource)
|
|
}
|
|
x.NFS.CodecDecodeSelf(d)
|
|
}
|
|
case "iscsi":
|
|
if r.TryDecodeAsNil() {
|
|
if x.ISCSI != nil {
|
|
x.ISCSI = nil
|
|
}
|
|
} else {
|
|
if x.ISCSI == nil {
|
|
x.ISCSI = new(ISCSIVolumeSource)
|
|
}
|
|
x.ISCSI.CodecDecodeSelf(d)
|
|
}
|
|
case "glusterfs":
|
|
if r.TryDecodeAsNil() {
|
|
if x.Glusterfs != nil {
|
|
x.Glusterfs = nil
|
|
}
|
|
} else {
|
|
if x.Glusterfs == nil {
|
|
x.Glusterfs = new(GlusterfsVolumeSource)
|
|
}
|
|
x.Glusterfs.CodecDecodeSelf(d)
|
|
}
|
|
case "persistentVolumeClaim":
|
|
if r.TryDecodeAsNil() {
|
|
if x.PersistentVolumeClaim != nil {
|
|
x.PersistentVolumeClaim = nil
|
|
}
|
|
} else {
|
|
if x.PersistentVolumeClaim == nil {
|
|
x.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource)
|
|
}
|
|
x.PersistentVolumeClaim.CodecDecodeSelf(d)
|
|
}
|
|
case "rbd":
|
|
if r.TryDecodeAsNil() {
|
|
if x.RBD != nil {
|
|
x.RBD = nil
|
|
}
|
|
} else {
|
|
if x.RBD == nil {
|
|
x.RBD = new(RBDVolumeSource)
|
|
}
|
|
x.RBD.CodecDecodeSelf(d)
|
|
}
|
|
case "flexVolume":
|
|
if r.TryDecodeAsNil() {
|
|
if x.FlexVolume != nil {
|
|
x.FlexVolume = nil
|
|
}
|
|
} else {
|
|
if x.FlexVolume == nil {
|
|
x.FlexVolume = new(FlexVolumeSource)
|
|
}
|
|
x.FlexVolume.CodecDecodeSelf(d)
|
|
}
|
|
case "cinder":
|
|
if r.TryDecodeAsNil() {
|
|
if x.Cinder != nil {
|
|
x.Cinder = nil
|
|
}
|
|
} else {
|
|
if x.Cinder == nil {
|
|
x.Cinder = new(CinderVolumeSource)
|
|
}
|
|
x.Cinder.CodecDecodeSelf(d)
|
|
}
|
|
case "cephfs":
|
|
if r.TryDecodeAsNil() {
|
|
if x.CephFS != nil {
|
|
x.CephFS = nil
|
|
}
|
|
} else {
|
|
if x.CephFS == nil {
|
|
x.CephFS = new(CephFSVolumeSource)
|
|
}
|
|
x.CephFS.CodecDecodeSelf(d)
|
|
}
|
|
case "flocker":
|
|
if r.TryDecodeAsNil() {
|
|
if x.Flocker != nil {
|
|
x.Flocker = nil
|
|
}
|
|
} else {
|
|
if x.Flocker == nil {
|
|
x.Flocker = new(FlockerVolumeSource)
|
|
}
|
|
x.Flocker.CodecDecodeSelf(d)
|
|
}
|
|
case "downwardAPI":
|
|
if r.TryDecodeAsNil() {
|
|
if x.DownwardAPI != nil {
|
|
x.DownwardAPI = nil
|
|
}
|
|
} else {
|
|
if x.DownwardAPI == nil {
|
|
x.DownwardAPI = new(DownwardAPIVolumeSource)
|
|
}
|
|
x.DownwardAPI.CodecDecodeSelf(d)
|
|
}
|
|
case "fc":
|
|
if r.TryDecodeAsNil() {
|
|
if x.FC != nil {
|
|
x.FC = nil
|
|
}
|
|
} else {
|
|
if x.FC == nil {
|
|
x.FC = new(FCVolumeSource)
|
|
}
|
|
x.FC.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys164)
|
|
} // end switch yys164
|
|
} // end for yyj164
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj182 int
|
|
var yyb182 bool
|
|
var yyhl182 bool = l >= 0
|
|
yyj182++
|
|
if yyhl182 {
|
|
yyb182 = yyj182 > l
|
|
} else {
|
|
yyb182 = r.CheckBreak()
|
|
}
|
|
if yyb182 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.HostPath != nil {
|
|
x.HostPath = nil
|
|
}
|
|
} else {
|
|
if x.HostPath == nil {
|
|
x.HostPath = new(HostPathVolumeSource)
|
|
}
|
|
x.HostPath.CodecDecodeSelf(d)
|
|
}
|
|
yyj182++
|
|
if yyhl182 {
|
|
yyb182 = yyj182 > l
|
|
} else {
|
|
yyb182 = r.CheckBreak()
|
|
}
|
|
if yyb182 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.EmptyDir != nil {
|
|
x.EmptyDir = nil
|
|
}
|
|
} else {
|
|
if x.EmptyDir == nil {
|
|
x.EmptyDir = new(EmptyDirVolumeSource)
|
|
}
|
|
x.EmptyDir.CodecDecodeSelf(d)
|
|
}
|
|
yyj182++
|
|
if yyhl182 {
|
|
yyb182 = yyj182 > l
|
|
} else {
|
|
yyb182 = r.CheckBreak()
|
|
}
|
|
if yyb182 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.GCEPersistentDisk != nil {
|
|
x.GCEPersistentDisk = nil
|
|
}
|
|
} else {
|
|
if x.GCEPersistentDisk == nil {
|
|
x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
|
|
}
|
|
x.GCEPersistentDisk.CodecDecodeSelf(d)
|
|
}
|
|
yyj182++
|
|
if yyhl182 {
|
|
yyb182 = yyj182 > l
|
|
} else {
|
|
yyb182 = r.CheckBreak()
|
|
}
|
|
if yyb182 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.AWSElasticBlockStore != nil {
|
|
x.AWSElasticBlockStore = nil
|
|
}
|
|
} else {
|
|
if x.AWSElasticBlockStore == nil {
|
|
x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
|
|
}
|
|
x.AWSElasticBlockStore.CodecDecodeSelf(d)
|
|
}
|
|
yyj182++
|
|
if yyhl182 {
|
|
yyb182 = yyj182 > l
|
|
} else {
|
|
yyb182 = r.CheckBreak()
|
|
}
|
|
if yyb182 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.GitRepo != nil {
|
|
x.GitRepo = nil
|
|
}
|
|
} else {
|
|
if x.GitRepo == nil {
|
|
x.GitRepo = new(GitRepoVolumeSource)
|
|
}
|
|
x.GitRepo.CodecDecodeSelf(d)
|
|
}
|
|
yyj182++
|
|
if yyhl182 {
|
|
yyb182 = yyj182 > l
|
|
} else {
|
|
yyb182 = r.CheckBreak()
|
|
}
|
|
if yyb182 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.Secret != nil {
|
|
x.Secret = nil
|
|
}
|
|
} else {
|
|
if x.Secret == nil {
|
|
x.Secret = new(SecretVolumeSource)
|
|
}
|
|
x.Secret.CodecDecodeSelf(d)
|
|
}
|
|
yyj182++
|
|
if yyhl182 {
|
|
yyb182 = yyj182 > l
|
|
} else {
|
|
yyb182 = r.CheckBreak()
|
|
}
|
|
if yyb182 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.NFS != nil {
|
|
x.NFS = nil
|
|
}
|
|
} else {
|
|
if x.NFS == nil {
|
|
x.NFS = new(NFSVolumeSource)
|
|
}
|
|
x.NFS.CodecDecodeSelf(d)
|
|
}
|
|
yyj182++
|
|
if yyhl182 {
|
|
yyb182 = yyj182 > l
|
|
} else {
|
|
yyb182 = r.CheckBreak()
|
|
}
|
|
if yyb182 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.ISCSI != nil {
|
|
x.ISCSI = nil
|
|
}
|
|
} else {
|
|
if x.ISCSI == nil {
|
|
x.ISCSI = new(ISCSIVolumeSource)
|
|
}
|
|
x.ISCSI.CodecDecodeSelf(d)
|
|
}
|
|
yyj182++
|
|
if yyhl182 {
|
|
yyb182 = yyj182 > l
|
|
} else {
|
|
yyb182 = r.CheckBreak()
|
|
}
|
|
if yyb182 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.Glusterfs != nil {
|
|
x.Glusterfs = nil
|
|
}
|
|
} else {
|
|
if x.Glusterfs == nil {
|
|
x.Glusterfs = new(GlusterfsVolumeSource)
|
|
}
|
|
x.Glusterfs.CodecDecodeSelf(d)
|
|
}
|
|
yyj182++
|
|
if yyhl182 {
|
|
yyb182 = yyj182 > l
|
|
} else {
|
|
yyb182 = r.CheckBreak()
|
|
}
|
|
if yyb182 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.PersistentVolumeClaim != nil {
|
|
x.PersistentVolumeClaim = nil
|
|
}
|
|
} else {
|
|
if x.PersistentVolumeClaim == nil {
|
|
x.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource)
|
|
}
|
|
x.PersistentVolumeClaim.CodecDecodeSelf(d)
|
|
}
|
|
yyj182++
|
|
if yyhl182 {
|
|
yyb182 = yyj182 > l
|
|
} else {
|
|
yyb182 = r.CheckBreak()
|
|
}
|
|
if yyb182 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.RBD != nil {
|
|
x.RBD = nil
|
|
}
|
|
} else {
|
|
if x.RBD == nil {
|
|
x.RBD = new(RBDVolumeSource)
|
|
}
|
|
x.RBD.CodecDecodeSelf(d)
|
|
}
|
|
yyj182++
|
|
if yyhl182 {
|
|
yyb182 = yyj182 > l
|
|
} else {
|
|
yyb182 = r.CheckBreak()
|
|
}
|
|
if yyb182 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.FlexVolume != nil {
|
|
x.FlexVolume = nil
|
|
}
|
|
} else {
|
|
if x.FlexVolume == nil {
|
|
x.FlexVolume = new(FlexVolumeSource)
|
|
}
|
|
x.FlexVolume.CodecDecodeSelf(d)
|
|
}
|
|
yyj182++
|
|
if yyhl182 {
|
|
yyb182 = yyj182 > l
|
|
} else {
|
|
yyb182 = r.CheckBreak()
|
|
}
|
|
if yyb182 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.Cinder != nil {
|
|
x.Cinder = nil
|
|
}
|
|
} else {
|
|
if x.Cinder == nil {
|
|
x.Cinder = new(CinderVolumeSource)
|
|
}
|
|
x.Cinder.CodecDecodeSelf(d)
|
|
}
|
|
yyj182++
|
|
if yyhl182 {
|
|
yyb182 = yyj182 > l
|
|
} else {
|
|
yyb182 = r.CheckBreak()
|
|
}
|
|
if yyb182 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.CephFS != nil {
|
|
x.CephFS = nil
|
|
}
|
|
} else {
|
|
if x.CephFS == nil {
|
|
x.CephFS = new(CephFSVolumeSource)
|
|
}
|
|
x.CephFS.CodecDecodeSelf(d)
|
|
}
|
|
yyj182++
|
|
if yyhl182 {
|
|
yyb182 = yyj182 > l
|
|
} else {
|
|
yyb182 = r.CheckBreak()
|
|
}
|
|
if yyb182 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.Flocker != nil {
|
|
x.Flocker = nil
|
|
}
|
|
} else {
|
|
if x.Flocker == nil {
|
|
x.Flocker = new(FlockerVolumeSource)
|
|
}
|
|
x.Flocker.CodecDecodeSelf(d)
|
|
}
|
|
yyj182++
|
|
if yyhl182 {
|
|
yyb182 = yyj182 > l
|
|
} else {
|
|
yyb182 = r.CheckBreak()
|
|
}
|
|
if yyb182 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.DownwardAPI != nil {
|
|
x.DownwardAPI = nil
|
|
}
|
|
} else {
|
|
if x.DownwardAPI == nil {
|
|
x.DownwardAPI = new(DownwardAPIVolumeSource)
|
|
}
|
|
x.DownwardAPI.CodecDecodeSelf(d)
|
|
}
|
|
yyj182++
|
|
if yyhl182 {
|
|
yyb182 = yyj182 > l
|
|
} else {
|
|
yyb182 = r.CheckBreak()
|
|
}
|
|
if yyb182 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.FC != nil {
|
|
x.FC = nil
|
|
}
|
|
} else {
|
|
if x.FC == nil {
|
|
x.FC = new(FCVolumeSource)
|
|
}
|
|
x.FC.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj182++
|
|
if yyhl182 {
|
|
yyb182 = yyj182 > l
|
|
} else {
|
|
yyb182 = r.CheckBreak()
|
|
}
|
|
if yyb182 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj182-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym200 := z.EncBinary()
|
|
_ = yym200
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep201 := !z.EncBinary()
|
|
yy2arr201 := z.EncBasicHandle().StructToArray
|
|
var yyq201 [12]bool
|
|
_, _, _ = yysep201, yyq201, yy2arr201
|
|
const yyr201 bool = false
|
|
yyq201[0] = x.GCEPersistentDisk != nil
|
|
yyq201[1] = x.AWSElasticBlockStore != nil
|
|
yyq201[2] = x.HostPath != nil
|
|
yyq201[3] = x.Glusterfs != nil
|
|
yyq201[4] = x.NFS != nil
|
|
yyq201[5] = x.RBD != nil
|
|
yyq201[6] = x.ISCSI != nil
|
|
yyq201[7] = x.FlexVolume != nil
|
|
yyq201[8] = x.Cinder != nil
|
|
yyq201[9] = x.CephFS != nil
|
|
yyq201[10] = x.FC != nil
|
|
yyq201[11] = x.Flocker != nil
|
|
var yynn201 int
|
|
if yyr201 || yy2arr201 {
|
|
r.EncodeArrayStart(12)
|
|
} else {
|
|
yynn201 = 0
|
|
for _, b := range yyq201 {
|
|
if b {
|
|
yynn201++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn201)
|
|
yynn201 = 0
|
|
}
|
|
if yyr201 || yy2arr201 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq201[0] {
|
|
if x.GCEPersistentDisk == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.GCEPersistentDisk.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq201[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.GCEPersistentDisk == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.GCEPersistentDisk.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr201 || yy2arr201 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq201[1] {
|
|
if x.AWSElasticBlockStore == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.AWSElasticBlockStore.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq201[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.AWSElasticBlockStore == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.AWSElasticBlockStore.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr201 || yy2arr201 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq201[2] {
|
|
if x.HostPath == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.HostPath.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq201[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("hostPath"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.HostPath == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.HostPath.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr201 || yy2arr201 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq201[3] {
|
|
if x.Glusterfs == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Glusterfs.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq201[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("glusterfs"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Glusterfs == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Glusterfs.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr201 || yy2arr201 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq201[4] {
|
|
if x.NFS == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.NFS.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq201[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("nfs"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.NFS == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.NFS.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr201 || yy2arr201 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq201[5] {
|
|
if x.RBD == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.RBD.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq201[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("rbd"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.RBD == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.RBD.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr201 || yy2arr201 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq201[6] {
|
|
if x.ISCSI == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.ISCSI.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq201[6] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("iscsi"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.ISCSI == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.ISCSI.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr201 || yy2arr201 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq201[7] {
|
|
if x.FlexVolume == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.FlexVolume.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq201[7] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("flexVolume"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.FlexVolume == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.FlexVolume.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr201 || yy2arr201 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq201[8] {
|
|
if x.Cinder == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Cinder.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq201[8] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("cinder"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Cinder == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Cinder.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr201 || yy2arr201 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq201[9] {
|
|
if x.CephFS == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.CephFS.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq201[9] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("cephfs"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.CephFS == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.CephFS.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr201 || yy2arr201 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq201[10] {
|
|
if x.FC == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.FC.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq201[10] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("fc"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.FC == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.FC.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr201 || yy2arr201 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq201[11] {
|
|
if x.Flocker == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Flocker.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq201[11] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("flocker"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Flocker == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Flocker.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr201 || yy2arr201 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PersistentVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym214 := z.DecBinary()
|
|
_ = yym214
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct215 := r.ContainerType()
|
|
if yyct215 == codecSelferValueTypeMap1234 {
|
|
yyl215 := r.ReadMapStart()
|
|
if yyl215 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl215, d)
|
|
}
|
|
} else if yyct215 == codecSelferValueTypeArray1234 {
|
|
yyl215 := r.ReadArrayStart()
|
|
if yyl215 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl215, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PersistentVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys216Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys216Slc
|
|
var yyhl216 bool = l >= 0
|
|
for yyj216 := 0; ; yyj216++ {
|
|
if yyhl216 {
|
|
if yyj216 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys216Slc = r.DecodeBytes(yys216Slc, true, true)
|
|
yys216 := string(yys216Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys216 {
|
|
case "gcePersistentDisk":
|
|
if r.TryDecodeAsNil() {
|
|
if x.GCEPersistentDisk != nil {
|
|
x.GCEPersistentDisk = nil
|
|
}
|
|
} else {
|
|
if x.GCEPersistentDisk == nil {
|
|
x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
|
|
}
|
|
x.GCEPersistentDisk.CodecDecodeSelf(d)
|
|
}
|
|
case "awsElasticBlockStore":
|
|
if r.TryDecodeAsNil() {
|
|
if x.AWSElasticBlockStore != nil {
|
|
x.AWSElasticBlockStore = nil
|
|
}
|
|
} else {
|
|
if x.AWSElasticBlockStore == nil {
|
|
x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
|
|
}
|
|
x.AWSElasticBlockStore.CodecDecodeSelf(d)
|
|
}
|
|
case "hostPath":
|
|
if r.TryDecodeAsNil() {
|
|
if x.HostPath != nil {
|
|
x.HostPath = nil
|
|
}
|
|
} else {
|
|
if x.HostPath == nil {
|
|
x.HostPath = new(HostPathVolumeSource)
|
|
}
|
|
x.HostPath.CodecDecodeSelf(d)
|
|
}
|
|
case "glusterfs":
|
|
if r.TryDecodeAsNil() {
|
|
if x.Glusterfs != nil {
|
|
x.Glusterfs = nil
|
|
}
|
|
} else {
|
|
if x.Glusterfs == nil {
|
|
x.Glusterfs = new(GlusterfsVolumeSource)
|
|
}
|
|
x.Glusterfs.CodecDecodeSelf(d)
|
|
}
|
|
case "nfs":
|
|
if r.TryDecodeAsNil() {
|
|
if x.NFS != nil {
|
|
x.NFS = nil
|
|
}
|
|
} else {
|
|
if x.NFS == nil {
|
|
x.NFS = new(NFSVolumeSource)
|
|
}
|
|
x.NFS.CodecDecodeSelf(d)
|
|
}
|
|
case "rbd":
|
|
if r.TryDecodeAsNil() {
|
|
if x.RBD != nil {
|
|
x.RBD = nil
|
|
}
|
|
} else {
|
|
if x.RBD == nil {
|
|
x.RBD = new(RBDVolumeSource)
|
|
}
|
|
x.RBD.CodecDecodeSelf(d)
|
|
}
|
|
case "iscsi":
|
|
if r.TryDecodeAsNil() {
|
|
if x.ISCSI != nil {
|
|
x.ISCSI = nil
|
|
}
|
|
} else {
|
|
if x.ISCSI == nil {
|
|
x.ISCSI = new(ISCSIVolumeSource)
|
|
}
|
|
x.ISCSI.CodecDecodeSelf(d)
|
|
}
|
|
case "flexVolume":
|
|
if r.TryDecodeAsNil() {
|
|
if x.FlexVolume != nil {
|
|
x.FlexVolume = nil
|
|
}
|
|
} else {
|
|
if x.FlexVolume == nil {
|
|
x.FlexVolume = new(FlexVolumeSource)
|
|
}
|
|
x.FlexVolume.CodecDecodeSelf(d)
|
|
}
|
|
case "cinder":
|
|
if r.TryDecodeAsNil() {
|
|
if x.Cinder != nil {
|
|
x.Cinder = nil
|
|
}
|
|
} else {
|
|
if x.Cinder == nil {
|
|
x.Cinder = new(CinderVolumeSource)
|
|
}
|
|
x.Cinder.CodecDecodeSelf(d)
|
|
}
|
|
case "cephfs":
|
|
if r.TryDecodeAsNil() {
|
|
if x.CephFS != nil {
|
|
x.CephFS = nil
|
|
}
|
|
} else {
|
|
if x.CephFS == nil {
|
|
x.CephFS = new(CephFSVolumeSource)
|
|
}
|
|
x.CephFS.CodecDecodeSelf(d)
|
|
}
|
|
case "fc":
|
|
if r.TryDecodeAsNil() {
|
|
if x.FC != nil {
|
|
x.FC = nil
|
|
}
|
|
} else {
|
|
if x.FC == nil {
|
|
x.FC = new(FCVolumeSource)
|
|
}
|
|
x.FC.CodecDecodeSelf(d)
|
|
}
|
|
case "flocker":
|
|
if r.TryDecodeAsNil() {
|
|
if x.Flocker != nil {
|
|
x.Flocker = nil
|
|
}
|
|
} else {
|
|
if x.Flocker == nil {
|
|
x.Flocker = new(FlockerVolumeSource)
|
|
}
|
|
x.Flocker.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys216)
|
|
} // end switch yys216
|
|
} // end for yyj216
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj229 int
|
|
var yyb229 bool
|
|
var yyhl229 bool = l >= 0
|
|
yyj229++
|
|
if yyhl229 {
|
|
yyb229 = yyj229 > l
|
|
} else {
|
|
yyb229 = r.CheckBreak()
|
|
}
|
|
if yyb229 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.GCEPersistentDisk != nil {
|
|
x.GCEPersistentDisk = nil
|
|
}
|
|
} else {
|
|
if x.GCEPersistentDisk == nil {
|
|
x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
|
|
}
|
|
x.GCEPersistentDisk.CodecDecodeSelf(d)
|
|
}
|
|
yyj229++
|
|
if yyhl229 {
|
|
yyb229 = yyj229 > l
|
|
} else {
|
|
yyb229 = r.CheckBreak()
|
|
}
|
|
if yyb229 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.AWSElasticBlockStore != nil {
|
|
x.AWSElasticBlockStore = nil
|
|
}
|
|
} else {
|
|
if x.AWSElasticBlockStore == nil {
|
|
x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
|
|
}
|
|
x.AWSElasticBlockStore.CodecDecodeSelf(d)
|
|
}
|
|
yyj229++
|
|
if yyhl229 {
|
|
yyb229 = yyj229 > l
|
|
} else {
|
|
yyb229 = r.CheckBreak()
|
|
}
|
|
if yyb229 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.HostPath != nil {
|
|
x.HostPath = nil
|
|
}
|
|
} else {
|
|
if x.HostPath == nil {
|
|
x.HostPath = new(HostPathVolumeSource)
|
|
}
|
|
x.HostPath.CodecDecodeSelf(d)
|
|
}
|
|
yyj229++
|
|
if yyhl229 {
|
|
yyb229 = yyj229 > l
|
|
} else {
|
|
yyb229 = r.CheckBreak()
|
|
}
|
|
if yyb229 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.Glusterfs != nil {
|
|
x.Glusterfs = nil
|
|
}
|
|
} else {
|
|
if x.Glusterfs == nil {
|
|
x.Glusterfs = new(GlusterfsVolumeSource)
|
|
}
|
|
x.Glusterfs.CodecDecodeSelf(d)
|
|
}
|
|
yyj229++
|
|
if yyhl229 {
|
|
yyb229 = yyj229 > l
|
|
} else {
|
|
yyb229 = r.CheckBreak()
|
|
}
|
|
if yyb229 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.NFS != nil {
|
|
x.NFS = nil
|
|
}
|
|
} else {
|
|
if x.NFS == nil {
|
|
x.NFS = new(NFSVolumeSource)
|
|
}
|
|
x.NFS.CodecDecodeSelf(d)
|
|
}
|
|
yyj229++
|
|
if yyhl229 {
|
|
yyb229 = yyj229 > l
|
|
} else {
|
|
yyb229 = r.CheckBreak()
|
|
}
|
|
if yyb229 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.RBD != nil {
|
|
x.RBD = nil
|
|
}
|
|
} else {
|
|
if x.RBD == nil {
|
|
x.RBD = new(RBDVolumeSource)
|
|
}
|
|
x.RBD.CodecDecodeSelf(d)
|
|
}
|
|
yyj229++
|
|
if yyhl229 {
|
|
yyb229 = yyj229 > l
|
|
} else {
|
|
yyb229 = r.CheckBreak()
|
|
}
|
|
if yyb229 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.ISCSI != nil {
|
|
x.ISCSI = nil
|
|
}
|
|
} else {
|
|
if x.ISCSI == nil {
|
|
x.ISCSI = new(ISCSIVolumeSource)
|
|
}
|
|
x.ISCSI.CodecDecodeSelf(d)
|
|
}
|
|
yyj229++
|
|
if yyhl229 {
|
|
yyb229 = yyj229 > l
|
|
} else {
|
|
yyb229 = r.CheckBreak()
|
|
}
|
|
if yyb229 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.FlexVolume != nil {
|
|
x.FlexVolume = nil
|
|
}
|
|
} else {
|
|
if x.FlexVolume == nil {
|
|
x.FlexVolume = new(FlexVolumeSource)
|
|
}
|
|
x.FlexVolume.CodecDecodeSelf(d)
|
|
}
|
|
yyj229++
|
|
if yyhl229 {
|
|
yyb229 = yyj229 > l
|
|
} else {
|
|
yyb229 = r.CheckBreak()
|
|
}
|
|
if yyb229 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.Cinder != nil {
|
|
x.Cinder = nil
|
|
}
|
|
} else {
|
|
if x.Cinder == nil {
|
|
x.Cinder = new(CinderVolumeSource)
|
|
}
|
|
x.Cinder.CodecDecodeSelf(d)
|
|
}
|
|
yyj229++
|
|
if yyhl229 {
|
|
yyb229 = yyj229 > l
|
|
} else {
|
|
yyb229 = r.CheckBreak()
|
|
}
|
|
if yyb229 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.CephFS != nil {
|
|
x.CephFS = nil
|
|
}
|
|
} else {
|
|
if x.CephFS == nil {
|
|
x.CephFS = new(CephFSVolumeSource)
|
|
}
|
|
x.CephFS.CodecDecodeSelf(d)
|
|
}
|
|
yyj229++
|
|
if yyhl229 {
|
|
yyb229 = yyj229 > l
|
|
} else {
|
|
yyb229 = r.CheckBreak()
|
|
}
|
|
if yyb229 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.FC != nil {
|
|
x.FC = nil
|
|
}
|
|
} else {
|
|
if x.FC == nil {
|
|
x.FC = new(FCVolumeSource)
|
|
}
|
|
x.FC.CodecDecodeSelf(d)
|
|
}
|
|
yyj229++
|
|
if yyhl229 {
|
|
yyb229 = yyj229 > l
|
|
} else {
|
|
yyb229 = r.CheckBreak()
|
|
}
|
|
if yyb229 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.Flocker != nil {
|
|
x.Flocker = nil
|
|
}
|
|
} else {
|
|
if x.Flocker == nil {
|
|
x.Flocker = new(FlockerVolumeSource)
|
|
}
|
|
x.Flocker.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj229++
|
|
if yyhl229 {
|
|
yyb229 = yyj229 > l
|
|
} else {
|
|
yyb229 = r.CheckBreak()
|
|
}
|
|
if yyb229 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj229-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *PersistentVolumeClaimVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym242 := z.EncBinary()
|
|
_ = yym242
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep243 := !z.EncBinary()
|
|
yy2arr243 := z.EncBasicHandle().StructToArray
|
|
var yyq243 [2]bool
|
|
_, _, _ = yysep243, yyq243, yy2arr243
|
|
const yyr243 bool = false
|
|
yyq243[1] = x.ReadOnly != false
|
|
var yynn243 int
|
|
if yyr243 || yy2arr243 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn243 = 1
|
|
for _, b := range yyq243 {
|
|
if b {
|
|
yynn243++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn243)
|
|
yynn243 = 0
|
|
}
|
|
if yyr243 || yy2arr243 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym245 := z.EncBinary()
|
|
_ = yym245
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ClaimName))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("claimName"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym246 := z.EncBinary()
|
|
_ = yym246
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ClaimName))
|
|
}
|
|
}
|
|
if yyr243 || yy2arr243 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq243[1] {
|
|
yym248 := z.EncBinary()
|
|
_ = yym248
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq243[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym249 := z.EncBinary()
|
|
_ = yym249
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
}
|
|
}
|
|
if yyr243 || yy2arr243 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PersistentVolumeClaimVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym250 := z.DecBinary()
|
|
_ = yym250
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct251 := r.ContainerType()
|
|
if yyct251 == codecSelferValueTypeMap1234 {
|
|
yyl251 := r.ReadMapStart()
|
|
if yyl251 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl251, d)
|
|
}
|
|
} else if yyct251 == codecSelferValueTypeArray1234 {
|
|
yyl251 := r.ReadArrayStart()
|
|
if yyl251 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl251, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PersistentVolumeClaimVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys252Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys252Slc
|
|
var yyhl252 bool = l >= 0
|
|
for yyj252 := 0; ; yyj252++ {
|
|
if yyhl252 {
|
|
if yyj252 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys252Slc = r.DecodeBytes(yys252Slc, true, true)
|
|
yys252 := string(yys252Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys252 {
|
|
case "claimName":
|
|
if r.TryDecodeAsNil() {
|
|
x.ClaimName = ""
|
|
} else {
|
|
x.ClaimName = string(r.DecodeString())
|
|
}
|
|
case "readOnly":
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys252)
|
|
} // end switch yys252
|
|
} // end for yyj252
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *PersistentVolumeClaimVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj255 int
|
|
var yyb255 bool
|
|
var yyhl255 bool = l >= 0
|
|
yyj255++
|
|
if yyhl255 {
|
|
yyb255 = yyj255 > l
|
|
} else {
|
|
yyb255 = r.CheckBreak()
|
|
}
|
|
if yyb255 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ClaimName = ""
|
|
} else {
|
|
x.ClaimName = string(r.DecodeString())
|
|
}
|
|
yyj255++
|
|
if yyhl255 {
|
|
yyb255 = yyj255 > l
|
|
} else {
|
|
yyb255 = r.CheckBreak()
|
|
}
|
|
if yyb255 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
for {
|
|
yyj255++
|
|
if yyhl255 {
|
|
yyb255 = yyj255 > l
|
|
} else {
|
|
yyb255 = r.CheckBreak()
|
|
}
|
|
if yyb255 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj255-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *PersistentVolume) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym258 := z.EncBinary()
|
|
_ = yym258
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep259 := !z.EncBinary()
|
|
yy2arr259 := z.EncBasicHandle().StructToArray
|
|
var yyq259 [5]bool
|
|
_, _, _ = yysep259, yyq259, yy2arr259
|
|
const yyr259 bool = false
|
|
yyq259[0] = x.Kind != ""
|
|
yyq259[1] = x.APIVersion != ""
|
|
yyq259[2] = true
|
|
yyq259[3] = true
|
|
yyq259[4] = true
|
|
var yynn259 int
|
|
if yyr259 || yy2arr259 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn259 = 0
|
|
for _, b := range yyq259 {
|
|
if b {
|
|
yynn259++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn259)
|
|
yynn259 = 0
|
|
}
|
|
if yyr259 || yy2arr259 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq259[0] {
|
|
yym261 := z.EncBinary()
|
|
_ = yym261
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq259[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym262 := z.EncBinary()
|
|
_ = yym262
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr259 || yy2arr259 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq259[1] {
|
|
yym264 := z.EncBinary()
|
|
_ = yym264
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq259[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym265 := z.EncBinary()
|
|
_ = yym265
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr259 || yy2arr259 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq259[2] {
|
|
yy267 := &x.ObjectMeta
|
|
yy267.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq259[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy268 := &x.ObjectMeta
|
|
yy268.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr259 || yy2arr259 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq259[3] {
|
|
yy270 := &x.Spec
|
|
yy270.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq259[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("spec"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy271 := &x.Spec
|
|
yy271.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr259 || yy2arr259 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq259[4] {
|
|
yy273 := &x.Status
|
|
yy273.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq259[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("status"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy274 := &x.Status
|
|
yy274.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr259 || yy2arr259 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PersistentVolume) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym275 := z.DecBinary()
|
|
_ = yym275
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct276 := r.ContainerType()
|
|
if yyct276 == codecSelferValueTypeMap1234 {
|
|
yyl276 := r.ReadMapStart()
|
|
if yyl276 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl276, d)
|
|
}
|
|
} else if yyct276 == codecSelferValueTypeArray1234 {
|
|
yyl276 := r.ReadArrayStart()
|
|
if yyl276 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl276, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PersistentVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys277Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys277Slc
|
|
var yyhl277 bool = l >= 0
|
|
for yyj277 := 0; ; yyj277++ {
|
|
if yyhl277 {
|
|
if yyj277 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys277Slc = r.DecodeBytes(yys277Slc, true, true)
|
|
yys277 := string(yys277Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys277 {
|
|
case "kind":
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
case "apiVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
case "metadata":
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv280 := &x.ObjectMeta
|
|
yyv280.CodecDecodeSelf(d)
|
|
}
|
|
case "spec":
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = PersistentVolumeSpec{}
|
|
} else {
|
|
yyv281 := &x.Spec
|
|
yyv281.CodecDecodeSelf(d)
|
|
}
|
|
case "status":
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = PersistentVolumeStatus{}
|
|
} else {
|
|
yyv282 := &x.Status
|
|
yyv282.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys277)
|
|
} // end switch yys277
|
|
} // end for yyj277
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *PersistentVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj283 int
|
|
var yyb283 bool
|
|
var yyhl283 bool = l >= 0
|
|
yyj283++
|
|
if yyhl283 {
|
|
yyb283 = yyj283 > l
|
|
} else {
|
|
yyb283 = r.CheckBreak()
|
|
}
|
|
if yyb283 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj283++
|
|
if yyhl283 {
|
|
yyb283 = yyj283 > l
|
|
} else {
|
|
yyb283 = r.CheckBreak()
|
|
}
|
|
if yyb283 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj283++
|
|
if yyhl283 {
|
|
yyb283 = yyj283 > l
|
|
} else {
|
|
yyb283 = r.CheckBreak()
|
|
}
|
|
if yyb283 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv286 := &x.ObjectMeta
|
|
yyv286.CodecDecodeSelf(d)
|
|
}
|
|
yyj283++
|
|
if yyhl283 {
|
|
yyb283 = yyj283 > l
|
|
} else {
|
|
yyb283 = r.CheckBreak()
|
|
}
|
|
if yyb283 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = PersistentVolumeSpec{}
|
|
} else {
|
|
yyv287 := &x.Spec
|
|
yyv287.CodecDecodeSelf(d)
|
|
}
|
|
yyj283++
|
|
if yyhl283 {
|
|
yyb283 = yyj283 > l
|
|
} else {
|
|
yyb283 = r.CheckBreak()
|
|
}
|
|
if yyb283 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = PersistentVolumeStatus{}
|
|
} else {
|
|
yyv288 := &x.Status
|
|
yyv288.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj283++
|
|
if yyhl283 {
|
|
yyb283 = yyj283 > l
|
|
} else {
|
|
yyb283 = r.CheckBreak()
|
|
}
|
|
if yyb283 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj283-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym289 := z.EncBinary()
|
|
_ = yym289
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep290 := !z.EncBinary()
|
|
yy2arr290 := z.EncBasicHandle().StructToArray
|
|
var yyq290 [16]bool
|
|
_, _, _ = yysep290, yyq290, yy2arr290
|
|
const yyr290 bool = false
|
|
yyq290[1] = x.PersistentVolumeSource.GCEPersistentDisk != nil && x.GCEPersistentDisk != nil
|
|
yyq290[2] = x.PersistentVolumeSource.AWSElasticBlockStore != nil && x.AWSElasticBlockStore != nil
|
|
yyq290[3] = x.PersistentVolumeSource.HostPath != nil && x.HostPath != nil
|
|
yyq290[4] = x.PersistentVolumeSource.Glusterfs != nil && x.Glusterfs != nil
|
|
yyq290[5] = x.PersistentVolumeSource.NFS != nil && x.NFS != nil
|
|
yyq290[6] = x.PersistentVolumeSource.RBD != nil && x.RBD != nil
|
|
yyq290[7] = x.PersistentVolumeSource.ISCSI != nil && x.ISCSI != nil
|
|
yyq290[8] = x.PersistentVolumeSource.FlexVolume != nil && x.FlexVolume != nil
|
|
yyq290[9] = x.PersistentVolumeSource.Cinder != nil && x.Cinder != nil
|
|
yyq290[10] = x.PersistentVolumeSource.CephFS != nil && x.CephFS != nil
|
|
yyq290[11] = x.PersistentVolumeSource.FC != nil && x.FC != nil
|
|
yyq290[12] = x.PersistentVolumeSource.Flocker != nil && x.Flocker != nil
|
|
yyq290[13] = len(x.AccessModes) != 0
|
|
yyq290[14] = x.ClaimRef != nil
|
|
yyq290[15] = x.PersistentVolumeReclaimPolicy != ""
|
|
var yynn290 int
|
|
if yyr290 || yy2arr290 {
|
|
r.EncodeArrayStart(16)
|
|
} else {
|
|
yynn290 = 1
|
|
for _, b := range yyq290 {
|
|
if b {
|
|
yynn290++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn290)
|
|
yynn290 = 0
|
|
}
|
|
if yyr290 || yy2arr290 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Capacity == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Capacity.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("capacity"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Capacity == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Capacity.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
var yyn292 bool
|
|
if x.PersistentVolumeSource.GCEPersistentDisk == nil {
|
|
yyn292 = true
|
|
goto LABEL292
|
|
}
|
|
LABEL292:
|
|
if yyr290 || yy2arr290 {
|
|
if yyn292 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq290[1] {
|
|
if x.GCEPersistentDisk == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.GCEPersistentDisk.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq290[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn292 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.GCEPersistentDisk == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.GCEPersistentDisk.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn293 bool
|
|
if x.PersistentVolumeSource.AWSElasticBlockStore == nil {
|
|
yyn293 = true
|
|
goto LABEL293
|
|
}
|
|
LABEL293:
|
|
if yyr290 || yy2arr290 {
|
|
if yyn293 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq290[2] {
|
|
if x.AWSElasticBlockStore == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.AWSElasticBlockStore.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq290[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn293 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.AWSElasticBlockStore == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.AWSElasticBlockStore.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn294 bool
|
|
if x.PersistentVolumeSource.HostPath == nil {
|
|
yyn294 = true
|
|
goto LABEL294
|
|
}
|
|
LABEL294:
|
|
if yyr290 || yy2arr290 {
|
|
if yyn294 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq290[3] {
|
|
if x.HostPath == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.HostPath.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq290[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("hostPath"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn294 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.HostPath == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.HostPath.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn295 bool
|
|
if x.PersistentVolumeSource.Glusterfs == nil {
|
|
yyn295 = true
|
|
goto LABEL295
|
|
}
|
|
LABEL295:
|
|
if yyr290 || yy2arr290 {
|
|
if yyn295 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq290[4] {
|
|
if x.Glusterfs == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Glusterfs.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq290[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("glusterfs"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn295 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.Glusterfs == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Glusterfs.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn296 bool
|
|
if x.PersistentVolumeSource.NFS == nil {
|
|
yyn296 = true
|
|
goto LABEL296
|
|
}
|
|
LABEL296:
|
|
if yyr290 || yy2arr290 {
|
|
if yyn296 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq290[5] {
|
|
if x.NFS == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.NFS.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq290[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("nfs"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn296 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.NFS == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.NFS.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn297 bool
|
|
if x.PersistentVolumeSource.RBD == nil {
|
|
yyn297 = true
|
|
goto LABEL297
|
|
}
|
|
LABEL297:
|
|
if yyr290 || yy2arr290 {
|
|
if yyn297 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq290[6] {
|
|
if x.RBD == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.RBD.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq290[6] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("rbd"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn297 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.RBD == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.RBD.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn298 bool
|
|
if x.PersistentVolumeSource.ISCSI == nil {
|
|
yyn298 = true
|
|
goto LABEL298
|
|
}
|
|
LABEL298:
|
|
if yyr290 || yy2arr290 {
|
|
if yyn298 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq290[7] {
|
|
if x.ISCSI == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.ISCSI.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq290[7] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("iscsi"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn298 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.ISCSI == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.ISCSI.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn299 bool
|
|
if x.PersistentVolumeSource.FlexVolume == nil {
|
|
yyn299 = true
|
|
goto LABEL299
|
|
}
|
|
LABEL299:
|
|
if yyr290 || yy2arr290 {
|
|
if yyn299 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq290[8] {
|
|
if x.FlexVolume == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.FlexVolume.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq290[8] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("flexVolume"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn299 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.FlexVolume == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.FlexVolume.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn300 bool
|
|
if x.PersistentVolumeSource.Cinder == nil {
|
|
yyn300 = true
|
|
goto LABEL300
|
|
}
|
|
LABEL300:
|
|
if yyr290 || yy2arr290 {
|
|
if yyn300 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq290[9] {
|
|
if x.Cinder == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Cinder.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq290[9] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("cinder"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn300 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.Cinder == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Cinder.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn301 bool
|
|
if x.PersistentVolumeSource.CephFS == nil {
|
|
yyn301 = true
|
|
goto LABEL301
|
|
}
|
|
LABEL301:
|
|
if yyr290 || yy2arr290 {
|
|
if yyn301 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq290[10] {
|
|
if x.CephFS == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.CephFS.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq290[10] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("cephfs"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn301 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.CephFS == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.CephFS.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn302 bool
|
|
if x.PersistentVolumeSource.FC == nil {
|
|
yyn302 = true
|
|
goto LABEL302
|
|
}
|
|
LABEL302:
|
|
if yyr290 || yy2arr290 {
|
|
if yyn302 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq290[11] {
|
|
if x.FC == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.FC.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq290[11] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("fc"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn302 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.FC == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.FC.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn303 bool
|
|
if x.PersistentVolumeSource.Flocker == nil {
|
|
yyn303 = true
|
|
goto LABEL303
|
|
}
|
|
LABEL303:
|
|
if yyr290 || yy2arr290 {
|
|
if yyn303 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq290[12] {
|
|
if x.Flocker == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Flocker.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq290[12] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("flocker"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn303 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.Flocker == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Flocker.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr290 || yy2arr290 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq290[13] {
|
|
if x.AccessModes == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym305 := z.EncBinary()
|
|
_ = yym305
|
|
if false {
|
|
} else {
|
|
h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq290[13] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("accessModes"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.AccessModes == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym306 := z.EncBinary()
|
|
_ = yym306
|
|
if false {
|
|
} else {
|
|
h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr290 || yy2arr290 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq290[14] {
|
|
if x.ClaimRef == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.ClaimRef.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq290[14] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("claimRef"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.ClaimRef == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.ClaimRef.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr290 || yy2arr290 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq290[15] {
|
|
x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq290[15] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeReclaimPolicy"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr290 || yy2arr290 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PersistentVolumeSpec) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym309 := z.DecBinary()
|
|
_ = yym309
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct310 := r.ContainerType()
|
|
if yyct310 == codecSelferValueTypeMap1234 {
|
|
yyl310 := r.ReadMapStart()
|
|
if yyl310 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl310, d)
|
|
}
|
|
} else if yyct310 == codecSelferValueTypeArray1234 {
|
|
yyl310 := r.ReadArrayStart()
|
|
if yyl310 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl310, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PersistentVolumeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys311Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys311Slc
|
|
var yyhl311 bool = l >= 0
|
|
for yyj311 := 0; ; yyj311++ {
|
|
if yyhl311 {
|
|
if yyj311 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys311Slc = r.DecodeBytes(yys311Slc, true, true)
|
|
yys311 := string(yys311Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys311 {
|
|
case "capacity":
|
|
if r.TryDecodeAsNil() {
|
|
x.Capacity = nil
|
|
} else {
|
|
yyv312 := &x.Capacity
|
|
yyv312.CodecDecodeSelf(d)
|
|
}
|
|
case "gcePersistentDisk":
|
|
if x.PersistentVolumeSource.GCEPersistentDisk == nil {
|
|
x.PersistentVolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.GCEPersistentDisk != nil {
|
|
x.GCEPersistentDisk = nil
|
|
}
|
|
} else {
|
|
if x.GCEPersistentDisk == nil {
|
|
x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
|
|
}
|
|
x.GCEPersistentDisk.CodecDecodeSelf(d)
|
|
}
|
|
case "awsElasticBlockStore":
|
|
if x.PersistentVolumeSource.AWSElasticBlockStore == nil {
|
|
x.PersistentVolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.AWSElasticBlockStore != nil {
|
|
x.AWSElasticBlockStore = nil
|
|
}
|
|
} else {
|
|
if x.AWSElasticBlockStore == nil {
|
|
x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
|
|
}
|
|
x.AWSElasticBlockStore.CodecDecodeSelf(d)
|
|
}
|
|
case "hostPath":
|
|
if x.PersistentVolumeSource.HostPath == nil {
|
|
x.PersistentVolumeSource.HostPath = new(HostPathVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.HostPath != nil {
|
|
x.HostPath = nil
|
|
}
|
|
} else {
|
|
if x.HostPath == nil {
|
|
x.HostPath = new(HostPathVolumeSource)
|
|
}
|
|
x.HostPath.CodecDecodeSelf(d)
|
|
}
|
|
case "glusterfs":
|
|
if x.PersistentVolumeSource.Glusterfs == nil {
|
|
x.PersistentVolumeSource.Glusterfs = new(GlusterfsVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.Glusterfs != nil {
|
|
x.Glusterfs = nil
|
|
}
|
|
} else {
|
|
if x.Glusterfs == nil {
|
|
x.Glusterfs = new(GlusterfsVolumeSource)
|
|
}
|
|
x.Glusterfs.CodecDecodeSelf(d)
|
|
}
|
|
case "nfs":
|
|
if x.PersistentVolumeSource.NFS == nil {
|
|
x.PersistentVolumeSource.NFS = new(NFSVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.NFS != nil {
|
|
x.NFS = nil
|
|
}
|
|
} else {
|
|
if x.NFS == nil {
|
|
x.NFS = new(NFSVolumeSource)
|
|
}
|
|
x.NFS.CodecDecodeSelf(d)
|
|
}
|
|
case "rbd":
|
|
if x.PersistentVolumeSource.RBD == nil {
|
|
x.PersistentVolumeSource.RBD = new(RBDVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.RBD != nil {
|
|
x.RBD = nil
|
|
}
|
|
} else {
|
|
if x.RBD == nil {
|
|
x.RBD = new(RBDVolumeSource)
|
|
}
|
|
x.RBD.CodecDecodeSelf(d)
|
|
}
|
|
case "iscsi":
|
|
if x.PersistentVolumeSource.ISCSI == nil {
|
|
x.PersistentVolumeSource.ISCSI = new(ISCSIVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.ISCSI != nil {
|
|
x.ISCSI = nil
|
|
}
|
|
} else {
|
|
if x.ISCSI == nil {
|
|
x.ISCSI = new(ISCSIVolumeSource)
|
|
}
|
|
x.ISCSI.CodecDecodeSelf(d)
|
|
}
|
|
case "flexVolume":
|
|
if x.PersistentVolumeSource.FlexVolume == nil {
|
|
x.PersistentVolumeSource.FlexVolume = new(FlexVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.FlexVolume != nil {
|
|
x.FlexVolume = nil
|
|
}
|
|
} else {
|
|
if x.FlexVolume == nil {
|
|
x.FlexVolume = new(FlexVolumeSource)
|
|
}
|
|
x.FlexVolume.CodecDecodeSelf(d)
|
|
}
|
|
case "cinder":
|
|
if x.PersistentVolumeSource.Cinder == nil {
|
|
x.PersistentVolumeSource.Cinder = new(CinderVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.Cinder != nil {
|
|
x.Cinder = nil
|
|
}
|
|
} else {
|
|
if x.Cinder == nil {
|
|
x.Cinder = new(CinderVolumeSource)
|
|
}
|
|
x.Cinder.CodecDecodeSelf(d)
|
|
}
|
|
case "cephfs":
|
|
if x.PersistentVolumeSource.CephFS == nil {
|
|
x.PersistentVolumeSource.CephFS = new(CephFSVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.CephFS != nil {
|
|
x.CephFS = nil
|
|
}
|
|
} else {
|
|
if x.CephFS == nil {
|
|
x.CephFS = new(CephFSVolumeSource)
|
|
}
|
|
x.CephFS.CodecDecodeSelf(d)
|
|
}
|
|
case "fc":
|
|
if x.PersistentVolumeSource.FC == nil {
|
|
x.PersistentVolumeSource.FC = new(FCVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.FC != nil {
|
|
x.FC = nil
|
|
}
|
|
} else {
|
|
if x.FC == nil {
|
|
x.FC = new(FCVolumeSource)
|
|
}
|
|
x.FC.CodecDecodeSelf(d)
|
|
}
|
|
case "flocker":
|
|
if x.PersistentVolumeSource.Flocker == nil {
|
|
x.PersistentVolumeSource.Flocker = new(FlockerVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.Flocker != nil {
|
|
x.Flocker = nil
|
|
}
|
|
} else {
|
|
if x.Flocker == nil {
|
|
x.Flocker = new(FlockerVolumeSource)
|
|
}
|
|
x.Flocker.CodecDecodeSelf(d)
|
|
}
|
|
case "accessModes":
|
|
if r.TryDecodeAsNil() {
|
|
x.AccessModes = nil
|
|
} else {
|
|
yyv325 := &x.AccessModes
|
|
yym326 := z.DecBinary()
|
|
_ = yym326
|
|
if false {
|
|
} else {
|
|
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv325), d)
|
|
}
|
|
}
|
|
case "claimRef":
|
|
if r.TryDecodeAsNil() {
|
|
if x.ClaimRef != nil {
|
|
x.ClaimRef = nil
|
|
}
|
|
} else {
|
|
if x.ClaimRef == nil {
|
|
x.ClaimRef = new(ObjectReference)
|
|
}
|
|
x.ClaimRef.CodecDecodeSelf(d)
|
|
}
|
|
case "persistentVolumeReclaimPolicy":
|
|
if r.TryDecodeAsNil() {
|
|
x.PersistentVolumeReclaimPolicy = ""
|
|
} else {
|
|
x.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimPolicy(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys311)
|
|
} // end switch yys311
|
|
} // end for yyj311
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj329 int
|
|
var yyb329 bool
|
|
var yyhl329 bool = l >= 0
|
|
yyj329++
|
|
if yyhl329 {
|
|
yyb329 = yyj329 > l
|
|
} else {
|
|
yyb329 = r.CheckBreak()
|
|
}
|
|
if yyb329 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Capacity = nil
|
|
} else {
|
|
yyv330 := &x.Capacity
|
|
yyv330.CodecDecodeSelf(d)
|
|
}
|
|
if x.PersistentVolumeSource.GCEPersistentDisk == nil {
|
|
x.PersistentVolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
|
|
}
|
|
yyj329++
|
|
if yyhl329 {
|
|
yyb329 = yyj329 > l
|
|
} else {
|
|
yyb329 = r.CheckBreak()
|
|
}
|
|
if yyb329 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.GCEPersistentDisk != nil {
|
|
x.GCEPersistentDisk = nil
|
|
}
|
|
} else {
|
|
if x.GCEPersistentDisk == nil {
|
|
x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
|
|
}
|
|
x.GCEPersistentDisk.CodecDecodeSelf(d)
|
|
}
|
|
if x.PersistentVolumeSource.AWSElasticBlockStore == nil {
|
|
x.PersistentVolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
|
|
}
|
|
yyj329++
|
|
if yyhl329 {
|
|
yyb329 = yyj329 > l
|
|
} else {
|
|
yyb329 = r.CheckBreak()
|
|
}
|
|
if yyb329 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.AWSElasticBlockStore != nil {
|
|
x.AWSElasticBlockStore = nil
|
|
}
|
|
} else {
|
|
if x.AWSElasticBlockStore == nil {
|
|
x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
|
|
}
|
|
x.AWSElasticBlockStore.CodecDecodeSelf(d)
|
|
}
|
|
if x.PersistentVolumeSource.HostPath == nil {
|
|
x.PersistentVolumeSource.HostPath = new(HostPathVolumeSource)
|
|
}
|
|
yyj329++
|
|
if yyhl329 {
|
|
yyb329 = yyj329 > l
|
|
} else {
|
|
yyb329 = r.CheckBreak()
|
|
}
|
|
if yyb329 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.HostPath != nil {
|
|
x.HostPath = nil
|
|
}
|
|
} else {
|
|
if x.HostPath == nil {
|
|
x.HostPath = new(HostPathVolumeSource)
|
|
}
|
|
x.HostPath.CodecDecodeSelf(d)
|
|
}
|
|
if x.PersistentVolumeSource.Glusterfs == nil {
|
|
x.PersistentVolumeSource.Glusterfs = new(GlusterfsVolumeSource)
|
|
}
|
|
yyj329++
|
|
if yyhl329 {
|
|
yyb329 = yyj329 > l
|
|
} else {
|
|
yyb329 = r.CheckBreak()
|
|
}
|
|
if yyb329 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.Glusterfs != nil {
|
|
x.Glusterfs = nil
|
|
}
|
|
} else {
|
|
if x.Glusterfs == nil {
|
|
x.Glusterfs = new(GlusterfsVolumeSource)
|
|
}
|
|
x.Glusterfs.CodecDecodeSelf(d)
|
|
}
|
|
if x.PersistentVolumeSource.NFS == nil {
|
|
x.PersistentVolumeSource.NFS = new(NFSVolumeSource)
|
|
}
|
|
yyj329++
|
|
if yyhl329 {
|
|
yyb329 = yyj329 > l
|
|
} else {
|
|
yyb329 = r.CheckBreak()
|
|
}
|
|
if yyb329 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.NFS != nil {
|
|
x.NFS = nil
|
|
}
|
|
} else {
|
|
if x.NFS == nil {
|
|
x.NFS = new(NFSVolumeSource)
|
|
}
|
|
x.NFS.CodecDecodeSelf(d)
|
|
}
|
|
if x.PersistentVolumeSource.RBD == nil {
|
|
x.PersistentVolumeSource.RBD = new(RBDVolumeSource)
|
|
}
|
|
yyj329++
|
|
if yyhl329 {
|
|
yyb329 = yyj329 > l
|
|
} else {
|
|
yyb329 = r.CheckBreak()
|
|
}
|
|
if yyb329 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.RBD != nil {
|
|
x.RBD = nil
|
|
}
|
|
} else {
|
|
if x.RBD == nil {
|
|
x.RBD = new(RBDVolumeSource)
|
|
}
|
|
x.RBD.CodecDecodeSelf(d)
|
|
}
|
|
if x.PersistentVolumeSource.ISCSI == nil {
|
|
x.PersistentVolumeSource.ISCSI = new(ISCSIVolumeSource)
|
|
}
|
|
yyj329++
|
|
if yyhl329 {
|
|
yyb329 = yyj329 > l
|
|
} else {
|
|
yyb329 = r.CheckBreak()
|
|
}
|
|
if yyb329 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.ISCSI != nil {
|
|
x.ISCSI = nil
|
|
}
|
|
} else {
|
|
if x.ISCSI == nil {
|
|
x.ISCSI = new(ISCSIVolumeSource)
|
|
}
|
|
x.ISCSI.CodecDecodeSelf(d)
|
|
}
|
|
if x.PersistentVolumeSource.FlexVolume == nil {
|
|
x.PersistentVolumeSource.FlexVolume = new(FlexVolumeSource)
|
|
}
|
|
yyj329++
|
|
if yyhl329 {
|
|
yyb329 = yyj329 > l
|
|
} else {
|
|
yyb329 = r.CheckBreak()
|
|
}
|
|
if yyb329 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.FlexVolume != nil {
|
|
x.FlexVolume = nil
|
|
}
|
|
} else {
|
|
if x.FlexVolume == nil {
|
|
x.FlexVolume = new(FlexVolumeSource)
|
|
}
|
|
x.FlexVolume.CodecDecodeSelf(d)
|
|
}
|
|
if x.PersistentVolumeSource.Cinder == nil {
|
|
x.PersistentVolumeSource.Cinder = new(CinderVolumeSource)
|
|
}
|
|
yyj329++
|
|
if yyhl329 {
|
|
yyb329 = yyj329 > l
|
|
} else {
|
|
yyb329 = r.CheckBreak()
|
|
}
|
|
if yyb329 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.Cinder != nil {
|
|
x.Cinder = nil
|
|
}
|
|
} else {
|
|
if x.Cinder == nil {
|
|
x.Cinder = new(CinderVolumeSource)
|
|
}
|
|
x.Cinder.CodecDecodeSelf(d)
|
|
}
|
|
if x.PersistentVolumeSource.CephFS == nil {
|
|
x.PersistentVolumeSource.CephFS = new(CephFSVolumeSource)
|
|
}
|
|
yyj329++
|
|
if yyhl329 {
|
|
yyb329 = yyj329 > l
|
|
} else {
|
|
yyb329 = r.CheckBreak()
|
|
}
|
|
if yyb329 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.CephFS != nil {
|
|
x.CephFS = nil
|
|
}
|
|
} else {
|
|
if x.CephFS == nil {
|
|
x.CephFS = new(CephFSVolumeSource)
|
|
}
|
|
x.CephFS.CodecDecodeSelf(d)
|
|
}
|
|
if x.PersistentVolumeSource.FC == nil {
|
|
x.PersistentVolumeSource.FC = new(FCVolumeSource)
|
|
}
|
|
yyj329++
|
|
if yyhl329 {
|
|
yyb329 = yyj329 > l
|
|
} else {
|
|
yyb329 = r.CheckBreak()
|
|
}
|
|
if yyb329 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.FC != nil {
|
|
x.FC = nil
|
|
}
|
|
} else {
|
|
if x.FC == nil {
|
|
x.FC = new(FCVolumeSource)
|
|
}
|
|
x.FC.CodecDecodeSelf(d)
|
|
}
|
|
if x.PersistentVolumeSource.Flocker == nil {
|
|
x.PersistentVolumeSource.Flocker = new(FlockerVolumeSource)
|
|
}
|
|
yyj329++
|
|
if yyhl329 {
|
|
yyb329 = yyj329 > l
|
|
} else {
|
|
yyb329 = r.CheckBreak()
|
|
}
|
|
if yyb329 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.Flocker != nil {
|
|
x.Flocker = nil
|
|
}
|
|
} else {
|
|
if x.Flocker == nil {
|
|
x.Flocker = new(FlockerVolumeSource)
|
|
}
|
|
x.Flocker.CodecDecodeSelf(d)
|
|
}
|
|
yyj329++
|
|
if yyhl329 {
|
|
yyb329 = yyj329 > l
|
|
} else {
|
|
yyb329 = r.CheckBreak()
|
|
}
|
|
if yyb329 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.AccessModes = nil
|
|
} else {
|
|
yyv343 := &x.AccessModes
|
|
yym344 := z.DecBinary()
|
|
_ = yym344
|
|
if false {
|
|
} else {
|
|
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv343), d)
|
|
}
|
|
}
|
|
yyj329++
|
|
if yyhl329 {
|
|
yyb329 = yyj329 > l
|
|
} else {
|
|
yyb329 = r.CheckBreak()
|
|
}
|
|
if yyb329 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.ClaimRef != nil {
|
|
x.ClaimRef = nil
|
|
}
|
|
} else {
|
|
if x.ClaimRef == nil {
|
|
x.ClaimRef = new(ObjectReference)
|
|
}
|
|
x.ClaimRef.CodecDecodeSelf(d)
|
|
}
|
|
yyj329++
|
|
if yyhl329 {
|
|
yyb329 = yyj329 > l
|
|
} else {
|
|
yyb329 = r.CheckBreak()
|
|
}
|
|
if yyb329 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.PersistentVolumeReclaimPolicy = ""
|
|
} else {
|
|
x.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimPolicy(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj329++
|
|
if yyhl329 {
|
|
yyb329 = yyj329 > l
|
|
} else {
|
|
yyb329 = r.CheckBreak()
|
|
}
|
|
if yyb329 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj329-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x PersistentVolumeReclaimPolicy) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym347 := z.EncBinary()
|
|
_ = yym347
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x))
|
|
}
|
|
}
|
|
|
|
func (x *PersistentVolumeReclaimPolicy) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym348 := z.DecBinary()
|
|
_ = yym348
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
*((*string)(x)) = r.DecodeString()
|
|
}
|
|
}
|
|
|
|
func (x *PersistentVolumeStatus) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym349 := z.EncBinary()
|
|
_ = yym349
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep350 := !z.EncBinary()
|
|
yy2arr350 := z.EncBasicHandle().StructToArray
|
|
var yyq350 [3]bool
|
|
_, _, _ = yysep350, yyq350, yy2arr350
|
|
const yyr350 bool = false
|
|
yyq350[0] = x.Phase != ""
|
|
yyq350[1] = x.Message != ""
|
|
yyq350[2] = x.Reason != ""
|
|
var yynn350 int
|
|
if yyr350 || yy2arr350 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn350 = 0
|
|
for _, b := range yyq350 {
|
|
if b {
|
|
yynn350++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn350)
|
|
yynn350 = 0
|
|
}
|
|
if yyr350 || yy2arr350 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq350[0] {
|
|
x.Phase.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq350[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("phase"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Phase.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr350 || yy2arr350 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq350[1] {
|
|
yym353 := z.EncBinary()
|
|
_ = yym353
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq350[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("message"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym354 := z.EncBinary()
|
|
_ = yym354
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
}
|
|
}
|
|
if yyr350 || yy2arr350 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq350[2] {
|
|
yym356 := z.EncBinary()
|
|
_ = yym356
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq350[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("reason"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym357 := z.EncBinary()
|
|
_ = yym357
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
|
|
}
|
|
}
|
|
}
|
|
if yyr350 || yy2arr350 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PersistentVolumeStatus) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym358 := z.DecBinary()
|
|
_ = yym358
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct359 := r.ContainerType()
|
|
if yyct359 == codecSelferValueTypeMap1234 {
|
|
yyl359 := r.ReadMapStart()
|
|
if yyl359 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl359, d)
|
|
}
|
|
} else if yyct359 == codecSelferValueTypeArray1234 {
|
|
yyl359 := r.ReadArrayStart()
|
|
if yyl359 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl359, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PersistentVolumeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys360Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys360Slc
|
|
var yyhl360 bool = l >= 0
|
|
for yyj360 := 0; ; yyj360++ {
|
|
if yyhl360 {
|
|
if yyj360 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys360Slc = r.DecodeBytes(yys360Slc, true, true)
|
|
yys360 := string(yys360Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys360 {
|
|
case "phase":
|
|
if r.TryDecodeAsNil() {
|
|
x.Phase = ""
|
|
} else {
|
|
x.Phase = PersistentVolumePhase(r.DecodeString())
|
|
}
|
|
case "message":
|
|
if r.TryDecodeAsNil() {
|
|
x.Message = ""
|
|
} else {
|
|
x.Message = string(r.DecodeString())
|
|
}
|
|
case "reason":
|
|
if r.TryDecodeAsNil() {
|
|
x.Reason = ""
|
|
} else {
|
|
x.Reason = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys360)
|
|
} // end switch yys360
|
|
} // end for yyj360
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *PersistentVolumeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj364 int
|
|
var yyb364 bool
|
|
var yyhl364 bool = l >= 0
|
|
yyj364++
|
|
if yyhl364 {
|
|
yyb364 = yyj364 > l
|
|
} else {
|
|
yyb364 = r.CheckBreak()
|
|
}
|
|
if yyb364 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Phase = ""
|
|
} else {
|
|
x.Phase = PersistentVolumePhase(r.DecodeString())
|
|
}
|
|
yyj364++
|
|
if yyhl364 {
|
|
yyb364 = yyj364 > l
|
|
} else {
|
|
yyb364 = r.CheckBreak()
|
|
}
|
|
if yyb364 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Message = ""
|
|
} else {
|
|
x.Message = string(r.DecodeString())
|
|
}
|
|
yyj364++
|
|
if yyhl364 {
|
|
yyb364 = yyj364 > l
|
|
} else {
|
|
yyb364 = r.CheckBreak()
|
|
}
|
|
if yyb364 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Reason = ""
|
|
} else {
|
|
x.Reason = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj364++
|
|
if yyhl364 {
|
|
yyb364 = yyj364 > l
|
|
} else {
|
|
yyb364 = r.CheckBreak()
|
|
}
|
|
if yyb364 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj364-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *PersistentVolumeList) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym368 := z.EncBinary()
|
|
_ = yym368
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep369 := !z.EncBinary()
|
|
yy2arr369 := z.EncBasicHandle().StructToArray
|
|
var yyq369 [4]bool
|
|
_, _, _ = yysep369, yyq369, yy2arr369
|
|
const yyr369 bool = false
|
|
yyq369[0] = x.Kind != ""
|
|
yyq369[1] = x.APIVersion != ""
|
|
yyq369[2] = true
|
|
var yynn369 int
|
|
if yyr369 || yy2arr369 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn369 = 1
|
|
for _, b := range yyq369 {
|
|
if b {
|
|
yynn369++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn369)
|
|
yynn369 = 0
|
|
}
|
|
if yyr369 || yy2arr369 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq369[0] {
|
|
yym371 := z.EncBinary()
|
|
_ = yym371
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq369[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym372 := z.EncBinary()
|
|
_ = yym372
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr369 || yy2arr369 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq369[1] {
|
|
yym374 := z.EncBinary()
|
|
_ = yym374
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq369[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym375 := z.EncBinary()
|
|
_ = yym375
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr369 || yy2arr369 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq369[2] {
|
|
yy377 := &x.ListMeta
|
|
yym378 := z.EncBinary()
|
|
_ = yym378
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy377) {
|
|
} else {
|
|
z.EncFallback(yy377)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq369[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy379 := &x.ListMeta
|
|
yym380 := z.EncBinary()
|
|
_ = yym380
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy379) {
|
|
} else {
|
|
z.EncFallback(yy379)
|
|
}
|
|
}
|
|
}
|
|
if yyr369 || yy2arr369 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym382 := z.EncBinary()
|
|
_ = yym382
|
|
if false {
|
|
} else {
|
|
h.encSlicePersistentVolume(([]PersistentVolume)(x.Items), e)
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("items"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym383 := z.EncBinary()
|
|
_ = yym383
|
|
if false {
|
|
} else {
|
|
h.encSlicePersistentVolume(([]PersistentVolume)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr369 || yy2arr369 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PersistentVolumeList) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym384 := z.DecBinary()
|
|
_ = yym384
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct385 := r.ContainerType()
|
|
if yyct385 == codecSelferValueTypeMap1234 {
|
|
yyl385 := r.ReadMapStart()
|
|
if yyl385 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl385, d)
|
|
}
|
|
} else if yyct385 == codecSelferValueTypeArray1234 {
|
|
yyl385 := r.ReadArrayStart()
|
|
if yyl385 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl385, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PersistentVolumeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys386Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys386Slc
|
|
var yyhl386 bool = l >= 0
|
|
for yyj386 := 0; ; yyj386++ {
|
|
if yyhl386 {
|
|
if yyj386 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys386Slc = r.DecodeBytes(yys386Slc, true, true)
|
|
yys386 := string(yys386Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys386 {
|
|
case "kind":
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
case "apiVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
case "metadata":
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv389 := &x.ListMeta
|
|
yym390 := z.DecBinary()
|
|
_ = yym390
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv389) {
|
|
} else {
|
|
z.DecFallback(yyv389, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv391 := &x.Items
|
|
yym392 := z.DecBinary()
|
|
_ = yym392
|
|
if false {
|
|
} else {
|
|
h.decSlicePersistentVolume((*[]PersistentVolume)(yyv391), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys386)
|
|
} // end switch yys386
|
|
} // end for yyj386
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *PersistentVolumeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj393 int
|
|
var yyb393 bool
|
|
var yyhl393 bool = l >= 0
|
|
yyj393++
|
|
if yyhl393 {
|
|
yyb393 = yyj393 > l
|
|
} else {
|
|
yyb393 = r.CheckBreak()
|
|
}
|
|
if yyb393 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj393++
|
|
if yyhl393 {
|
|
yyb393 = yyj393 > l
|
|
} else {
|
|
yyb393 = r.CheckBreak()
|
|
}
|
|
if yyb393 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj393++
|
|
if yyhl393 {
|
|
yyb393 = yyj393 > l
|
|
} else {
|
|
yyb393 = r.CheckBreak()
|
|
}
|
|
if yyb393 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv396 := &x.ListMeta
|
|
yym397 := z.DecBinary()
|
|
_ = yym397
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv396) {
|
|
} else {
|
|
z.DecFallback(yyv396, false)
|
|
}
|
|
}
|
|
yyj393++
|
|
if yyhl393 {
|
|
yyb393 = yyj393 > l
|
|
} else {
|
|
yyb393 = r.CheckBreak()
|
|
}
|
|
if yyb393 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv398 := &x.Items
|
|
yym399 := z.DecBinary()
|
|
_ = yym399
|
|
if false {
|
|
} else {
|
|
h.decSlicePersistentVolume((*[]PersistentVolume)(yyv398), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj393++
|
|
if yyhl393 {
|
|
yyb393 = yyj393 > l
|
|
} else {
|
|
yyb393 = r.CheckBreak()
|
|
}
|
|
if yyb393 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj393-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *PersistentVolumeClaim) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym400 := z.EncBinary()
|
|
_ = yym400
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep401 := !z.EncBinary()
|
|
yy2arr401 := z.EncBasicHandle().StructToArray
|
|
var yyq401 [5]bool
|
|
_, _, _ = yysep401, yyq401, yy2arr401
|
|
const yyr401 bool = false
|
|
yyq401[0] = x.Kind != ""
|
|
yyq401[1] = x.APIVersion != ""
|
|
yyq401[2] = true
|
|
yyq401[3] = true
|
|
yyq401[4] = true
|
|
var yynn401 int
|
|
if yyr401 || yy2arr401 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn401 = 0
|
|
for _, b := range yyq401 {
|
|
if b {
|
|
yynn401++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn401)
|
|
yynn401 = 0
|
|
}
|
|
if yyr401 || yy2arr401 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq401[0] {
|
|
yym403 := z.EncBinary()
|
|
_ = yym403
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq401[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym404 := z.EncBinary()
|
|
_ = yym404
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr401 || yy2arr401 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq401[1] {
|
|
yym406 := z.EncBinary()
|
|
_ = yym406
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq401[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym407 := z.EncBinary()
|
|
_ = yym407
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr401 || yy2arr401 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq401[2] {
|
|
yy409 := &x.ObjectMeta
|
|
yy409.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq401[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy410 := &x.ObjectMeta
|
|
yy410.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr401 || yy2arr401 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq401[3] {
|
|
yy412 := &x.Spec
|
|
yy412.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq401[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("spec"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy413 := &x.Spec
|
|
yy413.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr401 || yy2arr401 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq401[4] {
|
|
yy415 := &x.Status
|
|
yy415.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq401[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("status"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy416 := &x.Status
|
|
yy416.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr401 || yy2arr401 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PersistentVolumeClaim) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym417 := z.DecBinary()
|
|
_ = yym417
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct418 := r.ContainerType()
|
|
if yyct418 == codecSelferValueTypeMap1234 {
|
|
yyl418 := r.ReadMapStart()
|
|
if yyl418 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl418, d)
|
|
}
|
|
} else if yyct418 == codecSelferValueTypeArray1234 {
|
|
yyl418 := r.ReadArrayStart()
|
|
if yyl418 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl418, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PersistentVolumeClaim) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys419Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys419Slc
|
|
var yyhl419 bool = l >= 0
|
|
for yyj419 := 0; ; yyj419++ {
|
|
if yyhl419 {
|
|
if yyj419 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys419Slc = r.DecodeBytes(yys419Slc, true, true)
|
|
yys419 := string(yys419Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys419 {
|
|
case "kind":
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
case "apiVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
case "metadata":
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv422 := &x.ObjectMeta
|
|
yyv422.CodecDecodeSelf(d)
|
|
}
|
|
case "spec":
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = PersistentVolumeClaimSpec{}
|
|
} else {
|
|
yyv423 := &x.Spec
|
|
yyv423.CodecDecodeSelf(d)
|
|
}
|
|
case "status":
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = PersistentVolumeClaimStatus{}
|
|
} else {
|
|
yyv424 := &x.Status
|
|
yyv424.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys419)
|
|
} // end switch yys419
|
|
} // end for yyj419
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *PersistentVolumeClaim) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj425 int
|
|
var yyb425 bool
|
|
var yyhl425 bool = l >= 0
|
|
yyj425++
|
|
if yyhl425 {
|
|
yyb425 = yyj425 > l
|
|
} else {
|
|
yyb425 = r.CheckBreak()
|
|
}
|
|
if yyb425 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj425++
|
|
if yyhl425 {
|
|
yyb425 = yyj425 > l
|
|
} else {
|
|
yyb425 = r.CheckBreak()
|
|
}
|
|
if yyb425 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj425++
|
|
if yyhl425 {
|
|
yyb425 = yyj425 > l
|
|
} else {
|
|
yyb425 = r.CheckBreak()
|
|
}
|
|
if yyb425 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv428 := &x.ObjectMeta
|
|
yyv428.CodecDecodeSelf(d)
|
|
}
|
|
yyj425++
|
|
if yyhl425 {
|
|
yyb425 = yyj425 > l
|
|
} else {
|
|
yyb425 = r.CheckBreak()
|
|
}
|
|
if yyb425 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = PersistentVolumeClaimSpec{}
|
|
} else {
|
|
yyv429 := &x.Spec
|
|
yyv429.CodecDecodeSelf(d)
|
|
}
|
|
yyj425++
|
|
if yyhl425 {
|
|
yyb425 = yyj425 > l
|
|
} else {
|
|
yyb425 = r.CheckBreak()
|
|
}
|
|
if yyb425 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = PersistentVolumeClaimStatus{}
|
|
} else {
|
|
yyv430 := &x.Status
|
|
yyv430.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj425++
|
|
if yyhl425 {
|
|
yyb425 = yyj425 > l
|
|
} else {
|
|
yyb425 = r.CheckBreak()
|
|
}
|
|
if yyb425 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj425-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *PersistentVolumeClaimList) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym431 := z.EncBinary()
|
|
_ = yym431
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep432 := !z.EncBinary()
|
|
yy2arr432 := z.EncBasicHandle().StructToArray
|
|
var yyq432 [4]bool
|
|
_, _, _ = yysep432, yyq432, yy2arr432
|
|
const yyr432 bool = false
|
|
yyq432[0] = x.Kind != ""
|
|
yyq432[1] = x.APIVersion != ""
|
|
yyq432[2] = true
|
|
var yynn432 int
|
|
if yyr432 || yy2arr432 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn432 = 1
|
|
for _, b := range yyq432 {
|
|
if b {
|
|
yynn432++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn432)
|
|
yynn432 = 0
|
|
}
|
|
if yyr432 || yy2arr432 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq432[0] {
|
|
yym434 := z.EncBinary()
|
|
_ = yym434
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq432[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym435 := z.EncBinary()
|
|
_ = yym435
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr432 || yy2arr432 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq432[1] {
|
|
yym437 := z.EncBinary()
|
|
_ = yym437
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq432[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym438 := z.EncBinary()
|
|
_ = yym438
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr432 || yy2arr432 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq432[2] {
|
|
yy440 := &x.ListMeta
|
|
yym441 := z.EncBinary()
|
|
_ = yym441
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy440) {
|
|
} else {
|
|
z.EncFallback(yy440)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq432[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy442 := &x.ListMeta
|
|
yym443 := z.EncBinary()
|
|
_ = yym443
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy442) {
|
|
} else {
|
|
z.EncFallback(yy442)
|
|
}
|
|
}
|
|
}
|
|
if yyr432 || yy2arr432 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym445 := z.EncBinary()
|
|
_ = yym445
|
|
if false {
|
|
} else {
|
|
h.encSlicePersistentVolumeClaim(([]PersistentVolumeClaim)(x.Items), e)
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("items"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym446 := z.EncBinary()
|
|
_ = yym446
|
|
if false {
|
|
} else {
|
|
h.encSlicePersistentVolumeClaim(([]PersistentVolumeClaim)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr432 || yy2arr432 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PersistentVolumeClaimList) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym447 := z.DecBinary()
|
|
_ = yym447
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct448 := r.ContainerType()
|
|
if yyct448 == codecSelferValueTypeMap1234 {
|
|
yyl448 := r.ReadMapStart()
|
|
if yyl448 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl448, d)
|
|
}
|
|
} else if yyct448 == codecSelferValueTypeArray1234 {
|
|
yyl448 := r.ReadArrayStart()
|
|
if yyl448 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl448, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PersistentVolumeClaimList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys449Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys449Slc
|
|
var yyhl449 bool = l >= 0
|
|
for yyj449 := 0; ; yyj449++ {
|
|
if yyhl449 {
|
|
if yyj449 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys449Slc = r.DecodeBytes(yys449Slc, true, true)
|
|
yys449 := string(yys449Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys449 {
|
|
case "kind":
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
case "apiVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
case "metadata":
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv452 := &x.ListMeta
|
|
yym453 := z.DecBinary()
|
|
_ = yym453
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv452) {
|
|
} else {
|
|
z.DecFallback(yyv452, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv454 := &x.Items
|
|
yym455 := z.DecBinary()
|
|
_ = yym455
|
|
if false {
|
|
} else {
|
|
h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv454), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys449)
|
|
} // end switch yys449
|
|
} // end for yyj449
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *PersistentVolumeClaimList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj456 int
|
|
var yyb456 bool
|
|
var yyhl456 bool = l >= 0
|
|
yyj456++
|
|
if yyhl456 {
|
|
yyb456 = yyj456 > l
|
|
} else {
|
|
yyb456 = r.CheckBreak()
|
|
}
|
|
if yyb456 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj456++
|
|
if yyhl456 {
|
|
yyb456 = yyj456 > l
|
|
} else {
|
|
yyb456 = r.CheckBreak()
|
|
}
|
|
if yyb456 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj456++
|
|
if yyhl456 {
|
|
yyb456 = yyj456 > l
|
|
} else {
|
|
yyb456 = r.CheckBreak()
|
|
}
|
|
if yyb456 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv459 := &x.ListMeta
|
|
yym460 := z.DecBinary()
|
|
_ = yym460
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv459) {
|
|
} else {
|
|
z.DecFallback(yyv459, false)
|
|
}
|
|
}
|
|
yyj456++
|
|
if yyhl456 {
|
|
yyb456 = yyj456 > l
|
|
} else {
|
|
yyb456 = r.CheckBreak()
|
|
}
|
|
if yyb456 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv461 := &x.Items
|
|
yym462 := z.DecBinary()
|
|
_ = yym462
|
|
if false {
|
|
} else {
|
|
h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv461), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj456++
|
|
if yyhl456 {
|
|
yyb456 = yyj456 > l
|
|
} else {
|
|
yyb456 = r.CheckBreak()
|
|
}
|
|
if yyb456 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj456-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *PersistentVolumeClaimSpec) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym463 := z.EncBinary()
|
|
_ = yym463
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep464 := !z.EncBinary()
|
|
yy2arr464 := z.EncBasicHandle().StructToArray
|
|
var yyq464 [3]bool
|
|
_, _, _ = yysep464, yyq464, yy2arr464
|
|
const yyr464 bool = false
|
|
yyq464[0] = len(x.AccessModes) != 0
|
|
yyq464[1] = true
|
|
yyq464[2] = x.VolumeName != ""
|
|
var yynn464 int
|
|
if yyr464 || yy2arr464 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn464 = 0
|
|
for _, b := range yyq464 {
|
|
if b {
|
|
yynn464++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn464)
|
|
yynn464 = 0
|
|
}
|
|
if yyr464 || yy2arr464 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq464[0] {
|
|
if x.AccessModes == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym466 := z.EncBinary()
|
|
_ = yym466
|
|
if false {
|
|
} else {
|
|
h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq464[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("accessModes"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.AccessModes == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym467 := z.EncBinary()
|
|
_ = yym467
|
|
if false {
|
|
} else {
|
|
h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr464 || yy2arr464 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq464[1] {
|
|
yy469 := &x.Resources
|
|
yy469.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq464[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("resources"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy470 := &x.Resources
|
|
yy470.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr464 || yy2arr464 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq464[2] {
|
|
yym472 := z.EncBinary()
|
|
_ = yym472
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq464[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("volumeName"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym473 := z.EncBinary()
|
|
_ = yym473
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName))
|
|
}
|
|
}
|
|
}
|
|
if yyr464 || yy2arr464 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PersistentVolumeClaimSpec) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym474 := z.DecBinary()
|
|
_ = yym474
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct475 := r.ContainerType()
|
|
if yyct475 == codecSelferValueTypeMap1234 {
|
|
yyl475 := r.ReadMapStart()
|
|
if yyl475 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl475, d)
|
|
}
|
|
} else if yyct475 == codecSelferValueTypeArray1234 {
|
|
yyl475 := r.ReadArrayStart()
|
|
if yyl475 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl475, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys476Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys476Slc
|
|
var yyhl476 bool = l >= 0
|
|
for yyj476 := 0; ; yyj476++ {
|
|
if yyhl476 {
|
|
if yyj476 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys476Slc = r.DecodeBytes(yys476Slc, true, true)
|
|
yys476 := string(yys476Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys476 {
|
|
case "accessModes":
|
|
if r.TryDecodeAsNil() {
|
|
x.AccessModes = nil
|
|
} else {
|
|
yyv477 := &x.AccessModes
|
|
yym478 := z.DecBinary()
|
|
_ = yym478
|
|
if false {
|
|
} else {
|
|
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv477), d)
|
|
}
|
|
}
|
|
case "resources":
|
|
if r.TryDecodeAsNil() {
|
|
x.Resources = ResourceRequirements{}
|
|
} else {
|
|
yyv479 := &x.Resources
|
|
yyv479.CodecDecodeSelf(d)
|
|
}
|
|
case "volumeName":
|
|
if r.TryDecodeAsNil() {
|
|
x.VolumeName = ""
|
|
} else {
|
|
x.VolumeName = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys476)
|
|
} // end switch yys476
|
|
} // end for yyj476
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj481 int
|
|
var yyb481 bool
|
|
var yyhl481 bool = l >= 0
|
|
yyj481++
|
|
if yyhl481 {
|
|
yyb481 = yyj481 > l
|
|
} else {
|
|
yyb481 = r.CheckBreak()
|
|
}
|
|
if yyb481 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.AccessModes = nil
|
|
} else {
|
|
yyv482 := &x.AccessModes
|
|
yym483 := z.DecBinary()
|
|
_ = yym483
|
|
if false {
|
|
} else {
|
|
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv482), d)
|
|
}
|
|
}
|
|
yyj481++
|
|
if yyhl481 {
|
|
yyb481 = yyj481 > l
|
|
} else {
|
|
yyb481 = r.CheckBreak()
|
|
}
|
|
if yyb481 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Resources = ResourceRequirements{}
|
|
} else {
|
|
yyv484 := &x.Resources
|
|
yyv484.CodecDecodeSelf(d)
|
|
}
|
|
yyj481++
|
|
if yyhl481 {
|
|
yyb481 = yyj481 > l
|
|
} else {
|
|
yyb481 = r.CheckBreak()
|
|
}
|
|
if yyb481 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.VolumeName = ""
|
|
} else {
|
|
x.VolumeName = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj481++
|
|
if yyhl481 {
|
|
yyb481 = yyj481 > l
|
|
} else {
|
|
yyb481 = r.CheckBreak()
|
|
}
|
|
if yyb481 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj481-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *PersistentVolumeClaimStatus) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym486 := z.EncBinary()
|
|
_ = yym486
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep487 := !z.EncBinary()
|
|
yy2arr487 := z.EncBasicHandle().StructToArray
|
|
var yyq487 [3]bool
|
|
_, _, _ = yysep487, yyq487, yy2arr487
|
|
const yyr487 bool = false
|
|
yyq487[0] = x.Phase != ""
|
|
yyq487[1] = len(x.AccessModes) != 0
|
|
yyq487[2] = len(x.Capacity) != 0
|
|
var yynn487 int
|
|
if yyr487 || yy2arr487 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn487 = 0
|
|
for _, b := range yyq487 {
|
|
if b {
|
|
yynn487++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn487)
|
|
yynn487 = 0
|
|
}
|
|
if yyr487 || yy2arr487 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq487[0] {
|
|
x.Phase.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq487[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("phase"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Phase.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr487 || yy2arr487 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq487[1] {
|
|
if x.AccessModes == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym490 := z.EncBinary()
|
|
_ = yym490
|
|
if false {
|
|
} else {
|
|
h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq487[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("accessModes"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.AccessModes == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym491 := z.EncBinary()
|
|
_ = yym491
|
|
if false {
|
|
} else {
|
|
h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr487 || yy2arr487 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq487[2] {
|
|
if x.Capacity == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Capacity.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq487[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("capacity"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Capacity == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Capacity.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr487 || yy2arr487 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PersistentVolumeClaimStatus) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym493 := z.DecBinary()
|
|
_ = yym493
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct494 := r.ContainerType()
|
|
if yyct494 == codecSelferValueTypeMap1234 {
|
|
yyl494 := r.ReadMapStart()
|
|
if yyl494 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl494, d)
|
|
}
|
|
} else if yyct494 == codecSelferValueTypeArray1234 {
|
|
yyl494 := r.ReadArrayStart()
|
|
if yyl494 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl494, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys495Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys495Slc
|
|
var yyhl495 bool = l >= 0
|
|
for yyj495 := 0; ; yyj495++ {
|
|
if yyhl495 {
|
|
if yyj495 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys495Slc = r.DecodeBytes(yys495Slc, true, true)
|
|
yys495 := string(yys495Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys495 {
|
|
case "phase":
|
|
if r.TryDecodeAsNil() {
|
|
x.Phase = ""
|
|
} else {
|
|
x.Phase = PersistentVolumeClaimPhase(r.DecodeString())
|
|
}
|
|
case "accessModes":
|
|
if r.TryDecodeAsNil() {
|
|
x.AccessModes = nil
|
|
} else {
|
|
yyv497 := &x.AccessModes
|
|
yym498 := z.DecBinary()
|
|
_ = yym498
|
|
if false {
|
|
} else {
|
|
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv497), d)
|
|
}
|
|
}
|
|
case "capacity":
|
|
if r.TryDecodeAsNil() {
|
|
x.Capacity = nil
|
|
} else {
|
|
yyv499 := &x.Capacity
|
|
yyv499.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys495)
|
|
} // end switch yys495
|
|
} // end for yyj495
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj500 int
|
|
var yyb500 bool
|
|
var yyhl500 bool = l >= 0
|
|
yyj500++
|
|
if yyhl500 {
|
|
yyb500 = yyj500 > l
|
|
} else {
|
|
yyb500 = r.CheckBreak()
|
|
}
|
|
if yyb500 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Phase = ""
|
|
} else {
|
|
x.Phase = PersistentVolumeClaimPhase(r.DecodeString())
|
|
}
|
|
yyj500++
|
|
if yyhl500 {
|
|
yyb500 = yyj500 > l
|
|
} else {
|
|
yyb500 = r.CheckBreak()
|
|
}
|
|
if yyb500 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.AccessModes = nil
|
|
} else {
|
|
yyv502 := &x.AccessModes
|
|
yym503 := z.DecBinary()
|
|
_ = yym503
|
|
if false {
|
|
} else {
|
|
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv502), d)
|
|
}
|
|
}
|
|
yyj500++
|
|
if yyhl500 {
|
|
yyb500 = yyj500 > l
|
|
} else {
|
|
yyb500 = r.CheckBreak()
|
|
}
|
|
if yyb500 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Capacity = nil
|
|
} else {
|
|
yyv504 := &x.Capacity
|
|
yyv504.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj500++
|
|
if yyhl500 {
|
|
yyb500 = yyj500 > l
|
|
} else {
|
|
yyb500 = r.CheckBreak()
|
|
}
|
|
if yyb500 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj500-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x PersistentVolumeAccessMode) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym505 := z.EncBinary()
|
|
_ = yym505
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x))
|
|
}
|
|
}
|
|
|
|
func (x *PersistentVolumeAccessMode) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym506 := z.DecBinary()
|
|
_ = yym506
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
*((*string)(x)) = r.DecodeString()
|
|
}
|
|
}
|
|
|
|
func (x PersistentVolumePhase) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym507 := z.EncBinary()
|
|
_ = yym507
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x))
|
|
}
|
|
}
|
|
|
|
func (x *PersistentVolumePhase) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym508 := z.DecBinary()
|
|
_ = yym508
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
*((*string)(x)) = r.DecodeString()
|
|
}
|
|
}
|
|
|
|
func (x PersistentVolumeClaimPhase) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym509 := z.EncBinary()
|
|
_ = yym509
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x))
|
|
}
|
|
}
|
|
|
|
func (x *PersistentVolumeClaimPhase) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym510 := z.DecBinary()
|
|
_ = yym510
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
*((*string)(x)) = r.DecodeString()
|
|
}
|
|
}
|
|
|
|
func (x *HostPathVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym511 := z.EncBinary()
|
|
_ = yym511
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep512 := !z.EncBinary()
|
|
yy2arr512 := z.EncBasicHandle().StructToArray
|
|
var yyq512 [1]bool
|
|
_, _, _ = yysep512, yyq512, yy2arr512
|
|
const yyr512 bool = false
|
|
var yynn512 int
|
|
if yyr512 || yy2arr512 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn512 = 1
|
|
for _, b := range yyq512 {
|
|
if b {
|
|
yynn512++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn512)
|
|
yynn512 = 0
|
|
}
|
|
if yyr512 || yy2arr512 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym514 := z.EncBinary()
|
|
_ = yym514
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("path"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym515 := z.EncBinary()
|
|
_ = yym515
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
|
|
}
|
|
}
|
|
if yyr512 || yy2arr512 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *HostPathVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym516 := z.DecBinary()
|
|
_ = yym516
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct517 := r.ContainerType()
|
|
if yyct517 == codecSelferValueTypeMap1234 {
|
|
yyl517 := r.ReadMapStart()
|
|
if yyl517 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl517, d)
|
|
}
|
|
} else if yyct517 == codecSelferValueTypeArray1234 {
|
|
yyl517 := r.ReadArrayStart()
|
|
if yyl517 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl517, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *HostPathVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys518Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys518Slc
|
|
var yyhl518 bool = l >= 0
|
|
for yyj518 := 0; ; yyj518++ {
|
|
if yyhl518 {
|
|
if yyj518 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys518Slc = r.DecodeBytes(yys518Slc, true, true)
|
|
yys518 := string(yys518Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys518 {
|
|
case "path":
|
|
if r.TryDecodeAsNil() {
|
|
x.Path = ""
|
|
} else {
|
|
x.Path = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys518)
|
|
} // end switch yys518
|
|
} // end for yyj518
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *HostPathVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj520 int
|
|
var yyb520 bool
|
|
var yyhl520 bool = l >= 0
|
|
yyj520++
|
|
if yyhl520 {
|
|
yyb520 = yyj520 > l
|
|
} else {
|
|
yyb520 = r.CheckBreak()
|
|
}
|
|
if yyb520 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Path = ""
|
|
} else {
|
|
x.Path = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj520++
|
|
if yyhl520 {
|
|
yyb520 = yyj520 > l
|
|
} else {
|
|
yyb520 = r.CheckBreak()
|
|
}
|
|
if yyb520 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj520-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *EmptyDirVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym522 := z.EncBinary()
|
|
_ = yym522
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep523 := !z.EncBinary()
|
|
yy2arr523 := z.EncBasicHandle().StructToArray
|
|
var yyq523 [1]bool
|
|
_, _, _ = yysep523, yyq523, yy2arr523
|
|
const yyr523 bool = false
|
|
yyq523[0] = x.Medium != ""
|
|
var yynn523 int
|
|
if yyr523 || yy2arr523 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn523 = 0
|
|
for _, b := range yyq523 {
|
|
if b {
|
|
yynn523++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn523)
|
|
yynn523 = 0
|
|
}
|
|
if yyr523 || yy2arr523 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq523[0] {
|
|
x.Medium.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq523[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("medium"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Medium.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr523 || yy2arr523 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *EmptyDirVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym525 := z.DecBinary()
|
|
_ = yym525
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct526 := r.ContainerType()
|
|
if yyct526 == codecSelferValueTypeMap1234 {
|
|
yyl526 := r.ReadMapStart()
|
|
if yyl526 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl526, d)
|
|
}
|
|
} else if yyct526 == codecSelferValueTypeArray1234 {
|
|
yyl526 := r.ReadArrayStart()
|
|
if yyl526 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl526, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *EmptyDirVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys527Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys527Slc
|
|
var yyhl527 bool = l >= 0
|
|
for yyj527 := 0; ; yyj527++ {
|
|
if yyhl527 {
|
|
if yyj527 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys527Slc = r.DecodeBytes(yys527Slc, true, true)
|
|
yys527 := string(yys527Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys527 {
|
|
case "medium":
|
|
if r.TryDecodeAsNil() {
|
|
x.Medium = ""
|
|
} else {
|
|
x.Medium = StorageMedium(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys527)
|
|
} // end switch yys527
|
|
} // end for yyj527
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *EmptyDirVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj529 int
|
|
var yyb529 bool
|
|
var yyhl529 bool = l >= 0
|
|
yyj529++
|
|
if yyhl529 {
|
|
yyb529 = yyj529 > l
|
|
} else {
|
|
yyb529 = r.CheckBreak()
|
|
}
|
|
if yyb529 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Medium = ""
|
|
} else {
|
|
x.Medium = StorageMedium(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj529++
|
|
if yyhl529 {
|
|
yyb529 = yyj529 > l
|
|
} else {
|
|
yyb529 = r.CheckBreak()
|
|
}
|
|
if yyb529 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj529-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x StorageMedium) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym531 := z.EncBinary()
|
|
_ = yym531
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x))
|
|
}
|
|
}
|
|
|
|
func (x *StorageMedium) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym532 := z.DecBinary()
|
|
_ = yym532
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
*((*string)(x)) = r.DecodeString()
|
|
}
|
|
}
|
|
|
|
func (x Protocol) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym533 := z.EncBinary()
|
|
_ = yym533
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x))
|
|
}
|
|
}
|
|
|
|
func (x *Protocol) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym534 := z.DecBinary()
|
|
_ = yym534
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
*((*string)(x)) = r.DecodeString()
|
|
}
|
|
}
|
|
|
|
func (x *GCEPersistentDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym535 := z.EncBinary()
|
|
_ = yym535
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep536 := !z.EncBinary()
|
|
yy2arr536 := z.EncBasicHandle().StructToArray
|
|
var yyq536 [4]bool
|
|
_, _, _ = yysep536, yyq536, yy2arr536
|
|
const yyr536 bool = false
|
|
yyq536[1] = x.FSType != ""
|
|
yyq536[2] = x.Partition != 0
|
|
yyq536[3] = x.ReadOnly != false
|
|
var yynn536 int
|
|
if yyr536 || yy2arr536 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn536 = 1
|
|
for _, b := range yyq536 {
|
|
if b {
|
|
yynn536++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn536)
|
|
yynn536 = 0
|
|
}
|
|
if yyr536 || yy2arr536 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym538 := z.EncBinary()
|
|
_ = yym538
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.PDName))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("pdName"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym539 := z.EncBinary()
|
|
_ = yym539
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.PDName))
|
|
}
|
|
}
|
|
if yyr536 || yy2arr536 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq536[1] {
|
|
yym541 := z.EncBinary()
|
|
_ = yym541
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq536[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym542 := z.EncBinary()
|
|
_ = yym542
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
|
|
}
|
|
}
|
|
}
|
|
if yyr536 || yy2arr536 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq536[2] {
|
|
yym544 := z.EncBinary()
|
|
_ = yym544
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Partition))
|
|
}
|
|
} else {
|
|
r.EncodeInt(0)
|
|
}
|
|
} else {
|
|
if yyq536[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("partition"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym545 := z.EncBinary()
|
|
_ = yym545
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Partition))
|
|
}
|
|
}
|
|
}
|
|
if yyr536 || yy2arr536 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq536[3] {
|
|
yym547 := z.EncBinary()
|
|
_ = yym547
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq536[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym548 := z.EncBinary()
|
|
_ = yym548
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
}
|
|
}
|
|
if yyr536 || yy2arr536 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *GCEPersistentDiskVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym549 := z.DecBinary()
|
|
_ = yym549
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct550 := r.ContainerType()
|
|
if yyct550 == codecSelferValueTypeMap1234 {
|
|
yyl550 := r.ReadMapStart()
|
|
if yyl550 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl550, d)
|
|
}
|
|
} else if yyct550 == codecSelferValueTypeArray1234 {
|
|
yyl550 := r.ReadArrayStart()
|
|
if yyl550 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl550, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys551Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys551Slc
|
|
var yyhl551 bool = l >= 0
|
|
for yyj551 := 0; ; yyj551++ {
|
|
if yyhl551 {
|
|
if yyj551 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys551Slc = r.DecodeBytes(yys551Slc, true, true)
|
|
yys551 := string(yys551Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys551 {
|
|
case "pdName":
|
|
if r.TryDecodeAsNil() {
|
|
x.PDName = ""
|
|
} else {
|
|
x.PDName = string(r.DecodeString())
|
|
}
|
|
case "fsType":
|
|
if r.TryDecodeAsNil() {
|
|
x.FSType = ""
|
|
} else {
|
|
x.FSType = string(r.DecodeString())
|
|
}
|
|
case "partition":
|
|
if r.TryDecodeAsNil() {
|
|
x.Partition = 0
|
|
} else {
|
|
x.Partition = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
case "readOnly":
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys551)
|
|
} // end switch yys551
|
|
} // end for yyj551
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj556 int
|
|
var yyb556 bool
|
|
var yyhl556 bool = l >= 0
|
|
yyj556++
|
|
if yyhl556 {
|
|
yyb556 = yyj556 > l
|
|
} else {
|
|
yyb556 = r.CheckBreak()
|
|
}
|
|
if yyb556 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.PDName = ""
|
|
} else {
|
|
x.PDName = string(r.DecodeString())
|
|
}
|
|
yyj556++
|
|
if yyhl556 {
|
|
yyb556 = yyj556 > l
|
|
} else {
|
|
yyb556 = r.CheckBreak()
|
|
}
|
|
if yyb556 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.FSType = ""
|
|
} else {
|
|
x.FSType = string(r.DecodeString())
|
|
}
|
|
yyj556++
|
|
if yyhl556 {
|
|
yyb556 = yyj556 > l
|
|
} else {
|
|
yyb556 = r.CheckBreak()
|
|
}
|
|
if yyb556 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Partition = 0
|
|
} else {
|
|
x.Partition = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
yyj556++
|
|
if yyhl556 {
|
|
yyb556 = yyj556 > l
|
|
} else {
|
|
yyb556 = r.CheckBreak()
|
|
}
|
|
if yyb556 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
for {
|
|
yyj556++
|
|
if yyhl556 {
|
|
yyb556 = yyj556 > l
|
|
} else {
|
|
yyb556 = r.CheckBreak()
|
|
}
|
|
if yyb556 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj556-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *ISCSIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym561 := z.EncBinary()
|
|
_ = yym561
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep562 := !z.EncBinary()
|
|
yy2arr562 := z.EncBasicHandle().StructToArray
|
|
var yyq562 [6]bool
|
|
_, _, _ = yysep562, yyq562, yy2arr562
|
|
const yyr562 bool = false
|
|
yyq562[0] = x.TargetPortal != ""
|
|
yyq562[1] = x.IQN != ""
|
|
yyq562[2] = x.Lun != 0
|
|
yyq562[3] = x.ISCSIInterface != ""
|
|
yyq562[4] = x.FSType != ""
|
|
yyq562[5] = x.ReadOnly != false
|
|
var yynn562 int
|
|
if yyr562 || yy2arr562 {
|
|
r.EncodeArrayStart(6)
|
|
} else {
|
|
yynn562 = 0
|
|
for _, b := range yyq562 {
|
|
if b {
|
|
yynn562++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn562)
|
|
yynn562 = 0
|
|
}
|
|
if yyr562 || yy2arr562 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq562[0] {
|
|
yym564 := z.EncBinary()
|
|
_ = yym564
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.TargetPortal))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq562[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("targetPortal"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym565 := z.EncBinary()
|
|
_ = yym565
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.TargetPortal))
|
|
}
|
|
}
|
|
}
|
|
if yyr562 || yy2arr562 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq562[1] {
|
|
yym567 := z.EncBinary()
|
|
_ = yym567
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.IQN))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq562[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("iqn"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym568 := z.EncBinary()
|
|
_ = yym568
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.IQN))
|
|
}
|
|
}
|
|
}
|
|
if yyr562 || yy2arr562 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq562[2] {
|
|
yym570 := z.EncBinary()
|
|
_ = yym570
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Lun))
|
|
}
|
|
} else {
|
|
r.EncodeInt(0)
|
|
}
|
|
} else {
|
|
if yyq562[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("lun"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym571 := z.EncBinary()
|
|
_ = yym571
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Lun))
|
|
}
|
|
}
|
|
}
|
|
if yyr562 || yy2arr562 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq562[3] {
|
|
yym573 := z.EncBinary()
|
|
_ = yym573
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ISCSIInterface))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq562[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("iscsiInterface"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym574 := z.EncBinary()
|
|
_ = yym574
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ISCSIInterface))
|
|
}
|
|
}
|
|
}
|
|
if yyr562 || yy2arr562 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq562[4] {
|
|
yym576 := z.EncBinary()
|
|
_ = yym576
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq562[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym577 := z.EncBinary()
|
|
_ = yym577
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
|
|
}
|
|
}
|
|
}
|
|
if yyr562 || yy2arr562 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq562[5] {
|
|
yym579 := z.EncBinary()
|
|
_ = yym579
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq562[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym580 := z.EncBinary()
|
|
_ = yym580
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
}
|
|
}
|
|
if yyr562 || yy2arr562 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ISCSIVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym581 := z.DecBinary()
|
|
_ = yym581
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct582 := r.ContainerType()
|
|
if yyct582 == codecSelferValueTypeMap1234 {
|
|
yyl582 := r.ReadMapStart()
|
|
if yyl582 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl582, d)
|
|
}
|
|
} else if yyct582 == codecSelferValueTypeArray1234 {
|
|
yyl582 := r.ReadArrayStart()
|
|
if yyl582 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl582, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ISCSIVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys583Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys583Slc
|
|
var yyhl583 bool = l >= 0
|
|
for yyj583 := 0; ; yyj583++ {
|
|
if yyhl583 {
|
|
if yyj583 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys583Slc = r.DecodeBytes(yys583Slc, true, true)
|
|
yys583 := string(yys583Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys583 {
|
|
case "targetPortal":
|
|
if r.TryDecodeAsNil() {
|
|
x.TargetPortal = ""
|
|
} else {
|
|
x.TargetPortal = string(r.DecodeString())
|
|
}
|
|
case "iqn":
|
|
if r.TryDecodeAsNil() {
|
|
x.IQN = ""
|
|
} else {
|
|
x.IQN = string(r.DecodeString())
|
|
}
|
|
case "lun":
|
|
if r.TryDecodeAsNil() {
|
|
x.Lun = 0
|
|
} else {
|
|
x.Lun = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
case "iscsiInterface":
|
|
if r.TryDecodeAsNil() {
|
|
x.ISCSIInterface = ""
|
|
} else {
|
|
x.ISCSIInterface = string(r.DecodeString())
|
|
}
|
|
case "fsType":
|
|
if r.TryDecodeAsNil() {
|
|
x.FSType = ""
|
|
} else {
|
|
x.FSType = string(r.DecodeString())
|
|
}
|
|
case "readOnly":
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys583)
|
|
} // end switch yys583
|
|
} // end for yyj583
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *ISCSIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj590 int
|
|
var yyb590 bool
|
|
var yyhl590 bool = l >= 0
|
|
yyj590++
|
|
if yyhl590 {
|
|
yyb590 = yyj590 > l
|
|
} else {
|
|
yyb590 = r.CheckBreak()
|
|
}
|
|
if yyb590 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.TargetPortal = ""
|
|
} else {
|
|
x.TargetPortal = string(r.DecodeString())
|
|
}
|
|
yyj590++
|
|
if yyhl590 {
|
|
yyb590 = yyj590 > l
|
|
} else {
|
|
yyb590 = r.CheckBreak()
|
|
}
|
|
if yyb590 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.IQN = ""
|
|
} else {
|
|
x.IQN = string(r.DecodeString())
|
|
}
|
|
yyj590++
|
|
if yyhl590 {
|
|
yyb590 = yyj590 > l
|
|
} else {
|
|
yyb590 = r.CheckBreak()
|
|
}
|
|
if yyb590 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Lun = 0
|
|
} else {
|
|
x.Lun = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
yyj590++
|
|
if yyhl590 {
|
|
yyb590 = yyj590 > l
|
|
} else {
|
|
yyb590 = r.CheckBreak()
|
|
}
|
|
if yyb590 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ISCSIInterface = ""
|
|
} else {
|
|
x.ISCSIInterface = string(r.DecodeString())
|
|
}
|
|
yyj590++
|
|
if yyhl590 {
|
|
yyb590 = yyj590 > l
|
|
} else {
|
|
yyb590 = r.CheckBreak()
|
|
}
|
|
if yyb590 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.FSType = ""
|
|
} else {
|
|
x.FSType = string(r.DecodeString())
|
|
}
|
|
yyj590++
|
|
if yyhl590 {
|
|
yyb590 = yyj590 > l
|
|
} else {
|
|
yyb590 = r.CheckBreak()
|
|
}
|
|
if yyb590 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
for {
|
|
yyj590++
|
|
if yyhl590 {
|
|
yyb590 = yyj590 > l
|
|
} else {
|
|
yyb590 = r.CheckBreak()
|
|
}
|
|
if yyb590 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj590-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *FCVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym597 := z.EncBinary()
|
|
_ = yym597
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep598 := !z.EncBinary()
|
|
yy2arr598 := z.EncBasicHandle().StructToArray
|
|
var yyq598 [4]bool
|
|
_, _, _ = yysep598, yyq598, yy2arr598
|
|
const yyr598 bool = false
|
|
yyq598[3] = x.ReadOnly != false
|
|
var yynn598 int
|
|
if yyr598 || yy2arr598 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn598 = 3
|
|
for _, b := range yyq598 {
|
|
if b {
|
|
yynn598++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn598)
|
|
yynn598 = 0
|
|
}
|
|
if yyr598 || yy2arr598 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.TargetWWNs == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym600 := z.EncBinary()
|
|
_ = yym600
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.TargetWWNs, false, e)
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("targetWWNs"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.TargetWWNs == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym601 := z.EncBinary()
|
|
_ = yym601
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.TargetWWNs, false, e)
|
|
}
|
|
}
|
|
}
|
|
if yyr598 || yy2arr598 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Lun == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy603 := *x.Lun
|
|
yym604 := z.EncBinary()
|
|
_ = yym604
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy603))
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("lun"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Lun == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy605 := *x.Lun
|
|
yym606 := z.EncBinary()
|
|
_ = yym606
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy605))
|
|
}
|
|
}
|
|
}
|
|
if yyr598 || yy2arr598 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym608 := z.EncBinary()
|
|
_ = yym608
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym609 := z.EncBinary()
|
|
_ = yym609
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
|
|
}
|
|
}
|
|
if yyr598 || yy2arr598 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq598[3] {
|
|
yym611 := z.EncBinary()
|
|
_ = yym611
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq598[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym612 := z.EncBinary()
|
|
_ = yym612
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
}
|
|
}
|
|
if yyr598 || yy2arr598 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *FCVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym613 := z.DecBinary()
|
|
_ = yym613
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct614 := r.ContainerType()
|
|
if yyct614 == codecSelferValueTypeMap1234 {
|
|
yyl614 := r.ReadMapStart()
|
|
if yyl614 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl614, d)
|
|
}
|
|
} else if yyct614 == codecSelferValueTypeArray1234 {
|
|
yyl614 := r.ReadArrayStart()
|
|
if yyl614 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl614, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *FCVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys615Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys615Slc
|
|
var yyhl615 bool = l >= 0
|
|
for yyj615 := 0; ; yyj615++ {
|
|
if yyhl615 {
|
|
if yyj615 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys615Slc = r.DecodeBytes(yys615Slc, true, true)
|
|
yys615 := string(yys615Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys615 {
|
|
case "targetWWNs":
|
|
if r.TryDecodeAsNil() {
|
|
x.TargetWWNs = nil
|
|
} else {
|
|
yyv616 := &x.TargetWWNs
|
|
yym617 := z.DecBinary()
|
|
_ = yym617
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv616, false, d)
|
|
}
|
|
}
|
|
case "lun":
|
|
if r.TryDecodeAsNil() {
|
|
if x.Lun != nil {
|
|
x.Lun = nil
|
|
}
|
|
} else {
|
|
if x.Lun == nil {
|
|
x.Lun = new(int)
|
|
}
|
|
yym619 := z.DecBinary()
|
|
_ = yym619
|
|
if false {
|
|
} else {
|
|
*((*int)(x.Lun)) = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
}
|
|
case "fsType":
|
|
if r.TryDecodeAsNil() {
|
|
x.FSType = ""
|
|
} else {
|
|
x.FSType = string(r.DecodeString())
|
|
}
|
|
case "readOnly":
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys615)
|
|
} // end switch yys615
|
|
} // end for yyj615
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *FCVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj622 int
|
|
var yyb622 bool
|
|
var yyhl622 bool = l >= 0
|
|
yyj622++
|
|
if yyhl622 {
|
|
yyb622 = yyj622 > l
|
|
} else {
|
|
yyb622 = r.CheckBreak()
|
|
}
|
|
if yyb622 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.TargetWWNs = nil
|
|
} else {
|
|
yyv623 := &x.TargetWWNs
|
|
yym624 := z.DecBinary()
|
|
_ = yym624
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv623, false, d)
|
|
}
|
|
}
|
|
yyj622++
|
|
if yyhl622 {
|
|
yyb622 = yyj622 > l
|
|
} else {
|
|
yyb622 = r.CheckBreak()
|
|
}
|
|
if yyb622 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.Lun != nil {
|
|
x.Lun = nil
|
|
}
|
|
} else {
|
|
if x.Lun == nil {
|
|
x.Lun = new(int)
|
|
}
|
|
yym626 := z.DecBinary()
|
|
_ = yym626
|
|
if false {
|
|
} else {
|
|
*((*int)(x.Lun)) = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
}
|
|
yyj622++
|
|
if yyhl622 {
|
|
yyb622 = yyj622 > l
|
|
} else {
|
|
yyb622 = r.CheckBreak()
|
|
}
|
|
if yyb622 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.FSType = ""
|
|
} else {
|
|
x.FSType = string(r.DecodeString())
|
|
}
|
|
yyj622++
|
|
if yyhl622 {
|
|
yyb622 = yyj622 > l
|
|
} else {
|
|
yyb622 = r.CheckBreak()
|
|
}
|
|
if yyb622 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
for {
|
|
yyj622++
|
|
if yyhl622 {
|
|
yyb622 = yyj622 > l
|
|
} else {
|
|
yyb622 = r.CheckBreak()
|
|
}
|
|
if yyb622 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj622-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *FlexVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym629 := z.EncBinary()
|
|
_ = yym629
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep630 := !z.EncBinary()
|
|
yy2arr630 := z.EncBasicHandle().StructToArray
|
|
var yyq630 [5]bool
|
|
_, _, _ = yysep630, yyq630, yy2arr630
|
|
const yyr630 bool = false
|
|
yyq630[1] = x.FSType != ""
|
|
yyq630[2] = x.SecretRef != nil
|
|
yyq630[3] = x.ReadOnly != false
|
|
yyq630[4] = len(x.Options) != 0
|
|
var yynn630 int
|
|
if yyr630 || yy2arr630 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn630 = 1
|
|
for _, b := range yyq630 {
|
|
if b {
|
|
yynn630++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn630)
|
|
yynn630 = 0
|
|
}
|
|
if yyr630 || yy2arr630 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym632 := z.EncBinary()
|
|
_ = yym632
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Driver))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("driver"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym633 := z.EncBinary()
|
|
_ = yym633
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Driver))
|
|
}
|
|
}
|
|
if yyr630 || yy2arr630 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq630[1] {
|
|
yym635 := z.EncBinary()
|
|
_ = yym635
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq630[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym636 := z.EncBinary()
|
|
_ = yym636
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
|
|
}
|
|
}
|
|
}
|
|
if yyr630 || yy2arr630 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq630[2] {
|
|
if x.SecretRef == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.SecretRef.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq630[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("secretRef"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.SecretRef == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.SecretRef.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr630 || yy2arr630 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq630[3] {
|
|
yym639 := z.EncBinary()
|
|
_ = yym639
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq630[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym640 := z.EncBinary()
|
|
_ = yym640
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
}
|
|
}
|
|
if yyr630 || yy2arr630 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq630[4] {
|
|
if x.Options == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym642 := z.EncBinary()
|
|
_ = yym642
|
|
if false {
|
|
} else {
|
|
z.F.EncMapStringStringV(x.Options, false, e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq630[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("options"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Options == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym643 := z.EncBinary()
|
|
_ = yym643
|
|
if false {
|
|
} else {
|
|
z.F.EncMapStringStringV(x.Options, false, e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr630 || yy2arr630 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *FlexVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym644 := z.DecBinary()
|
|
_ = yym644
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct645 := r.ContainerType()
|
|
if yyct645 == codecSelferValueTypeMap1234 {
|
|
yyl645 := r.ReadMapStart()
|
|
if yyl645 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl645, d)
|
|
}
|
|
} else if yyct645 == codecSelferValueTypeArray1234 {
|
|
yyl645 := r.ReadArrayStart()
|
|
if yyl645 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl645, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *FlexVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys646Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys646Slc
|
|
var yyhl646 bool = l >= 0
|
|
for yyj646 := 0; ; yyj646++ {
|
|
if yyhl646 {
|
|
if yyj646 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys646Slc = r.DecodeBytes(yys646Slc, true, true)
|
|
yys646 := string(yys646Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys646 {
|
|
case "driver":
|
|
if r.TryDecodeAsNil() {
|
|
x.Driver = ""
|
|
} else {
|
|
x.Driver = string(r.DecodeString())
|
|
}
|
|
case "fsType":
|
|
if r.TryDecodeAsNil() {
|
|
x.FSType = ""
|
|
} else {
|
|
x.FSType = string(r.DecodeString())
|
|
}
|
|
case "secretRef":
|
|
if r.TryDecodeAsNil() {
|
|
if x.SecretRef != nil {
|
|
x.SecretRef = nil
|
|
}
|
|
} else {
|
|
if x.SecretRef == nil {
|
|
x.SecretRef = new(LocalObjectReference)
|
|
}
|
|
x.SecretRef.CodecDecodeSelf(d)
|
|
}
|
|
case "readOnly":
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
case "options":
|
|
if r.TryDecodeAsNil() {
|
|
x.Options = nil
|
|
} else {
|
|
yyv651 := &x.Options
|
|
yym652 := z.DecBinary()
|
|
_ = yym652
|
|
if false {
|
|
} else {
|
|
z.F.DecMapStringStringX(yyv651, false, d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys646)
|
|
} // end switch yys646
|
|
} // end for yyj646
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *FlexVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj653 int
|
|
var yyb653 bool
|
|
var yyhl653 bool = l >= 0
|
|
yyj653++
|
|
if yyhl653 {
|
|
yyb653 = yyj653 > l
|
|
} else {
|
|
yyb653 = r.CheckBreak()
|
|
}
|
|
if yyb653 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Driver = ""
|
|
} else {
|
|
x.Driver = string(r.DecodeString())
|
|
}
|
|
yyj653++
|
|
if yyhl653 {
|
|
yyb653 = yyj653 > l
|
|
} else {
|
|
yyb653 = r.CheckBreak()
|
|
}
|
|
if yyb653 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.FSType = ""
|
|
} else {
|
|
x.FSType = string(r.DecodeString())
|
|
}
|
|
yyj653++
|
|
if yyhl653 {
|
|
yyb653 = yyj653 > l
|
|
} else {
|
|
yyb653 = r.CheckBreak()
|
|
}
|
|
if yyb653 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.SecretRef != nil {
|
|
x.SecretRef = nil
|
|
}
|
|
} else {
|
|
if x.SecretRef == nil {
|
|
x.SecretRef = new(LocalObjectReference)
|
|
}
|
|
x.SecretRef.CodecDecodeSelf(d)
|
|
}
|
|
yyj653++
|
|
if yyhl653 {
|
|
yyb653 = yyj653 > l
|
|
} else {
|
|
yyb653 = r.CheckBreak()
|
|
}
|
|
if yyb653 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
yyj653++
|
|
if yyhl653 {
|
|
yyb653 = yyj653 > l
|
|
} else {
|
|
yyb653 = r.CheckBreak()
|
|
}
|
|
if yyb653 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Options = nil
|
|
} else {
|
|
yyv658 := &x.Options
|
|
yym659 := z.DecBinary()
|
|
_ = yym659
|
|
if false {
|
|
} else {
|
|
z.F.DecMapStringStringX(yyv658, false, d)
|
|
}
|
|
}
|
|
for {
|
|
yyj653++
|
|
if yyhl653 {
|
|
yyb653 = yyj653 > l
|
|
} else {
|
|
yyb653 = r.CheckBreak()
|
|
}
|
|
if yyb653 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj653-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *AWSElasticBlockStoreVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym660 := z.EncBinary()
|
|
_ = yym660
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep661 := !z.EncBinary()
|
|
yy2arr661 := z.EncBasicHandle().StructToArray
|
|
var yyq661 [4]bool
|
|
_, _, _ = yysep661, yyq661, yy2arr661
|
|
const yyr661 bool = false
|
|
yyq661[1] = x.FSType != ""
|
|
yyq661[2] = x.Partition != 0
|
|
yyq661[3] = x.ReadOnly != false
|
|
var yynn661 int
|
|
if yyr661 || yy2arr661 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn661 = 1
|
|
for _, b := range yyq661 {
|
|
if b {
|
|
yynn661++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn661)
|
|
yynn661 = 0
|
|
}
|
|
if yyr661 || yy2arr661 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym663 := z.EncBinary()
|
|
_ = yym663
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("volumeID"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym664 := z.EncBinary()
|
|
_ = yym664
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID))
|
|
}
|
|
}
|
|
if yyr661 || yy2arr661 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq661[1] {
|
|
yym666 := z.EncBinary()
|
|
_ = yym666
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq661[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym667 := z.EncBinary()
|
|
_ = yym667
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
|
|
}
|
|
}
|
|
}
|
|
if yyr661 || yy2arr661 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq661[2] {
|
|
yym669 := z.EncBinary()
|
|
_ = yym669
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Partition))
|
|
}
|
|
} else {
|
|
r.EncodeInt(0)
|
|
}
|
|
} else {
|
|
if yyq661[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("partition"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym670 := z.EncBinary()
|
|
_ = yym670
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Partition))
|
|
}
|
|
}
|
|
}
|
|
if yyr661 || yy2arr661 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq661[3] {
|
|
yym672 := z.EncBinary()
|
|
_ = yym672
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq661[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym673 := z.EncBinary()
|
|
_ = yym673
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
}
|
|
}
|
|
if yyr661 || yy2arr661 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *AWSElasticBlockStoreVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym674 := z.DecBinary()
|
|
_ = yym674
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct675 := r.ContainerType()
|
|
if yyct675 == codecSelferValueTypeMap1234 {
|
|
yyl675 := r.ReadMapStart()
|
|
if yyl675 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl675, d)
|
|
}
|
|
} else if yyct675 == codecSelferValueTypeArray1234 {
|
|
yyl675 := r.ReadArrayStart()
|
|
if yyl675 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl675, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys676Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys676Slc
|
|
var yyhl676 bool = l >= 0
|
|
for yyj676 := 0; ; yyj676++ {
|
|
if yyhl676 {
|
|
if yyj676 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys676Slc = r.DecodeBytes(yys676Slc, true, true)
|
|
yys676 := string(yys676Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys676 {
|
|
case "volumeID":
|
|
if r.TryDecodeAsNil() {
|
|
x.VolumeID = ""
|
|
} else {
|
|
x.VolumeID = string(r.DecodeString())
|
|
}
|
|
case "fsType":
|
|
if r.TryDecodeAsNil() {
|
|
x.FSType = ""
|
|
} else {
|
|
x.FSType = string(r.DecodeString())
|
|
}
|
|
case "partition":
|
|
if r.TryDecodeAsNil() {
|
|
x.Partition = 0
|
|
} else {
|
|
x.Partition = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
case "readOnly":
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys676)
|
|
} // end switch yys676
|
|
} // end for yyj676
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj681 int
|
|
var yyb681 bool
|
|
var yyhl681 bool = l >= 0
|
|
yyj681++
|
|
if yyhl681 {
|
|
yyb681 = yyj681 > l
|
|
} else {
|
|
yyb681 = r.CheckBreak()
|
|
}
|
|
if yyb681 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.VolumeID = ""
|
|
} else {
|
|
x.VolumeID = string(r.DecodeString())
|
|
}
|
|
yyj681++
|
|
if yyhl681 {
|
|
yyb681 = yyj681 > l
|
|
} else {
|
|
yyb681 = r.CheckBreak()
|
|
}
|
|
if yyb681 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.FSType = ""
|
|
} else {
|
|
x.FSType = string(r.DecodeString())
|
|
}
|
|
yyj681++
|
|
if yyhl681 {
|
|
yyb681 = yyj681 > l
|
|
} else {
|
|
yyb681 = r.CheckBreak()
|
|
}
|
|
if yyb681 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Partition = 0
|
|
} else {
|
|
x.Partition = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
yyj681++
|
|
if yyhl681 {
|
|
yyb681 = yyj681 > l
|
|
} else {
|
|
yyb681 = r.CheckBreak()
|
|
}
|
|
if yyb681 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
for {
|
|
yyj681++
|
|
if yyhl681 {
|
|
yyb681 = yyj681 > l
|
|
} else {
|
|
yyb681 = r.CheckBreak()
|
|
}
|
|
if yyb681 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj681-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *GitRepoVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym686 := z.EncBinary()
|
|
_ = yym686
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep687 := !z.EncBinary()
|
|
yy2arr687 := z.EncBasicHandle().StructToArray
|
|
var yyq687 [3]bool
|
|
_, _, _ = yysep687, yyq687, yy2arr687
|
|
const yyr687 bool = false
|
|
yyq687[1] = x.Revision != ""
|
|
yyq687[2] = x.Directory != ""
|
|
var yynn687 int
|
|
if yyr687 || yy2arr687 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn687 = 1
|
|
for _, b := range yyq687 {
|
|
if b {
|
|
yynn687++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn687)
|
|
yynn687 = 0
|
|
}
|
|
if yyr687 || yy2arr687 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym689 := z.EncBinary()
|
|
_ = yym689
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Repository))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("repository"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym690 := z.EncBinary()
|
|
_ = yym690
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Repository))
|
|
}
|
|
}
|
|
if yyr687 || yy2arr687 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq687[1] {
|
|
yym692 := z.EncBinary()
|
|
_ = yym692
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Revision))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq687[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("revision"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym693 := z.EncBinary()
|
|
_ = yym693
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Revision))
|
|
}
|
|
}
|
|
}
|
|
if yyr687 || yy2arr687 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq687[2] {
|
|
yym695 := z.EncBinary()
|
|
_ = yym695
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Directory))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq687[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("directory"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym696 := z.EncBinary()
|
|
_ = yym696
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Directory))
|
|
}
|
|
}
|
|
}
|
|
if yyr687 || yy2arr687 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *GitRepoVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym697 := z.DecBinary()
|
|
_ = yym697
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct698 := r.ContainerType()
|
|
if yyct698 == codecSelferValueTypeMap1234 {
|
|
yyl698 := r.ReadMapStart()
|
|
if yyl698 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl698, d)
|
|
}
|
|
} else if yyct698 == codecSelferValueTypeArray1234 {
|
|
yyl698 := r.ReadArrayStart()
|
|
if yyl698 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl698, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *GitRepoVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys699Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys699Slc
|
|
var yyhl699 bool = l >= 0
|
|
for yyj699 := 0; ; yyj699++ {
|
|
if yyhl699 {
|
|
if yyj699 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys699Slc = r.DecodeBytes(yys699Slc, true, true)
|
|
yys699 := string(yys699Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys699 {
|
|
case "repository":
|
|
if r.TryDecodeAsNil() {
|
|
x.Repository = ""
|
|
} else {
|
|
x.Repository = string(r.DecodeString())
|
|
}
|
|
case "revision":
|
|
if r.TryDecodeAsNil() {
|
|
x.Revision = ""
|
|
} else {
|
|
x.Revision = string(r.DecodeString())
|
|
}
|
|
case "directory":
|
|
if r.TryDecodeAsNil() {
|
|
x.Directory = ""
|
|
} else {
|
|
x.Directory = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys699)
|
|
} // end switch yys699
|
|
} // end for yyj699
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *GitRepoVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj703 int
|
|
var yyb703 bool
|
|
var yyhl703 bool = l >= 0
|
|
yyj703++
|
|
if yyhl703 {
|
|
yyb703 = yyj703 > l
|
|
} else {
|
|
yyb703 = r.CheckBreak()
|
|
}
|
|
if yyb703 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Repository = ""
|
|
} else {
|
|
x.Repository = string(r.DecodeString())
|
|
}
|
|
yyj703++
|
|
if yyhl703 {
|
|
yyb703 = yyj703 > l
|
|
} else {
|
|
yyb703 = r.CheckBreak()
|
|
}
|
|
if yyb703 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Revision = ""
|
|
} else {
|
|
x.Revision = string(r.DecodeString())
|
|
}
|
|
yyj703++
|
|
if yyhl703 {
|
|
yyb703 = yyj703 > l
|
|
} else {
|
|
yyb703 = r.CheckBreak()
|
|
}
|
|
if yyb703 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Directory = ""
|
|
} else {
|
|
x.Directory = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj703++
|
|
if yyhl703 {
|
|
yyb703 = yyj703 > l
|
|
} else {
|
|
yyb703 = r.CheckBreak()
|
|
}
|
|
if yyb703 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj703-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *SecretVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym707 := z.EncBinary()
|
|
_ = yym707
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep708 := !z.EncBinary()
|
|
yy2arr708 := z.EncBasicHandle().StructToArray
|
|
var yyq708 [1]bool
|
|
_, _, _ = yysep708, yyq708, yy2arr708
|
|
const yyr708 bool = false
|
|
var yynn708 int
|
|
if yyr708 || yy2arr708 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn708 = 1
|
|
for _, b := range yyq708 {
|
|
if b {
|
|
yynn708++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn708)
|
|
yynn708 = 0
|
|
}
|
|
if yyr708 || yy2arr708 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym710 := z.EncBinary()
|
|
_ = yym710
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.SecretName))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("secretName"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym711 := z.EncBinary()
|
|
_ = yym711
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.SecretName))
|
|
}
|
|
}
|
|
if yyr708 || yy2arr708 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *SecretVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym712 := z.DecBinary()
|
|
_ = yym712
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct713 := r.ContainerType()
|
|
if yyct713 == codecSelferValueTypeMap1234 {
|
|
yyl713 := r.ReadMapStart()
|
|
if yyl713 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl713, d)
|
|
}
|
|
} else if yyct713 == codecSelferValueTypeArray1234 {
|
|
yyl713 := r.ReadArrayStart()
|
|
if yyl713 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl713, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *SecretVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys714Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys714Slc
|
|
var yyhl714 bool = l >= 0
|
|
for yyj714 := 0; ; yyj714++ {
|
|
if yyhl714 {
|
|
if yyj714 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys714Slc = r.DecodeBytes(yys714Slc, true, true)
|
|
yys714 := string(yys714Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys714 {
|
|
case "secretName":
|
|
if r.TryDecodeAsNil() {
|
|
x.SecretName = ""
|
|
} else {
|
|
x.SecretName = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys714)
|
|
} // end switch yys714
|
|
} // end for yyj714
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *SecretVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj716 int
|
|
var yyb716 bool
|
|
var yyhl716 bool = l >= 0
|
|
yyj716++
|
|
if yyhl716 {
|
|
yyb716 = yyj716 > l
|
|
} else {
|
|
yyb716 = r.CheckBreak()
|
|
}
|
|
if yyb716 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.SecretName = ""
|
|
} else {
|
|
x.SecretName = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj716++
|
|
if yyhl716 {
|
|
yyb716 = yyj716 > l
|
|
} else {
|
|
yyb716 = r.CheckBreak()
|
|
}
|
|
if yyb716 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj716-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *NFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym718 := z.EncBinary()
|
|
_ = yym718
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep719 := !z.EncBinary()
|
|
yy2arr719 := z.EncBasicHandle().StructToArray
|
|
var yyq719 [3]bool
|
|
_, _, _ = yysep719, yyq719, yy2arr719
|
|
const yyr719 bool = false
|
|
yyq719[2] = x.ReadOnly != false
|
|
var yynn719 int
|
|
if yyr719 || yy2arr719 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn719 = 2
|
|
for _, b := range yyq719 {
|
|
if b {
|
|
yynn719++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn719)
|
|
yynn719 = 0
|
|
}
|
|
if yyr719 || yy2arr719 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym721 := z.EncBinary()
|
|
_ = yym721
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Server))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("server"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym722 := z.EncBinary()
|
|
_ = yym722
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Server))
|
|
}
|
|
}
|
|
if yyr719 || yy2arr719 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym724 := z.EncBinary()
|
|
_ = yym724
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("path"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym725 := z.EncBinary()
|
|
_ = yym725
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
|
|
}
|
|
}
|
|
if yyr719 || yy2arr719 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq719[2] {
|
|
yym727 := z.EncBinary()
|
|
_ = yym727
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq719[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym728 := z.EncBinary()
|
|
_ = yym728
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
}
|
|
}
|
|
if yyr719 || yy2arr719 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *NFSVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym729 := z.DecBinary()
|
|
_ = yym729
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct730 := r.ContainerType()
|
|
if yyct730 == codecSelferValueTypeMap1234 {
|
|
yyl730 := r.ReadMapStart()
|
|
if yyl730 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl730, d)
|
|
}
|
|
} else if yyct730 == codecSelferValueTypeArray1234 {
|
|
yyl730 := r.ReadArrayStart()
|
|
if yyl730 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl730, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *NFSVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys731Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys731Slc
|
|
var yyhl731 bool = l >= 0
|
|
for yyj731 := 0; ; yyj731++ {
|
|
if yyhl731 {
|
|
if yyj731 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys731Slc = r.DecodeBytes(yys731Slc, true, true)
|
|
yys731 := string(yys731Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys731 {
|
|
case "server":
|
|
if r.TryDecodeAsNil() {
|
|
x.Server = ""
|
|
} else {
|
|
x.Server = string(r.DecodeString())
|
|
}
|
|
case "path":
|
|
if r.TryDecodeAsNil() {
|
|
x.Path = ""
|
|
} else {
|
|
x.Path = string(r.DecodeString())
|
|
}
|
|
case "readOnly":
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys731)
|
|
} // end switch yys731
|
|
} // end for yyj731
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *NFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj735 int
|
|
var yyb735 bool
|
|
var yyhl735 bool = l >= 0
|
|
yyj735++
|
|
if yyhl735 {
|
|
yyb735 = yyj735 > l
|
|
} else {
|
|
yyb735 = r.CheckBreak()
|
|
}
|
|
if yyb735 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Server = ""
|
|
} else {
|
|
x.Server = string(r.DecodeString())
|
|
}
|
|
yyj735++
|
|
if yyhl735 {
|
|
yyb735 = yyj735 > l
|
|
} else {
|
|
yyb735 = r.CheckBreak()
|
|
}
|
|
if yyb735 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Path = ""
|
|
} else {
|
|
x.Path = string(r.DecodeString())
|
|
}
|
|
yyj735++
|
|
if yyhl735 {
|
|
yyb735 = yyj735 > l
|
|
} else {
|
|
yyb735 = r.CheckBreak()
|
|
}
|
|
if yyb735 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
for {
|
|
yyj735++
|
|
if yyhl735 {
|
|
yyb735 = yyj735 > l
|
|
} else {
|
|
yyb735 = r.CheckBreak()
|
|
}
|
|
if yyb735 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj735-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *GlusterfsVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym739 := z.EncBinary()
|
|
_ = yym739
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep740 := !z.EncBinary()
|
|
yy2arr740 := z.EncBasicHandle().StructToArray
|
|
var yyq740 [3]bool
|
|
_, _, _ = yysep740, yyq740, yy2arr740
|
|
const yyr740 bool = false
|
|
yyq740[2] = x.ReadOnly != false
|
|
var yynn740 int
|
|
if yyr740 || yy2arr740 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn740 = 2
|
|
for _, b := range yyq740 {
|
|
if b {
|
|
yynn740++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn740)
|
|
yynn740 = 0
|
|
}
|
|
if yyr740 || yy2arr740 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym742 := z.EncBinary()
|
|
_ = yym742
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.EndpointsName))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("endpoints"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym743 := z.EncBinary()
|
|
_ = yym743
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.EndpointsName))
|
|
}
|
|
}
|
|
if yyr740 || yy2arr740 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym745 := z.EncBinary()
|
|
_ = yym745
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("path"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym746 := z.EncBinary()
|
|
_ = yym746
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
|
|
}
|
|
}
|
|
if yyr740 || yy2arr740 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq740[2] {
|
|
yym748 := z.EncBinary()
|
|
_ = yym748
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq740[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym749 := z.EncBinary()
|
|
_ = yym749
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
}
|
|
}
|
|
if yyr740 || yy2arr740 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *GlusterfsVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym750 := z.DecBinary()
|
|
_ = yym750
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct751 := r.ContainerType()
|
|
if yyct751 == codecSelferValueTypeMap1234 {
|
|
yyl751 := r.ReadMapStart()
|
|
if yyl751 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl751, d)
|
|
}
|
|
} else if yyct751 == codecSelferValueTypeArray1234 {
|
|
yyl751 := r.ReadArrayStart()
|
|
if yyl751 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl751, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *GlusterfsVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys752Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys752Slc
|
|
var yyhl752 bool = l >= 0
|
|
for yyj752 := 0; ; yyj752++ {
|
|
if yyhl752 {
|
|
if yyj752 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys752Slc = r.DecodeBytes(yys752Slc, true, true)
|
|
yys752 := string(yys752Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys752 {
|
|
case "endpoints":
|
|
if r.TryDecodeAsNil() {
|
|
x.EndpointsName = ""
|
|
} else {
|
|
x.EndpointsName = string(r.DecodeString())
|
|
}
|
|
case "path":
|
|
if r.TryDecodeAsNil() {
|
|
x.Path = ""
|
|
} else {
|
|
x.Path = string(r.DecodeString())
|
|
}
|
|
case "readOnly":
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys752)
|
|
} // end switch yys752
|
|
} // end for yyj752
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *GlusterfsVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj756 int
|
|
var yyb756 bool
|
|
var yyhl756 bool = l >= 0
|
|
yyj756++
|
|
if yyhl756 {
|
|
yyb756 = yyj756 > l
|
|
} else {
|
|
yyb756 = r.CheckBreak()
|
|
}
|
|
if yyb756 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.EndpointsName = ""
|
|
} else {
|
|
x.EndpointsName = string(r.DecodeString())
|
|
}
|
|
yyj756++
|
|
if yyhl756 {
|
|
yyb756 = yyj756 > l
|
|
} else {
|
|
yyb756 = r.CheckBreak()
|
|
}
|
|
if yyb756 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Path = ""
|
|
} else {
|
|
x.Path = string(r.DecodeString())
|
|
}
|
|
yyj756++
|
|
if yyhl756 {
|
|
yyb756 = yyj756 > l
|
|
} else {
|
|
yyb756 = r.CheckBreak()
|
|
}
|
|
if yyb756 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
for {
|
|
yyj756++
|
|
if yyhl756 {
|
|
yyb756 = yyj756 > l
|
|
} else {
|
|
yyb756 = r.CheckBreak()
|
|
}
|
|
if yyb756 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj756-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym760 := z.EncBinary()
|
|
_ = yym760
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep761 := !z.EncBinary()
|
|
yy2arr761 := z.EncBasicHandle().StructToArray
|
|
var yyq761 [8]bool
|
|
_, _, _ = yysep761, yyq761, yy2arr761
|
|
const yyr761 bool = false
|
|
yyq761[2] = x.FSType != ""
|
|
yyq761[7] = x.ReadOnly != false
|
|
var yynn761 int
|
|
if yyr761 || yy2arr761 {
|
|
r.EncodeArrayStart(8)
|
|
} else {
|
|
yynn761 = 6
|
|
for _, b := range yyq761 {
|
|
if b {
|
|
yynn761++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn761)
|
|
yynn761 = 0
|
|
}
|
|
if yyr761 || yy2arr761 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.CephMonitors == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym763 := z.EncBinary()
|
|
_ = yym763
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.CephMonitors, false, e)
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("monitors"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.CephMonitors == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym764 := z.EncBinary()
|
|
_ = yym764
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.CephMonitors, false, e)
|
|
}
|
|
}
|
|
}
|
|
if yyr761 || yy2arr761 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym766 := z.EncBinary()
|
|
_ = yym766
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.RBDImage))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("image"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym767 := z.EncBinary()
|
|
_ = yym767
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.RBDImage))
|
|
}
|
|
}
|
|
if yyr761 || yy2arr761 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq761[2] {
|
|
yym769 := z.EncBinary()
|
|
_ = yym769
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq761[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym770 := z.EncBinary()
|
|
_ = yym770
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
|
|
}
|
|
}
|
|
}
|
|
if yyr761 || yy2arr761 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym772 := z.EncBinary()
|
|
_ = yym772
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.RBDPool))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("pool"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym773 := z.EncBinary()
|
|
_ = yym773
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.RBDPool))
|
|
}
|
|
}
|
|
if yyr761 || yy2arr761 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym775 := z.EncBinary()
|
|
_ = yym775
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.RadosUser))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("user"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym776 := z.EncBinary()
|
|
_ = yym776
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.RadosUser))
|
|
}
|
|
}
|
|
if yyr761 || yy2arr761 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym778 := z.EncBinary()
|
|
_ = yym778
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Keyring))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("keyring"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym779 := z.EncBinary()
|
|
_ = yym779
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Keyring))
|
|
}
|
|
}
|
|
if yyr761 || yy2arr761 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.SecretRef == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.SecretRef.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("secretRef"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.SecretRef == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.SecretRef.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr761 || yy2arr761 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq761[7] {
|
|
yym782 := z.EncBinary()
|
|
_ = yym782
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq761[7] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym783 := z.EncBinary()
|
|
_ = yym783
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
}
|
|
}
|
|
if yyr761 || yy2arr761 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *RBDVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym784 := z.DecBinary()
|
|
_ = yym784
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct785 := r.ContainerType()
|
|
if yyct785 == codecSelferValueTypeMap1234 {
|
|
yyl785 := r.ReadMapStart()
|
|
if yyl785 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl785, d)
|
|
}
|
|
} else if yyct785 == codecSelferValueTypeArray1234 {
|
|
yyl785 := r.ReadArrayStart()
|
|
if yyl785 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl785, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *RBDVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys786Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys786Slc
|
|
var yyhl786 bool = l >= 0
|
|
for yyj786 := 0; ; yyj786++ {
|
|
if yyhl786 {
|
|
if yyj786 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys786Slc = r.DecodeBytes(yys786Slc, true, true)
|
|
yys786 := string(yys786Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys786 {
|
|
case "monitors":
|
|
if r.TryDecodeAsNil() {
|
|
x.CephMonitors = nil
|
|
} else {
|
|
yyv787 := &x.CephMonitors
|
|
yym788 := z.DecBinary()
|
|
_ = yym788
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv787, false, d)
|
|
}
|
|
}
|
|
case "image":
|
|
if r.TryDecodeAsNil() {
|
|
x.RBDImage = ""
|
|
} else {
|
|
x.RBDImage = string(r.DecodeString())
|
|
}
|
|
case "fsType":
|
|
if r.TryDecodeAsNil() {
|
|
x.FSType = ""
|
|
} else {
|
|
x.FSType = string(r.DecodeString())
|
|
}
|
|
case "pool":
|
|
if r.TryDecodeAsNil() {
|
|
x.RBDPool = ""
|
|
} else {
|
|
x.RBDPool = string(r.DecodeString())
|
|
}
|
|
case "user":
|
|
if r.TryDecodeAsNil() {
|
|
x.RadosUser = ""
|
|
} else {
|
|
x.RadosUser = string(r.DecodeString())
|
|
}
|
|
case "keyring":
|
|
if r.TryDecodeAsNil() {
|
|
x.Keyring = ""
|
|
} else {
|
|
x.Keyring = string(r.DecodeString())
|
|
}
|
|
case "secretRef":
|
|
if r.TryDecodeAsNil() {
|
|
if x.SecretRef != nil {
|
|
x.SecretRef = nil
|
|
}
|
|
} else {
|
|
if x.SecretRef == nil {
|
|
x.SecretRef = new(LocalObjectReference)
|
|
}
|
|
x.SecretRef.CodecDecodeSelf(d)
|
|
}
|
|
case "readOnly":
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys786)
|
|
} // end switch yys786
|
|
} // end for yyj786
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *RBDVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj796 int
|
|
var yyb796 bool
|
|
var yyhl796 bool = l >= 0
|
|
yyj796++
|
|
if yyhl796 {
|
|
yyb796 = yyj796 > l
|
|
} else {
|
|
yyb796 = r.CheckBreak()
|
|
}
|
|
if yyb796 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.CephMonitors = nil
|
|
} else {
|
|
yyv797 := &x.CephMonitors
|
|
yym798 := z.DecBinary()
|
|
_ = yym798
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv797, false, d)
|
|
}
|
|
}
|
|
yyj796++
|
|
if yyhl796 {
|
|
yyb796 = yyj796 > l
|
|
} else {
|
|
yyb796 = r.CheckBreak()
|
|
}
|
|
if yyb796 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.RBDImage = ""
|
|
} else {
|
|
x.RBDImage = string(r.DecodeString())
|
|
}
|
|
yyj796++
|
|
if yyhl796 {
|
|
yyb796 = yyj796 > l
|
|
} else {
|
|
yyb796 = r.CheckBreak()
|
|
}
|
|
if yyb796 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.FSType = ""
|
|
} else {
|
|
x.FSType = string(r.DecodeString())
|
|
}
|
|
yyj796++
|
|
if yyhl796 {
|
|
yyb796 = yyj796 > l
|
|
} else {
|
|
yyb796 = r.CheckBreak()
|
|
}
|
|
if yyb796 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.RBDPool = ""
|
|
} else {
|
|
x.RBDPool = string(r.DecodeString())
|
|
}
|
|
yyj796++
|
|
if yyhl796 {
|
|
yyb796 = yyj796 > l
|
|
} else {
|
|
yyb796 = r.CheckBreak()
|
|
}
|
|
if yyb796 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.RadosUser = ""
|
|
} else {
|
|
x.RadosUser = string(r.DecodeString())
|
|
}
|
|
yyj796++
|
|
if yyhl796 {
|
|
yyb796 = yyj796 > l
|
|
} else {
|
|
yyb796 = r.CheckBreak()
|
|
}
|
|
if yyb796 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Keyring = ""
|
|
} else {
|
|
x.Keyring = string(r.DecodeString())
|
|
}
|
|
yyj796++
|
|
if yyhl796 {
|
|
yyb796 = yyj796 > l
|
|
} else {
|
|
yyb796 = r.CheckBreak()
|
|
}
|
|
if yyb796 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.SecretRef != nil {
|
|
x.SecretRef = nil
|
|
}
|
|
} else {
|
|
if x.SecretRef == nil {
|
|
x.SecretRef = new(LocalObjectReference)
|
|
}
|
|
x.SecretRef.CodecDecodeSelf(d)
|
|
}
|
|
yyj796++
|
|
if yyhl796 {
|
|
yyb796 = yyj796 > l
|
|
} else {
|
|
yyb796 = r.CheckBreak()
|
|
}
|
|
if yyb796 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
for {
|
|
yyj796++
|
|
if yyhl796 {
|
|
yyb796 = yyj796 > l
|
|
} else {
|
|
yyb796 = r.CheckBreak()
|
|
}
|
|
if yyb796 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj796-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *CinderVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym806 := z.EncBinary()
|
|
_ = yym806
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep807 := !z.EncBinary()
|
|
yy2arr807 := z.EncBasicHandle().StructToArray
|
|
var yyq807 [3]bool
|
|
_, _, _ = yysep807, yyq807, yy2arr807
|
|
const yyr807 bool = false
|
|
yyq807[1] = x.FSType != ""
|
|
yyq807[2] = x.ReadOnly != false
|
|
var yynn807 int
|
|
if yyr807 || yy2arr807 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn807 = 1
|
|
for _, b := range yyq807 {
|
|
if b {
|
|
yynn807++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn807)
|
|
yynn807 = 0
|
|
}
|
|
if yyr807 || yy2arr807 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym809 := z.EncBinary()
|
|
_ = yym809
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("volumeID"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym810 := z.EncBinary()
|
|
_ = yym810
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID))
|
|
}
|
|
}
|
|
if yyr807 || yy2arr807 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq807[1] {
|
|
yym812 := z.EncBinary()
|
|
_ = yym812
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq807[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym813 := z.EncBinary()
|
|
_ = yym813
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
|
|
}
|
|
}
|
|
}
|
|
if yyr807 || yy2arr807 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq807[2] {
|
|
yym815 := z.EncBinary()
|
|
_ = yym815
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq807[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym816 := z.EncBinary()
|
|
_ = yym816
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
}
|
|
}
|
|
if yyr807 || yy2arr807 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *CinderVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym817 := z.DecBinary()
|
|
_ = yym817
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct818 := r.ContainerType()
|
|
if yyct818 == codecSelferValueTypeMap1234 {
|
|
yyl818 := r.ReadMapStart()
|
|
if yyl818 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl818, d)
|
|
}
|
|
} else if yyct818 == codecSelferValueTypeArray1234 {
|
|
yyl818 := r.ReadArrayStart()
|
|
if yyl818 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl818, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *CinderVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys819Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys819Slc
|
|
var yyhl819 bool = l >= 0
|
|
for yyj819 := 0; ; yyj819++ {
|
|
if yyhl819 {
|
|
if yyj819 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys819Slc = r.DecodeBytes(yys819Slc, true, true)
|
|
yys819 := string(yys819Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys819 {
|
|
case "volumeID":
|
|
if r.TryDecodeAsNil() {
|
|
x.VolumeID = ""
|
|
} else {
|
|
x.VolumeID = string(r.DecodeString())
|
|
}
|
|
case "fsType":
|
|
if r.TryDecodeAsNil() {
|
|
x.FSType = ""
|
|
} else {
|
|
x.FSType = string(r.DecodeString())
|
|
}
|
|
case "readOnly":
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys819)
|
|
} // end switch yys819
|
|
} // end for yyj819
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *CinderVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj823 int
|
|
var yyb823 bool
|
|
var yyhl823 bool = l >= 0
|
|
yyj823++
|
|
if yyhl823 {
|
|
yyb823 = yyj823 > l
|
|
} else {
|
|
yyb823 = r.CheckBreak()
|
|
}
|
|
if yyb823 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.VolumeID = ""
|
|
} else {
|
|
x.VolumeID = string(r.DecodeString())
|
|
}
|
|
yyj823++
|
|
if yyhl823 {
|
|
yyb823 = yyj823 > l
|
|
} else {
|
|
yyb823 = r.CheckBreak()
|
|
}
|
|
if yyb823 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.FSType = ""
|
|
} else {
|
|
x.FSType = string(r.DecodeString())
|
|
}
|
|
yyj823++
|
|
if yyhl823 {
|
|
yyb823 = yyj823 > l
|
|
} else {
|
|
yyb823 = r.CheckBreak()
|
|
}
|
|
if yyb823 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
for {
|
|
yyj823++
|
|
if yyhl823 {
|
|
yyb823 = yyj823 > l
|
|
} else {
|
|
yyb823 = r.CheckBreak()
|
|
}
|
|
if yyb823 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj823-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *CephFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym827 := z.EncBinary()
|
|
_ = yym827
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep828 := !z.EncBinary()
|
|
yy2arr828 := z.EncBasicHandle().StructToArray
|
|
var yyq828 [5]bool
|
|
_, _, _ = yysep828, yyq828, yy2arr828
|
|
const yyr828 bool = false
|
|
yyq828[1] = x.User != ""
|
|
yyq828[2] = x.SecretFile != ""
|
|
yyq828[3] = x.SecretRef != nil
|
|
yyq828[4] = x.ReadOnly != false
|
|
var yynn828 int
|
|
if yyr828 || yy2arr828 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn828 = 1
|
|
for _, b := range yyq828 {
|
|
if b {
|
|
yynn828++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn828)
|
|
yynn828 = 0
|
|
}
|
|
if yyr828 || yy2arr828 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Monitors == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym830 := z.EncBinary()
|
|
_ = yym830
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.Monitors, false, e)
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("monitors"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Monitors == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym831 := z.EncBinary()
|
|
_ = yym831
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.Monitors, false, e)
|
|
}
|
|
}
|
|
}
|
|
if yyr828 || yy2arr828 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq828[1] {
|
|
yym833 := z.EncBinary()
|
|
_ = yym833
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.User))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq828[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("user"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym834 := z.EncBinary()
|
|
_ = yym834
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.User))
|
|
}
|
|
}
|
|
}
|
|
if yyr828 || yy2arr828 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq828[2] {
|
|
yym836 := z.EncBinary()
|
|
_ = yym836
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq828[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("secretFile"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym837 := z.EncBinary()
|
|
_ = yym837
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile))
|
|
}
|
|
}
|
|
}
|
|
if yyr828 || yy2arr828 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq828[3] {
|
|
if x.SecretRef == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.SecretRef.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq828[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("secretRef"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.SecretRef == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.SecretRef.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr828 || yy2arr828 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq828[4] {
|
|
yym840 := z.EncBinary()
|
|
_ = yym840
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq828[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym841 := z.EncBinary()
|
|
_ = yym841
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
}
|
|
}
|
|
if yyr828 || yy2arr828 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *CephFSVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym842 := z.DecBinary()
|
|
_ = yym842
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct843 := r.ContainerType()
|
|
if yyct843 == codecSelferValueTypeMap1234 {
|
|
yyl843 := r.ReadMapStart()
|
|
if yyl843 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl843, d)
|
|
}
|
|
} else if yyct843 == codecSelferValueTypeArray1234 {
|
|
yyl843 := r.ReadArrayStart()
|
|
if yyl843 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl843, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *CephFSVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys844Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys844Slc
|
|
var yyhl844 bool = l >= 0
|
|
for yyj844 := 0; ; yyj844++ {
|
|
if yyhl844 {
|
|
if yyj844 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys844Slc = r.DecodeBytes(yys844Slc, true, true)
|
|
yys844 := string(yys844Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys844 {
|
|
case "monitors":
|
|
if r.TryDecodeAsNil() {
|
|
x.Monitors = nil
|
|
} else {
|
|
yyv845 := &x.Monitors
|
|
yym846 := z.DecBinary()
|
|
_ = yym846
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv845, false, d)
|
|
}
|
|
}
|
|
case "user":
|
|
if r.TryDecodeAsNil() {
|
|
x.User = ""
|
|
} else {
|
|
x.User = string(r.DecodeString())
|
|
}
|
|
case "secretFile":
|
|
if r.TryDecodeAsNil() {
|
|
x.SecretFile = ""
|
|
} else {
|
|
x.SecretFile = string(r.DecodeString())
|
|
}
|
|
case "secretRef":
|
|
if r.TryDecodeAsNil() {
|
|
if x.SecretRef != nil {
|
|
x.SecretRef = nil
|
|
}
|
|
} else {
|
|
if x.SecretRef == nil {
|
|
x.SecretRef = new(LocalObjectReference)
|
|
}
|
|
x.SecretRef.CodecDecodeSelf(d)
|
|
}
|
|
case "readOnly":
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys844)
|
|
} // end switch yys844
|
|
} // end for yyj844
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *CephFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj851 int
|
|
var yyb851 bool
|
|
var yyhl851 bool = l >= 0
|
|
yyj851++
|
|
if yyhl851 {
|
|
yyb851 = yyj851 > l
|
|
} else {
|
|
yyb851 = r.CheckBreak()
|
|
}
|
|
if yyb851 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Monitors = nil
|
|
} else {
|
|
yyv852 := &x.Monitors
|
|
yym853 := z.DecBinary()
|
|
_ = yym853
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv852, false, d)
|
|
}
|
|
}
|
|
yyj851++
|
|
if yyhl851 {
|
|
yyb851 = yyj851 > l
|
|
} else {
|
|
yyb851 = r.CheckBreak()
|
|
}
|
|
if yyb851 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.User = ""
|
|
} else {
|
|
x.User = string(r.DecodeString())
|
|
}
|
|
yyj851++
|
|
if yyhl851 {
|
|
yyb851 = yyj851 > l
|
|
} else {
|
|
yyb851 = r.CheckBreak()
|
|
}
|
|
if yyb851 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.SecretFile = ""
|
|
} else {
|
|
x.SecretFile = string(r.DecodeString())
|
|
}
|
|
yyj851++
|
|
if yyhl851 {
|
|
yyb851 = yyj851 > l
|
|
} else {
|
|
yyb851 = r.CheckBreak()
|
|
}
|
|
if yyb851 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.SecretRef != nil {
|
|
x.SecretRef = nil
|
|
}
|
|
} else {
|
|
if x.SecretRef == nil {
|
|
x.SecretRef = new(LocalObjectReference)
|
|
}
|
|
x.SecretRef.CodecDecodeSelf(d)
|
|
}
|
|
yyj851++
|
|
if yyhl851 {
|
|
yyb851 = yyj851 > l
|
|
} else {
|
|
yyb851 = r.CheckBreak()
|
|
}
|
|
if yyb851 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
for {
|
|
yyj851++
|
|
if yyhl851 {
|
|
yyb851 = yyj851 > l
|
|
} else {
|
|
yyb851 = r.CheckBreak()
|
|
}
|
|
if yyb851 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj851-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *FlockerVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym858 := z.EncBinary()
|
|
_ = yym858
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep859 := !z.EncBinary()
|
|
yy2arr859 := z.EncBasicHandle().StructToArray
|
|
var yyq859 [1]bool
|
|
_, _, _ = yysep859, yyq859, yy2arr859
|
|
const yyr859 bool = false
|
|
var yynn859 int
|
|
if yyr859 || yy2arr859 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn859 = 1
|
|
for _, b := range yyq859 {
|
|
if b {
|
|
yynn859++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn859)
|
|
yynn859 = 0
|
|
}
|
|
if yyr859 || yy2arr859 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym861 := z.EncBinary()
|
|
_ = yym861
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.DatasetName))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("datasetName"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym862 := z.EncBinary()
|
|
_ = yym862
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.DatasetName))
|
|
}
|
|
}
|
|
if yyr859 || yy2arr859 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *FlockerVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym863 := z.DecBinary()
|
|
_ = yym863
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct864 := r.ContainerType()
|
|
if yyct864 == codecSelferValueTypeMap1234 {
|
|
yyl864 := r.ReadMapStart()
|
|
if yyl864 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl864, d)
|
|
}
|
|
} else if yyct864 == codecSelferValueTypeArray1234 {
|
|
yyl864 := r.ReadArrayStart()
|
|
if yyl864 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl864, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *FlockerVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys865Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys865Slc
|
|
var yyhl865 bool = l >= 0
|
|
for yyj865 := 0; ; yyj865++ {
|
|
if yyhl865 {
|
|
if yyj865 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys865Slc = r.DecodeBytes(yys865Slc, true, true)
|
|
yys865 := string(yys865Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys865 {
|
|
case "datasetName":
|
|
if r.TryDecodeAsNil() {
|
|
x.DatasetName = ""
|
|
} else {
|
|
x.DatasetName = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys865)
|
|
} // end switch yys865
|
|
} // end for yyj865
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *FlockerVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj867 int
|
|
var yyb867 bool
|
|
var yyhl867 bool = l >= 0
|
|
yyj867++
|
|
if yyhl867 {
|
|
yyb867 = yyj867 > l
|
|
} else {
|
|
yyb867 = r.CheckBreak()
|
|
}
|
|
if yyb867 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.DatasetName = ""
|
|
} else {
|
|
x.DatasetName = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj867++
|
|
if yyhl867 {
|
|
yyb867 = yyj867 > l
|
|
} else {
|
|
yyb867 = r.CheckBreak()
|
|
}
|
|
if yyb867 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj867-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *DownwardAPIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym869 := z.EncBinary()
|
|
_ = yym869
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep870 := !z.EncBinary()
|
|
yy2arr870 := z.EncBasicHandle().StructToArray
|
|
var yyq870 [1]bool
|
|
_, _, _ = yysep870, yyq870, yy2arr870
|
|
const yyr870 bool = false
|
|
yyq870[0] = len(x.Items) != 0
|
|
var yynn870 int
|
|
if yyr870 || yy2arr870 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn870 = 0
|
|
for _, b := range yyq870 {
|
|
if b {
|
|
yynn870++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn870)
|
|
yynn870 = 0
|
|
}
|
|
if yyr870 || yy2arr870 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq870[0] {
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym872 := z.EncBinary()
|
|
_ = yym872
|
|
if false {
|
|
} else {
|
|
h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq870[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("items"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym873 := z.EncBinary()
|
|
_ = yym873
|
|
if false {
|
|
} else {
|
|
h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr870 || yy2arr870 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *DownwardAPIVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym874 := z.DecBinary()
|
|
_ = yym874
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct875 := r.ContainerType()
|
|
if yyct875 == codecSelferValueTypeMap1234 {
|
|
yyl875 := r.ReadMapStart()
|
|
if yyl875 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl875, d)
|
|
}
|
|
} else if yyct875 == codecSelferValueTypeArray1234 {
|
|
yyl875 := r.ReadArrayStart()
|
|
if yyl875 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl875, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *DownwardAPIVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys876Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys876Slc
|
|
var yyhl876 bool = l >= 0
|
|
for yyj876 := 0; ; yyj876++ {
|
|
if yyhl876 {
|
|
if yyj876 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys876Slc = r.DecodeBytes(yys876Slc, true, true)
|
|
yys876 := string(yys876Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys876 {
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv877 := &x.Items
|
|
yym878 := z.DecBinary()
|
|
_ = yym878
|
|
if false {
|
|
} else {
|
|
h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv877), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys876)
|
|
} // end switch yys876
|
|
} // end for yyj876
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *DownwardAPIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj879 int
|
|
var yyb879 bool
|
|
var yyhl879 bool = l >= 0
|
|
yyj879++
|
|
if yyhl879 {
|
|
yyb879 = yyj879 > l
|
|
} else {
|
|
yyb879 = r.CheckBreak()
|
|
}
|
|
if yyb879 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv880 := &x.Items
|
|
yym881 := z.DecBinary()
|
|
_ = yym881
|
|
if false {
|
|
} else {
|
|
h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv880), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj879++
|
|
if yyhl879 {
|
|
yyb879 = yyj879 > l
|
|
} else {
|
|
yyb879 = r.CheckBreak()
|
|
}
|
|
if yyb879 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj879-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *DownwardAPIVolumeFile) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym882 := z.EncBinary()
|
|
_ = yym882
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep883 := !z.EncBinary()
|
|
yy2arr883 := z.EncBasicHandle().StructToArray
|
|
var yyq883 [2]bool
|
|
_, _, _ = yysep883, yyq883, yy2arr883
|
|
const yyr883 bool = false
|
|
var yynn883 int
|
|
if yyr883 || yy2arr883 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn883 = 2
|
|
for _, b := range yyq883 {
|
|
if b {
|
|
yynn883++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn883)
|
|
yynn883 = 0
|
|
}
|
|
if yyr883 || yy2arr883 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym885 := z.EncBinary()
|
|
_ = yym885
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("path"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym886 := z.EncBinary()
|
|
_ = yym886
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
|
|
}
|
|
}
|
|
if yyr883 || yy2arr883 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy888 := &x.FieldRef
|
|
yy888.CodecEncodeSelf(e)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("fieldRef"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy889 := &x.FieldRef
|
|
yy889.CodecEncodeSelf(e)
|
|
}
|
|
if yyr883 || yy2arr883 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *DownwardAPIVolumeFile) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym890 := z.DecBinary()
|
|
_ = yym890
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct891 := r.ContainerType()
|
|
if yyct891 == codecSelferValueTypeMap1234 {
|
|
yyl891 := r.ReadMapStart()
|
|
if yyl891 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl891, d)
|
|
}
|
|
} else if yyct891 == codecSelferValueTypeArray1234 {
|
|
yyl891 := r.ReadArrayStart()
|
|
if yyl891 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl891, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *DownwardAPIVolumeFile) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys892Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys892Slc
|
|
var yyhl892 bool = l >= 0
|
|
for yyj892 := 0; ; yyj892++ {
|
|
if yyhl892 {
|
|
if yyj892 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys892Slc = r.DecodeBytes(yys892Slc, true, true)
|
|
yys892 := string(yys892Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys892 {
|
|
case "path":
|
|
if r.TryDecodeAsNil() {
|
|
x.Path = ""
|
|
} else {
|
|
x.Path = string(r.DecodeString())
|
|
}
|
|
case "fieldRef":
|
|
if r.TryDecodeAsNil() {
|
|
x.FieldRef = ObjectFieldSelector{}
|
|
} else {
|
|
yyv894 := &x.FieldRef
|
|
yyv894.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys892)
|
|
} // end switch yys892
|
|
} // end for yyj892
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *DownwardAPIVolumeFile) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj895 int
|
|
var yyb895 bool
|
|
var yyhl895 bool = l >= 0
|
|
yyj895++
|
|
if yyhl895 {
|
|
yyb895 = yyj895 > l
|
|
} else {
|
|
yyb895 = r.CheckBreak()
|
|
}
|
|
if yyb895 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Path = ""
|
|
} else {
|
|
x.Path = string(r.DecodeString())
|
|
}
|
|
yyj895++
|
|
if yyhl895 {
|
|
yyb895 = yyj895 > l
|
|
} else {
|
|
yyb895 = r.CheckBreak()
|
|
}
|
|
if yyb895 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.FieldRef = ObjectFieldSelector{}
|
|
} else {
|
|
yyv897 := &x.FieldRef
|
|
yyv897.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj895++
|
|
if yyhl895 {
|
|
yyb895 = yyj895 > l
|
|
} else {
|
|
yyb895 = r.CheckBreak()
|
|
}
|
|
if yyb895 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj895-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *ContainerPort) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym898 := z.EncBinary()
|
|
_ = yym898
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep899 := !z.EncBinary()
|
|
yy2arr899 := z.EncBasicHandle().StructToArray
|
|
var yyq899 [5]bool
|
|
_, _, _ = yysep899, yyq899, yy2arr899
|
|
const yyr899 bool = false
|
|
yyq899[0] = x.Name != ""
|
|
yyq899[1] = x.HostPort != 0
|
|
yyq899[3] = x.Protocol != ""
|
|
yyq899[4] = x.HostIP != ""
|
|
var yynn899 int
|
|
if yyr899 || yy2arr899 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn899 = 1
|
|
for _, b := range yyq899 {
|
|
if b {
|
|
yynn899++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn899)
|
|
yynn899 = 0
|
|
}
|
|
if yyr899 || yy2arr899 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq899[0] {
|
|
yym901 := z.EncBinary()
|
|
_ = yym901
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq899[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("name"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym902 := z.EncBinary()
|
|
_ = yym902
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
}
|
|
}
|
|
if yyr899 || yy2arr899 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq899[1] {
|
|
yym904 := z.EncBinary()
|
|
_ = yym904
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.HostPort))
|
|
}
|
|
} else {
|
|
r.EncodeInt(0)
|
|
}
|
|
} else {
|
|
if yyq899[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("hostPort"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym905 := z.EncBinary()
|
|
_ = yym905
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.HostPort))
|
|
}
|
|
}
|
|
}
|
|
if yyr899 || yy2arr899 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym907 := z.EncBinary()
|
|
_ = yym907
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.ContainerPort))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("containerPort"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym908 := z.EncBinary()
|
|
_ = yym908
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.ContainerPort))
|
|
}
|
|
}
|
|
if yyr899 || yy2arr899 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq899[3] {
|
|
x.Protocol.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq899[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("protocol"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Protocol.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr899 || yy2arr899 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq899[4] {
|
|
yym911 := z.EncBinary()
|
|
_ = yym911
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.HostIP))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq899[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("hostIP"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym912 := z.EncBinary()
|
|
_ = yym912
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.HostIP))
|
|
}
|
|
}
|
|
}
|
|
if yyr899 || yy2arr899 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ContainerPort) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym913 := z.DecBinary()
|
|
_ = yym913
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct914 := r.ContainerType()
|
|
if yyct914 == codecSelferValueTypeMap1234 {
|
|
yyl914 := r.ReadMapStart()
|
|
if yyl914 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl914, d)
|
|
}
|
|
} else if yyct914 == codecSelferValueTypeArray1234 {
|
|
yyl914 := r.ReadArrayStart()
|
|
if yyl914 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl914, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ContainerPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys915Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys915Slc
|
|
var yyhl915 bool = l >= 0
|
|
for yyj915 := 0; ; yyj915++ {
|
|
if yyhl915 {
|
|
if yyj915 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys915Slc = r.DecodeBytes(yys915Slc, true, true)
|
|
yys915 := string(yys915Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys915 {
|
|
case "name":
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
case "hostPort":
|
|
if r.TryDecodeAsNil() {
|
|
x.HostPort = 0
|
|
} else {
|
|
x.HostPort = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
case "containerPort":
|
|
if r.TryDecodeAsNil() {
|
|
x.ContainerPort = 0
|
|
} else {
|
|
x.ContainerPort = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
case "protocol":
|
|
if r.TryDecodeAsNil() {
|
|
x.Protocol = ""
|
|
} else {
|
|
x.Protocol = Protocol(r.DecodeString())
|
|
}
|
|
case "hostIP":
|
|
if r.TryDecodeAsNil() {
|
|
x.HostIP = ""
|
|
} else {
|
|
x.HostIP = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys915)
|
|
} // end switch yys915
|
|
} // end for yyj915
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *ContainerPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj921 int
|
|
var yyb921 bool
|
|
var yyhl921 bool = l >= 0
|
|
yyj921++
|
|
if yyhl921 {
|
|
yyb921 = yyj921 > l
|
|
} else {
|
|
yyb921 = r.CheckBreak()
|
|
}
|
|
if yyb921 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
yyj921++
|
|
if yyhl921 {
|
|
yyb921 = yyj921 > l
|
|
} else {
|
|
yyb921 = r.CheckBreak()
|
|
}
|
|
if yyb921 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.HostPort = 0
|
|
} else {
|
|
x.HostPort = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
yyj921++
|
|
if yyhl921 {
|
|
yyb921 = yyj921 > l
|
|
} else {
|
|
yyb921 = r.CheckBreak()
|
|
}
|
|
if yyb921 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ContainerPort = 0
|
|
} else {
|
|
x.ContainerPort = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
yyj921++
|
|
if yyhl921 {
|
|
yyb921 = yyj921 > l
|
|
} else {
|
|
yyb921 = r.CheckBreak()
|
|
}
|
|
if yyb921 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Protocol = ""
|
|
} else {
|
|
x.Protocol = Protocol(r.DecodeString())
|
|
}
|
|
yyj921++
|
|
if yyhl921 {
|
|
yyb921 = yyj921 > l
|
|
} else {
|
|
yyb921 = r.CheckBreak()
|
|
}
|
|
if yyb921 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.HostIP = ""
|
|
} else {
|
|
x.HostIP = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj921++
|
|
if yyhl921 {
|
|
yyb921 = yyj921 > l
|
|
} else {
|
|
yyb921 = r.CheckBreak()
|
|
}
|
|
if yyb921 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj921-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *VolumeMount) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym927 := z.EncBinary()
|
|
_ = yym927
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep928 := !z.EncBinary()
|
|
yy2arr928 := z.EncBasicHandle().StructToArray
|
|
var yyq928 [3]bool
|
|
_, _, _ = yysep928, yyq928, yy2arr928
|
|
const yyr928 bool = false
|
|
yyq928[1] = x.ReadOnly != false
|
|
var yynn928 int
|
|
if yyr928 || yy2arr928 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn928 = 2
|
|
for _, b := range yyq928 {
|
|
if b {
|
|
yynn928++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn928)
|
|
yynn928 = 0
|
|
}
|
|
if yyr928 || yy2arr928 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym930 := z.EncBinary()
|
|
_ = yym930
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("name"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym931 := z.EncBinary()
|
|
_ = yym931
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
}
|
|
if yyr928 || yy2arr928 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq928[1] {
|
|
yym933 := z.EncBinary()
|
|
_ = yym933
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq928[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym934 := z.EncBinary()
|
|
_ = yym934
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
}
|
|
}
|
|
if yyr928 || yy2arr928 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym936 := z.EncBinary()
|
|
_ = yym936
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.MountPath))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("mountPath"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym937 := z.EncBinary()
|
|
_ = yym937
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.MountPath))
|
|
}
|
|
}
|
|
if yyr928 || yy2arr928 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *VolumeMount) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym938 := z.DecBinary()
|
|
_ = yym938
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct939 := r.ContainerType()
|
|
if yyct939 == codecSelferValueTypeMap1234 {
|
|
yyl939 := r.ReadMapStart()
|
|
if yyl939 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl939, d)
|
|
}
|
|
} else if yyct939 == codecSelferValueTypeArray1234 {
|
|
yyl939 := r.ReadArrayStart()
|
|
if yyl939 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl939, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *VolumeMount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys940Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys940Slc
|
|
var yyhl940 bool = l >= 0
|
|
for yyj940 := 0; ; yyj940++ {
|
|
if yyhl940 {
|
|
if yyj940 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys940Slc = r.DecodeBytes(yys940Slc, true, true)
|
|
yys940 := string(yys940Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys940 {
|
|
case "name":
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
case "readOnly":
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
case "mountPath":
|
|
if r.TryDecodeAsNil() {
|
|
x.MountPath = ""
|
|
} else {
|
|
x.MountPath = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys940)
|
|
} // end switch yys940
|
|
} // end for yyj940
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *VolumeMount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj944 int
|
|
var yyb944 bool
|
|
var yyhl944 bool = l >= 0
|
|
yyj944++
|
|
if yyhl944 {
|
|
yyb944 = yyj944 > l
|
|
} else {
|
|
yyb944 = r.CheckBreak()
|
|
}
|
|
if yyb944 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
yyj944++
|
|
if yyhl944 {
|
|
yyb944 = yyj944 > l
|
|
} else {
|
|
yyb944 = r.CheckBreak()
|
|
}
|
|
if yyb944 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
yyj944++
|
|
if yyhl944 {
|
|
yyb944 = yyj944 > l
|
|
} else {
|
|
yyb944 = r.CheckBreak()
|
|
}
|
|
if yyb944 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.MountPath = ""
|
|
} else {
|
|
x.MountPath = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj944++
|
|
if yyhl944 {
|
|
yyb944 = yyj944 > l
|
|
} else {
|
|
yyb944 = r.CheckBreak()
|
|
}
|
|
if yyb944 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj944-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *EnvVar) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym948 := z.EncBinary()
|
|
_ = yym948
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep949 := !z.EncBinary()
|
|
yy2arr949 := z.EncBasicHandle().StructToArray
|
|
var yyq949 [3]bool
|
|
_, _, _ = yysep949, yyq949, yy2arr949
|
|
const yyr949 bool = false
|
|
yyq949[1] = x.Value != ""
|
|
yyq949[2] = x.ValueFrom != nil
|
|
var yynn949 int
|
|
if yyr949 || yy2arr949 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn949 = 1
|
|
for _, b := range yyq949 {
|
|
if b {
|
|
yynn949++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn949)
|
|
yynn949 = 0
|
|
}
|
|
if yyr949 || yy2arr949 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym951 := z.EncBinary()
|
|
_ = yym951
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("name"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym952 := z.EncBinary()
|
|
_ = yym952
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
}
|
|
if yyr949 || yy2arr949 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq949[1] {
|
|
yym954 := z.EncBinary()
|
|
_ = yym954
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Value))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq949[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("value"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym955 := z.EncBinary()
|
|
_ = yym955
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Value))
|
|
}
|
|
}
|
|
}
|
|
if yyr949 || yy2arr949 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq949[2] {
|
|
if x.ValueFrom == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.ValueFrom.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq949[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("valueFrom"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.ValueFrom == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.ValueFrom.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr949 || yy2arr949 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *EnvVar) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym957 := z.DecBinary()
|
|
_ = yym957
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct958 := r.ContainerType()
|
|
if yyct958 == codecSelferValueTypeMap1234 {
|
|
yyl958 := r.ReadMapStart()
|
|
if yyl958 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl958, d)
|
|
}
|
|
} else if yyct958 == codecSelferValueTypeArray1234 {
|
|
yyl958 := r.ReadArrayStart()
|
|
if yyl958 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl958, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *EnvVar) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys959Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys959Slc
|
|
var yyhl959 bool = l >= 0
|
|
for yyj959 := 0; ; yyj959++ {
|
|
if yyhl959 {
|
|
if yyj959 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys959Slc = r.DecodeBytes(yys959Slc, true, true)
|
|
yys959 := string(yys959Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys959 {
|
|
case "name":
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
case "value":
|
|
if r.TryDecodeAsNil() {
|
|
x.Value = ""
|
|
} else {
|
|
x.Value = string(r.DecodeString())
|
|
}
|
|
case "valueFrom":
|
|
if r.TryDecodeAsNil() {
|
|
if x.ValueFrom != nil {
|
|
x.ValueFrom = nil
|
|
}
|
|
} else {
|
|
if x.ValueFrom == nil {
|
|
x.ValueFrom = new(EnvVarSource)
|
|
}
|
|
x.ValueFrom.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys959)
|
|
} // end switch yys959
|
|
} // end for yyj959
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *EnvVar) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj963 int
|
|
var yyb963 bool
|
|
var yyhl963 bool = l >= 0
|
|
yyj963++
|
|
if yyhl963 {
|
|
yyb963 = yyj963 > l
|
|
} else {
|
|
yyb963 = r.CheckBreak()
|
|
}
|
|
if yyb963 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
yyj963++
|
|
if yyhl963 {
|
|
yyb963 = yyj963 > l
|
|
} else {
|
|
yyb963 = r.CheckBreak()
|
|
}
|
|
if yyb963 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Value = ""
|
|
} else {
|
|
x.Value = string(r.DecodeString())
|
|
}
|
|
yyj963++
|
|
if yyhl963 {
|
|
yyb963 = yyj963 > l
|
|
} else {
|
|
yyb963 = r.CheckBreak()
|
|
}
|
|
if yyb963 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.ValueFrom != nil {
|
|
x.ValueFrom = nil
|
|
}
|
|
} else {
|
|
if x.ValueFrom == nil {
|
|
x.ValueFrom = new(EnvVarSource)
|
|
}
|
|
x.ValueFrom.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj963++
|
|
if yyhl963 {
|
|
yyb963 = yyj963 > l
|
|
} else {
|
|
yyb963 = r.CheckBreak()
|
|
}
|
|
if yyb963 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj963-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *EnvVarSource) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym967 := z.EncBinary()
|
|
_ = yym967
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep968 := !z.EncBinary()
|
|
yy2arr968 := z.EncBasicHandle().StructToArray
|
|
var yyq968 [1]bool
|
|
_, _, _ = yysep968, yyq968, yy2arr968
|
|
const yyr968 bool = false
|
|
var yynn968 int
|
|
if yyr968 || yy2arr968 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn968 = 1
|
|
for _, b := range yyq968 {
|
|
if b {
|
|
yynn968++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn968)
|
|
yynn968 = 0
|
|
}
|
|
if yyr968 || yy2arr968 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.FieldRef == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.FieldRef.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("fieldRef"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.FieldRef == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.FieldRef.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr968 || yy2arr968 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *EnvVarSource) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym970 := z.DecBinary()
|
|
_ = yym970
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct971 := r.ContainerType()
|
|
if yyct971 == codecSelferValueTypeMap1234 {
|
|
yyl971 := r.ReadMapStart()
|
|
if yyl971 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl971, d)
|
|
}
|
|
} else if yyct971 == codecSelferValueTypeArray1234 {
|
|
yyl971 := r.ReadArrayStart()
|
|
if yyl971 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl971, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *EnvVarSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys972Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys972Slc
|
|
var yyhl972 bool = l >= 0
|
|
for yyj972 := 0; ; yyj972++ {
|
|
if yyhl972 {
|
|
if yyj972 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys972Slc = r.DecodeBytes(yys972Slc, true, true)
|
|
yys972 := string(yys972Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys972 {
|
|
case "fieldRef":
|
|
if r.TryDecodeAsNil() {
|
|
if x.FieldRef != nil {
|
|
x.FieldRef = nil
|
|
}
|
|
} else {
|
|
if x.FieldRef == nil {
|
|
x.FieldRef = new(ObjectFieldSelector)
|
|
}
|
|
x.FieldRef.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys972)
|
|
} // end switch yys972
|
|
} // end for yyj972
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *EnvVarSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj974 int
|
|
var yyb974 bool
|
|
var yyhl974 bool = l >= 0
|
|
yyj974++
|
|
if yyhl974 {
|
|
yyb974 = yyj974 > l
|
|
} else {
|
|
yyb974 = r.CheckBreak()
|
|
}
|
|
if yyb974 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.FieldRef != nil {
|
|
x.FieldRef = nil
|
|
}
|
|
} else {
|
|
if x.FieldRef == nil {
|
|
x.FieldRef = new(ObjectFieldSelector)
|
|
}
|
|
x.FieldRef.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj974++
|
|
if yyhl974 {
|
|
yyb974 = yyj974 > l
|
|
} else {
|
|
yyb974 = r.CheckBreak()
|
|
}
|
|
if yyb974 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj974-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *ObjectFieldSelector) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym976 := z.EncBinary()
|
|
_ = yym976
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep977 := !z.EncBinary()
|
|
yy2arr977 := z.EncBasicHandle().StructToArray
|
|
var yyq977 [2]bool
|
|
_, _, _ = yysep977, yyq977, yy2arr977
|
|
const yyr977 bool = false
|
|
var yynn977 int
|
|
if yyr977 || yy2arr977 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn977 = 2
|
|
for _, b := range yyq977 {
|
|
if b {
|
|
yynn977++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn977)
|
|
yynn977 = 0
|
|
}
|
|
if yyr977 || yy2arr977 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym979 := z.EncBinary()
|
|
_ = yym979
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym980 := z.EncBinary()
|
|
_ = yym980
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
if yyr977 || yy2arr977 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym982 := z.EncBinary()
|
|
_ = yym982
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("fieldPath"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym983 := z.EncBinary()
|
|
_ = yym983
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath))
|
|
}
|
|
}
|
|
if yyr977 || yy2arr977 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ObjectFieldSelector) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym984 := z.DecBinary()
|
|
_ = yym984
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct985 := r.ContainerType()
|
|
if yyct985 == codecSelferValueTypeMap1234 {
|
|
yyl985 := r.ReadMapStart()
|
|
if yyl985 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl985, d)
|
|
}
|
|
} else if yyct985 == codecSelferValueTypeArray1234 {
|
|
yyl985 := r.ReadArrayStart()
|
|
if yyl985 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl985, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ObjectFieldSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys986Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys986Slc
|
|
var yyhl986 bool = l >= 0
|
|
for yyj986 := 0; ; yyj986++ {
|
|
if yyhl986 {
|
|
if yyj986 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys986Slc = r.DecodeBytes(yys986Slc, true, true)
|
|
yys986 := string(yys986Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys986 {
|
|
case "apiVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
case "fieldPath":
|
|
if r.TryDecodeAsNil() {
|
|
x.FieldPath = ""
|
|
} else {
|
|
x.FieldPath = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys986)
|
|
} // end switch yys986
|
|
} // end for yyj986
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *ObjectFieldSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj989 int
|
|
var yyb989 bool
|
|
var yyhl989 bool = l >= 0
|
|
yyj989++
|
|
if yyhl989 {
|
|
yyb989 = yyj989 > l
|
|
} else {
|
|
yyb989 = r.CheckBreak()
|
|
}
|
|
if yyb989 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj989++
|
|
if yyhl989 {
|
|
yyb989 = yyj989 > l
|
|
} else {
|
|
yyb989 = r.CheckBreak()
|
|
}
|
|
if yyb989 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.FieldPath = ""
|
|
} else {
|
|
x.FieldPath = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj989++
|
|
if yyhl989 {
|
|
yyb989 = yyj989 > l
|
|
} else {
|
|
yyb989 = r.CheckBreak()
|
|
}
|
|
if yyb989 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj989-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *HTTPGetAction) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym992 := z.EncBinary()
|
|
_ = yym992
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep993 := !z.EncBinary()
|
|
yy2arr993 := z.EncBasicHandle().StructToArray
|
|
var yyq993 [4]bool
|
|
_, _, _ = yysep993, yyq993, yy2arr993
|
|
const yyr993 bool = false
|
|
yyq993[0] = x.Path != ""
|
|
yyq993[1] = true
|
|
yyq993[2] = x.Host != ""
|
|
yyq993[3] = x.Scheme != ""
|
|
var yynn993 int
|
|
if yyr993 || yy2arr993 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn993 = 0
|
|
for _, b := range yyq993 {
|
|
if b {
|
|
yynn993++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn993)
|
|
yynn993 = 0
|
|
}
|
|
if yyr993 || yy2arr993 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq993[0] {
|
|
yym995 := z.EncBinary()
|
|
_ = yym995
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq993[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("path"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym996 := z.EncBinary()
|
|
_ = yym996
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
|
|
}
|
|
}
|
|
}
|
|
if yyr993 || yy2arr993 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq993[1] {
|
|
yy998 := &x.Port
|
|
yym999 := z.EncBinary()
|
|
_ = yym999
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy998) {
|
|
} else if !yym999 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy998)
|
|
} else {
|
|
z.EncFallback(yy998)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq993[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("port"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1000 := &x.Port
|
|
yym1001 := z.EncBinary()
|
|
_ = yym1001
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1000) {
|
|
} else if !yym1001 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy1000)
|
|
} else {
|
|
z.EncFallback(yy1000)
|
|
}
|
|
}
|
|
}
|
|
if yyr993 || yy2arr993 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq993[2] {
|
|
yym1003 := z.EncBinary()
|
|
_ = yym1003
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Host))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq993[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("host"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1004 := z.EncBinary()
|
|
_ = yym1004
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Host))
|
|
}
|
|
}
|
|
}
|
|
if yyr993 || yy2arr993 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq993[3] {
|
|
x.Scheme.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq993[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("scheme"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Scheme.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr993 || yy2arr993 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *HTTPGetAction) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1006 := z.DecBinary()
|
|
_ = yym1006
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1007 := r.ContainerType()
|
|
if yyct1007 == codecSelferValueTypeMap1234 {
|
|
yyl1007 := r.ReadMapStart()
|
|
if yyl1007 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1007, d)
|
|
}
|
|
} else if yyct1007 == codecSelferValueTypeArray1234 {
|
|
yyl1007 := r.ReadArrayStart()
|
|
if yyl1007 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1007, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *HTTPGetAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1008Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1008Slc
|
|
var yyhl1008 bool = l >= 0
|
|
for yyj1008 := 0; ; yyj1008++ {
|
|
if yyhl1008 {
|
|
if yyj1008 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1008Slc = r.DecodeBytes(yys1008Slc, true, true)
|
|
yys1008 := string(yys1008Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1008 {
|
|
case "path":
|
|
if r.TryDecodeAsNil() {
|
|
x.Path = ""
|
|
} else {
|
|
x.Path = string(r.DecodeString())
|
|
}
|
|
case "port":
|
|
if r.TryDecodeAsNil() {
|
|
x.Port = pkg5_intstr.IntOrString{}
|
|
} else {
|
|
yyv1010 := &x.Port
|
|
yym1011 := z.DecBinary()
|
|
_ = yym1011
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1010) {
|
|
} else if !yym1011 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv1010)
|
|
} else {
|
|
z.DecFallback(yyv1010, false)
|
|
}
|
|
}
|
|
case "host":
|
|
if r.TryDecodeAsNil() {
|
|
x.Host = ""
|
|
} else {
|
|
x.Host = string(r.DecodeString())
|
|
}
|
|
case "scheme":
|
|
if r.TryDecodeAsNil() {
|
|
x.Scheme = ""
|
|
} else {
|
|
x.Scheme = URIScheme(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1008)
|
|
} // end switch yys1008
|
|
} // end for yyj1008
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *HTTPGetAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1014 int
|
|
var yyb1014 bool
|
|
var yyhl1014 bool = l >= 0
|
|
yyj1014++
|
|
if yyhl1014 {
|
|
yyb1014 = yyj1014 > l
|
|
} else {
|
|
yyb1014 = r.CheckBreak()
|
|
}
|
|
if yyb1014 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Path = ""
|
|
} else {
|
|
x.Path = string(r.DecodeString())
|
|
}
|
|
yyj1014++
|
|
if yyhl1014 {
|
|
yyb1014 = yyj1014 > l
|
|
} else {
|
|
yyb1014 = r.CheckBreak()
|
|
}
|
|
if yyb1014 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Port = pkg5_intstr.IntOrString{}
|
|
} else {
|
|
yyv1016 := &x.Port
|
|
yym1017 := z.DecBinary()
|
|
_ = yym1017
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1016) {
|
|
} else if !yym1017 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv1016)
|
|
} else {
|
|
z.DecFallback(yyv1016, false)
|
|
}
|
|
}
|
|
yyj1014++
|
|
if yyhl1014 {
|
|
yyb1014 = yyj1014 > l
|
|
} else {
|
|
yyb1014 = r.CheckBreak()
|
|
}
|
|
if yyb1014 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Host = ""
|
|
} else {
|
|
x.Host = string(r.DecodeString())
|
|
}
|
|
yyj1014++
|
|
if yyhl1014 {
|
|
yyb1014 = yyj1014 > l
|
|
} else {
|
|
yyb1014 = r.CheckBreak()
|
|
}
|
|
if yyb1014 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Scheme = ""
|
|
} else {
|
|
x.Scheme = URIScheme(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj1014++
|
|
if yyhl1014 {
|
|
yyb1014 = yyj1014 > l
|
|
} else {
|
|
yyb1014 = r.CheckBreak()
|
|
}
|
|
if yyb1014 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1014-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x URIScheme) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym1020 := z.EncBinary()
|
|
_ = yym1020
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x))
|
|
}
|
|
}
|
|
|
|
func (x *URIScheme) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1021 := z.DecBinary()
|
|
_ = yym1021
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
*((*string)(x)) = r.DecodeString()
|
|
}
|
|
}
|
|
|
|
func (x *TCPSocketAction) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1022 := z.EncBinary()
|
|
_ = yym1022
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1023 := !z.EncBinary()
|
|
yy2arr1023 := z.EncBasicHandle().StructToArray
|
|
var yyq1023 [1]bool
|
|
_, _, _ = yysep1023, yyq1023, yy2arr1023
|
|
const yyr1023 bool = false
|
|
yyq1023[0] = true
|
|
var yynn1023 int
|
|
if yyr1023 || yy2arr1023 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn1023 = 0
|
|
for _, b := range yyq1023 {
|
|
if b {
|
|
yynn1023++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1023)
|
|
yynn1023 = 0
|
|
}
|
|
if yyr1023 || yy2arr1023 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1023[0] {
|
|
yy1025 := &x.Port
|
|
yym1026 := z.EncBinary()
|
|
_ = yym1026
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1025) {
|
|
} else if !yym1026 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy1025)
|
|
} else {
|
|
z.EncFallback(yy1025)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1023[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("port"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1027 := &x.Port
|
|
yym1028 := z.EncBinary()
|
|
_ = yym1028
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1027) {
|
|
} else if !yym1028 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy1027)
|
|
} else {
|
|
z.EncFallback(yy1027)
|
|
}
|
|
}
|
|
}
|
|
if yyr1023 || yy2arr1023 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *TCPSocketAction) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1029 := z.DecBinary()
|
|
_ = yym1029
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1030 := r.ContainerType()
|
|
if yyct1030 == codecSelferValueTypeMap1234 {
|
|
yyl1030 := r.ReadMapStart()
|
|
if yyl1030 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1030, d)
|
|
}
|
|
} else if yyct1030 == codecSelferValueTypeArray1234 {
|
|
yyl1030 := r.ReadArrayStart()
|
|
if yyl1030 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1030, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *TCPSocketAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1031Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1031Slc
|
|
var yyhl1031 bool = l >= 0
|
|
for yyj1031 := 0; ; yyj1031++ {
|
|
if yyhl1031 {
|
|
if yyj1031 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1031Slc = r.DecodeBytes(yys1031Slc, true, true)
|
|
yys1031 := string(yys1031Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1031 {
|
|
case "port":
|
|
if r.TryDecodeAsNil() {
|
|
x.Port = pkg5_intstr.IntOrString{}
|
|
} else {
|
|
yyv1032 := &x.Port
|
|
yym1033 := z.DecBinary()
|
|
_ = yym1033
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1032) {
|
|
} else if !yym1033 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv1032)
|
|
} else {
|
|
z.DecFallback(yyv1032, false)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1031)
|
|
} // end switch yys1031
|
|
} // end for yyj1031
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *TCPSocketAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1034 int
|
|
var yyb1034 bool
|
|
var yyhl1034 bool = l >= 0
|
|
yyj1034++
|
|
if yyhl1034 {
|
|
yyb1034 = yyj1034 > l
|
|
} else {
|
|
yyb1034 = r.CheckBreak()
|
|
}
|
|
if yyb1034 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Port = pkg5_intstr.IntOrString{}
|
|
} else {
|
|
yyv1035 := &x.Port
|
|
yym1036 := z.DecBinary()
|
|
_ = yym1036
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1035) {
|
|
} else if !yym1036 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv1035)
|
|
} else {
|
|
z.DecFallback(yyv1035, false)
|
|
}
|
|
}
|
|
for {
|
|
yyj1034++
|
|
if yyhl1034 {
|
|
yyb1034 = yyj1034 > l
|
|
} else {
|
|
yyb1034 = r.CheckBreak()
|
|
}
|
|
if yyb1034 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1034-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *ExecAction) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1037 := z.EncBinary()
|
|
_ = yym1037
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1038 := !z.EncBinary()
|
|
yy2arr1038 := z.EncBasicHandle().StructToArray
|
|
var yyq1038 [1]bool
|
|
_, _, _ = yysep1038, yyq1038, yy2arr1038
|
|
const yyr1038 bool = false
|
|
yyq1038[0] = len(x.Command) != 0
|
|
var yynn1038 int
|
|
if yyr1038 || yy2arr1038 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn1038 = 0
|
|
for _, b := range yyq1038 {
|
|
if b {
|
|
yynn1038++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1038)
|
|
yynn1038 = 0
|
|
}
|
|
if yyr1038 || yy2arr1038 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1038[0] {
|
|
if x.Command == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1040 := z.EncBinary()
|
|
_ = yym1040
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.Command, false, e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1038[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("command"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Command == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1041 := z.EncBinary()
|
|
_ = yym1041
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.Command, false, e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1038 || yy2arr1038 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ExecAction) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1042 := z.DecBinary()
|
|
_ = yym1042
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1043 := r.ContainerType()
|
|
if yyct1043 == codecSelferValueTypeMap1234 {
|
|
yyl1043 := r.ReadMapStart()
|
|
if yyl1043 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1043, d)
|
|
}
|
|
} else if yyct1043 == codecSelferValueTypeArray1234 {
|
|
yyl1043 := r.ReadArrayStart()
|
|
if yyl1043 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1043, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ExecAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1044Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1044Slc
|
|
var yyhl1044 bool = l >= 0
|
|
for yyj1044 := 0; ; yyj1044++ {
|
|
if yyhl1044 {
|
|
if yyj1044 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1044Slc = r.DecodeBytes(yys1044Slc, true, true)
|
|
yys1044 := string(yys1044Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1044 {
|
|
case "command":
|
|
if r.TryDecodeAsNil() {
|
|
x.Command = nil
|
|
} else {
|
|
yyv1045 := &x.Command
|
|
yym1046 := z.DecBinary()
|
|
_ = yym1046
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv1045, false, d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1044)
|
|
} // end switch yys1044
|
|
} // end for yyj1044
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *ExecAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1047 int
|
|
var yyb1047 bool
|
|
var yyhl1047 bool = l >= 0
|
|
yyj1047++
|
|
if yyhl1047 {
|
|
yyb1047 = yyj1047 > l
|
|
} else {
|
|
yyb1047 = r.CheckBreak()
|
|
}
|
|
if yyb1047 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Command = nil
|
|
} else {
|
|
yyv1048 := &x.Command
|
|
yym1049 := z.DecBinary()
|
|
_ = yym1049
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv1048, false, d)
|
|
}
|
|
}
|
|
for {
|
|
yyj1047++
|
|
if yyhl1047 {
|
|
yyb1047 = yyj1047 > l
|
|
} else {
|
|
yyb1047 = r.CheckBreak()
|
|
}
|
|
if yyb1047 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1047-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1050 := z.EncBinary()
|
|
_ = yym1050
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1051 := !z.EncBinary()
|
|
yy2arr1051 := z.EncBasicHandle().StructToArray
|
|
var yyq1051 [8]bool
|
|
_, _, _ = yysep1051, yyq1051, yy2arr1051
|
|
const yyr1051 bool = false
|
|
yyq1051[0] = x.Handler.Exec != nil && x.Exec != nil
|
|
yyq1051[1] = x.Handler.HTTPGet != nil && x.HTTPGet != nil
|
|
yyq1051[2] = x.Handler.TCPSocket != nil && x.TCPSocket != nil
|
|
yyq1051[3] = x.InitialDelaySeconds != 0
|
|
yyq1051[4] = x.TimeoutSeconds != 0
|
|
yyq1051[5] = x.PeriodSeconds != 0
|
|
yyq1051[6] = x.SuccessThreshold != 0
|
|
yyq1051[7] = x.FailureThreshold != 0
|
|
var yynn1051 int
|
|
if yyr1051 || yy2arr1051 {
|
|
r.EncodeArrayStart(8)
|
|
} else {
|
|
yynn1051 = 0
|
|
for _, b := range yyq1051 {
|
|
if b {
|
|
yynn1051++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1051)
|
|
yynn1051 = 0
|
|
}
|
|
var yyn1052 bool
|
|
if x.Handler.Exec == nil {
|
|
yyn1052 = true
|
|
goto LABEL1052
|
|
}
|
|
LABEL1052:
|
|
if yyr1051 || yy2arr1051 {
|
|
if yyn1052 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1051[0] {
|
|
if x.Exec == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Exec.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq1051[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("exec"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn1052 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.Exec == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Exec.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn1053 bool
|
|
if x.Handler.HTTPGet == nil {
|
|
yyn1053 = true
|
|
goto LABEL1053
|
|
}
|
|
LABEL1053:
|
|
if yyr1051 || yy2arr1051 {
|
|
if yyn1053 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1051[1] {
|
|
if x.HTTPGet == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.HTTPGet.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq1051[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("httpGet"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn1053 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.HTTPGet == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.HTTPGet.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn1054 bool
|
|
if x.Handler.TCPSocket == nil {
|
|
yyn1054 = true
|
|
goto LABEL1054
|
|
}
|
|
LABEL1054:
|
|
if yyr1051 || yy2arr1051 {
|
|
if yyn1054 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1051[2] {
|
|
if x.TCPSocket == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.TCPSocket.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq1051[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("tcpSocket"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn1054 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.TCPSocket == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.TCPSocket.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1051 || yy2arr1051 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1051[3] {
|
|
yym1056 := z.EncBinary()
|
|
_ = yym1056
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.InitialDelaySeconds))
|
|
}
|
|
} else {
|
|
r.EncodeInt(0)
|
|
}
|
|
} else {
|
|
if yyq1051[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("initialDelaySeconds"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1057 := z.EncBinary()
|
|
_ = yym1057
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.InitialDelaySeconds))
|
|
}
|
|
}
|
|
}
|
|
if yyr1051 || yy2arr1051 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1051[4] {
|
|
yym1059 := z.EncBinary()
|
|
_ = yym1059
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.TimeoutSeconds))
|
|
}
|
|
} else {
|
|
r.EncodeInt(0)
|
|
}
|
|
} else {
|
|
if yyq1051[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("timeoutSeconds"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1060 := z.EncBinary()
|
|
_ = yym1060
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.TimeoutSeconds))
|
|
}
|
|
}
|
|
}
|
|
if yyr1051 || yy2arr1051 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1051[5] {
|
|
yym1062 := z.EncBinary()
|
|
_ = yym1062
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.PeriodSeconds))
|
|
}
|
|
} else {
|
|
r.EncodeInt(0)
|
|
}
|
|
} else {
|
|
if yyq1051[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("periodSeconds"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1063 := z.EncBinary()
|
|
_ = yym1063
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.PeriodSeconds))
|
|
}
|
|
}
|
|
}
|
|
if yyr1051 || yy2arr1051 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1051[6] {
|
|
yym1065 := z.EncBinary()
|
|
_ = yym1065
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.SuccessThreshold))
|
|
}
|
|
} else {
|
|
r.EncodeInt(0)
|
|
}
|
|
} else {
|
|
if yyq1051[6] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("successThreshold"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1066 := z.EncBinary()
|
|
_ = yym1066
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.SuccessThreshold))
|
|
}
|
|
}
|
|
}
|
|
if yyr1051 || yy2arr1051 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1051[7] {
|
|
yym1068 := z.EncBinary()
|
|
_ = yym1068
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.FailureThreshold))
|
|
}
|
|
} else {
|
|
r.EncodeInt(0)
|
|
}
|
|
} else {
|
|
if yyq1051[7] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("failureThreshold"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1069 := z.EncBinary()
|
|
_ = yym1069
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.FailureThreshold))
|
|
}
|
|
}
|
|
}
|
|
if yyr1051 || yy2arr1051 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *Probe) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1070 := z.DecBinary()
|
|
_ = yym1070
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1071 := r.ContainerType()
|
|
if yyct1071 == codecSelferValueTypeMap1234 {
|
|
yyl1071 := r.ReadMapStart()
|
|
if yyl1071 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1071, d)
|
|
}
|
|
} else if yyct1071 == codecSelferValueTypeArray1234 {
|
|
yyl1071 := r.ReadArrayStart()
|
|
if yyl1071 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1071, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *Probe) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1072Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1072Slc
|
|
var yyhl1072 bool = l >= 0
|
|
for yyj1072 := 0; ; yyj1072++ {
|
|
if yyhl1072 {
|
|
if yyj1072 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1072Slc = r.DecodeBytes(yys1072Slc, true, true)
|
|
yys1072 := string(yys1072Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1072 {
|
|
case "exec":
|
|
if x.Handler.Exec == nil {
|
|
x.Handler.Exec = new(ExecAction)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.Exec != nil {
|
|
x.Exec = nil
|
|
}
|
|
} else {
|
|
if x.Exec == nil {
|
|
x.Exec = new(ExecAction)
|
|
}
|
|
x.Exec.CodecDecodeSelf(d)
|
|
}
|
|
case "httpGet":
|
|
if x.Handler.HTTPGet == nil {
|
|
x.Handler.HTTPGet = new(HTTPGetAction)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.HTTPGet != nil {
|
|
x.HTTPGet = nil
|
|
}
|
|
} else {
|
|
if x.HTTPGet == nil {
|
|
x.HTTPGet = new(HTTPGetAction)
|
|
}
|
|
x.HTTPGet.CodecDecodeSelf(d)
|
|
}
|
|
case "tcpSocket":
|
|
if x.Handler.TCPSocket == nil {
|
|
x.Handler.TCPSocket = new(TCPSocketAction)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.TCPSocket != nil {
|
|
x.TCPSocket = nil
|
|
}
|
|
} else {
|
|
if x.TCPSocket == nil {
|
|
x.TCPSocket = new(TCPSocketAction)
|
|
}
|
|
x.TCPSocket.CodecDecodeSelf(d)
|
|
}
|
|
case "initialDelaySeconds":
|
|
if r.TryDecodeAsNil() {
|
|
x.InitialDelaySeconds = 0
|
|
} else {
|
|
x.InitialDelaySeconds = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
case "timeoutSeconds":
|
|
if r.TryDecodeAsNil() {
|
|
x.TimeoutSeconds = 0
|
|
} else {
|
|
x.TimeoutSeconds = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
case "periodSeconds":
|
|
if r.TryDecodeAsNil() {
|
|
x.PeriodSeconds = 0
|
|
} else {
|
|
x.PeriodSeconds = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
case "successThreshold":
|
|
if r.TryDecodeAsNil() {
|
|
x.SuccessThreshold = 0
|
|
} else {
|
|
x.SuccessThreshold = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
case "failureThreshold":
|
|
if r.TryDecodeAsNil() {
|
|
x.FailureThreshold = 0
|
|
} else {
|
|
x.FailureThreshold = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1072)
|
|
} // end switch yys1072
|
|
} // end for yyj1072
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *Probe) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1081 int
|
|
var yyb1081 bool
|
|
var yyhl1081 bool = l >= 0
|
|
if x.Handler.Exec == nil {
|
|
x.Handler.Exec = new(ExecAction)
|
|
}
|
|
yyj1081++
|
|
if yyhl1081 {
|
|
yyb1081 = yyj1081 > l
|
|
} else {
|
|
yyb1081 = r.CheckBreak()
|
|
}
|
|
if yyb1081 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.Exec != nil {
|
|
x.Exec = nil
|
|
}
|
|
} else {
|
|
if x.Exec == nil {
|
|
x.Exec = new(ExecAction)
|
|
}
|
|
x.Exec.CodecDecodeSelf(d)
|
|
}
|
|
if x.Handler.HTTPGet == nil {
|
|
x.Handler.HTTPGet = new(HTTPGetAction)
|
|
}
|
|
yyj1081++
|
|
if yyhl1081 {
|
|
yyb1081 = yyj1081 > l
|
|
} else {
|
|
yyb1081 = r.CheckBreak()
|
|
}
|
|
if yyb1081 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.HTTPGet != nil {
|
|
x.HTTPGet = nil
|
|
}
|
|
} else {
|
|
if x.HTTPGet == nil {
|
|
x.HTTPGet = new(HTTPGetAction)
|
|
}
|
|
x.HTTPGet.CodecDecodeSelf(d)
|
|
}
|
|
if x.Handler.TCPSocket == nil {
|
|
x.Handler.TCPSocket = new(TCPSocketAction)
|
|
}
|
|
yyj1081++
|
|
if yyhl1081 {
|
|
yyb1081 = yyj1081 > l
|
|
} else {
|
|
yyb1081 = r.CheckBreak()
|
|
}
|
|
if yyb1081 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.TCPSocket != nil {
|
|
x.TCPSocket = nil
|
|
}
|
|
} else {
|
|
if x.TCPSocket == nil {
|
|
x.TCPSocket = new(TCPSocketAction)
|
|
}
|
|
x.TCPSocket.CodecDecodeSelf(d)
|
|
}
|
|
yyj1081++
|
|
if yyhl1081 {
|
|
yyb1081 = yyj1081 > l
|
|
} else {
|
|
yyb1081 = r.CheckBreak()
|
|
}
|
|
if yyb1081 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.InitialDelaySeconds = 0
|
|
} else {
|
|
x.InitialDelaySeconds = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
yyj1081++
|
|
if yyhl1081 {
|
|
yyb1081 = yyj1081 > l
|
|
} else {
|
|
yyb1081 = r.CheckBreak()
|
|
}
|
|
if yyb1081 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.TimeoutSeconds = 0
|
|
} else {
|
|
x.TimeoutSeconds = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
yyj1081++
|
|
if yyhl1081 {
|
|
yyb1081 = yyj1081 > l
|
|
} else {
|
|
yyb1081 = r.CheckBreak()
|
|
}
|
|
if yyb1081 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.PeriodSeconds = 0
|
|
} else {
|
|
x.PeriodSeconds = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
yyj1081++
|
|
if yyhl1081 {
|
|
yyb1081 = yyj1081 > l
|
|
} else {
|
|
yyb1081 = r.CheckBreak()
|
|
}
|
|
if yyb1081 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.SuccessThreshold = 0
|
|
} else {
|
|
x.SuccessThreshold = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
yyj1081++
|
|
if yyhl1081 {
|
|
yyb1081 = yyj1081 > l
|
|
} else {
|
|
yyb1081 = r.CheckBreak()
|
|
}
|
|
if yyb1081 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.FailureThreshold = 0
|
|
} else {
|
|
x.FailureThreshold = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
for {
|
|
yyj1081++
|
|
if yyhl1081 {
|
|
yyb1081 = yyj1081 > l
|
|
} else {
|
|
yyb1081 = r.CheckBreak()
|
|
}
|
|
if yyb1081 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1081-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x PullPolicy) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym1090 := z.EncBinary()
|
|
_ = yym1090
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x))
|
|
}
|
|
}
|
|
|
|
func (x *PullPolicy) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1091 := z.DecBinary()
|
|
_ = yym1091
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
*((*string)(x)) = r.DecodeString()
|
|
}
|
|
}
|
|
|
|
func (x Capability) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym1092 := z.EncBinary()
|
|
_ = yym1092
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x))
|
|
}
|
|
}
|
|
|
|
func (x *Capability) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1093 := z.DecBinary()
|
|
_ = yym1093
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
*((*string)(x)) = r.DecodeString()
|
|
}
|
|
}
|
|
|
|
func (x *Capabilities) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1094 := z.EncBinary()
|
|
_ = yym1094
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1095 := !z.EncBinary()
|
|
yy2arr1095 := z.EncBasicHandle().StructToArray
|
|
var yyq1095 [2]bool
|
|
_, _, _ = yysep1095, yyq1095, yy2arr1095
|
|
const yyr1095 bool = false
|
|
yyq1095[0] = len(x.Add) != 0
|
|
yyq1095[1] = len(x.Drop) != 0
|
|
var yynn1095 int
|
|
if yyr1095 || yy2arr1095 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn1095 = 0
|
|
for _, b := range yyq1095 {
|
|
if b {
|
|
yynn1095++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1095)
|
|
yynn1095 = 0
|
|
}
|
|
if yyr1095 || yy2arr1095 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1095[0] {
|
|
if x.Add == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1097 := z.EncBinary()
|
|
_ = yym1097
|
|
if false {
|
|
} else {
|
|
h.encSliceCapability(([]Capability)(x.Add), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1095[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("add"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Add == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1098 := z.EncBinary()
|
|
_ = yym1098
|
|
if false {
|
|
} else {
|
|
h.encSliceCapability(([]Capability)(x.Add), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1095 || yy2arr1095 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1095[1] {
|
|
if x.Drop == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1100 := z.EncBinary()
|
|
_ = yym1100
|
|
if false {
|
|
} else {
|
|
h.encSliceCapability(([]Capability)(x.Drop), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1095[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("drop"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Drop == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1101 := z.EncBinary()
|
|
_ = yym1101
|
|
if false {
|
|
} else {
|
|
h.encSliceCapability(([]Capability)(x.Drop), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1095 || yy2arr1095 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *Capabilities) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1102 := z.DecBinary()
|
|
_ = yym1102
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1103 := r.ContainerType()
|
|
if yyct1103 == codecSelferValueTypeMap1234 {
|
|
yyl1103 := r.ReadMapStart()
|
|
if yyl1103 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1103, d)
|
|
}
|
|
} else if yyct1103 == codecSelferValueTypeArray1234 {
|
|
yyl1103 := r.ReadArrayStart()
|
|
if yyl1103 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1103, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *Capabilities) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1104Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1104Slc
|
|
var yyhl1104 bool = l >= 0
|
|
for yyj1104 := 0; ; yyj1104++ {
|
|
if yyhl1104 {
|
|
if yyj1104 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1104Slc = r.DecodeBytes(yys1104Slc, true, true)
|
|
yys1104 := string(yys1104Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1104 {
|
|
case "add":
|
|
if r.TryDecodeAsNil() {
|
|
x.Add = nil
|
|
} else {
|
|
yyv1105 := &x.Add
|
|
yym1106 := z.DecBinary()
|
|
_ = yym1106
|
|
if false {
|
|
} else {
|
|
h.decSliceCapability((*[]Capability)(yyv1105), d)
|
|
}
|
|
}
|
|
case "drop":
|
|
if r.TryDecodeAsNil() {
|
|
x.Drop = nil
|
|
} else {
|
|
yyv1107 := &x.Drop
|
|
yym1108 := z.DecBinary()
|
|
_ = yym1108
|
|
if false {
|
|
} else {
|
|
h.decSliceCapability((*[]Capability)(yyv1107), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1104)
|
|
} // end switch yys1104
|
|
} // end for yyj1104
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *Capabilities) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1109 int
|
|
var yyb1109 bool
|
|
var yyhl1109 bool = l >= 0
|
|
yyj1109++
|
|
if yyhl1109 {
|
|
yyb1109 = yyj1109 > l
|
|
} else {
|
|
yyb1109 = r.CheckBreak()
|
|
}
|
|
if yyb1109 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Add = nil
|
|
} else {
|
|
yyv1110 := &x.Add
|
|
yym1111 := z.DecBinary()
|
|
_ = yym1111
|
|
if false {
|
|
} else {
|
|
h.decSliceCapability((*[]Capability)(yyv1110), d)
|
|
}
|
|
}
|
|
yyj1109++
|
|
if yyhl1109 {
|
|
yyb1109 = yyj1109 > l
|
|
} else {
|
|
yyb1109 = r.CheckBreak()
|
|
}
|
|
if yyb1109 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Drop = nil
|
|
} else {
|
|
yyv1112 := &x.Drop
|
|
yym1113 := z.DecBinary()
|
|
_ = yym1113
|
|
if false {
|
|
} else {
|
|
h.decSliceCapability((*[]Capability)(yyv1112), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj1109++
|
|
if yyhl1109 {
|
|
yyb1109 = yyj1109 > l
|
|
} else {
|
|
yyb1109 = r.CheckBreak()
|
|
}
|
|
if yyb1109 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1109-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *ResourceRequirements) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1114 := z.EncBinary()
|
|
_ = yym1114
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1115 := !z.EncBinary()
|
|
yy2arr1115 := z.EncBasicHandle().StructToArray
|
|
var yyq1115 [2]bool
|
|
_, _, _ = yysep1115, yyq1115, yy2arr1115
|
|
const yyr1115 bool = false
|
|
yyq1115[0] = len(x.Limits) != 0
|
|
yyq1115[1] = len(x.Requests) != 0
|
|
var yynn1115 int
|
|
if yyr1115 || yy2arr1115 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn1115 = 0
|
|
for _, b := range yyq1115 {
|
|
if b {
|
|
yynn1115++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1115)
|
|
yynn1115 = 0
|
|
}
|
|
if yyr1115 || yy2arr1115 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1115[0] {
|
|
if x.Limits == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Limits.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1115[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("limits"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Limits == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Limits.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1115 || yy2arr1115 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1115[1] {
|
|
if x.Requests == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Requests.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1115[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("requests"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Requests == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Requests.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1115 || yy2arr1115 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ResourceRequirements) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1118 := z.DecBinary()
|
|
_ = yym1118
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1119 := r.ContainerType()
|
|
if yyct1119 == codecSelferValueTypeMap1234 {
|
|
yyl1119 := r.ReadMapStart()
|
|
if yyl1119 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1119, d)
|
|
}
|
|
} else if yyct1119 == codecSelferValueTypeArray1234 {
|
|
yyl1119 := r.ReadArrayStart()
|
|
if yyl1119 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1119, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ResourceRequirements) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1120Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1120Slc
|
|
var yyhl1120 bool = l >= 0
|
|
for yyj1120 := 0; ; yyj1120++ {
|
|
if yyhl1120 {
|
|
if yyj1120 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1120Slc = r.DecodeBytes(yys1120Slc, true, true)
|
|
yys1120 := string(yys1120Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1120 {
|
|
case "limits":
|
|
if r.TryDecodeAsNil() {
|
|
x.Limits = nil
|
|
} else {
|
|
yyv1121 := &x.Limits
|
|
yyv1121.CodecDecodeSelf(d)
|
|
}
|
|
case "requests":
|
|
if r.TryDecodeAsNil() {
|
|
x.Requests = nil
|
|
} else {
|
|
yyv1122 := &x.Requests
|
|
yyv1122.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1120)
|
|
} // end switch yys1120
|
|
} // end for yyj1120
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *ResourceRequirements) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1123 int
|
|
var yyb1123 bool
|
|
var yyhl1123 bool = l >= 0
|
|
yyj1123++
|
|
if yyhl1123 {
|
|
yyb1123 = yyj1123 > l
|
|
} else {
|
|
yyb1123 = r.CheckBreak()
|
|
}
|
|
if yyb1123 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Limits = nil
|
|
} else {
|
|
yyv1124 := &x.Limits
|
|
yyv1124.CodecDecodeSelf(d)
|
|
}
|
|
yyj1123++
|
|
if yyhl1123 {
|
|
yyb1123 = yyj1123 > l
|
|
} else {
|
|
yyb1123 = r.CheckBreak()
|
|
}
|
|
if yyb1123 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Requests = nil
|
|
} else {
|
|
yyv1125 := &x.Requests
|
|
yyv1125.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj1123++
|
|
if yyhl1123 {
|
|
yyb1123 = yyj1123 > l
|
|
} else {
|
|
yyb1123 = r.CheckBreak()
|
|
}
|
|
if yyb1123 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1123-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1126 := z.EncBinary()
|
|
_ = yym1126
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1127 := !z.EncBinary()
|
|
yy2arr1127 := z.EncBasicHandle().StructToArray
|
|
var yyq1127 [18]bool
|
|
_, _, _ = yysep1127, yyq1127, yy2arr1127
|
|
const yyr1127 bool = false
|
|
yyq1127[2] = len(x.Command) != 0
|
|
yyq1127[3] = len(x.Args) != 0
|
|
yyq1127[4] = x.WorkingDir != ""
|
|
yyq1127[5] = len(x.Ports) != 0
|
|
yyq1127[6] = len(x.Env) != 0
|
|
yyq1127[7] = true
|
|
yyq1127[8] = len(x.VolumeMounts) != 0
|
|
yyq1127[9] = x.LivenessProbe != nil
|
|
yyq1127[10] = x.ReadinessProbe != nil
|
|
yyq1127[11] = x.Lifecycle != nil
|
|
yyq1127[12] = x.TerminationMessagePath != ""
|
|
yyq1127[14] = x.SecurityContext != nil
|
|
yyq1127[15] = x.Stdin != false
|
|
yyq1127[16] = x.StdinOnce != false
|
|
yyq1127[17] = x.TTY != false
|
|
var yynn1127 int
|
|
if yyr1127 || yy2arr1127 {
|
|
r.EncodeArrayStart(18)
|
|
} else {
|
|
yynn1127 = 3
|
|
for _, b := range yyq1127 {
|
|
if b {
|
|
yynn1127++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1127)
|
|
yynn1127 = 0
|
|
}
|
|
if yyr1127 || yy2arr1127 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1129 := z.EncBinary()
|
|
_ = yym1129
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("name"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1130 := z.EncBinary()
|
|
_ = yym1130
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
}
|
|
if yyr1127 || yy2arr1127 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1132 := z.EncBinary()
|
|
_ = yym1132
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Image))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("image"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1133 := z.EncBinary()
|
|
_ = yym1133
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Image))
|
|
}
|
|
}
|
|
if yyr1127 || yy2arr1127 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1127[2] {
|
|
if x.Command == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1135 := z.EncBinary()
|
|
_ = yym1135
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.Command, false, e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1127[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("command"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Command == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1136 := z.EncBinary()
|
|
_ = yym1136
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.Command, false, e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1127 || yy2arr1127 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1127[3] {
|
|
if x.Args == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1138 := z.EncBinary()
|
|
_ = yym1138
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.Args, false, e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1127[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("args"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Args == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1139 := z.EncBinary()
|
|
_ = yym1139
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.Args, false, e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1127 || yy2arr1127 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1127[4] {
|
|
yym1141 := z.EncBinary()
|
|
_ = yym1141
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1127[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("workingDir"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1142 := z.EncBinary()
|
|
_ = yym1142
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir))
|
|
}
|
|
}
|
|
}
|
|
if yyr1127 || yy2arr1127 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1127[5] {
|
|
if x.Ports == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1144 := z.EncBinary()
|
|
_ = yym1144
|
|
if false {
|
|
} else {
|
|
h.encSliceContainerPort(([]ContainerPort)(x.Ports), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1127[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("ports"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Ports == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1145 := z.EncBinary()
|
|
_ = yym1145
|
|
if false {
|
|
} else {
|
|
h.encSliceContainerPort(([]ContainerPort)(x.Ports), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1127 || yy2arr1127 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1127[6] {
|
|
if x.Env == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1147 := z.EncBinary()
|
|
_ = yym1147
|
|
if false {
|
|
} else {
|
|
h.encSliceEnvVar(([]EnvVar)(x.Env), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1127[6] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("env"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Env == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1148 := z.EncBinary()
|
|
_ = yym1148
|
|
if false {
|
|
} else {
|
|
h.encSliceEnvVar(([]EnvVar)(x.Env), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1127 || yy2arr1127 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1127[7] {
|
|
yy1150 := &x.Resources
|
|
yy1150.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1127[7] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("resources"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1151 := &x.Resources
|
|
yy1151.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1127 || yy2arr1127 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1127[8] {
|
|
if x.VolumeMounts == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1153 := z.EncBinary()
|
|
_ = yym1153
|
|
if false {
|
|
} else {
|
|
h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1127[8] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("volumeMounts"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.VolumeMounts == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1154 := z.EncBinary()
|
|
_ = yym1154
|
|
if false {
|
|
} else {
|
|
h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1127 || yy2arr1127 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1127[9] {
|
|
if x.LivenessProbe == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.LivenessProbe.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1127[9] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("livenessProbe"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.LivenessProbe == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.LivenessProbe.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1127 || yy2arr1127 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1127[10] {
|
|
if x.ReadinessProbe == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.ReadinessProbe.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1127[10] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("readinessProbe"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.ReadinessProbe == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.ReadinessProbe.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1127 || yy2arr1127 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1127[11] {
|
|
if x.Lifecycle == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Lifecycle.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1127[11] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("lifecycle"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Lifecycle == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Lifecycle.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1127 || yy2arr1127 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1127[12] {
|
|
yym1159 := z.EncBinary()
|
|
_ = yym1159
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1127[12] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("terminationMessagePath"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1160 := z.EncBinary()
|
|
_ = yym1160
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath))
|
|
}
|
|
}
|
|
}
|
|
if yyr1127 || yy2arr1127 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
x.ImagePullPolicy.CodecEncodeSelf(e)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("imagePullPolicy"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.ImagePullPolicy.CodecEncodeSelf(e)
|
|
}
|
|
if yyr1127 || yy2arr1127 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1127[14] {
|
|
if x.SecurityContext == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.SecurityContext.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1127[14] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("securityContext"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.SecurityContext == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.SecurityContext.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1127 || yy2arr1127 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1127[15] {
|
|
yym1164 := z.EncBinary()
|
|
_ = yym1164
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Stdin))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq1127[15] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("stdin"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1165 := z.EncBinary()
|
|
_ = yym1165
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Stdin))
|
|
}
|
|
}
|
|
}
|
|
if yyr1127 || yy2arr1127 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1127[16] {
|
|
yym1167 := z.EncBinary()
|
|
_ = yym1167
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.StdinOnce))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq1127[16] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("stdinOnce"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1168 := z.EncBinary()
|
|
_ = yym1168
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.StdinOnce))
|
|
}
|
|
}
|
|
}
|
|
if yyr1127 || yy2arr1127 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1127[17] {
|
|
yym1170 := z.EncBinary()
|
|
_ = yym1170
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.TTY))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq1127[17] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("tty"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1171 := z.EncBinary()
|
|
_ = yym1171
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.TTY))
|
|
}
|
|
}
|
|
}
|
|
if yyr1127 || yy2arr1127 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *Container) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1172 := z.DecBinary()
|
|
_ = yym1172
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1173 := r.ContainerType()
|
|
if yyct1173 == codecSelferValueTypeMap1234 {
|
|
yyl1173 := r.ReadMapStart()
|
|
if yyl1173 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1173, d)
|
|
}
|
|
} else if yyct1173 == codecSelferValueTypeArray1234 {
|
|
yyl1173 := r.ReadArrayStart()
|
|
if yyl1173 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1173, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *Container) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1174Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1174Slc
|
|
var yyhl1174 bool = l >= 0
|
|
for yyj1174 := 0; ; yyj1174++ {
|
|
if yyhl1174 {
|
|
if yyj1174 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1174Slc = r.DecodeBytes(yys1174Slc, true, true)
|
|
yys1174 := string(yys1174Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1174 {
|
|
case "name":
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
case "image":
|
|
if r.TryDecodeAsNil() {
|
|
x.Image = ""
|
|
} else {
|
|
x.Image = string(r.DecodeString())
|
|
}
|
|
case "command":
|
|
if r.TryDecodeAsNil() {
|
|
x.Command = nil
|
|
} else {
|
|
yyv1177 := &x.Command
|
|
yym1178 := z.DecBinary()
|
|
_ = yym1178
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv1177, false, d)
|
|
}
|
|
}
|
|
case "args":
|
|
if r.TryDecodeAsNil() {
|
|
x.Args = nil
|
|
} else {
|
|
yyv1179 := &x.Args
|
|
yym1180 := z.DecBinary()
|
|
_ = yym1180
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv1179, false, d)
|
|
}
|
|
}
|
|
case "workingDir":
|
|
if r.TryDecodeAsNil() {
|
|
x.WorkingDir = ""
|
|
} else {
|
|
x.WorkingDir = string(r.DecodeString())
|
|
}
|
|
case "ports":
|
|
if r.TryDecodeAsNil() {
|
|
x.Ports = nil
|
|
} else {
|
|
yyv1182 := &x.Ports
|
|
yym1183 := z.DecBinary()
|
|
_ = yym1183
|
|
if false {
|
|
} else {
|
|
h.decSliceContainerPort((*[]ContainerPort)(yyv1182), d)
|
|
}
|
|
}
|
|
case "env":
|
|
if r.TryDecodeAsNil() {
|
|
x.Env = nil
|
|
} else {
|
|
yyv1184 := &x.Env
|
|
yym1185 := z.DecBinary()
|
|
_ = yym1185
|
|
if false {
|
|
} else {
|
|
h.decSliceEnvVar((*[]EnvVar)(yyv1184), d)
|
|
}
|
|
}
|
|
case "resources":
|
|
if r.TryDecodeAsNil() {
|
|
x.Resources = ResourceRequirements{}
|
|
} else {
|
|
yyv1186 := &x.Resources
|
|
yyv1186.CodecDecodeSelf(d)
|
|
}
|
|
case "volumeMounts":
|
|
if r.TryDecodeAsNil() {
|
|
x.VolumeMounts = nil
|
|
} else {
|
|
yyv1187 := &x.VolumeMounts
|
|
yym1188 := z.DecBinary()
|
|
_ = yym1188
|
|
if false {
|
|
} else {
|
|
h.decSliceVolumeMount((*[]VolumeMount)(yyv1187), d)
|
|
}
|
|
}
|
|
case "livenessProbe":
|
|
if r.TryDecodeAsNil() {
|
|
if x.LivenessProbe != nil {
|
|
x.LivenessProbe = nil
|
|
}
|
|
} else {
|
|
if x.LivenessProbe == nil {
|
|
x.LivenessProbe = new(Probe)
|
|
}
|
|
x.LivenessProbe.CodecDecodeSelf(d)
|
|
}
|
|
case "readinessProbe":
|
|
if r.TryDecodeAsNil() {
|
|
if x.ReadinessProbe != nil {
|
|
x.ReadinessProbe = nil
|
|
}
|
|
} else {
|
|
if x.ReadinessProbe == nil {
|
|
x.ReadinessProbe = new(Probe)
|
|
}
|
|
x.ReadinessProbe.CodecDecodeSelf(d)
|
|
}
|
|
case "lifecycle":
|
|
if r.TryDecodeAsNil() {
|
|
if x.Lifecycle != nil {
|
|
x.Lifecycle = nil
|
|
}
|
|
} else {
|
|
if x.Lifecycle == nil {
|
|
x.Lifecycle = new(Lifecycle)
|
|
}
|
|
x.Lifecycle.CodecDecodeSelf(d)
|
|
}
|
|
case "terminationMessagePath":
|
|
if r.TryDecodeAsNil() {
|
|
x.TerminationMessagePath = ""
|
|
} else {
|
|
x.TerminationMessagePath = string(r.DecodeString())
|
|
}
|
|
case "imagePullPolicy":
|
|
if r.TryDecodeAsNil() {
|
|
x.ImagePullPolicy = ""
|
|
} else {
|
|
x.ImagePullPolicy = PullPolicy(r.DecodeString())
|
|
}
|
|
case "securityContext":
|
|
if r.TryDecodeAsNil() {
|
|
if x.SecurityContext != nil {
|
|
x.SecurityContext = nil
|
|
}
|
|
} else {
|
|
if x.SecurityContext == nil {
|
|
x.SecurityContext = new(SecurityContext)
|
|
}
|
|
x.SecurityContext.CodecDecodeSelf(d)
|
|
}
|
|
case "stdin":
|
|
if r.TryDecodeAsNil() {
|
|
x.Stdin = false
|
|
} else {
|
|
x.Stdin = bool(r.DecodeBool())
|
|
}
|
|
case "stdinOnce":
|
|
if r.TryDecodeAsNil() {
|
|
x.StdinOnce = false
|
|
} else {
|
|
x.StdinOnce = bool(r.DecodeBool())
|
|
}
|
|
case "tty":
|
|
if r.TryDecodeAsNil() {
|
|
x.TTY = false
|
|
} else {
|
|
x.TTY = bool(r.DecodeBool())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1174)
|
|
} // end switch yys1174
|
|
} // end for yyj1174
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1198 int
|
|
var yyb1198 bool
|
|
var yyhl1198 bool = l >= 0
|
|
yyj1198++
|
|
if yyhl1198 {
|
|
yyb1198 = yyj1198 > l
|
|
} else {
|
|
yyb1198 = r.CheckBreak()
|
|
}
|
|
if yyb1198 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
yyj1198++
|
|
if yyhl1198 {
|
|
yyb1198 = yyj1198 > l
|
|
} else {
|
|
yyb1198 = r.CheckBreak()
|
|
}
|
|
if yyb1198 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Image = ""
|
|
} else {
|
|
x.Image = string(r.DecodeString())
|
|
}
|
|
yyj1198++
|
|
if yyhl1198 {
|
|
yyb1198 = yyj1198 > l
|
|
} else {
|
|
yyb1198 = r.CheckBreak()
|
|
}
|
|
if yyb1198 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Command = nil
|
|
} else {
|
|
yyv1201 := &x.Command
|
|
yym1202 := z.DecBinary()
|
|
_ = yym1202
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv1201, false, d)
|
|
}
|
|
}
|
|
yyj1198++
|
|
if yyhl1198 {
|
|
yyb1198 = yyj1198 > l
|
|
} else {
|
|
yyb1198 = r.CheckBreak()
|
|
}
|
|
if yyb1198 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Args = nil
|
|
} else {
|
|
yyv1203 := &x.Args
|
|
yym1204 := z.DecBinary()
|
|
_ = yym1204
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv1203, false, d)
|
|
}
|
|
}
|
|
yyj1198++
|
|
if yyhl1198 {
|
|
yyb1198 = yyj1198 > l
|
|
} else {
|
|
yyb1198 = r.CheckBreak()
|
|
}
|
|
if yyb1198 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.WorkingDir = ""
|
|
} else {
|
|
x.WorkingDir = string(r.DecodeString())
|
|
}
|
|
yyj1198++
|
|
if yyhl1198 {
|
|
yyb1198 = yyj1198 > l
|
|
} else {
|
|
yyb1198 = r.CheckBreak()
|
|
}
|
|
if yyb1198 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Ports = nil
|
|
} else {
|
|
yyv1206 := &x.Ports
|
|
yym1207 := z.DecBinary()
|
|
_ = yym1207
|
|
if false {
|
|
} else {
|
|
h.decSliceContainerPort((*[]ContainerPort)(yyv1206), d)
|
|
}
|
|
}
|
|
yyj1198++
|
|
if yyhl1198 {
|
|
yyb1198 = yyj1198 > l
|
|
} else {
|
|
yyb1198 = r.CheckBreak()
|
|
}
|
|
if yyb1198 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Env = nil
|
|
} else {
|
|
yyv1208 := &x.Env
|
|
yym1209 := z.DecBinary()
|
|
_ = yym1209
|
|
if false {
|
|
} else {
|
|
h.decSliceEnvVar((*[]EnvVar)(yyv1208), d)
|
|
}
|
|
}
|
|
yyj1198++
|
|
if yyhl1198 {
|
|
yyb1198 = yyj1198 > l
|
|
} else {
|
|
yyb1198 = r.CheckBreak()
|
|
}
|
|
if yyb1198 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Resources = ResourceRequirements{}
|
|
} else {
|
|
yyv1210 := &x.Resources
|
|
yyv1210.CodecDecodeSelf(d)
|
|
}
|
|
yyj1198++
|
|
if yyhl1198 {
|
|
yyb1198 = yyj1198 > l
|
|
} else {
|
|
yyb1198 = r.CheckBreak()
|
|
}
|
|
if yyb1198 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.VolumeMounts = nil
|
|
} else {
|
|
yyv1211 := &x.VolumeMounts
|
|
yym1212 := z.DecBinary()
|
|
_ = yym1212
|
|
if false {
|
|
} else {
|
|
h.decSliceVolumeMount((*[]VolumeMount)(yyv1211), d)
|
|
}
|
|
}
|
|
yyj1198++
|
|
if yyhl1198 {
|
|
yyb1198 = yyj1198 > l
|
|
} else {
|
|
yyb1198 = r.CheckBreak()
|
|
}
|
|
if yyb1198 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.LivenessProbe != nil {
|
|
x.LivenessProbe = nil
|
|
}
|
|
} else {
|
|
if x.LivenessProbe == nil {
|
|
x.LivenessProbe = new(Probe)
|
|
}
|
|
x.LivenessProbe.CodecDecodeSelf(d)
|
|
}
|
|
yyj1198++
|
|
if yyhl1198 {
|
|
yyb1198 = yyj1198 > l
|
|
} else {
|
|
yyb1198 = r.CheckBreak()
|
|
}
|
|
if yyb1198 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.ReadinessProbe != nil {
|
|
x.ReadinessProbe = nil
|
|
}
|
|
} else {
|
|
if x.ReadinessProbe == nil {
|
|
x.ReadinessProbe = new(Probe)
|
|
}
|
|
x.ReadinessProbe.CodecDecodeSelf(d)
|
|
}
|
|
yyj1198++
|
|
if yyhl1198 {
|
|
yyb1198 = yyj1198 > l
|
|
} else {
|
|
yyb1198 = r.CheckBreak()
|
|
}
|
|
if yyb1198 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.Lifecycle != nil {
|
|
x.Lifecycle = nil
|
|
}
|
|
} else {
|
|
if x.Lifecycle == nil {
|
|
x.Lifecycle = new(Lifecycle)
|
|
}
|
|
x.Lifecycle.CodecDecodeSelf(d)
|
|
}
|
|
yyj1198++
|
|
if yyhl1198 {
|
|
yyb1198 = yyj1198 > l
|
|
} else {
|
|
yyb1198 = r.CheckBreak()
|
|
}
|
|
if yyb1198 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.TerminationMessagePath = ""
|
|
} else {
|
|
x.TerminationMessagePath = string(r.DecodeString())
|
|
}
|
|
yyj1198++
|
|
if yyhl1198 {
|
|
yyb1198 = yyj1198 > l
|
|
} else {
|
|
yyb1198 = r.CheckBreak()
|
|
}
|
|
if yyb1198 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ImagePullPolicy = ""
|
|
} else {
|
|
x.ImagePullPolicy = PullPolicy(r.DecodeString())
|
|
}
|
|
yyj1198++
|
|
if yyhl1198 {
|
|
yyb1198 = yyj1198 > l
|
|
} else {
|
|
yyb1198 = r.CheckBreak()
|
|
}
|
|
if yyb1198 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.SecurityContext != nil {
|
|
x.SecurityContext = nil
|
|
}
|
|
} else {
|
|
if x.SecurityContext == nil {
|
|
x.SecurityContext = new(SecurityContext)
|
|
}
|
|
x.SecurityContext.CodecDecodeSelf(d)
|
|
}
|
|
yyj1198++
|
|
if yyhl1198 {
|
|
yyb1198 = yyj1198 > l
|
|
} else {
|
|
yyb1198 = r.CheckBreak()
|
|
}
|
|
if yyb1198 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Stdin = false
|
|
} else {
|
|
x.Stdin = bool(r.DecodeBool())
|
|
}
|
|
yyj1198++
|
|
if yyhl1198 {
|
|
yyb1198 = yyj1198 > l
|
|
} else {
|
|
yyb1198 = r.CheckBreak()
|
|
}
|
|
if yyb1198 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.StdinOnce = false
|
|
} else {
|
|
x.StdinOnce = bool(r.DecodeBool())
|
|
}
|
|
yyj1198++
|
|
if yyhl1198 {
|
|
yyb1198 = yyj1198 > l
|
|
} else {
|
|
yyb1198 = r.CheckBreak()
|
|
}
|
|
if yyb1198 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.TTY = false
|
|
} else {
|
|
x.TTY = bool(r.DecodeBool())
|
|
}
|
|
for {
|
|
yyj1198++
|
|
if yyhl1198 {
|
|
yyb1198 = yyj1198 > l
|
|
} else {
|
|
yyb1198 = r.CheckBreak()
|
|
}
|
|
if yyb1198 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1198-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *Handler) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1222 := z.EncBinary()
|
|
_ = yym1222
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1223 := !z.EncBinary()
|
|
yy2arr1223 := z.EncBasicHandle().StructToArray
|
|
var yyq1223 [3]bool
|
|
_, _, _ = yysep1223, yyq1223, yy2arr1223
|
|
const yyr1223 bool = false
|
|
yyq1223[0] = x.Exec != nil
|
|
yyq1223[1] = x.HTTPGet != nil
|
|
yyq1223[2] = x.TCPSocket != nil
|
|
var yynn1223 int
|
|
if yyr1223 || yy2arr1223 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn1223 = 0
|
|
for _, b := range yyq1223 {
|
|
if b {
|
|
yynn1223++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1223)
|
|
yynn1223 = 0
|
|
}
|
|
if yyr1223 || yy2arr1223 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1223[0] {
|
|
if x.Exec == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Exec.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1223[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("exec"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Exec == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Exec.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1223 || yy2arr1223 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1223[1] {
|
|
if x.HTTPGet == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.HTTPGet.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1223[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("httpGet"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.HTTPGet == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.HTTPGet.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1223 || yy2arr1223 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1223[2] {
|
|
if x.TCPSocket == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.TCPSocket.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1223[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("tcpSocket"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.TCPSocket == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.TCPSocket.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1223 || yy2arr1223 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *Handler) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1227 := z.DecBinary()
|
|
_ = yym1227
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1228 := r.ContainerType()
|
|
if yyct1228 == codecSelferValueTypeMap1234 {
|
|
yyl1228 := r.ReadMapStart()
|
|
if yyl1228 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1228, d)
|
|
}
|
|
} else if yyct1228 == codecSelferValueTypeArray1234 {
|
|
yyl1228 := r.ReadArrayStart()
|
|
if yyl1228 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1228, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *Handler) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1229Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1229Slc
|
|
var yyhl1229 bool = l >= 0
|
|
for yyj1229 := 0; ; yyj1229++ {
|
|
if yyhl1229 {
|
|
if yyj1229 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1229Slc = r.DecodeBytes(yys1229Slc, true, true)
|
|
yys1229 := string(yys1229Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1229 {
|
|
case "exec":
|
|
if r.TryDecodeAsNil() {
|
|
if x.Exec != nil {
|
|
x.Exec = nil
|
|
}
|
|
} else {
|
|
if x.Exec == nil {
|
|
x.Exec = new(ExecAction)
|
|
}
|
|
x.Exec.CodecDecodeSelf(d)
|
|
}
|
|
case "httpGet":
|
|
if r.TryDecodeAsNil() {
|
|
if x.HTTPGet != nil {
|
|
x.HTTPGet = nil
|
|
}
|
|
} else {
|
|
if x.HTTPGet == nil {
|
|
x.HTTPGet = new(HTTPGetAction)
|
|
}
|
|
x.HTTPGet.CodecDecodeSelf(d)
|
|
}
|
|
case "tcpSocket":
|
|
if r.TryDecodeAsNil() {
|
|
if x.TCPSocket != nil {
|
|
x.TCPSocket = nil
|
|
}
|
|
} else {
|
|
if x.TCPSocket == nil {
|
|
x.TCPSocket = new(TCPSocketAction)
|
|
}
|
|
x.TCPSocket.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1229)
|
|
} // end switch yys1229
|
|
} // end for yyj1229
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *Handler) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1233 int
|
|
var yyb1233 bool
|
|
var yyhl1233 bool = l >= 0
|
|
yyj1233++
|
|
if yyhl1233 {
|
|
yyb1233 = yyj1233 > l
|
|
} else {
|
|
yyb1233 = r.CheckBreak()
|
|
}
|
|
if yyb1233 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.Exec != nil {
|
|
x.Exec = nil
|
|
}
|
|
} else {
|
|
if x.Exec == nil {
|
|
x.Exec = new(ExecAction)
|
|
}
|
|
x.Exec.CodecDecodeSelf(d)
|
|
}
|
|
yyj1233++
|
|
if yyhl1233 {
|
|
yyb1233 = yyj1233 > l
|
|
} else {
|
|
yyb1233 = r.CheckBreak()
|
|
}
|
|
if yyb1233 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.HTTPGet != nil {
|
|
x.HTTPGet = nil
|
|
}
|
|
} else {
|
|
if x.HTTPGet == nil {
|
|
x.HTTPGet = new(HTTPGetAction)
|
|
}
|
|
x.HTTPGet.CodecDecodeSelf(d)
|
|
}
|
|
yyj1233++
|
|
if yyhl1233 {
|
|
yyb1233 = yyj1233 > l
|
|
} else {
|
|
yyb1233 = r.CheckBreak()
|
|
}
|
|
if yyb1233 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.TCPSocket != nil {
|
|
x.TCPSocket = nil
|
|
}
|
|
} else {
|
|
if x.TCPSocket == nil {
|
|
x.TCPSocket = new(TCPSocketAction)
|
|
}
|
|
x.TCPSocket.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj1233++
|
|
if yyhl1233 {
|
|
yyb1233 = yyj1233 > l
|
|
} else {
|
|
yyb1233 = r.CheckBreak()
|
|
}
|
|
if yyb1233 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1233-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *Lifecycle) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1237 := z.EncBinary()
|
|
_ = yym1237
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1238 := !z.EncBinary()
|
|
yy2arr1238 := z.EncBasicHandle().StructToArray
|
|
var yyq1238 [2]bool
|
|
_, _, _ = yysep1238, yyq1238, yy2arr1238
|
|
const yyr1238 bool = false
|
|
yyq1238[0] = x.PostStart != nil
|
|
yyq1238[1] = x.PreStop != nil
|
|
var yynn1238 int
|
|
if yyr1238 || yy2arr1238 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn1238 = 0
|
|
for _, b := range yyq1238 {
|
|
if b {
|
|
yynn1238++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1238)
|
|
yynn1238 = 0
|
|
}
|
|
if yyr1238 || yy2arr1238 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1238[0] {
|
|
if x.PostStart == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.PostStart.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1238[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("postStart"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.PostStart == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.PostStart.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1238 || yy2arr1238 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1238[1] {
|
|
if x.PreStop == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.PreStop.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1238[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("preStop"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.PreStop == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.PreStop.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1238 || yy2arr1238 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *Lifecycle) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1241 := z.DecBinary()
|
|
_ = yym1241
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1242 := r.ContainerType()
|
|
if yyct1242 == codecSelferValueTypeMap1234 {
|
|
yyl1242 := r.ReadMapStart()
|
|
if yyl1242 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1242, d)
|
|
}
|
|
} else if yyct1242 == codecSelferValueTypeArray1234 {
|
|
yyl1242 := r.ReadArrayStart()
|
|
if yyl1242 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1242, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *Lifecycle) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1243Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1243Slc
|
|
var yyhl1243 bool = l >= 0
|
|
for yyj1243 := 0; ; yyj1243++ {
|
|
if yyhl1243 {
|
|
if yyj1243 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1243Slc = r.DecodeBytes(yys1243Slc, true, true)
|
|
yys1243 := string(yys1243Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1243 {
|
|
case "postStart":
|
|
if r.TryDecodeAsNil() {
|
|
if x.PostStart != nil {
|
|
x.PostStart = nil
|
|
}
|
|
} else {
|
|
if x.PostStart == nil {
|
|
x.PostStart = new(Handler)
|
|
}
|
|
x.PostStart.CodecDecodeSelf(d)
|
|
}
|
|
case "preStop":
|
|
if r.TryDecodeAsNil() {
|
|
if x.PreStop != nil {
|
|
x.PreStop = nil
|
|
}
|
|
} else {
|
|
if x.PreStop == nil {
|
|
x.PreStop = new(Handler)
|
|
}
|
|
x.PreStop.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1243)
|
|
} // end switch yys1243
|
|
} // end for yyj1243
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *Lifecycle) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1246 int
|
|
var yyb1246 bool
|
|
var yyhl1246 bool = l >= 0
|
|
yyj1246++
|
|
if yyhl1246 {
|
|
yyb1246 = yyj1246 > l
|
|
} else {
|
|
yyb1246 = r.CheckBreak()
|
|
}
|
|
if yyb1246 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.PostStart != nil {
|
|
x.PostStart = nil
|
|
}
|
|
} else {
|
|
if x.PostStart == nil {
|
|
x.PostStart = new(Handler)
|
|
}
|
|
x.PostStart.CodecDecodeSelf(d)
|
|
}
|
|
yyj1246++
|
|
if yyhl1246 {
|
|
yyb1246 = yyj1246 > l
|
|
} else {
|
|
yyb1246 = r.CheckBreak()
|
|
}
|
|
if yyb1246 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.PreStop != nil {
|
|
x.PreStop = nil
|
|
}
|
|
} else {
|
|
if x.PreStop == nil {
|
|
x.PreStop = new(Handler)
|
|
}
|
|
x.PreStop.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj1246++
|
|
if yyhl1246 {
|
|
yyb1246 = yyj1246 > l
|
|
} else {
|
|
yyb1246 = r.CheckBreak()
|
|
}
|
|
if yyb1246 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1246-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x ConditionStatus) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym1249 := z.EncBinary()
|
|
_ = yym1249
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x))
|
|
}
|
|
}
|
|
|
|
func (x *ConditionStatus) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1250 := z.DecBinary()
|
|
_ = yym1250
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
*((*string)(x)) = r.DecodeString()
|
|
}
|
|
}
|
|
|
|
func (x *ContainerStateWaiting) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1251 := z.EncBinary()
|
|
_ = yym1251
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1252 := !z.EncBinary()
|
|
yy2arr1252 := z.EncBasicHandle().StructToArray
|
|
var yyq1252 [2]bool
|
|
_, _, _ = yysep1252, yyq1252, yy2arr1252
|
|
const yyr1252 bool = false
|
|
yyq1252[0] = x.Reason != ""
|
|
yyq1252[1] = x.Message != ""
|
|
var yynn1252 int
|
|
if yyr1252 || yy2arr1252 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn1252 = 0
|
|
for _, b := range yyq1252 {
|
|
if b {
|
|
yynn1252++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1252)
|
|
yynn1252 = 0
|
|
}
|
|
if yyr1252 || yy2arr1252 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1252[0] {
|
|
yym1254 := z.EncBinary()
|
|
_ = yym1254
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1252[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("reason"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1255 := z.EncBinary()
|
|
_ = yym1255
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
|
|
}
|
|
}
|
|
}
|
|
if yyr1252 || yy2arr1252 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1252[1] {
|
|
yym1257 := z.EncBinary()
|
|
_ = yym1257
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1252[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("message"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1258 := z.EncBinary()
|
|
_ = yym1258
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
}
|
|
}
|
|
if yyr1252 || yy2arr1252 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ContainerStateWaiting) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1259 := z.DecBinary()
|
|
_ = yym1259
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1260 := r.ContainerType()
|
|
if yyct1260 == codecSelferValueTypeMap1234 {
|
|
yyl1260 := r.ReadMapStart()
|
|
if yyl1260 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1260, d)
|
|
}
|
|
} else if yyct1260 == codecSelferValueTypeArray1234 {
|
|
yyl1260 := r.ReadArrayStart()
|
|
if yyl1260 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1260, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ContainerStateWaiting) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1261Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1261Slc
|
|
var yyhl1261 bool = l >= 0
|
|
for yyj1261 := 0; ; yyj1261++ {
|
|
if yyhl1261 {
|
|
if yyj1261 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1261Slc = r.DecodeBytes(yys1261Slc, true, true)
|
|
yys1261 := string(yys1261Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1261 {
|
|
case "reason":
|
|
if r.TryDecodeAsNil() {
|
|
x.Reason = ""
|
|
} else {
|
|
x.Reason = string(r.DecodeString())
|
|
}
|
|
case "message":
|
|
if r.TryDecodeAsNil() {
|
|
x.Message = ""
|
|
} else {
|
|
x.Message = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1261)
|
|
} // end switch yys1261
|
|
} // end for yyj1261
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *ContainerStateWaiting) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1264 int
|
|
var yyb1264 bool
|
|
var yyhl1264 bool = l >= 0
|
|
yyj1264++
|
|
if yyhl1264 {
|
|
yyb1264 = yyj1264 > l
|
|
} else {
|
|
yyb1264 = r.CheckBreak()
|
|
}
|
|
if yyb1264 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Reason = ""
|
|
} else {
|
|
x.Reason = string(r.DecodeString())
|
|
}
|
|
yyj1264++
|
|
if yyhl1264 {
|
|
yyb1264 = yyj1264 > l
|
|
} else {
|
|
yyb1264 = r.CheckBreak()
|
|
}
|
|
if yyb1264 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Message = ""
|
|
} else {
|
|
x.Message = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj1264++
|
|
if yyhl1264 {
|
|
yyb1264 = yyj1264 > l
|
|
} else {
|
|
yyb1264 = r.CheckBreak()
|
|
}
|
|
if yyb1264 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1264-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *ContainerStateRunning) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1267 := z.EncBinary()
|
|
_ = yym1267
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1268 := !z.EncBinary()
|
|
yy2arr1268 := z.EncBasicHandle().StructToArray
|
|
var yyq1268 [1]bool
|
|
_, _, _ = yysep1268, yyq1268, yy2arr1268
|
|
const yyr1268 bool = false
|
|
yyq1268[0] = true
|
|
var yynn1268 int
|
|
if yyr1268 || yy2arr1268 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn1268 = 0
|
|
for _, b := range yyq1268 {
|
|
if b {
|
|
yynn1268++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1268)
|
|
yynn1268 = 0
|
|
}
|
|
if yyr1268 || yy2arr1268 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1268[0] {
|
|
yy1270 := &x.StartedAt
|
|
yym1271 := z.EncBinary()
|
|
_ = yym1271
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1270) {
|
|
} else if yym1271 {
|
|
z.EncBinaryMarshal(yy1270)
|
|
} else if !yym1271 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy1270)
|
|
} else {
|
|
z.EncFallback(yy1270)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1268[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("startedAt"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1272 := &x.StartedAt
|
|
yym1273 := z.EncBinary()
|
|
_ = yym1273
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1272) {
|
|
} else if yym1273 {
|
|
z.EncBinaryMarshal(yy1272)
|
|
} else if !yym1273 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy1272)
|
|
} else {
|
|
z.EncFallback(yy1272)
|
|
}
|
|
}
|
|
}
|
|
if yyr1268 || yy2arr1268 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ContainerStateRunning) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1274 := z.DecBinary()
|
|
_ = yym1274
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1275 := r.ContainerType()
|
|
if yyct1275 == codecSelferValueTypeMap1234 {
|
|
yyl1275 := r.ReadMapStart()
|
|
if yyl1275 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1275, d)
|
|
}
|
|
} else if yyct1275 == codecSelferValueTypeArray1234 {
|
|
yyl1275 := r.ReadArrayStart()
|
|
if yyl1275 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1275, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ContainerStateRunning) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1276Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1276Slc
|
|
var yyhl1276 bool = l >= 0
|
|
for yyj1276 := 0; ; yyj1276++ {
|
|
if yyhl1276 {
|
|
if yyj1276 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1276Slc = r.DecodeBytes(yys1276Slc, true, true)
|
|
yys1276 := string(yys1276Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1276 {
|
|
case "startedAt":
|
|
if r.TryDecodeAsNil() {
|
|
x.StartedAt = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv1277 := &x.StartedAt
|
|
yym1278 := z.DecBinary()
|
|
_ = yym1278
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1277) {
|
|
} else if yym1278 {
|
|
z.DecBinaryUnmarshal(yyv1277)
|
|
} else if !yym1278 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv1277)
|
|
} else {
|
|
z.DecFallback(yyv1277, false)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1276)
|
|
} // end switch yys1276
|
|
} // end for yyj1276
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *ContainerStateRunning) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1279 int
|
|
var yyb1279 bool
|
|
var yyhl1279 bool = l >= 0
|
|
yyj1279++
|
|
if yyhl1279 {
|
|
yyb1279 = yyj1279 > l
|
|
} else {
|
|
yyb1279 = r.CheckBreak()
|
|
}
|
|
if yyb1279 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.StartedAt = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv1280 := &x.StartedAt
|
|
yym1281 := z.DecBinary()
|
|
_ = yym1281
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1280) {
|
|
} else if yym1281 {
|
|
z.DecBinaryUnmarshal(yyv1280)
|
|
} else if !yym1281 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv1280)
|
|
} else {
|
|
z.DecFallback(yyv1280, false)
|
|
}
|
|
}
|
|
for {
|
|
yyj1279++
|
|
if yyhl1279 {
|
|
yyb1279 = yyj1279 > l
|
|
} else {
|
|
yyb1279 = r.CheckBreak()
|
|
}
|
|
if yyb1279 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1279-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *ContainerStateTerminated) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1282 := z.EncBinary()
|
|
_ = yym1282
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1283 := !z.EncBinary()
|
|
yy2arr1283 := z.EncBasicHandle().StructToArray
|
|
var yyq1283 [7]bool
|
|
_, _, _ = yysep1283, yyq1283, yy2arr1283
|
|
const yyr1283 bool = false
|
|
yyq1283[1] = x.Signal != 0
|
|
yyq1283[2] = x.Reason != ""
|
|
yyq1283[3] = x.Message != ""
|
|
yyq1283[4] = true
|
|
yyq1283[5] = true
|
|
yyq1283[6] = x.ContainerID != ""
|
|
var yynn1283 int
|
|
if yyr1283 || yy2arr1283 {
|
|
r.EncodeArrayStart(7)
|
|
} else {
|
|
yynn1283 = 1
|
|
for _, b := range yyq1283 {
|
|
if b {
|
|
yynn1283++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1283)
|
|
yynn1283 = 0
|
|
}
|
|
if yyr1283 || yy2arr1283 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1285 := z.EncBinary()
|
|
_ = yym1285
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.ExitCode))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("exitCode"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1286 := z.EncBinary()
|
|
_ = yym1286
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.ExitCode))
|
|
}
|
|
}
|
|
if yyr1283 || yy2arr1283 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1283[1] {
|
|
yym1288 := z.EncBinary()
|
|
_ = yym1288
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Signal))
|
|
}
|
|
} else {
|
|
r.EncodeInt(0)
|
|
}
|
|
} else {
|
|
if yyq1283[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("signal"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1289 := z.EncBinary()
|
|
_ = yym1289
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Signal))
|
|
}
|
|
}
|
|
}
|
|
if yyr1283 || yy2arr1283 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1283[2] {
|
|
yym1291 := z.EncBinary()
|
|
_ = yym1291
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1283[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("reason"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1292 := z.EncBinary()
|
|
_ = yym1292
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
|
|
}
|
|
}
|
|
}
|
|
if yyr1283 || yy2arr1283 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1283[3] {
|
|
yym1294 := z.EncBinary()
|
|
_ = yym1294
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1283[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("message"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1295 := z.EncBinary()
|
|
_ = yym1295
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
}
|
|
}
|
|
if yyr1283 || yy2arr1283 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1283[4] {
|
|
yy1297 := &x.StartedAt
|
|
yym1298 := z.EncBinary()
|
|
_ = yym1298
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1297) {
|
|
} else if yym1298 {
|
|
z.EncBinaryMarshal(yy1297)
|
|
} else if !yym1298 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy1297)
|
|
} else {
|
|
z.EncFallback(yy1297)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1283[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("startedAt"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1299 := &x.StartedAt
|
|
yym1300 := z.EncBinary()
|
|
_ = yym1300
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1299) {
|
|
} else if yym1300 {
|
|
z.EncBinaryMarshal(yy1299)
|
|
} else if !yym1300 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy1299)
|
|
} else {
|
|
z.EncFallback(yy1299)
|
|
}
|
|
}
|
|
}
|
|
if yyr1283 || yy2arr1283 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1283[5] {
|
|
yy1302 := &x.FinishedAt
|
|
yym1303 := z.EncBinary()
|
|
_ = yym1303
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1302) {
|
|
} else if yym1303 {
|
|
z.EncBinaryMarshal(yy1302)
|
|
} else if !yym1303 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy1302)
|
|
} else {
|
|
z.EncFallback(yy1302)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1283[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("finishedAt"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1304 := &x.FinishedAt
|
|
yym1305 := z.EncBinary()
|
|
_ = yym1305
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1304) {
|
|
} else if yym1305 {
|
|
z.EncBinaryMarshal(yy1304)
|
|
} else if !yym1305 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy1304)
|
|
} else {
|
|
z.EncFallback(yy1304)
|
|
}
|
|
}
|
|
}
|
|
if yyr1283 || yy2arr1283 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1283[6] {
|
|
yym1307 := z.EncBinary()
|
|
_ = yym1307
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1283[6] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("containerID"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1308 := z.EncBinary()
|
|
_ = yym1308
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID))
|
|
}
|
|
}
|
|
}
|
|
if yyr1283 || yy2arr1283 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ContainerStateTerminated) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1309 := z.DecBinary()
|
|
_ = yym1309
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1310 := r.ContainerType()
|
|
if yyct1310 == codecSelferValueTypeMap1234 {
|
|
yyl1310 := r.ReadMapStart()
|
|
if yyl1310 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1310, d)
|
|
}
|
|
} else if yyct1310 == codecSelferValueTypeArray1234 {
|
|
yyl1310 := r.ReadArrayStart()
|
|
if yyl1310 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1310, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ContainerStateTerminated) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1311Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1311Slc
|
|
var yyhl1311 bool = l >= 0
|
|
for yyj1311 := 0; ; yyj1311++ {
|
|
if yyhl1311 {
|
|
if yyj1311 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1311Slc = r.DecodeBytes(yys1311Slc, true, true)
|
|
yys1311 := string(yys1311Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1311 {
|
|
case "exitCode":
|
|
if r.TryDecodeAsNil() {
|
|
x.ExitCode = 0
|
|
} else {
|
|
x.ExitCode = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
case "signal":
|
|
if r.TryDecodeAsNil() {
|
|
x.Signal = 0
|
|
} else {
|
|
x.Signal = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
case "reason":
|
|
if r.TryDecodeAsNil() {
|
|
x.Reason = ""
|
|
} else {
|
|
x.Reason = string(r.DecodeString())
|
|
}
|
|
case "message":
|
|
if r.TryDecodeAsNil() {
|
|
x.Message = ""
|
|
} else {
|
|
x.Message = string(r.DecodeString())
|
|
}
|
|
case "startedAt":
|
|
if r.TryDecodeAsNil() {
|
|
x.StartedAt = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv1316 := &x.StartedAt
|
|
yym1317 := z.DecBinary()
|
|
_ = yym1317
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1316) {
|
|
} else if yym1317 {
|
|
z.DecBinaryUnmarshal(yyv1316)
|
|
} else if !yym1317 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv1316)
|
|
} else {
|
|
z.DecFallback(yyv1316, false)
|
|
}
|
|
}
|
|
case "finishedAt":
|
|
if r.TryDecodeAsNil() {
|
|
x.FinishedAt = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv1318 := &x.FinishedAt
|
|
yym1319 := z.DecBinary()
|
|
_ = yym1319
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1318) {
|
|
} else if yym1319 {
|
|
z.DecBinaryUnmarshal(yyv1318)
|
|
} else if !yym1319 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv1318)
|
|
} else {
|
|
z.DecFallback(yyv1318, false)
|
|
}
|
|
}
|
|
case "containerID":
|
|
if r.TryDecodeAsNil() {
|
|
x.ContainerID = ""
|
|
} else {
|
|
x.ContainerID = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1311)
|
|
} // end switch yys1311
|
|
} // end for yyj1311
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *ContainerStateTerminated) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1321 int
|
|
var yyb1321 bool
|
|
var yyhl1321 bool = l >= 0
|
|
yyj1321++
|
|
if yyhl1321 {
|
|
yyb1321 = yyj1321 > l
|
|
} else {
|
|
yyb1321 = r.CheckBreak()
|
|
}
|
|
if yyb1321 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ExitCode = 0
|
|
} else {
|
|
x.ExitCode = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
yyj1321++
|
|
if yyhl1321 {
|
|
yyb1321 = yyj1321 > l
|
|
} else {
|
|
yyb1321 = r.CheckBreak()
|
|
}
|
|
if yyb1321 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Signal = 0
|
|
} else {
|
|
x.Signal = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
yyj1321++
|
|
if yyhl1321 {
|
|
yyb1321 = yyj1321 > l
|
|
} else {
|
|
yyb1321 = r.CheckBreak()
|
|
}
|
|
if yyb1321 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Reason = ""
|
|
} else {
|
|
x.Reason = string(r.DecodeString())
|
|
}
|
|
yyj1321++
|
|
if yyhl1321 {
|
|
yyb1321 = yyj1321 > l
|
|
} else {
|
|
yyb1321 = r.CheckBreak()
|
|
}
|
|
if yyb1321 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Message = ""
|
|
} else {
|
|
x.Message = string(r.DecodeString())
|
|
}
|
|
yyj1321++
|
|
if yyhl1321 {
|
|
yyb1321 = yyj1321 > l
|
|
} else {
|
|
yyb1321 = r.CheckBreak()
|
|
}
|
|
if yyb1321 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.StartedAt = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv1326 := &x.StartedAt
|
|
yym1327 := z.DecBinary()
|
|
_ = yym1327
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1326) {
|
|
} else if yym1327 {
|
|
z.DecBinaryUnmarshal(yyv1326)
|
|
} else if !yym1327 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv1326)
|
|
} else {
|
|
z.DecFallback(yyv1326, false)
|
|
}
|
|
}
|
|
yyj1321++
|
|
if yyhl1321 {
|
|
yyb1321 = yyj1321 > l
|
|
} else {
|
|
yyb1321 = r.CheckBreak()
|
|
}
|
|
if yyb1321 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.FinishedAt = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv1328 := &x.FinishedAt
|
|
yym1329 := z.DecBinary()
|
|
_ = yym1329
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1328) {
|
|
} else if yym1329 {
|
|
z.DecBinaryUnmarshal(yyv1328)
|
|
} else if !yym1329 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv1328)
|
|
} else {
|
|
z.DecFallback(yyv1328, false)
|
|
}
|
|
}
|
|
yyj1321++
|
|
if yyhl1321 {
|
|
yyb1321 = yyj1321 > l
|
|
} else {
|
|
yyb1321 = r.CheckBreak()
|
|
}
|
|
if yyb1321 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ContainerID = ""
|
|
} else {
|
|
x.ContainerID = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj1321++
|
|
if yyhl1321 {
|
|
yyb1321 = yyj1321 > l
|
|
} else {
|
|
yyb1321 = r.CheckBreak()
|
|
}
|
|
if yyb1321 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1321-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *ContainerState) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1331 := z.EncBinary()
|
|
_ = yym1331
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1332 := !z.EncBinary()
|
|
yy2arr1332 := z.EncBasicHandle().StructToArray
|
|
var yyq1332 [3]bool
|
|
_, _, _ = yysep1332, yyq1332, yy2arr1332
|
|
const yyr1332 bool = false
|
|
yyq1332[0] = x.Waiting != nil
|
|
yyq1332[1] = x.Running != nil
|
|
yyq1332[2] = x.Terminated != nil
|
|
var yynn1332 int
|
|
if yyr1332 || yy2arr1332 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn1332 = 0
|
|
for _, b := range yyq1332 {
|
|
if b {
|
|
yynn1332++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1332)
|
|
yynn1332 = 0
|
|
}
|
|
if yyr1332 || yy2arr1332 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1332[0] {
|
|
if x.Waiting == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Waiting.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1332[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("waiting"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Waiting == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Waiting.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1332 || yy2arr1332 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1332[1] {
|
|
if x.Running == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Running.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1332[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("running"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Running == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Running.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1332 || yy2arr1332 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1332[2] {
|
|
if x.Terminated == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Terminated.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1332[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("terminated"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Terminated == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Terminated.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1332 || yy2arr1332 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ContainerState) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1336 := z.DecBinary()
|
|
_ = yym1336
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1337 := r.ContainerType()
|
|
if yyct1337 == codecSelferValueTypeMap1234 {
|
|
yyl1337 := r.ReadMapStart()
|
|
if yyl1337 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1337, d)
|
|
}
|
|
} else if yyct1337 == codecSelferValueTypeArray1234 {
|
|
yyl1337 := r.ReadArrayStart()
|
|
if yyl1337 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1337, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ContainerState) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1338Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1338Slc
|
|
var yyhl1338 bool = l >= 0
|
|
for yyj1338 := 0; ; yyj1338++ {
|
|
if yyhl1338 {
|
|
if yyj1338 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1338Slc = r.DecodeBytes(yys1338Slc, true, true)
|
|
yys1338 := string(yys1338Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1338 {
|
|
case "waiting":
|
|
if r.TryDecodeAsNil() {
|
|
if x.Waiting != nil {
|
|
x.Waiting = nil
|
|
}
|
|
} else {
|
|
if x.Waiting == nil {
|
|
x.Waiting = new(ContainerStateWaiting)
|
|
}
|
|
x.Waiting.CodecDecodeSelf(d)
|
|
}
|
|
case "running":
|
|
if r.TryDecodeAsNil() {
|
|
if x.Running != nil {
|
|
x.Running = nil
|
|
}
|
|
} else {
|
|
if x.Running == nil {
|
|
x.Running = new(ContainerStateRunning)
|
|
}
|
|
x.Running.CodecDecodeSelf(d)
|
|
}
|
|
case "terminated":
|
|
if r.TryDecodeAsNil() {
|
|
if x.Terminated != nil {
|
|
x.Terminated = nil
|
|
}
|
|
} else {
|
|
if x.Terminated == nil {
|
|
x.Terminated = new(ContainerStateTerminated)
|
|
}
|
|
x.Terminated.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1338)
|
|
} // end switch yys1338
|
|
} // end for yyj1338
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *ContainerState) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1342 int
|
|
var yyb1342 bool
|
|
var yyhl1342 bool = l >= 0
|
|
yyj1342++
|
|
if yyhl1342 {
|
|
yyb1342 = yyj1342 > l
|
|
} else {
|
|
yyb1342 = r.CheckBreak()
|
|
}
|
|
if yyb1342 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.Waiting != nil {
|
|
x.Waiting = nil
|
|
}
|
|
} else {
|
|
if x.Waiting == nil {
|
|
x.Waiting = new(ContainerStateWaiting)
|
|
}
|
|
x.Waiting.CodecDecodeSelf(d)
|
|
}
|
|
yyj1342++
|
|
if yyhl1342 {
|
|
yyb1342 = yyj1342 > l
|
|
} else {
|
|
yyb1342 = r.CheckBreak()
|
|
}
|
|
if yyb1342 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.Running != nil {
|
|
x.Running = nil
|
|
}
|
|
} else {
|
|
if x.Running == nil {
|
|
x.Running = new(ContainerStateRunning)
|
|
}
|
|
x.Running.CodecDecodeSelf(d)
|
|
}
|
|
yyj1342++
|
|
if yyhl1342 {
|
|
yyb1342 = yyj1342 > l
|
|
} else {
|
|
yyb1342 = r.CheckBreak()
|
|
}
|
|
if yyb1342 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.Terminated != nil {
|
|
x.Terminated = nil
|
|
}
|
|
} else {
|
|
if x.Terminated == nil {
|
|
x.Terminated = new(ContainerStateTerminated)
|
|
}
|
|
x.Terminated.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj1342++
|
|
if yyhl1342 {
|
|
yyb1342 = yyj1342 > l
|
|
} else {
|
|
yyb1342 = r.CheckBreak()
|
|
}
|
|
if yyb1342 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1342-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *ContainerStatus) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1346 := z.EncBinary()
|
|
_ = yym1346
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1347 := !z.EncBinary()
|
|
yy2arr1347 := z.EncBasicHandle().StructToArray
|
|
var yyq1347 [8]bool
|
|
_, _, _ = yysep1347, yyq1347, yy2arr1347
|
|
const yyr1347 bool = false
|
|
yyq1347[1] = true
|
|
yyq1347[2] = true
|
|
yyq1347[7] = x.ContainerID != ""
|
|
var yynn1347 int
|
|
if yyr1347 || yy2arr1347 {
|
|
r.EncodeArrayStart(8)
|
|
} else {
|
|
yynn1347 = 5
|
|
for _, b := range yyq1347 {
|
|
if b {
|
|
yynn1347++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1347)
|
|
yynn1347 = 0
|
|
}
|
|
if yyr1347 || yy2arr1347 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1349 := z.EncBinary()
|
|
_ = yym1349
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("name"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1350 := z.EncBinary()
|
|
_ = yym1350
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
}
|
|
if yyr1347 || yy2arr1347 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1347[1] {
|
|
yy1352 := &x.State
|
|
yy1352.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1347[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("state"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1353 := &x.State
|
|
yy1353.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1347 || yy2arr1347 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1347[2] {
|
|
yy1355 := &x.LastTerminationState
|
|
yy1355.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1347[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("lastState"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1356 := &x.LastTerminationState
|
|
yy1356.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1347 || yy2arr1347 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1358 := z.EncBinary()
|
|
_ = yym1358
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Ready))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("ready"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1359 := z.EncBinary()
|
|
_ = yym1359
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Ready))
|
|
}
|
|
}
|
|
if yyr1347 || yy2arr1347 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1361 := z.EncBinary()
|
|
_ = yym1361
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.RestartCount))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("restartCount"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1362 := z.EncBinary()
|
|
_ = yym1362
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.RestartCount))
|
|
}
|
|
}
|
|
if yyr1347 || yy2arr1347 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1364 := z.EncBinary()
|
|
_ = yym1364
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Image))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("image"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1365 := z.EncBinary()
|
|
_ = yym1365
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Image))
|
|
}
|
|
}
|
|
if yyr1347 || yy2arr1347 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1367 := z.EncBinary()
|
|
_ = yym1367
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ImageID))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("imageID"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1368 := z.EncBinary()
|
|
_ = yym1368
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ImageID))
|
|
}
|
|
}
|
|
if yyr1347 || yy2arr1347 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1347[7] {
|
|
yym1370 := z.EncBinary()
|
|
_ = yym1370
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1347[7] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("containerID"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1371 := z.EncBinary()
|
|
_ = yym1371
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID))
|
|
}
|
|
}
|
|
}
|
|
if yyr1347 || yy2arr1347 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ContainerStatus) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1372 := z.DecBinary()
|
|
_ = yym1372
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1373 := r.ContainerType()
|
|
if yyct1373 == codecSelferValueTypeMap1234 {
|
|
yyl1373 := r.ReadMapStart()
|
|
if yyl1373 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1373, d)
|
|
}
|
|
} else if yyct1373 == codecSelferValueTypeArray1234 {
|
|
yyl1373 := r.ReadArrayStart()
|
|
if yyl1373 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1373, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ContainerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1374Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1374Slc
|
|
var yyhl1374 bool = l >= 0
|
|
for yyj1374 := 0; ; yyj1374++ {
|
|
if yyhl1374 {
|
|
if yyj1374 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1374Slc = r.DecodeBytes(yys1374Slc, true, true)
|
|
yys1374 := string(yys1374Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1374 {
|
|
case "name":
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
case "state":
|
|
if r.TryDecodeAsNil() {
|
|
x.State = ContainerState{}
|
|
} else {
|
|
yyv1376 := &x.State
|
|
yyv1376.CodecDecodeSelf(d)
|
|
}
|
|
case "lastState":
|
|
if r.TryDecodeAsNil() {
|
|
x.LastTerminationState = ContainerState{}
|
|
} else {
|
|
yyv1377 := &x.LastTerminationState
|
|
yyv1377.CodecDecodeSelf(d)
|
|
}
|
|
case "ready":
|
|
if r.TryDecodeAsNil() {
|
|
x.Ready = false
|
|
} else {
|
|
x.Ready = bool(r.DecodeBool())
|
|
}
|
|
case "restartCount":
|
|
if r.TryDecodeAsNil() {
|
|
x.RestartCount = 0
|
|
} else {
|
|
x.RestartCount = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
case "image":
|
|
if r.TryDecodeAsNil() {
|
|
x.Image = ""
|
|
} else {
|
|
x.Image = string(r.DecodeString())
|
|
}
|
|
case "imageID":
|
|
if r.TryDecodeAsNil() {
|
|
x.ImageID = ""
|
|
} else {
|
|
x.ImageID = string(r.DecodeString())
|
|
}
|
|
case "containerID":
|
|
if r.TryDecodeAsNil() {
|
|
x.ContainerID = ""
|
|
} else {
|
|
x.ContainerID = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1374)
|
|
} // end switch yys1374
|
|
} // end for yyj1374
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *ContainerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1383 int
|
|
var yyb1383 bool
|
|
var yyhl1383 bool = l >= 0
|
|
yyj1383++
|
|
if yyhl1383 {
|
|
yyb1383 = yyj1383 > l
|
|
} else {
|
|
yyb1383 = r.CheckBreak()
|
|
}
|
|
if yyb1383 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
yyj1383++
|
|
if yyhl1383 {
|
|
yyb1383 = yyj1383 > l
|
|
} else {
|
|
yyb1383 = r.CheckBreak()
|
|
}
|
|
if yyb1383 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.State = ContainerState{}
|
|
} else {
|
|
yyv1385 := &x.State
|
|
yyv1385.CodecDecodeSelf(d)
|
|
}
|
|
yyj1383++
|
|
if yyhl1383 {
|
|
yyb1383 = yyj1383 > l
|
|
} else {
|
|
yyb1383 = r.CheckBreak()
|
|
}
|
|
if yyb1383 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.LastTerminationState = ContainerState{}
|
|
} else {
|
|
yyv1386 := &x.LastTerminationState
|
|
yyv1386.CodecDecodeSelf(d)
|
|
}
|
|
yyj1383++
|
|
if yyhl1383 {
|
|
yyb1383 = yyj1383 > l
|
|
} else {
|
|
yyb1383 = r.CheckBreak()
|
|
}
|
|
if yyb1383 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Ready = false
|
|
} else {
|
|
x.Ready = bool(r.DecodeBool())
|
|
}
|
|
yyj1383++
|
|
if yyhl1383 {
|
|
yyb1383 = yyj1383 > l
|
|
} else {
|
|
yyb1383 = r.CheckBreak()
|
|
}
|
|
if yyb1383 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.RestartCount = 0
|
|
} else {
|
|
x.RestartCount = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
yyj1383++
|
|
if yyhl1383 {
|
|
yyb1383 = yyj1383 > l
|
|
} else {
|
|
yyb1383 = r.CheckBreak()
|
|
}
|
|
if yyb1383 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Image = ""
|
|
} else {
|
|
x.Image = string(r.DecodeString())
|
|
}
|
|
yyj1383++
|
|
if yyhl1383 {
|
|
yyb1383 = yyj1383 > l
|
|
} else {
|
|
yyb1383 = r.CheckBreak()
|
|
}
|
|
if yyb1383 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ImageID = ""
|
|
} else {
|
|
x.ImageID = string(r.DecodeString())
|
|
}
|
|
yyj1383++
|
|
if yyhl1383 {
|
|
yyb1383 = yyj1383 > l
|
|
} else {
|
|
yyb1383 = r.CheckBreak()
|
|
}
|
|
if yyb1383 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ContainerID = ""
|
|
} else {
|
|
x.ContainerID = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj1383++
|
|
if yyhl1383 {
|
|
yyb1383 = yyj1383 > l
|
|
} else {
|
|
yyb1383 = r.CheckBreak()
|
|
}
|
|
if yyb1383 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1383-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x PodPhase) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym1392 := z.EncBinary()
|
|
_ = yym1392
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x))
|
|
}
|
|
}
|
|
|
|
func (x *PodPhase) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1393 := z.DecBinary()
|
|
_ = yym1393
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
*((*string)(x)) = r.DecodeString()
|
|
}
|
|
}
|
|
|
|
func (x PodConditionType) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym1394 := z.EncBinary()
|
|
_ = yym1394
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x))
|
|
}
|
|
}
|
|
|
|
func (x *PodConditionType) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1395 := z.DecBinary()
|
|
_ = yym1395
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
*((*string)(x)) = r.DecodeString()
|
|
}
|
|
}
|
|
|
|
func (x *PodCondition) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1396 := z.EncBinary()
|
|
_ = yym1396
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1397 := !z.EncBinary()
|
|
yy2arr1397 := z.EncBasicHandle().StructToArray
|
|
var yyq1397 [6]bool
|
|
_, _, _ = yysep1397, yyq1397, yy2arr1397
|
|
const yyr1397 bool = false
|
|
yyq1397[2] = true
|
|
yyq1397[3] = true
|
|
yyq1397[4] = x.Reason != ""
|
|
yyq1397[5] = x.Message != ""
|
|
var yynn1397 int
|
|
if yyr1397 || yy2arr1397 {
|
|
r.EncodeArrayStart(6)
|
|
} else {
|
|
yynn1397 = 2
|
|
for _, b := range yyq1397 {
|
|
if b {
|
|
yynn1397++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1397)
|
|
yynn1397 = 0
|
|
}
|
|
if yyr1397 || yy2arr1397 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
x.Type.CodecEncodeSelf(e)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("type"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Type.CodecEncodeSelf(e)
|
|
}
|
|
if yyr1397 || yy2arr1397 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
x.Status.CodecEncodeSelf(e)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("status"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Status.CodecEncodeSelf(e)
|
|
}
|
|
if yyr1397 || yy2arr1397 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1397[2] {
|
|
yy1401 := &x.LastProbeTime
|
|
yym1402 := z.EncBinary()
|
|
_ = yym1402
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1401) {
|
|
} else if yym1402 {
|
|
z.EncBinaryMarshal(yy1401)
|
|
} else if !yym1402 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy1401)
|
|
} else {
|
|
z.EncFallback(yy1401)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1397[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("lastProbeTime"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1403 := &x.LastProbeTime
|
|
yym1404 := z.EncBinary()
|
|
_ = yym1404
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1403) {
|
|
} else if yym1404 {
|
|
z.EncBinaryMarshal(yy1403)
|
|
} else if !yym1404 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy1403)
|
|
} else {
|
|
z.EncFallback(yy1403)
|
|
}
|
|
}
|
|
}
|
|
if yyr1397 || yy2arr1397 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1397[3] {
|
|
yy1406 := &x.LastTransitionTime
|
|
yym1407 := z.EncBinary()
|
|
_ = yym1407
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1406) {
|
|
} else if yym1407 {
|
|
z.EncBinaryMarshal(yy1406)
|
|
} else if !yym1407 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy1406)
|
|
} else {
|
|
z.EncFallback(yy1406)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1397[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1408 := &x.LastTransitionTime
|
|
yym1409 := z.EncBinary()
|
|
_ = yym1409
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1408) {
|
|
} else if yym1409 {
|
|
z.EncBinaryMarshal(yy1408)
|
|
} else if !yym1409 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy1408)
|
|
} else {
|
|
z.EncFallback(yy1408)
|
|
}
|
|
}
|
|
}
|
|
if yyr1397 || yy2arr1397 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1397[4] {
|
|
yym1411 := z.EncBinary()
|
|
_ = yym1411
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1397[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("reason"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1412 := z.EncBinary()
|
|
_ = yym1412
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
|
|
}
|
|
}
|
|
}
|
|
if yyr1397 || yy2arr1397 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1397[5] {
|
|
yym1414 := z.EncBinary()
|
|
_ = yym1414
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1397[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("message"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1415 := z.EncBinary()
|
|
_ = yym1415
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
}
|
|
}
|
|
if yyr1397 || yy2arr1397 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PodCondition) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1416 := z.DecBinary()
|
|
_ = yym1416
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1417 := r.ContainerType()
|
|
if yyct1417 == codecSelferValueTypeMap1234 {
|
|
yyl1417 := r.ReadMapStart()
|
|
if yyl1417 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1417, d)
|
|
}
|
|
} else if yyct1417 == codecSelferValueTypeArray1234 {
|
|
yyl1417 := r.ReadArrayStart()
|
|
if yyl1417 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1417, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PodCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1418Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1418Slc
|
|
var yyhl1418 bool = l >= 0
|
|
for yyj1418 := 0; ; yyj1418++ {
|
|
if yyhl1418 {
|
|
if yyj1418 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1418Slc = r.DecodeBytes(yys1418Slc, true, true)
|
|
yys1418 := string(yys1418Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1418 {
|
|
case "type":
|
|
if r.TryDecodeAsNil() {
|
|
x.Type = ""
|
|
} else {
|
|
x.Type = PodConditionType(r.DecodeString())
|
|
}
|
|
case "status":
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = ""
|
|
} else {
|
|
x.Status = ConditionStatus(r.DecodeString())
|
|
}
|
|
case "lastProbeTime":
|
|
if r.TryDecodeAsNil() {
|
|
x.LastProbeTime = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv1421 := &x.LastProbeTime
|
|
yym1422 := z.DecBinary()
|
|
_ = yym1422
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1421) {
|
|
} else if yym1422 {
|
|
z.DecBinaryUnmarshal(yyv1421)
|
|
} else if !yym1422 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv1421)
|
|
} else {
|
|
z.DecFallback(yyv1421, false)
|
|
}
|
|
}
|
|
case "lastTransitionTime":
|
|
if r.TryDecodeAsNil() {
|
|
x.LastTransitionTime = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv1423 := &x.LastTransitionTime
|
|
yym1424 := z.DecBinary()
|
|
_ = yym1424
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1423) {
|
|
} else if yym1424 {
|
|
z.DecBinaryUnmarshal(yyv1423)
|
|
} else if !yym1424 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv1423)
|
|
} else {
|
|
z.DecFallback(yyv1423, false)
|
|
}
|
|
}
|
|
case "reason":
|
|
if r.TryDecodeAsNil() {
|
|
x.Reason = ""
|
|
} else {
|
|
x.Reason = string(r.DecodeString())
|
|
}
|
|
case "message":
|
|
if r.TryDecodeAsNil() {
|
|
x.Message = ""
|
|
} else {
|
|
x.Message = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1418)
|
|
} // end switch yys1418
|
|
} // end for yyj1418
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *PodCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1427 int
|
|
var yyb1427 bool
|
|
var yyhl1427 bool = l >= 0
|
|
yyj1427++
|
|
if yyhl1427 {
|
|
yyb1427 = yyj1427 > l
|
|
} else {
|
|
yyb1427 = r.CheckBreak()
|
|
}
|
|
if yyb1427 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Type = ""
|
|
} else {
|
|
x.Type = PodConditionType(r.DecodeString())
|
|
}
|
|
yyj1427++
|
|
if yyhl1427 {
|
|
yyb1427 = yyj1427 > l
|
|
} else {
|
|
yyb1427 = r.CheckBreak()
|
|
}
|
|
if yyb1427 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = ""
|
|
} else {
|
|
x.Status = ConditionStatus(r.DecodeString())
|
|
}
|
|
yyj1427++
|
|
if yyhl1427 {
|
|
yyb1427 = yyj1427 > l
|
|
} else {
|
|
yyb1427 = r.CheckBreak()
|
|
}
|
|
if yyb1427 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.LastProbeTime = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv1430 := &x.LastProbeTime
|
|
yym1431 := z.DecBinary()
|
|
_ = yym1431
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1430) {
|
|
} else if yym1431 {
|
|
z.DecBinaryUnmarshal(yyv1430)
|
|
} else if !yym1431 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv1430)
|
|
} else {
|
|
z.DecFallback(yyv1430, false)
|
|
}
|
|
}
|
|
yyj1427++
|
|
if yyhl1427 {
|
|
yyb1427 = yyj1427 > l
|
|
} else {
|
|
yyb1427 = r.CheckBreak()
|
|
}
|
|
if yyb1427 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.LastTransitionTime = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv1432 := &x.LastTransitionTime
|
|
yym1433 := z.DecBinary()
|
|
_ = yym1433
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1432) {
|
|
} else if yym1433 {
|
|
z.DecBinaryUnmarshal(yyv1432)
|
|
} else if !yym1433 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv1432)
|
|
} else {
|
|
z.DecFallback(yyv1432, false)
|
|
}
|
|
}
|
|
yyj1427++
|
|
if yyhl1427 {
|
|
yyb1427 = yyj1427 > l
|
|
} else {
|
|
yyb1427 = r.CheckBreak()
|
|
}
|
|
if yyb1427 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Reason = ""
|
|
} else {
|
|
x.Reason = string(r.DecodeString())
|
|
}
|
|
yyj1427++
|
|
if yyhl1427 {
|
|
yyb1427 = yyj1427 > l
|
|
} else {
|
|
yyb1427 = r.CheckBreak()
|
|
}
|
|
if yyb1427 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Message = ""
|
|
} else {
|
|
x.Message = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj1427++
|
|
if yyhl1427 {
|
|
yyb1427 = yyj1427 > l
|
|
} else {
|
|
yyb1427 = r.CheckBreak()
|
|
}
|
|
if yyb1427 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1427-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x RestartPolicy) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym1436 := z.EncBinary()
|
|
_ = yym1436
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x))
|
|
}
|
|
}
|
|
|
|
func (x *RestartPolicy) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1437 := z.DecBinary()
|
|
_ = yym1437
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
*((*string)(x)) = r.DecodeString()
|
|
}
|
|
}
|
|
|
|
func (x *PodList) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1438 := z.EncBinary()
|
|
_ = yym1438
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1439 := !z.EncBinary()
|
|
yy2arr1439 := z.EncBasicHandle().StructToArray
|
|
var yyq1439 [4]bool
|
|
_, _, _ = yysep1439, yyq1439, yy2arr1439
|
|
const yyr1439 bool = false
|
|
yyq1439[0] = x.Kind != ""
|
|
yyq1439[1] = x.APIVersion != ""
|
|
yyq1439[2] = true
|
|
var yynn1439 int
|
|
if yyr1439 || yy2arr1439 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn1439 = 1
|
|
for _, b := range yyq1439 {
|
|
if b {
|
|
yynn1439++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1439)
|
|
yynn1439 = 0
|
|
}
|
|
if yyr1439 || yy2arr1439 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1439[0] {
|
|
yym1441 := z.EncBinary()
|
|
_ = yym1441
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1439[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1442 := z.EncBinary()
|
|
_ = yym1442
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr1439 || yy2arr1439 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1439[1] {
|
|
yym1444 := z.EncBinary()
|
|
_ = yym1444
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1439[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1445 := z.EncBinary()
|
|
_ = yym1445
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr1439 || yy2arr1439 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1439[2] {
|
|
yy1447 := &x.ListMeta
|
|
yym1448 := z.EncBinary()
|
|
_ = yym1448
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1447) {
|
|
} else {
|
|
z.EncFallback(yy1447)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1439[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1449 := &x.ListMeta
|
|
yym1450 := z.EncBinary()
|
|
_ = yym1450
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1449) {
|
|
} else {
|
|
z.EncFallback(yy1449)
|
|
}
|
|
}
|
|
}
|
|
if yyr1439 || yy2arr1439 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1452 := z.EncBinary()
|
|
_ = yym1452
|
|
if false {
|
|
} else {
|
|
h.encSlicePod(([]Pod)(x.Items), e)
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("items"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1453 := z.EncBinary()
|
|
_ = yym1453
|
|
if false {
|
|
} else {
|
|
h.encSlicePod(([]Pod)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1439 || yy2arr1439 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PodList) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1454 := z.DecBinary()
|
|
_ = yym1454
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1455 := r.ContainerType()
|
|
if yyct1455 == codecSelferValueTypeMap1234 {
|
|
yyl1455 := r.ReadMapStart()
|
|
if yyl1455 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1455, d)
|
|
}
|
|
} else if yyct1455 == codecSelferValueTypeArray1234 {
|
|
yyl1455 := r.ReadArrayStart()
|
|
if yyl1455 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1455, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PodList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1456Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1456Slc
|
|
var yyhl1456 bool = l >= 0
|
|
for yyj1456 := 0; ; yyj1456++ {
|
|
if yyhl1456 {
|
|
if yyj1456 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1456Slc = r.DecodeBytes(yys1456Slc, true, true)
|
|
yys1456 := string(yys1456Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1456 {
|
|
case "kind":
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
case "apiVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
case "metadata":
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv1459 := &x.ListMeta
|
|
yym1460 := z.DecBinary()
|
|
_ = yym1460
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1459) {
|
|
} else {
|
|
z.DecFallback(yyv1459, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv1461 := &x.Items
|
|
yym1462 := z.DecBinary()
|
|
_ = yym1462
|
|
if false {
|
|
} else {
|
|
h.decSlicePod((*[]Pod)(yyv1461), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1456)
|
|
} // end switch yys1456
|
|
} // end for yyj1456
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *PodList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1463 int
|
|
var yyb1463 bool
|
|
var yyhl1463 bool = l >= 0
|
|
yyj1463++
|
|
if yyhl1463 {
|
|
yyb1463 = yyj1463 > l
|
|
} else {
|
|
yyb1463 = r.CheckBreak()
|
|
}
|
|
if yyb1463 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj1463++
|
|
if yyhl1463 {
|
|
yyb1463 = yyj1463 > l
|
|
} else {
|
|
yyb1463 = r.CheckBreak()
|
|
}
|
|
if yyb1463 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj1463++
|
|
if yyhl1463 {
|
|
yyb1463 = yyj1463 > l
|
|
} else {
|
|
yyb1463 = r.CheckBreak()
|
|
}
|
|
if yyb1463 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv1466 := &x.ListMeta
|
|
yym1467 := z.DecBinary()
|
|
_ = yym1467
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1466) {
|
|
} else {
|
|
z.DecFallback(yyv1466, false)
|
|
}
|
|
}
|
|
yyj1463++
|
|
if yyhl1463 {
|
|
yyb1463 = yyj1463 > l
|
|
} else {
|
|
yyb1463 = r.CheckBreak()
|
|
}
|
|
if yyb1463 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv1468 := &x.Items
|
|
yym1469 := z.DecBinary()
|
|
_ = yym1469
|
|
if false {
|
|
} else {
|
|
h.decSlicePod((*[]Pod)(yyv1468), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj1463++
|
|
if yyhl1463 {
|
|
yyb1463 = yyj1463 > l
|
|
} else {
|
|
yyb1463 = r.CheckBreak()
|
|
}
|
|
if yyb1463 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1463-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x DNSPolicy) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym1470 := z.EncBinary()
|
|
_ = yym1470
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x))
|
|
}
|
|
}
|
|
|
|
func (x *DNSPolicy) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1471 := z.DecBinary()
|
|
_ = yym1471
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
*((*string)(x)) = r.DecodeString()
|
|
}
|
|
}
|
|
|
|
func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1472 := z.EncBinary()
|
|
_ = yym1472
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1473 := !z.EncBinary()
|
|
yy2arr1473 := z.EncBasicHandle().StructToArray
|
|
var yyq1473 [11]bool
|
|
_, _, _ = yysep1473, yyq1473, yy2arr1473
|
|
const yyr1473 bool = false
|
|
yyq1473[2] = x.RestartPolicy != ""
|
|
yyq1473[3] = x.TerminationGracePeriodSeconds != nil
|
|
yyq1473[4] = x.ActiveDeadlineSeconds != nil
|
|
yyq1473[5] = x.DNSPolicy != ""
|
|
yyq1473[6] = len(x.NodeSelector) != 0
|
|
yyq1473[8] = x.NodeName != ""
|
|
yyq1473[9] = x.SecurityContext != nil
|
|
yyq1473[10] = len(x.ImagePullSecrets) != 0
|
|
var yynn1473 int
|
|
if yyr1473 || yy2arr1473 {
|
|
r.EncodeArrayStart(11)
|
|
} else {
|
|
yynn1473 = 3
|
|
for _, b := range yyq1473 {
|
|
if b {
|
|
yynn1473++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1473)
|
|
yynn1473 = 0
|
|
}
|
|
if yyr1473 || yy2arr1473 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Volumes == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1475 := z.EncBinary()
|
|
_ = yym1475
|
|
if false {
|
|
} else {
|
|
h.encSliceVolume(([]Volume)(x.Volumes), e)
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("volumes"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Volumes == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1476 := z.EncBinary()
|
|
_ = yym1476
|
|
if false {
|
|
} else {
|
|
h.encSliceVolume(([]Volume)(x.Volumes), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1473 || yy2arr1473 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Containers == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1478 := z.EncBinary()
|
|
_ = yym1478
|
|
if false {
|
|
} else {
|
|
h.encSliceContainer(([]Container)(x.Containers), e)
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("containers"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Containers == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1479 := z.EncBinary()
|
|
_ = yym1479
|
|
if false {
|
|
} else {
|
|
h.encSliceContainer(([]Container)(x.Containers), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1473 || yy2arr1473 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1473[2] {
|
|
x.RestartPolicy.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1473[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("restartPolicy"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.RestartPolicy.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1473 || yy2arr1473 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1473[3] {
|
|
if x.TerminationGracePeriodSeconds == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy1482 := *x.TerminationGracePeriodSeconds
|
|
yym1483 := z.EncBinary()
|
|
_ = yym1483
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy1482))
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1473[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("terminationGracePeriodSeconds"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.TerminationGracePeriodSeconds == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy1484 := *x.TerminationGracePeriodSeconds
|
|
yym1485 := z.EncBinary()
|
|
_ = yym1485
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy1484))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1473 || yy2arr1473 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1473[4] {
|
|
if x.ActiveDeadlineSeconds == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy1487 := *x.ActiveDeadlineSeconds
|
|
yym1488 := z.EncBinary()
|
|
_ = yym1488
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy1487))
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1473[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("activeDeadlineSeconds"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.ActiveDeadlineSeconds == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy1489 := *x.ActiveDeadlineSeconds
|
|
yym1490 := z.EncBinary()
|
|
_ = yym1490
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy1489))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1473 || yy2arr1473 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1473[5] {
|
|
x.DNSPolicy.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1473[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("dnsPolicy"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.DNSPolicy.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1473 || yy2arr1473 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1473[6] {
|
|
if x.NodeSelector == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1493 := z.EncBinary()
|
|
_ = yym1493
|
|
if false {
|
|
} else {
|
|
z.F.EncMapStringStringV(x.NodeSelector, false, e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1473[6] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("nodeSelector"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.NodeSelector == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1494 := z.EncBinary()
|
|
_ = yym1494
|
|
if false {
|
|
} else {
|
|
z.F.EncMapStringStringV(x.NodeSelector, false, e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1473 || yy2arr1473 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1496 := z.EncBinary()
|
|
_ = yym1496
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountName))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("serviceAccountName"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1497 := z.EncBinary()
|
|
_ = yym1497
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountName))
|
|
}
|
|
}
|
|
if yyr1473 || yy2arr1473 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1473[8] {
|
|
yym1499 := z.EncBinary()
|
|
_ = yym1499
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.NodeName))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1473[8] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("nodeName"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1500 := z.EncBinary()
|
|
_ = yym1500
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.NodeName))
|
|
}
|
|
}
|
|
}
|
|
if yyr1473 || yy2arr1473 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1473[9] {
|
|
if x.SecurityContext == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.SecurityContext.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1473[9] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("securityContext"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.SecurityContext == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.SecurityContext.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1473 || yy2arr1473 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1473[10] {
|
|
if x.ImagePullSecrets == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1503 := z.EncBinary()
|
|
_ = yym1503
|
|
if false {
|
|
} else {
|
|
h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1473[10] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.ImagePullSecrets == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1504 := z.EncBinary()
|
|
_ = yym1504
|
|
if false {
|
|
} else {
|
|
h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1473 || yy2arr1473 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PodSpec) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1505 := z.DecBinary()
|
|
_ = yym1505
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1506 := r.ContainerType()
|
|
if yyct1506 == codecSelferValueTypeMap1234 {
|
|
yyl1506 := r.ReadMapStart()
|
|
if yyl1506 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1506, d)
|
|
}
|
|
} else if yyct1506 == codecSelferValueTypeArray1234 {
|
|
yyl1506 := r.ReadArrayStart()
|
|
if yyl1506 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1506, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PodSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1507Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1507Slc
|
|
var yyhl1507 bool = l >= 0
|
|
for yyj1507 := 0; ; yyj1507++ {
|
|
if yyhl1507 {
|
|
if yyj1507 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1507Slc = r.DecodeBytes(yys1507Slc, true, true)
|
|
yys1507 := string(yys1507Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1507 {
|
|
case "volumes":
|
|
if r.TryDecodeAsNil() {
|
|
x.Volumes = nil
|
|
} else {
|
|
yyv1508 := &x.Volumes
|
|
yym1509 := z.DecBinary()
|
|
_ = yym1509
|
|
if false {
|
|
} else {
|
|
h.decSliceVolume((*[]Volume)(yyv1508), d)
|
|
}
|
|
}
|
|
case "containers":
|
|
if r.TryDecodeAsNil() {
|
|
x.Containers = nil
|
|
} else {
|
|
yyv1510 := &x.Containers
|
|
yym1511 := z.DecBinary()
|
|
_ = yym1511
|
|
if false {
|
|
} else {
|
|
h.decSliceContainer((*[]Container)(yyv1510), d)
|
|
}
|
|
}
|
|
case "restartPolicy":
|
|
if r.TryDecodeAsNil() {
|
|
x.RestartPolicy = ""
|
|
} else {
|
|
x.RestartPolicy = RestartPolicy(r.DecodeString())
|
|
}
|
|
case "terminationGracePeriodSeconds":
|
|
if r.TryDecodeAsNil() {
|
|
if x.TerminationGracePeriodSeconds != nil {
|
|
x.TerminationGracePeriodSeconds = nil
|
|
}
|
|
} else {
|
|
if x.TerminationGracePeriodSeconds == nil {
|
|
x.TerminationGracePeriodSeconds = new(int64)
|
|
}
|
|
yym1514 := z.DecBinary()
|
|
_ = yym1514
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.TerminationGracePeriodSeconds)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
case "activeDeadlineSeconds":
|
|
if r.TryDecodeAsNil() {
|
|
if x.ActiveDeadlineSeconds != nil {
|
|
x.ActiveDeadlineSeconds = nil
|
|
}
|
|
} else {
|
|
if x.ActiveDeadlineSeconds == nil {
|
|
x.ActiveDeadlineSeconds = new(int64)
|
|
}
|
|
yym1516 := z.DecBinary()
|
|
_ = yym1516
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
case "dnsPolicy":
|
|
if r.TryDecodeAsNil() {
|
|
x.DNSPolicy = ""
|
|
} else {
|
|
x.DNSPolicy = DNSPolicy(r.DecodeString())
|
|
}
|
|
case "nodeSelector":
|
|
if r.TryDecodeAsNil() {
|
|
x.NodeSelector = nil
|
|
} else {
|
|
yyv1518 := &x.NodeSelector
|
|
yym1519 := z.DecBinary()
|
|
_ = yym1519
|
|
if false {
|
|
} else {
|
|
z.F.DecMapStringStringX(yyv1518, false, d)
|
|
}
|
|
}
|
|
case "serviceAccountName":
|
|
if r.TryDecodeAsNil() {
|
|
x.ServiceAccountName = ""
|
|
} else {
|
|
x.ServiceAccountName = string(r.DecodeString())
|
|
}
|
|
case "nodeName":
|
|
if r.TryDecodeAsNil() {
|
|
x.NodeName = ""
|
|
} else {
|
|
x.NodeName = string(r.DecodeString())
|
|
}
|
|
case "securityContext":
|
|
if r.TryDecodeAsNil() {
|
|
if x.SecurityContext != nil {
|
|
x.SecurityContext = nil
|
|
}
|
|
} else {
|
|
if x.SecurityContext == nil {
|
|
x.SecurityContext = new(PodSecurityContext)
|
|
}
|
|
x.SecurityContext.CodecDecodeSelf(d)
|
|
}
|
|
case "imagePullSecrets":
|
|
if r.TryDecodeAsNil() {
|
|
x.ImagePullSecrets = nil
|
|
} else {
|
|
yyv1523 := &x.ImagePullSecrets
|
|
yym1524 := z.DecBinary()
|
|
_ = yym1524
|
|
if false {
|
|
} else {
|
|
h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv1523), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1507)
|
|
} // end switch yys1507
|
|
} // end for yyj1507
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1525 int
|
|
var yyb1525 bool
|
|
var yyhl1525 bool = l >= 0
|
|
yyj1525++
|
|
if yyhl1525 {
|
|
yyb1525 = yyj1525 > l
|
|
} else {
|
|
yyb1525 = r.CheckBreak()
|
|
}
|
|
if yyb1525 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Volumes = nil
|
|
} else {
|
|
yyv1526 := &x.Volumes
|
|
yym1527 := z.DecBinary()
|
|
_ = yym1527
|
|
if false {
|
|
} else {
|
|
h.decSliceVolume((*[]Volume)(yyv1526), d)
|
|
}
|
|
}
|
|
yyj1525++
|
|
if yyhl1525 {
|
|
yyb1525 = yyj1525 > l
|
|
} else {
|
|
yyb1525 = r.CheckBreak()
|
|
}
|
|
if yyb1525 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Containers = nil
|
|
} else {
|
|
yyv1528 := &x.Containers
|
|
yym1529 := z.DecBinary()
|
|
_ = yym1529
|
|
if false {
|
|
} else {
|
|
h.decSliceContainer((*[]Container)(yyv1528), d)
|
|
}
|
|
}
|
|
yyj1525++
|
|
if yyhl1525 {
|
|
yyb1525 = yyj1525 > l
|
|
} else {
|
|
yyb1525 = r.CheckBreak()
|
|
}
|
|
if yyb1525 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.RestartPolicy = ""
|
|
} else {
|
|
x.RestartPolicy = RestartPolicy(r.DecodeString())
|
|
}
|
|
yyj1525++
|
|
if yyhl1525 {
|
|
yyb1525 = yyj1525 > l
|
|
} else {
|
|
yyb1525 = r.CheckBreak()
|
|
}
|
|
if yyb1525 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.TerminationGracePeriodSeconds != nil {
|
|
x.TerminationGracePeriodSeconds = nil
|
|
}
|
|
} else {
|
|
if x.TerminationGracePeriodSeconds == nil {
|
|
x.TerminationGracePeriodSeconds = new(int64)
|
|
}
|
|
yym1532 := z.DecBinary()
|
|
_ = yym1532
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.TerminationGracePeriodSeconds)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
yyj1525++
|
|
if yyhl1525 {
|
|
yyb1525 = yyj1525 > l
|
|
} else {
|
|
yyb1525 = r.CheckBreak()
|
|
}
|
|
if yyb1525 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.ActiveDeadlineSeconds != nil {
|
|
x.ActiveDeadlineSeconds = nil
|
|
}
|
|
} else {
|
|
if x.ActiveDeadlineSeconds == nil {
|
|
x.ActiveDeadlineSeconds = new(int64)
|
|
}
|
|
yym1534 := z.DecBinary()
|
|
_ = yym1534
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
yyj1525++
|
|
if yyhl1525 {
|
|
yyb1525 = yyj1525 > l
|
|
} else {
|
|
yyb1525 = r.CheckBreak()
|
|
}
|
|
if yyb1525 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.DNSPolicy = ""
|
|
} else {
|
|
x.DNSPolicy = DNSPolicy(r.DecodeString())
|
|
}
|
|
yyj1525++
|
|
if yyhl1525 {
|
|
yyb1525 = yyj1525 > l
|
|
} else {
|
|
yyb1525 = r.CheckBreak()
|
|
}
|
|
if yyb1525 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.NodeSelector = nil
|
|
} else {
|
|
yyv1536 := &x.NodeSelector
|
|
yym1537 := z.DecBinary()
|
|
_ = yym1537
|
|
if false {
|
|
} else {
|
|
z.F.DecMapStringStringX(yyv1536, false, d)
|
|
}
|
|
}
|
|
yyj1525++
|
|
if yyhl1525 {
|
|
yyb1525 = yyj1525 > l
|
|
} else {
|
|
yyb1525 = r.CheckBreak()
|
|
}
|
|
if yyb1525 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ServiceAccountName = ""
|
|
} else {
|
|
x.ServiceAccountName = string(r.DecodeString())
|
|
}
|
|
yyj1525++
|
|
if yyhl1525 {
|
|
yyb1525 = yyj1525 > l
|
|
} else {
|
|
yyb1525 = r.CheckBreak()
|
|
}
|
|
if yyb1525 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.NodeName = ""
|
|
} else {
|
|
x.NodeName = string(r.DecodeString())
|
|
}
|
|
yyj1525++
|
|
if yyhl1525 {
|
|
yyb1525 = yyj1525 > l
|
|
} else {
|
|
yyb1525 = r.CheckBreak()
|
|
}
|
|
if yyb1525 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.SecurityContext != nil {
|
|
x.SecurityContext = nil
|
|
}
|
|
} else {
|
|
if x.SecurityContext == nil {
|
|
x.SecurityContext = new(PodSecurityContext)
|
|
}
|
|
x.SecurityContext.CodecDecodeSelf(d)
|
|
}
|
|
yyj1525++
|
|
if yyhl1525 {
|
|
yyb1525 = yyj1525 > l
|
|
} else {
|
|
yyb1525 = r.CheckBreak()
|
|
}
|
|
if yyb1525 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ImagePullSecrets = nil
|
|
} else {
|
|
yyv1541 := &x.ImagePullSecrets
|
|
yym1542 := z.DecBinary()
|
|
_ = yym1542
|
|
if false {
|
|
} else {
|
|
h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv1541), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj1525++
|
|
if yyhl1525 {
|
|
yyb1525 = yyj1525 > l
|
|
} else {
|
|
yyb1525 = r.CheckBreak()
|
|
}
|
|
if yyb1525 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1525-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *PodSecurityContext) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1543 := z.EncBinary()
|
|
_ = yym1543
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1544 := !z.EncBinary()
|
|
yy2arr1544 := z.EncBasicHandle().StructToArray
|
|
var yyq1544 [8]bool
|
|
_, _, _ = yysep1544, yyq1544, yy2arr1544
|
|
const yyr1544 bool = false
|
|
yyq1544[0] = x.HostNetwork != false
|
|
yyq1544[1] = x.HostPID != false
|
|
yyq1544[2] = x.HostIPC != false
|
|
yyq1544[3] = x.SELinuxOptions != nil
|
|
yyq1544[4] = x.RunAsUser != nil
|
|
yyq1544[5] = x.RunAsNonRoot != nil
|
|
yyq1544[6] = len(x.SupplementalGroups) != 0
|
|
yyq1544[7] = x.FSGroup != nil
|
|
var yynn1544 int
|
|
if yyr1544 || yy2arr1544 {
|
|
r.EncodeArrayStart(8)
|
|
} else {
|
|
yynn1544 = 0
|
|
for _, b := range yyq1544 {
|
|
if b {
|
|
yynn1544++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1544)
|
|
yynn1544 = 0
|
|
}
|
|
if yyr1544 || yy2arr1544 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1544[0] {
|
|
yym1546 := z.EncBinary()
|
|
_ = yym1546
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.HostNetwork))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq1544[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("hostNetwork"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1547 := z.EncBinary()
|
|
_ = yym1547
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.HostNetwork))
|
|
}
|
|
}
|
|
}
|
|
if yyr1544 || yy2arr1544 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1544[1] {
|
|
yym1549 := z.EncBinary()
|
|
_ = yym1549
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.HostPID))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq1544[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("hostPID"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1550 := z.EncBinary()
|
|
_ = yym1550
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.HostPID))
|
|
}
|
|
}
|
|
}
|
|
if yyr1544 || yy2arr1544 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1544[2] {
|
|
yym1552 := z.EncBinary()
|
|
_ = yym1552
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.HostIPC))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq1544[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("hostIPC"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1553 := z.EncBinary()
|
|
_ = yym1553
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.HostIPC))
|
|
}
|
|
}
|
|
}
|
|
if yyr1544 || yy2arr1544 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1544[3] {
|
|
if x.SELinuxOptions == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.SELinuxOptions.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1544[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("seLinuxOptions"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.SELinuxOptions == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.SELinuxOptions.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1544 || yy2arr1544 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1544[4] {
|
|
if x.RunAsUser == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy1556 := *x.RunAsUser
|
|
yym1557 := z.EncBinary()
|
|
_ = yym1557
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy1556))
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1544[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("runAsUser"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.RunAsUser == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy1558 := *x.RunAsUser
|
|
yym1559 := z.EncBinary()
|
|
_ = yym1559
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy1558))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1544 || yy2arr1544 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1544[5] {
|
|
if x.RunAsNonRoot == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy1561 := *x.RunAsNonRoot
|
|
yym1562 := z.EncBinary()
|
|
_ = yym1562
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(yy1561))
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1544[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.RunAsNonRoot == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy1563 := *x.RunAsNonRoot
|
|
yym1564 := z.EncBinary()
|
|
_ = yym1564
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(yy1563))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1544 || yy2arr1544 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1544[6] {
|
|
if x.SupplementalGroups == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1566 := z.EncBinary()
|
|
_ = yym1566
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceInt64V(x.SupplementalGroups, false, e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1544[6] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("supplementalGroups"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.SupplementalGroups == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1567 := z.EncBinary()
|
|
_ = yym1567
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceInt64V(x.SupplementalGroups, false, e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1544 || yy2arr1544 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1544[7] {
|
|
if x.FSGroup == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy1569 := *x.FSGroup
|
|
yym1570 := z.EncBinary()
|
|
_ = yym1570
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy1569))
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1544[7] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("fsGroup"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.FSGroup == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy1571 := *x.FSGroup
|
|
yym1572 := z.EncBinary()
|
|
_ = yym1572
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy1571))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1544 || yy2arr1544 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PodSecurityContext) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1573 := z.DecBinary()
|
|
_ = yym1573
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1574 := r.ContainerType()
|
|
if yyct1574 == codecSelferValueTypeMap1234 {
|
|
yyl1574 := r.ReadMapStart()
|
|
if yyl1574 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1574, d)
|
|
}
|
|
} else if yyct1574 == codecSelferValueTypeArray1234 {
|
|
yyl1574 := r.ReadArrayStart()
|
|
if yyl1574 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1574, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PodSecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1575Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1575Slc
|
|
var yyhl1575 bool = l >= 0
|
|
for yyj1575 := 0; ; yyj1575++ {
|
|
if yyhl1575 {
|
|
if yyj1575 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1575Slc = r.DecodeBytes(yys1575Slc, true, true)
|
|
yys1575 := string(yys1575Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1575 {
|
|
case "hostNetwork":
|
|
if r.TryDecodeAsNil() {
|
|
x.HostNetwork = false
|
|
} else {
|
|
x.HostNetwork = bool(r.DecodeBool())
|
|
}
|
|
case "hostPID":
|
|
if r.TryDecodeAsNil() {
|
|
x.HostPID = false
|
|
} else {
|
|
x.HostPID = bool(r.DecodeBool())
|
|
}
|
|
case "hostIPC":
|
|
if r.TryDecodeAsNil() {
|
|
x.HostIPC = false
|
|
} else {
|
|
x.HostIPC = bool(r.DecodeBool())
|
|
}
|
|
case "seLinuxOptions":
|
|
if r.TryDecodeAsNil() {
|
|
if x.SELinuxOptions != nil {
|
|
x.SELinuxOptions = nil
|
|
}
|
|
} else {
|
|
if x.SELinuxOptions == nil {
|
|
x.SELinuxOptions = new(SELinuxOptions)
|
|
}
|
|
x.SELinuxOptions.CodecDecodeSelf(d)
|
|
}
|
|
case "runAsUser":
|
|
if r.TryDecodeAsNil() {
|
|
if x.RunAsUser != nil {
|
|
x.RunAsUser = nil
|
|
}
|
|
} else {
|
|
if x.RunAsUser == nil {
|
|
x.RunAsUser = new(int64)
|
|
}
|
|
yym1581 := z.DecBinary()
|
|
_ = yym1581
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
case "runAsNonRoot":
|
|
if r.TryDecodeAsNil() {
|
|
if x.RunAsNonRoot != nil {
|
|
x.RunAsNonRoot = nil
|
|
}
|
|
} else {
|
|
if x.RunAsNonRoot == nil {
|
|
x.RunAsNonRoot = new(bool)
|
|
}
|
|
yym1583 := z.DecBinary()
|
|
_ = yym1583
|
|
if false {
|
|
} else {
|
|
*((*bool)(x.RunAsNonRoot)) = r.DecodeBool()
|
|
}
|
|
}
|
|
case "supplementalGroups":
|
|
if r.TryDecodeAsNil() {
|
|
x.SupplementalGroups = nil
|
|
} else {
|
|
yyv1584 := &x.SupplementalGroups
|
|
yym1585 := z.DecBinary()
|
|
_ = yym1585
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceInt64X(yyv1584, false, d)
|
|
}
|
|
}
|
|
case "fsGroup":
|
|
if r.TryDecodeAsNil() {
|
|
if x.FSGroup != nil {
|
|
x.FSGroup = nil
|
|
}
|
|
} else {
|
|
if x.FSGroup == nil {
|
|
x.FSGroup = new(int64)
|
|
}
|
|
yym1587 := z.DecBinary()
|
|
_ = yym1587
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.FSGroup)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1575)
|
|
} // end switch yys1575
|
|
} // end for yyj1575
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *PodSecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1588 int
|
|
var yyb1588 bool
|
|
var yyhl1588 bool = l >= 0
|
|
yyj1588++
|
|
if yyhl1588 {
|
|
yyb1588 = yyj1588 > l
|
|
} else {
|
|
yyb1588 = r.CheckBreak()
|
|
}
|
|
if yyb1588 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.HostNetwork = false
|
|
} else {
|
|
x.HostNetwork = bool(r.DecodeBool())
|
|
}
|
|
yyj1588++
|
|
if yyhl1588 {
|
|
yyb1588 = yyj1588 > l
|
|
} else {
|
|
yyb1588 = r.CheckBreak()
|
|
}
|
|
if yyb1588 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.HostPID = false
|
|
} else {
|
|
x.HostPID = bool(r.DecodeBool())
|
|
}
|
|
yyj1588++
|
|
if yyhl1588 {
|
|
yyb1588 = yyj1588 > l
|
|
} else {
|
|
yyb1588 = r.CheckBreak()
|
|
}
|
|
if yyb1588 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.HostIPC = false
|
|
} else {
|
|
x.HostIPC = bool(r.DecodeBool())
|
|
}
|
|
yyj1588++
|
|
if yyhl1588 {
|
|
yyb1588 = yyj1588 > l
|
|
} else {
|
|
yyb1588 = r.CheckBreak()
|
|
}
|
|
if yyb1588 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.SELinuxOptions != nil {
|
|
x.SELinuxOptions = nil
|
|
}
|
|
} else {
|
|
if x.SELinuxOptions == nil {
|
|
x.SELinuxOptions = new(SELinuxOptions)
|
|
}
|
|
x.SELinuxOptions.CodecDecodeSelf(d)
|
|
}
|
|
yyj1588++
|
|
if yyhl1588 {
|
|
yyb1588 = yyj1588 > l
|
|
} else {
|
|
yyb1588 = r.CheckBreak()
|
|
}
|
|
if yyb1588 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.RunAsUser != nil {
|
|
x.RunAsUser = nil
|
|
}
|
|
} else {
|
|
if x.RunAsUser == nil {
|
|
x.RunAsUser = new(int64)
|
|
}
|
|
yym1594 := z.DecBinary()
|
|
_ = yym1594
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
yyj1588++
|
|
if yyhl1588 {
|
|
yyb1588 = yyj1588 > l
|
|
} else {
|
|
yyb1588 = r.CheckBreak()
|
|
}
|
|
if yyb1588 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.RunAsNonRoot != nil {
|
|
x.RunAsNonRoot = nil
|
|
}
|
|
} else {
|
|
if x.RunAsNonRoot == nil {
|
|
x.RunAsNonRoot = new(bool)
|
|
}
|
|
yym1596 := z.DecBinary()
|
|
_ = yym1596
|
|
if false {
|
|
} else {
|
|
*((*bool)(x.RunAsNonRoot)) = r.DecodeBool()
|
|
}
|
|
}
|
|
yyj1588++
|
|
if yyhl1588 {
|
|
yyb1588 = yyj1588 > l
|
|
} else {
|
|
yyb1588 = r.CheckBreak()
|
|
}
|
|
if yyb1588 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.SupplementalGroups = nil
|
|
} else {
|
|
yyv1597 := &x.SupplementalGroups
|
|
yym1598 := z.DecBinary()
|
|
_ = yym1598
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceInt64X(yyv1597, false, d)
|
|
}
|
|
}
|
|
yyj1588++
|
|
if yyhl1588 {
|
|
yyb1588 = yyj1588 > l
|
|
} else {
|
|
yyb1588 = r.CheckBreak()
|
|
}
|
|
if yyb1588 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.FSGroup != nil {
|
|
x.FSGroup = nil
|
|
}
|
|
} else {
|
|
if x.FSGroup == nil {
|
|
x.FSGroup = new(int64)
|
|
}
|
|
yym1600 := z.DecBinary()
|
|
_ = yym1600
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.FSGroup)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
for {
|
|
yyj1588++
|
|
if yyhl1588 {
|
|
yyb1588 = yyj1588 > l
|
|
} else {
|
|
yyb1588 = r.CheckBreak()
|
|
}
|
|
if yyb1588 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1588-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1601 := z.EncBinary()
|
|
_ = yym1601
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1602 := !z.EncBinary()
|
|
yy2arr1602 := z.EncBasicHandle().StructToArray
|
|
var yyq1602 [8]bool
|
|
_, _, _ = yysep1602, yyq1602, yy2arr1602
|
|
const yyr1602 bool = false
|
|
yyq1602[0] = x.Phase != ""
|
|
yyq1602[1] = len(x.Conditions) != 0
|
|
yyq1602[2] = x.Message != ""
|
|
yyq1602[3] = x.Reason != ""
|
|
yyq1602[4] = x.HostIP != ""
|
|
yyq1602[5] = x.PodIP != ""
|
|
yyq1602[6] = x.StartTime != nil
|
|
yyq1602[7] = len(x.ContainerStatuses) != 0
|
|
var yynn1602 int
|
|
if yyr1602 || yy2arr1602 {
|
|
r.EncodeArrayStart(8)
|
|
} else {
|
|
yynn1602 = 0
|
|
for _, b := range yyq1602 {
|
|
if b {
|
|
yynn1602++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1602)
|
|
yynn1602 = 0
|
|
}
|
|
if yyr1602 || yy2arr1602 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1602[0] {
|
|
x.Phase.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1602[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("phase"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Phase.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1602 || yy2arr1602 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1602[1] {
|
|
if x.Conditions == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1605 := z.EncBinary()
|
|
_ = yym1605
|
|
if false {
|
|
} else {
|
|
h.encSlicePodCondition(([]PodCondition)(x.Conditions), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1602[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("conditions"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Conditions == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1606 := z.EncBinary()
|
|
_ = yym1606
|
|
if false {
|
|
} else {
|
|
h.encSlicePodCondition(([]PodCondition)(x.Conditions), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1602 || yy2arr1602 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1602[2] {
|
|
yym1608 := z.EncBinary()
|
|
_ = yym1608
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1602[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("message"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1609 := z.EncBinary()
|
|
_ = yym1609
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
}
|
|
}
|
|
if yyr1602 || yy2arr1602 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1602[3] {
|
|
yym1611 := z.EncBinary()
|
|
_ = yym1611
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1602[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("reason"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1612 := z.EncBinary()
|
|
_ = yym1612
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
|
|
}
|
|
}
|
|
}
|
|
if yyr1602 || yy2arr1602 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1602[4] {
|
|
yym1614 := z.EncBinary()
|
|
_ = yym1614
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.HostIP))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1602[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("hostIP"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1615 := z.EncBinary()
|
|
_ = yym1615
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.HostIP))
|
|
}
|
|
}
|
|
}
|
|
if yyr1602 || yy2arr1602 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1602[5] {
|
|
yym1617 := z.EncBinary()
|
|
_ = yym1617
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.PodIP))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1602[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("podIP"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1618 := z.EncBinary()
|
|
_ = yym1618
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.PodIP))
|
|
}
|
|
}
|
|
}
|
|
if yyr1602 || yy2arr1602 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1602[6] {
|
|
if x.StartTime == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1620 := z.EncBinary()
|
|
_ = yym1620
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x.StartTime) {
|
|
} else if yym1620 {
|
|
z.EncBinaryMarshal(x.StartTime)
|
|
} else if !yym1620 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(x.StartTime)
|
|
} else {
|
|
z.EncFallback(x.StartTime)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1602[6] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("startTime"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.StartTime == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1621 := z.EncBinary()
|
|
_ = yym1621
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x.StartTime) {
|
|
} else if yym1621 {
|
|
z.EncBinaryMarshal(x.StartTime)
|
|
} else if !yym1621 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(x.StartTime)
|
|
} else {
|
|
z.EncFallback(x.StartTime)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1602 || yy2arr1602 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1602[7] {
|
|
if x.ContainerStatuses == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1623 := z.EncBinary()
|
|
_ = yym1623
|
|
if false {
|
|
} else {
|
|
h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1602[7] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("containerStatuses"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.ContainerStatuses == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1624 := z.EncBinary()
|
|
_ = yym1624
|
|
if false {
|
|
} else {
|
|
h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1602 || yy2arr1602 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PodStatus) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1625 := z.DecBinary()
|
|
_ = yym1625
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1626 := r.ContainerType()
|
|
if yyct1626 == codecSelferValueTypeMap1234 {
|
|
yyl1626 := r.ReadMapStart()
|
|
if yyl1626 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1626, d)
|
|
}
|
|
} else if yyct1626 == codecSelferValueTypeArray1234 {
|
|
yyl1626 := r.ReadArrayStart()
|
|
if yyl1626 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1626, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PodStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1627Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1627Slc
|
|
var yyhl1627 bool = l >= 0
|
|
for yyj1627 := 0; ; yyj1627++ {
|
|
if yyhl1627 {
|
|
if yyj1627 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1627Slc = r.DecodeBytes(yys1627Slc, true, true)
|
|
yys1627 := string(yys1627Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1627 {
|
|
case "phase":
|
|
if r.TryDecodeAsNil() {
|
|
x.Phase = ""
|
|
} else {
|
|
x.Phase = PodPhase(r.DecodeString())
|
|
}
|
|
case "conditions":
|
|
if r.TryDecodeAsNil() {
|
|
x.Conditions = nil
|
|
} else {
|
|
yyv1629 := &x.Conditions
|
|
yym1630 := z.DecBinary()
|
|
_ = yym1630
|
|
if false {
|
|
} else {
|
|
h.decSlicePodCondition((*[]PodCondition)(yyv1629), d)
|
|
}
|
|
}
|
|
case "message":
|
|
if r.TryDecodeAsNil() {
|
|
x.Message = ""
|
|
} else {
|
|
x.Message = string(r.DecodeString())
|
|
}
|
|
case "reason":
|
|
if r.TryDecodeAsNil() {
|
|
x.Reason = ""
|
|
} else {
|
|
x.Reason = string(r.DecodeString())
|
|
}
|
|
case "hostIP":
|
|
if r.TryDecodeAsNil() {
|
|
x.HostIP = ""
|
|
} else {
|
|
x.HostIP = string(r.DecodeString())
|
|
}
|
|
case "podIP":
|
|
if r.TryDecodeAsNil() {
|
|
x.PodIP = ""
|
|
} else {
|
|
x.PodIP = string(r.DecodeString())
|
|
}
|
|
case "startTime":
|
|
if r.TryDecodeAsNil() {
|
|
if x.StartTime != nil {
|
|
x.StartTime = nil
|
|
}
|
|
} else {
|
|
if x.StartTime == nil {
|
|
x.StartTime = new(pkg2_unversioned.Time)
|
|
}
|
|
yym1636 := z.DecBinary()
|
|
_ = yym1636
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x.StartTime) {
|
|
} else if yym1636 {
|
|
z.DecBinaryUnmarshal(x.StartTime)
|
|
} else if !yym1636 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(x.StartTime)
|
|
} else {
|
|
z.DecFallback(x.StartTime, false)
|
|
}
|
|
}
|
|
case "containerStatuses":
|
|
if r.TryDecodeAsNil() {
|
|
x.ContainerStatuses = nil
|
|
} else {
|
|
yyv1637 := &x.ContainerStatuses
|
|
yym1638 := z.DecBinary()
|
|
_ = yym1638
|
|
if false {
|
|
} else {
|
|
h.decSliceContainerStatus((*[]ContainerStatus)(yyv1637), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1627)
|
|
} // end switch yys1627
|
|
} // end for yyj1627
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *PodStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1639 int
|
|
var yyb1639 bool
|
|
var yyhl1639 bool = l >= 0
|
|
yyj1639++
|
|
if yyhl1639 {
|
|
yyb1639 = yyj1639 > l
|
|
} else {
|
|
yyb1639 = r.CheckBreak()
|
|
}
|
|
if yyb1639 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Phase = ""
|
|
} else {
|
|
x.Phase = PodPhase(r.DecodeString())
|
|
}
|
|
yyj1639++
|
|
if yyhl1639 {
|
|
yyb1639 = yyj1639 > l
|
|
} else {
|
|
yyb1639 = r.CheckBreak()
|
|
}
|
|
if yyb1639 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Conditions = nil
|
|
} else {
|
|
yyv1641 := &x.Conditions
|
|
yym1642 := z.DecBinary()
|
|
_ = yym1642
|
|
if false {
|
|
} else {
|
|
h.decSlicePodCondition((*[]PodCondition)(yyv1641), d)
|
|
}
|
|
}
|
|
yyj1639++
|
|
if yyhl1639 {
|
|
yyb1639 = yyj1639 > l
|
|
} else {
|
|
yyb1639 = r.CheckBreak()
|
|
}
|
|
if yyb1639 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Message = ""
|
|
} else {
|
|
x.Message = string(r.DecodeString())
|
|
}
|
|
yyj1639++
|
|
if yyhl1639 {
|
|
yyb1639 = yyj1639 > l
|
|
} else {
|
|
yyb1639 = r.CheckBreak()
|
|
}
|
|
if yyb1639 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Reason = ""
|
|
} else {
|
|
x.Reason = string(r.DecodeString())
|
|
}
|
|
yyj1639++
|
|
if yyhl1639 {
|
|
yyb1639 = yyj1639 > l
|
|
} else {
|
|
yyb1639 = r.CheckBreak()
|
|
}
|
|
if yyb1639 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.HostIP = ""
|
|
} else {
|
|
x.HostIP = string(r.DecodeString())
|
|
}
|
|
yyj1639++
|
|
if yyhl1639 {
|
|
yyb1639 = yyj1639 > l
|
|
} else {
|
|
yyb1639 = r.CheckBreak()
|
|
}
|
|
if yyb1639 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.PodIP = ""
|
|
} else {
|
|
x.PodIP = string(r.DecodeString())
|
|
}
|
|
yyj1639++
|
|
if yyhl1639 {
|
|
yyb1639 = yyj1639 > l
|
|
} else {
|
|
yyb1639 = r.CheckBreak()
|
|
}
|
|
if yyb1639 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.StartTime != nil {
|
|
x.StartTime = nil
|
|
}
|
|
} else {
|
|
if x.StartTime == nil {
|
|
x.StartTime = new(pkg2_unversioned.Time)
|
|
}
|
|
yym1648 := z.DecBinary()
|
|
_ = yym1648
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x.StartTime) {
|
|
} else if yym1648 {
|
|
z.DecBinaryUnmarshal(x.StartTime)
|
|
} else if !yym1648 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(x.StartTime)
|
|
} else {
|
|
z.DecFallback(x.StartTime, false)
|
|
}
|
|
}
|
|
yyj1639++
|
|
if yyhl1639 {
|
|
yyb1639 = yyj1639 > l
|
|
} else {
|
|
yyb1639 = r.CheckBreak()
|
|
}
|
|
if yyb1639 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ContainerStatuses = nil
|
|
} else {
|
|
yyv1649 := &x.ContainerStatuses
|
|
yym1650 := z.DecBinary()
|
|
_ = yym1650
|
|
if false {
|
|
} else {
|
|
h.decSliceContainerStatus((*[]ContainerStatus)(yyv1649), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj1639++
|
|
if yyhl1639 {
|
|
yyb1639 = yyj1639 > l
|
|
} else {
|
|
yyb1639 = r.CheckBreak()
|
|
}
|
|
if yyb1639 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1639-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *PodStatusResult) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1651 := z.EncBinary()
|
|
_ = yym1651
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1652 := !z.EncBinary()
|
|
yy2arr1652 := z.EncBasicHandle().StructToArray
|
|
var yyq1652 [4]bool
|
|
_, _, _ = yysep1652, yyq1652, yy2arr1652
|
|
const yyr1652 bool = false
|
|
yyq1652[0] = x.Kind != ""
|
|
yyq1652[1] = x.APIVersion != ""
|
|
yyq1652[2] = true
|
|
yyq1652[3] = true
|
|
var yynn1652 int
|
|
if yyr1652 || yy2arr1652 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn1652 = 0
|
|
for _, b := range yyq1652 {
|
|
if b {
|
|
yynn1652++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1652)
|
|
yynn1652 = 0
|
|
}
|
|
if yyr1652 || yy2arr1652 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1652[0] {
|
|
yym1654 := z.EncBinary()
|
|
_ = yym1654
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1652[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1655 := z.EncBinary()
|
|
_ = yym1655
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr1652 || yy2arr1652 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1652[1] {
|
|
yym1657 := z.EncBinary()
|
|
_ = yym1657
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1652[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1658 := z.EncBinary()
|
|
_ = yym1658
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr1652 || yy2arr1652 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1652[2] {
|
|
yy1660 := &x.ObjectMeta
|
|
yy1660.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1652[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1661 := &x.ObjectMeta
|
|
yy1661.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1652 || yy2arr1652 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1652[3] {
|
|
yy1663 := &x.Status
|
|
yy1663.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1652[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("status"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1664 := &x.Status
|
|
yy1664.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1652 || yy2arr1652 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PodStatusResult) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1665 := z.DecBinary()
|
|
_ = yym1665
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1666 := r.ContainerType()
|
|
if yyct1666 == codecSelferValueTypeMap1234 {
|
|
yyl1666 := r.ReadMapStart()
|
|
if yyl1666 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1666, d)
|
|
}
|
|
} else if yyct1666 == codecSelferValueTypeArray1234 {
|
|
yyl1666 := r.ReadArrayStart()
|
|
if yyl1666 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1666, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PodStatusResult) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1667Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1667Slc
|
|
var yyhl1667 bool = l >= 0
|
|
for yyj1667 := 0; ; yyj1667++ {
|
|
if yyhl1667 {
|
|
if yyj1667 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1667Slc = r.DecodeBytes(yys1667Slc, true, true)
|
|
yys1667 := string(yys1667Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1667 {
|
|
case "kind":
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
case "apiVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
case "metadata":
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv1670 := &x.ObjectMeta
|
|
yyv1670.CodecDecodeSelf(d)
|
|
}
|
|
case "status":
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = PodStatus{}
|
|
} else {
|
|
yyv1671 := &x.Status
|
|
yyv1671.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1667)
|
|
} // end switch yys1667
|
|
} // end for yyj1667
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *PodStatusResult) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1672 int
|
|
var yyb1672 bool
|
|
var yyhl1672 bool = l >= 0
|
|
yyj1672++
|
|
if yyhl1672 {
|
|
yyb1672 = yyj1672 > l
|
|
} else {
|
|
yyb1672 = r.CheckBreak()
|
|
}
|
|
if yyb1672 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj1672++
|
|
if yyhl1672 {
|
|
yyb1672 = yyj1672 > l
|
|
} else {
|
|
yyb1672 = r.CheckBreak()
|
|
}
|
|
if yyb1672 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj1672++
|
|
if yyhl1672 {
|
|
yyb1672 = yyj1672 > l
|
|
} else {
|
|
yyb1672 = r.CheckBreak()
|
|
}
|
|
if yyb1672 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv1675 := &x.ObjectMeta
|
|
yyv1675.CodecDecodeSelf(d)
|
|
}
|
|
yyj1672++
|
|
if yyhl1672 {
|
|
yyb1672 = yyj1672 > l
|
|
} else {
|
|
yyb1672 = r.CheckBreak()
|
|
}
|
|
if yyb1672 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = PodStatus{}
|
|
} else {
|
|
yyv1676 := &x.Status
|
|
yyv1676.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj1672++
|
|
if yyhl1672 {
|
|
yyb1672 = yyj1672 > l
|
|
} else {
|
|
yyb1672 = r.CheckBreak()
|
|
}
|
|
if yyb1672 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1672-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *Pod) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1677 := z.EncBinary()
|
|
_ = yym1677
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1678 := !z.EncBinary()
|
|
yy2arr1678 := z.EncBasicHandle().StructToArray
|
|
var yyq1678 [5]bool
|
|
_, _, _ = yysep1678, yyq1678, yy2arr1678
|
|
const yyr1678 bool = false
|
|
yyq1678[0] = x.Kind != ""
|
|
yyq1678[1] = x.APIVersion != ""
|
|
yyq1678[2] = true
|
|
yyq1678[3] = true
|
|
yyq1678[4] = true
|
|
var yynn1678 int
|
|
if yyr1678 || yy2arr1678 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn1678 = 0
|
|
for _, b := range yyq1678 {
|
|
if b {
|
|
yynn1678++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1678)
|
|
yynn1678 = 0
|
|
}
|
|
if yyr1678 || yy2arr1678 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1678[0] {
|
|
yym1680 := z.EncBinary()
|
|
_ = yym1680
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1678[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1681 := z.EncBinary()
|
|
_ = yym1681
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr1678 || yy2arr1678 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1678[1] {
|
|
yym1683 := z.EncBinary()
|
|
_ = yym1683
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1678[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1684 := z.EncBinary()
|
|
_ = yym1684
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr1678 || yy2arr1678 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1678[2] {
|
|
yy1686 := &x.ObjectMeta
|
|
yy1686.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1678[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1687 := &x.ObjectMeta
|
|
yy1687.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1678 || yy2arr1678 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1678[3] {
|
|
yy1689 := &x.Spec
|
|
yy1689.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1678[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("spec"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1690 := &x.Spec
|
|
yy1690.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1678 || yy2arr1678 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1678[4] {
|
|
yy1692 := &x.Status
|
|
yy1692.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1678[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("status"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1693 := &x.Status
|
|
yy1693.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1678 || yy2arr1678 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *Pod) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1694 := z.DecBinary()
|
|
_ = yym1694
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1695 := r.ContainerType()
|
|
if yyct1695 == codecSelferValueTypeMap1234 {
|
|
yyl1695 := r.ReadMapStart()
|
|
if yyl1695 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1695, d)
|
|
}
|
|
} else if yyct1695 == codecSelferValueTypeArray1234 {
|
|
yyl1695 := r.ReadArrayStart()
|
|
if yyl1695 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1695, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *Pod) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1696Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1696Slc
|
|
var yyhl1696 bool = l >= 0
|
|
for yyj1696 := 0; ; yyj1696++ {
|
|
if yyhl1696 {
|
|
if yyj1696 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1696Slc = r.DecodeBytes(yys1696Slc, true, true)
|
|
yys1696 := string(yys1696Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1696 {
|
|
case "kind":
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
case "apiVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
case "metadata":
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv1699 := &x.ObjectMeta
|
|
yyv1699.CodecDecodeSelf(d)
|
|
}
|
|
case "spec":
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = PodSpec{}
|
|
} else {
|
|
yyv1700 := &x.Spec
|
|
yyv1700.CodecDecodeSelf(d)
|
|
}
|
|
case "status":
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = PodStatus{}
|
|
} else {
|
|
yyv1701 := &x.Status
|
|
yyv1701.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1696)
|
|
} // end switch yys1696
|
|
} // end for yyj1696
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *Pod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1702 int
|
|
var yyb1702 bool
|
|
var yyhl1702 bool = l >= 0
|
|
yyj1702++
|
|
if yyhl1702 {
|
|
yyb1702 = yyj1702 > l
|
|
} else {
|
|
yyb1702 = r.CheckBreak()
|
|
}
|
|
if yyb1702 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj1702++
|
|
if yyhl1702 {
|
|
yyb1702 = yyj1702 > l
|
|
} else {
|
|
yyb1702 = r.CheckBreak()
|
|
}
|
|
if yyb1702 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj1702++
|
|
if yyhl1702 {
|
|
yyb1702 = yyj1702 > l
|
|
} else {
|
|
yyb1702 = r.CheckBreak()
|
|
}
|
|
if yyb1702 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv1705 := &x.ObjectMeta
|
|
yyv1705.CodecDecodeSelf(d)
|
|
}
|
|
yyj1702++
|
|
if yyhl1702 {
|
|
yyb1702 = yyj1702 > l
|
|
} else {
|
|
yyb1702 = r.CheckBreak()
|
|
}
|
|
if yyb1702 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = PodSpec{}
|
|
} else {
|
|
yyv1706 := &x.Spec
|
|
yyv1706.CodecDecodeSelf(d)
|
|
}
|
|
yyj1702++
|
|
if yyhl1702 {
|
|
yyb1702 = yyj1702 > l
|
|
} else {
|
|
yyb1702 = r.CheckBreak()
|
|
}
|
|
if yyb1702 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = PodStatus{}
|
|
} else {
|
|
yyv1707 := &x.Status
|
|
yyv1707.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj1702++
|
|
if yyhl1702 {
|
|
yyb1702 = yyj1702 > l
|
|
} else {
|
|
yyb1702 = r.CheckBreak()
|
|
}
|
|
if yyb1702 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1702-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *PodTemplateSpec) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1708 := z.EncBinary()
|
|
_ = yym1708
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1709 := !z.EncBinary()
|
|
yy2arr1709 := z.EncBasicHandle().StructToArray
|
|
var yyq1709 [2]bool
|
|
_, _, _ = yysep1709, yyq1709, yy2arr1709
|
|
const yyr1709 bool = false
|
|
yyq1709[0] = true
|
|
yyq1709[1] = true
|
|
var yynn1709 int
|
|
if yyr1709 || yy2arr1709 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn1709 = 0
|
|
for _, b := range yyq1709 {
|
|
if b {
|
|
yynn1709++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1709)
|
|
yynn1709 = 0
|
|
}
|
|
if yyr1709 || yy2arr1709 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1709[0] {
|
|
yy1711 := &x.ObjectMeta
|
|
yy1711.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1709[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1712 := &x.ObjectMeta
|
|
yy1712.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1709 || yy2arr1709 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1709[1] {
|
|
yy1714 := &x.Spec
|
|
yy1714.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1709[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("spec"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1715 := &x.Spec
|
|
yy1715.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1709 || yy2arr1709 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PodTemplateSpec) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1716 := z.DecBinary()
|
|
_ = yym1716
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1717 := r.ContainerType()
|
|
if yyct1717 == codecSelferValueTypeMap1234 {
|
|
yyl1717 := r.ReadMapStart()
|
|
if yyl1717 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1717, d)
|
|
}
|
|
} else if yyct1717 == codecSelferValueTypeArray1234 {
|
|
yyl1717 := r.ReadArrayStart()
|
|
if yyl1717 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1717, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PodTemplateSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1718Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1718Slc
|
|
var yyhl1718 bool = l >= 0
|
|
for yyj1718 := 0; ; yyj1718++ {
|
|
if yyhl1718 {
|
|
if yyj1718 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1718Slc = r.DecodeBytes(yys1718Slc, true, true)
|
|
yys1718 := string(yys1718Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1718 {
|
|
case "metadata":
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv1719 := &x.ObjectMeta
|
|
yyv1719.CodecDecodeSelf(d)
|
|
}
|
|
case "spec":
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = PodSpec{}
|
|
} else {
|
|
yyv1720 := &x.Spec
|
|
yyv1720.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1718)
|
|
} // end switch yys1718
|
|
} // end for yyj1718
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *PodTemplateSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1721 int
|
|
var yyb1721 bool
|
|
var yyhl1721 bool = l >= 0
|
|
yyj1721++
|
|
if yyhl1721 {
|
|
yyb1721 = yyj1721 > l
|
|
} else {
|
|
yyb1721 = r.CheckBreak()
|
|
}
|
|
if yyb1721 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv1722 := &x.ObjectMeta
|
|
yyv1722.CodecDecodeSelf(d)
|
|
}
|
|
yyj1721++
|
|
if yyhl1721 {
|
|
yyb1721 = yyj1721 > l
|
|
} else {
|
|
yyb1721 = r.CheckBreak()
|
|
}
|
|
if yyb1721 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = PodSpec{}
|
|
} else {
|
|
yyv1723 := &x.Spec
|
|
yyv1723.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj1721++
|
|
if yyhl1721 {
|
|
yyb1721 = yyj1721 > l
|
|
} else {
|
|
yyb1721 = r.CheckBreak()
|
|
}
|
|
if yyb1721 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1721-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *PodTemplate) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1724 := z.EncBinary()
|
|
_ = yym1724
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1725 := !z.EncBinary()
|
|
yy2arr1725 := z.EncBasicHandle().StructToArray
|
|
var yyq1725 [4]bool
|
|
_, _, _ = yysep1725, yyq1725, yy2arr1725
|
|
const yyr1725 bool = false
|
|
yyq1725[0] = x.Kind != ""
|
|
yyq1725[1] = x.APIVersion != ""
|
|
yyq1725[2] = true
|
|
yyq1725[3] = true
|
|
var yynn1725 int
|
|
if yyr1725 || yy2arr1725 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn1725 = 0
|
|
for _, b := range yyq1725 {
|
|
if b {
|
|
yynn1725++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1725)
|
|
yynn1725 = 0
|
|
}
|
|
if yyr1725 || yy2arr1725 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1725[0] {
|
|
yym1727 := z.EncBinary()
|
|
_ = yym1727
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1725[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1728 := z.EncBinary()
|
|
_ = yym1728
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr1725 || yy2arr1725 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1725[1] {
|
|
yym1730 := z.EncBinary()
|
|
_ = yym1730
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1725[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1731 := z.EncBinary()
|
|
_ = yym1731
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr1725 || yy2arr1725 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1725[2] {
|
|
yy1733 := &x.ObjectMeta
|
|
yy1733.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1725[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1734 := &x.ObjectMeta
|
|
yy1734.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1725 || yy2arr1725 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1725[3] {
|
|
yy1736 := &x.Template
|
|
yy1736.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1725[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("template"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1737 := &x.Template
|
|
yy1737.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1725 || yy2arr1725 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PodTemplate) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1738 := z.DecBinary()
|
|
_ = yym1738
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1739 := r.ContainerType()
|
|
if yyct1739 == codecSelferValueTypeMap1234 {
|
|
yyl1739 := r.ReadMapStart()
|
|
if yyl1739 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1739, d)
|
|
}
|
|
} else if yyct1739 == codecSelferValueTypeArray1234 {
|
|
yyl1739 := r.ReadArrayStart()
|
|
if yyl1739 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1739, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PodTemplate) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1740Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1740Slc
|
|
var yyhl1740 bool = l >= 0
|
|
for yyj1740 := 0; ; yyj1740++ {
|
|
if yyhl1740 {
|
|
if yyj1740 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1740Slc = r.DecodeBytes(yys1740Slc, true, true)
|
|
yys1740 := string(yys1740Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1740 {
|
|
case "kind":
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
case "apiVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
case "metadata":
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv1743 := &x.ObjectMeta
|
|
yyv1743.CodecDecodeSelf(d)
|
|
}
|
|
case "template":
|
|
if r.TryDecodeAsNil() {
|
|
x.Template = PodTemplateSpec{}
|
|
} else {
|
|
yyv1744 := &x.Template
|
|
yyv1744.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1740)
|
|
} // end switch yys1740
|
|
} // end for yyj1740
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *PodTemplate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1745 int
|
|
var yyb1745 bool
|
|
var yyhl1745 bool = l >= 0
|
|
yyj1745++
|
|
if yyhl1745 {
|
|
yyb1745 = yyj1745 > l
|
|
} else {
|
|
yyb1745 = r.CheckBreak()
|
|
}
|
|
if yyb1745 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj1745++
|
|
if yyhl1745 {
|
|
yyb1745 = yyj1745 > l
|
|
} else {
|
|
yyb1745 = r.CheckBreak()
|
|
}
|
|
if yyb1745 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj1745++
|
|
if yyhl1745 {
|
|
yyb1745 = yyj1745 > l
|
|
} else {
|
|
yyb1745 = r.CheckBreak()
|
|
}
|
|
if yyb1745 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv1748 := &x.ObjectMeta
|
|
yyv1748.CodecDecodeSelf(d)
|
|
}
|
|
yyj1745++
|
|
if yyhl1745 {
|
|
yyb1745 = yyj1745 > l
|
|
} else {
|
|
yyb1745 = r.CheckBreak()
|
|
}
|
|
if yyb1745 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Template = PodTemplateSpec{}
|
|
} else {
|
|
yyv1749 := &x.Template
|
|
yyv1749.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj1745++
|
|
if yyhl1745 {
|
|
yyb1745 = yyj1745 > l
|
|
} else {
|
|
yyb1745 = r.CheckBreak()
|
|
}
|
|
if yyb1745 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1745-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *PodTemplateList) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1750 := z.EncBinary()
|
|
_ = yym1750
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1751 := !z.EncBinary()
|
|
yy2arr1751 := z.EncBasicHandle().StructToArray
|
|
var yyq1751 [4]bool
|
|
_, _, _ = yysep1751, yyq1751, yy2arr1751
|
|
const yyr1751 bool = false
|
|
yyq1751[0] = x.Kind != ""
|
|
yyq1751[1] = x.APIVersion != ""
|
|
yyq1751[2] = true
|
|
var yynn1751 int
|
|
if yyr1751 || yy2arr1751 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn1751 = 1
|
|
for _, b := range yyq1751 {
|
|
if b {
|
|
yynn1751++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1751)
|
|
yynn1751 = 0
|
|
}
|
|
if yyr1751 || yy2arr1751 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1751[0] {
|
|
yym1753 := z.EncBinary()
|
|
_ = yym1753
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1751[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1754 := z.EncBinary()
|
|
_ = yym1754
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr1751 || yy2arr1751 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1751[1] {
|
|
yym1756 := z.EncBinary()
|
|
_ = yym1756
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1751[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1757 := z.EncBinary()
|
|
_ = yym1757
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr1751 || yy2arr1751 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1751[2] {
|
|
yy1759 := &x.ListMeta
|
|
yym1760 := z.EncBinary()
|
|
_ = yym1760
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1759) {
|
|
} else {
|
|
z.EncFallback(yy1759)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1751[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1761 := &x.ListMeta
|
|
yym1762 := z.EncBinary()
|
|
_ = yym1762
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1761) {
|
|
} else {
|
|
z.EncFallback(yy1761)
|
|
}
|
|
}
|
|
}
|
|
if yyr1751 || yy2arr1751 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1764 := z.EncBinary()
|
|
_ = yym1764
|
|
if false {
|
|
} else {
|
|
h.encSlicePodTemplate(([]PodTemplate)(x.Items), e)
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("items"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1765 := z.EncBinary()
|
|
_ = yym1765
|
|
if false {
|
|
} else {
|
|
h.encSlicePodTemplate(([]PodTemplate)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1751 || yy2arr1751 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PodTemplateList) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1766 := z.DecBinary()
|
|
_ = yym1766
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1767 := r.ContainerType()
|
|
if yyct1767 == codecSelferValueTypeMap1234 {
|
|
yyl1767 := r.ReadMapStart()
|
|
if yyl1767 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1767, d)
|
|
}
|
|
} else if yyct1767 == codecSelferValueTypeArray1234 {
|
|
yyl1767 := r.ReadArrayStart()
|
|
if yyl1767 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1767, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PodTemplateList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1768Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1768Slc
|
|
var yyhl1768 bool = l >= 0
|
|
for yyj1768 := 0; ; yyj1768++ {
|
|
if yyhl1768 {
|
|
if yyj1768 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1768Slc = r.DecodeBytes(yys1768Slc, true, true)
|
|
yys1768 := string(yys1768Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1768 {
|
|
case "kind":
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
case "apiVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
case "metadata":
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv1771 := &x.ListMeta
|
|
yym1772 := z.DecBinary()
|
|
_ = yym1772
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1771) {
|
|
} else {
|
|
z.DecFallback(yyv1771, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv1773 := &x.Items
|
|
yym1774 := z.DecBinary()
|
|
_ = yym1774
|
|
if false {
|
|
} else {
|
|
h.decSlicePodTemplate((*[]PodTemplate)(yyv1773), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1768)
|
|
} // end switch yys1768
|
|
} // end for yyj1768
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *PodTemplateList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1775 int
|
|
var yyb1775 bool
|
|
var yyhl1775 bool = l >= 0
|
|
yyj1775++
|
|
if yyhl1775 {
|
|
yyb1775 = yyj1775 > l
|
|
} else {
|
|
yyb1775 = r.CheckBreak()
|
|
}
|
|
if yyb1775 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj1775++
|
|
if yyhl1775 {
|
|
yyb1775 = yyj1775 > l
|
|
} else {
|
|
yyb1775 = r.CheckBreak()
|
|
}
|
|
if yyb1775 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj1775++
|
|
if yyhl1775 {
|
|
yyb1775 = yyj1775 > l
|
|
} else {
|
|
yyb1775 = r.CheckBreak()
|
|
}
|
|
if yyb1775 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv1778 := &x.ListMeta
|
|
yym1779 := z.DecBinary()
|
|
_ = yym1779
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1778) {
|
|
} else {
|
|
z.DecFallback(yyv1778, false)
|
|
}
|
|
}
|
|
yyj1775++
|
|
if yyhl1775 {
|
|
yyb1775 = yyj1775 > l
|
|
} else {
|
|
yyb1775 = r.CheckBreak()
|
|
}
|
|
if yyb1775 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv1780 := &x.Items
|
|
yym1781 := z.DecBinary()
|
|
_ = yym1781
|
|
if false {
|
|
} else {
|
|
h.decSlicePodTemplate((*[]PodTemplate)(yyv1780), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj1775++
|
|
if yyhl1775 {
|
|
yyb1775 = yyj1775 > l
|
|
} else {
|
|
yyb1775 = r.CheckBreak()
|
|
}
|
|
if yyb1775 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1775-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *ReplicationControllerSpec) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1782 := z.EncBinary()
|
|
_ = yym1782
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1783 := !z.EncBinary()
|
|
yy2arr1783 := z.EncBasicHandle().StructToArray
|
|
var yyq1783 [3]bool
|
|
_, _, _ = yysep1783, yyq1783, yy2arr1783
|
|
const yyr1783 bool = false
|
|
yyq1783[2] = x.Template != nil
|
|
var yynn1783 int
|
|
if yyr1783 || yy2arr1783 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn1783 = 2
|
|
for _, b := range yyq1783 {
|
|
if b {
|
|
yynn1783++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1783)
|
|
yynn1783 = 0
|
|
}
|
|
if yyr1783 || yy2arr1783 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1785 := z.EncBinary()
|
|
_ = yym1785
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Replicas))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("replicas"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1786 := z.EncBinary()
|
|
_ = yym1786
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Replicas))
|
|
}
|
|
}
|
|
if yyr1783 || yy2arr1783 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Selector == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1788 := z.EncBinary()
|
|
_ = yym1788
|
|
if false {
|
|
} else {
|
|
z.F.EncMapStringStringV(x.Selector, false, e)
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("selector"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Selector == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1789 := z.EncBinary()
|
|
_ = yym1789
|
|
if false {
|
|
} else {
|
|
z.F.EncMapStringStringV(x.Selector, false, e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1783 || yy2arr1783 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1783[2] {
|
|
if x.Template == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Template.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1783[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("template"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Template == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Template.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1783 || yy2arr1783 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ReplicationControllerSpec) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1791 := z.DecBinary()
|
|
_ = yym1791
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1792 := r.ContainerType()
|
|
if yyct1792 == codecSelferValueTypeMap1234 {
|
|
yyl1792 := r.ReadMapStart()
|
|
if yyl1792 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1792, d)
|
|
}
|
|
} else if yyct1792 == codecSelferValueTypeArray1234 {
|
|
yyl1792 := r.ReadArrayStart()
|
|
if yyl1792 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1792, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ReplicationControllerSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1793Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1793Slc
|
|
var yyhl1793 bool = l >= 0
|
|
for yyj1793 := 0; ; yyj1793++ {
|
|
if yyhl1793 {
|
|
if yyj1793 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1793Slc = r.DecodeBytes(yys1793Slc, true, true)
|
|
yys1793 := string(yys1793Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1793 {
|
|
case "replicas":
|
|
if r.TryDecodeAsNil() {
|
|
x.Replicas = 0
|
|
} else {
|
|
x.Replicas = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
case "selector":
|
|
if r.TryDecodeAsNil() {
|
|
x.Selector = nil
|
|
} else {
|
|
yyv1795 := &x.Selector
|
|
yym1796 := z.DecBinary()
|
|
_ = yym1796
|
|
if false {
|
|
} else {
|
|
z.F.DecMapStringStringX(yyv1795, false, d)
|
|
}
|
|
}
|
|
case "template":
|
|
if r.TryDecodeAsNil() {
|
|
if x.Template != nil {
|
|
x.Template = nil
|
|
}
|
|
} else {
|
|
if x.Template == nil {
|
|
x.Template = new(PodTemplateSpec)
|
|
}
|
|
x.Template.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1793)
|
|
} // end switch yys1793
|
|
} // end for yyj1793
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *ReplicationControllerSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1798 int
|
|
var yyb1798 bool
|
|
var yyhl1798 bool = l >= 0
|
|
yyj1798++
|
|
if yyhl1798 {
|
|
yyb1798 = yyj1798 > l
|
|
} else {
|
|
yyb1798 = r.CheckBreak()
|
|
}
|
|
if yyb1798 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Replicas = 0
|
|
} else {
|
|
x.Replicas = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
yyj1798++
|
|
if yyhl1798 {
|
|
yyb1798 = yyj1798 > l
|
|
} else {
|
|
yyb1798 = r.CheckBreak()
|
|
}
|
|
if yyb1798 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Selector = nil
|
|
} else {
|
|
yyv1800 := &x.Selector
|
|
yym1801 := z.DecBinary()
|
|
_ = yym1801
|
|
if false {
|
|
} else {
|
|
z.F.DecMapStringStringX(yyv1800, false, d)
|
|
}
|
|
}
|
|
yyj1798++
|
|
if yyhl1798 {
|
|
yyb1798 = yyj1798 > l
|
|
} else {
|
|
yyb1798 = r.CheckBreak()
|
|
}
|
|
if yyb1798 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.Template != nil {
|
|
x.Template = nil
|
|
}
|
|
} else {
|
|
if x.Template == nil {
|
|
x.Template = new(PodTemplateSpec)
|
|
}
|
|
x.Template.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj1798++
|
|
if yyhl1798 {
|
|
yyb1798 = yyj1798 > l
|
|
} else {
|
|
yyb1798 = r.CheckBreak()
|
|
}
|
|
if yyb1798 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1798-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *ReplicationControllerStatus) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1803 := z.EncBinary()
|
|
_ = yym1803
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1804 := !z.EncBinary()
|
|
yy2arr1804 := z.EncBasicHandle().StructToArray
|
|
var yyq1804 [2]bool
|
|
_, _, _ = yysep1804, yyq1804, yy2arr1804
|
|
const yyr1804 bool = false
|
|
yyq1804[1] = x.ObservedGeneration != 0
|
|
var yynn1804 int
|
|
if yyr1804 || yy2arr1804 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn1804 = 1
|
|
for _, b := range yyq1804 {
|
|
if b {
|
|
yynn1804++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1804)
|
|
yynn1804 = 0
|
|
}
|
|
if yyr1804 || yy2arr1804 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1806 := z.EncBinary()
|
|
_ = yym1806
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Replicas))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("replicas"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1807 := z.EncBinary()
|
|
_ = yym1807
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Replicas))
|
|
}
|
|
}
|
|
if yyr1804 || yy2arr1804 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1804[1] {
|
|
yym1809 := z.EncBinary()
|
|
_ = yym1809
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.ObservedGeneration))
|
|
}
|
|
} else {
|
|
r.EncodeInt(0)
|
|
}
|
|
} else {
|
|
if yyq1804[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("observedGeneration"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1810 := z.EncBinary()
|
|
_ = yym1810
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.ObservedGeneration))
|
|
}
|
|
}
|
|
}
|
|
if yyr1804 || yy2arr1804 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ReplicationControllerStatus) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1811 := z.DecBinary()
|
|
_ = yym1811
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1812 := r.ContainerType()
|
|
if yyct1812 == codecSelferValueTypeMap1234 {
|
|
yyl1812 := r.ReadMapStart()
|
|
if yyl1812 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1812, d)
|
|
}
|
|
} else if yyct1812 == codecSelferValueTypeArray1234 {
|
|
yyl1812 := r.ReadArrayStart()
|
|
if yyl1812 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1812, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ReplicationControllerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1813Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1813Slc
|
|
var yyhl1813 bool = l >= 0
|
|
for yyj1813 := 0; ; yyj1813++ {
|
|
if yyhl1813 {
|
|
if yyj1813 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1813Slc = r.DecodeBytes(yys1813Slc, true, true)
|
|
yys1813 := string(yys1813Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1813 {
|
|
case "replicas":
|
|
if r.TryDecodeAsNil() {
|
|
x.Replicas = 0
|
|
} else {
|
|
x.Replicas = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
case "observedGeneration":
|
|
if r.TryDecodeAsNil() {
|
|
x.ObservedGeneration = 0
|
|
} else {
|
|
x.ObservedGeneration = int64(r.DecodeInt(64))
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1813)
|
|
} // end switch yys1813
|
|
} // end for yyj1813
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *ReplicationControllerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1816 int
|
|
var yyb1816 bool
|
|
var yyhl1816 bool = l >= 0
|
|
yyj1816++
|
|
if yyhl1816 {
|
|
yyb1816 = yyj1816 > l
|
|
} else {
|
|
yyb1816 = r.CheckBreak()
|
|
}
|
|
if yyb1816 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Replicas = 0
|
|
} else {
|
|
x.Replicas = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
yyj1816++
|
|
if yyhl1816 {
|
|
yyb1816 = yyj1816 > l
|
|
} else {
|
|
yyb1816 = r.CheckBreak()
|
|
}
|
|
if yyb1816 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObservedGeneration = 0
|
|
} else {
|
|
x.ObservedGeneration = int64(r.DecodeInt(64))
|
|
}
|
|
for {
|
|
yyj1816++
|
|
if yyhl1816 {
|
|
yyb1816 = yyj1816 > l
|
|
} else {
|
|
yyb1816 = r.CheckBreak()
|
|
}
|
|
if yyb1816 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1816-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *ReplicationController) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1819 := z.EncBinary()
|
|
_ = yym1819
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1820 := !z.EncBinary()
|
|
yy2arr1820 := z.EncBasicHandle().StructToArray
|
|
var yyq1820 [5]bool
|
|
_, _, _ = yysep1820, yyq1820, yy2arr1820
|
|
const yyr1820 bool = false
|
|
yyq1820[0] = x.Kind != ""
|
|
yyq1820[1] = x.APIVersion != ""
|
|
yyq1820[2] = true
|
|
yyq1820[3] = true
|
|
yyq1820[4] = true
|
|
var yynn1820 int
|
|
if yyr1820 || yy2arr1820 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn1820 = 0
|
|
for _, b := range yyq1820 {
|
|
if b {
|
|
yynn1820++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1820)
|
|
yynn1820 = 0
|
|
}
|
|
if yyr1820 || yy2arr1820 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1820[0] {
|
|
yym1822 := z.EncBinary()
|
|
_ = yym1822
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1820[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1823 := z.EncBinary()
|
|
_ = yym1823
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr1820 || yy2arr1820 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1820[1] {
|
|
yym1825 := z.EncBinary()
|
|
_ = yym1825
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1820[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1826 := z.EncBinary()
|
|
_ = yym1826
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr1820 || yy2arr1820 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1820[2] {
|
|
yy1828 := &x.ObjectMeta
|
|
yy1828.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1820[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1829 := &x.ObjectMeta
|
|
yy1829.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1820 || yy2arr1820 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1820[3] {
|
|
yy1831 := &x.Spec
|
|
yy1831.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1820[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("spec"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1832 := &x.Spec
|
|
yy1832.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1820 || yy2arr1820 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1820[4] {
|
|
yy1834 := &x.Status
|
|
yy1834.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1820[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("status"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1835 := &x.Status
|
|
yy1835.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1820 || yy2arr1820 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ReplicationController) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1836 := z.DecBinary()
|
|
_ = yym1836
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1837 := r.ContainerType()
|
|
if yyct1837 == codecSelferValueTypeMap1234 {
|
|
yyl1837 := r.ReadMapStart()
|
|
if yyl1837 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1837, d)
|
|
}
|
|
} else if yyct1837 == codecSelferValueTypeArray1234 {
|
|
yyl1837 := r.ReadArrayStart()
|
|
if yyl1837 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1837, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ReplicationController) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1838Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1838Slc
|
|
var yyhl1838 bool = l >= 0
|
|
for yyj1838 := 0; ; yyj1838++ {
|
|
if yyhl1838 {
|
|
if yyj1838 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1838Slc = r.DecodeBytes(yys1838Slc, true, true)
|
|
yys1838 := string(yys1838Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1838 {
|
|
case "kind":
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
case "apiVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
case "metadata":
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv1841 := &x.ObjectMeta
|
|
yyv1841.CodecDecodeSelf(d)
|
|
}
|
|
case "spec":
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = ReplicationControllerSpec{}
|
|
} else {
|
|
yyv1842 := &x.Spec
|
|
yyv1842.CodecDecodeSelf(d)
|
|
}
|
|
case "status":
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = ReplicationControllerStatus{}
|
|
} else {
|
|
yyv1843 := &x.Status
|
|
yyv1843.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1838)
|
|
} // end switch yys1838
|
|
} // end for yyj1838
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *ReplicationController) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1844 int
|
|
var yyb1844 bool
|
|
var yyhl1844 bool = l >= 0
|
|
yyj1844++
|
|
if yyhl1844 {
|
|
yyb1844 = yyj1844 > l
|
|
} else {
|
|
yyb1844 = r.CheckBreak()
|
|
}
|
|
if yyb1844 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj1844++
|
|
if yyhl1844 {
|
|
yyb1844 = yyj1844 > l
|
|
} else {
|
|
yyb1844 = r.CheckBreak()
|
|
}
|
|
if yyb1844 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj1844++
|
|
if yyhl1844 {
|
|
yyb1844 = yyj1844 > l
|
|
} else {
|
|
yyb1844 = r.CheckBreak()
|
|
}
|
|
if yyb1844 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv1847 := &x.ObjectMeta
|
|
yyv1847.CodecDecodeSelf(d)
|
|
}
|
|
yyj1844++
|
|
if yyhl1844 {
|
|
yyb1844 = yyj1844 > l
|
|
} else {
|
|
yyb1844 = r.CheckBreak()
|
|
}
|
|
if yyb1844 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = ReplicationControllerSpec{}
|
|
} else {
|
|
yyv1848 := &x.Spec
|
|
yyv1848.CodecDecodeSelf(d)
|
|
}
|
|
yyj1844++
|
|
if yyhl1844 {
|
|
yyb1844 = yyj1844 > l
|
|
} else {
|
|
yyb1844 = r.CheckBreak()
|
|
}
|
|
if yyb1844 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = ReplicationControllerStatus{}
|
|
} else {
|
|
yyv1849 := &x.Status
|
|
yyv1849.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj1844++
|
|
if yyhl1844 {
|
|
yyb1844 = yyj1844 > l
|
|
} else {
|
|
yyb1844 = r.CheckBreak()
|
|
}
|
|
if yyb1844 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1844-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *ReplicationControllerList) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1850 := z.EncBinary()
|
|
_ = yym1850
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1851 := !z.EncBinary()
|
|
yy2arr1851 := z.EncBasicHandle().StructToArray
|
|
var yyq1851 [4]bool
|
|
_, _, _ = yysep1851, yyq1851, yy2arr1851
|
|
const yyr1851 bool = false
|
|
yyq1851[0] = x.Kind != ""
|
|
yyq1851[1] = x.APIVersion != ""
|
|
yyq1851[2] = true
|
|
var yynn1851 int
|
|
if yyr1851 || yy2arr1851 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn1851 = 1
|
|
for _, b := range yyq1851 {
|
|
if b {
|
|
yynn1851++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1851)
|
|
yynn1851 = 0
|
|
}
|
|
if yyr1851 || yy2arr1851 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1851[0] {
|
|
yym1853 := z.EncBinary()
|
|
_ = yym1853
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1851[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1854 := z.EncBinary()
|
|
_ = yym1854
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr1851 || yy2arr1851 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1851[1] {
|
|
yym1856 := z.EncBinary()
|
|
_ = yym1856
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1851[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1857 := z.EncBinary()
|
|
_ = yym1857
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr1851 || yy2arr1851 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1851[2] {
|
|
yy1859 := &x.ListMeta
|
|
yym1860 := z.EncBinary()
|
|
_ = yym1860
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1859) {
|
|
} else {
|
|
z.EncFallback(yy1859)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1851[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1861 := &x.ListMeta
|
|
yym1862 := z.EncBinary()
|
|
_ = yym1862
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1861) {
|
|
} else {
|
|
z.EncFallback(yy1861)
|
|
}
|
|
}
|
|
}
|
|
if yyr1851 || yy2arr1851 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1864 := z.EncBinary()
|
|
_ = yym1864
|
|
if false {
|
|
} else {
|
|
h.encSliceReplicationController(([]ReplicationController)(x.Items), e)
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("items"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1865 := z.EncBinary()
|
|
_ = yym1865
|
|
if false {
|
|
} else {
|
|
h.encSliceReplicationController(([]ReplicationController)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1851 || yy2arr1851 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ReplicationControllerList) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1866 := z.DecBinary()
|
|
_ = yym1866
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1867 := r.ContainerType()
|
|
if yyct1867 == codecSelferValueTypeMap1234 {
|
|
yyl1867 := r.ReadMapStart()
|
|
if yyl1867 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1867, d)
|
|
}
|
|
} else if yyct1867 == codecSelferValueTypeArray1234 {
|
|
yyl1867 := r.ReadArrayStart()
|
|
if yyl1867 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1867, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ReplicationControllerList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1868Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1868Slc
|
|
var yyhl1868 bool = l >= 0
|
|
for yyj1868 := 0; ; yyj1868++ {
|
|
if yyhl1868 {
|
|
if yyj1868 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1868Slc = r.DecodeBytes(yys1868Slc, true, true)
|
|
yys1868 := string(yys1868Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1868 {
|
|
case "kind":
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
case "apiVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
case "metadata":
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv1871 := &x.ListMeta
|
|
yym1872 := z.DecBinary()
|
|
_ = yym1872
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1871) {
|
|
} else {
|
|
z.DecFallback(yyv1871, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv1873 := &x.Items
|
|
yym1874 := z.DecBinary()
|
|
_ = yym1874
|
|
if false {
|
|
} else {
|
|
h.decSliceReplicationController((*[]ReplicationController)(yyv1873), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1868)
|
|
} // end switch yys1868
|
|
} // end for yyj1868
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *ReplicationControllerList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1875 int
|
|
var yyb1875 bool
|
|
var yyhl1875 bool = l >= 0
|
|
yyj1875++
|
|
if yyhl1875 {
|
|
yyb1875 = yyj1875 > l
|
|
} else {
|
|
yyb1875 = r.CheckBreak()
|
|
}
|
|
if yyb1875 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj1875++
|
|
if yyhl1875 {
|
|
yyb1875 = yyj1875 > l
|
|
} else {
|
|
yyb1875 = r.CheckBreak()
|
|
}
|
|
if yyb1875 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj1875++
|
|
if yyhl1875 {
|
|
yyb1875 = yyj1875 > l
|
|
} else {
|
|
yyb1875 = r.CheckBreak()
|
|
}
|
|
if yyb1875 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv1878 := &x.ListMeta
|
|
yym1879 := z.DecBinary()
|
|
_ = yym1879
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1878) {
|
|
} else {
|
|
z.DecFallback(yyv1878, false)
|
|
}
|
|
}
|
|
yyj1875++
|
|
if yyhl1875 {
|
|
yyb1875 = yyj1875 > l
|
|
} else {
|
|
yyb1875 = r.CheckBreak()
|
|
}
|
|
if yyb1875 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv1880 := &x.Items
|
|
yym1881 := z.DecBinary()
|
|
_ = yym1881
|
|
if false {
|
|
} else {
|
|
h.decSliceReplicationController((*[]ReplicationController)(yyv1880), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj1875++
|
|
if yyhl1875 {
|
|
yyb1875 = yyj1875 > l
|
|
} else {
|
|
yyb1875 = r.CheckBreak()
|
|
}
|
|
if yyb1875 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1875-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *ServiceList) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1882 := z.EncBinary()
|
|
_ = yym1882
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1883 := !z.EncBinary()
|
|
yy2arr1883 := z.EncBasicHandle().StructToArray
|
|
var yyq1883 [4]bool
|
|
_, _, _ = yysep1883, yyq1883, yy2arr1883
|
|
const yyr1883 bool = false
|
|
yyq1883[0] = x.Kind != ""
|
|
yyq1883[1] = x.APIVersion != ""
|
|
yyq1883[2] = true
|
|
var yynn1883 int
|
|
if yyr1883 || yy2arr1883 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn1883 = 1
|
|
for _, b := range yyq1883 {
|
|
if b {
|
|
yynn1883++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1883)
|
|
yynn1883 = 0
|
|
}
|
|
if yyr1883 || yy2arr1883 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1883[0] {
|
|
yym1885 := z.EncBinary()
|
|
_ = yym1885
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1883[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1886 := z.EncBinary()
|
|
_ = yym1886
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr1883 || yy2arr1883 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1883[1] {
|
|
yym1888 := z.EncBinary()
|
|
_ = yym1888
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1883[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1889 := z.EncBinary()
|
|
_ = yym1889
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr1883 || yy2arr1883 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1883[2] {
|
|
yy1891 := &x.ListMeta
|
|
yym1892 := z.EncBinary()
|
|
_ = yym1892
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1891) {
|
|
} else {
|
|
z.EncFallback(yy1891)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1883[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1893 := &x.ListMeta
|
|
yym1894 := z.EncBinary()
|
|
_ = yym1894
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1893) {
|
|
} else {
|
|
z.EncFallback(yy1893)
|
|
}
|
|
}
|
|
}
|
|
if yyr1883 || yy2arr1883 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1896 := z.EncBinary()
|
|
_ = yym1896
|
|
if false {
|
|
} else {
|
|
h.encSliceService(([]Service)(x.Items), e)
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("items"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1897 := z.EncBinary()
|
|
_ = yym1897
|
|
if false {
|
|
} else {
|
|
h.encSliceService(([]Service)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1883 || yy2arr1883 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ServiceList) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1898 := z.DecBinary()
|
|
_ = yym1898
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1899 := r.ContainerType()
|
|
if yyct1899 == codecSelferValueTypeMap1234 {
|
|
yyl1899 := r.ReadMapStart()
|
|
if yyl1899 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1899, d)
|
|
}
|
|
} else if yyct1899 == codecSelferValueTypeArray1234 {
|
|
yyl1899 := r.ReadArrayStart()
|
|
if yyl1899 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1899, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ServiceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1900Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1900Slc
|
|
var yyhl1900 bool = l >= 0
|
|
for yyj1900 := 0; ; yyj1900++ {
|
|
if yyhl1900 {
|
|
if yyj1900 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1900Slc = r.DecodeBytes(yys1900Slc, true, true)
|
|
yys1900 := string(yys1900Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1900 {
|
|
case "kind":
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
case "apiVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
case "metadata":
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv1903 := &x.ListMeta
|
|
yym1904 := z.DecBinary()
|
|
_ = yym1904
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1903) {
|
|
} else {
|
|
z.DecFallback(yyv1903, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv1905 := &x.Items
|
|
yym1906 := z.DecBinary()
|
|
_ = yym1906
|
|
if false {
|
|
} else {
|
|
h.decSliceService((*[]Service)(yyv1905), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1900)
|
|
} // end switch yys1900
|
|
} // end for yyj1900
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *ServiceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1907 int
|
|
var yyb1907 bool
|
|
var yyhl1907 bool = l >= 0
|
|
yyj1907++
|
|
if yyhl1907 {
|
|
yyb1907 = yyj1907 > l
|
|
} else {
|
|
yyb1907 = r.CheckBreak()
|
|
}
|
|
if yyb1907 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj1907++
|
|
if yyhl1907 {
|
|
yyb1907 = yyj1907 > l
|
|
} else {
|
|
yyb1907 = r.CheckBreak()
|
|
}
|
|
if yyb1907 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj1907++
|
|
if yyhl1907 {
|
|
yyb1907 = yyj1907 > l
|
|
} else {
|
|
yyb1907 = r.CheckBreak()
|
|
}
|
|
if yyb1907 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv1910 := &x.ListMeta
|
|
yym1911 := z.DecBinary()
|
|
_ = yym1911
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1910) {
|
|
} else {
|
|
z.DecFallback(yyv1910, false)
|
|
}
|
|
}
|
|
yyj1907++
|
|
if yyhl1907 {
|
|
yyb1907 = yyj1907 > l
|
|
} else {
|
|
yyb1907 = r.CheckBreak()
|
|
}
|
|
if yyb1907 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv1912 := &x.Items
|
|
yym1913 := z.DecBinary()
|
|
_ = yym1913
|
|
if false {
|
|
} else {
|
|
h.decSliceService((*[]Service)(yyv1912), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj1907++
|
|
if yyhl1907 {
|
|
yyb1907 = yyj1907 > l
|
|
} else {
|
|
yyb1907 = r.CheckBreak()
|
|
}
|
|
if yyb1907 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1907-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x ServiceAffinity) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym1914 := z.EncBinary()
|
|
_ = yym1914
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x))
|
|
}
|
|
}
|
|
|
|
func (x *ServiceAffinity) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1915 := z.DecBinary()
|
|
_ = yym1915
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
*((*string)(x)) = r.DecodeString()
|
|
}
|
|
}
|
|
|
|
func (x ServiceType) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym1916 := z.EncBinary()
|
|
_ = yym1916
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x))
|
|
}
|
|
}
|
|
|
|
func (x *ServiceType) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1917 := z.DecBinary()
|
|
_ = yym1917
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
*((*string)(x)) = r.DecodeString()
|
|
}
|
|
}
|
|
|
|
func (x *ServiceStatus) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1918 := z.EncBinary()
|
|
_ = yym1918
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1919 := !z.EncBinary()
|
|
yy2arr1919 := z.EncBasicHandle().StructToArray
|
|
var yyq1919 [1]bool
|
|
_, _, _ = yysep1919, yyq1919, yy2arr1919
|
|
const yyr1919 bool = false
|
|
yyq1919[0] = true
|
|
var yynn1919 int
|
|
if yyr1919 || yy2arr1919 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn1919 = 0
|
|
for _, b := range yyq1919 {
|
|
if b {
|
|
yynn1919++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1919)
|
|
yynn1919 = 0
|
|
}
|
|
if yyr1919 || yy2arr1919 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1919[0] {
|
|
yy1921 := &x.LoadBalancer
|
|
yy1921.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1919[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("loadBalancer"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1922 := &x.LoadBalancer
|
|
yy1922.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1919 || yy2arr1919 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ServiceStatus) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1923 := z.DecBinary()
|
|
_ = yym1923
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1924 := r.ContainerType()
|
|
if yyct1924 == codecSelferValueTypeMap1234 {
|
|
yyl1924 := r.ReadMapStart()
|
|
if yyl1924 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1924, d)
|
|
}
|
|
} else if yyct1924 == codecSelferValueTypeArray1234 {
|
|
yyl1924 := r.ReadArrayStart()
|
|
if yyl1924 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1924, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ServiceStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1925Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1925Slc
|
|
var yyhl1925 bool = l >= 0
|
|
for yyj1925 := 0; ; yyj1925++ {
|
|
if yyhl1925 {
|
|
if yyj1925 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1925Slc = r.DecodeBytes(yys1925Slc, true, true)
|
|
yys1925 := string(yys1925Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1925 {
|
|
case "loadBalancer":
|
|
if r.TryDecodeAsNil() {
|
|
x.LoadBalancer = LoadBalancerStatus{}
|
|
} else {
|
|
yyv1926 := &x.LoadBalancer
|
|
yyv1926.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1925)
|
|
} // end switch yys1925
|
|
} // end for yyj1925
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *ServiceStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1927 int
|
|
var yyb1927 bool
|
|
var yyhl1927 bool = l >= 0
|
|
yyj1927++
|
|
if yyhl1927 {
|
|
yyb1927 = yyj1927 > l
|
|
} else {
|
|
yyb1927 = r.CheckBreak()
|
|
}
|
|
if yyb1927 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.LoadBalancer = LoadBalancerStatus{}
|
|
} else {
|
|
yyv1928 := &x.LoadBalancer
|
|
yyv1928.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj1927++
|
|
if yyhl1927 {
|
|
yyb1927 = yyj1927 > l
|
|
} else {
|
|
yyb1927 = r.CheckBreak()
|
|
}
|
|
if yyb1927 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1927-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *LoadBalancerStatus) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1929 := z.EncBinary()
|
|
_ = yym1929
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1930 := !z.EncBinary()
|
|
yy2arr1930 := z.EncBasicHandle().StructToArray
|
|
var yyq1930 [1]bool
|
|
_, _, _ = yysep1930, yyq1930, yy2arr1930
|
|
const yyr1930 bool = false
|
|
yyq1930[0] = len(x.Ingress) != 0
|
|
var yynn1930 int
|
|
if yyr1930 || yy2arr1930 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn1930 = 0
|
|
for _, b := range yyq1930 {
|
|
if b {
|
|
yynn1930++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1930)
|
|
yynn1930 = 0
|
|
}
|
|
if yyr1930 || yy2arr1930 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1930[0] {
|
|
if x.Ingress == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1932 := z.EncBinary()
|
|
_ = yym1932
|
|
if false {
|
|
} else {
|
|
h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1930[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("ingress"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Ingress == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1933 := z.EncBinary()
|
|
_ = yym1933
|
|
if false {
|
|
} else {
|
|
h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1930 || yy2arr1930 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *LoadBalancerStatus) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1934 := z.DecBinary()
|
|
_ = yym1934
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1935 := r.ContainerType()
|
|
if yyct1935 == codecSelferValueTypeMap1234 {
|
|
yyl1935 := r.ReadMapStart()
|
|
if yyl1935 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1935, d)
|
|
}
|
|
} else if yyct1935 == codecSelferValueTypeArray1234 {
|
|
yyl1935 := r.ReadArrayStart()
|
|
if yyl1935 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1935, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *LoadBalancerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1936Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1936Slc
|
|
var yyhl1936 bool = l >= 0
|
|
for yyj1936 := 0; ; yyj1936++ {
|
|
if yyhl1936 {
|
|
if yyj1936 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1936Slc = r.DecodeBytes(yys1936Slc, true, true)
|
|
yys1936 := string(yys1936Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1936 {
|
|
case "ingress":
|
|
if r.TryDecodeAsNil() {
|
|
x.Ingress = nil
|
|
} else {
|
|
yyv1937 := &x.Ingress
|
|
yym1938 := z.DecBinary()
|
|
_ = yym1938
|
|
if false {
|
|
} else {
|
|
h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv1937), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1936)
|
|
} // end switch yys1936
|
|
} // end for yyj1936
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *LoadBalancerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1939 int
|
|
var yyb1939 bool
|
|
var yyhl1939 bool = l >= 0
|
|
yyj1939++
|
|
if yyhl1939 {
|
|
yyb1939 = yyj1939 > l
|
|
} else {
|
|
yyb1939 = r.CheckBreak()
|
|
}
|
|
if yyb1939 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Ingress = nil
|
|
} else {
|
|
yyv1940 := &x.Ingress
|
|
yym1941 := z.DecBinary()
|
|
_ = yym1941
|
|
if false {
|
|
} else {
|
|
h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv1940), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj1939++
|
|
if yyhl1939 {
|
|
yyb1939 = yyj1939 > l
|
|
} else {
|
|
yyb1939 = r.CheckBreak()
|
|
}
|
|
if yyb1939 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1939-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *LoadBalancerIngress) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1942 := z.EncBinary()
|
|
_ = yym1942
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1943 := !z.EncBinary()
|
|
yy2arr1943 := z.EncBasicHandle().StructToArray
|
|
var yyq1943 [2]bool
|
|
_, _, _ = yysep1943, yyq1943, yy2arr1943
|
|
const yyr1943 bool = false
|
|
yyq1943[0] = x.IP != ""
|
|
yyq1943[1] = x.Hostname != ""
|
|
var yynn1943 int
|
|
if yyr1943 || yy2arr1943 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn1943 = 0
|
|
for _, b := range yyq1943 {
|
|
if b {
|
|
yynn1943++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1943)
|
|
yynn1943 = 0
|
|
}
|
|
if yyr1943 || yy2arr1943 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1943[0] {
|
|
yym1945 := z.EncBinary()
|
|
_ = yym1945
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.IP))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1943[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("ip"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1946 := z.EncBinary()
|
|
_ = yym1946
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.IP))
|
|
}
|
|
}
|
|
}
|
|
if yyr1943 || yy2arr1943 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1943[1] {
|
|
yym1948 := z.EncBinary()
|
|
_ = yym1948
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Hostname))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1943[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("hostname"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1949 := z.EncBinary()
|
|
_ = yym1949
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Hostname))
|
|
}
|
|
}
|
|
}
|
|
if yyr1943 || yy2arr1943 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *LoadBalancerIngress) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1950 := z.DecBinary()
|
|
_ = yym1950
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1951 := r.ContainerType()
|
|
if yyct1951 == codecSelferValueTypeMap1234 {
|
|
yyl1951 := r.ReadMapStart()
|
|
if yyl1951 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1951, d)
|
|
}
|
|
} else if yyct1951 == codecSelferValueTypeArray1234 {
|
|
yyl1951 := r.ReadArrayStart()
|
|
if yyl1951 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1951, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *LoadBalancerIngress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1952Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1952Slc
|
|
var yyhl1952 bool = l >= 0
|
|
for yyj1952 := 0; ; yyj1952++ {
|
|
if yyhl1952 {
|
|
if yyj1952 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1952Slc = r.DecodeBytes(yys1952Slc, true, true)
|
|
yys1952 := string(yys1952Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1952 {
|
|
case "ip":
|
|
if r.TryDecodeAsNil() {
|
|
x.IP = ""
|
|
} else {
|
|
x.IP = string(r.DecodeString())
|
|
}
|
|
case "hostname":
|
|
if r.TryDecodeAsNil() {
|
|
x.Hostname = ""
|
|
} else {
|
|
x.Hostname = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1952)
|
|
} // end switch yys1952
|
|
} // end for yyj1952
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *LoadBalancerIngress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1955 int
|
|
var yyb1955 bool
|
|
var yyhl1955 bool = l >= 0
|
|
yyj1955++
|
|
if yyhl1955 {
|
|
yyb1955 = yyj1955 > l
|
|
} else {
|
|
yyb1955 = r.CheckBreak()
|
|
}
|
|
if yyb1955 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.IP = ""
|
|
} else {
|
|
x.IP = string(r.DecodeString())
|
|
}
|
|
yyj1955++
|
|
if yyhl1955 {
|
|
yyb1955 = yyj1955 > l
|
|
} else {
|
|
yyb1955 = r.CheckBreak()
|
|
}
|
|
if yyb1955 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Hostname = ""
|
|
} else {
|
|
x.Hostname = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj1955++
|
|
if yyhl1955 {
|
|
yyb1955 = yyj1955 > l
|
|
} else {
|
|
yyb1955 = r.CheckBreak()
|
|
}
|
|
if yyb1955 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1955-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1958 := z.EncBinary()
|
|
_ = yym1958
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1959 := !z.EncBinary()
|
|
yy2arr1959 := z.EncBasicHandle().StructToArray
|
|
var yyq1959 [7]bool
|
|
_, _, _ = yysep1959, yyq1959, yy2arr1959
|
|
const yyr1959 bool = false
|
|
yyq1959[0] = x.Type != ""
|
|
yyq1959[3] = x.ClusterIP != ""
|
|
yyq1959[4] = len(x.ExternalIPs) != 0
|
|
yyq1959[5] = x.LoadBalancerIP != ""
|
|
yyq1959[6] = x.SessionAffinity != ""
|
|
var yynn1959 int
|
|
if yyr1959 || yy2arr1959 {
|
|
r.EncodeArrayStart(7)
|
|
} else {
|
|
yynn1959 = 2
|
|
for _, b := range yyq1959 {
|
|
if b {
|
|
yynn1959++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1959)
|
|
yynn1959 = 0
|
|
}
|
|
if yyr1959 || yy2arr1959 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1959[0] {
|
|
x.Type.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1959[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("type"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Type.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1959 || yy2arr1959 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Ports == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1962 := z.EncBinary()
|
|
_ = yym1962
|
|
if false {
|
|
} else {
|
|
h.encSliceServicePort(([]ServicePort)(x.Ports), e)
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("ports"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Ports == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1963 := z.EncBinary()
|
|
_ = yym1963
|
|
if false {
|
|
} else {
|
|
h.encSliceServicePort(([]ServicePort)(x.Ports), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1959 || yy2arr1959 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Selector == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1965 := z.EncBinary()
|
|
_ = yym1965
|
|
if false {
|
|
} else {
|
|
z.F.EncMapStringStringV(x.Selector, false, e)
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("selector"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Selector == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1966 := z.EncBinary()
|
|
_ = yym1966
|
|
if false {
|
|
} else {
|
|
z.F.EncMapStringStringV(x.Selector, false, e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1959 || yy2arr1959 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1959[3] {
|
|
yym1968 := z.EncBinary()
|
|
_ = yym1968
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1959[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("clusterIP"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1969 := z.EncBinary()
|
|
_ = yym1969
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP))
|
|
}
|
|
}
|
|
}
|
|
if yyr1959 || yy2arr1959 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1959[4] {
|
|
if x.ExternalIPs == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1971 := z.EncBinary()
|
|
_ = yym1971
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.ExternalIPs, false, e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1959[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("externalIPs"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.ExternalIPs == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1972 := z.EncBinary()
|
|
_ = yym1972
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.ExternalIPs, false, e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1959 || yy2arr1959 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1959[5] {
|
|
yym1974 := z.EncBinary()
|
|
_ = yym1974
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1959[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("loadBalancerIP"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1975 := z.EncBinary()
|
|
_ = yym1975
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP))
|
|
}
|
|
}
|
|
}
|
|
if yyr1959 || yy2arr1959 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1959[6] {
|
|
x.SessionAffinity.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1959[6] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("sessionAffinity"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.SessionAffinity.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1959 || yy2arr1959 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ServiceSpec) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1977 := z.DecBinary()
|
|
_ = yym1977
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1978 := r.ContainerType()
|
|
if yyct1978 == codecSelferValueTypeMap1234 {
|
|
yyl1978 := r.ReadMapStart()
|
|
if yyl1978 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1978, d)
|
|
}
|
|
} else if yyct1978 == codecSelferValueTypeArray1234 {
|
|
yyl1978 := r.ReadArrayStart()
|
|
if yyl1978 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1978, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ServiceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1979Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1979Slc
|
|
var yyhl1979 bool = l >= 0
|
|
for yyj1979 := 0; ; yyj1979++ {
|
|
if yyhl1979 {
|
|
if yyj1979 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1979Slc = r.DecodeBytes(yys1979Slc, true, true)
|
|
yys1979 := string(yys1979Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1979 {
|
|
case "type":
|
|
if r.TryDecodeAsNil() {
|
|
x.Type = ""
|
|
} else {
|
|
x.Type = ServiceType(r.DecodeString())
|
|
}
|
|
case "ports":
|
|
if r.TryDecodeAsNil() {
|
|
x.Ports = nil
|
|
} else {
|
|
yyv1981 := &x.Ports
|
|
yym1982 := z.DecBinary()
|
|
_ = yym1982
|
|
if false {
|
|
} else {
|
|
h.decSliceServicePort((*[]ServicePort)(yyv1981), d)
|
|
}
|
|
}
|
|
case "selector":
|
|
if r.TryDecodeAsNil() {
|
|
x.Selector = nil
|
|
} else {
|
|
yyv1983 := &x.Selector
|
|
yym1984 := z.DecBinary()
|
|
_ = yym1984
|
|
if false {
|
|
} else {
|
|
z.F.DecMapStringStringX(yyv1983, false, d)
|
|
}
|
|
}
|
|
case "clusterIP":
|
|
if r.TryDecodeAsNil() {
|
|
x.ClusterIP = ""
|
|
} else {
|
|
x.ClusterIP = string(r.DecodeString())
|
|
}
|
|
case "externalIPs":
|
|
if r.TryDecodeAsNil() {
|
|
x.ExternalIPs = nil
|
|
} else {
|
|
yyv1986 := &x.ExternalIPs
|
|
yym1987 := z.DecBinary()
|
|
_ = yym1987
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv1986, false, d)
|
|
}
|
|
}
|
|
case "loadBalancerIP":
|
|
if r.TryDecodeAsNil() {
|
|
x.LoadBalancerIP = ""
|
|
} else {
|
|
x.LoadBalancerIP = string(r.DecodeString())
|
|
}
|
|
case "sessionAffinity":
|
|
if r.TryDecodeAsNil() {
|
|
x.SessionAffinity = ""
|
|
} else {
|
|
x.SessionAffinity = ServiceAffinity(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1979)
|
|
} // end switch yys1979
|
|
} // end for yyj1979
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1990 int
|
|
var yyb1990 bool
|
|
var yyhl1990 bool = l >= 0
|
|
yyj1990++
|
|
if yyhl1990 {
|
|
yyb1990 = yyj1990 > l
|
|
} else {
|
|
yyb1990 = r.CheckBreak()
|
|
}
|
|
if yyb1990 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Type = ""
|
|
} else {
|
|
x.Type = ServiceType(r.DecodeString())
|
|
}
|
|
yyj1990++
|
|
if yyhl1990 {
|
|
yyb1990 = yyj1990 > l
|
|
} else {
|
|
yyb1990 = r.CheckBreak()
|
|
}
|
|
if yyb1990 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Ports = nil
|
|
} else {
|
|
yyv1992 := &x.Ports
|
|
yym1993 := z.DecBinary()
|
|
_ = yym1993
|
|
if false {
|
|
} else {
|
|
h.decSliceServicePort((*[]ServicePort)(yyv1992), d)
|
|
}
|
|
}
|
|
yyj1990++
|
|
if yyhl1990 {
|
|
yyb1990 = yyj1990 > l
|
|
} else {
|
|
yyb1990 = r.CheckBreak()
|
|
}
|
|
if yyb1990 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Selector = nil
|
|
} else {
|
|
yyv1994 := &x.Selector
|
|
yym1995 := z.DecBinary()
|
|
_ = yym1995
|
|
if false {
|
|
} else {
|
|
z.F.DecMapStringStringX(yyv1994, false, d)
|
|
}
|
|
}
|
|
yyj1990++
|
|
if yyhl1990 {
|
|
yyb1990 = yyj1990 > l
|
|
} else {
|
|
yyb1990 = r.CheckBreak()
|
|
}
|
|
if yyb1990 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ClusterIP = ""
|
|
} else {
|
|
x.ClusterIP = string(r.DecodeString())
|
|
}
|
|
yyj1990++
|
|
if yyhl1990 {
|
|
yyb1990 = yyj1990 > l
|
|
} else {
|
|
yyb1990 = r.CheckBreak()
|
|
}
|
|
if yyb1990 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ExternalIPs = nil
|
|
} else {
|
|
yyv1997 := &x.ExternalIPs
|
|
yym1998 := z.DecBinary()
|
|
_ = yym1998
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv1997, false, d)
|
|
}
|
|
}
|
|
yyj1990++
|
|
if yyhl1990 {
|
|
yyb1990 = yyj1990 > l
|
|
} else {
|
|
yyb1990 = r.CheckBreak()
|
|
}
|
|
if yyb1990 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.LoadBalancerIP = ""
|
|
} else {
|
|
x.LoadBalancerIP = string(r.DecodeString())
|
|
}
|
|
yyj1990++
|
|
if yyhl1990 {
|
|
yyb1990 = yyj1990 > l
|
|
} else {
|
|
yyb1990 = r.CheckBreak()
|
|
}
|
|
if yyb1990 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.SessionAffinity = ""
|
|
} else {
|
|
x.SessionAffinity = ServiceAffinity(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj1990++
|
|
if yyhl1990 {
|
|
yyb1990 = yyj1990 > l
|
|
} else {
|
|
yyb1990 = r.CheckBreak()
|
|
}
|
|
if yyb1990 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1990-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *ServicePort) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2001 := z.EncBinary()
|
|
_ = yym2001
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2002 := !z.EncBinary()
|
|
yy2arr2002 := z.EncBasicHandle().StructToArray
|
|
var yyq2002 [5]bool
|
|
_, _, _ = yysep2002, yyq2002, yy2arr2002
|
|
const yyr2002 bool = false
|
|
var yynn2002 int
|
|
if yyr2002 || yy2arr2002 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn2002 = 5
|
|
for _, b := range yyq2002 {
|
|
if b {
|
|
yynn2002++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2002)
|
|
yynn2002 = 0
|
|
}
|
|
if yyr2002 || yy2arr2002 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2004 := z.EncBinary()
|
|
_ = yym2004
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("name"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2005 := z.EncBinary()
|
|
_ = yym2005
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
}
|
|
if yyr2002 || yy2arr2002 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
x.Protocol.CodecEncodeSelf(e)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("protocol"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Protocol.CodecEncodeSelf(e)
|
|
}
|
|
if yyr2002 || yy2arr2002 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2008 := z.EncBinary()
|
|
_ = yym2008
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Port))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("port"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2009 := z.EncBinary()
|
|
_ = yym2009
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Port))
|
|
}
|
|
}
|
|
if yyr2002 || yy2arr2002 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy2011 := &x.TargetPort
|
|
yym2012 := z.EncBinary()
|
|
_ = yym2012
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy2011) {
|
|
} else if !yym2012 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy2011)
|
|
} else {
|
|
z.EncFallback(yy2011)
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("targetPort"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2013 := &x.TargetPort
|
|
yym2014 := z.EncBinary()
|
|
_ = yym2014
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy2013) {
|
|
} else if !yym2014 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy2013)
|
|
} else {
|
|
z.EncFallback(yy2013)
|
|
}
|
|
}
|
|
if yyr2002 || yy2arr2002 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2016 := z.EncBinary()
|
|
_ = yym2016
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.NodePort))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("nodePort"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2017 := z.EncBinary()
|
|
_ = yym2017
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.NodePort))
|
|
}
|
|
}
|
|
if yyr2002 || yy2arr2002 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ServicePort) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym2018 := z.DecBinary()
|
|
_ = yym2018
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2019 := r.ContainerType()
|
|
if yyct2019 == codecSelferValueTypeMap1234 {
|
|
yyl2019 := r.ReadMapStart()
|
|
if yyl2019 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2019, d)
|
|
}
|
|
} else if yyct2019 == codecSelferValueTypeArray1234 {
|
|
yyl2019 := r.ReadArrayStart()
|
|
if yyl2019 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2019, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ServicePort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys2020Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2020Slc
|
|
var yyhl2020 bool = l >= 0
|
|
for yyj2020 := 0; ; yyj2020++ {
|
|
if yyhl2020 {
|
|
if yyj2020 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2020Slc = r.DecodeBytes(yys2020Slc, true, true)
|
|
yys2020 := string(yys2020Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2020 {
|
|
case "name":
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
case "protocol":
|
|
if r.TryDecodeAsNil() {
|
|
x.Protocol = ""
|
|
} else {
|
|
x.Protocol = Protocol(r.DecodeString())
|
|
}
|
|
case "port":
|
|
if r.TryDecodeAsNil() {
|
|
x.Port = 0
|
|
} else {
|
|
x.Port = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
case "targetPort":
|
|
if r.TryDecodeAsNil() {
|
|
x.TargetPort = pkg5_intstr.IntOrString{}
|
|
} else {
|
|
yyv2024 := &x.TargetPort
|
|
yym2025 := z.DecBinary()
|
|
_ = yym2025
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2024) {
|
|
} else if !yym2025 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv2024)
|
|
} else {
|
|
z.DecFallback(yyv2024, false)
|
|
}
|
|
}
|
|
case "nodePort":
|
|
if r.TryDecodeAsNil() {
|
|
x.NodePort = 0
|
|
} else {
|
|
x.NodePort = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2020)
|
|
} // end switch yys2020
|
|
} // end for yyj2020
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *ServicePort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj2027 int
|
|
var yyb2027 bool
|
|
var yyhl2027 bool = l >= 0
|
|
yyj2027++
|
|
if yyhl2027 {
|
|
yyb2027 = yyj2027 > l
|
|
} else {
|
|
yyb2027 = r.CheckBreak()
|
|
}
|
|
if yyb2027 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
yyj2027++
|
|
if yyhl2027 {
|
|
yyb2027 = yyj2027 > l
|
|
} else {
|
|
yyb2027 = r.CheckBreak()
|
|
}
|
|
if yyb2027 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Protocol = ""
|
|
} else {
|
|
x.Protocol = Protocol(r.DecodeString())
|
|
}
|
|
yyj2027++
|
|
if yyhl2027 {
|
|
yyb2027 = yyj2027 > l
|
|
} else {
|
|
yyb2027 = r.CheckBreak()
|
|
}
|
|
if yyb2027 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Port = 0
|
|
} else {
|
|
x.Port = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
yyj2027++
|
|
if yyhl2027 {
|
|
yyb2027 = yyj2027 > l
|
|
} else {
|
|
yyb2027 = r.CheckBreak()
|
|
}
|
|
if yyb2027 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.TargetPort = pkg5_intstr.IntOrString{}
|
|
} else {
|
|
yyv2031 := &x.TargetPort
|
|
yym2032 := z.DecBinary()
|
|
_ = yym2032
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2031) {
|
|
} else if !yym2032 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv2031)
|
|
} else {
|
|
z.DecFallback(yyv2031, false)
|
|
}
|
|
}
|
|
yyj2027++
|
|
if yyhl2027 {
|
|
yyb2027 = yyj2027 > l
|
|
} else {
|
|
yyb2027 = r.CheckBreak()
|
|
}
|
|
if yyb2027 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.NodePort = 0
|
|
} else {
|
|
x.NodePort = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
for {
|
|
yyj2027++
|
|
if yyhl2027 {
|
|
yyb2027 = yyj2027 > l
|
|
} else {
|
|
yyb2027 = r.CheckBreak()
|
|
}
|
|
if yyb2027 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2027-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *Service) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2034 := z.EncBinary()
|
|
_ = yym2034
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2035 := !z.EncBinary()
|
|
yy2arr2035 := z.EncBasicHandle().StructToArray
|
|
var yyq2035 [5]bool
|
|
_, _, _ = yysep2035, yyq2035, yy2arr2035
|
|
const yyr2035 bool = false
|
|
yyq2035[0] = x.Kind != ""
|
|
yyq2035[1] = x.APIVersion != ""
|
|
yyq2035[2] = true
|
|
yyq2035[3] = true
|
|
yyq2035[4] = true
|
|
var yynn2035 int
|
|
if yyr2035 || yy2arr2035 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn2035 = 0
|
|
for _, b := range yyq2035 {
|
|
if b {
|
|
yynn2035++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2035)
|
|
yynn2035 = 0
|
|
}
|
|
if yyr2035 || yy2arr2035 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2035[0] {
|
|
yym2037 := z.EncBinary()
|
|
_ = yym2037
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2035[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2038 := z.EncBinary()
|
|
_ = yym2038
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2035 || yy2arr2035 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2035[1] {
|
|
yym2040 := z.EncBinary()
|
|
_ = yym2040
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2035[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2041 := z.EncBinary()
|
|
_ = yym2041
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2035 || yy2arr2035 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2035[2] {
|
|
yy2043 := &x.ObjectMeta
|
|
yy2043.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2035[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2044 := &x.ObjectMeta
|
|
yy2044.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2035 || yy2arr2035 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2035[3] {
|
|
yy2046 := &x.Spec
|
|
yy2046.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2035[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("spec"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2047 := &x.Spec
|
|
yy2047.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2035 || yy2arr2035 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2035[4] {
|
|
yy2049 := &x.Status
|
|
yy2049.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2035[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("status"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2050 := &x.Status
|
|
yy2050.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2035 || yy2arr2035 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *Service) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym2051 := z.DecBinary()
|
|
_ = yym2051
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2052 := r.ContainerType()
|
|
if yyct2052 == codecSelferValueTypeMap1234 {
|
|
yyl2052 := r.ReadMapStart()
|
|
if yyl2052 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2052, d)
|
|
}
|
|
} else if yyct2052 == codecSelferValueTypeArray1234 {
|
|
yyl2052 := r.ReadArrayStart()
|
|
if yyl2052 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2052, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *Service) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys2053Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2053Slc
|
|
var yyhl2053 bool = l >= 0
|
|
for yyj2053 := 0; ; yyj2053++ {
|
|
if yyhl2053 {
|
|
if yyj2053 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2053Slc = r.DecodeBytes(yys2053Slc, true, true)
|
|
yys2053 := string(yys2053Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2053 {
|
|
case "kind":
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
case "apiVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
case "metadata":
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv2056 := &x.ObjectMeta
|
|
yyv2056.CodecDecodeSelf(d)
|
|
}
|
|
case "spec":
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = ServiceSpec{}
|
|
} else {
|
|
yyv2057 := &x.Spec
|
|
yyv2057.CodecDecodeSelf(d)
|
|
}
|
|
case "status":
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = ServiceStatus{}
|
|
} else {
|
|
yyv2058 := &x.Status
|
|
yyv2058.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2053)
|
|
} // end switch yys2053
|
|
} // end for yyj2053
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *Service) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj2059 int
|
|
var yyb2059 bool
|
|
var yyhl2059 bool = l >= 0
|
|
yyj2059++
|
|
if yyhl2059 {
|
|
yyb2059 = yyj2059 > l
|
|
} else {
|
|
yyb2059 = r.CheckBreak()
|
|
}
|
|
if yyb2059 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2059++
|
|
if yyhl2059 {
|
|
yyb2059 = yyj2059 > l
|
|
} else {
|
|
yyb2059 = r.CheckBreak()
|
|
}
|
|
if yyb2059 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2059++
|
|
if yyhl2059 {
|
|
yyb2059 = yyj2059 > l
|
|
} else {
|
|
yyb2059 = r.CheckBreak()
|
|
}
|
|
if yyb2059 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv2062 := &x.ObjectMeta
|
|
yyv2062.CodecDecodeSelf(d)
|
|
}
|
|
yyj2059++
|
|
if yyhl2059 {
|
|
yyb2059 = yyj2059 > l
|
|
} else {
|
|
yyb2059 = r.CheckBreak()
|
|
}
|
|
if yyb2059 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = ServiceSpec{}
|
|
} else {
|
|
yyv2063 := &x.Spec
|
|
yyv2063.CodecDecodeSelf(d)
|
|
}
|
|
yyj2059++
|
|
if yyhl2059 {
|
|
yyb2059 = yyj2059 > l
|
|
} else {
|
|
yyb2059 = r.CheckBreak()
|
|
}
|
|
if yyb2059 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = ServiceStatus{}
|
|
} else {
|
|
yyv2064 := &x.Status
|
|
yyv2064.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj2059++
|
|
if yyhl2059 {
|
|
yyb2059 = yyj2059 > l
|
|
} else {
|
|
yyb2059 = r.CheckBreak()
|
|
}
|
|
if yyb2059 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2059-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2065 := z.EncBinary()
|
|
_ = yym2065
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2066 := !z.EncBinary()
|
|
yy2arr2066 := z.EncBasicHandle().StructToArray
|
|
var yyq2066 [5]bool
|
|
_, _, _ = yysep2066, yyq2066, yy2arr2066
|
|
const yyr2066 bool = false
|
|
yyq2066[0] = x.Kind != ""
|
|
yyq2066[1] = x.APIVersion != ""
|
|
yyq2066[2] = true
|
|
yyq2066[4] = len(x.ImagePullSecrets) != 0
|
|
var yynn2066 int
|
|
if yyr2066 || yy2arr2066 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn2066 = 1
|
|
for _, b := range yyq2066 {
|
|
if b {
|
|
yynn2066++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2066)
|
|
yynn2066 = 0
|
|
}
|
|
if yyr2066 || yy2arr2066 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2066[0] {
|
|
yym2068 := z.EncBinary()
|
|
_ = yym2068
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2066[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2069 := z.EncBinary()
|
|
_ = yym2069
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2066 || yy2arr2066 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2066[1] {
|
|
yym2071 := z.EncBinary()
|
|
_ = yym2071
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2066[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2072 := z.EncBinary()
|
|
_ = yym2072
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2066 || yy2arr2066 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2066[2] {
|
|
yy2074 := &x.ObjectMeta
|
|
yy2074.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2066[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2075 := &x.ObjectMeta
|
|
yy2075.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2066 || yy2arr2066 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Secrets == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2077 := z.EncBinary()
|
|
_ = yym2077
|
|
if false {
|
|
} else {
|
|
h.encSliceObjectReference(([]ObjectReference)(x.Secrets), e)
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("secrets"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Secrets == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2078 := z.EncBinary()
|
|
_ = yym2078
|
|
if false {
|
|
} else {
|
|
h.encSliceObjectReference(([]ObjectReference)(x.Secrets), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr2066 || yy2arr2066 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2066[4] {
|
|
if x.ImagePullSecrets == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2080 := z.EncBinary()
|
|
_ = yym2080
|
|
if false {
|
|
} else {
|
|
h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2066[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.ImagePullSecrets == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2081 := z.EncBinary()
|
|
_ = yym2081
|
|
if false {
|
|
} else {
|
|
h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr2066 || yy2arr2066 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ServiceAccount) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym2082 := z.DecBinary()
|
|
_ = yym2082
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2083 := r.ContainerType()
|
|
if yyct2083 == codecSelferValueTypeMap1234 {
|
|
yyl2083 := r.ReadMapStart()
|
|
if yyl2083 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2083, d)
|
|
}
|
|
} else if yyct2083 == codecSelferValueTypeArray1234 {
|
|
yyl2083 := r.ReadArrayStart()
|
|
if yyl2083 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2083, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ServiceAccount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys2084Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2084Slc
|
|
var yyhl2084 bool = l >= 0
|
|
for yyj2084 := 0; ; yyj2084++ {
|
|
if yyhl2084 {
|
|
if yyj2084 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2084Slc = r.DecodeBytes(yys2084Slc, true, true)
|
|
yys2084 := string(yys2084Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2084 {
|
|
case "kind":
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
case "apiVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
case "metadata":
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv2087 := &x.ObjectMeta
|
|
yyv2087.CodecDecodeSelf(d)
|
|
}
|
|
case "secrets":
|
|
if r.TryDecodeAsNil() {
|
|
x.Secrets = nil
|
|
} else {
|
|
yyv2088 := &x.Secrets
|
|
yym2089 := z.DecBinary()
|
|
_ = yym2089
|
|
if false {
|
|
} else {
|
|
h.decSliceObjectReference((*[]ObjectReference)(yyv2088), d)
|
|
}
|
|
}
|
|
case "imagePullSecrets":
|
|
if r.TryDecodeAsNil() {
|
|
x.ImagePullSecrets = nil
|
|
} else {
|
|
yyv2090 := &x.ImagePullSecrets
|
|
yym2091 := z.DecBinary()
|
|
_ = yym2091
|
|
if false {
|
|
} else {
|
|
h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2090), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2084)
|
|
} // end switch yys2084
|
|
} // end for yyj2084
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *ServiceAccount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj2092 int
|
|
var yyb2092 bool
|
|
var yyhl2092 bool = l >= 0
|
|
yyj2092++
|
|
if yyhl2092 {
|
|
yyb2092 = yyj2092 > l
|
|
} else {
|
|
yyb2092 = r.CheckBreak()
|
|
}
|
|
if yyb2092 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2092++
|
|
if yyhl2092 {
|
|
yyb2092 = yyj2092 > l
|
|
} else {
|
|
yyb2092 = r.CheckBreak()
|
|
}
|
|
if yyb2092 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2092++
|
|
if yyhl2092 {
|
|
yyb2092 = yyj2092 > l
|
|
} else {
|
|
yyb2092 = r.CheckBreak()
|
|
}
|
|
if yyb2092 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv2095 := &x.ObjectMeta
|
|
yyv2095.CodecDecodeSelf(d)
|
|
}
|
|
yyj2092++
|
|
if yyhl2092 {
|
|
yyb2092 = yyj2092 > l
|
|
} else {
|
|
yyb2092 = r.CheckBreak()
|
|
}
|
|
if yyb2092 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Secrets = nil
|
|
} else {
|
|
yyv2096 := &x.Secrets
|
|
yym2097 := z.DecBinary()
|
|
_ = yym2097
|
|
if false {
|
|
} else {
|
|
h.decSliceObjectReference((*[]ObjectReference)(yyv2096), d)
|
|
}
|
|
}
|
|
yyj2092++
|
|
if yyhl2092 {
|
|
yyb2092 = yyj2092 > l
|
|
} else {
|
|
yyb2092 = r.CheckBreak()
|
|
}
|
|
if yyb2092 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ImagePullSecrets = nil
|
|
} else {
|
|
yyv2098 := &x.ImagePullSecrets
|
|
yym2099 := z.DecBinary()
|
|
_ = yym2099
|
|
if false {
|
|
} else {
|
|
h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2098), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj2092++
|
|
if yyhl2092 {
|
|
yyb2092 = yyj2092 > l
|
|
} else {
|
|
yyb2092 = r.CheckBreak()
|
|
}
|
|
if yyb2092 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2092-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *ServiceAccountList) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2100 := z.EncBinary()
|
|
_ = yym2100
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2101 := !z.EncBinary()
|
|
yy2arr2101 := z.EncBasicHandle().StructToArray
|
|
var yyq2101 [4]bool
|
|
_, _, _ = yysep2101, yyq2101, yy2arr2101
|
|
const yyr2101 bool = false
|
|
yyq2101[0] = x.Kind != ""
|
|
yyq2101[1] = x.APIVersion != ""
|
|
yyq2101[2] = true
|
|
var yynn2101 int
|
|
if yyr2101 || yy2arr2101 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn2101 = 1
|
|
for _, b := range yyq2101 {
|
|
if b {
|
|
yynn2101++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2101)
|
|
yynn2101 = 0
|
|
}
|
|
if yyr2101 || yy2arr2101 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2101[0] {
|
|
yym2103 := z.EncBinary()
|
|
_ = yym2103
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2101[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2104 := z.EncBinary()
|
|
_ = yym2104
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2101 || yy2arr2101 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2101[1] {
|
|
yym2106 := z.EncBinary()
|
|
_ = yym2106
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2101[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2107 := z.EncBinary()
|
|
_ = yym2107
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2101 || yy2arr2101 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2101[2] {
|
|
yy2109 := &x.ListMeta
|
|
yym2110 := z.EncBinary()
|
|
_ = yym2110
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy2109) {
|
|
} else {
|
|
z.EncFallback(yy2109)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2101[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2111 := &x.ListMeta
|
|
yym2112 := z.EncBinary()
|
|
_ = yym2112
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy2111) {
|
|
} else {
|
|
z.EncFallback(yy2111)
|
|
}
|
|
}
|
|
}
|
|
if yyr2101 || yy2arr2101 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2114 := z.EncBinary()
|
|
_ = yym2114
|
|
if false {
|
|
} else {
|
|
h.encSliceServiceAccount(([]ServiceAccount)(x.Items), e)
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("items"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2115 := z.EncBinary()
|
|
_ = yym2115
|
|
if false {
|
|
} else {
|
|
h.encSliceServiceAccount(([]ServiceAccount)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr2101 || yy2arr2101 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ServiceAccountList) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym2116 := z.DecBinary()
|
|
_ = yym2116
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2117 := r.ContainerType()
|
|
if yyct2117 == codecSelferValueTypeMap1234 {
|
|
yyl2117 := r.ReadMapStart()
|
|
if yyl2117 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2117, d)
|
|
}
|
|
} else if yyct2117 == codecSelferValueTypeArray1234 {
|
|
yyl2117 := r.ReadArrayStart()
|
|
if yyl2117 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2117, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ServiceAccountList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys2118Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2118Slc
|
|
var yyhl2118 bool = l >= 0
|
|
for yyj2118 := 0; ; yyj2118++ {
|
|
if yyhl2118 {
|
|
if yyj2118 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2118Slc = r.DecodeBytes(yys2118Slc, true, true)
|
|
yys2118 := string(yys2118Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2118 {
|
|
case "kind":
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
case "apiVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
case "metadata":
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv2121 := &x.ListMeta
|
|
yym2122 := z.DecBinary()
|
|
_ = yym2122
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2121) {
|
|
} else {
|
|
z.DecFallback(yyv2121, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv2123 := &x.Items
|
|
yym2124 := z.DecBinary()
|
|
_ = yym2124
|
|
if false {
|
|
} else {
|
|
h.decSliceServiceAccount((*[]ServiceAccount)(yyv2123), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2118)
|
|
} // end switch yys2118
|
|
} // end for yyj2118
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *ServiceAccountList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj2125 int
|
|
var yyb2125 bool
|
|
var yyhl2125 bool = l >= 0
|
|
yyj2125++
|
|
if yyhl2125 {
|
|
yyb2125 = yyj2125 > l
|
|
} else {
|
|
yyb2125 = r.CheckBreak()
|
|
}
|
|
if yyb2125 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2125++
|
|
if yyhl2125 {
|
|
yyb2125 = yyj2125 > l
|
|
} else {
|
|
yyb2125 = r.CheckBreak()
|
|
}
|
|
if yyb2125 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2125++
|
|
if yyhl2125 {
|
|
yyb2125 = yyj2125 > l
|
|
} else {
|
|
yyb2125 = r.CheckBreak()
|
|
}
|
|
if yyb2125 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv2128 := &x.ListMeta
|
|
yym2129 := z.DecBinary()
|
|
_ = yym2129
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2128) {
|
|
} else {
|
|
z.DecFallback(yyv2128, false)
|
|
}
|
|
}
|
|
yyj2125++
|
|
if yyhl2125 {
|
|
yyb2125 = yyj2125 > l
|
|
} else {
|
|
yyb2125 = r.CheckBreak()
|
|
}
|
|
if yyb2125 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv2130 := &x.Items
|
|
yym2131 := z.DecBinary()
|
|
_ = yym2131
|
|
if false {
|
|
} else {
|
|
h.decSliceServiceAccount((*[]ServiceAccount)(yyv2130), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj2125++
|
|
if yyhl2125 {
|
|
yyb2125 = yyj2125 > l
|
|
} else {
|
|
yyb2125 = r.CheckBreak()
|
|
}
|
|
if yyb2125 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2125-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *Endpoints) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2132 := z.EncBinary()
|
|
_ = yym2132
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2133 := !z.EncBinary()
|
|
yy2arr2133 := z.EncBasicHandle().StructToArray
|
|
var yyq2133 [4]bool
|
|
_, _, _ = yysep2133, yyq2133, yy2arr2133
|
|
const yyr2133 bool = false
|
|
yyq2133[0] = x.Kind != ""
|
|
yyq2133[1] = x.APIVersion != ""
|
|
yyq2133[2] = true
|
|
var yynn2133 int
|
|
if yyr2133 || yy2arr2133 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn2133 = 1
|
|
for _, b := range yyq2133 {
|
|
if b {
|
|
yynn2133++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2133)
|
|
yynn2133 = 0
|
|
}
|
|
if yyr2133 || yy2arr2133 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2133[0] {
|
|
yym2135 := z.EncBinary()
|
|
_ = yym2135
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2133[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2136 := z.EncBinary()
|
|
_ = yym2136
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2133 || yy2arr2133 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2133[1] {
|
|
yym2138 := z.EncBinary()
|
|
_ = yym2138
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2133[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2139 := z.EncBinary()
|
|
_ = yym2139
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2133 || yy2arr2133 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2133[2] {
|
|
yy2141 := &x.ObjectMeta
|
|
yy2141.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2133[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2142 := &x.ObjectMeta
|
|
yy2142.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2133 || yy2arr2133 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Subsets == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2144 := z.EncBinary()
|
|
_ = yym2144
|
|
if false {
|
|
} else {
|
|
h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e)
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("Subsets"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Subsets == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2145 := z.EncBinary()
|
|
_ = yym2145
|
|
if false {
|
|
} else {
|
|
h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr2133 || yy2arr2133 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *Endpoints) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym2146 := z.DecBinary()
|
|
_ = yym2146
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2147 := r.ContainerType()
|
|
if yyct2147 == codecSelferValueTypeMap1234 {
|
|
yyl2147 := r.ReadMapStart()
|
|
if yyl2147 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2147, d)
|
|
}
|
|
} else if yyct2147 == codecSelferValueTypeArray1234 {
|
|
yyl2147 := r.ReadArrayStart()
|
|
if yyl2147 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2147, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *Endpoints) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys2148Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2148Slc
|
|
var yyhl2148 bool = l >= 0
|
|
for yyj2148 := 0; ; yyj2148++ {
|
|
if yyhl2148 {
|
|
if yyj2148 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2148Slc = r.DecodeBytes(yys2148Slc, true, true)
|
|
yys2148 := string(yys2148Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2148 {
|
|
case "kind":
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
case "apiVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
case "metadata":
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv2151 := &x.ObjectMeta
|
|
yyv2151.CodecDecodeSelf(d)
|
|
}
|
|
case "Subsets":
|
|
if r.TryDecodeAsNil() {
|
|
x.Subsets = nil
|
|
} else {
|
|
yyv2152 := &x.Subsets
|
|
yym2153 := z.DecBinary()
|
|
_ = yym2153
|
|
if false {
|
|
} else {
|
|
h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2152), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2148)
|
|
} // end switch yys2148
|
|
} // end for yyj2148
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *Endpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj2154 int
|
|
var yyb2154 bool
|
|
var yyhl2154 bool = l >= 0
|
|
yyj2154++
|
|
if yyhl2154 {
|
|
yyb2154 = yyj2154 > l
|
|
} else {
|
|
yyb2154 = r.CheckBreak()
|
|
}
|
|
if yyb2154 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2154++
|
|
if yyhl2154 {
|
|
yyb2154 = yyj2154 > l
|
|
} else {
|
|
yyb2154 = r.CheckBreak()
|
|
}
|
|
if yyb2154 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2154++
|
|
if yyhl2154 {
|
|
yyb2154 = yyj2154 > l
|
|
} else {
|
|
yyb2154 = r.CheckBreak()
|
|
}
|
|
if yyb2154 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv2157 := &x.ObjectMeta
|
|
yyv2157.CodecDecodeSelf(d)
|
|
}
|
|
yyj2154++
|
|
if yyhl2154 {
|
|
yyb2154 = yyj2154 > l
|
|
} else {
|
|
yyb2154 = r.CheckBreak()
|
|
}
|
|
if yyb2154 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Subsets = nil
|
|
} else {
|
|
yyv2158 := &x.Subsets
|
|
yym2159 := z.DecBinary()
|
|
_ = yym2159
|
|
if false {
|
|
} else {
|
|
h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2158), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj2154++
|
|
if yyhl2154 {
|
|
yyb2154 = yyj2154 > l
|
|
} else {
|
|
yyb2154 = r.CheckBreak()
|
|
}
|
|
if yyb2154 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2154-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *EndpointSubset) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2160 := z.EncBinary()
|
|
_ = yym2160
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2161 := !z.EncBinary()
|
|
yy2arr2161 := z.EncBasicHandle().StructToArray
|
|
var yyq2161 [3]bool
|
|
_, _, _ = yysep2161, yyq2161, yy2arr2161
|
|
const yyr2161 bool = false
|
|
var yynn2161 int
|
|
if yyr2161 || yy2arr2161 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn2161 = 3
|
|
for _, b := range yyq2161 {
|
|
if b {
|
|
yynn2161++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2161)
|
|
yynn2161 = 0
|
|
}
|
|
if yyr2161 || yy2arr2161 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Addresses == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2163 := z.EncBinary()
|
|
_ = yym2163
|
|
if false {
|
|
} else {
|
|
h.encSliceEndpointAddress(([]EndpointAddress)(x.Addresses), e)
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("Addresses"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Addresses == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2164 := z.EncBinary()
|
|
_ = yym2164
|
|
if false {
|
|
} else {
|
|
h.encSliceEndpointAddress(([]EndpointAddress)(x.Addresses), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr2161 || yy2arr2161 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.NotReadyAddresses == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2166 := z.EncBinary()
|
|
_ = yym2166
|
|
if false {
|
|
} else {
|
|
h.encSliceEndpointAddress(([]EndpointAddress)(x.NotReadyAddresses), e)
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("NotReadyAddresses"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.NotReadyAddresses == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2167 := z.EncBinary()
|
|
_ = yym2167
|
|
if false {
|
|
} else {
|
|
h.encSliceEndpointAddress(([]EndpointAddress)(x.NotReadyAddresses), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr2161 || yy2arr2161 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Ports == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2169 := z.EncBinary()
|
|
_ = yym2169
|
|
if false {
|
|
} else {
|
|
h.encSliceEndpointPort(([]EndpointPort)(x.Ports), e)
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("Ports"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Ports == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2170 := z.EncBinary()
|
|
_ = yym2170
|
|
if false {
|
|
} else {
|
|
h.encSliceEndpointPort(([]EndpointPort)(x.Ports), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr2161 || yy2arr2161 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *EndpointSubset) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym2171 := z.DecBinary()
|
|
_ = yym2171
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2172 := r.ContainerType()
|
|
if yyct2172 == codecSelferValueTypeMap1234 {
|
|
yyl2172 := r.ReadMapStart()
|
|
if yyl2172 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2172, d)
|
|
}
|
|
} else if yyct2172 == codecSelferValueTypeArray1234 {
|
|
yyl2172 := r.ReadArrayStart()
|
|
if yyl2172 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2172, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *EndpointSubset) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys2173Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2173Slc
|
|
var yyhl2173 bool = l >= 0
|
|
for yyj2173 := 0; ; yyj2173++ {
|
|
if yyhl2173 {
|
|
if yyj2173 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2173Slc = r.DecodeBytes(yys2173Slc, true, true)
|
|
yys2173 := string(yys2173Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2173 {
|
|
case "Addresses":
|
|
if r.TryDecodeAsNil() {
|
|
x.Addresses = nil
|
|
} else {
|
|
yyv2174 := &x.Addresses
|
|
yym2175 := z.DecBinary()
|
|
_ = yym2175
|
|
if false {
|
|
} else {
|
|
h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2174), d)
|
|
}
|
|
}
|
|
case "NotReadyAddresses":
|
|
if r.TryDecodeAsNil() {
|
|
x.NotReadyAddresses = nil
|
|
} else {
|
|
yyv2176 := &x.NotReadyAddresses
|
|
yym2177 := z.DecBinary()
|
|
_ = yym2177
|
|
if false {
|
|
} else {
|
|
h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2176), d)
|
|
}
|
|
}
|
|
case "Ports":
|
|
if r.TryDecodeAsNil() {
|
|
x.Ports = nil
|
|
} else {
|
|
yyv2178 := &x.Ports
|
|
yym2179 := z.DecBinary()
|
|
_ = yym2179
|
|
if false {
|
|
} else {
|
|
h.decSliceEndpointPort((*[]EndpointPort)(yyv2178), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2173)
|
|
} // end switch yys2173
|
|
} // end for yyj2173
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *EndpointSubset) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj2180 int
|
|
var yyb2180 bool
|
|
var yyhl2180 bool = l >= 0
|
|
yyj2180++
|
|
if yyhl2180 {
|
|
yyb2180 = yyj2180 > l
|
|
} else {
|
|
yyb2180 = r.CheckBreak()
|
|
}
|
|
if yyb2180 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Addresses = nil
|
|
} else {
|
|
yyv2181 := &x.Addresses
|
|
yym2182 := z.DecBinary()
|
|
_ = yym2182
|
|
if false {
|
|
} else {
|
|
h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2181), d)
|
|
}
|
|
}
|
|
yyj2180++
|
|
if yyhl2180 {
|
|
yyb2180 = yyj2180 > l
|
|
} else {
|
|
yyb2180 = r.CheckBreak()
|
|
}
|
|
if yyb2180 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.NotReadyAddresses = nil
|
|
} else {
|
|
yyv2183 := &x.NotReadyAddresses
|
|
yym2184 := z.DecBinary()
|
|
_ = yym2184
|
|
if false {
|
|
} else {
|
|
h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2183), d)
|
|
}
|
|
}
|
|
yyj2180++
|
|
if yyhl2180 {
|
|
yyb2180 = yyj2180 > l
|
|
} else {
|
|
yyb2180 = r.CheckBreak()
|
|
}
|
|
if yyb2180 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Ports = nil
|
|
} else {
|
|
yyv2185 := &x.Ports
|
|
yym2186 := z.DecBinary()
|
|
_ = yym2186
|
|
if false {
|
|
} else {
|
|
h.decSliceEndpointPort((*[]EndpointPort)(yyv2185), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj2180++
|
|
if yyhl2180 {
|
|
yyb2180 = yyj2180 > l
|
|
} else {
|
|
yyb2180 = r.CheckBreak()
|
|
}
|
|
if yyb2180 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2180-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *EndpointAddress) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2187 := z.EncBinary()
|
|
_ = yym2187
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2188 := !z.EncBinary()
|
|
yy2arr2188 := z.EncBasicHandle().StructToArray
|
|
var yyq2188 [2]bool
|
|
_, _, _ = yysep2188, yyq2188, yy2arr2188
|
|
const yyr2188 bool = false
|
|
var yynn2188 int
|
|
if yyr2188 || yy2arr2188 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn2188 = 2
|
|
for _, b := range yyq2188 {
|
|
if b {
|
|
yynn2188++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2188)
|
|
yynn2188 = 0
|
|
}
|
|
if yyr2188 || yy2arr2188 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2190 := z.EncBinary()
|
|
_ = yym2190
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.IP))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("IP"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2191 := z.EncBinary()
|
|
_ = yym2191
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.IP))
|
|
}
|
|
}
|
|
if yyr2188 || yy2arr2188 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.TargetRef == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.TargetRef.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("TargetRef"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.TargetRef == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.TargetRef.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2188 || yy2arr2188 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *EndpointAddress) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym2193 := z.DecBinary()
|
|
_ = yym2193
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2194 := r.ContainerType()
|
|
if yyct2194 == codecSelferValueTypeMap1234 {
|
|
yyl2194 := r.ReadMapStart()
|
|
if yyl2194 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2194, d)
|
|
}
|
|
} else if yyct2194 == codecSelferValueTypeArray1234 {
|
|
yyl2194 := r.ReadArrayStart()
|
|
if yyl2194 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2194, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *EndpointAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys2195Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2195Slc
|
|
var yyhl2195 bool = l >= 0
|
|
for yyj2195 := 0; ; yyj2195++ {
|
|
if yyhl2195 {
|
|
if yyj2195 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2195Slc = r.DecodeBytes(yys2195Slc, true, true)
|
|
yys2195 := string(yys2195Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2195 {
|
|
case "IP":
|
|
if r.TryDecodeAsNil() {
|
|
x.IP = ""
|
|
} else {
|
|
x.IP = string(r.DecodeString())
|
|
}
|
|
case "TargetRef":
|
|
if r.TryDecodeAsNil() {
|
|
if x.TargetRef != nil {
|
|
x.TargetRef = nil
|
|
}
|
|
} else {
|
|
if x.TargetRef == nil {
|
|
x.TargetRef = new(ObjectReference)
|
|
}
|
|
x.TargetRef.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2195)
|
|
} // end switch yys2195
|
|
} // end for yyj2195
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *EndpointAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj2198 int
|
|
var yyb2198 bool
|
|
var yyhl2198 bool = l >= 0
|
|
yyj2198++
|
|
if yyhl2198 {
|
|
yyb2198 = yyj2198 > l
|
|
} else {
|
|
yyb2198 = r.CheckBreak()
|
|
}
|
|
if yyb2198 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.IP = ""
|
|
} else {
|
|
x.IP = string(r.DecodeString())
|
|
}
|
|
yyj2198++
|
|
if yyhl2198 {
|
|
yyb2198 = yyj2198 > l
|
|
} else {
|
|
yyb2198 = r.CheckBreak()
|
|
}
|
|
if yyb2198 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.TargetRef != nil {
|
|
x.TargetRef = nil
|
|
}
|
|
} else {
|
|
if x.TargetRef == nil {
|
|
x.TargetRef = new(ObjectReference)
|
|
}
|
|
x.TargetRef.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj2198++
|
|
if yyhl2198 {
|
|
yyb2198 = yyj2198 > l
|
|
} else {
|
|
yyb2198 = r.CheckBreak()
|
|
}
|
|
if yyb2198 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2198-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *EndpointPort) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2201 := z.EncBinary()
|
|
_ = yym2201
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2202 := !z.EncBinary()
|
|
yy2arr2202 := z.EncBasicHandle().StructToArray
|
|
var yyq2202 [3]bool
|
|
_, _, _ = yysep2202, yyq2202, yy2arr2202
|
|
const yyr2202 bool = false
|
|
var yynn2202 int
|
|
if yyr2202 || yy2arr2202 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn2202 = 3
|
|
for _, b := range yyq2202 {
|
|
if b {
|
|
yynn2202++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2202)
|
|
yynn2202 = 0
|
|
}
|
|
if yyr2202 || yy2arr2202 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2204 := z.EncBinary()
|
|
_ = yym2204
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("Name"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2205 := z.EncBinary()
|
|
_ = yym2205
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
}
|
|
if yyr2202 || yy2arr2202 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2207 := z.EncBinary()
|
|
_ = yym2207
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Port))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("Port"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2208 := z.EncBinary()
|
|
_ = yym2208
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Port))
|
|
}
|
|
}
|
|
if yyr2202 || yy2arr2202 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
x.Protocol.CodecEncodeSelf(e)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("Protocol"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Protocol.CodecEncodeSelf(e)
|
|
}
|
|
if yyr2202 || yy2arr2202 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *EndpointPort) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym2210 := z.DecBinary()
|
|
_ = yym2210
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2211 := r.ContainerType()
|
|
if yyct2211 == codecSelferValueTypeMap1234 {
|
|
yyl2211 := r.ReadMapStart()
|
|
if yyl2211 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2211, d)
|
|
}
|
|
} else if yyct2211 == codecSelferValueTypeArray1234 {
|
|
yyl2211 := r.ReadArrayStart()
|
|
if yyl2211 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2211, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *EndpointPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys2212Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2212Slc
|
|
var yyhl2212 bool = l >= 0
|
|
for yyj2212 := 0; ; yyj2212++ {
|
|
if yyhl2212 {
|
|
if yyj2212 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2212Slc = r.DecodeBytes(yys2212Slc, true, true)
|
|
yys2212 := string(yys2212Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2212 {
|
|
case "Name":
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
case "Port":
|
|
if r.TryDecodeAsNil() {
|
|
x.Port = 0
|
|
} else {
|
|
x.Port = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
case "Protocol":
|
|
if r.TryDecodeAsNil() {
|
|
x.Protocol = ""
|
|
} else {
|
|
x.Protocol = Protocol(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2212)
|
|
} // end switch yys2212
|
|
} // end for yyj2212
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *EndpointPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj2216 int
|
|
var yyb2216 bool
|
|
var yyhl2216 bool = l >= 0
|
|
yyj2216++
|
|
if yyhl2216 {
|
|
yyb2216 = yyj2216 > l
|
|
} else {
|
|
yyb2216 = r.CheckBreak()
|
|
}
|
|
if yyb2216 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
yyj2216++
|
|
if yyhl2216 {
|
|
yyb2216 = yyj2216 > l
|
|
} else {
|
|
yyb2216 = r.CheckBreak()
|
|
}
|
|
if yyb2216 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Port = 0
|
|
} else {
|
|
x.Port = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
yyj2216++
|
|
if yyhl2216 {
|
|
yyb2216 = yyj2216 > l
|
|
} else {
|
|
yyb2216 = r.CheckBreak()
|
|
}
|
|
if yyb2216 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Protocol = ""
|
|
} else {
|
|
x.Protocol = Protocol(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj2216++
|
|
if yyhl2216 {
|
|
yyb2216 = yyj2216 > l
|
|
} else {
|
|
yyb2216 = r.CheckBreak()
|
|
}
|
|
if yyb2216 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2216-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *EndpointsList) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2220 := z.EncBinary()
|
|
_ = yym2220
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2221 := !z.EncBinary()
|
|
yy2arr2221 := z.EncBasicHandle().StructToArray
|
|
var yyq2221 [4]bool
|
|
_, _, _ = yysep2221, yyq2221, yy2arr2221
|
|
const yyr2221 bool = false
|
|
yyq2221[0] = x.Kind != ""
|
|
yyq2221[1] = x.APIVersion != ""
|
|
yyq2221[2] = true
|
|
var yynn2221 int
|
|
if yyr2221 || yy2arr2221 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn2221 = 1
|
|
for _, b := range yyq2221 {
|
|
if b {
|
|
yynn2221++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2221)
|
|
yynn2221 = 0
|
|
}
|
|
if yyr2221 || yy2arr2221 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2221[0] {
|
|
yym2223 := z.EncBinary()
|
|
_ = yym2223
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2221[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2224 := z.EncBinary()
|
|
_ = yym2224
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2221 || yy2arr2221 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2221[1] {
|
|
yym2226 := z.EncBinary()
|
|
_ = yym2226
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2221[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2227 := z.EncBinary()
|
|
_ = yym2227
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2221 || yy2arr2221 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2221[2] {
|
|
yy2229 := &x.ListMeta
|
|
yym2230 := z.EncBinary()
|
|
_ = yym2230
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy2229) {
|
|
} else {
|
|
z.EncFallback(yy2229)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2221[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2231 := &x.ListMeta
|
|
yym2232 := z.EncBinary()
|
|
_ = yym2232
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy2231) {
|
|
} else {
|
|
z.EncFallback(yy2231)
|
|
}
|
|
}
|
|
}
|
|
if yyr2221 || yy2arr2221 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2234 := z.EncBinary()
|
|
_ = yym2234
|
|
if false {
|
|
} else {
|
|
h.encSliceEndpoints(([]Endpoints)(x.Items), e)
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("items"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2235 := z.EncBinary()
|
|
_ = yym2235
|
|
if false {
|
|
} else {
|
|
h.encSliceEndpoints(([]Endpoints)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr2221 || yy2arr2221 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *EndpointsList) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym2236 := z.DecBinary()
|
|
_ = yym2236
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2237 := r.ContainerType()
|
|
if yyct2237 == codecSelferValueTypeMap1234 {
|
|
yyl2237 := r.ReadMapStart()
|
|
if yyl2237 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2237, d)
|
|
}
|
|
} else if yyct2237 == codecSelferValueTypeArray1234 {
|
|
yyl2237 := r.ReadArrayStart()
|
|
if yyl2237 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2237, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *EndpointsList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys2238Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2238Slc
|
|
var yyhl2238 bool = l >= 0
|
|
for yyj2238 := 0; ; yyj2238++ {
|
|
if yyhl2238 {
|
|
if yyj2238 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2238Slc = r.DecodeBytes(yys2238Slc, true, true)
|
|
yys2238 := string(yys2238Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2238 {
|
|
case "kind":
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
case "apiVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
case "metadata":
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv2241 := &x.ListMeta
|
|
yym2242 := z.DecBinary()
|
|
_ = yym2242
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2241) {
|
|
} else {
|
|
z.DecFallback(yyv2241, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv2243 := &x.Items
|
|
yym2244 := z.DecBinary()
|
|
_ = yym2244
|
|
if false {
|
|
} else {
|
|
h.decSliceEndpoints((*[]Endpoints)(yyv2243), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2238)
|
|
} // end switch yys2238
|
|
} // end for yyj2238
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *EndpointsList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj2245 int
|
|
var yyb2245 bool
|
|
var yyhl2245 bool = l >= 0
|
|
yyj2245++
|
|
if yyhl2245 {
|
|
yyb2245 = yyj2245 > l
|
|
} else {
|
|
yyb2245 = r.CheckBreak()
|
|
}
|
|
if yyb2245 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2245++
|
|
if yyhl2245 {
|
|
yyb2245 = yyj2245 > l
|
|
} else {
|
|
yyb2245 = r.CheckBreak()
|
|
}
|
|
if yyb2245 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2245++
|
|
if yyhl2245 {
|
|
yyb2245 = yyj2245 > l
|
|
} else {
|
|
yyb2245 = r.CheckBreak()
|
|
}
|
|
if yyb2245 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv2248 := &x.ListMeta
|
|
yym2249 := z.DecBinary()
|
|
_ = yym2249
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2248) {
|
|
} else {
|
|
z.DecFallback(yyv2248, false)
|
|
}
|
|
}
|
|
yyj2245++
|
|
if yyhl2245 {
|
|
yyb2245 = yyj2245 > l
|
|
} else {
|
|
yyb2245 = r.CheckBreak()
|
|
}
|
|
if yyb2245 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv2250 := &x.Items
|
|
yym2251 := z.DecBinary()
|
|
_ = yym2251
|
|
if false {
|
|
} else {
|
|
h.decSliceEndpoints((*[]Endpoints)(yyv2250), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj2245++
|
|
if yyhl2245 {
|
|
yyb2245 = yyj2245 > l
|
|
} else {
|
|
yyb2245 = r.CheckBreak()
|
|
}
|
|
if yyb2245 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2245-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *NodeSpec) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2252 := z.EncBinary()
|
|
_ = yym2252
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2253 := !z.EncBinary()
|
|
yy2arr2253 := z.EncBasicHandle().StructToArray
|
|
var yyq2253 [4]bool
|
|
_, _, _ = yysep2253, yyq2253, yy2arr2253
|
|
const yyr2253 bool = false
|
|
yyq2253[0] = x.PodCIDR != ""
|
|
yyq2253[1] = x.ExternalID != ""
|
|
yyq2253[2] = x.ProviderID != ""
|
|
yyq2253[3] = x.Unschedulable != false
|
|
var yynn2253 int
|
|
if yyr2253 || yy2arr2253 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn2253 = 0
|
|
for _, b := range yyq2253 {
|
|
if b {
|
|
yynn2253++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2253)
|
|
yynn2253 = 0
|
|
}
|
|
if yyr2253 || yy2arr2253 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2253[0] {
|
|
yym2255 := z.EncBinary()
|
|
_ = yym2255
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2253[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("podCIDR"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2256 := z.EncBinary()
|
|
_ = yym2256
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR))
|
|
}
|
|
}
|
|
}
|
|
if yyr2253 || yy2arr2253 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2253[1] {
|
|
yym2258 := z.EncBinary()
|
|
_ = yym2258
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2253[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("externalID"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2259 := z.EncBinary()
|
|
_ = yym2259
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID))
|
|
}
|
|
}
|
|
}
|
|
if yyr2253 || yy2arr2253 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2253[2] {
|
|
yym2261 := z.EncBinary()
|
|
_ = yym2261
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2253[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("providerID"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2262 := z.EncBinary()
|
|
_ = yym2262
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID))
|
|
}
|
|
}
|
|
}
|
|
if yyr2253 || yy2arr2253 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2253[3] {
|
|
yym2264 := z.EncBinary()
|
|
_ = yym2264
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Unschedulable))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq2253[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("unschedulable"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2265 := z.EncBinary()
|
|
_ = yym2265
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Unschedulable))
|
|
}
|
|
}
|
|
}
|
|
if yyr2253 || yy2arr2253 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *NodeSpec) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym2266 := z.DecBinary()
|
|
_ = yym2266
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2267 := r.ContainerType()
|
|
if yyct2267 == codecSelferValueTypeMap1234 {
|
|
yyl2267 := r.ReadMapStart()
|
|
if yyl2267 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2267, d)
|
|
}
|
|
} else if yyct2267 == codecSelferValueTypeArray1234 {
|
|
yyl2267 := r.ReadArrayStart()
|
|
if yyl2267 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2267, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *NodeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys2268Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2268Slc
|
|
var yyhl2268 bool = l >= 0
|
|
for yyj2268 := 0; ; yyj2268++ {
|
|
if yyhl2268 {
|
|
if yyj2268 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2268Slc = r.DecodeBytes(yys2268Slc, true, true)
|
|
yys2268 := string(yys2268Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2268 {
|
|
case "podCIDR":
|
|
if r.TryDecodeAsNil() {
|
|
x.PodCIDR = ""
|
|
} else {
|
|
x.PodCIDR = string(r.DecodeString())
|
|
}
|
|
case "externalID":
|
|
if r.TryDecodeAsNil() {
|
|
x.ExternalID = ""
|
|
} else {
|
|
x.ExternalID = string(r.DecodeString())
|
|
}
|
|
case "providerID":
|
|
if r.TryDecodeAsNil() {
|
|
x.ProviderID = ""
|
|
} else {
|
|
x.ProviderID = string(r.DecodeString())
|
|
}
|
|
case "unschedulable":
|
|
if r.TryDecodeAsNil() {
|
|
x.Unschedulable = false
|
|
} else {
|
|
x.Unschedulable = bool(r.DecodeBool())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2268)
|
|
} // end switch yys2268
|
|
} // end for yyj2268
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *NodeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj2273 int
|
|
var yyb2273 bool
|
|
var yyhl2273 bool = l >= 0
|
|
yyj2273++
|
|
if yyhl2273 {
|
|
yyb2273 = yyj2273 > l
|
|
} else {
|
|
yyb2273 = r.CheckBreak()
|
|
}
|
|
if yyb2273 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.PodCIDR = ""
|
|
} else {
|
|
x.PodCIDR = string(r.DecodeString())
|
|
}
|
|
yyj2273++
|
|
if yyhl2273 {
|
|
yyb2273 = yyj2273 > l
|
|
} else {
|
|
yyb2273 = r.CheckBreak()
|
|
}
|
|
if yyb2273 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ExternalID = ""
|
|
} else {
|
|
x.ExternalID = string(r.DecodeString())
|
|
}
|
|
yyj2273++
|
|
if yyhl2273 {
|
|
yyb2273 = yyj2273 > l
|
|
} else {
|
|
yyb2273 = r.CheckBreak()
|
|
}
|
|
if yyb2273 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ProviderID = ""
|
|
} else {
|
|
x.ProviderID = string(r.DecodeString())
|
|
}
|
|
yyj2273++
|
|
if yyhl2273 {
|
|
yyb2273 = yyj2273 > l
|
|
} else {
|
|
yyb2273 = r.CheckBreak()
|
|
}
|
|
if yyb2273 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Unschedulable = false
|
|
} else {
|
|
x.Unschedulable = bool(r.DecodeBool())
|
|
}
|
|
for {
|
|
yyj2273++
|
|
if yyhl2273 {
|
|
yyb2273 = yyj2273 > l
|
|
} else {
|
|
yyb2273 = r.CheckBreak()
|
|
}
|
|
if yyb2273 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2273-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *DaemonEndpoint) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2278 := z.EncBinary()
|
|
_ = yym2278
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2279 := !z.EncBinary()
|
|
yy2arr2279 := z.EncBasicHandle().StructToArray
|
|
var yyq2279 [1]bool
|
|
_, _, _ = yysep2279, yyq2279, yy2arr2279
|
|
const yyr2279 bool = false
|
|
var yynn2279 int
|
|
if yyr2279 || yy2arr2279 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn2279 = 1
|
|
for _, b := range yyq2279 {
|
|
if b {
|
|
yynn2279++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2279)
|
|
yynn2279 = 0
|
|
}
|
|
if yyr2279 || yy2arr2279 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2281 := z.EncBinary()
|
|
_ = yym2281
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Port))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("Port"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2282 := z.EncBinary()
|
|
_ = yym2282
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Port))
|
|
}
|
|
}
|
|
if yyr2279 || yy2arr2279 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *DaemonEndpoint) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym2283 := z.DecBinary()
|
|
_ = yym2283
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2284 := r.ContainerType()
|
|
if yyct2284 == codecSelferValueTypeMap1234 {
|
|
yyl2284 := r.ReadMapStart()
|
|
if yyl2284 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2284, d)
|
|
}
|
|
} else if yyct2284 == codecSelferValueTypeArray1234 {
|
|
yyl2284 := r.ReadArrayStart()
|
|
if yyl2284 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2284, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *DaemonEndpoint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys2285Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2285Slc
|
|
var yyhl2285 bool = l >= 0
|
|
for yyj2285 := 0; ; yyj2285++ {
|
|
if yyhl2285 {
|
|
if yyj2285 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2285Slc = r.DecodeBytes(yys2285Slc, true, true)
|
|
yys2285 := string(yys2285Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2285 {
|
|
case "Port":
|
|
if r.TryDecodeAsNil() {
|
|
x.Port = 0
|
|
} else {
|
|
x.Port = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2285)
|
|
} // end switch yys2285
|
|
} // end for yyj2285
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *DaemonEndpoint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj2287 int
|
|
var yyb2287 bool
|
|
var yyhl2287 bool = l >= 0
|
|
yyj2287++
|
|
if yyhl2287 {
|
|
yyb2287 = yyj2287 > l
|
|
} else {
|
|
yyb2287 = r.CheckBreak()
|
|
}
|
|
if yyb2287 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Port = 0
|
|
} else {
|
|
x.Port = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
for {
|
|
yyj2287++
|
|
if yyhl2287 {
|
|
yyb2287 = yyj2287 > l
|
|
} else {
|
|
yyb2287 = r.CheckBreak()
|
|
}
|
|
if yyb2287 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2287-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *NodeDaemonEndpoints) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2289 := z.EncBinary()
|
|
_ = yym2289
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2290 := !z.EncBinary()
|
|
yy2arr2290 := z.EncBasicHandle().StructToArray
|
|
var yyq2290 [1]bool
|
|
_, _, _ = yysep2290, yyq2290, yy2arr2290
|
|
const yyr2290 bool = false
|
|
yyq2290[0] = true
|
|
var yynn2290 int
|
|
if yyr2290 || yy2arr2290 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn2290 = 0
|
|
for _, b := range yyq2290 {
|
|
if b {
|
|
yynn2290++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2290)
|
|
yynn2290 = 0
|
|
}
|
|
if yyr2290 || yy2arr2290 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2290[0] {
|
|
yy2292 := &x.KubeletEndpoint
|
|
yy2292.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2290[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kubeletEndpoint"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2293 := &x.KubeletEndpoint
|
|
yy2293.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2290 || yy2arr2290 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *NodeDaemonEndpoints) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym2294 := z.DecBinary()
|
|
_ = yym2294
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2295 := r.ContainerType()
|
|
if yyct2295 == codecSelferValueTypeMap1234 {
|
|
yyl2295 := r.ReadMapStart()
|
|
if yyl2295 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2295, d)
|
|
}
|
|
} else if yyct2295 == codecSelferValueTypeArray1234 {
|
|
yyl2295 := r.ReadArrayStart()
|
|
if yyl2295 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2295, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *NodeDaemonEndpoints) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys2296Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2296Slc
|
|
var yyhl2296 bool = l >= 0
|
|
for yyj2296 := 0; ; yyj2296++ {
|
|
if yyhl2296 {
|
|
if yyj2296 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2296Slc = r.DecodeBytes(yys2296Slc, true, true)
|
|
yys2296 := string(yys2296Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2296 {
|
|
case "kubeletEndpoint":
|
|
if r.TryDecodeAsNil() {
|
|
x.KubeletEndpoint = DaemonEndpoint{}
|
|
} else {
|
|
yyv2297 := &x.KubeletEndpoint
|
|
yyv2297.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2296)
|
|
} // end switch yys2296
|
|
} // end for yyj2296
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *NodeDaemonEndpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj2298 int
|
|
var yyb2298 bool
|
|
var yyhl2298 bool = l >= 0
|
|
yyj2298++
|
|
if yyhl2298 {
|
|
yyb2298 = yyj2298 > l
|
|
} else {
|
|
yyb2298 = r.CheckBreak()
|
|
}
|
|
if yyb2298 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.KubeletEndpoint = DaemonEndpoint{}
|
|
} else {
|
|
yyv2299 := &x.KubeletEndpoint
|
|
yyv2299.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj2298++
|
|
if yyhl2298 {
|
|
yyb2298 = yyj2298 > l
|
|
} else {
|
|
yyb2298 = r.CheckBreak()
|
|
}
|
|
if yyb2298 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2298-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2300 := z.EncBinary()
|
|
_ = yym2300
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2301 := !z.EncBinary()
|
|
yy2arr2301 := z.EncBasicHandle().StructToArray
|
|
var yyq2301 [8]bool
|
|
_, _, _ = yysep2301, yyq2301, yy2arr2301
|
|
const yyr2301 bool = false
|
|
var yynn2301 int
|
|
if yyr2301 || yy2arr2301 {
|
|
r.EncodeArrayStart(8)
|
|
} else {
|
|
yynn2301 = 8
|
|
for _, b := range yyq2301 {
|
|
if b {
|
|
yynn2301++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2301)
|
|
yynn2301 = 0
|
|
}
|
|
if yyr2301 || yy2arr2301 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2303 := z.EncBinary()
|
|
_ = yym2303
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.MachineID))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("machineID"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2304 := z.EncBinary()
|
|
_ = yym2304
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.MachineID))
|
|
}
|
|
}
|
|
if yyr2301 || yy2arr2301 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2306 := z.EncBinary()
|
|
_ = yym2306
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.SystemUUID))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("systemUUID"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2307 := z.EncBinary()
|
|
_ = yym2307
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.SystemUUID))
|
|
}
|
|
}
|
|
if yyr2301 || yy2arr2301 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2309 := z.EncBinary()
|
|
_ = yym2309
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.BootID))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("bootID"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2310 := z.EncBinary()
|
|
_ = yym2310
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.BootID))
|
|
}
|
|
}
|
|
if yyr2301 || yy2arr2301 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2312 := z.EncBinary()
|
|
_ = yym2312
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.KernelVersion))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kernelVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2313 := z.EncBinary()
|
|
_ = yym2313
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.KernelVersion))
|
|
}
|
|
}
|
|
if yyr2301 || yy2arr2301 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2315 := z.EncBinary()
|
|
_ = yym2315
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.OSImage))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("osImage"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2316 := z.EncBinary()
|
|
_ = yym2316
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.OSImage))
|
|
}
|
|
}
|
|
if yyr2301 || yy2arr2301 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2318 := z.EncBinary()
|
|
_ = yym2318
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntimeVersion))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("containerRuntimeVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2319 := z.EncBinary()
|
|
_ = yym2319
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntimeVersion))
|
|
}
|
|
}
|
|
if yyr2301 || yy2arr2301 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2321 := z.EncBinary()
|
|
_ = yym2321
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.KubeletVersion))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kubeletVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2322 := z.EncBinary()
|
|
_ = yym2322
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.KubeletVersion))
|
|
}
|
|
}
|
|
if yyr2301 || yy2arr2301 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2324 := z.EncBinary()
|
|
_ = yym2324
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.KubeProxyVersion))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kubeProxyVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2325 := z.EncBinary()
|
|
_ = yym2325
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.KubeProxyVersion))
|
|
}
|
|
}
|
|
if yyr2301 || yy2arr2301 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *NodeSystemInfo) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym2326 := z.DecBinary()
|
|
_ = yym2326
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2327 := r.ContainerType()
|
|
if yyct2327 == codecSelferValueTypeMap1234 {
|
|
yyl2327 := r.ReadMapStart()
|
|
if yyl2327 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2327, d)
|
|
}
|
|
} else if yyct2327 == codecSelferValueTypeArray1234 {
|
|
yyl2327 := r.ReadArrayStart()
|
|
if yyl2327 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2327, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *NodeSystemInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys2328Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2328Slc
|
|
var yyhl2328 bool = l >= 0
|
|
for yyj2328 := 0; ; yyj2328++ {
|
|
if yyhl2328 {
|
|
if yyj2328 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2328Slc = r.DecodeBytes(yys2328Slc, true, true)
|
|
yys2328 := string(yys2328Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2328 {
|
|
case "machineID":
|
|
if r.TryDecodeAsNil() {
|
|
x.MachineID = ""
|
|
} else {
|
|
x.MachineID = string(r.DecodeString())
|
|
}
|
|
case "systemUUID":
|
|
if r.TryDecodeAsNil() {
|
|
x.SystemUUID = ""
|
|
} else {
|
|
x.SystemUUID = string(r.DecodeString())
|
|
}
|
|
case "bootID":
|
|
if r.TryDecodeAsNil() {
|
|
x.BootID = ""
|
|
} else {
|
|
x.BootID = string(r.DecodeString())
|
|
}
|
|
case "kernelVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.KernelVersion = ""
|
|
} else {
|
|
x.KernelVersion = string(r.DecodeString())
|
|
}
|
|
case "osImage":
|
|
if r.TryDecodeAsNil() {
|
|
x.OSImage = ""
|
|
} else {
|
|
x.OSImage = string(r.DecodeString())
|
|
}
|
|
case "containerRuntimeVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.ContainerRuntimeVersion = ""
|
|
} else {
|
|
x.ContainerRuntimeVersion = string(r.DecodeString())
|
|
}
|
|
case "kubeletVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.KubeletVersion = ""
|
|
} else {
|
|
x.KubeletVersion = string(r.DecodeString())
|
|
}
|
|
case "kubeProxyVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.KubeProxyVersion = ""
|
|
} else {
|
|
x.KubeProxyVersion = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2328)
|
|
} // end switch yys2328
|
|
} // end for yyj2328
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj2337 int
|
|
var yyb2337 bool
|
|
var yyhl2337 bool = l >= 0
|
|
yyj2337++
|
|
if yyhl2337 {
|
|
yyb2337 = yyj2337 > l
|
|
} else {
|
|
yyb2337 = r.CheckBreak()
|
|
}
|
|
if yyb2337 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.MachineID = ""
|
|
} else {
|
|
x.MachineID = string(r.DecodeString())
|
|
}
|
|
yyj2337++
|
|
if yyhl2337 {
|
|
yyb2337 = yyj2337 > l
|
|
} else {
|
|
yyb2337 = r.CheckBreak()
|
|
}
|
|
if yyb2337 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.SystemUUID = ""
|
|
} else {
|
|
x.SystemUUID = string(r.DecodeString())
|
|
}
|
|
yyj2337++
|
|
if yyhl2337 {
|
|
yyb2337 = yyj2337 > l
|
|
} else {
|
|
yyb2337 = r.CheckBreak()
|
|
}
|
|
if yyb2337 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.BootID = ""
|
|
} else {
|
|
x.BootID = string(r.DecodeString())
|
|
}
|
|
yyj2337++
|
|
if yyhl2337 {
|
|
yyb2337 = yyj2337 > l
|
|
} else {
|
|
yyb2337 = r.CheckBreak()
|
|
}
|
|
if yyb2337 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.KernelVersion = ""
|
|
} else {
|
|
x.KernelVersion = string(r.DecodeString())
|
|
}
|
|
yyj2337++
|
|
if yyhl2337 {
|
|
yyb2337 = yyj2337 > l
|
|
} else {
|
|
yyb2337 = r.CheckBreak()
|
|
}
|
|
if yyb2337 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.OSImage = ""
|
|
} else {
|
|
x.OSImage = string(r.DecodeString())
|
|
}
|
|
yyj2337++
|
|
if yyhl2337 {
|
|
yyb2337 = yyj2337 > l
|
|
} else {
|
|
yyb2337 = r.CheckBreak()
|
|
}
|
|
if yyb2337 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ContainerRuntimeVersion = ""
|
|
} else {
|
|
x.ContainerRuntimeVersion = string(r.DecodeString())
|
|
}
|
|
yyj2337++
|
|
if yyhl2337 {
|
|
yyb2337 = yyj2337 > l
|
|
} else {
|
|
yyb2337 = r.CheckBreak()
|
|
}
|
|
if yyb2337 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.KubeletVersion = ""
|
|
} else {
|
|
x.KubeletVersion = string(r.DecodeString())
|
|
}
|
|
yyj2337++
|
|
if yyhl2337 {
|
|
yyb2337 = yyj2337 > l
|
|
} else {
|
|
yyb2337 = r.CheckBreak()
|
|
}
|
|
if yyb2337 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.KubeProxyVersion = ""
|
|
} else {
|
|
x.KubeProxyVersion = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj2337++
|
|
if yyhl2337 {
|
|
yyb2337 = yyj2337 > l
|
|
} else {
|
|
yyb2337 = r.CheckBreak()
|
|
}
|
|
if yyb2337 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2337-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2346 := z.EncBinary()
|
|
_ = yym2346
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2347 := !z.EncBinary()
|
|
yy2arr2347 := z.EncBasicHandle().StructToArray
|
|
var yyq2347 [8]bool
|
|
_, _, _ = yysep2347, yyq2347, yy2arr2347
|
|
const yyr2347 bool = false
|
|
yyq2347[0] = len(x.Capacity) != 0
|
|
yyq2347[1] = len(x.Allocatable) != 0
|
|
yyq2347[2] = x.Phase != ""
|
|
yyq2347[3] = len(x.Conditions) != 0
|
|
yyq2347[4] = len(x.Addresses) != 0
|
|
yyq2347[5] = true
|
|
yyq2347[6] = true
|
|
var yynn2347 int
|
|
if yyr2347 || yy2arr2347 {
|
|
r.EncodeArrayStart(8)
|
|
} else {
|
|
yynn2347 = 1
|
|
for _, b := range yyq2347 {
|
|
if b {
|
|
yynn2347++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2347)
|
|
yynn2347 = 0
|
|
}
|
|
if yyr2347 || yy2arr2347 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2347[0] {
|
|
if x.Capacity == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Capacity.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2347[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("capacity"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Capacity == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Capacity.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr2347 || yy2arr2347 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2347[1] {
|
|
if x.Allocatable == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Allocatable.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2347[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("allocatable"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Allocatable == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Allocatable.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr2347 || yy2arr2347 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2347[2] {
|
|
x.Phase.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2347[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("phase"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Phase.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2347 || yy2arr2347 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2347[3] {
|
|
if x.Conditions == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2352 := z.EncBinary()
|
|
_ = yym2352
|
|
if false {
|
|
} else {
|
|
h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2347[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("conditions"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Conditions == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2353 := z.EncBinary()
|
|
_ = yym2353
|
|
if false {
|
|
} else {
|
|
h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr2347 || yy2arr2347 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2347[4] {
|
|
if x.Addresses == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2355 := z.EncBinary()
|
|
_ = yym2355
|
|
if false {
|
|
} else {
|
|
h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2347[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("addresses"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Addresses == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2356 := z.EncBinary()
|
|
_ = yym2356
|
|
if false {
|
|
} else {
|
|
h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr2347 || yy2arr2347 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2347[5] {
|
|
yy2358 := &x.DaemonEndpoints
|
|
yy2358.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2347[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("daemonEndpoints"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2359 := &x.DaemonEndpoints
|
|
yy2359.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2347 || yy2arr2347 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2347[6] {
|
|
yy2361 := &x.NodeInfo
|
|
yy2361.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2347[6] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("nodeInfo"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2362 := &x.NodeInfo
|
|
yy2362.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2347 || yy2arr2347 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Images == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2364 := z.EncBinary()
|
|
_ = yym2364
|
|
if false {
|
|
} else {
|
|
h.encSliceContainerImage(([]ContainerImage)(x.Images), e)
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("images"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Images == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2365 := z.EncBinary()
|
|
_ = yym2365
|
|
if false {
|
|
} else {
|
|
h.encSliceContainerImage(([]ContainerImage)(x.Images), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr2347 || yy2arr2347 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *NodeStatus) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym2366 := z.DecBinary()
|
|
_ = yym2366
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2367 := r.ContainerType()
|
|
if yyct2367 == codecSelferValueTypeMap1234 {
|
|
yyl2367 := r.ReadMapStart()
|
|
if yyl2367 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2367, d)
|
|
}
|
|
} else if yyct2367 == codecSelferValueTypeArray1234 {
|
|
yyl2367 := r.ReadArrayStart()
|
|
if yyl2367 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2367, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *NodeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys2368Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2368Slc
|
|
var yyhl2368 bool = l >= 0
|
|
for yyj2368 := 0; ; yyj2368++ {
|
|
if yyhl2368 {
|
|
if yyj2368 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2368Slc = r.DecodeBytes(yys2368Slc, true, true)
|
|
yys2368 := string(yys2368Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2368 {
|
|
case "capacity":
|
|
if r.TryDecodeAsNil() {
|
|
x.Capacity = nil
|
|
} else {
|
|
yyv2369 := &x.Capacity
|
|
yyv2369.CodecDecodeSelf(d)
|
|
}
|
|
case "allocatable":
|
|
if r.TryDecodeAsNil() {
|
|
x.Allocatable = nil
|
|
} else {
|
|
yyv2370 := &x.Allocatable
|
|
yyv2370.CodecDecodeSelf(d)
|
|
}
|
|
case "phase":
|
|
if r.TryDecodeAsNil() {
|
|
x.Phase = ""
|
|
} else {
|
|
x.Phase = NodePhase(r.DecodeString())
|
|
}
|
|
case "conditions":
|
|
if r.TryDecodeAsNil() {
|
|
x.Conditions = nil
|
|
} else {
|
|
yyv2372 := &x.Conditions
|
|
yym2373 := z.DecBinary()
|
|
_ = yym2373
|
|
if false {
|
|
} else {
|
|
h.decSliceNodeCondition((*[]NodeCondition)(yyv2372), d)
|
|
}
|
|
}
|
|
case "addresses":
|
|
if r.TryDecodeAsNil() {
|
|
x.Addresses = nil
|
|
} else {
|
|
yyv2374 := &x.Addresses
|
|
yym2375 := z.DecBinary()
|
|
_ = yym2375
|
|
if false {
|
|
} else {
|
|
h.decSliceNodeAddress((*[]NodeAddress)(yyv2374), d)
|
|
}
|
|
}
|
|
case "daemonEndpoints":
|
|
if r.TryDecodeAsNil() {
|
|
x.DaemonEndpoints = NodeDaemonEndpoints{}
|
|
} else {
|
|
yyv2376 := &x.DaemonEndpoints
|
|
yyv2376.CodecDecodeSelf(d)
|
|
}
|
|
case "nodeInfo":
|
|
if r.TryDecodeAsNil() {
|
|
x.NodeInfo = NodeSystemInfo{}
|
|
} else {
|
|
yyv2377 := &x.NodeInfo
|
|
yyv2377.CodecDecodeSelf(d)
|
|
}
|
|
case "images":
|
|
if r.TryDecodeAsNil() {
|
|
x.Images = nil
|
|
} else {
|
|
yyv2378 := &x.Images
|
|
yym2379 := z.DecBinary()
|
|
_ = yym2379
|
|
if false {
|
|
} else {
|
|
h.decSliceContainerImage((*[]ContainerImage)(yyv2378), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2368)
|
|
} // end switch yys2368
|
|
} // end for yyj2368
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj2380 int
|
|
var yyb2380 bool
|
|
var yyhl2380 bool = l >= 0
|
|
yyj2380++
|
|
if yyhl2380 {
|
|
yyb2380 = yyj2380 > l
|
|
} else {
|
|
yyb2380 = r.CheckBreak()
|
|
}
|
|
if yyb2380 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Capacity = nil
|
|
} else {
|
|
yyv2381 := &x.Capacity
|
|
yyv2381.CodecDecodeSelf(d)
|
|
}
|
|
yyj2380++
|
|
if yyhl2380 {
|
|
yyb2380 = yyj2380 > l
|
|
} else {
|
|
yyb2380 = r.CheckBreak()
|
|
}
|
|
if yyb2380 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Allocatable = nil
|
|
} else {
|
|
yyv2382 := &x.Allocatable
|
|
yyv2382.CodecDecodeSelf(d)
|
|
}
|
|
yyj2380++
|
|
if yyhl2380 {
|
|
yyb2380 = yyj2380 > l
|
|
} else {
|
|
yyb2380 = r.CheckBreak()
|
|
}
|
|
if yyb2380 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Phase = ""
|
|
} else {
|
|
x.Phase = NodePhase(r.DecodeString())
|
|
}
|
|
yyj2380++
|
|
if yyhl2380 {
|
|
yyb2380 = yyj2380 > l
|
|
} else {
|
|
yyb2380 = r.CheckBreak()
|
|
}
|
|
if yyb2380 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Conditions = nil
|
|
} else {
|
|
yyv2384 := &x.Conditions
|
|
yym2385 := z.DecBinary()
|
|
_ = yym2385
|
|
if false {
|
|
} else {
|
|
h.decSliceNodeCondition((*[]NodeCondition)(yyv2384), d)
|
|
}
|
|
}
|
|
yyj2380++
|
|
if yyhl2380 {
|
|
yyb2380 = yyj2380 > l
|
|
} else {
|
|
yyb2380 = r.CheckBreak()
|
|
}
|
|
if yyb2380 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Addresses = nil
|
|
} else {
|
|
yyv2386 := &x.Addresses
|
|
yym2387 := z.DecBinary()
|
|
_ = yym2387
|
|
if false {
|
|
} else {
|
|
h.decSliceNodeAddress((*[]NodeAddress)(yyv2386), d)
|
|
}
|
|
}
|
|
yyj2380++
|
|
if yyhl2380 {
|
|
yyb2380 = yyj2380 > l
|
|
} else {
|
|
yyb2380 = r.CheckBreak()
|
|
}
|
|
if yyb2380 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.DaemonEndpoints = NodeDaemonEndpoints{}
|
|
} else {
|
|
yyv2388 := &x.DaemonEndpoints
|
|
yyv2388.CodecDecodeSelf(d)
|
|
}
|
|
yyj2380++
|
|
if yyhl2380 {
|
|
yyb2380 = yyj2380 > l
|
|
} else {
|
|
yyb2380 = r.CheckBreak()
|
|
}
|
|
if yyb2380 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.NodeInfo = NodeSystemInfo{}
|
|
} else {
|
|
yyv2389 := &x.NodeInfo
|
|
yyv2389.CodecDecodeSelf(d)
|
|
}
|
|
yyj2380++
|
|
if yyhl2380 {
|
|
yyb2380 = yyj2380 > l
|
|
} else {
|
|
yyb2380 = r.CheckBreak()
|
|
}
|
|
if yyb2380 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Images = nil
|
|
} else {
|
|
yyv2390 := &x.Images
|
|
yym2391 := z.DecBinary()
|
|
_ = yym2391
|
|
if false {
|
|
} else {
|
|
h.decSliceContainerImage((*[]ContainerImage)(yyv2390), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj2380++
|
|
if yyhl2380 {
|
|
yyb2380 = yyj2380 > l
|
|
} else {
|
|
yyb2380 = r.CheckBreak()
|
|
}
|
|
if yyb2380 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2380-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *ContainerImage) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2392 := z.EncBinary()
|
|
_ = yym2392
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2393 := !z.EncBinary()
|
|
yy2arr2393 := z.EncBasicHandle().StructToArray
|
|
var yyq2393 [2]bool
|
|
_, _, _ = yysep2393, yyq2393, yy2arr2393
|
|
const yyr2393 bool = false
|
|
yyq2393[1] = x.Size != 0
|
|
var yynn2393 int
|
|
if yyr2393 || yy2arr2393 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn2393 = 1
|
|
for _, b := range yyq2393 {
|
|
if b {
|
|
yynn2393++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2393)
|
|
yynn2393 = 0
|
|
}
|
|
if yyr2393 || yy2arr2393 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.RepoTags == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2395 := z.EncBinary()
|
|
_ = yym2395
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.RepoTags, false, e)
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("repoTags"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.RepoTags == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2396 := z.EncBinary()
|
|
_ = yym2396
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.RepoTags, false, e)
|
|
}
|
|
}
|
|
}
|
|
if yyr2393 || yy2arr2393 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2393[1] {
|
|
yym2398 := z.EncBinary()
|
|
_ = yym2398
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Size))
|
|
}
|
|
} else {
|
|
r.EncodeInt(0)
|
|
}
|
|
} else {
|
|
if yyq2393[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("size"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2399 := z.EncBinary()
|
|
_ = yym2399
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Size))
|
|
}
|
|
}
|
|
}
|
|
if yyr2393 || yy2arr2393 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ContainerImage) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym2400 := z.DecBinary()
|
|
_ = yym2400
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2401 := r.ContainerType()
|
|
if yyct2401 == codecSelferValueTypeMap1234 {
|
|
yyl2401 := r.ReadMapStart()
|
|
if yyl2401 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2401, d)
|
|
}
|
|
} else if yyct2401 == codecSelferValueTypeArray1234 {
|
|
yyl2401 := r.ReadArrayStart()
|
|
if yyl2401 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2401, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ContainerImage) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys2402Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2402Slc
|
|
var yyhl2402 bool = l >= 0
|
|
for yyj2402 := 0; ; yyj2402++ {
|
|
if yyhl2402 {
|
|
if yyj2402 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2402Slc = r.DecodeBytes(yys2402Slc, true, true)
|
|
yys2402 := string(yys2402Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2402 {
|
|
case "repoTags":
|
|
if r.TryDecodeAsNil() {
|
|
x.RepoTags = nil
|
|
} else {
|
|
yyv2403 := &x.RepoTags
|
|
yym2404 := z.DecBinary()
|
|
_ = yym2404
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv2403, false, d)
|
|
}
|
|
}
|
|
case "size":
|
|
if r.TryDecodeAsNil() {
|
|
x.Size = 0
|
|
} else {
|
|
x.Size = int64(r.DecodeInt(64))
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2402)
|
|
} // end switch yys2402
|
|
} // end for yyj2402
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *ContainerImage) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj2406 int
|
|
var yyb2406 bool
|
|
var yyhl2406 bool = l >= 0
|
|
yyj2406++
|
|
if yyhl2406 {
|
|
yyb2406 = yyj2406 > l
|
|
} else {
|
|
yyb2406 = r.CheckBreak()
|
|
}
|
|
if yyb2406 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.RepoTags = nil
|
|
} else {
|
|
yyv2407 := &x.RepoTags
|
|
yym2408 := z.DecBinary()
|
|
_ = yym2408
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv2407, false, d)
|
|
}
|
|
}
|
|
yyj2406++
|
|
if yyhl2406 {
|
|
yyb2406 = yyj2406 > l
|
|
} else {
|
|
yyb2406 = r.CheckBreak()
|
|
}
|
|
if yyb2406 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Size = 0
|
|
} else {
|
|
x.Size = int64(r.DecodeInt(64))
|
|
}
|
|
for {
|
|
yyj2406++
|
|
if yyhl2406 {
|
|
yyb2406 = yyj2406 > l
|
|
} else {
|
|
yyb2406 = r.CheckBreak()
|
|
}
|
|
if yyb2406 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2406-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x NodePhase) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym2410 := z.EncBinary()
|
|
_ = yym2410
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x))
|
|
}
|
|
}
|
|
|
|
func (x *NodePhase) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym2411 := z.DecBinary()
|
|
_ = yym2411
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
*((*string)(x)) = r.DecodeString()
|
|
}
|
|
}
|
|
|
|
func (x NodeConditionType) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym2412 := z.EncBinary()
|
|
_ = yym2412
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x))
|
|
}
|
|
}
|
|
|
|
func (x *NodeConditionType) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym2413 := z.DecBinary()
|
|
_ = yym2413
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
*((*string)(x)) = r.DecodeString()
|
|
}
|
|
}
|
|
|
|
func (x *NodeCondition) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2414 := z.EncBinary()
|
|
_ = yym2414
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2415 := !z.EncBinary()
|
|
yy2arr2415 := z.EncBasicHandle().StructToArray
|
|
var yyq2415 [6]bool
|
|
_, _, _ = yysep2415, yyq2415, yy2arr2415
|
|
const yyr2415 bool = false
|
|
yyq2415[2] = true
|
|
yyq2415[3] = true
|
|
yyq2415[4] = x.Reason != ""
|
|
yyq2415[5] = x.Message != ""
|
|
var yynn2415 int
|
|
if yyr2415 || yy2arr2415 {
|
|
r.EncodeArrayStart(6)
|
|
} else {
|
|
yynn2415 = 2
|
|
for _, b := range yyq2415 {
|
|
if b {
|
|
yynn2415++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2415)
|
|
yynn2415 = 0
|
|
}
|
|
if yyr2415 || yy2arr2415 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
x.Type.CodecEncodeSelf(e)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("type"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Type.CodecEncodeSelf(e)
|
|
}
|
|
if yyr2415 || yy2arr2415 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
x.Status.CodecEncodeSelf(e)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("status"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Status.CodecEncodeSelf(e)
|
|
}
|
|
if yyr2415 || yy2arr2415 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2415[2] {
|
|
yy2419 := &x.LastHeartbeatTime
|
|
yym2420 := z.EncBinary()
|
|
_ = yym2420
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy2419) {
|
|
} else if yym2420 {
|
|
z.EncBinaryMarshal(yy2419)
|
|
} else if !yym2420 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy2419)
|
|
} else {
|
|
z.EncFallback(yy2419)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2415[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("lastHeartbeatTime"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2421 := &x.LastHeartbeatTime
|
|
yym2422 := z.EncBinary()
|
|
_ = yym2422
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy2421) {
|
|
} else if yym2422 {
|
|
z.EncBinaryMarshal(yy2421)
|
|
} else if !yym2422 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy2421)
|
|
} else {
|
|
z.EncFallback(yy2421)
|
|
}
|
|
}
|
|
}
|
|
if yyr2415 || yy2arr2415 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2415[3] {
|
|
yy2424 := &x.LastTransitionTime
|
|
yym2425 := z.EncBinary()
|
|
_ = yym2425
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy2424) {
|
|
} else if yym2425 {
|
|
z.EncBinaryMarshal(yy2424)
|
|
} else if !yym2425 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy2424)
|
|
} else {
|
|
z.EncFallback(yy2424)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2415[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2426 := &x.LastTransitionTime
|
|
yym2427 := z.EncBinary()
|
|
_ = yym2427
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy2426) {
|
|
} else if yym2427 {
|
|
z.EncBinaryMarshal(yy2426)
|
|
} else if !yym2427 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy2426)
|
|
} else {
|
|
z.EncFallback(yy2426)
|
|
}
|
|
}
|
|
}
|
|
if yyr2415 || yy2arr2415 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2415[4] {
|
|
yym2429 := z.EncBinary()
|
|
_ = yym2429
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2415[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("reason"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2430 := z.EncBinary()
|
|
_ = yym2430
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
|
|
}
|
|
}
|
|
}
|
|
if yyr2415 || yy2arr2415 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2415[5] {
|
|
yym2432 := z.EncBinary()
|
|
_ = yym2432
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2415[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("message"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2433 := z.EncBinary()
|
|
_ = yym2433
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
}
|
|
}
|
|
if yyr2415 || yy2arr2415 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *NodeCondition) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym2434 := z.DecBinary()
|
|
_ = yym2434
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2435 := r.ContainerType()
|
|
if yyct2435 == codecSelferValueTypeMap1234 {
|
|
yyl2435 := r.ReadMapStart()
|
|
if yyl2435 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2435, d)
|
|
}
|
|
} else if yyct2435 == codecSelferValueTypeArray1234 {
|
|
yyl2435 := r.ReadArrayStart()
|
|
if yyl2435 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2435, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *NodeCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys2436Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2436Slc
|
|
var yyhl2436 bool = l >= 0
|
|
for yyj2436 := 0; ; yyj2436++ {
|
|
if yyhl2436 {
|
|
if yyj2436 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2436Slc = r.DecodeBytes(yys2436Slc, true, true)
|
|
yys2436 := string(yys2436Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2436 {
|
|
case "type":
|
|
if r.TryDecodeAsNil() {
|
|
x.Type = ""
|
|
} else {
|
|
x.Type = NodeConditionType(r.DecodeString())
|
|
}
|
|
case "status":
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = ""
|
|
} else {
|
|
x.Status = ConditionStatus(r.DecodeString())
|
|
}
|
|
case "lastHeartbeatTime":
|
|
if r.TryDecodeAsNil() {
|
|
x.LastHeartbeatTime = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv2439 := &x.LastHeartbeatTime
|
|
yym2440 := z.DecBinary()
|
|
_ = yym2440
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2439) {
|
|
} else if yym2440 {
|
|
z.DecBinaryUnmarshal(yyv2439)
|
|
} else if !yym2440 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv2439)
|
|
} else {
|
|
z.DecFallback(yyv2439, false)
|
|
}
|
|
}
|
|
case "lastTransitionTime":
|
|
if r.TryDecodeAsNil() {
|
|
x.LastTransitionTime = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv2441 := &x.LastTransitionTime
|
|
yym2442 := z.DecBinary()
|
|
_ = yym2442
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2441) {
|
|
} else if yym2442 {
|
|
z.DecBinaryUnmarshal(yyv2441)
|
|
} else if !yym2442 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv2441)
|
|
} else {
|
|
z.DecFallback(yyv2441, false)
|
|
}
|
|
}
|
|
case "reason":
|
|
if r.TryDecodeAsNil() {
|
|
x.Reason = ""
|
|
} else {
|
|
x.Reason = string(r.DecodeString())
|
|
}
|
|
case "message":
|
|
if r.TryDecodeAsNil() {
|
|
x.Message = ""
|
|
} else {
|
|
x.Message = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2436)
|
|
} // end switch yys2436
|
|
} // end for yyj2436
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *NodeCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj2445 int
|
|
var yyb2445 bool
|
|
var yyhl2445 bool = l >= 0
|
|
yyj2445++
|
|
if yyhl2445 {
|
|
yyb2445 = yyj2445 > l
|
|
} else {
|
|
yyb2445 = r.CheckBreak()
|
|
}
|
|
if yyb2445 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Type = ""
|
|
} else {
|
|
x.Type = NodeConditionType(r.DecodeString())
|
|
}
|
|
yyj2445++
|
|
if yyhl2445 {
|
|
yyb2445 = yyj2445 > l
|
|
} else {
|
|
yyb2445 = r.CheckBreak()
|
|
}
|
|
if yyb2445 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = ""
|
|
} else {
|
|
x.Status = ConditionStatus(r.DecodeString())
|
|
}
|
|
yyj2445++
|
|
if yyhl2445 {
|
|
yyb2445 = yyj2445 > l
|
|
} else {
|
|
yyb2445 = r.CheckBreak()
|
|
}
|
|
if yyb2445 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.LastHeartbeatTime = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv2448 := &x.LastHeartbeatTime
|
|
yym2449 := z.DecBinary()
|
|
_ = yym2449
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2448) {
|
|
} else if yym2449 {
|
|
z.DecBinaryUnmarshal(yyv2448)
|
|
} else if !yym2449 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv2448)
|
|
} else {
|
|
z.DecFallback(yyv2448, false)
|
|
}
|
|
}
|
|
yyj2445++
|
|
if yyhl2445 {
|
|
yyb2445 = yyj2445 > l
|
|
} else {
|
|
yyb2445 = r.CheckBreak()
|
|
}
|
|
if yyb2445 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.LastTransitionTime = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv2450 := &x.LastTransitionTime
|
|
yym2451 := z.DecBinary()
|
|
_ = yym2451
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2450) {
|
|
} else if yym2451 {
|
|
z.DecBinaryUnmarshal(yyv2450)
|
|
} else if !yym2451 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv2450)
|
|
} else {
|
|
z.DecFallback(yyv2450, false)
|
|
}
|
|
}
|
|
yyj2445++
|
|
if yyhl2445 {
|
|
yyb2445 = yyj2445 > l
|
|
} else {
|
|
yyb2445 = r.CheckBreak()
|
|
}
|
|
if yyb2445 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Reason = ""
|
|
} else {
|
|
x.Reason = string(r.DecodeString())
|
|
}
|
|
yyj2445++
|
|
if yyhl2445 {
|
|
yyb2445 = yyj2445 > l
|
|
} else {
|
|
yyb2445 = r.CheckBreak()
|
|
}
|
|
if yyb2445 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Message = ""
|
|
} else {
|
|
x.Message = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj2445++
|
|
if yyhl2445 {
|
|
yyb2445 = yyj2445 > l
|
|
} else {
|
|
yyb2445 = r.CheckBreak()
|
|
}
|
|
if yyb2445 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2445-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x NodeAddressType) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym2454 := z.EncBinary()
|
|
_ = yym2454
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x))
|
|
}
|
|
}
|
|
|
|
func (x *NodeAddressType) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym2455 := z.DecBinary()
|
|
_ = yym2455
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
*((*string)(x)) = r.DecodeString()
|
|
}
|
|
}
|
|
|
|
func (x *NodeAddress) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2456 := z.EncBinary()
|
|
_ = yym2456
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2457 := !z.EncBinary()
|
|
yy2arr2457 := z.EncBasicHandle().StructToArray
|
|
var yyq2457 [2]bool
|
|
_, _, _ = yysep2457, yyq2457, yy2arr2457
|
|
const yyr2457 bool = false
|
|
var yynn2457 int
|
|
if yyr2457 || yy2arr2457 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn2457 = 2
|
|
for _, b := range yyq2457 {
|
|
if b {
|
|
yynn2457++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2457)
|
|
yynn2457 = 0
|
|
}
|
|
if yyr2457 || yy2arr2457 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
x.Type.CodecEncodeSelf(e)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("type"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Type.CodecEncodeSelf(e)
|
|
}
|
|
if yyr2457 || yy2arr2457 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2460 := z.EncBinary()
|
|
_ = yym2460
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Address))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("address"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2461 := z.EncBinary()
|
|
_ = yym2461
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Address))
|
|
}
|
|
}
|
|
if yyr2457 || yy2arr2457 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *NodeAddress) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym2462 := z.DecBinary()
|
|
_ = yym2462
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2463 := r.ContainerType()
|
|
if yyct2463 == codecSelferValueTypeMap1234 {
|
|
yyl2463 := r.ReadMapStart()
|
|
if yyl2463 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2463, d)
|
|
}
|
|
} else if yyct2463 == codecSelferValueTypeArray1234 {
|
|
yyl2463 := r.ReadArrayStart()
|
|
if yyl2463 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2463, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *NodeAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys2464Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2464Slc
|
|
var yyhl2464 bool = l >= 0
|
|
for yyj2464 := 0; ; yyj2464++ {
|
|
if yyhl2464 {
|
|
if yyj2464 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2464Slc = r.DecodeBytes(yys2464Slc, true, true)
|
|
yys2464 := string(yys2464Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2464 {
|
|
case "type":
|
|
if r.TryDecodeAsNil() {
|
|
x.Type = ""
|
|
} else {
|
|
x.Type = NodeAddressType(r.DecodeString())
|
|
}
|
|
case "address":
|
|
if r.TryDecodeAsNil() {
|
|
x.Address = ""
|
|
} else {
|
|
x.Address = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2464)
|
|
} // end switch yys2464
|
|
} // end for yyj2464
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *NodeAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj2467 int
|
|
var yyb2467 bool
|
|
var yyhl2467 bool = l >= 0
|
|
yyj2467++
|
|
if yyhl2467 {
|
|
yyb2467 = yyj2467 > l
|
|
} else {
|
|
yyb2467 = r.CheckBreak()
|
|
}
|
|
if yyb2467 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Type = ""
|
|
} else {
|
|
x.Type = NodeAddressType(r.DecodeString())
|
|
}
|
|
yyj2467++
|
|
if yyhl2467 {
|
|
yyb2467 = yyj2467 > l
|
|
} else {
|
|
yyb2467 = r.CheckBreak()
|
|
}
|
|
if yyb2467 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Address = ""
|
|
} else {
|
|
x.Address = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj2467++
|
|
if yyhl2467 {
|
|
yyb2467 = yyj2467 > l
|
|
} else {
|
|
yyb2467 = r.CheckBreak()
|
|
}
|
|
if yyb2467 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2467-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *NodeResources) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2470 := z.EncBinary()
|
|
_ = yym2470
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2471 := !z.EncBinary()
|
|
yy2arr2471 := z.EncBasicHandle().StructToArray
|
|
var yyq2471 [1]bool
|
|
_, _, _ = yysep2471, yyq2471, yy2arr2471
|
|
const yyr2471 bool = false
|
|
yyq2471[0] = len(x.Capacity) != 0
|
|
var yynn2471 int
|
|
if yyr2471 || yy2arr2471 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn2471 = 0
|
|
for _, b := range yyq2471 {
|
|
if b {
|
|
yynn2471++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2471)
|
|
yynn2471 = 0
|
|
}
|
|
if yyr2471 || yy2arr2471 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2471[0] {
|
|
if x.Capacity == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Capacity.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2471[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("capacity"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Capacity == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Capacity.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr2471 || yy2arr2471 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *NodeResources) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym2473 := z.DecBinary()
|
|
_ = yym2473
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2474 := r.ContainerType()
|
|
if yyct2474 == codecSelferValueTypeMap1234 {
|
|
yyl2474 := r.ReadMapStart()
|
|
if yyl2474 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2474, d)
|
|
}
|
|
} else if yyct2474 == codecSelferValueTypeArray1234 {
|
|
yyl2474 := r.ReadArrayStart()
|
|
if yyl2474 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2474, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *NodeResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys2475Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2475Slc
|
|
var yyhl2475 bool = l >= 0
|
|
for yyj2475 := 0; ; yyj2475++ {
|
|
if yyhl2475 {
|
|
if yyj2475 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2475Slc = r.DecodeBytes(yys2475Slc, true, true)
|
|
yys2475 := string(yys2475Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2475 {
|
|
case "capacity":
|
|
if r.TryDecodeAsNil() {
|
|
x.Capacity = nil
|
|
} else {
|
|
yyv2476 := &x.Capacity
|
|
yyv2476.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2475)
|
|
} // end switch yys2475
|
|
} // end for yyj2475
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *NodeResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj2477 int
|
|
var yyb2477 bool
|
|
var yyhl2477 bool = l >= 0
|
|
yyj2477++
|
|
if yyhl2477 {
|
|
yyb2477 = yyj2477 > l
|
|
} else {
|
|
yyb2477 = r.CheckBreak()
|
|
}
|
|
if yyb2477 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Capacity = nil
|
|
} else {
|
|
yyv2478 := &x.Capacity
|
|
yyv2478.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj2477++
|
|
if yyhl2477 {
|
|
yyb2477 = yyj2477 > l
|
|
} else {
|
|
yyb2477 = r.CheckBreak()
|
|
}
|
|
if yyb2477 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2477-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x ResourceName) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym2479 := z.EncBinary()
|
|
_ = yym2479
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x))
|
|
}
|
|
}
|
|
|
|
func (x *ResourceName) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym2480 := z.DecBinary()
|
|
_ = yym2480
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
*((*string)(x)) = r.DecodeString()
|
|
}
|
|
}
|
|
|
|
func (x ResourceList) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2481 := z.EncBinary()
|
|
_ = yym2481
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
h.encResourceList((ResourceList)(x), e)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ResourceList) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym2482 := z.DecBinary()
|
|
_ = yym2482
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
h.decResourceList((*ResourceList)(x), d)
|
|
}
|
|
}
|
|
|
|
func (x *Node) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2483 := z.EncBinary()
|
|
_ = yym2483
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2484 := !z.EncBinary()
|
|
yy2arr2484 := z.EncBasicHandle().StructToArray
|
|
var yyq2484 [5]bool
|
|
_, _, _ = yysep2484, yyq2484, yy2arr2484
|
|
const yyr2484 bool = false
|
|
yyq2484[0] = x.Kind != ""
|
|
yyq2484[1] = x.APIVersion != ""
|
|
yyq2484[2] = true
|
|
yyq2484[3] = true
|
|
yyq2484[4] = true
|
|
var yynn2484 int
|
|
if yyr2484 || yy2arr2484 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn2484 = 0
|
|
for _, b := range yyq2484 {
|
|
if b {
|
|
yynn2484++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2484)
|
|
yynn2484 = 0
|
|
}
|
|
if yyr2484 || yy2arr2484 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2484[0] {
|
|
yym2486 := z.EncBinary()
|
|
_ = yym2486
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2484[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2487 := z.EncBinary()
|
|
_ = yym2487
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2484 || yy2arr2484 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2484[1] {
|
|
yym2489 := z.EncBinary()
|
|
_ = yym2489
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2484[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2490 := z.EncBinary()
|
|
_ = yym2490
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2484 || yy2arr2484 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2484[2] {
|
|
yy2492 := &x.ObjectMeta
|
|
yy2492.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2484[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2493 := &x.ObjectMeta
|
|
yy2493.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2484 || yy2arr2484 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2484[3] {
|
|
yy2495 := &x.Spec
|
|
yy2495.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2484[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("spec"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2496 := &x.Spec
|
|
yy2496.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2484 || yy2arr2484 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2484[4] {
|
|
yy2498 := &x.Status
|
|
yy2498.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2484[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("status"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2499 := &x.Status
|
|
yy2499.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2484 || yy2arr2484 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *Node) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym2500 := z.DecBinary()
|
|
_ = yym2500
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2501 := r.ContainerType()
|
|
if yyct2501 == codecSelferValueTypeMap1234 {
|
|
yyl2501 := r.ReadMapStart()
|
|
if yyl2501 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2501, d)
|
|
}
|
|
} else if yyct2501 == codecSelferValueTypeArray1234 {
|
|
yyl2501 := r.ReadArrayStart()
|
|
if yyl2501 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2501, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *Node) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys2502Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2502Slc
|
|
var yyhl2502 bool = l >= 0
|
|
for yyj2502 := 0; ; yyj2502++ {
|
|
if yyhl2502 {
|
|
if yyj2502 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2502Slc = r.DecodeBytes(yys2502Slc, true, true)
|
|
yys2502 := string(yys2502Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2502 {
|
|
case "kind":
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
case "apiVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
case "metadata":
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv2505 := &x.ObjectMeta
|
|
yyv2505.CodecDecodeSelf(d)
|
|
}
|
|
case "spec":
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = NodeSpec{}
|
|
} else {
|
|
yyv2506 := &x.Spec
|
|
yyv2506.CodecDecodeSelf(d)
|
|
}
|
|
case "status":
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = NodeStatus{}
|
|
} else {
|
|
yyv2507 := &x.Status
|
|
yyv2507.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2502)
|
|
} // end switch yys2502
|
|
} // end for yyj2502
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *Node) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj2508 int
|
|
var yyb2508 bool
|
|
var yyhl2508 bool = l >= 0
|
|
yyj2508++
|
|
if yyhl2508 {
|
|
yyb2508 = yyj2508 > l
|
|
} else {
|
|
yyb2508 = r.CheckBreak()
|
|
}
|
|
if yyb2508 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2508++
|
|
if yyhl2508 {
|
|
yyb2508 = yyj2508 > l
|
|
} else {
|
|
yyb2508 = r.CheckBreak()
|
|
}
|
|
if yyb2508 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2508++
|
|
if yyhl2508 {
|
|
yyb2508 = yyj2508 > l
|
|
} else {
|
|
yyb2508 = r.CheckBreak()
|
|
}
|
|
if yyb2508 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv2511 := &x.ObjectMeta
|
|
yyv2511.CodecDecodeSelf(d)
|
|
}
|
|
yyj2508++
|
|
if yyhl2508 {
|
|
yyb2508 = yyj2508 > l
|
|
} else {
|
|
yyb2508 = r.CheckBreak()
|
|
}
|
|
if yyb2508 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = NodeSpec{}
|
|
} else {
|
|
yyv2512 := &x.Spec
|
|
yyv2512.CodecDecodeSelf(d)
|
|
}
|
|
yyj2508++
|
|
if yyhl2508 {
|
|
yyb2508 = yyj2508 > l
|
|
} else {
|
|
yyb2508 = r.CheckBreak()
|
|
}
|
|
if yyb2508 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = NodeStatus{}
|
|
} else {
|
|
yyv2513 := &x.Status
|
|
yyv2513.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj2508++
|
|
if yyhl2508 {
|
|
yyb2508 = yyj2508 > l
|
|
} else {
|
|
yyb2508 = r.CheckBreak()
|
|
}
|
|
if yyb2508 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2508-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *NodeList) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2514 := z.EncBinary()
|
|
_ = yym2514
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2515 := !z.EncBinary()
|
|
yy2arr2515 := z.EncBasicHandle().StructToArray
|
|
var yyq2515 [4]bool
|
|
_, _, _ = yysep2515, yyq2515, yy2arr2515
|
|
const yyr2515 bool = false
|
|
yyq2515[0] = x.Kind != ""
|
|
yyq2515[1] = x.APIVersion != ""
|
|
yyq2515[2] = true
|
|
var yynn2515 int
|
|
if yyr2515 || yy2arr2515 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn2515 = 1
|
|
for _, b := range yyq2515 {
|
|
if b {
|
|
yynn2515++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2515)
|
|
yynn2515 = 0
|
|
}
|
|
if yyr2515 || yy2arr2515 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2515[0] {
|
|
yym2517 := z.EncBinary()
|
|
_ = yym2517
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2515[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2518 := z.EncBinary()
|
|
_ = yym2518
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2515 || yy2arr2515 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2515[1] {
|
|
yym2520 := z.EncBinary()
|
|
_ = yym2520
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2515[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2521 := z.EncBinary()
|
|
_ = yym2521
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2515 || yy2arr2515 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2515[2] {
|
|
yy2523 := &x.ListMeta
|
|
yym2524 := z.EncBinary()
|
|
_ = yym2524
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy2523) {
|
|
} else {
|
|
z.EncFallback(yy2523)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2515[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2525 := &x.ListMeta
|
|
yym2526 := z.EncBinary()
|
|
_ = yym2526
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy2525) {
|
|
} else {
|
|
z.EncFallback(yy2525)
|
|
}
|
|
}
|
|
}
|
|
if yyr2515 || yy2arr2515 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2528 := z.EncBinary()
|
|
_ = yym2528
|
|
if false {
|
|
} else {
|
|
h.encSliceNode(([]Node)(x.Items), e)
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("items"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2529 := z.EncBinary()
|
|
_ = yym2529
|
|
if false {
|
|
} else {
|
|
h.encSliceNode(([]Node)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr2515 || yy2arr2515 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *NodeList) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym2530 := z.DecBinary()
|
|
_ = yym2530
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2531 := r.ContainerType()
|
|
if yyct2531 == codecSelferValueTypeMap1234 {
|
|
yyl2531 := r.ReadMapStart()
|
|
if yyl2531 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2531, d)
|
|
}
|
|
} else if yyct2531 == codecSelferValueTypeArray1234 {
|
|
yyl2531 := r.ReadArrayStart()
|
|
if yyl2531 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2531, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *NodeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys2532Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2532Slc
|
|
var yyhl2532 bool = l >= 0
|
|
for yyj2532 := 0; ; yyj2532++ {
|
|
if yyhl2532 {
|
|
if yyj2532 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2532Slc = r.DecodeBytes(yys2532Slc, true, true)
|
|
yys2532 := string(yys2532Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2532 {
|
|
case "kind":
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
case "apiVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
case "metadata":
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv2535 := &x.ListMeta
|
|
yym2536 := z.DecBinary()
|
|
_ = yym2536
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2535) {
|
|
} else {
|
|
z.DecFallback(yyv2535, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv2537 := &x.Items
|
|
yym2538 := z.DecBinary()
|
|
_ = yym2538
|
|
if false {
|
|
} else {
|
|
h.decSliceNode((*[]Node)(yyv2537), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2532)
|
|
} // end switch yys2532
|
|
} // end for yyj2532
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *NodeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj2539 int
|
|
var yyb2539 bool
|
|
var yyhl2539 bool = l >= 0
|
|
yyj2539++
|
|
if yyhl2539 {
|
|
yyb2539 = yyj2539 > l
|
|
} else {
|
|
yyb2539 = r.CheckBreak()
|
|
}
|
|
if yyb2539 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2539++
|
|
if yyhl2539 {
|
|
yyb2539 = yyj2539 > l
|
|
} else {
|
|
yyb2539 = r.CheckBreak()
|
|
}
|
|
if yyb2539 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2539++
|
|
if yyhl2539 {
|
|
yyb2539 = yyj2539 > l
|
|
} else {
|
|
yyb2539 = r.CheckBreak()
|
|
}
|
|
if yyb2539 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv2542 := &x.ListMeta
|
|
yym2543 := z.DecBinary()
|
|
_ = yym2543
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2542) {
|
|
} else {
|
|
z.DecFallback(yyv2542, false)
|
|
}
|
|
}
|
|
yyj2539++
|
|
if yyhl2539 {
|
|
yyb2539 = yyj2539 > l
|
|
} else {
|
|
yyb2539 = r.CheckBreak()
|
|
}
|
|
if yyb2539 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv2544 := &x.Items
|
|
yym2545 := z.DecBinary()
|
|
_ = yym2545
|
|
if false {
|
|
} else {
|
|
h.decSliceNode((*[]Node)(yyv2544), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj2539++
|
|
if yyhl2539 {
|
|
yyb2539 = yyj2539 > l
|
|
} else {
|
|
yyb2539 = r.CheckBreak()
|
|
}
|
|
if yyb2539 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2539-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *NamespaceSpec) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2546 := z.EncBinary()
|
|
_ = yym2546
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2547 := !z.EncBinary()
|
|
yy2arr2547 := z.EncBasicHandle().StructToArray
|
|
var yyq2547 [1]bool
|
|
_, _, _ = yysep2547, yyq2547, yy2arr2547
|
|
const yyr2547 bool = false
|
|
var yynn2547 int
|
|
if yyr2547 || yy2arr2547 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn2547 = 1
|
|
for _, b := range yyq2547 {
|
|
if b {
|
|
yynn2547++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2547)
|
|
yynn2547 = 0
|
|
}
|
|
if yyr2547 || yy2arr2547 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Finalizers == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2549 := z.EncBinary()
|
|
_ = yym2549
|
|
if false {
|
|
} else {
|
|
h.encSliceFinalizerName(([]FinalizerName)(x.Finalizers), e)
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("Finalizers"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Finalizers == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2550 := z.EncBinary()
|
|
_ = yym2550
|
|
if false {
|
|
} else {
|
|
h.encSliceFinalizerName(([]FinalizerName)(x.Finalizers), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr2547 || yy2arr2547 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *NamespaceSpec) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym2551 := z.DecBinary()
|
|
_ = yym2551
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2552 := r.ContainerType()
|
|
if yyct2552 == codecSelferValueTypeMap1234 {
|
|
yyl2552 := r.ReadMapStart()
|
|
if yyl2552 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2552, d)
|
|
}
|
|
} else if yyct2552 == codecSelferValueTypeArray1234 {
|
|
yyl2552 := r.ReadArrayStart()
|
|
if yyl2552 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2552, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *NamespaceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys2553Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2553Slc
|
|
var yyhl2553 bool = l >= 0
|
|
for yyj2553 := 0; ; yyj2553++ {
|
|
if yyhl2553 {
|
|
if yyj2553 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2553Slc = r.DecodeBytes(yys2553Slc, true, true)
|
|
yys2553 := string(yys2553Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2553 {
|
|
case "Finalizers":
|
|
if r.TryDecodeAsNil() {
|
|
x.Finalizers = nil
|
|
} else {
|
|
yyv2554 := &x.Finalizers
|
|
yym2555 := z.DecBinary()
|
|
_ = yym2555
|
|
if false {
|
|
} else {
|
|
h.decSliceFinalizerName((*[]FinalizerName)(yyv2554), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2553)
|
|
} // end switch yys2553
|
|
} // end for yyj2553
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *NamespaceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj2556 int
|
|
var yyb2556 bool
|
|
var yyhl2556 bool = l >= 0
|
|
yyj2556++
|
|
if yyhl2556 {
|
|
yyb2556 = yyj2556 > l
|
|
} else {
|
|
yyb2556 = r.CheckBreak()
|
|
}
|
|
if yyb2556 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Finalizers = nil
|
|
} else {
|
|
yyv2557 := &x.Finalizers
|
|
yym2558 := z.DecBinary()
|
|
_ = yym2558
|
|
if false {
|
|
} else {
|
|
h.decSliceFinalizerName((*[]FinalizerName)(yyv2557), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj2556++
|
|
if yyhl2556 {
|
|
yyb2556 = yyj2556 > l
|
|
} else {
|
|
yyb2556 = r.CheckBreak()
|
|
}
|
|
if yyb2556 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2556-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x FinalizerName) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym2559 := z.EncBinary()
|
|
_ = yym2559
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x))
|
|
}
|
|
}
|
|
|
|
func (x *FinalizerName) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym2560 := z.DecBinary()
|
|
_ = yym2560
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
*((*string)(x)) = r.DecodeString()
|
|
}
|
|
}
|
|
|
|
func (x *NamespaceStatus) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2561 := z.EncBinary()
|
|
_ = yym2561
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2562 := !z.EncBinary()
|
|
yy2arr2562 := z.EncBasicHandle().StructToArray
|
|
var yyq2562 [1]bool
|
|
_, _, _ = yysep2562, yyq2562, yy2arr2562
|
|
const yyr2562 bool = false
|
|
yyq2562[0] = x.Phase != ""
|
|
var yynn2562 int
|
|
if yyr2562 || yy2arr2562 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn2562 = 0
|
|
for _, b := range yyq2562 {
|
|
if b {
|
|
yynn2562++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2562)
|
|
yynn2562 = 0
|
|
}
|
|
if yyr2562 || yy2arr2562 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2562[0] {
|
|
x.Phase.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2562[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("phase"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Phase.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2562 || yy2arr2562 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *NamespaceStatus) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym2564 := z.DecBinary()
|
|
_ = yym2564
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2565 := r.ContainerType()
|
|
if yyct2565 == codecSelferValueTypeMap1234 {
|
|
yyl2565 := r.ReadMapStart()
|
|
if yyl2565 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2565, d)
|
|
}
|
|
} else if yyct2565 == codecSelferValueTypeArray1234 {
|
|
yyl2565 := r.ReadArrayStart()
|
|
if yyl2565 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2565, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *NamespaceStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys2566Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2566Slc
|
|
var yyhl2566 bool = l >= 0
|
|
for yyj2566 := 0; ; yyj2566++ {
|
|
if yyhl2566 {
|
|
if yyj2566 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2566Slc = r.DecodeBytes(yys2566Slc, true, true)
|
|
yys2566 := string(yys2566Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2566 {
|
|
case "phase":
|
|
if r.TryDecodeAsNil() {
|
|
x.Phase = ""
|
|
} else {
|
|
x.Phase = NamespacePhase(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2566)
|
|
} // end switch yys2566
|
|
} // end for yyj2566
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *NamespaceStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj2568 int
|
|
var yyb2568 bool
|
|
var yyhl2568 bool = l >= 0
|
|
yyj2568++
|
|
if yyhl2568 {
|
|
yyb2568 = yyj2568 > l
|
|
} else {
|
|
yyb2568 = r.CheckBreak()
|
|
}
|
|
if yyb2568 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Phase = ""
|
|
} else {
|
|
x.Phase = NamespacePhase(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj2568++
|
|
if yyhl2568 {
|
|
yyb2568 = yyj2568 > l
|
|
} else {
|
|
yyb2568 = r.CheckBreak()
|
|
}
|
|
if yyb2568 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2568-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x NamespacePhase) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym2570 := z.EncBinary()
|
|
_ = yym2570
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x))
|
|
}
|
|
}
|
|
|
|
func (x *NamespacePhase) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym2571 := z.DecBinary()
|
|
_ = yym2571
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
*((*string)(x)) = r.DecodeString()
|
|
}
|
|
}
|
|
|
|
func (x *Namespace) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2572 := z.EncBinary()
|
|
_ = yym2572
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2573 := !z.EncBinary()
|
|
yy2arr2573 := z.EncBasicHandle().StructToArray
|
|
var yyq2573 [5]bool
|
|
_, _, _ = yysep2573, yyq2573, yy2arr2573
|
|
const yyr2573 bool = false
|
|
yyq2573[0] = x.Kind != ""
|
|
yyq2573[1] = x.APIVersion != ""
|
|
yyq2573[2] = true
|
|
yyq2573[3] = true
|
|
yyq2573[4] = true
|
|
var yynn2573 int
|
|
if yyr2573 || yy2arr2573 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn2573 = 0
|
|
for _, b := range yyq2573 {
|
|
if b {
|
|
yynn2573++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2573)
|
|
yynn2573 = 0
|
|
}
|
|
if yyr2573 || yy2arr2573 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2573[0] {
|
|
yym2575 := z.EncBinary()
|
|
_ = yym2575
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2573[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2576 := z.EncBinary()
|
|
_ = yym2576
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2573 || yy2arr2573 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2573[1] {
|
|
yym2578 := z.EncBinary()
|
|
_ = yym2578
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2573[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2579 := z.EncBinary()
|
|
_ = yym2579
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2573 || yy2arr2573 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2573[2] {
|
|
yy2581 := &x.ObjectMeta
|
|
yy2581.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2573[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2582 := &x.ObjectMeta
|
|
yy2582.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2573 || yy2arr2573 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2573[3] {
|
|
yy2584 := &x.Spec
|
|
yy2584.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2573[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("spec"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2585 := &x.Spec
|
|
yy2585.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2573 || yy2arr2573 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2573[4] {
|
|
yy2587 := &x.Status
|
|
yy2587.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2573[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("status"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2588 := &x.Status
|
|
yy2588.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2573 || yy2arr2573 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *Namespace) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym2589 := z.DecBinary()
|
|
_ = yym2589
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2590 := r.ContainerType()
|
|
if yyct2590 == codecSelferValueTypeMap1234 {
|
|
yyl2590 := r.ReadMapStart()
|
|
if yyl2590 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2590, d)
|
|
}
|
|
} else if yyct2590 == codecSelferValueTypeArray1234 {
|
|
yyl2590 := r.ReadArrayStart()
|
|
if yyl2590 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2590, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *Namespace) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys2591Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2591Slc
|
|
var yyhl2591 bool = l >= 0
|
|
for yyj2591 := 0; ; yyj2591++ {
|
|
if yyhl2591 {
|
|
if yyj2591 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2591Slc = r.DecodeBytes(yys2591Slc, true, true)
|
|
yys2591 := string(yys2591Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2591 {
|
|
case "kind":
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
case "apiVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
case "metadata":
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv2594 := &x.ObjectMeta
|
|
yyv2594.CodecDecodeSelf(d)
|
|
}
|
|
case "spec":
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = NamespaceSpec{}
|
|
} else {
|
|
yyv2595 := &x.Spec
|
|
yyv2595.CodecDecodeSelf(d)
|
|
}
|
|
case "status":
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = NamespaceStatus{}
|
|
} else {
|
|
yyv2596 := &x.Status
|
|
yyv2596.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2591)
|
|
} // end switch yys2591
|
|
} // end for yyj2591
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *Namespace) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj2597 int
|
|
var yyb2597 bool
|
|
var yyhl2597 bool = l >= 0
|
|
yyj2597++
|
|
if yyhl2597 {
|
|
yyb2597 = yyj2597 > l
|
|
} else {
|
|
yyb2597 = r.CheckBreak()
|
|
}
|
|
if yyb2597 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2597++
|
|
if yyhl2597 {
|
|
yyb2597 = yyj2597 > l
|
|
} else {
|
|
yyb2597 = r.CheckBreak()
|
|
}
|
|
if yyb2597 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2597++
|
|
if yyhl2597 {
|
|
yyb2597 = yyj2597 > l
|
|
} else {
|
|
yyb2597 = r.CheckBreak()
|
|
}
|
|
if yyb2597 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv2600 := &x.ObjectMeta
|
|
yyv2600.CodecDecodeSelf(d)
|
|
}
|
|
yyj2597++
|
|
if yyhl2597 {
|
|
yyb2597 = yyj2597 > l
|
|
} else {
|
|
yyb2597 = r.CheckBreak()
|
|
}
|
|
if yyb2597 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = NamespaceSpec{}
|
|
} else {
|
|
yyv2601 := &x.Spec
|
|
yyv2601.CodecDecodeSelf(d)
|
|
}
|
|
yyj2597++
|
|
if yyhl2597 {
|
|
yyb2597 = yyj2597 > l
|
|
} else {
|
|
yyb2597 = r.CheckBreak()
|
|
}
|
|
if yyb2597 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = NamespaceStatus{}
|
|
} else {
|
|
yyv2602 := &x.Status
|
|
yyv2602.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj2597++
|
|
if yyhl2597 {
|
|
yyb2597 = yyj2597 > l
|
|
} else {
|
|
yyb2597 = r.CheckBreak()
|
|
}
|
|
if yyb2597 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2597-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *NamespaceList) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2603 := z.EncBinary()
|
|
_ = yym2603
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2604 := !z.EncBinary()
|
|
yy2arr2604 := z.EncBasicHandle().StructToArray
|
|
var yyq2604 [4]bool
|
|
_, _, _ = yysep2604, yyq2604, yy2arr2604
|
|
const yyr2604 bool = false
|
|
yyq2604[0] = x.Kind != ""
|
|
yyq2604[1] = x.APIVersion != ""
|
|
yyq2604[2] = true
|
|
var yynn2604 int
|
|
if yyr2604 || yy2arr2604 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn2604 = 1
|
|
for _, b := range yyq2604 {
|
|
if b {
|
|
yynn2604++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2604)
|
|
yynn2604 = 0
|
|
}
|
|
if yyr2604 || yy2arr2604 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2604[0] {
|
|
yym2606 := z.EncBinary()
|
|
_ = yym2606
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2604[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2607 := z.EncBinary()
|
|
_ = yym2607
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2604 || yy2arr2604 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2604[1] {
|
|
yym2609 := z.EncBinary()
|
|
_ = yym2609
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2604[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2610 := z.EncBinary()
|
|
_ = yym2610
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2604 || yy2arr2604 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2604[2] {
|
|
yy2612 := &x.ListMeta
|
|
yym2613 := z.EncBinary()
|
|
_ = yym2613
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy2612) {
|
|
} else {
|
|
z.EncFallback(yy2612)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2604[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2614 := &x.ListMeta
|
|
yym2615 := z.EncBinary()
|
|
_ = yym2615
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy2614) {
|
|
} else {
|
|
z.EncFallback(yy2614)
|
|
}
|
|
}
|
|
}
|
|
if yyr2604 || yy2arr2604 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2617 := z.EncBinary()
|
|
_ = yym2617
|
|
if false {
|
|
} else {
|
|
h.encSliceNamespace(([]Namespace)(x.Items), e)
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("items"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2618 := z.EncBinary()
|
|
_ = yym2618
|
|
if false {
|
|
} else {
|
|
h.encSliceNamespace(([]Namespace)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr2604 || yy2arr2604 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *NamespaceList) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym2619 := z.DecBinary()
|
|
_ = yym2619
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2620 := r.ContainerType()
|
|
if yyct2620 == codecSelferValueTypeMap1234 {
|
|
yyl2620 := r.ReadMapStart()
|
|
if yyl2620 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2620, d)
|
|
}
|
|
} else if yyct2620 == codecSelferValueTypeArray1234 {
|
|
yyl2620 := r.ReadArrayStart()
|
|
if yyl2620 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2620, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *NamespaceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys2621Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2621Slc
|
|
var yyhl2621 bool = l >= 0
|
|
for yyj2621 := 0; ; yyj2621++ {
|
|
if yyhl2621 {
|
|
if yyj2621 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2621Slc = r.DecodeBytes(yys2621Slc, true, true)
|
|
yys2621 := string(yys2621Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2621 {
|
|
case "kind":
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
case "apiVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
case "metadata":
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv2624 := &x.ListMeta
|
|
yym2625 := z.DecBinary()
|
|
_ = yym2625
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2624) {
|
|
} else {
|
|
z.DecFallback(yyv2624, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv2626 := &x.Items
|
|
yym2627 := z.DecBinary()
|
|
_ = yym2627
|
|
if false {
|
|
} else {
|
|
h.decSliceNamespace((*[]Namespace)(yyv2626), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2621)
|
|
} // end switch yys2621
|
|
} // end for yyj2621
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *NamespaceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj2628 int
|
|
var yyb2628 bool
|
|
var yyhl2628 bool = l >= 0
|
|
yyj2628++
|
|
if yyhl2628 {
|
|
yyb2628 = yyj2628 > l
|
|
} else {
|
|
yyb2628 = r.CheckBreak()
|
|
}
|
|
if yyb2628 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2628++
|
|
if yyhl2628 {
|
|
yyb2628 = yyj2628 > l
|
|
} else {
|
|
yyb2628 = r.CheckBreak()
|
|
}
|
|
if yyb2628 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2628++
|
|
if yyhl2628 {
|
|
yyb2628 = yyj2628 > l
|
|
} else {
|
|
yyb2628 = r.CheckBreak()
|
|
}
|
|
if yyb2628 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv2631 := &x.ListMeta
|
|
yym2632 := z.DecBinary()
|
|
_ = yym2632
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2631) {
|
|
} else {
|
|
z.DecFallback(yyv2631, false)
|
|
}
|
|
}
|
|
yyj2628++
|
|
if yyhl2628 {
|
|
yyb2628 = yyj2628 > l
|
|
} else {
|
|
yyb2628 = r.CheckBreak()
|
|
}
|
|
if yyb2628 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv2633 := &x.Items
|
|
yym2634 := z.DecBinary()
|
|
_ = yym2634
|
|
if false {
|
|
} else {
|
|
h.decSliceNamespace((*[]Namespace)(yyv2633), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj2628++
|
|
if yyhl2628 {
|
|
yyb2628 = yyj2628 > l
|
|
} else {
|
|
yyb2628 = r.CheckBreak()
|
|
}
|
|
if yyb2628 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2628-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *Binding) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2635 := z.EncBinary()
|
|
_ = yym2635
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2636 := !z.EncBinary()
|
|
yy2arr2636 := z.EncBasicHandle().StructToArray
|
|
var yyq2636 [4]bool
|
|
_, _, _ = yysep2636, yyq2636, yy2arr2636
|
|
const yyr2636 bool = false
|
|
yyq2636[0] = x.Kind != ""
|
|
yyq2636[1] = x.APIVersion != ""
|
|
yyq2636[2] = true
|
|
var yynn2636 int
|
|
if yyr2636 || yy2arr2636 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn2636 = 1
|
|
for _, b := range yyq2636 {
|
|
if b {
|
|
yynn2636++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2636)
|
|
yynn2636 = 0
|
|
}
|
|
if yyr2636 || yy2arr2636 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2636[0] {
|
|
yym2638 := z.EncBinary()
|
|
_ = yym2638
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2636[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2639 := z.EncBinary()
|
|
_ = yym2639
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2636 || yy2arr2636 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2636[1] {
|
|
yym2641 := z.EncBinary()
|
|
_ = yym2641
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2636[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2642 := z.EncBinary()
|
|
_ = yym2642
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2636 || yy2arr2636 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2636[2] {
|
|
yy2644 := &x.ObjectMeta
|
|
yy2644.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2636[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2645 := &x.ObjectMeta
|
|
yy2645.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2636 || yy2arr2636 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy2647 := &x.Target
|
|
yy2647.CodecEncodeSelf(e)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("target"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2648 := &x.Target
|
|
yy2648.CodecEncodeSelf(e)
|
|
}
|
|
if yyr2636 || yy2arr2636 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *Binding) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym2649 := z.DecBinary()
|
|
_ = yym2649
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2650 := r.ContainerType()
|
|
if yyct2650 == codecSelferValueTypeMap1234 {
|
|
yyl2650 := r.ReadMapStart()
|
|
if yyl2650 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2650, d)
|
|
}
|
|
} else if yyct2650 == codecSelferValueTypeArray1234 {
|
|
yyl2650 := r.ReadArrayStart()
|
|
if yyl2650 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2650, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *Binding) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys2651Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2651Slc
|
|
var yyhl2651 bool = l >= 0
|
|
for yyj2651 := 0; ; yyj2651++ {
|
|
if yyhl2651 {
|
|
if yyj2651 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2651Slc = r.DecodeBytes(yys2651Slc, true, true)
|
|
yys2651 := string(yys2651Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2651 {
|
|
case "kind":
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
case "apiVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
case "metadata":
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv2654 := &x.ObjectMeta
|
|
yyv2654.CodecDecodeSelf(d)
|
|
}
|
|
case "target":
|
|
if r.TryDecodeAsNil() {
|
|
x.Target = ObjectReference{}
|
|
} else {
|
|
yyv2655 := &x.Target
|
|
yyv2655.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2651)
|
|
} // end switch yys2651
|
|
} // end for yyj2651
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *Binding) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj2656 int
|
|
var yyb2656 bool
|
|
var yyhl2656 bool = l >= 0
|
|
yyj2656++
|
|
if yyhl2656 {
|
|
yyb2656 = yyj2656 > l
|
|
} else {
|
|
yyb2656 = r.CheckBreak()
|
|
}
|
|
if yyb2656 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2656++
|
|
if yyhl2656 {
|
|
yyb2656 = yyj2656 > l
|
|
} else {
|
|
yyb2656 = r.CheckBreak()
|
|
}
|
|
if yyb2656 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2656++
|
|
if yyhl2656 {
|
|
yyb2656 = yyj2656 > l
|
|
} else {
|
|
yyb2656 = r.CheckBreak()
|
|
}
|
|
if yyb2656 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv2659 := &x.ObjectMeta
|
|
yyv2659.CodecDecodeSelf(d)
|
|
}
|
|
yyj2656++
|
|
if yyhl2656 {
|
|
yyb2656 = yyj2656 > l
|
|
} else {
|
|
yyb2656 = r.CheckBreak()
|
|
}
|
|
if yyb2656 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Target = ObjectReference{}
|
|
} else {
|
|
yyv2660 := &x.Target
|
|
yyv2660.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj2656++
|
|
if yyhl2656 {
|
|
yyb2656 = yyj2656 > l
|
|
} else {
|
|
yyb2656 = r.CheckBreak()
|
|
}
|
|
if yyb2656 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2656-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *DeleteOptions) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2661 := z.EncBinary()
|
|
_ = yym2661
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2662 := !z.EncBinary()
|
|
yy2arr2662 := z.EncBasicHandle().StructToArray
|
|
var yyq2662 [3]bool
|
|
_, _, _ = yysep2662, yyq2662, yy2arr2662
|
|
const yyr2662 bool = false
|
|
yyq2662[0] = x.Kind != ""
|
|
yyq2662[1] = x.APIVersion != ""
|
|
var yynn2662 int
|
|
if yyr2662 || yy2arr2662 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn2662 = 1
|
|
for _, b := range yyq2662 {
|
|
if b {
|
|
yynn2662++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2662)
|
|
yynn2662 = 0
|
|
}
|
|
if yyr2662 || yy2arr2662 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2662[0] {
|
|
yym2664 := z.EncBinary()
|
|
_ = yym2664
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2662[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2665 := z.EncBinary()
|
|
_ = yym2665
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2662 || yy2arr2662 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2662[1] {
|
|
yym2667 := z.EncBinary()
|
|
_ = yym2667
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2662[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2668 := z.EncBinary()
|
|
_ = yym2668
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2662 || yy2arr2662 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.GracePeriodSeconds == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy2670 := *x.GracePeriodSeconds
|
|
yym2671 := z.EncBinary()
|
|
_ = yym2671
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy2670))
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("gracePeriodSeconds"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.GracePeriodSeconds == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy2672 := *x.GracePeriodSeconds
|
|
yym2673 := z.EncBinary()
|
|
_ = yym2673
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy2672))
|
|
}
|
|
}
|
|
}
|
|
if yyr2662 || yy2arr2662 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *DeleteOptions) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym2674 := z.DecBinary()
|
|
_ = yym2674
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2675 := r.ContainerType()
|
|
if yyct2675 == codecSelferValueTypeMap1234 {
|
|
yyl2675 := r.ReadMapStart()
|
|
if yyl2675 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2675, d)
|
|
}
|
|
} else if yyct2675 == codecSelferValueTypeArray1234 {
|
|
yyl2675 := r.ReadArrayStart()
|
|
if yyl2675 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2675, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *DeleteOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys2676Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2676Slc
|
|
var yyhl2676 bool = l >= 0
|
|
for yyj2676 := 0; ; yyj2676++ {
|
|
if yyhl2676 {
|
|
if yyj2676 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2676Slc = r.DecodeBytes(yys2676Slc, true, true)
|
|
yys2676 := string(yys2676Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2676 {
|
|
case "kind":
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
case "apiVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
case "gracePeriodSeconds":
|
|
if r.TryDecodeAsNil() {
|
|
if x.GracePeriodSeconds != nil {
|
|
x.GracePeriodSeconds = nil
|
|
}
|
|
} else {
|
|
if x.GracePeriodSeconds == nil {
|
|
x.GracePeriodSeconds = new(int64)
|
|
}
|
|
yym2680 := z.DecBinary()
|
|
_ = yym2680
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2676)
|
|
} // end switch yys2676
|
|
} // end for yyj2676
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *DeleteOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj2681 int
|
|
var yyb2681 bool
|
|
var yyhl2681 bool = l >= 0
|
|
yyj2681++
|
|
if yyhl2681 {
|
|
yyb2681 = yyj2681 > l
|
|
} else {
|
|
yyb2681 = r.CheckBreak()
|
|
}
|
|
if yyb2681 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2681++
|
|
if yyhl2681 {
|
|
yyb2681 = yyj2681 > l
|
|
} else {
|
|
yyb2681 = r.CheckBreak()
|
|
}
|
|
if yyb2681 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2681++
|
|
if yyhl2681 {
|
|
yyb2681 = yyj2681 > l
|
|
} else {
|
|
yyb2681 = r.CheckBreak()
|
|
}
|
|
if yyb2681 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.GracePeriodSeconds != nil {
|
|
x.GracePeriodSeconds = nil
|
|
}
|
|
} else {
|
|
if x.GracePeriodSeconds == nil {
|
|
x.GracePeriodSeconds = new(int64)
|
|
}
|
|
yym2685 := z.DecBinary()
|
|
_ = yym2685
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
for {
|
|
yyj2681++
|
|
if yyhl2681 {
|
|
yyb2681 = yyj2681 > l
|
|
} else {
|
|
yyb2681 = r.CheckBreak()
|
|
}
|
|
if yyb2681 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2681-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *ExportOptions) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2686 := z.EncBinary()
|
|
_ = yym2686
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2687 := !z.EncBinary()
|
|
yy2arr2687 := z.EncBasicHandle().StructToArray
|
|
var yyq2687 [4]bool
|
|
_, _, _ = yysep2687, yyq2687, yy2arr2687
|
|
const yyr2687 bool = false
|
|
yyq2687[0] = x.Kind != ""
|
|
yyq2687[1] = x.APIVersion != ""
|
|
var yynn2687 int
|
|
if yyr2687 || yy2arr2687 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn2687 = 2
|
|
for _, b := range yyq2687 {
|
|
if b {
|
|
yynn2687++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2687)
|
|
yynn2687 = 0
|
|
}
|
|
if yyr2687 || yy2arr2687 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2687[0] {
|
|
yym2689 := z.EncBinary()
|
|
_ = yym2689
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2687[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2690 := z.EncBinary()
|
|
_ = yym2690
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2687 || yy2arr2687 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2687[1] {
|
|
yym2692 := z.EncBinary()
|
|
_ = yym2692
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2687[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2693 := z.EncBinary()
|
|
_ = yym2693
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2687 || yy2arr2687 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2695 := z.EncBinary()
|
|
_ = yym2695
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Export))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("export"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2696 := z.EncBinary()
|
|
_ = yym2696
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Export))
|
|
}
|
|
}
|
|
if yyr2687 || yy2arr2687 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2698 := z.EncBinary()
|
|
_ = yym2698
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Exact))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("exact"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2699 := z.EncBinary()
|
|
_ = yym2699
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Exact))
|
|
}
|
|
}
|
|
if yyr2687 || yy2arr2687 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ExportOptions) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym2700 := z.DecBinary()
|
|
_ = yym2700
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2701 := r.ContainerType()
|
|
if yyct2701 == codecSelferValueTypeMap1234 {
|
|
yyl2701 := r.ReadMapStart()
|
|
if yyl2701 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2701, d)
|
|
}
|
|
} else if yyct2701 == codecSelferValueTypeArray1234 {
|
|
yyl2701 := r.ReadArrayStart()
|
|
if yyl2701 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2701, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ExportOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys2702Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2702Slc
|
|
var yyhl2702 bool = l >= 0
|
|
for yyj2702 := 0; ; yyj2702++ {
|
|
if yyhl2702 {
|
|
if yyj2702 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2702Slc = r.DecodeBytes(yys2702Slc, true, true)
|
|
yys2702 := string(yys2702Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2702 {
|
|
case "kind":
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
case "apiVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
case "export":
|
|
if r.TryDecodeAsNil() {
|
|
x.Export = false
|
|
} else {
|
|
x.Export = bool(r.DecodeBool())
|
|
}
|
|
case "exact":
|
|
if r.TryDecodeAsNil() {
|
|
x.Exact = false
|
|
} else {
|
|
x.Exact = bool(r.DecodeBool())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2702)
|
|
} // end switch yys2702
|
|
} // end for yyj2702
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *ExportOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj2707 int
|
|
var yyb2707 bool
|
|
var yyhl2707 bool = l >= 0
|
|
yyj2707++
|
|
if yyhl2707 {
|
|
yyb2707 = yyj2707 > l
|
|
} else {
|
|
yyb2707 = r.CheckBreak()
|
|
}
|
|
if yyb2707 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2707++
|
|
if yyhl2707 {
|
|
yyb2707 = yyj2707 > l
|
|
} else {
|
|
yyb2707 = r.CheckBreak()
|
|
}
|
|
if yyb2707 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2707++
|
|
if yyhl2707 {
|
|
yyb2707 = yyj2707 > l
|
|
} else {
|
|
yyb2707 = r.CheckBreak()
|
|
}
|
|
if yyb2707 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Export = false
|
|
} else {
|
|
x.Export = bool(r.DecodeBool())
|
|
}
|
|
yyj2707++
|
|
if yyhl2707 {
|
|
yyb2707 = yyj2707 > l
|
|
} else {
|
|
yyb2707 = r.CheckBreak()
|
|
}
|
|
if yyb2707 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Exact = false
|
|
} else {
|
|
x.Exact = bool(r.DecodeBool())
|
|
}
|
|
for {
|
|
yyj2707++
|
|
if yyhl2707 {
|
|
yyb2707 = yyj2707 > l
|
|
} else {
|
|
yyb2707 = r.CheckBreak()
|
|
}
|
|
if yyb2707 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2707-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2712 := z.EncBinary()
|
|
_ = yym2712
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2713 := !z.EncBinary()
|
|
yy2arr2713 := z.EncBasicHandle().StructToArray
|
|
var yyq2713 [7]bool
|
|
_, _, _ = yysep2713, yyq2713, yy2arr2713
|
|
const yyr2713 bool = false
|
|
yyq2713[0] = x.Kind != ""
|
|
yyq2713[1] = x.APIVersion != ""
|
|
var yynn2713 int
|
|
if yyr2713 || yy2arr2713 {
|
|
r.EncodeArrayStart(7)
|
|
} else {
|
|
yynn2713 = 5
|
|
for _, b := range yyq2713 {
|
|
if b {
|
|
yynn2713++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2713)
|
|
yynn2713 = 0
|
|
}
|
|
if yyr2713 || yy2arr2713 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2713[0] {
|
|
yym2715 := z.EncBinary()
|
|
_ = yym2715
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2713[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2716 := z.EncBinary()
|
|
_ = yym2716
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2713 || yy2arr2713 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2713[1] {
|
|
yym2718 := z.EncBinary()
|
|
_ = yym2718
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2713[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2719 := z.EncBinary()
|
|
_ = yym2719
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2713 || yy2arr2713 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.LabelSelector == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2721 := z.EncBinary()
|
|
_ = yym2721
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x.LabelSelector) {
|
|
} else {
|
|
z.EncFallback(x.LabelSelector)
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("LabelSelector"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.LabelSelector == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2722 := z.EncBinary()
|
|
_ = yym2722
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x.LabelSelector) {
|
|
} else {
|
|
z.EncFallback(x.LabelSelector)
|
|
}
|
|
}
|
|
}
|
|
if yyr2713 || yy2arr2713 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.FieldSelector == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2724 := z.EncBinary()
|
|
_ = yym2724
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x.FieldSelector) {
|
|
} else {
|
|
z.EncFallback(x.FieldSelector)
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("FieldSelector"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.FieldSelector == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2725 := z.EncBinary()
|
|
_ = yym2725
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x.FieldSelector) {
|
|
} else {
|
|
z.EncFallback(x.FieldSelector)
|
|
}
|
|
}
|
|
}
|
|
if yyr2713 || yy2arr2713 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2727 := z.EncBinary()
|
|
_ = yym2727
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Watch))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("Watch"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2728 := z.EncBinary()
|
|
_ = yym2728
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Watch))
|
|
}
|
|
}
|
|
if yyr2713 || yy2arr2713 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2730 := z.EncBinary()
|
|
_ = yym2730
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("ResourceVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2731 := z.EncBinary()
|
|
_ = yym2731
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
|
|
}
|
|
}
|
|
if yyr2713 || yy2arr2713 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.TimeoutSeconds == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy2733 := *x.TimeoutSeconds
|
|
yym2734 := z.EncBinary()
|
|
_ = yym2734
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy2733))
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("TimeoutSeconds"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.TimeoutSeconds == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy2735 := *x.TimeoutSeconds
|
|
yym2736 := z.EncBinary()
|
|
_ = yym2736
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy2735))
|
|
}
|
|
}
|
|
}
|
|
if yyr2713 || yy2arr2713 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ListOptions) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym2737 := z.DecBinary()
|
|
_ = yym2737
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2738 := r.ContainerType()
|
|
if yyct2738 == codecSelferValueTypeMap1234 {
|
|
yyl2738 := r.ReadMapStart()
|
|
if yyl2738 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2738, d)
|
|
}
|
|
} else if yyct2738 == codecSelferValueTypeArray1234 {
|
|
yyl2738 := r.ReadArrayStart()
|
|
if yyl2738 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2738, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ListOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys2739Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2739Slc
|
|
var yyhl2739 bool = l >= 0
|
|
for yyj2739 := 0; ; yyj2739++ {
|
|
if yyhl2739 {
|
|
if yyj2739 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2739Slc = r.DecodeBytes(yys2739Slc, true, true)
|
|
yys2739 := string(yys2739Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2739 {
|
|
case "kind":
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
case "apiVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
case "LabelSelector":
|
|
if r.TryDecodeAsNil() {
|
|
x.LabelSelector = nil
|
|
} else {
|
|
yyv2742 := &x.LabelSelector
|
|
yym2743 := z.DecBinary()
|
|
_ = yym2743
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2742) {
|
|
} else {
|
|
z.DecFallback(yyv2742, true)
|
|
}
|
|
}
|
|
case "FieldSelector":
|
|
if r.TryDecodeAsNil() {
|
|
x.FieldSelector = nil
|
|
} else {
|
|
yyv2744 := &x.FieldSelector
|
|
yym2745 := z.DecBinary()
|
|
_ = yym2745
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2744) {
|
|
} else {
|
|
z.DecFallback(yyv2744, true)
|
|
}
|
|
}
|
|
case "Watch":
|
|
if r.TryDecodeAsNil() {
|
|
x.Watch = false
|
|
} else {
|
|
x.Watch = bool(r.DecodeBool())
|
|
}
|
|
case "ResourceVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.ResourceVersion = ""
|
|
} else {
|
|
x.ResourceVersion = string(r.DecodeString())
|
|
}
|
|
case "TimeoutSeconds":
|
|
if r.TryDecodeAsNil() {
|
|
if x.TimeoutSeconds != nil {
|
|
x.TimeoutSeconds = nil
|
|
}
|
|
} else {
|
|
if x.TimeoutSeconds == nil {
|
|
x.TimeoutSeconds = new(int64)
|
|
}
|
|
yym2749 := z.DecBinary()
|
|
_ = yym2749
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2739)
|
|
} // end switch yys2739
|
|
} // end for yyj2739
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj2750 int
|
|
var yyb2750 bool
|
|
var yyhl2750 bool = l >= 0
|
|
yyj2750++
|
|
if yyhl2750 {
|
|
yyb2750 = yyj2750 > l
|
|
} else {
|
|
yyb2750 = r.CheckBreak()
|
|
}
|
|
if yyb2750 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2750++
|
|
if yyhl2750 {
|
|
yyb2750 = yyj2750 > l
|
|
} else {
|
|
yyb2750 = r.CheckBreak()
|
|
}
|
|
if yyb2750 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2750++
|
|
if yyhl2750 {
|
|
yyb2750 = yyj2750 > l
|
|
} else {
|
|
yyb2750 = r.CheckBreak()
|
|
}
|
|
if yyb2750 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.LabelSelector = nil
|
|
} else {
|
|
yyv2753 := &x.LabelSelector
|
|
yym2754 := z.DecBinary()
|
|
_ = yym2754
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2753) {
|
|
} else {
|
|
z.DecFallback(yyv2753, true)
|
|
}
|
|
}
|
|
yyj2750++
|
|
if yyhl2750 {
|
|
yyb2750 = yyj2750 > l
|
|
} else {
|
|
yyb2750 = r.CheckBreak()
|
|
}
|
|
if yyb2750 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.FieldSelector = nil
|
|
} else {
|
|
yyv2755 := &x.FieldSelector
|
|
yym2756 := z.DecBinary()
|
|
_ = yym2756
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2755) {
|
|
} else {
|
|
z.DecFallback(yyv2755, true)
|
|
}
|
|
}
|
|
yyj2750++
|
|
if yyhl2750 {
|
|
yyb2750 = yyj2750 > l
|
|
} else {
|
|
yyb2750 = r.CheckBreak()
|
|
}
|
|
if yyb2750 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Watch = false
|
|
} else {
|
|
x.Watch = bool(r.DecodeBool())
|
|
}
|
|
yyj2750++
|
|
if yyhl2750 {
|
|
yyb2750 = yyj2750 > l
|
|
} else {
|
|
yyb2750 = r.CheckBreak()
|
|
}
|
|
if yyb2750 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ResourceVersion = ""
|
|
} else {
|
|
x.ResourceVersion = string(r.DecodeString())
|
|
}
|
|
yyj2750++
|
|
if yyhl2750 {
|
|
yyb2750 = yyj2750 > l
|
|
} else {
|
|
yyb2750 = r.CheckBreak()
|
|
}
|
|
if yyb2750 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.TimeoutSeconds != nil {
|
|
x.TimeoutSeconds = nil
|
|
}
|
|
} else {
|
|
if x.TimeoutSeconds == nil {
|
|
x.TimeoutSeconds = new(int64)
|
|
}
|
|
yym2760 := z.DecBinary()
|
|
_ = yym2760
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
for {
|
|
yyj2750++
|
|
if yyhl2750 {
|
|
yyb2750 = yyj2750 > l
|
|
} else {
|
|
yyb2750 = r.CheckBreak()
|
|
}
|
|
if yyb2750 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2750-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2761 := z.EncBinary()
|
|
_ = yym2761
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2762 := !z.EncBinary()
|
|
yy2arr2762 := z.EncBasicHandle().StructToArray
|
|
var yyq2762 [10]bool
|
|
_, _, _ = yysep2762, yyq2762, yy2arr2762
|
|
const yyr2762 bool = false
|
|
yyq2762[0] = x.Kind != ""
|
|
yyq2762[1] = x.APIVersion != ""
|
|
var yynn2762 int
|
|
if yyr2762 || yy2arr2762 {
|
|
r.EncodeArrayStart(10)
|
|
} else {
|
|
yynn2762 = 8
|
|
for _, b := range yyq2762 {
|
|
if b {
|
|
yynn2762++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2762)
|
|
yynn2762 = 0
|
|
}
|
|
if yyr2762 || yy2arr2762 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2762[0] {
|
|
yym2764 := z.EncBinary()
|
|
_ = yym2764
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2762[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2765 := z.EncBinary()
|
|
_ = yym2765
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2762 || yy2arr2762 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2762[1] {
|
|
yym2767 := z.EncBinary()
|
|
_ = yym2767
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2762[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2768 := z.EncBinary()
|
|
_ = yym2768
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2762 || yy2arr2762 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2770 := z.EncBinary()
|
|
_ = yym2770
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Container))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("Container"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2771 := z.EncBinary()
|
|
_ = yym2771
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Container))
|
|
}
|
|
}
|
|
if yyr2762 || yy2arr2762 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2773 := z.EncBinary()
|
|
_ = yym2773
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Follow))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("Follow"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2774 := z.EncBinary()
|
|
_ = yym2774
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Follow))
|
|
}
|
|
}
|
|
if yyr2762 || yy2arr2762 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2776 := z.EncBinary()
|
|
_ = yym2776
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Previous))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("Previous"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2777 := z.EncBinary()
|
|
_ = yym2777
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Previous))
|
|
}
|
|
}
|
|
if yyr2762 || yy2arr2762 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.SinceSeconds == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy2779 := *x.SinceSeconds
|
|
yym2780 := z.EncBinary()
|
|
_ = yym2780
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy2779))
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("SinceSeconds"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.SinceSeconds == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy2781 := *x.SinceSeconds
|
|
yym2782 := z.EncBinary()
|
|
_ = yym2782
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy2781))
|
|
}
|
|
}
|
|
}
|
|
if yyr2762 || yy2arr2762 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.SinceTime == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2784 := z.EncBinary()
|
|
_ = yym2784
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x.SinceTime) {
|
|
} else if yym2784 {
|
|
z.EncBinaryMarshal(x.SinceTime)
|
|
} else if !yym2784 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(x.SinceTime)
|
|
} else {
|
|
z.EncFallback(x.SinceTime)
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("SinceTime"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.SinceTime == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2785 := z.EncBinary()
|
|
_ = yym2785
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x.SinceTime) {
|
|
} else if yym2785 {
|
|
z.EncBinaryMarshal(x.SinceTime)
|
|
} else if !yym2785 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(x.SinceTime)
|
|
} else {
|
|
z.EncFallback(x.SinceTime)
|
|
}
|
|
}
|
|
}
|
|
if yyr2762 || yy2arr2762 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2787 := z.EncBinary()
|
|
_ = yym2787
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Timestamps))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("Timestamps"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2788 := z.EncBinary()
|
|
_ = yym2788
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Timestamps))
|
|
}
|
|
}
|
|
if yyr2762 || yy2arr2762 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.TailLines == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy2790 := *x.TailLines
|
|
yym2791 := z.EncBinary()
|
|
_ = yym2791
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy2790))
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("TailLines"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.TailLines == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy2792 := *x.TailLines
|
|
yym2793 := z.EncBinary()
|
|
_ = yym2793
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy2792))
|
|
}
|
|
}
|
|
}
|
|
if yyr2762 || yy2arr2762 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.LimitBytes == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy2795 := *x.LimitBytes
|
|
yym2796 := z.EncBinary()
|
|
_ = yym2796
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy2795))
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("LimitBytes"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.LimitBytes == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy2797 := *x.LimitBytes
|
|
yym2798 := z.EncBinary()
|
|
_ = yym2798
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy2797))
|
|
}
|
|
}
|
|
}
|
|
if yyr2762 || yy2arr2762 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PodLogOptions) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym2799 := z.DecBinary()
|
|
_ = yym2799
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2800 := r.ContainerType()
|
|
if yyct2800 == codecSelferValueTypeMap1234 {
|
|
yyl2800 := r.ReadMapStart()
|
|
if yyl2800 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2800, d)
|
|
}
|
|
} else if yyct2800 == codecSelferValueTypeArray1234 {
|
|
yyl2800 := r.ReadArrayStart()
|
|
if yyl2800 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2800, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys2801Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2801Slc
|
|
var yyhl2801 bool = l >= 0
|
|
for yyj2801 := 0; ; yyj2801++ {
|
|
if yyhl2801 {
|
|
if yyj2801 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2801Slc = r.DecodeBytes(yys2801Slc, true, true)
|
|
yys2801 := string(yys2801Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2801 {
|
|
case "kind":
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
case "apiVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
case "Container":
|
|
if r.TryDecodeAsNil() {
|
|
x.Container = ""
|
|
} else {
|
|
x.Container = string(r.DecodeString())
|
|
}
|
|
case "Follow":
|
|
if r.TryDecodeAsNil() {
|
|
x.Follow = false
|
|
} else {
|
|
x.Follow = bool(r.DecodeBool())
|
|
}
|
|
case "Previous":
|
|
if r.TryDecodeAsNil() {
|
|
x.Previous = false
|
|
} else {
|
|
x.Previous = bool(r.DecodeBool())
|
|
}
|
|
case "SinceSeconds":
|
|
if r.TryDecodeAsNil() {
|
|
if x.SinceSeconds != nil {
|
|
x.SinceSeconds = nil
|
|
}
|
|
} else {
|
|
if x.SinceSeconds == nil {
|
|
x.SinceSeconds = new(int64)
|
|
}
|
|
yym2808 := z.DecBinary()
|
|
_ = yym2808
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.SinceSeconds)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
case "SinceTime":
|
|
if r.TryDecodeAsNil() {
|
|
if x.SinceTime != nil {
|
|
x.SinceTime = nil
|
|
}
|
|
} else {
|
|
if x.SinceTime == nil {
|
|
x.SinceTime = new(pkg2_unversioned.Time)
|
|
}
|
|
yym2810 := z.DecBinary()
|
|
_ = yym2810
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x.SinceTime) {
|
|
} else if yym2810 {
|
|
z.DecBinaryUnmarshal(x.SinceTime)
|
|
} else if !yym2810 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(x.SinceTime)
|
|
} else {
|
|
z.DecFallback(x.SinceTime, false)
|
|
}
|
|
}
|
|
case "Timestamps":
|
|
if r.TryDecodeAsNil() {
|
|
x.Timestamps = false
|
|
} else {
|
|
x.Timestamps = bool(r.DecodeBool())
|
|
}
|
|
case "TailLines":
|
|
if r.TryDecodeAsNil() {
|
|
if x.TailLines != nil {
|
|
x.TailLines = nil
|
|
}
|
|
} else {
|
|
if x.TailLines == nil {
|
|
x.TailLines = new(int64)
|
|
}
|
|
yym2813 := z.DecBinary()
|
|
_ = yym2813
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.TailLines)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
case "LimitBytes":
|
|
if r.TryDecodeAsNil() {
|
|
if x.LimitBytes != nil {
|
|
x.LimitBytes = nil
|
|
}
|
|
} else {
|
|
if x.LimitBytes == nil {
|
|
x.LimitBytes = new(int64)
|
|
}
|
|
yym2815 := z.DecBinary()
|
|
_ = yym2815
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2801)
|
|
} // end switch yys2801
|
|
} // end for yyj2801
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj2816 int
|
|
var yyb2816 bool
|
|
var yyhl2816 bool = l >= 0
|
|
yyj2816++
|
|
if yyhl2816 {
|
|
yyb2816 = yyj2816 > l
|
|
} else {
|
|
yyb2816 = r.CheckBreak()
|
|
}
|
|
if yyb2816 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2816++
|
|
if yyhl2816 {
|
|
yyb2816 = yyj2816 > l
|
|
} else {
|
|
yyb2816 = r.CheckBreak()
|
|
}
|
|
if yyb2816 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2816++
|
|
if yyhl2816 {
|
|
yyb2816 = yyj2816 > l
|
|
} else {
|
|
yyb2816 = r.CheckBreak()
|
|
}
|
|
if yyb2816 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Container = ""
|
|
} else {
|
|
x.Container = string(r.DecodeString())
|
|
}
|
|
yyj2816++
|
|
if yyhl2816 {
|
|
yyb2816 = yyj2816 > l
|
|
} else {
|
|
yyb2816 = r.CheckBreak()
|
|
}
|
|
if yyb2816 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Follow = false
|
|
} else {
|
|
x.Follow = bool(r.DecodeBool())
|
|
}
|
|
yyj2816++
|
|
if yyhl2816 {
|
|
yyb2816 = yyj2816 > l
|
|
} else {
|
|
yyb2816 = r.CheckBreak()
|
|
}
|
|
if yyb2816 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Previous = false
|
|
} else {
|
|
x.Previous = bool(r.DecodeBool())
|
|
}
|
|
yyj2816++
|
|
if yyhl2816 {
|
|
yyb2816 = yyj2816 > l
|
|
} else {
|
|
yyb2816 = r.CheckBreak()
|
|
}
|
|
if yyb2816 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.SinceSeconds != nil {
|
|
x.SinceSeconds = nil
|
|
}
|
|
} else {
|
|
if x.SinceSeconds == nil {
|
|
x.SinceSeconds = new(int64)
|
|
}
|
|
yym2823 := z.DecBinary()
|
|
_ = yym2823
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.SinceSeconds)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
yyj2816++
|
|
if yyhl2816 {
|
|
yyb2816 = yyj2816 > l
|
|
} else {
|
|
yyb2816 = r.CheckBreak()
|
|
}
|
|
if yyb2816 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.SinceTime != nil {
|
|
x.SinceTime = nil
|
|
}
|
|
} else {
|
|
if x.SinceTime == nil {
|
|
x.SinceTime = new(pkg2_unversioned.Time)
|
|
}
|
|
yym2825 := z.DecBinary()
|
|
_ = yym2825
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x.SinceTime) {
|
|
} else if yym2825 {
|
|
z.DecBinaryUnmarshal(x.SinceTime)
|
|
} else if !yym2825 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(x.SinceTime)
|
|
} else {
|
|
z.DecFallback(x.SinceTime, false)
|
|
}
|
|
}
|
|
yyj2816++
|
|
if yyhl2816 {
|
|
yyb2816 = yyj2816 > l
|
|
} else {
|
|
yyb2816 = r.CheckBreak()
|
|
}
|
|
if yyb2816 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Timestamps = false
|
|
} else {
|
|
x.Timestamps = bool(r.DecodeBool())
|
|
}
|
|
yyj2816++
|
|
if yyhl2816 {
|
|
yyb2816 = yyj2816 > l
|
|
} else {
|
|
yyb2816 = r.CheckBreak()
|
|
}
|
|
if yyb2816 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.TailLines != nil {
|
|
x.TailLines = nil
|
|
}
|
|
} else {
|
|
if x.TailLines == nil {
|
|
x.TailLines = new(int64)
|
|
}
|
|
yym2828 := z.DecBinary()
|
|
_ = yym2828
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.TailLines)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
yyj2816++
|
|
if yyhl2816 {
|
|
yyb2816 = yyj2816 > l
|
|
} else {
|
|
yyb2816 = r.CheckBreak()
|
|
}
|
|
if yyb2816 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.LimitBytes != nil {
|
|
x.LimitBytes = nil
|
|
}
|
|
} else {
|
|
if x.LimitBytes == nil {
|
|
x.LimitBytes = new(int64)
|
|
}
|
|
yym2830 := z.DecBinary()
|
|
_ = yym2830
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
for {
|
|
yyj2816++
|
|
if yyhl2816 {
|
|
yyb2816 = yyj2816 > l
|
|
} else {
|
|
yyb2816 = r.CheckBreak()
|
|
}
|
|
if yyb2816 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2816-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *PodAttachOptions) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2831 := z.EncBinary()
|
|
_ = yym2831
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2832 := !z.EncBinary()
|
|
yy2arr2832 := z.EncBasicHandle().StructToArray
|
|
var yyq2832 [7]bool
|
|
_, _, _ = yysep2832, yyq2832, yy2arr2832
|
|
const yyr2832 bool = false
|
|
yyq2832[0] = x.Kind != ""
|
|
yyq2832[1] = x.APIVersion != ""
|
|
yyq2832[2] = x.Stdin != false
|
|
yyq2832[3] = x.Stdout != false
|
|
yyq2832[4] = x.Stderr != false
|
|
yyq2832[5] = x.TTY != false
|
|
yyq2832[6] = x.Container != ""
|
|
var yynn2832 int
|
|
if yyr2832 || yy2arr2832 {
|
|
r.EncodeArrayStart(7)
|
|
} else {
|
|
yynn2832 = 0
|
|
for _, b := range yyq2832 {
|
|
if b {
|
|
yynn2832++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2832)
|
|
yynn2832 = 0
|
|
}
|
|
if yyr2832 || yy2arr2832 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2832[0] {
|
|
yym2834 := z.EncBinary()
|
|
_ = yym2834
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2832[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2835 := z.EncBinary()
|
|
_ = yym2835
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2832 || yy2arr2832 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2832[1] {
|
|
yym2837 := z.EncBinary()
|
|
_ = yym2837
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2832[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2838 := z.EncBinary()
|
|
_ = yym2838
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2832 || yy2arr2832 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2832[2] {
|
|
yym2840 := z.EncBinary()
|
|
_ = yym2840
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Stdin))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq2832[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("stdin"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2841 := z.EncBinary()
|
|
_ = yym2841
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Stdin))
|
|
}
|
|
}
|
|
}
|
|
if yyr2832 || yy2arr2832 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2832[3] {
|
|
yym2843 := z.EncBinary()
|
|
_ = yym2843
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Stdout))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq2832[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("stdout"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2844 := z.EncBinary()
|
|
_ = yym2844
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Stdout))
|
|
}
|
|
}
|
|
}
|
|
if yyr2832 || yy2arr2832 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2832[4] {
|
|
yym2846 := z.EncBinary()
|
|
_ = yym2846
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Stderr))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq2832[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("stderr"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2847 := z.EncBinary()
|
|
_ = yym2847
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Stderr))
|
|
}
|
|
}
|
|
}
|
|
if yyr2832 || yy2arr2832 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2832[5] {
|
|
yym2849 := z.EncBinary()
|
|
_ = yym2849
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.TTY))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq2832[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("tty"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2850 := z.EncBinary()
|
|
_ = yym2850
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.TTY))
|
|
}
|
|
}
|
|
}
|
|
if yyr2832 || yy2arr2832 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2832[6] {
|
|
yym2852 := z.EncBinary()
|
|
_ = yym2852
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Container))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2832[6] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("container"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2853 := z.EncBinary()
|
|
_ = yym2853
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Container))
|
|
}
|
|
}
|
|
}
|
|
if yyr2832 || yy2arr2832 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PodAttachOptions) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym2854 := z.DecBinary()
|
|
_ = yym2854
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2855 := r.ContainerType()
|
|
if yyct2855 == codecSelferValueTypeMap1234 {
|
|
yyl2855 := r.ReadMapStart()
|
|
if yyl2855 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2855, d)
|
|
}
|
|
} else if yyct2855 == codecSelferValueTypeArray1234 {
|
|
yyl2855 := r.ReadArrayStart()
|
|
if yyl2855 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2855, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PodAttachOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys2856Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2856Slc
|
|
var yyhl2856 bool = l >= 0
|
|
for yyj2856 := 0; ; yyj2856++ {
|
|
if yyhl2856 {
|
|
if yyj2856 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2856Slc = r.DecodeBytes(yys2856Slc, true, true)
|
|
yys2856 := string(yys2856Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2856 {
|
|
case "kind":
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
case "apiVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
case "stdin":
|
|
if r.TryDecodeAsNil() {
|
|
x.Stdin = false
|
|
} else {
|
|
x.Stdin = bool(r.DecodeBool())
|
|
}
|
|
case "stdout":
|
|
if r.TryDecodeAsNil() {
|
|
x.Stdout = false
|
|
} else {
|
|
x.Stdout = bool(r.DecodeBool())
|
|
}
|
|
case "stderr":
|
|
if r.TryDecodeAsNil() {
|
|
x.Stderr = false
|
|
} else {
|
|
x.Stderr = bool(r.DecodeBool())
|
|
}
|
|
case "tty":
|
|
if r.TryDecodeAsNil() {
|
|
x.TTY = false
|
|
} else {
|
|
x.TTY = bool(r.DecodeBool())
|
|
}
|
|
case "container":
|
|
if r.TryDecodeAsNil() {
|
|
x.Container = ""
|
|
} else {
|
|
x.Container = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2856)
|
|
} // end switch yys2856
|
|
} // end for yyj2856
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj2864 int
|
|
var yyb2864 bool
|
|
var yyhl2864 bool = l >= 0
|
|
yyj2864++
|
|
if yyhl2864 {
|
|
yyb2864 = yyj2864 > l
|
|
} else {
|
|
yyb2864 = r.CheckBreak()
|
|
}
|
|
if yyb2864 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2864++
|
|
if yyhl2864 {
|
|
yyb2864 = yyj2864 > l
|
|
} else {
|
|
yyb2864 = r.CheckBreak()
|
|
}
|
|
if yyb2864 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2864++
|
|
if yyhl2864 {
|
|
yyb2864 = yyj2864 > l
|
|
} else {
|
|
yyb2864 = r.CheckBreak()
|
|
}
|
|
if yyb2864 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Stdin = false
|
|
} else {
|
|
x.Stdin = bool(r.DecodeBool())
|
|
}
|
|
yyj2864++
|
|
if yyhl2864 {
|
|
yyb2864 = yyj2864 > l
|
|
} else {
|
|
yyb2864 = r.CheckBreak()
|
|
}
|
|
if yyb2864 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Stdout = false
|
|
} else {
|
|
x.Stdout = bool(r.DecodeBool())
|
|
}
|
|
yyj2864++
|
|
if yyhl2864 {
|
|
yyb2864 = yyj2864 > l
|
|
} else {
|
|
yyb2864 = r.CheckBreak()
|
|
}
|
|
if yyb2864 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Stderr = false
|
|
} else {
|
|
x.Stderr = bool(r.DecodeBool())
|
|
}
|
|
yyj2864++
|
|
if yyhl2864 {
|
|
yyb2864 = yyj2864 > l
|
|
} else {
|
|
yyb2864 = r.CheckBreak()
|
|
}
|
|
if yyb2864 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.TTY = false
|
|
} else {
|
|
x.TTY = bool(r.DecodeBool())
|
|
}
|
|
yyj2864++
|
|
if yyhl2864 {
|
|
yyb2864 = yyj2864 > l
|
|
} else {
|
|
yyb2864 = r.CheckBreak()
|
|
}
|
|
if yyb2864 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Container = ""
|
|
} else {
|
|
x.Container = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj2864++
|
|
if yyhl2864 {
|
|
yyb2864 = yyj2864 > l
|
|
} else {
|
|
yyb2864 = r.CheckBreak()
|
|
}
|
|
if yyb2864 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2864-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2872 := z.EncBinary()
|
|
_ = yym2872
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2873 := !z.EncBinary()
|
|
yy2arr2873 := z.EncBasicHandle().StructToArray
|
|
var yyq2873 [8]bool
|
|
_, _, _ = yysep2873, yyq2873, yy2arr2873
|
|
const yyr2873 bool = false
|
|
yyq2873[0] = x.Kind != ""
|
|
yyq2873[1] = x.APIVersion != ""
|
|
var yynn2873 int
|
|
if yyr2873 || yy2arr2873 {
|
|
r.EncodeArrayStart(8)
|
|
} else {
|
|
yynn2873 = 6
|
|
for _, b := range yyq2873 {
|
|
if b {
|
|
yynn2873++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2873)
|
|
yynn2873 = 0
|
|
}
|
|
if yyr2873 || yy2arr2873 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2873[0] {
|
|
yym2875 := z.EncBinary()
|
|
_ = yym2875
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2873[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2876 := z.EncBinary()
|
|
_ = yym2876
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2873 || yy2arr2873 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2873[1] {
|
|
yym2878 := z.EncBinary()
|
|
_ = yym2878
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2873[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2879 := z.EncBinary()
|
|
_ = yym2879
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2873 || yy2arr2873 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2881 := z.EncBinary()
|
|
_ = yym2881
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Stdin))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("Stdin"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2882 := z.EncBinary()
|
|
_ = yym2882
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Stdin))
|
|
}
|
|
}
|
|
if yyr2873 || yy2arr2873 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2884 := z.EncBinary()
|
|
_ = yym2884
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Stdout))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("Stdout"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2885 := z.EncBinary()
|
|
_ = yym2885
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Stdout))
|
|
}
|
|
}
|
|
if yyr2873 || yy2arr2873 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2887 := z.EncBinary()
|
|
_ = yym2887
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Stderr))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("Stderr"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2888 := z.EncBinary()
|
|
_ = yym2888
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Stderr))
|
|
}
|
|
}
|
|
if yyr2873 || yy2arr2873 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2890 := z.EncBinary()
|
|
_ = yym2890
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.TTY))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("TTY"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2891 := z.EncBinary()
|
|
_ = yym2891
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.TTY))
|
|
}
|
|
}
|
|
if yyr2873 || yy2arr2873 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2893 := z.EncBinary()
|
|
_ = yym2893
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Container))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("Container"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2894 := z.EncBinary()
|
|
_ = yym2894
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Container))
|
|
}
|
|
}
|
|
if yyr2873 || yy2arr2873 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Command == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2896 := z.EncBinary()
|
|
_ = yym2896
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.Command, false, e)
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("Command"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Command == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2897 := z.EncBinary()
|
|
_ = yym2897
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.Command, false, e)
|
|
}
|
|
}
|
|
}
|
|
if yyr2873 || yy2arr2873 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PodExecOptions) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym2898 := z.DecBinary()
|
|
_ = yym2898
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2899 := r.ContainerType()
|
|
if yyct2899 == codecSelferValueTypeMap1234 {
|
|
yyl2899 := r.ReadMapStart()
|
|
if yyl2899 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2899, d)
|
|
}
|
|
} else if yyct2899 == codecSelferValueTypeArray1234 {
|
|
yyl2899 := r.ReadArrayStart()
|
|
if yyl2899 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2899, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PodExecOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys2900Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2900Slc
|
|
var yyhl2900 bool = l >= 0
|
|
for yyj2900 := 0; ; yyj2900++ {
|
|
if yyhl2900 {
|
|
if yyj2900 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2900Slc = r.DecodeBytes(yys2900Slc, true, true)
|
|
yys2900 := string(yys2900Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2900 {
|
|
case "kind":
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
case "apiVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
case "Stdin":
|
|
if r.TryDecodeAsNil() {
|
|
x.Stdin = false
|
|
} else {
|
|
x.Stdin = bool(r.DecodeBool())
|
|
}
|
|
case "Stdout":
|
|
if r.TryDecodeAsNil() {
|
|
x.Stdout = false
|
|
} else {
|
|
x.Stdout = bool(r.DecodeBool())
|
|
}
|
|
case "Stderr":
|
|
if r.TryDecodeAsNil() {
|
|
x.Stderr = false
|
|
} else {
|
|
x.Stderr = bool(r.DecodeBool())
|
|
}
|
|
case "TTY":
|
|
if r.TryDecodeAsNil() {
|
|
x.TTY = false
|
|
} else {
|
|
x.TTY = bool(r.DecodeBool())
|
|
}
|
|
case "Container":
|
|
if r.TryDecodeAsNil() {
|
|
x.Container = ""
|
|
} else {
|
|
x.Container = string(r.DecodeString())
|
|
}
|
|
case "Command":
|
|
if r.TryDecodeAsNil() {
|
|
x.Command = nil
|
|
} else {
|
|
yyv2908 := &x.Command
|
|
yym2909 := z.DecBinary()
|
|
_ = yym2909
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv2908, false, d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2900)
|
|
} // end switch yys2900
|
|
} // end for yyj2900
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj2910 int
|
|
var yyb2910 bool
|
|
var yyhl2910 bool = l >= 0
|
|
yyj2910++
|
|
if yyhl2910 {
|
|
yyb2910 = yyj2910 > l
|
|
} else {
|
|
yyb2910 = r.CheckBreak()
|
|
}
|
|
if yyb2910 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2910++
|
|
if yyhl2910 {
|
|
yyb2910 = yyj2910 > l
|
|
} else {
|
|
yyb2910 = r.CheckBreak()
|
|
}
|
|
if yyb2910 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2910++
|
|
if yyhl2910 {
|
|
yyb2910 = yyj2910 > l
|
|
} else {
|
|
yyb2910 = r.CheckBreak()
|
|
}
|
|
if yyb2910 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Stdin = false
|
|
} else {
|
|
x.Stdin = bool(r.DecodeBool())
|
|
}
|
|
yyj2910++
|
|
if yyhl2910 {
|
|
yyb2910 = yyj2910 > l
|
|
} else {
|
|
yyb2910 = r.CheckBreak()
|
|
}
|
|
if yyb2910 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Stdout = false
|
|
} else {
|
|
x.Stdout = bool(r.DecodeBool())
|
|
}
|
|
yyj2910++
|
|
if yyhl2910 {
|
|
yyb2910 = yyj2910 > l
|
|
} else {
|
|
yyb2910 = r.CheckBreak()
|
|
}
|
|
if yyb2910 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Stderr = false
|
|
} else {
|
|
x.Stderr = bool(r.DecodeBool())
|
|
}
|
|
yyj2910++
|
|
if yyhl2910 {
|
|
yyb2910 = yyj2910 > l
|
|
} else {
|
|
yyb2910 = r.CheckBreak()
|
|
}
|
|
if yyb2910 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.TTY = false
|
|
} else {
|
|
x.TTY = bool(r.DecodeBool())
|
|
}
|
|
yyj2910++
|
|
if yyhl2910 {
|
|
yyb2910 = yyj2910 > l
|
|
} else {
|
|
yyb2910 = r.CheckBreak()
|
|
}
|
|
if yyb2910 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Container = ""
|
|
} else {
|
|
x.Container = string(r.DecodeString())
|
|
}
|
|
yyj2910++
|
|
if yyhl2910 {
|
|
yyb2910 = yyj2910 > l
|
|
} else {
|
|
yyb2910 = r.CheckBreak()
|
|
}
|
|
if yyb2910 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Command = nil
|
|
} else {
|
|
yyv2918 := &x.Command
|
|
yym2919 := z.DecBinary()
|
|
_ = yym2919
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv2918, false, d)
|
|
}
|
|
}
|
|
for {
|
|
yyj2910++
|
|
if yyhl2910 {
|
|
yyb2910 = yyj2910 > l
|
|
} else {
|
|
yyb2910 = r.CheckBreak()
|
|
}
|
|
if yyb2910 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2910-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *PodProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2920 := z.EncBinary()
|
|
_ = yym2920
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2921 := !z.EncBinary()
|
|
yy2arr2921 := z.EncBasicHandle().StructToArray
|
|
var yyq2921 [3]bool
|
|
_, _, _ = yysep2921, yyq2921, yy2arr2921
|
|
const yyr2921 bool = false
|
|
yyq2921[0] = x.Kind != ""
|
|
yyq2921[1] = x.APIVersion != ""
|
|
var yynn2921 int
|
|
if yyr2921 || yy2arr2921 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn2921 = 1
|
|
for _, b := range yyq2921 {
|
|
if b {
|
|
yynn2921++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2921)
|
|
yynn2921 = 0
|
|
}
|
|
if yyr2921 || yy2arr2921 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2921[0] {
|
|
yym2923 := z.EncBinary()
|
|
_ = yym2923
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2921[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2924 := z.EncBinary()
|
|
_ = yym2924
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2921 || yy2arr2921 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2921[1] {
|
|
yym2926 := z.EncBinary()
|
|
_ = yym2926
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2921[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2927 := z.EncBinary()
|
|
_ = yym2927
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2921 || yy2arr2921 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2929 := z.EncBinary()
|
|
_ = yym2929
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("Path"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2930 := z.EncBinary()
|
|
_ = yym2930
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
|
|
}
|
|
}
|
|
if yyr2921 || yy2arr2921 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PodProxyOptions) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym2931 := z.DecBinary()
|
|
_ = yym2931
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2932 := r.ContainerType()
|
|
if yyct2932 == codecSelferValueTypeMap1234 {
|
|
yyl2932 := r.ReadMapStart()
|
|
if yyl2932 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2932, d)
|
|
}
|
|
} else if yyct2932 == codecSelferValueTypeArray1234 {
|
|
yyl2932 := r.ReadArrayStart()
|
|
if yyl2932 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2932, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PodProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys2933Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2933Slc
|
|
var yyhl2933 bool = l >= 0
|
|
for yyj2933 := 0; ; yyj2933++ {
|
|
if yyhl2933 {
|
|
if yyj2933 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2933Slc = r.DecodeBytes(yys2933Slc, true, true)
|
|
yys2933 := string(yys2933Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2933 {
|
|
case "kind":
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
case "apiVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
case "Path":
|
|
if r.TryDecodeAsNil() {
|
|
x.Path = ""
|
|
} else {
|
|
x.Path = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2933)
|
|
} // end switch yys2933
|
|
} // end for yyj2933
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *PodProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj2937 int
|
|
var yyb2937 bool
|
|
var yyhl2937 bool = l >= 0
|
|
yyj2937++
|
|
if yyhl2937 {
|
|
yyb2937 = yyj2937 > l
|
|
} else {
|
|
yyb2937 = r.CheckBreak()
|
|
}
|
|
if yyb2937 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2937++
|
|
if yyhl2937 {
|
|
yyb2937 = yyj2937 > l
|
|
} else {
|
|
yyb2937 = r.CheckBreak()
|
|
}
|
|
if yyb2937 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2937++
|
|
if yyhl2937 {
|
|
yyb2937 = yyj2937 > l
|
|
} else {
|
|
yyb2937 = r.CheckBreak()
|
|
}
|
|
if yyb2937 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Path = ""
|
|
} else {
|
|
x.Path = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj2937++
|
|
if yyhl2937 {
|
|
yyb2937 = yyj2937 > l
|
|
} else {
|
|
yyb2937 = r.CheckBreak()
|
|
}
|
|
if yyb2937 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2937-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2941 := z.EncBinary()
|
|
_ = yym2941
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2942 := !z.EncBinary()
|
|
yy2arr2942 := z.EncBasicHandle().StructToArray
|
|
var yyq2942 [7]bool
|
|
_, _, _ = yysep2942, yyq2942, yy2arr2942
|
|
const yyr2942 bool = false
|
|
yyq2942[0] = x.Kind != ""
|
|
yyq2942[1] = x.Namespace != ""
|
|
yyq2942[2] = x.Name != ""
|
|
yyq2942[3] = x.UID != ""
|
|
yyq2942[4] = x.APIVersion != ""
|
|
yyq2942[5] = x.ResourceVersion != ""
|
|
yyq2942[6] = x.FieldPath != ""
|
|
var yynn2942 int
|
|
if yyr2942 || yy2arr2942 {
|
|
r.EncodeArrayStart(7)
|
|
} else {
|
|
yynn2942 = 0
|
|
for _, b := range yyq2942 {
|
|
if b {
|
|
yynn2942++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2942)
|
|
yynn2942 = 0
|
|
}
|
|
if yyr2942 || yy2arr2942 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2942[0] {
|
|
yym2944 := z.EncBinary()
|
|
_ = yym2944
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2942[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2945 := z.EncBinary()
|
|
_ = yym2945
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2942 || yy2arr2942 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2942[1] {
|
|
yym2947 := z.EncBinary()
|
|
_ = yym2947
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Namespace))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2942[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("namespace"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2948 := z.EncBinary()
|
|
_ = yym2948
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Namespace))
|
|
}
|
|
}
|
|
}
|
|
if yyr2942 || yy2arr2942 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2942[2] {
|
|
yym2950 := z.EncBinary()
|
|
_ = yym2950
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2942[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("name"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2951 := z.EncBinary()
|
|
_ = yym2951
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
}
|
|
}
|
|
if yyr2942 || yy2arr2942 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2942[3] {
|
|
yym2953 := z.EncBinary()
|
|
_ = yym2953
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x.UID) {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.UID))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2942[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("uid"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2954 := z.EncBinary()
|
|
_ = yym2954
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x.UID) {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.UID))
|
|
}
|
|
}
|
|
}
|
|
if yyr2942 || yy2arr2942 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2942[4] {
|
|
yym2956 := z.EncBinary()
|
|
_ = yym2956
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2942[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2957 := z.EncBinary()
|
|
_ = yym2957
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2942 || yy2arr2942 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2942[5] {
|
|
yym2959 := z.EncBinary()
|
|
_ = yym2959
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2942[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("resourceVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2960 := z.EncBinary()
|
|
_ = yym2960
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2942 || yy2arr2942 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2942[6] {
|
|
yym2962 := z.EncBinary()
|
|
_ = yym2962
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2942[6] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("fieldPath"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2963 := z.EncBinary()
|
|
_ = yym2963
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath))
|
|
}
|
|
}
|
|
}
|
|
if yyr2942 || yy2arr2942 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ObjectReference) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym2964 := z.DecBinary()
|
|
_ = yym2964
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2965 := r.ContainerType()
|
|
if yyct2965 == codecSelferValueTypeMap1234 {
|
|
yyl2965 := r.ReadMapStart()
|
|
if yyl2965 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2965, d)
|
|
}
|
|
} else if yyct2965 == codecSelferValueTypeArray1234 {
|
|
yyl2965 := r.ReadArrayStart()
|
|
if yyl2965 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2965, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys2966Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2966Slc
|
|
var yyhl2966 bool = l >= 0
|
|
for yyj2966 := 0; ; yyj2966++ {
|
|
if yyhl2966 {
|
|
if yyj2966 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2966Slc = r.DecodeBytes(yys2966Slc, true, true)
|
|
yys2966 := string(yys2966Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2966 {
|
|
case "kind":
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
case "namespace":
|
|
if r.TryDecodeAsNil() {
|
|
x.Namespace = ""
|
|
} else {
|
|
x.Namespace = string(r.DecodeString())
|
|
}
|
|
case "name":
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
case "uid":
|
|
if r.TryDecodeAsNil() {
|
|
x.UID = ""
|
|
} else {
|
|
x.UID = pkg1_types.UID(r.DecodeString())
|
|
}
|
|
case "apiVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
case "resourceVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.ResourceVersion = ""
|
|
} else {
|
|
x.ResourceVersion = string(r.DecodeString())
|
|
}
|
|
case "fieldPath":
|
|
if r.TryDecodeAsNil() {
|
|
x.FieldPath = ""
|
|
} else {
|
|
x.FieldPath = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2966)
|
|
} // end switch yys2966
|
|
} // end for yyj2966
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj2974 int
|
|
var yyb2974 bool
|
|
var yyhl2974 bool = l >= 0
|
|
yyj2974++
|
|
if yyhl2974 {
|
|
yyb2974 = yyj2974 > l
|
|
} else {
|
|
yyb2974 = r.CheckBreak()
|
|
}
|
|
if yyb2974 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2974++
|
|
if yyhl2974 {
|
|
yyb2974 = yyj2974 > l
|
|
} else {
|
|
yyb2974 = r.CheckBreak()
|
|
}
|
|
if yyb2974 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Namespace = ""
|
|
} else {
|
|
x.Namespace = string(r.DecodeString())
|
|
}
|
|
yyj2974++
|
|
if yyhl2974 {
|
|
yyb2974 = yyj2974 > l
|
|
} else {
|
|
yyb2974 = r.CheckBreak()
|
|
}
|
|
if yyb2974 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
yyj2974++
|
|
if yyhl2974 {
|
|
yyb2974 = yyj2974 > l
|
|
} else {
|
|
yyb2974 = r.CheckBreak()
|
|
}
|
|
if yyb2974 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.UID = ""
|
|
} else {
|
|
x.UID = pkg1_types.UID(r.DecodeString())
|
|
}
|
|
yyj2974++
|
|
if yyhl2974 {
|
|
yyb2974 = yyj2974 > l
|
|
} else {
|
|
yyb2974 = r.CheckBreak()
|
|
}
|
|
if yyb2974 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2974++
|
|
if yyhl2974 {
|
|
yyb2974 = yyj2974 > l
|
|
} else {
|
|
yyb2974 = r.CheckBreak()
|
|
}
|
|
if yyb2974 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ResourceVersion = ""
|
|
} else {
|
|
x.ResourceVersion = string(r.DecodeString())
|
|
}
|
|
yyj2974++
|
|
if yyhl2974 {
|
|
yyb2974 = yyj2974 > l
|
|
} else {
|
|
yyb2974 = r.CheckBreak()
|
|
}
|
|
if yyb2974 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.FieldPath = ""
|
|
} else {
|
|
x.FieldPath = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj2974++
|
|
if yyhl2974 {
|
|
yyb2974 = yyj2974 > l
|
|
} else {
|
|
yyb2974 = r.CheckBreak()
|
|
}
|
|
if yyb2974 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2974-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *LocalObjectReference) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2982 := z.EncBinary()
|
|
_ = yym2982
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2983 := !z.EncBinary()
|
|
yy2arr2983 := z.EncBasicHandle().StructToArray
|
|
var yyq2983 [1]bool
|
|
_, _, _ = yysep2983, yyq2983, yy2arr2983
|
|
const yyr2983 bool = false
|
|
var yynn2983 int
|
|
if yyr2983 || yy2arr2983 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn2983 = 1
|
|
for _, b := range yyq2983 {
|
|
if b {
|
|
yynn2983++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2983)
|
|
yynn2983 = 0
|
|
}
|
|
if yyr2983 || yy2arr2983 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2985 := z.EncBinary()
|
|
_ = yym2985
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("Name"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2986 := z.EncBinary()
|
|
_ = yym2986
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
}
|
|
if yyr2983 || yy2arr2983 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *LocalObjectReference) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym2987 := z.DecBinary()
|
|
_ = yym2987
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2988 := r.ContainerType()
|
|
if yyct2988 == codecSelferValueTypeMap1234 {
|
|
yyl2988 := r.ReadMapStart()
|
|
if yyl2988 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2988, d)
|
|
}
|
|
} else if yyct2988 == codecSelferValueTypeArray1234 {
|
|
yyl2988 := r.ReadArrayStart()
|
|
if yyl2988 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2988, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *LocalObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys2989Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2989Slc
|
|
var yyhl2989 bool = l >= 0
|
|
for yyj2989 := 0; ; yyj2989++ {
|
|
if yyhl2989 {
|
|
if yyj2989 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2989Slc = r.DecodeBytes(yys2989Slc, true, true)
|
|
yys2989 := string(yys2989Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2989 {
|
|
case "Name":
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2989)
|
|
} // end switch yys2989
|
|
} // end for yyj2989
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *LocalObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj2991 int
|
|
var yyb2991 bool
|
|
var yyhl2991 bool = l >= 0
|
|
yyj2991++
|
|
if yyhl2991 {
|
|
yyb2991 = yyj2991 > l
|
|
} else {
|
|
yyb2991 = r.CheckBreak()
|
|
}
|
|
if yyb2991 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj2991++
|
|
if yyhl2991 {
|
|
yyb2991 = yyj2991 > l
|
|
} else {
|
|
yyb2991 = r.CheckBreak()
|
|
}
|
|
if yyb2991 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2991-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *SerializedReference) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2993 := z.EncBinary()
|
|
_ = yym2993
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2994 := !z.EncBinary()
|
|
yy2arr2994 := z.EncBasicHandle().StructToArray
|
|
var yyq2994 [3]bool
|
|
_, _, _ = yysep2994, yyq2994, yy2arr2994
|
|
const yyr2994 bool = false
|
|
yyq2994[0] = x.Kind != ""
|
|
yyq2994[1] = x.APIVersion != ""
|
|
yyq2994[2] = true
|
|
var yynn2994 int
|
|
if yyr2994 || yy2arr2994 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn2994 = 0
|
|
for _, b := range yyq2994 {
|
|
if b {
|
|
yynn2994++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2994)
|
|
yynn2994 = 0
|
|
}
|
|
if yyr2994 || yy2arr2994 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2994[0] {
|
|
yym2996 := z.EncBinary()
|
|
_ = yym2996
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2994[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2997 := z.EncBinary()
|
|
_ = yym2997
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2994 || yy2arr2994 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2994[1] {
|
|
yym2999 := z.EncBinary()
|
|
_ = yym2999
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2994[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3000 := z.EncBinary()
|
|
_ = yym3000
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2994 || yy2arr2994 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2994[2] {
|
|
yy3002 := &x.Reference
|
|
yy3002.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2994[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("reference"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3003 := &x.Reference
|
|
yy3003.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2994 || yy2arr2994 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *SerializedReference) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym3004 := z.DecBinary()
|
|
_ = yym3004
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3005 := r.ContainerType()
|
|
if yyct3005 == codecSelferValueTypeMap1234 {
|
|
yyl3005 := r.ReadMapStart()
|
|
if yyl3005 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3005, d)
|
|
}
|
|
} else if yyct3005 == codecSelferValueTypeArray1234 {
|
|
yyl3005 := r.ReadArrayStart()
|
|
if yyl3005 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3005, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *SerializedReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys3006Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3006Slc
|
|
var yyhl3006 bool = l >= 0
|
|
for yyj3006 := 0; ; yyj3006++ {
|
|
if yyhl3006 {
|
|
if yyj3006 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3006Slc = r.DecodeBytes(yys3006Slc, true, true)
|
|
yys3006 := string(yys3006Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3006 {
|
|
case "kind":
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
case "apiVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
case "reference":
|
|
if r.TryDecodeAsNil() {
|
|
x.Reference = ObjectReference{}
|
|
} else {
|
|
yyv3009 := &x.Reference
|
|
yyv3009.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3006)
|
|
} // end switch yys3006
|
|
} // end for yyj3006
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *SerializedReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj3010 int
|
|
var yyb3010 bool
|
|
var yyhl3010 bool = l >= 0
|
|
yyj3010++
|
|
if yyhl3010 {
|
|
yyb3010 = yyj3010 > l
|
|
} else {
|
|
yyb3010 = r.CheckBreak()
|
|
}
|
|
if yyb3010 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj3010++
|
|
if yyhl3010 {
|
|
yyb3010 = yyj3010 > l
|
|
} else {
|
|
yyb3010 = r.CheckBreak()
|
|
}
|
|
if yyb3010 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj3010++
|
|
if yyhl3010 {
|
|
yyb3010 = yyj3010 > l
|
|
} else {
|
|
yyb3010 = r.CheckBreak()
|
|
}
|
|
if yyb3010 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Reference = ObjectReference{}
|
|
} else {
|
|
yyv3013 := &x.Reference
|
|
yyv3013.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj3010++
|
|
if yyhl3010 {
|
|
yyb3010 = yyj3010 > l
|
|
} else {
|
|
yyb3010 = r.CheckBreak()
|
|
}
|
|
if yyb3010 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3010-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *EventSource) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3014 := z.EncBinary()
|
|
_ = yym3014
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3015 := !z.EncBinary()
|
|
yy2arr3015 := z.EncBasicHandle().StructToArray
|
|
var yyq3015 [2]bool
|
|
_, _, _ = yysep3015, yyq3015, yy2arr3015
|
|
const yyr3015 bool = false
|
|
yyq3015[0] = x.Component != ""
|
|
yyq3015[1] = x.Host != ""
|
|
var yynn3015 int
|
|
if yyr3015 || yy2arr3015 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn3015 = 0
|
|
for _, b := range yyq3015 {
|
|
if b {
|
|
yynn3015++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3015)
|
|
yynn3015 = 0
|
|
}
|
|
if yyr3015 || yy2arr3015 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3015[0] {
|
|
yym3017 := z.EncBinary()
|
|
_ = yym3017
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Component))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3015[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("component"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3018 := z.EncBinary()
|
|
_ = yym3018
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Component))
|
|
}
|
|
}
|
|
}
|
|
if yyr3015 || yy2arr3015 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3015[1] {
|
|
yym3020 := z.EncBinary()
|
|
_ = yym3020
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Host))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3015[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("host"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3021 := z.EncBinary()
|
|
_ = yym3021
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Host))
|
|
}
|
|
}
|
|
}
|
|
if yyr3015 || yy2arr3015 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *EventSource) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym3022 := z.DecBinary()
|
|
_ = yym3022
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3023 := r.ContainerType()
|
|
if yyct3023 == codecSelferValueTypeMap1234 {
|
|
yyl3023 := r.ReadMapStart()
|
|
if yyl3023 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3023, d)
|
|
}
|
|
} else if yyct3023 == codecSelferValueTypeArray1234 {
|
|
yyl3023 := r.ReadArrayStart()
|
|
if yyl3023 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3023, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *EventSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys3024Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3024Slc
|
|
var yyhl3024 bool = l >= 0
|
|
for yyj3024 := 0; ; yyj3024++ {
|
|
if yyhl3024 {
|
|
if yyj3024 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3024Slc = r.DecodeBytes(yys3024Slc, true, true)
|
|
yys3024 := string(yys3024Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3024 {
|
|
case "component":
|
|
if r.TryDecodeAsNil() {
|
|
x.Component = ""
|
|
} else {
|
|
x.Component = string(r.DecodeString())
|
|
}
|
|
case "host":
|
|
if r.TryDecodeAsNil() {
|
|
x.Host = ""
|
|
} else {
|
|
x.Host = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3024)
|
|
} // end switch yys3024
|
|
} // end for yyj3024
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *EventSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj3027 int
|
|
var yyb3027 bool
|
|
var yyhl3027 bool = l >= 0
|
|
yyj3027++
|
|
if yyhl3027 {
|
|
yyb3027 = yyj3027 > l
|
|
} else {
|
|
yyb3027 = r.CheckBreak()
|
|
}
|
|
if yyb3027 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Component = ""
|
|
} else {
|
|
x.Component = string(r.DecodeString())
|
|
}
|
|
yyj3027++
|
|
if yyhl3027 {
|
|
yyb3027 = yyj3027 > l
|
|
} else {
|
|
yyb3027 = r.CheckBreak()
|
|
}
|
|
if yyb3027 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Host = ""
|
|
} else {
|
|
x.Host = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj3027++
|
|
if yyhl3027 {
|
|
yyb3027 = yyj3027 > l
|
|
} else {
|
|
yyb3027 = r.CheckBreak()
|
|
}
|
|
if yyb3027 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3027-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3030 := z.EncBinary()
|
|
_ = yym3030
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3031 := !z.EncBinary()
|
|
yy2arr3031 := z.EncBasicHandle().StructToArray
|
|
var yyq3031 [11]bool
|
|
_, _, _ = yysep3031, yyq3031, yy2arr3031
|
|
const yyr3031 bool = false
|
|
yyq3031[0] = x.Kind != ""
|
|
yyq3031[1] = x.APIVersion != ""
|
|
yyq3031[2] = true
|
|
yyq3031[3] = true
|
|
yyq3031[4] = x.Reason != ""
|
|
yyq3031[5] = x.Message != ""
|
|
yyq3031[6] = true
|
|
yyq3031[7] = true
|
|
yyq3031[8] = true
|
|
yyq3031[9] = x.Count != 0
|
|
yyq3031[10] = x.Type != ""
|
|
var yynn3031 int
|
|
if yyr3031 || yy2arr3031 {
|
|
r.EncodeArrayStart(11)
|
|
} else {
|
|
yynn3031 = 0
|
|
for _, b := range yyq3031 {
|
|
if b {
|
|
yynn3031++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3031)
|
|
yynn3031 = 0
|
|
}
|
|
if yyr3031 || yy2arr3031 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3031[0] {
|
|
yym3033 := z.EncBinary()
|
|
_ = yym3033
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3031[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3034 := z.EncBinary()
|
|
_ = yym3034
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr3031 || yy2arr3031 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3031[1] {
|
|
yym3036 := z.EncBinary()
|
|
_ = yym3036
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3031[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3037 := z.EncBinary()
|
|
_ = yym3037
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr3031 || yy2arr3031 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3031[2] {
|
|
yy3039 := &x.ObjectMeta
|
|
yy3039.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3031[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3040 := &x.ObjectMeta
|
|
yy3040.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr3031 || yy2arr3031 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3031[3] {
|
|
yy3042 := &x.InvolvedObject
|
|
yy3042.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3031[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("involvedObject"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3043 := &x.InvolvedObject
|
|
yy3043.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr3031 || yy2arr3031 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3031[4] {
|
|
yym3045 := z.EncBinary()
|
|
_ = yym3045
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3031[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("reason"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3046 := z.EncBinary()
|
|
_ = yym3046
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
|
|
}
|
|
}
|
|
}
|
|
if yyr3031 || yy2arr3031 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3031[5] {
|
|
yym3048 := z.EncBinary()
|
|
_ = yym3048
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3031[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("message"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3049 := z.EncBinary()
|
|
_ = yym3049
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
}
|
|
}
|
|
if yyr3031 || yy2arr3031 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3031[6] {
|
|
yy3051 := &x.Source
|
|
yy3051.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3031[6] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("source"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3052 := &x.Source
|
|
yy3052.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr3031 || yy2arr3031 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3031[7] {
|
|
yy3054 := &x.FirstTimestamp
|
|
yym3055 := z.EncBinary()
|
|
_ = yym3055
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3054) {
|
|
} else if yym3055 {
|
|
z.EncBinaryMarshal(yy3054)
|
|
} else if !yym3055 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy3054)
|
|
} else {
|
|
z.EncFallback(yy3054)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3031[7] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("firstTimestamp"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3056 := &x.FirstTimestamp
|
|
yym3057 := z.EncBinary()
|
|
_ = yym3057
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3056) {
|
|
} else if yym3057 {
|
|
z.EncBinaryMarshal(yy3056)
|
|
} else if !yym3057 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy3056)
|
|
} else {
|
|
z.EncFallback(yy3056)
|
|
}
|
|
}
|
|
}
|
|
if yyr3031 || yy2arr3031 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3031[8] {
|
|
yy3059 := &x.LastTimestamp
|
|
yym3060 := z.EncBinary()
|
|
_ = yym3060
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3059) {
|
|
} else if yym3060 {
|
|
z.EncBinaryMarshal(yy3059)
|
|
} else if !yym3060 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy3059)
|
|
} else {
|
|
z.EncFallback(yy3059)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3031[8] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("lastTimestamp"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3061 := &x.LastTimestamp
|
|
yym3062 := z.EncBinary()
|
|
_ = yym3062
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3061) {
|
|
} else if yym3062 {
|
|
z.EncBinaryMarshal(yy3061)
|
|
} else if !yym3062 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy3061)
|
|
} else {
|
|
z.EncFallback(yy3061)
|
|
}
|
|
}
|
|
}
|
|
if yyr3031 || yy2arr3031 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3031[9] {
|
|
yym3064 := z.EncBinary()
|
|
_ = yym3064
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Count))
|
|
}
|
|
} else {
|
|
r.EncodeInt(0)
|
|
}
|
|
} else {
|
|
if yyq3031[9] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("count"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3065 := z.EncBinary()
|
|
_ = yym3065
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Count))
|
|
}
|
|
}
|
|
}
|
|
if yyr3031 || yy2arr3031 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3031[10] {
|
|
yym3067 := z.EncBinary()
|
|
_ = yym3067
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Type))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3031[10] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("type"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3068 := z.EncBinary()
|
|
_ = yym3068
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Type))
|
|
}
|
|
}
|
|
}
|
|
if yyr3031 || yy2arr3031 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *Event) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym3069 := z.DecBinary()
|
|
_ = yym3069
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3070 := r.ContainerType()
|
|
if yyct3070 == codecSelferValueTypeMap1234 {
|
|
yyl3070 := r.ReadMapStart()
|
|
if yyl3070 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3070, d)
|
|
}
|
|
} else if yyct3070 == codecSelferValueTypeArray1234 {
|
|
yyl3070 := r.ReadArrayStart()
|
|
if yyl3070 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3070, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *Event) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys3071Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3071Slc
|
|
var yyhl3071 bool = l >= 0
|
|
for yyj3071 := 0; ; yyj3071++ {
|
|
if yyhl3071 {
|
|
if yyj3071 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3071Slc = r.DecodeBytes(yys3071Slc, true, true)
|
|
yys3071 := string(yys3071Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3071 {
|
|
case "kind":
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
case "apiVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
case "metadata":
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv3074 := &x.ObjectMeta
|
|
yyv3074.CodecDecodeSelf(d)
|
|
}
|
|
case "involvedObject":
|
|
if r.TryDecodeAsNil() {
|
|
x.InvolvedObject = ObjectReference{}
|
|
} else {
|
|
yyv3075 := &x.InvolvedObject
|
|
yyv3075.CodecDecodeSelf(d)
|
|
}
|
|
case "reason":
|
|
if r.TryDecodeAsNil() {
|
|
x.Reason = ""
|
|
} else {
|
|
x.Reason = string(r.DecodeString())
|
|
}
|
|
case "message":
|
|
if r.TryDecodeAsNil() {
|
|
x.Message = ""
|
|
} else {
|
|
x.Message = string(r.DecodeString())
|
|
}
|
|
case "source":
|
|
if r.TryDecodeAsNil() {
|
|
x.Source = EventSource{}
|
|
} else {
|
|
yyv3078 := &x.Source
|
|
yyv3078.CodecDecodeSelf(d)
|
|
}
|
|
case "firstTimestamp":
|
|
if r.TryDecodeAsNil() {
|
|
x.FirstTimestamp = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv3079 := &x.FirstTimestamp
|
|
yym3080 := z.DecBinary()
|
|
_ = yym3080
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3079) {
|
|
} else if yym3080 {
|
|
z.DecBinaryUnmarshal(yyv3079)
|
|
} else if !yym3080 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv3079)
|
|
} else {
|
|
z.DecFallback(yyv3079, false)
|
|
}
|
|
}
|
|
case "lastTimestamp":
|
|
if r.TryDecodeAsNil() {
|
|
x.LastTimestamp = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv3081 := &x.LastTimestamp
|
|
yym3082 := z.DecBinary()
|
|
_ = yym3082
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3081) {
|
|
} else if yym3082 {
|
|
z.DecBinaryUnmarshal(yyv3081)
|
|
} else if !yym3082 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv3081)
|
|
} else {
|
|
z.DecFallback(yyv3081, false)
|
|
}
|
|
}
|
|
case "count":
|
|
if r.TryDecodeAsNil() {
|
|
x.Count = 0
|
|
} else {
|
|
x.Count = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
case "type":
|
|
if r.TryDecodeAsNil() {
|
|
x.Type = ""
|
|
} else {
|
|
x.Type = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3071)
|
|
} // end switch yys3071
|
|
} // end for yyj3071
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj3085 int
|
|
var yyb3085 bool
|
|
var yyhl3085 bool = l >= 0
|
|
yyj3085++
|
|
if yyhl3085 {
|
|
yyb3085 = yyj3085 > l
|
|
} else {
|
|
yyb3085 = r.CheckBreak()
|
|
}
|
|
if yyb3085 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj3085++
|
|
if yyhl3085 {
|
|
yyb3085 = yyj3085 > l
|
|
} else {
|
|
yyb3085 = r.CheckBreak()
|
|
}
|
|
if yyb3085 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj3085++
|
|
if yyhl3085 {
|
|
yyb3085 = yyj3085 > l
|
|
} else {
|
|
yyb3085 = r.CheckBreak()
|
|
}
|
|
if yyb3085 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv3088 := &x.ObjectMeta
|
|
yyv3088.CodecDecodeSelf(d)
|
|
}
|
|
yyj3085++
|
|
if yyhl3085 {
|
|
yyb3085 = yyj3085 > l
|
|
} else {
|
|
yyb3085 = r.CheckBreak()
|
|
}
|
|
if yyb3085 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.InvolvedObject = ObjectReference{}
|
|
} else {
|
|
yyv3089 := &x.InvolvedObject
|
|
yyv3089.CodecDecodeSelf(d)
|
|
}
|
|
yyj3085++
|
|
if yyhl3085 {
|
|
yyb3085 = yyj3085 > l
|
|
} else {
|
|
yyb3085 = r.CheckBreak()
|
|
}
|
|
if yyb3085 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Reason = ""
|
|
} else {
|
|
x.Reason = string(r.DecodeString())
|
|
}
|
|
yyj3085++
|
|
if yyhl3085 {
|
|
yyb3085 = yyj3085 > l
|
|
} else {
|
|
yyb3085 = r.CheckBreak()
|
|
}
|
|
if yyb3085 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Message = ""
|
|
} else {
|
|
x.Message = string(r.DecodeString())
|
|
}
|
|
yyj3085++
|
|
if yyhl3085 {
|
|
yyb3085 = yyj3085 > l
|
|
} else {
|
|
yyb3085 = r.CheckBreak()
|
|
}
|
|
if yyb3085 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Source = EventSource{}
|
|
} else {
|
|
yyv3092 := &x.Source
|
|
yyv3092.CodecDecodeSelf(d)
|
|
}
|
|
yyj3085++
|
|
if yyhl3085 {
|
|
yyb3085 = yyj3085 > l
|
|
} else {
|
|
yyb3085 = r.CheckBreak()
|
|
}
|
|
if yyb3085 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.FirstTimestamp = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv3093 := &x.FirstTimestamp
|
|
yym3094 := z.DecBinary()
|
|
_ = yym3094
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3093) {
|
|
} else if yym3094 {
|
|
z.DecBinaryUnmarshal(yyv3093)
|
|
} else if !yym3094 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv3093)
|
|
} else {
|
|
z.DecFallback(yyv3093, false)
|
|
}
|
|
}
|
|
yyj3085++
|
|
if yyhl3085 {
|
|
yyb3085 = yyj3085 > l
|
|
} else {
|
|
yyb3085 = r.CheckBreak()
|
|
}
|
|
if yyb3085 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.LastTimestamp = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv3095 := &x.LastTimestamp
|
|
yym3096 := z.DecBinary()
|
|
_ = yym3096
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3095) {
|
|
} else if yym3096 {
|
|
z.DecBinaryUnmarshal(yyv3095)
|
|
} else if !yym3096 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv3095)
|
|
} else {
|
|
z.DecFallback(yyv3095, false)
|
|
}
|
|
}
|
|
yyj3085++
|
|
if yyhl3085 {
|
|
yyb3085 = yyj3085 > l
|
|
} else {
|
|
yyb3085 = r.CheckBreak()
|
|
}
|
|
if yyb3085 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Count = 0
|
|
} else {
|
|
x.Count = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
yyj3085++
|
|
if yyhl3085 {
|
|
yyb3085 = yyj3085 > l
|
|
} else {
|
|
yyb3085 = r.CheckBreak()
|
|
}
|
|
if yyb3085 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Type = ""
|
|
} else {
|
|
x.Type = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj3085++
|
|
if yyhl3085 {
|
|
yyb3085 = yyj3085 > l
|
|
} else {
|
|
yyb3085 = r.CheckBreak()
|
|
}
|
|
if yyb3085 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3085-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *EventList) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3099 := z.EncBinary()
|
|
_ = yym3099
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3100 := !z.EncBinary()
|
|
yy2arr3100 := z.EncBasicHandle().StructToArray
|
|
var yyq3100 [4]bool
|
|
_, _, _ = yysep3100, yyq3100, yy2arr3100
|
|
const yyr3100 bool = false
|
|
yyq3100[0] = x.Kind != ""
|
|
yyq3100[1] = x.APIVersion != ""
|
|
yyq3100[2] = true
|
|
var yynn3100 int
|
|
if yyr3100 || yy2arr3100 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn3100 = 1
|
|
for _, b := range yyq3100 {
|
|
if b {
|
|
yynn3100++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3100)
|
|
yynn3100 = 0
|
|
}
|
|
if yyr3100 || yy2arr3100 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3100[0] {
|
|
yym3102 := z.EncBinary()
|
|
_ = yym3102
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3100[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3103 := z.EncBinary()
|
|
_ = yym3103
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr3100 || yy2arr3100 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3100[1] {
|
|
yym3105 := z.EncBinary()
|
|
_ = yym3105
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3100[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3106 := z.EncBinary()
|
|
_ = yym3106
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr3100 || yy2arr3100 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3100[2] {
|
|
yy3108 := &x.ListMeta
|
|
yym3109 := z.EncBinary()
|
|
_ = yym3109
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3108) {
|
|
} else {
|
|
z.EncFallback(yy3108)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3100[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3110 := &x.ListMeta
|
|
yym3111 := z.EncBinary()
|
|
_ = yym3111
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3110) {
|
|
} else {
|
|
z.EncFallback(yy3110)
|
|
}
|
|
}
|
|
}
|
|
if yyr3100 || yy2arr3100 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3113 := z.EncBinary()
|
|
_ = yym3113
|
|
if false {
|
|
} else {
|
|
h.encSliceEvent(([]Event)(x.Items), e)
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("items"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3114 := z.EncBinary()
|
|
_ = yym3114
|
|
if false {
|
|
} else {
|
|
h.encSliceEvent(([]Event)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr3100 || yy2arr3100 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *EventList) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym3115 := z.DecBinary()
|
|
_ = yym3115
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3116 := r.ContainerType()
|
|
if yyct3116 == codecSelferValueTypeMap1234 {
|
|
yyl3116 := r.ReadMapStart()
|
|
if yyl3116 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3116, d)
|
|
}
|
|
} else if yyct3116 == codecSelferValueTypeArray1234 {
|
|
yyl3116 := r.ReadArrayStart()
|
|
if yyl3116 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3116, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *EventList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys3117Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3117Slc
|
|
var yyhl3117 bool = l >= 0
|
|
for yyj3117 := 0; ; yyj3117++ {
|
|
if yyhl3117 {
|
|
if yyj3117 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3117Slc = r.DecodeBytes(yys3117Slc, true, true)
|
|
yys3117 := string(yys3117Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3117 {
|
|
case "kind":
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
case "apiVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
case "metadata":
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv3120 := &x.ListMeta
|
|
yym3121 := z.DecBinary()
|
|
_ = yym3121
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3120) {
|
|
} else {
|
|
z.DecFallback(yyv3120, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv3122 := &x.Items
|
|
yym3123 := z.DecBinary()
|
|
_ = yym3123
|
|
if false {
|
|
} else {
|
|
h.decSliceEvent((*[]Event)(yyv3122), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3117)
|
|
} // end switch yys3117
|
|
} // end for yyj3117
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *EventList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj3124 int
|
|
var yyb3124 bool
|
|
var yyhl3124 bool = l >= 0
|
|
yyj3124++
|
|
if yyhl3124 {
|
|
yyb3124 = yyj3124 > l
|
|
} else {
|
|
yyb3124 = r.CheckBreak()
|
|
}
|
|
if yyb3124 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj3124++
|
|
if yyhl3124 {
|
|
yyb3124 = yyj3124 > l
|
|
} else {
|
|
yyb3124 = r.CheckBreak()
|
|
}
|
|
if yyb3124 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj3124++
|
|
if yyhl3124 {
|
|
yyb3124 = yyj3124 > l
|
|
} else {
|
|
yyb3124 = r.CheckBreak()
|
|
}
|
|
if yyb3124 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv3127 := &x.ListMeta
|
|
yym3128 := z.DecBinary()
|
|
_ = yym3128
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3127) {
|
|
} else {
|
|
z.DecFallback(yyv3127, false)
|
|
}
|
|
}
|
|
yyj3124++
|
|
if yyhl3124 {
|
|
yyb3124 = yyj3124 > l
|
|
} else {
|
|
yyb3124 = r.CheckBreak()
|
|
}
|
|
if yyb3124 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv3129 := &x.Items
|
|
yym3130 := z.DecBinary()
|
|
_ = yym3130
|
|
if false {
|
|
} else {
|
|
h.decSliceEvent((*[]Event)(yyv3129), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj3124++
|
|
if yyhl3124 {
|
|
yyb3124 = yyj3124 > l
|
|
} else {
|
|
yyb3124 = r.CheckBreak()
|
|
}
|
|
if yyb3124 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3124-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *List) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3131 := z.EncBinary()
|
|
_ = yym3131
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3132 := !z.EncBinary()
|
|
yy2arr3132 := z.EncBasicHandle().StructToArray
|
|
var yyq3132 [4]bool
|
|
_, _, _ = yysep3132, yyq3132, yy2arr3132
|
|
const yyr3132 bool = false
|
|
yyq3132[0] = x.Kind != ""
|
|
yyq3132[1] = x.APIVersion != ""
|
|
yyq3132[2] = true
|
|
var yynn3132 int
|
|
if yyr3132 || yy2arr3132 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn3132 = 1
|
|
for _, b := range yyq3132 {
|
|
if b {
|
|
yynn3132++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3132)
|
|
yynn3132 = 0
|
|
}
|
|
if yyr3132 || yy2arr3132 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3132[0] {
|
|
yym3134 := z.EncBinary()
|
|
_ = yym3134
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3132[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3135 := z.EncBinary()
|
|
_ = yym3135
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr3132 || yy2arr3132 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3132[1] {
|
|
yym3137 := z.EncBinary()
|
|
_ = yym3137
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3132[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3138 := z.EncBinary()
|
|
_ = yym3138
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr3132 || yy2arr3132 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3132[2] {
|
|
yy3140 := &x.ListMeta
|
|
yym3141 := z.EncBinary()
|
|
_ = yym3141
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3140) {
|
|
} else {
|
|
z.EncFallback(yy3140)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3132[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3142 := &x.ListMeta
|
|
yym3143 := z.EncBinary()
|
|
_ = yym3143
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3142) {
|
|
} else {
|
|
z.EncFallback(yy3142)
|
|
}
|
|
}
|
|
}
|
|
if yyr3132 || yy2arr3132 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3145 := z.EncBinary()
|
|
_ = yym3145
|
|
if false {
|
|
} else {
|
|
h.encSliceruntime_Object(([]pkg8_runtime.Object)(x.Items), e)
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("items"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3146 := z.EncBinary()
|
|
_ = yym3146
|
|
if false {
|
|
} else {
|
|
h.encSliceruntime_Object(([]pkg8_runtime.Object)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr3132 || yy2arr3132 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *List) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym3147 := z.DecBinary()
|
|
_ = yym3147
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3148 := r.ContainerType()
|
|
if yyct3148 == codecSelferValueTypeMap1234 {
|
|
yyl3148 := r.ReadMapStart()
|
|
if yyl3148 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3148, d)
|
|
}
|
|
} else if yyct3148 == codecSelferValueTypeArray1234 {
|
|
yyl3148 := r.ReadArrayStart()
|
|
if yyl3148 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3148, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *List) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys3149Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3149Slc
|
|
var yyhl3149 bool = l >= 0
|
|
for yyj3149 := 0; ; yyj3149++ {
|
|
if yyhl3149 {
|
|
if yyj3149 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3149Slc = r.DecodeBytes(yys3149Slc, true, true)
|
|
yys3149 := string(yys3149Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3149 {
|
|
case "kind":
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
case "apiVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
case "metadata":
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv3152 := &x.ListMeta
|
|
yym3153 := z.DecBinary()
|
|
_ = yym3153
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3152) {
|
|
} else {
|
|
z.DecFallback(yyv3152, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv3154 := &x.Items
|
|
yym3155 := z.DecBinary()
|
|
_ = yym3155
|
|
if false {
|
|
} else {
|
|
h.decSliceruntime_Object((*[]pkg8_runtime.Object)(yyv3154), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3149)
|
|
} // end switch yys3149
|
|
} // end for yyj3149
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *List) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj3156 int
|
|
var yyb3156 bool
|
|
var yyhl3156 bool = l >= 0
|
|
yyj3156++
|
|
if yyhl3156 {
|
|
yyb3156 = yyj3156 > l
|
|
} else {
|
|
yyb3156 = r.CheckBreak()
|
|
}
|
|
if yyb3156 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj3156++
|
|
if yyhl3156 {
|
|
yyb3156 = yyj3156 > l
|
|
} else {
|
|
yyb3156 = r.CheckBreak()
|
|
}
|
|
if yyb3156 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj3156++
|
|
if yyhl3156 {
|
|
yyb3156 = yyj3156 > l
|
|
} else {
|
|
yyb3156 = r.CheckBreak()
|
|
}
|
|
if yyb3156 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv3159 := &x.ListMeta
|
|
yym3160 := z.DecBinary()
|
|
_ = yym3160
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3159) {
|
|
} else {
|
|
z.DecFallback(yyv3159, false)
|
|
}
|
|
}
|
|
yyj3156++
|
|
if yyhl3156 {
|
|
yyb3156 = yyj3156 > l
|
|
} else {
|
|
yyb3156 = r.CheckBreak()
|
|
}
|
|
if yyb3156 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv3161 := &x.Items
|
|
yym3162 := z.DecBinary()
|
|
_ = yym3162
|
|
if false {
|
|
} else {
|
|
h.decSliceruntime_Object((*[]pkg8_runtime.Object)(yyv3161), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj3156++
|
|
if yyhl3156 {
|
|
yyb3156 = yyj3156 > l
|
|
} else {
|
|
yyb3156 = r.CheckBreak()
|
|
}
|
|
if yyb3156 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3156-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x LimitType) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym3163 := z.EncBinary()
|
|
_ = yym3163
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x))
|
|
}
|
|
}
|
|
|
|
func (x *LimitType) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym3164 := z.DecBinary()
|
|
_ = yym3164
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
*((*string)(x)) = r.DecodeString()
|
|
}
|
|
}
|
|
|
|
func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3165 := z.EncBinary()
|
|
_ = yym3165
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3166 := !z.EncBinary()
|
|
yy2arr3166 := z.EncBasicHandle().StructToArray
|
|
var yyq3166 [6]bool
|
|
_, _, _ = yysep3166, yyq3166, yy2arr3166
|
|
const yyr3166 bool = false
|
|
yyq3166[0] = x.Type != ""
|
|
yyq3166[1] = len(x.Max) != 0
|
|
yyq3166[2] = len(x.Min) != 0
|
|
yyq3166[3] = len(x.Default) != 0
|
|
yyq3166[4] = len(x.DefaultRequest) != 0
|
|
yyq3166[5] = len(x.MaxLimitRequestRatio) != 0
|
|
var yynn3166 int
|
|
if yyr3166 || yy2arr3166 {
|
|
r.EncodeArrayStart(6)
|
|
} else {
|
|
yynn3166 = 0
|
|
for _, b := range yyq3166 {
|
|
if b {
|
|
yynn3166++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3166)
|
|
yynn3166 = 0
|
|
}
|
|
if yyr3166 || yy2arr3166 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3166[0] {
|
|
x.Type.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3166[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("type"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Type.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr3166 || yy2arr3166 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3166[1] {
|
|
if x.Max == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Max.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3166[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("max"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Max == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Max.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr3166 || yy2arr3166 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3166[2] {
|
|
if x.Min == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Min.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3166[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("min"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Min == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Min.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr3166 || yy2arr3166 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3166[3] {
|
|
if x.Default == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Default.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3166[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("default"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Default == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Default.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr3166 || yy2arr3166 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3166[4] {
|
|
if x.DefaultRequest == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.DefaultRequest.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3166[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("defaultRequest"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.DefaultRequest == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.DefaultRequest.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr3166 || yy2arr3166 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3166[5] {
|
|
if x.MaxLimitRequestRatio == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.MaxLimitRequestRatio.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3166[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("maxLimitRequestRatio"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.MaxLimitRequestRatio == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.MaxLimitRequestRatio.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr3166 || yy2arr3166 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *LimitRangeItem) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym3173 := z.DecBinary()
|
|
_ = yym3173
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3174 := r.ContainerType()
|
|
if yyct3174 == codecSelferValueTypeMap1234 {
|
|
yyl3174 := r.ReadMapStart()
|
|
if yyl3174 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3174, d)
|
|
}
|
|
} else if yyct3174 == codecSelferValueTypeArray1234 {
|
|
yyl3174 := r.ReadArrayStart()
|
|
if yyl3174 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3174, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *LimitRangeItem) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys3175Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3175Slc
|
|
var yyhl3175 bool = l >= 0
|
|
for yyj3175 := 0; ; yyj3175++ {
|
|
if yyhl3175 {
|
|
if yyj3175 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3175Slc = r.DecodeBytes(yys3175Slc, true, true)
|
|
yys3175 := string(yys3175Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3175 {
|
|
case "type":
|
|
if r.TryDecodeAsNil() {
|
|
x.Type = ""
|
|
} else {
|
|
x.Type = LimitType(r.DecodeString())
|
|
}
|
|
case "max":
|
|
if r.TryDecodeAsNil() {
|
|
x.Max = nil
|
|
} else {
|
|
yyv3177 := &x.Max
|
|
yyv3177.CodecDecodeSelf(d)
|
|
}
|
|
case "min":
|
|
if r.TryDecodeAsNil() {
|
|
x.Min = nil
|
|
} else {
|
|
yyv3178 := &x.Min
|
|
yyv3178.CodecDecodeSelf(d)
|
|
}
|
|
case "default":
|
|
if r.TryDecodeAsNil() {
|
|
x.Default = nil
|
|
} else {
|
|
yyv3179 := &x.Default
|
|
yyv3179.CodecDecodeSelf(d)
|
|
}
|
|
case "defaultRequest":
|
|
if r.TryDecodeAsNil() {
|
|
x.DefaultRequest = nil
|
|
} else {
|
|
yyv3180 := &x.DefaultRequest
|
|
yyv3180.CodecDecodeSelf(d)
|
|
}
|
|
case "maxLimitRequestRatio":
|
|
if r.TryDecodeAsNil() {
|
|
x.MaxLimitRequestRatio = nil
|
|
} else {
|
|
yyv3181 := &x.MaxLimitRequestRatio
|
|
yyv3181.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3175)
|
|
} // end switch yys3175
|
|
} // end for yyj3175
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj3182 int
|
|
var yyb3182 bool
|
|
var yyhl3182 bool = l >= 0
|
|
yyj3182++
|
|
if yyhl3182 {
|
|
yyb3182 = yyj3182 > l
|
|
} else {
|
|
yyb3182 = r.CheckBreak()
|
|
}
|
|
if yyb3182 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Type = ""
|
|
} else {
|
|
x.Type = LimitType(r.DecodeString())
|
|
}
|
|
yyj3182++
|
|
if yyhl3182 {
|
|
yyb3182 = yyj3182 > l
|
|
} else {
|
|
yyb3182 = r.CheckBreak()
|
|
}
|
|
if yyb3182 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Max = nil
|
|
} else {
|
|
yyv3184 := &x.Max
|
|
yyv3184.CodecDecodeSelf(d)
|
|
}
|
|
yyj3182++
|
|
if yyhl3182 {
|
|
yyb3182 = yyj3182 > l
|
|
} else {
|
|
yyb3182 = r.CheckBreak()
|
|
}
|
|
if yyb3182 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Min = nil
|
|
} else {
|
|
yyv3185 := &x.Min
|
|
yyv3185.CodecDecodeSelf(d)
|
|
}
|
|
yyj3182++
|
|
if yyhl3182 {
|
|
yyb3182 = yyj3182 > l
|
|
} else {
|
|
yyb3182 = r.CheckBreak()
|
|
}
|
|
if yyb3182 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Default = nil
|
|
} else {
|
|
yyv3186 := &x.Default
|
|
yyv3186.CodecDecodeSelf(d)
|
|
}
|
|
yyj3182++
|
|
if yyhl3182 {
|
|
yyb3182 = yyj3182 > l
|
|
} else {
|
|
yyb3182 = r.CheckBreak()
|
|
}
|
|
if yyb3182 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.DefaultRequest = nil
|
|
} else {
|
|
yyv3187 := &x.DefaultRequest
|
|
yyv3187.CodecDecodeSelf(d)
|
|
}
|
|
yyj3182++
|
|
if yyhl3182 {
|
|
yyb3182 = yyj3182 > l
|
|
} else {
|
|
yyb3182 = r.CheckBreak()
|
|
}
|
|
if yyb3182 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.MaxLimitRequestRatio = nil
|
|
} else {
|
|
yyv3188 := &x.MaxLimitRequestRatio
|
|
yyv3188.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj3182++
|
|
if yyhl3182 {
|
|
yyb3182 = yyj3182 > l
|
|
} else {
|
|
yyb3182 = r.CheckBreak()
|
|
}
|
|
if yyb3182 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3182-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *LimitRangeSpec) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3189 := z.EncBinary()
|
|
_ = yym3189
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3190 := !z.EncBinary()
|
|
yy2arr3190 := z.EncBasicHandle().StructToArray
|
|
var yyq3190 [1]bool
|
|
_, _, _ = yysep3190, yyq3190, yy2arr3190
|
|
const yyr3190 bool = false
|
|
var yynn3190 int
|
|
if yyr3190 || yy2arr3190 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn3190 = 1
|
|
for _, b := range yyq3190 {
|
|
if b {
|
|
yynn3190++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3190)
|
|
yynn3190 = 0
|
|
}
|
|
if yyr3190 || yy2arr3190 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Limits == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3192 := z.EncBinary()
|
|
_ = yym3192
|
|
if false {
|
|
} else {
|
|
h.encSliceLimitRangeItem(([]LimitRangeItem)(x.Limits), e)
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("limits"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Limits == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3193 := z.EncBinary()
|
|
_ = yym3193
|
|
if false {
|
|
} else {
|
|
h.encSliceLimitRangeItem(([]LimitRangeItem)(x.Limits), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr3190 || yy2arr3190 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *LimitRangeSpec) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym3194 := z.DecBinary()
|
|
_ = yym3194
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3195 := r.ContainerType()
|
|
if yyct3195 == codecSelferValueTypeMap1234 {
|
|
yyl3195 := r.ReadMapStart()
|
|
if yyl3195 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3195, d)
|
|
}
|
|
} else if yyct3195 == codecSelferValueTypeArray1234 {
|
|
yyl3195 := r.ReadArrayStart()
|
|
if yyl3195 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3195, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *LimitRangeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys3196Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3196Slc
|
|
var yyhl3196 bool = l >= 0
|
|
for yyj3196 := 0; ; yyj3196++ {
|
|
if yyhl3196 {
|
|
if yyj3196 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3196Slc = r.DecodeBytes(yys3196Slc, true, true)
|
|
yys3196 := string(yys3196Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3196 {
|
|
case "limits":
|
|
if r.TryDecodeAsNil() {
|
|
x.Limits = nil
|
|
} else {
|
|
yyv3197 := &x.Limits
|
|
yym3198 := z.DecBinary()
|
|
_ = yym3198
|
|
if false {
|
|
} else {
|
|
h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv3197), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3196)
|
|
} // end switch yys3196
|
|
} // end for yyj3196
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *LimitRangeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj3199 int
|
|
var yyb3199 bool
|
|
var yyhl3199 bool = l >= 0
|
|
yyj3199++
|
|
if yyhl3199 {
|
|
yyb3199 = yyj3199 > l
|
|
} else {
|
|
yyb3199 = r.CheckBreak()
|
|
}
|
|
if yyb3199 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Limits = nil
|
|
} else {
|
|
yyv3200 := &x.Limits
|
|
yym3201 := z.DecBinary()
|
|
_ = yym3201
|
|
if false {
|
|
} else {
|
|
h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv3200), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj3199++
|
|
if yyhl3199 {
|
|
yyb3199 = yyj3199 > l
|
|
} else {
|
|
yyb3199 = r.CheckBreak()
|
|
}
|
|
if yyb3199 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3199-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *LimitRange) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3202 := z.EncBinary()
|
|
_ = yym3202
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3203 := !z.EncBinary()
|
|
yy2arr3203 := z.EncBasicHandle().StructToArray
|
|
var yyq3203 [4]bool
|
|
_, _, _ = yysep3203, yyq3203, yy2arr3203
|
|
const yyr3203 bool = false
|
|
yyq3203[0] = x.Kind != ""
|
|
yyq3203[1] = x.APIVersion != ""
|
|
yyq3203[2] = true
|
|
yyq3203[3] = true
|
|
var yynn3203 int
|
|
if yyr3203 || yy2arr3203 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn3203 = 0
|
|
for _, b := range yyq3203 {
|
|
if b {
|
|
yynn3203++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3203)
|
|
yynn3203 = 0
|
|
}
|
|
if yyr3203 || yy2arr3203 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3203[0] {
|
|
yym3205 := z.EncBinary()
|
|
_ = yym3205
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3203[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3206 := z.EncBinary()
|
|
_ = yym3206
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr3203 || yy2arr3203 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3203[1] {
|
|
yym3208 := z.EncBinary()
|
|
_ = yym3208
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3203[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3209 := z.EncBinary()
|
|
_ = yym3209
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr3203 || yy2arr3203 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3203[2] {
|
|
yy3211 := &x.ObjectMeta
|
|
yy3211.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3203[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3212 := &x.ObjectMeta
|
|
yy3212.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr3203 || yy2arr3203 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3203[3] {
|
|
yy3214 := &x.Spec
|
|
yy3214.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3203[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("spec"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3215 := &x.Spec
|
|
yy3215.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr3203 || yy2arr3203 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *LimitRange) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym3216 := z.DecBinary()
|
|
_ = yym3216
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3217 := r.ContainerType()
|
|
if yyct3217 == codecSelferValueTypeMap1234 {
|
|
yyl3217 := r.ReadMapStart()
|
|
if yyl3217 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3217, d)
|
|
}
|
|
} else if yyct3217 == codecSelferValueTypeArray1234 {
|
|
yyl3217 := r.ReadArrayStart()
|
|
if yyl3217 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3217, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *LimitRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys3218Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3218Slc
|
|
var yyhl3218 bool = l >= 0
|
|
for yyj3218 := 0; ; yyj3218++ {
|
|
if yyhl3218 {
|
|
if yyj3218 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3218Slc = r.DecodeBytes(yys3218Slc, true, true)
|
|
yys3218 := string(yys3218Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3218 {
|
|
case "kind":
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
case "apiVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
case "metadata":
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv3221 := &x.ObjectMeta
|
|
yyv3221.CodecDecodeSelf(d)
|
|
}
|
|
case "spec":
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = LimitRangeSpec{}
|
|
} else {
|
|
yyv3222 := &x.Spec
|
|
yyv3222.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3218)
|
|
} // end switch yys3218
|
|
} // end for yyj3218
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *LimitRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj3223 int
|
|
var yyb3223 bool
|
|
var yyhl3223 bool = l >= 0
|
|
yyj3223++
|
|
if yyhl3223 {
|
|
yyb3223 = yyj3223 > l
|
|
} else {
|
|
yyb3223 = r.CheckBreak()
|
|
}
|
|
if yyb3223 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj3223++
|
|
if yyhl3223 {
|
|
yyb3223 = yyj3223 > l
|
|
} else {
|
|
yyb3223 = r.CheckBreak()
|
|
}
|
|
if yyb3223 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj3223++
|
|
if yyhl3223 {
|
|
yyb3223 = yyj3223 > l
|
|
} else {
|
|
yyb3223 = r.CheckBreak()
|
|
}
|
|
if yyb3223 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv3226 := &x.ObjectMeta
|
|
yyv3226.CodecDecodeSelf(d)
|
|
}
|
|
yyj3223++
|
|
if yyhl3223 {
|
|
yyb3223 = yyj3223 > l
|
|
} else {
|
|
yyb3223 = r.CheckBreak()
|
|
}
|
|
if yyb3223 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = LimitRangeSpec{}
|
|
} else {
|
|
yyv3227 := &x.Spec
|
|
yyv3227.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj3223++
|
|
if yyhl3223 {
|
|
yyb3223 = yyj3223 > l
|
|
} else {
|
|
yyb3223 = r.CheckBreak()
|
|
}
|
|
if yyb3223 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3223-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *LimitRangeList) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3228 := z.EncBinary()
|
|
_ = yym3228
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3229 := !z.EncBinary()
|
|
yy2arr3229 := z.EncBasicHandle().StructToArray
|
|
var yyq3229 [4]bool
|
|
_, _, _ = yysep3229, yyq3229, yy2arr3229
|
|
const yyr3229 bool = false
|
|
yyq3229[0] = x.Kind != ""
|
|
yyq3229[1] = x.APIVersion != ""
|
|
yyq3229[2] = true
|
|
var yynn3229 int
|
|
if yyr3229 || yy2arr3229 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn3229 = 1
|
|
for _, b := range yyq3229 {
|
|
if b {
|
|
yynn3229++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3229)
|
|
yynn3229 = 0
|
|
}
|
|
if yyr3229 || yy2arr3229 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3229[0] {
|
|
yym3231 := z.EncBinary()
|
|
_ = yym3231
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3229[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3232 := z.EncBinary()
|
|
_ = yym3232
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr3229 || yy2arr3229 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3229[1] {
|
|
yym3234 := z.EncBinary()
|
|
_ = yym3234
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3229[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3235 := z.EncBinary()
|
|
_ = yym3235
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr3229 || yy2arr3229 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3229[2] {
|
|
yy3237 := &x.ListMeta
|
|
yym3238 := z.EncBinary()
|
|
_ = yym3238
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3237) {
|
|
} else {
|
|
z.EncFallback(yy3237)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3229[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3239 := &x.ListMeta
|
|
yym3240 := z.EncBinary()
|
|
_ = yym3240
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3239) {
|
|
} else {
|
|
z.EncFallback(yy3239)
|
|
}
|
|
}
|
|
}
|
|
if yyr3229 || yy2arr3229 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3242 := z.EncBinary()
|
|
_ = yym3242
|
|
if false {
|
|
} else {
|
|
h.encSliceLimitRange(([]LimitRange)(x.Items), e)
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("items"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3243 := z.EncBinary()
|
|
_ = yym3243
|
|
if false {
|
|
} else {
|
|
h.encSliceLimitRange(([]LimitRange)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr3229 || yy2arr3229 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *LimitRangeList) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym3244 := z.DecBinary()
|
|
_ = yym3244
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3245 := r.ContainerType()
|
|
if yyct3245 == codecSelferValueTypeMap1234 {
|
|
yyl3245 := r.ReadMapStart()
|
|
if yyl3245 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3245, d)
|
|
}
|
|
} else if yyct3245 == codecSelferValueTypeArray1234 {
|
|
yyl3245 := r.ReadArrayStart()
|
|
if yyl3245 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3245, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *LimitRangeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys3246Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3246Slc
|
|
var yyhl3246 bool = l >= 0
|
|
for yyj3246 := 0; ; yyj3246++ {
|
|
if yyhl3246 {
|
|
if yyj3246 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3246Slc = r.DecodeBytes(yys3246Slc, true, true)
|
|
yys3246 := string(yys3246Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3246 {
|
|
case "kind":
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
case "apiVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
case "metadata":
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv3249 := &x.ListMeta
|
|
yym3250 := z.DecBinary()
|
|
_ = yym3250
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3249) {
|
|
} else {
|
|
z.DecFallback(yyv3249, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv3251 := &x.Items
|
|
yym3252 := z.DecBinary()
|
|
_ = yym3252
|
|
if false {
|
|
} else {
|
|
h.decSliceLimitRange((*[]LimitRange)(yyv3251), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3246)
|
|
} // end switch yys3246
|
|
} // end for yyj3246
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *LimitRangeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj3253 int
|
|
var yyb3253 bool
|
|
var yyhl3253 bool = l >= 0
|
|
yyj3253++
|
|
if yyhl3253 {
|
|
yyb3253 = yyj3253 > l
|
|
} else {
|
|
yyb3253 = r.CheckBreak()
|
|
}
|
|
if yyb3253 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj3253++
|
|
if yyhl3253 {
|
|
yyb3253 = yyj3253 > l
|
|
} else {
|
|
yyb3253 = r.CheckBreak()
|
|
}
|
|
if yyb3253 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj3253++
|
|
if yyhl3253 {
|
|
yyb3253 = yyj3253 > l
|
|
} else {
|
|
yyb3253 = r.CheckBreak()
|
|
}
|
|
if yyb3253 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv3256 := &x.ListMeta
|
|
yym3257 := z.DecBinary()
|
|
_ = yym3257
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3256) {
|
|
} else {
|
|
z.DecFallback(yyv3256, false)
|
|
}
|
|
}
|
|
yyj3253++
|
|
if yyhl3253 {
|
|
yyb3253 = yyj3253 > l
|
|
} else {
|
|
yyb3253 = r.CheckBreak()
|
|
}
|
|
if yyb3253 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv3258 := &x.Items
|
|
yym3259 := z.DecBinary()
|
|
_ = yym3259
|
|
if false {
|
|
} else {
|
|
h.decSliceLimitRange((*[]LimitRange)(yyv3258), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj3253++
|
|
if yyhl3253 {
|
|
yyb3253 = yyj3253 > l
|
|
} else {
|
|
yyb3253 = r.CheckBreak()
|
|
}
|
|
if yyb3253 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3253-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3260 := z.EncBinary()
|
|
_ = yym3260
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3261 := !z.EncBinary()
|
|
yy2arr3261 := z.EncBasicHandle().StructToArray
|
|
var yyq3261 [1]bool
|
|
_, _, _ = yysep3261, yyq3261, yy2arr3261
|
|
const yyr3261 bool = false
|
|
yyq3261[0] = len(x.Hard) != 0
|
|
var yynn3261 int
|
|
if yyr3261 || yy2arr3261 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn3261 = 0
|
|
for _, b := range yyq3261 {
|
|
if b {
|
|
yynn3261++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3261)
|
|
yynn3261 = 0
|
|
}
|
|
if yyr3261 || yy2arr3261 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3261[0] {
|
|
if x.Hard == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Hard.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3261[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("hard"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Hard == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Hard.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr3261 || yy2arr3261 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ResourceQuotaSpec) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym3263 := z.DecBinary()
|
|
_ = yym3263
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3264 := r.ContainerType()
|
|
if yyct3264 == codecSelferValueTypeMap1234 {
|
|
yyl3264 := r.ReadMapStart()
|
|
if yyl3264 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3264, d)
|
|
}
|
|
} else if yyct3264 == codecSelferValueTypeArray1234 {
|
|
yyl3264 := r.ReadArrayStart()
|
|
if yyl3264 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3264, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ResourceQuotaSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys3265Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3265Slc
|
|
var yyhl3265 bool = l >= 0
|
|
for yyj3265 := 0; ; yyj3265++ {
|
|
if yyhl3265 {
|
|
if yyj3265 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3265Slc = r.DecodeBytes(yys3265Slc, true, true)
|
|
yys3265 := string(yys3265Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3265 {
|
|
case "hard":
|
|
if r.TryDecodeAsNil() {
|
|
x.Hard = nil
|
|
} else {
|
|
yyv3266 := &x.Hard
|
|
yyv3266.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3265)
|
|
} // end switch yys3265
|
|
} // end for yyj3265
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *ResourceQuotaSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj3267 int
|
|
var yyb3267 bool
|
|
var yyhl3267 bool = l >= 0
|
|
yyj3267++
|
|
if yyhl3267 {
|
|
yyb3267 = yyj3267 > l
|
|
} else {
|
|
yyb3267 = r.CheckBreak()
|
|
}
|
|
if yyb3267 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Hard = nil
|
|
} else {
|
|
yyv3268 := &x.Hard
|
|
yyv3268.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj3267++
|
|
if yyhl3267 {
|
|
yyb3267 = yyj3267 > l
|
|
} else {
|
|
yyb3267 = r.CheckBreak()
|
|
}
|
|
if yyb3267 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3267-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *ResourceQuotaStatus) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3269 := z.EncBinary()
|
|
_ = yym3269
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3270 := !z.EncBinary()
|
|
yy2arr3270 := z.EncBasicHandle().StructToArray
|
|
var yyq3270 [2]bool
|
|
_, _, _ = yysep3270, yyq3270, yy2arr3270
|
|
const yyr3270 bool = false
|
|
yyq3270[0] = len(x.Hard) != 0
|
|
yyq3270[1] = len(x.Used) != 0
|
|
var yynn3270 int
|
|
if yyr3270 || yy2arr3270 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn3270 = 0
|
|
for _, b := range yyq3270 {
|
|
if b {
|
|
yynn3270++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3270)
|
|
yynn3270 = 0
|
|
}
|
|
if yyr3270 || yy2arr3270 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3270[0] {
|
|
if x.Hard == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Hard.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3270[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("hard"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Hard == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Hard.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr3270 || yy2arr3270 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3270[1] {
|
|
if x.Used == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Used.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3270[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("used"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Used == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Used.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr3270 || yy2arr3270 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ResourceQuotaStatus) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym3273 := z.DecBinary()
|
|
_ = yym3273
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3274 := r.ContainerType()
|
|
if yyct3274 == codecSelferValueTypeMap1234 {
|
|
yyl3274 := r.ReadMapStart()
|
|
if yyl3274 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3274, d)
|
|
}
|
|
} else if yyct3274 == codecSelferValueTypeArray1234 {
|
|
yyl3274 := r.ReadArrayStart()
|
|
if yyl3274 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3274, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ResourceQuotaStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys3275Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3275Slc
|
|
var yyhl3275 bool = l >= 0
|
|
for yyj3275 := 0; ; yyj3275++ {
|
|
if yyhl3275 {
|
|
if yyj3275 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3275Slc = r.DecodeBytes(yys3275Slc, true, true)
|
|
yys3275 := string(yys3275Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3275 {
|
|
case "hard":
|
|
if r.TryDecodeAsNil() {
|
|
x.Hard = nil
|
|
} else {
|
|
yyv3276 := &x.Hard
|
|
yyv3276.CodecDecodeSelf(d)
|
|
}
|
|
case "used":
|
|
if r.TryDecodeAsNil() {
|
|
x.Used = nil
|
|
} else {
|
|
yyv3277 := &x.Used
|
|
yyv3277.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3275)
|
|
} // end switch yys3275
|
|
} // end for yyj3275
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *ResourceQuotaStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj3278 int
|
|
var yyb3278 bool
|
|
var yyhl3278 bool = l >= 0
|
|
yyj3278++
|
|
if yyhl3278 {
|
|
yyb3278 = yyj3278 > l
|
|
} else {
|
|
yyb3278 = r.CheckBreak()
|
|
}
|
|
if yyb3278 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Hard = nil
|
|
} else {
|
|
yyv3279 := &x.Hard
|
|
yyv3279.CodecDecodeSelf(d)
|
|
}
|
|
yyj3278++
|
|
if yyhl3278 {
|
|
yyb3278 = yyj3278 > l
|
|
} else {
|
|
yyb3278 = r.CheckBreak()
|
|
}
|
|
if yyb3278 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Used = nil
|
|
} else {
|
|
yyv3280 := &x.Used
|
|
yyv3280.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj3278++
|
|
if yyhl3278 {
|
|
yyb3278 = yyj3278 > l
|
|
} else {
|
|
yyb3278 = r.CheckBreak()
|
|
}
|
|
if yyb3278 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3278-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *ResourceQuota) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3281 := z.EncBinary()
|
|
_ = yym3281
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3282 := !z.EncBinary()
|
|
yy2arr3282 := z.EncBasicHandle().StructToArray
|
|
var yyq3282 [5]bool
|
|
_, _, _ = yysep3282, yyq3282, yy2arr3282
|
|
const yyr3282 bool = false
|
|
yyq3282[0] = x.Kind != ""
|
|
yyq3282[1] = x.APIVersion != ""
|
|
yyq3282[2] = true
|
|
yyq3282[3] = true
|
|
yyq3282[4] = true
|
|
var yynn3282 int
|
|
if yyr3282 || yy2arr3282 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn3282 = 0
|
|
for _, b := range yyq3282 {
|
|
if b {
|
|
yynn3282++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3282)
|
|
yynn3282 = 0
|
|
}
|
|
if yyr3282 || yy2arr3282 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3282[0] {
|
|
yym3284 := z.EncBinary()
|
|
_ = yym3284
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3282[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3285 := z.EncBinary()
|
|
_ = yym3285
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr3282 || yy2arr3282 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3282[1] {
|
|
yym3287 := z.EncBinary()
|
|
_ = yym3287
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3282[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3288 := z.EncBinary()
|
|
_ = yym3288
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr3282 || yy2arr3282 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3282[2] {
|
|
yy3290 := &x.ObjectMeta
|
|
yy3290.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3282[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3291 := &x.ObjectMeta
|
|
yy3291.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr3282 || yy2arr3282 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3282[3] {
|
|
yy3293 := &x.Spec
|
|
yy3293.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3282[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("spec"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3294 := &x.Spec
|
|
yy3294.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr3282 || yy2arr3282 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3282[4] {
|
|
yy3296 := &x.Status
|
|
yy3296.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3282[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("status"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3297 := &x.Status
|
|
yy3297.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr3282 || yy2arr3282 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ResourceQuota) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym3298 := z.DecBinary()
|
|
_ = yym3298
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3299 := r.ContainerType()
|
|
if yyct3299 == codecSelferValueTypeMap1234 {
|
|
yyl3299 := r.ReadMapStart()
|
|
if yyl3299 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3299, d)
|
|
}
|
|
} else if yyct3299 == codecSelferValueTypeArray1234 {
|
|
yyl3299 := r.ReadArrayStart()
|
|
if yyl3299 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3299, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ResourceQuota) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys3300Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3300Slc
|
|
var yyhl3300 bool = l >= 0
|
|
for yyj3300 := 0; ; yyj3300++ {
|
|
if yyhl3300 {
|
|
if yyj3300 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3300Slc = r.DecodeBytes(yys3300Slc, true, true)
|
|
yys3300 := string(yys3300Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3300 {
|
|
case "kind":
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
case "apiVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
case "metadata":
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv3303 := &x.ObjectMeta
|
|
yyv3303.CodecDecodeSelf(d)
|
|
}
|
|
case "spec":
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = ResourceQuotaSpec{}
|
|
} else {
|
|
yyv3304 := &x.Spec
|
|
yyv3304.CodecDecodeSelf(d)
|
|
}
|
|
case "status":
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = ResourceQuotaStatus{}
|
|
} else {
|
|
yyv3305 := &x.Status
|
|
yyv3305.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3300)
|
|
} // end switch yys3300
|
|
} // end for yyj3300
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *ResourceQuota) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj3306 int
|
|
var yyb3306 bool
|
|
var yyhl3306 bool = l >= 0
|
|
yyj3306++
|
|
if yyhl3306 {
|
|
yyb3306 = yyj3306 > l
|
|
} else {
|
|
yyb3306 = r.CheckBreak()
|
|
}
|
|
if yyb3306 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj3306++
|
|
if yyhl3306 {
|
|
yyb3306 = yyj3306 > l
|
|
} else {
|
|
yyb3306 = r.CheckBreak()
|
|
}
|
|
if yyb3306 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj3306++
|
|
if yyhl3306 {
|
|
yyb3306 = yyj3306 > l
|
|
} else {
|
|
yyb3306 = r.CheckBreak()
|
|
}
|
|
if yyb3306 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv3309 := &x.ObjectMeta
|
|
yyv3309.CodecDecodeSelf(d)
|
|
}
|
|
yyj3306++
|
|
if yyhl3306 {
|
|
yyb3306 = yyj3306 > l
|
|
} else {
|
|
yyb3306 = r.CheckBreak()
|
|
}
|
|
if yyb3306 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = ResourceQuotaSpec{}
|
|
} else {
|
|
yyv3310 := &x.Spec
|
|
yyv3310.CodecDecodeSelf(d)
|
|
}
|
|
yyj3306++
|
|
if yyhl3306 {
|
|
yyb3306 = yyj3306 > l
|
|
} else {
|
|
yyb3306 = r.CheckBreak()
|
|
}
|
|
if yyb3306 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = ResourceQuotaStatus{}
|
|
} else {
|
|
yyv3311 := &x.Status
|
|
yyv3311.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj3306++
|
|
if yyhl3306 {
|
|
yyb3306 = yyj3306 > l
|
|
} else {
|
|
yyb3306 = r.CheckBreak()
|
|
}
|
|
if yyb3306 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3306-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *ResourceQuotaList) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3312 := z.EncBinary()
|
|
_ = yym3312
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3313 := !z.EncBinary()
|
|
yy2arr3313 := z.EncBasicHandle().StructToArray
|
|
var yyq3313 [4]bool
|
|
_, _, _ = yysep3313, yyq3313, yy2arr3313
|
|
const yyr3313 bool = false
|
|
yyq3313[0] = x.Kind != ""
|
|
yyq3313[1] = x.APIVersion != ""
|
|
yyq3313[2] = true
|
|
var yynn3313 int
|
|
if yyr3313 || yy2arr3313 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn3313 = 1
|
|
for _, b := range yyq3313 {
|
|
if b {
|
|
yynn3313++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3313)
|
|
yynn3313 = 0
|
|
}
|
|
if yyr3313 || yy2arr3313 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3313[0] {
|
|
yym3315 := z.EncBinary()
|
|
_ = yym3315
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3313[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3316 := z.EncBinary()
|
|
_ = yym3316
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr3313 || yy2arr3313 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3313[1] {
|
|
yym3318 := z.EncBinary()
|
|
_ = yym3318
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3313[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3319 := z.EncBinary()
|
|
_ = yym3319
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr3313 || yy2arr3313 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3313[2] {
|
|
yy3321 := &x.ListMeta
|
|
yym3322 := z.EncBinary()
|
|
_ = yym3322
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3321) {
|
|
} else {
|
|
z.EncFallback(yy3321)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3313[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3323 := &x.ListMeta
|
|
yym3324 := z.EncBinary()
|
|
_ = yym3324
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3323) {
|
|
} else {
|
|
z.EncFallback(yy3323)
|
|
}
|
|
}
|
|
}
|
|
if yyr3313 || yy2arr3313 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3326 := z.EncBinary()
|
|
_ = yym3326
|
|
if false {
|
|
} else {
|
|
h.encSliceResourceQuota(([]ResourceQuota)(x.Items), e)
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("items"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3327 := z.EncBinary()
|
|
_ = yym3327
|
|
if false {
|
|
} else {
|
|
h.encSliceResourceQuota(([]ResourceQuota)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr3313 || yy2arr3313 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ResourceQuotaList) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym3328 := z.DecBinary()
|
|
_ = yym3328
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3329 := r.ContainerType()
|
|
if yyct3329 == codecSelferValueTypeMap1234 {
|
|
yyl3329 := r.ReadMapStart()
|
|
if yyl3329 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3329, d)
|
|
}
|
|
} else if yyct3329 == codecSelferValueTypeArray1234 {
|
|
yyl3329 := r.ReadArrayStart()
|
|
if yyl3329 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3329, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ResourceQuotaList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys3330Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3330Slc
|
|
var yyhl3330 bool = l >= 0
|
|
for yyj3330 := 0; ; yyj3330++ {
|
|
if yyhl3330 {
|
|
if yyj3330 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3330Slc = r.DecodeBytes(yys3330Slc, true, true)
|
|
yys3330 := string(yys3330Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3330 {
|
|
case "kind":
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
case "apiVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
case "metadata":
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv3333 := &x.ListMeta
|
|
yym3334 := z.DecBinary()
|
|
_ = yym3334
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3333) {
|
|
} else {
|
|
z.DecFallback(yyv3333, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv3335 := &x.Items
|
|
yym3336 := z.DecBinary()
|
|
_ = yym3336
|
|
if false {
|
|
} else {
|
|
h.decSliceResourceQuota((*[]ResourceQuota)(yyv3335), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3330)
|
|
} // end switch yys3330
|
|
} // end for yyj3330
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *ResourceQuotaList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj3337 int
|
|
var yyb3337 bool
|
|
var yyhl3337 bool = l >= 0
|
|
yyj3337++
|
|
if yyhl3337 {
|
|
yyb3337 = yyj3337 > l
|
|
} else {
|
|
yyb3337 = r.CheckBreak()
|
|
}
|
|
if yyb3337 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj3337++
|
|
if yyhl3337 {
|
|
yyb3337 = yyj3337 > l
|
|
} else {
|
|
yyb3337 = r.CheckBreak()
|
|
}
|
|
if yyb3337 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj3337++
|
|
if yyhl3337 {
|
|
yyb3337 = yyj3337 > l
|
|
} else {
|
|
yyb3337 = r.CheckBreak()
|
|
}
|
|
if yyb3337 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv3340 := &x.ListMeta
|
|
yym3341 := z.DecBinary()
|
|
_ = yym3341
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3340) {
|
|
} else {
|
|
z.DecFallback(yyv3340, false)
|
|
}
|
|
}
|
|
yyj3337++
|
|
if yyhl3337 {
|
|
yyb3337 = yyj3337 > l
|
|
} else {
|
|
yyb3337 = r.CheckBreak()
|
|
}
|
|
if yyb3337 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv3342 := &x.Items
|
|
yym3343 := z.DecBinary()
|
|
_ = yym3343
|
|
if false {
|
|
} else {
|
|
h.decSliceResourceQuota((*[]ResourceQuota)(yyv3342), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj3337++
|
|
if yyhl3337 {
|
|
yyb3337 = yyj3337 > l
|
|
} else {
|
|
yyb3337 = r.CheckBreak()
|
|
}
|
|
if yyb3337 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3337-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *Secret) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3344 := z.EncBinary()
|
|
_ = yym3344
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3345 := !z.EncBinary()
|
|
yy2arr3345 := z.EncBasicHandle().StructToArray
|
|
var yyq3345 [5]bool
|
|
_, _, _ = yysep3345, yyq3345, yy2arr3345
|
|
const yyr3345 bool = false
|
|
yyq3345[0] = x.Kind != ""
|
|
yyq3345[1] = x.APIVersion != ""
|
|
yyq3345[2] = true
|
|
yyq3345[3] = len(x.Data) != 0
|
|
yyq3345[4] = x.Type != ""
|
|
var yynn3345 int
|
|
if yyr3345 || yy2arr3345 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn3345 = 0
|
|
for _, b := range yyq3345 {
|
|
if b {
|
|
yynn3345++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3345)
|
|
yynn3345 = 0
|
|
}
|
|
if yyr3345 || yy2arr3345 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3345[0] {
|
|
yym3347 := z.EncBinary()
|
|
_ = yym3347
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3345[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3348 := z.EncBinary()
|
|
_ = yym3348
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr3345 || yy2arr3345 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3345[1] {
|
|
yym3350 := z.EncBinary()
|
|
_ = yym3350
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3345[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3351 := z.EncBinary()
|
|
_ = yym3351
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr3345 || yy2arr3345 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3345[2] {
|
|
yy3353 := &x.ObjectMeta
|
|
yy3353.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3345[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3354 := &x.ObjectMeta
|
|
yy3354.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr3345 || yy2arr3345 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3345[3] {
|
|
if x.Data == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3356 := z.EncBinary()
|
|
_ = yym3356
|
|
if false {
|
|
} else {
|
|
h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3345[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("data"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Data == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3357 := z.EncBinary()
|
|
_ = yym3357
|
|
if false {
|
|
} else {
|
|
h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr3345 || yy2arr3345 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3345[4] {
|
|
x.Type.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3345[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("type"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Type.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr3345 || yy2arr3345 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *Secret) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym3359 := z.DecBinary()
|
|
_ = yym3359
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3360 := r.ContainerType()
|
|
if yyct3360 == codecSelferValueTypeMap1234 {
|
|
yyl3360 := r.ReadMapStart()
|
|
if yyl3360 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3360, d)
|
|
}
|
|
} else if yyct3360 == codecSelferValueTypeArray1234 {
|
|
yyl3360 := r.ReadArrayStart()
|
|
if yyl3360 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3360, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *Secret) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys3361Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3361Slc
|
|
var yyhl3361 bool = l >= 0
|
|
for yyj3361 := 0; ; yyj3361++ {
|
|
if yyhl3361 {
|
|
if yyj3361 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3361Slc = r.DecodeBytes(yys3361Slc, true, true)
|
|
yys3361 := string(yys3361Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3361 {
|
|
case "kind":
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
case "apiVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
case "metadata":
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv3364 := &x.ObjectMeta
|
|
yyv3364.CodecDecodeSelf(d)
|
|
}
|
|
case "data":
|
|
if r.TryDecodeAsNil() {
|
|
x.Data = nil
|
|
} else {
|
|
yyv3365 := &x.Data
|
|
yym3366 := z.DecBinary()
|
|
_ = yym3366
|
|
if false {
|
|
} else {
|
|
h.decMapstringSliceuint8((*map[string][]uint8)(yyv3365), d)
|
|
}
|
|
}
|
|
case "type":
|
|
if r.TryDecodeAsNil() {
|
|
x.Type = ""
|
|
} else {
|
|
x.Type = SecretType(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3361)
|
|
} // end switch yys3361
|
|
} // end for yyj3361
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *Secret) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj3368 int
|
|
var yyb3368 bool
|
|
var yyhl3368 bool = l >= 0
|
|
yyj3368++
|
|
if yyhl3368 {
|
|
yyb3368 = yyj3368 > l
|
|
} else {
|
|
yyb3368 = r.CheckBreak()
|
|
}
|
|
if yyb3368 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj3368++
|
|
if yyhl3368 {
|
|
yyb3368 = yyj3368 > l
|
|
} else {
|
|
yyb3368 = r.CheckBreak()
|
|
}
|
|
if yyb3368 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj3368++
|
|
if yyhl3368 {
|
|
yyb3368 = yyj3368 > l
|
|
} else {
|
|
yyb3368 = r.CheckBreak()
|
|
}
|
|
if yyb3368 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv3371 := &x.ObjectMeta
|
|
yyv3371.CodecDecodeSelf(d)
|
|
}
|
|
yyj3368++
|
|
if yyhl3368 {
|
|
yyb3368 = yyj3368 > l
|
|
} else {
|
|
yyb3368 = r.CheckBreak()
|
|
}
|
|
if yyb3368 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Data = nil
|
|
} else {
|
|
yyv3372 := &x.Data
|
|
yym3373 := z.DecBinary()
|
|
_ = yym3373
|
|
if false {
|
|
} else {
|
|
h.decMapstringSliceuint8((*map[string][]uint8)(yyv3372), d)
|
|
}
|
|
}
|
|
yyj3368++
|
|
if yyhl3368 {
|
|
yyb3368 = yyj3368 > l
|
|
} else {
|
|
yyb3368 = r.CheckBreak()
|
|
}
|
|
if yyb3368 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Type = ""
|
|
} else {
|
|
x.Type = SecretType(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj3368++
|
|
if yyhl3368 {
|
|
yyb3368 = yyj3368 > l
|
|
} else {
|
|
yyb3368 = r.CheckBreak()
|
|
}
|
|
if yyb3368 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3368-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x SecretType) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym3375 := z.EncBinary()
|
|
_ = yym3375
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x))
|
|
}
|
|
}
|
|
|
|
func (x *SecretType) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym3376 := z.DecBinary()
|
|
_ = yym3376
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
*((*string)(x)) = r.DecodeString()
|
|
}
|
|
}
|
|
|
|
func (x *SecretList) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3377 := z.EncBinary()
|
|
_ = yym3377
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3378 := !z.EncBinary()
|
|
yy2arr3378 := z.EncBasicHandle().StructToArray
|
|
var yyq3378 [4]bool
|
|
_, _, _ = yysep3378, yyq3378, yy2arr3378
|
|
const yyr3378 bool = false
|
|
yyq3378[0] = x.Kind != ""
|
|
yyq3378[1] = x.APIVersion != ""
|
|
yyq3378[2] = true
|
|
var yynn3378 int
|
|
if yyr3378 || yy2arr3378 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn3378 = 1
|
|
for _, b := range yyq3378 {
|
|
if b {
|
|
yynn3378++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3378)
|
|
yynn3378 = 0
|
|
}
|
|
if yyr3378 || yy2arr3378 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3378[0] {
|
|
yym3380 := z.EncBinary()
|
|
_ = yym3380
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3378[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3381 := z.EncBinary()
|
|
_ = yym3381
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr3378 || yy2arr3378 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3378[1] {
|
|
yym3383 := z.EncBinary()
|
|
_ = yym3383
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3378[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3384 := z.EncBinary()
|
|
_ = yym3384
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr3378 || yy2arr3378 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3378[2] {
|
|
yy3386 := &x.ListMeta
|
|
yym3387 := z.EncBinary()
|
|
_ = yym3387
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3386) {
|
|
} else {
|
|
z.EncFallback(yy3386)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3378[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3388 := &x.ListMeta
|
|
yym3389 := z.EncBinary()
|
|
_ = yym3389
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3388) {
|
|
} else {
|
|
z.EncFallback(yy3388)
|
|
}
|
|
}
|
|
}
|
|
if yyr3378 || yy2arr3378 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3391 := z.EncBinary()
|
|
_ = yym3391
|
|
if false {
|
|
} else {
|
|
h.encSliceSecret(([]Secret)(x.Items), e)
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("items"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3392 := z.EncBinary()
|
|
_ = yym3392
|
|
if false {
|
|
} else {
|
|
h.encSliceSecret(([]Secret)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr3378 || yy2arr3378 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *SecretList) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym3393 := z.DecBinary()
|
|
_ = yym3393
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3394 := r.ContainerType()
|
|
if yyct3394 == codecSelferValueTypeMap1234 {
|
|
yyl3394 := r.ReadMapStart()
|
|
if yyl3394 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3394, d)
|
|
}
|
|
} else if yyct3394 == codecSelferValueTypeArray1234 {
|
|
yyl3394 := r.ReadArrayStart()
|
|
if yyl3394 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3394, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *SecretList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys3395Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3395Slc
|
|
var yyhl3395 bool = l >= 0
|
|
for yyj3395 := 0; ; yyj3395++ {
|
|
if yyhl3395 {
|
|
if yyj3395 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3395Slc = r.DecodeBytes(yys3395Slc, true, true)
|
|
yys3395 := string(yys3395Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3395 {
|
|
case "kind":
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
case "apiVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
case "metadata":
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv3398 := &x.ListMeta
|
|
yym3399 := z.DecBinary()
|
|
_ = yym3399
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3398) {
|
|
} else {
|
|
z.DecFallback(yyv3398, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv3400 := &x.Items
|
|
yym3401 := z.DecBinary()
|
|
_ = yym3401
|
|
if false {
|
|
} else {
|
|
h.decSliceSecret((*[]Secret)(yyv3400), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3395)
|
|
} // end switch yys3395
|
|
} // end for yyj3395
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *SecretList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj3402 int
|
|
var yyb3402 bool
|
|
var yyhl3402 bool = l >= 0
|
|
yyj3402++
|
|
if yyhl3402 {
|
|
yyb3402 = yyj3402 > l
|
|
} else {
|
|
yyb3402 = r.CheckBreak()
|
|
}
|
|
if yyb3402 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj3402++
|
|
if yyhl3402 {
|
|
yyb3402 = yyj3402 > l
|
|
} else {
|
|
yyb3402 = r.CheckBreak()
|
|
}
|
|
if yyb3402 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj3402++
|
|
if yyhl3402 {
|
|
yyb3402 = yyj3402 > l
|
|
} else {
|
|
yyb3402 = r.CheckBreak()
|
|
}
|
|
if yyb3402 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv3405 := &x.ListMeta
|
|
yym3406 := z.DecBinary()
|
|
_ = yym3406
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3405) {
|
|
} else {
|
|
z.DecFallback(yyv3405, false)
|
|
}
|
|
}
|
|
yyj3402++
|
|
if yyhl3402 {
|
|
yyb3402 = yyj3402 > l
|
|
} else {
|
|
yyb3402 = r.CheckBreak()
|
|
}
|
|
if yyb3402 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv3407 := &x.Items
|
|
yym3408 := z.DecBinary()
|
|
_ = yym3408
|
|
if false {
|
|
} else {
|
|
h.decSliceSecret((*[]Secret)(yyv3407), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj3402++
|
|
if yyhl3402 {
|
|
yyb3402 = yyj3402 > l
|
|
} else {
|
|
yyb3402 = r.CheckBreak()
|
|
}
|
|
if yyb3402 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3402-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x PatchType) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym3409 := z.EncBinary()
|
|
_ = yym3409
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x))
|
|
}
|
|
}
|
|
|
|
func (x *PatchType) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym3410 := z.DecBinary()
|
|
_ = yym3410
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
*((*string)(x)) = r.DecodeString()
|
|
}
|
|
}
|
|
|
|
func (x ComponentConditionType) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym3411 := z.EncBinary()
|
|
_ = yym3411
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x))
|
|
}
|
|
}
|
|
|
|
func (x *ComponentConditionType) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym3412 := z.DecBinary()
|
|
_ = yym3412
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
*((*string)(x)) = r.DecodeString()
|
|
}
|
|
}
|
|
|
|
func (x *ComponentCondition) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3413 := z.EncBinary()
|
|
_ = yym3413
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3414 := !z.EncBinary()
|
|
yy2arr3414 := z.EncBasicHandle().StructToArray
|
|
var yyq3414 [4]bool
|
|
_, _, _ = yysep3414, yyq3414, yy2arr3414
|
|
const yyr3414 bool = false
|
|
yyq3414[2] = x.Message != ""
|
|
yyq3414[3] = x.Error != ""
|
|
var yynn3414 int
|
|
if yyr3414 || yy2arr3414 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn3414 = 2
|
|
for _, b := range yyq3414 {
|
|
if b {
|
|
yynn3414++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3414)
|
|
yynn3414 = 0
|
|
}
|
|
if yyr3414 || yy2arr3414 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
x.Type.CodecEncodeSelf(e)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("type"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Type.CodecEncodeSelf(e)
|
|
}
|
|
if yyr3414 || yy2arr3414 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
x.Status.CodecEncodeSelf(e)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("status"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Status.CodecEncodeSelf(e)
|
|
}
|
|
if yyr3414 || yy2arr3414 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3414[2] {
|
|
yym3418 := z.EncBinary()
|
|
_ = yym3418
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3414[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("message"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3419 := z.EncBinary()
|
|
_ = yym3419
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
}
|
|
}
|
|
if yyr3414 || yy2arr3414 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3414[3] {
|
|
yym3421 := z.EncBinary()
|
|
_ = yym3421
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Error))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3414[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("error"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3422 := z.EncBinary()
|
|
_ = yym3422
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Error))
|
|
}
|
|
}
|
|
}
|
|
if yyr3414 || yy2arr3414 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ComponentCondition) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym3423 := z.DecBinary()
|
|
_ = yym3423
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3424 := r.ContainerType()
|
|
if yyct3424 == codecSelferValueTypeMap1234 {
|
|
yyl3424 := r.ReadMapStart()
|
|
if yyl3424 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3424, d)
|
|
}
|
|
} else if yyct3424 == codecSelferValueTypeArray1234 {
|
|
yyl3424 := r.ReadArrayStart()
|
|
if yyl3424 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3424, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ComponentCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys3425Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3425Slc
|
|
var yyhl3425 bool = l >= 0
|
|
for yyj3425 := 0; ; yyj3425++ {
|
|
if yyhl3425 {
|
|
if yyj3425 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3425Slc = r.DecodeBytes(yys3425Slc, true, true)
|
|
yys3425 := string(yys3425Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3425 {
|
|
case "type":
|
|
if r.TryDecodeAsNil() {
|
|
x.Type = ""
|
|
} else {
|
|
x.Type = ComponentConditionType(r.DecodeString())
|
|
}
|
|
case "status":
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = ""
|
|
} else {
|
|
x.Status = ConditionStatus(r.DecodeString())
|
|
}
|
|
case "message":
|
|
if r.TryDecodeAsNil() {
|
|
x.Message = ""
|
|
} else {
|
|
x.Message = string(r.DecodeString())
|
|
}
|
|
case "error":
|
|
if r.TryDecodeAsNil() {
|
|
x.Error = ""
|
|
} else {
|
|
x.Error = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3425)
|
|
} // end switch yys3425
|
|
} // end for yyj3425
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *ComponentCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj3430 int
|
|
var yyb3430 bool
|
|
var yyhl3430 bool = l >= 0
|
|
yyj3430++
|
|
if yyhl3430 {
|
|
yyb3430 = yyj3430 > l
|
|
} else {
|
|
yyb3430 = r.CheckBreak()
|
|
}
|
|
if yyb3430 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Type = ""
|
|
} else {
|
|
x.Type = ComponentConditionType(r.DecodeString())
|
|
}
|
|
yyj3430++
|
|
if yyhl3430 {
|
|
yyb3430 = yyj3430 > l
|
|
} else {
|
|
yyb3430 = r.CheckBreak()
|
|
}
|
|
if yyb3430 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = ""
|
|
} else {
|
|
x.Status = ConditionStatus(r.DecodeString())
|
|
}
|
|
yyj3430++
|
|
if yyhl3430 {
|
|
yyb3430 = yyj3430 > l
|
|
} else {
|
|
yyb3430 = r.CheckBreak()
|
|
}
|
|
if yyb3430 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Message = ""
|
|
} else {
|
|
x.Message = string(r.DecodeString())
|
|
}
|
|
yyj3430++
|
|
if yyhl3430 {
|
|
yyb3430 = yyj3430 > l
|
|
} else {
|
|
yyb3430 = r.CheckBreak()
|
|
}
|
|
if yyb3430 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Error = ""
|
|
} else {
|
|
x.Error = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj3430++
|
|
if yyhl3430 {
|
|
yyb3430 = yyj3430 > l
|
|
} else {
|
|
yyb3430 = r.CheckBreak()
|
|
}
|
|
if yyb3430 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3430-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *ComponentStatus) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3435 := z.EncBinary()
|
|
_ = yym3435
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3436 := !z.EncBinary()
|
|
yy2arr3436 := z.EncBasicHandle().StructToArray
|
|
var yyq3436 [4]bool
|
|
_, _, _ = yysep3436, yyq3436, yy2arr3436
|
|
const yyr3436 bool = false
|
|
yyq3436[0] = x.Kind != ""
|
|
yyq3436[1] = x.APIVersion != ""
|
|
yyq3436[2] = true
|
|
yyq3436[3] = len(x.Conditions) != 0
|
|
var yynn3436 int
|
|
if yyr3436 || yy2arr3436 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn3436 = 0
|
|
for _, b := range yyq3436 {
|
|
if b {
|
|
yynn3436++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3436)
|
|
yynn3436 = 0
|
|
}
|
|
if yyr3436 || yy2arr3436 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3436[0] {
|
|
yym3438 := z.EncBinary()
|
|
_ = yym3438
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3436[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3439 := z.EncBinary()
|
|
_ = yym3439
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr3436 || yy2arr3436 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3436[1] {
|
|
yym3441 := z.EncBinary()
|
|
_ = yym3441
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3436[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3442 := z.EncBinary()
|
|
_ = yym3442
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr3436 || yy2arr3436 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3436[2] {
|
|
yy3444 := &x.ObjectMeta
|
|
yy3444.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3436[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3445 := &x.ObjectMeta
|
|
yy3445.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr3436 || yy2arr3436 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3436[3] {
|
|
if x.Conditions == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3447 := z.EncBinary()
|
|
_ = yym3447
|
|
if false {
|
|
} else {
|
|
h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3436[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("conditions"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Conditions == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3448 := z.EncBinary()
|
|
_ = yym3448
|
|
if false {
|
|
} else {
|
|
h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr3436 || yy2arr3436 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ComponentStatus) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym3449 := z.DecBinary()
|
|
_ = yym3449
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3450 := r.ContainerType()
|
|
if yyct3450 == codecSelferValueTypeMap1234 {
|
|
yyl3450 := r.ReadMapStart()
|
|
if yyl3450 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3450, d)
|
|
}
|
|
} else if yyct3450 == codecSelferValueTypeArray1234 {
|
|
yyl3450 := r.ReadArrayStart()
|
|
if yyl3450 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3450, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ComponentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys3451Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3451Slc
|
|
var yyhl3451 bool = l >= 0
|
|
for yyj3451 := 0; ; yyj3451++ {
|
|
if yyhl3451 {
|
|
if yyj3451 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3451Slc = r.DecodeBytes(yys3451Slc, true, true)
|
|
yys3451 := string(yys3451Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3451 {
|
|
case "kind":
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
case "apiVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
case "metadata":
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv3454 := &x.ObjectMeta
|
|
yyv3454.CodecDecodeSelf(d)
|
|
}
|
|
case "conditions":
|
|
if r.TryDecodeAsNil() {
|
|
x.Conditions = nil
|
|
} else {
|
|
yyv3455 := &x.Conditions
|
|
yym3456 := z.DecBinary()
|
|
_ = yym3456
|
|
if false {
|
|
} else {
|
|
h.decSliceComponentCondition((*[]ComponentCondition)(yyv3455), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3451)
|
|
} // end switch yys3451
|
|
} // end for yyj3451
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *ComponentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj3457 int
|
|
var yyb3457 bool
|
|
var yyhl3457 bool = l >= 0
|
|
yyj3457++
|
|
if yyhl3457 {
|
|
yyb3457 = yyj3457 > l
|
|
} else {
|
|
yyb3457 = r.CheckBreak()
|
|
}
|
|
if yyb3457 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj3457++
|
|
if yyhl3457 {
|
|
yyb3457 = yyj3457 > l
|
|
} else {
|
|
yyb3457 = r.CheckBreak()
|
|
}
|
|
if yyb3457 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj3457++
|
|
if yyhl3457 {
|
|
yyb3457 = yyj3457 > l
|
|
} else {
|
|
yyb3457 = r.CheckBreak()
|
|
}
|
|
if yyb3457 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv3460 := &x.ObjectMeta
|
|
yyv3460.CodecDecodeSelf(d)
|
|
}
|
|
yyj3457++
|
|
if yyhl3457 {
|
|
yyb3457 = yyj3457 > l
|
|
} else {
|
|
yyb3457 = r.CheckBreak()
|
|
}
|
|
if yyb3457 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Conditions = nil
|
|
} else {
|
|
yyv3461 := &x.Conditions
|
|
yym3462 := z.DecBinary()
|
|
_ = yym3462
|
|
if false {
|
|
} else {
|
|
h.decSliceComponentCondition((*[]ComponentCondition)(yyv3461), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj3457++
|
|
if yyhl3457 {
|
|
yyb3457 = yyj3457 > l
|
|
} else {
|
|
yyb3457 = r.CheckBreak()
|
|
}
|
|
if yyb3457 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3457-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *ComponentStatusList) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3463 := z.EncBinary()
|
|
_ = yym3463
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3464 := !z.EncBinary()
|
|
yy2arr3464 := z.EncBasicHandle().StructToArray
|
|
var yyq3464 [4]bool
|
|
_, _, _ = yysep3464, yyq3464, yy2arr3464
|
|
const yyr3464 bool = false
|
|
yyq3464[0] = x.Kind != ""
|
|
yyq3464[1] = x.APIVersion != ""
|
|
yyq3464[2] = true
|
|
var yynn3464 int
|
|
if yyr3464 || yy2arr3464 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn3464 = 1
|
|
for _, b := range yyq3464 {
|
|
if b {
|
|
yynn3464++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3464)
|
|
yynn3464 = 0
|
|
}
|
|
if yyr3464 || yy2arr3464 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3464[0] {
|
|
yym3466 := z.EncBinary()
|
|
_ = yym3466
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3464[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3467 := z.EncBinary()
|
|
_ = yym3467
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr3464 || yy2arr3464 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3464[1] {
|
|
yym3469 := z.EncBinary()
|
|
_ = yym3469
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3464[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3470 := z.EncBinary()
|
|
_ = yym3470
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr3464 || yy2arr3464 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3464[2] {
|
|
yy3472 := &x.ListMeta
|
|
yym3473 := z.EncBinary()
|
|
_ = yym3473
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3472) {
|
|
} else {
|
|
z.EncFallback(yy3472)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3464[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3474 := &x.ListMeta
|
|
yym3475 := z.EncBinary()
|
|
_ = yym3475
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3474) {
|
|
} else {
|
|
z.EncFallback(yy3474)
|
|
}
|
|
}
|
|
}
|
|
if yyr3464 || yy2arr3464 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3477 := z.EncBinary()
|
|
_ = yym3477
|
|
if false {
|
|
} else {
|
|
h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e)
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("items"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3478 := z.EncBinary()
|
|
_ = yym3478
|
|
if false {
|
|
} else {
|
|
h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr3464 || yy2arr3464 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ComponentStatusList) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym3479 := z.DecBinary()
|
|
_ = yym3479
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3480 := r.ContainerType()
|
|
if yyct3480 == codecSelferValueTypeMap1234 {
|
|
yyl3480 := r.ReadMapStart()
|
|
if yyl3480 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3480, d)
|
|
}
|
|
} else if yyct3480 == codecSelferValueTypeArray1234 {
|
|
yyl3480 := r.ReadArrayStart()
|
|
if yyl3480 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3480, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ComponentStatusList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys3481Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3481Slc
|
|
var yyhl3481 bool = l >= 0
|
|
for yyj3481 := 0; ; yyj3481++ {
|
|
if yyhl3481 {
|
|
if yyj3481 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3481Slc = r.DecodeBytes(yys3481Slc, true, true)
|
|
yys3481 := string(yys3481Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3481 {
|
|
case "kind":
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
case "apiVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
case "metadata":
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv3484 := &x.ListMeta
|
|
yym3485 := z.DecBinary()
|
|
_ = yym3485
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3484) {
|
|
} else {
|
|
z.DecFallback(yyv3484, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv3486 := &x.Items
|
|
yym3487 := z.DecBinary()
|
|
_ = yym3487
|
|
if false {
|
|
} else {
|
|
h.decSliceComponentStatus((*[]ComponentStatus)(yyv3486), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3481)
|
|
} // end switch yys3481
|
|
} // end for yyj3481
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *ComponentStatusList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj3488 int
|
|
var yyb3488 bool
|
|
var yyhl3488 bool = l >= 0
|
|
yyj3488++
|
|
if yyhl3488 {
|
|
yyb3488 = yyj3488 > l
|
|
} else {
|
|
yyb3488 = r.CheckBreak()
|
|
}
|
|
if yyb3488 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj3488++
|
|
if yyhl3488 {
|
|
yyb3488 = yyj3488 > l
|
|
} else {
|
|
yyb3488 = r.CheckBreak()
|
|
}
|
|
if yyb3488 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj3488++
|
|
if yyhl3488 {
|
|
yyb3488 = yyj3488 > l
|
|
} else {
|
|
yyb3488 = r.CheckBreak()
|
|
}
|
|
if yyb3488 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv3491 := &x.ListMeta
|
|
yym3492 := z.DecBinary()
|
|
_ = yym3492
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3491) {
|
|
} else {
|
|
z.DecFallback(yyv3491, false)
|
|
}
|
|
}
|
|
yyj3488++
|
|
if yyhl3488 {
|
|
yyb3488 = yyj3488 > l
|
|
} else {
|
|
yyb3488 = r.CheckBreak()
|
|
}
|
|
if yyb3488 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv3493 := &x.Items
|
|
yym3494 := z.DecBinary()
|
|
_ = yym3494
|
|
if false {
|
|
} else {
|
|
h.decSliceComponentStatus((*[]ComponentStatus)(yyv3493), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj3488++
|
|
if yyhl3488 {
|
|
yyb3488 = yyj3488 > l
|
|
} else {
|
|
yyb3488 = r.CheckBreak()
|
|
}
|
|
if yyb3488 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3488-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *SecurityContext) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3495 := z.EncBinary()
|
|
_ = yym3495
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3496 := !z.EncBinary()
|
|
yy2arr3496 := z.EncBasicHandle().StructToArray
|
|
var yyq3496 [5]bool
|
|
_, _, _ = yysep3496, yyq3496, yy2arr3496
|
|
const yyr3496 bool = false
|
|
yyq3496[0] = x.Capabilities != nil
|
|
yyq3496[1] = x.Privileged != nil
|
|
yyq3496[2] = x.SELinuxOptions != nil
|
|
yyq3496[3] = x.RunAsUser != nil
|
|
yyq3496[4] = x.RunAsNonRoot != nil
|
|
var yynn3496 int
|
|
if yyr3496 || yy2arr3496 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn3496 = 0
|
|
for _, b := range yyq3496 {
|
|
if b {
|
|
yynn3496++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3496)
|
|
yynn3496 = 0
|
|
}
|
|
if yyr3496 || yy2arr3496 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3496[0] {
|
|
if x.Capabilities == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Capabilities.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3496[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("capabilities"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Capabilities == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Capabilities.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr3496 || yy2arr3496 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3496[1] {
|
|
if x.Privileged == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy3499 := *x.Privileged
|
|
yym3500 := z.EncBinary()
|
|
_ = yym3500
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(yy3499))
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3496[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("privileged"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Privileged == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy3501 := *x.Privileged
|
|
yym3502 := z.EncBinary()
|
|
_ = yym3502
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(yy3501))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr3496 || yy2arr3496 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3496[2] {
|
|
if x.SELinuxOptions == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.SELinuxOptions.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3496[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("seLinuxOptions"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.SELinuxOptions == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.SELinuxOptions.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr3496 || yy2arr3496 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3496[3] {
|
|
if x.RunAsUser == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy3505 := *x.RunAsUser
|
|
yym3506 := z.EncBinary()
|
|
_ = yym3506
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy3505))
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3496[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("runAsUser"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.RunAsUser == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy3507 := *x.RunAsUser
|
|
yym3508 := z.EncBinary()
|
|
_ = yym3508
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy3507))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr3496 || yy2arr3496 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3496[4] {
|
|
if x.RunAsNonRoot == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy3510 := *x.RunAsNonRoot
|
|
yym3511 := z.EncBinary()
|
|
_ = yym3511
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(yy3510))
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3496[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.RunAsNonRoot == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy3512 := *x.RunAsNonRoot
|
|
yym3513 := z.EncBinary()
|
|
_ = yym3513
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(yy3512))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr3496 || yy2arr3496 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *SecurityContext) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym3514 := z.DecBinary()
|
|
_ = yym3514
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3515 := r.ContainerType()
|
|
if yyct3515 == codecSelferValueTypeMap1234 {
|
|
yyl3515 := r.ReadMapStart()
|
|
if yyl3515 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3515, d)
|
|
}
|
|
} else if yyct3515 == codecSelferValueTypeArray1234 {
|
|
yyl3515 := r.ReadArrayStart()
|
|
if yyl3515 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3515, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *SecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys3516Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3516Slc
|
|
var yyhl3516 bool = l >= 0
|
|
for yyj3516 := 0; ; yyj3516++ {
|
|
if yyhl3516 {
|
|
if yyj3516 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3516Slc = r.DecodeBytes(yys3516Slc, true, true)
|
|
yys3516 := string(yys3516Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3516 {
|
|
case "capabilities":
|
|
if r.TryDecodeAsNil() {
|
|
if x.Capabilities != nil {
|
|
x.Capabilities = nil
|
|
}
|
|
} else {
|
|
if x.Capabilities == nil {
|
|
x.Capabilities = new(Capabilities)
|
|
}
|
|
x.Capabilities.CodecDecodeSelf(d)
|
|
}
|
|
case "privileged":
|
|
if r.TryDecodeAsNil() {
|
|
if x.Privileged != nil {
|
|
x.Privileged = nil
|
|
}
|
|
} else {
|
|
if x.Privileged == nil {
|
|
x.Privileged = new(bool)
|
|
}
|
|
yym3519 := z.DecBinary()
|
|
_ = yym3519
|
|
if false {
|
|
} else {
|
|
*((*bool)(x.Privileged)) = r.DecodeBool()
|
|
}
|
|
}
|
|
case "seLinuxOptions":
|
|
if r.TryDecodeAsNil() {
|
|
if x.SELinuxOptions != nil {
|
|
x.SELinuxOptions = nil
|
|
}
|
|
} else {
|
|
if x.SELinuxOptions == nil {
|
|
x.SELinuxOptions = new(SELinuxOptions)
|
|
}
|
|
x.SELinuxOptions.CodecDecodeSelf(d)
|
|
}
|
|
case "runAsUser":
|
|
if r.TryDecodeAsNil() {
|
|
if x.RunAsUser != nil {
|
|
x.RunAsUser = nil
|
|
}
|
|
} else {
|
|
if x.RunAsUser == nil {
|
|
x.RunAsUser = new(int64)
|
|
}
|
|
yym3522 := z.DecBinary()
|
|
_ = yym3522
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
case "runAsNonRoot":
|
|
if r.TryDecodeAsNil() {
|
|
if x.RunAsNonRoot != nil {
|
|
x.RunAsNonRoot = nil
|
|
}
|
|
} else {
|
|
if x.RunAsNonRoot == nil {
|
|
x.RunAsNonRoot = new(bool)
|
|
}
|
|
yym3524 := z.DecBinary()
|
|
_ = yym3524
|
|
if false {
|
|
} else {
|
|
*((*bool)(x.RunAsNonRoot)) = r.DecodeBool()
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3516)
|
|
} // end switch yys3516
|
|
} // end for yyj3516
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj3525 int
|
|
var yyb3525 bool
|
|
var yyhl3525 bool = l >= 0
|
|
yyj3525++
|
|
if yyhl3525 {
|
|
yyb3525 = yyj3525 > l
|
|
} else {
|
|
yyb3525 = r.CheckBreak()
|
|
}
|
|
if yyb3525 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.Capabilities != nil {
|
|
x.Capabilities = nil
|
|
}
|
|
} else {
|
|
if x.Capabilities == nil {
|
|
x.Capabilities = new(Capabilities)
|
|
}
|
|
x.Capabilities.CodecDecodeSelf(d)
|
|
}
|
|
yyj3525++
|
|
if yyhl3525 {
|
|
yyb3525 = yyj3525 > l
|
|
} else {
|
|
yyb3525 = r.CheckBreak()
|
|
}
|
|
if yyb3525 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.Privileged != nil {
|
|
x.Privileged = nil
|
|
}
|
|
} else {
|
|
if x.Privileged == nil {
|
|
x.Privileged = new(bool)
|
|
}
|
|
yym3528 := z.DecBinary()
|
|
_ = yym3528
|
|
if false {
|
|
} else {
|
|
*((*bool)(x.Privileged)) = r.DecodeBool()
|
|
}
|
|
}
|
|
yyj3525++
|
|
if yyhl3525 {
|
|
yyb3525 = yyj3525 > l
|
|
} else {
|
|
yyb3525 = r.CheckBreak()
|
|
}
|
|
if yyb3525 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.SELinuxOptions != nil {
|
|
x.SELinuxOptions = nil
|
|
}
|
|
} else {
|
|
if x.SELinuxOptions == nil {
|
|
x.SELinuxOptions = new(SELinuxOptions)
|
|
}
|
|
x.SELinuxOptions.CodecDecodeSelf(d)
|
|
}
|
|
yyj3525++
|
|
if yyhl3525 {
|
|
yyb3525 = yyj3525 > l
|
|
} else {
|
|
yyb3525 = r.CheckBreak()
|
|
}
|
|
if yyb3525 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.RunAsUser != nil {
|
|
x.RunAsUser = nil
|
|
}
|
|
} else {
|
|
if x.RunAsUser == nil {
|
|
x.RunAsUser = new(int64)
|
|
}
|
|
yym3531 := z.DecBinary()
|
|
_ = yym3531
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
yyj3525++
|
|
if yyhl3525 {
|
|
yyb3525 = yyj3525 > l
|
|
} else {
|
|
yyb3525 = r.CheckBreak()
|
|
}
|
|
if yyb3525 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.RunAsNonRoot != nil {
|
|
x.RunAsNonRoot = nil
|
|
}
|
|
} else {
|
|
if x.RunAsNonRoot == nil {
|
|
x.RunAsNonRoot = new(bool)
|
|
}
|
|
yym3533 := z.DecBinary()
|
|
_ = yym3533
|
|
if false {
|
|
} else {
|
|
*((*bool)(x.RunAsNonRoot)) = r.DecodeBool()
|
|
}
|
|
}
|
|
for {
|
|
yyj3525++
|
|
if yyhl3525 {
|
|
yyb3525 = yyj3525 > l
|
|
} else {
|
|
yyb3525 = r.CheckBreak()
|
|
}
|
|
if yyb3525 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3525-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *SELinuxOptions) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3534 := z.EncBinary()
|
|
_ = yym3534
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3535 := !z.EncBinary()
|
|
yy2arr3535 := z.EncBasicHandle().StructToArray
|
|
var yyq3535 [4]bool
|
|
_, _, _ = yysep3535, yyq3535, yy2arr3535
|
|
const yyr3535 bool = false
|
|
yyq3535[0] = x.User != ""
|
|
yyq3535[1] = x.Role != ""
|
|
yyq3535[2] = x.Type != ""
|
|
yyq3535[3] = x.Level != ""
|
|
var yynn3535 int
|
|
if yyr3535 || yy2arr3535 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn3535 = 0
|
|
for _, b := range yyq3535 {
|
|
if b {
|
|
yynn3535++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3535)
|
|
yynn3535 = 0
|
|
}
|
|
if yyr3535 || yy2arr3535 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3535[0] {
|
|
yym3537 := z.EncBinary()
|
|
_ = yym3537
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.User))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3535[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("user"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3538 := z.EncBinary()
|
|
_ = yym3538
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.User))
|
|
}
|
|
}
|
|
}
|
|
if yyr3535 || yy2arr3535 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3535[1] {
|
|
yym3540 := z.EncBinary()
|
|
_ = yym3540
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Role))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3535[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("role"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3541 := z.EncBinary()
|
|
_ = yym3541
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Role))
|
|
}
|
|
}
|
|
}
|
|
if yyr3535 || yy2arr3535 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3535[2] {
|
|
yym3543 := z.EncBinary()
|
|
_ = yym3543
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Type))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3535[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("type"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3544 := z.EncBinary()
|
|
_ = yym3544
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Type))
|
|
}
|
|
}
|
|
}
|
|
if yyr3535 || yy2arr3535 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3535[3] {
|
|
yym3546 := z.EncBinary()
|
|
_ = yym3546
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Level))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3535[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("level"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3547 := z.EncBinary()
|
|
_ = yym3547
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Level))
|
|
}
|
|
}
|
|
}
|
|
if yyr3535 || yy2arr3535 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *SELinuxOptions) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym3548 := z.DecBinary()
|
|
_ = yym3548
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3549 := r.ContainerType()
|
|
if yyct3549 == codecSelferValueTypeMap1234 {
|
|
yyl3549 := r.ReadMapStart()
|
|
if yyl3549 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3549, d)
|
|
}
|
|
} else if yyct3549 == codecSelferValueTypeArray1234 {
|
|
yyl3549 := r.ReadArrayStart()
|
|
if yyl3549 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3549, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *SELinuxOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys3550Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3550Slc
|
|
var yyhl3550 bool = l >= 0
|
|
for yyj3550 := 0; ; yyj3550++ {
|
|
if yyhl3550 {
|
|
if yyj3550 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3550Slc = r.DecodeBytes(yys3550Slc, true, true)
|
|
yys3550 := string(yys3550Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3550 {
|
|
case "user":
|
|
if r.TryDecodeAsNil() {
|
|
x.User = ""
|
|
} else {
|
|
x.User = string(r.DecodeString())
|
|
}
|
|
case "role":
|
|
if r.TryDecodeAsNil() {
|
|
x.Role = ""
|
|
} else {
|
|
x.Role = string(r.DecodeString())
|
|
}
|
|
case "type":
|
|
if r.TryDecodeAsNil() {
|
|
x.Type = ""
|
|
} else {
|
|
x.Type = string(r.DecodeString())
|
|
}
|
|
case "level":
|
|
if r.TryDecodeAsNil() {
|
|
x.Level = ""
|
|
} else {
|
|
x.Level = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3550)
|
|
} // end switch yys3550
|
|
} // end for yyj3550
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *SELinuxOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj3555 int
|
|
var yyb3555 bool
|
|
var yyhl3555 bool = l >= 0
|
|
yyj3555++
|
|
if yyhl3555 {
|
|
yyb3555 = yyj3555 > l
|
|
} else {
|
|
yyb3555 = r.CheckBreak()
|
|
}
|
|
if yyb3555 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.User = ""
|
|
} else {
|
|
x.User = string(r.DecodeString())
|
|
}
|
|
yyj3555++
|
|
if yyhl3555 {
|
|
yyb3555 = yyj3555 > l
|
|
} else {
|
|
yyb3555 = r.CheckBreak()
|
|
}
|
|
if yyb3555 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Role = ""
|
|
} else {
|
|
x.Role = string(r.DecodeString())
|
|
}
|
|
yyj3555++
|
|
if yyhl3555 {
|
|
yyb3555 = yyj3555 > l
|
|
} else {
|
|
yyb3555 = r.CheckBreak()
|
|
}
|
|
if yyb3555 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Type = ""
|
|
} else {
|
|
x.Type = string(r.DecodeString())
|
|
}
|
|
yyj3555++
|
|
if yyhl3555 {
|
|
yyb3555 = yyj3555 > l
|
|
} else {
|
|
yyb3555 = r.CheckBreak()
|
|
}
|
|
if yyb3555 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Level = ""
|
|
} else {
|
|
x.Level = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj3555++
|
|
if yyhl3555 {
|
|
yyb3555 = yyj3555 > l
|
|
} else {
|
|
yyb3555 = r.CheckBreak()
|
|
}
|
|
if yyb3555 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3555-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *RangeAllocation) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3560 := z.EncBinary()
|
|
_ = yym3560
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3561 := !z.EncBinary()
|
|
yy2arr3561 := z.EncBasicHandle().StructToArray
|
|
var yyq3561 [5]bool
|
|
_, _, _ = yysep3561, yyq3561, yy2arr3561
|
|
const yyr3561 bool = false
|
|
yyq3561[0] = x.Kind != ""
|
|
yyq3561[1] = x.APIVersion != ""
|
|
yyq3561[2] = true
|
|
var yynn3561 int
|
|
if yyr3561 || yy2arr3561 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn3561 = 2
|
|
for _, b := range yyq3561 {
|
|
if b {
|
|
yynn3561++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3561)
|
|
yynn3561 = 0
|
|
}
|
|
if yyr3561 || yy2arr3561 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3561[0] {
|
|
yym3563 := z.EncBinary()
|
|
_ = yym3563
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3561[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3564 := z.EncBinary()
|
|
_ = yym3564
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr3561 || yy2arr3561 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3561[1] {
|
|
yym3566 := z.EncBinary()
|
|
_ = yym3566
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3561[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3567 := z.EncBinary()
|
|
_ = yym3567
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr3561 || yy2arr3561 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3561[2] {
|
|
yy3569 := &x.ObjectMeta
|
|
yy3569.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3561[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3570 := &x.ObjectMeta
|
|
yy3570.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr3561 || yy2arr3561 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym3572 := z.EncBinary()
|
|
_ = yym3572
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Range))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("range"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3573 := z.EncBinary()
|
|
_ = yym3573
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Range))
|
|
}
|
|
}
|
|
if yyr3561 || yy2arr3561 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Data == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3575 := z.EncBinary()
|
|
_ = yym3575
|
|
if false {
|
|
} else {
|
|
r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data))
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("data"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Data == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3576 := z.EncBinary()
|
|
_ = yym3576
|
|
if false {
|
|
} else {
|
|
r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data))
|
|
}
|
|
}
|
|
}
|
|
if yyr3561 || yy2arr3561 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *RangeAllocation) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym3577 := z.DecBinary()
|
|
_ = yym3577
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3578 := r.ContainerType()
|
|
if yyct3578 == codecSelferValueTypeMap1234 {
|
|
yyl3578 := r.ReadMapStart()
|
|
if yyl3578 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3578, d)
|
|
}
|
|
} else if yyct3578 == codecSelferValueTypeArray1234 {
|
|
yyl3578 := r.ReadArrayStart()
|
|
if yyl3578 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3578, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *RangeAllocation) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys3579Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3579Slc
|
|
var yyhl3579 bool = l >= 0
|
|
for yyj3579 := 0; ; yyj3579++ {
|
|
if yyhl3579 {
|
|
if yyj3579 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3579Slc = r.DecodeBytes(yys3579Slc, true, true)
|
|
yys3579 := string(yys3579Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3579 {
|
|
case "kind":
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
case "apiVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
case "metadata":
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv3582 := &x.ObjectMeta
|
|
yyv3582.CodecDecodeSelf(d)
|
|
}
|
|
case "range":
|
|
if r.TryDecodeAsNil() {
|
|
x.Range = ""
|
|
} else {
|
|
x.Range = string(r.DecodeString())
|
|
}
|
|
case "data":
|
|
if r.TryDecodeAsNil() {
|
|
x.Data = nil
|
|
} else {
|
|
yyv3584 := &x.Data
|
|
yym3585 := z.DecBinary()
|
|
_ = yym3585
|
|
if false {
|
|
} else {
|
|
*yyv3584 = r.DecodeBytes(*(*[]byte)(yyv3584), false, false)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3579)
|
|
} // end switch yys3579
|
|
} // end for yyj3579
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *RangeAllocation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj3586 int
|
|
var yyb3586 bool
|
|
var yyhl3586 bool = l >= 0
|
|
yyj3586++
|
|
if yyhl3586 {
|
|
yyb3586 = yyj3586 > l
|
|
} else {
|
|
yyb3586 = r.CheckBreak()
|
|
}
|
|
if yyb3586 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj3586++
|
|
if yyhl3586 {
|
|
yyb3586 = yyj3586 > l
|
|
} else {
|
|
yyb3586 = r.CheckBreak()
|
|
}
|
|
if yyb3586 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj3586++
|
|
if yyhl3586 {
|
|
yyb3586 = yyj3586 > l
|
|
} else {
|
|
yyb3586 = r.CheckBreak()
|
|
}
|
|
if yyb3586 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv3589 := &x.ObjectMeta
|
|
yyv3589.CodecDecodeSelf(d)
|
|
}
|
|
yyj3586++
|
|
if yyhl3586 {
|
|
yyb3586 = yyj3586 > l
|
|
} else {
|
|
yyb3586 = r.CheckBreak()
|
|
}
|
|
if yyb3586 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Range = ""
|
|
} else {
|
|
x.Range = string(r.DecodeString())
|
|
}
|
|
yyj3586++
|
|
if yyhl3586 {
|
|
yyb3586 = yyj3586 > l
|
|
} else {
|
|
yyb3586 = r.CheckBreak()
|
|
}
|
|
if yyb3586 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Data = nil
|
|
} else {
|
|
yyv3591 := &x.Data
|
|
yym3592 := z.DecBinary()
|
|
_ = yym3592
|
|
if false {
|
|
} else {
|
|
*yyv3591 = r.DecodeBytes(*(*[]byte)(yyv3591), false, false)
|
|
}
|
|
}
|
|
for {
|
|
yyj3586++
|
|
if yyhl3586 {
|
|
yyb3586 = yyj3586 > l
|
|
} else {
|
|
yyb3586 = r.CheckBreak()
|
|
}
|
|
if yyb3586 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3586-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) encSlicePersistentVolumeAccessMode(v []PersistentVolumeAccessMode, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv3593 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yyv3593.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSlicePersistentVolumeAccessMode(v *[]PersistentVolumeAccessMode, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv3594 := *v
|
|
yyh3594, yyl3594 := z.DecSliceHelperStart()
|
|
var yyc3594 bool
|
|
if yyl3594 == 0 {
|
|
if yyv3594 == nil {
|
|
yyv3594 = []PersistentVolumeAccessMode{}
|
|
yyc3594 = true
|
|
} else if len(yyv3594) != 0 {
|
|
yyv3594 = yyv3594[:0]
|
|
yyc3594 = true
|
|
}
|
|
} else if yyl3594 > 0 {
|
|
var yyrr3594, yyrl3594 int
|
|
var yyrt3594 bool
|
|
if yyl3594 > cap(yyv3594) {
|
|
|
|
yyrl3594, yyrt3594 = z.DecInferLen(yyl3594, z.DecBasicHandle().MaxInitLen, 16)
|
|
if yyrt3594 {
|
|
if yyrl3594 <= cap(yyv3594) {
|
|
yyv3594 = yyv3594[:yyrl3594]
|
|
} else {
|
|
yyv3594 = make([]PersistentVolumeAccessMode, yyrl3594)
|
|
}
|
|
} else {
|
|
yyv3594 = make([]PersistentVolumeAccessMode, yyrl3594)
|
|
}
|
|
yyc3594 = true
|
|
yyrr3594 = len(yyv3594)
|
|
} else if yyl3594 != len(yyv3594) {
|
|
yyv3594 = yyv3594[:yyl3594]
|
|
yyc3594 = true
|
|
}
|
|
yyj3594 := 0
|
|
for ; yyj3594 < yyrr3594; yyj3594++ {
|
|
yyh3594.ElemContainerState(yyj3594)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3594[yyj3594] = ""
|
|
} else {
|
|
yyv3594[yyj3594] = PersistentVolumeAccessMode(r.DecodeString())
|
|
}
|
|
|
|
}
|
|
if yyrt3594 {
|
|
for ; yyj3594 < yyl3594; yyj3594++ {
|
|
yyv3594 = append(yyv3594, "")
|
|
yyh3594.ElemContainerState(yyj3594)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3594[yyj3594] = ""
|
|
} else {
|
|
yyv3594[yyj3594] = PersistentVolumeAccessMode(r.DecodeString())
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3594 := 0
|
|
for ; !r.CheckBreak(); yyj3594++ {
|
|
|
|
if yyj3594 >= len(yyv3594) {
|
|
yyv3594 = append(yyv3594, "") // var yyz3594 PersistentVolumeAccessMode
|
|
yyc3594 = true
|
|
}
|
|
yyh3594.ElemContainerState(yyj3594)
|
|
if yyj3594 < len(yyv3594) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3594[yyj3594] = ""
|
|
} else {
|
|
yyv3594[yyj3594] = PersistentVolumeAccessMode(r.DecodeString())
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3594 < len(yyv3594) {
|
|
yyv3594 = yyv3594[:yyj3594]
|
|
yyc3594 = true
|
|
} else if yyj3594 == 0 && yyv3594 == nil {
|
|
yyv3594 = []PersistentVolumeAccessMode{}
|
|
yyc3594 = true
|
|
}
|
|
}
|
|
yyh3594.End()
|
|
if yyc3594 {
|
|
*v = yyv3594
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSlicePersistentVolume(v []PersistentVolume, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv3598 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3599 := &yyv3598
|
|
yy3599.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSlicePersistentVolume(v *[]PersistentVolume, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv3600 := *v
|
|
yyh3600, yyl3600 := z.DecSliceHelperStart()
|
|
var yyc3600 bool
|
|
if yyl3600 == 0 {
|
|
if yyv3600 == nil {
|
|
yyv3600 = []PersistentVolume{}
|
|
yyc3600 = true
|
|
} else if len(yyv3600) != 0 {
|
|
yyv3600 = yyv3600[:0]
|
|
yyc3600 = true
|
|
}
|
|
} else if yyl3600 > 0 {
|
|
var yyrr3600, yyrl3600 int
|
|
var yyrt3600 bool
|
|
if yyl3600 > cap(yyv3600) {
|
|
|
|
yyrg3600 := len(yyv3600) > 0
|
|
yyv23600 := yyv3600
|
|
yyrl3600, yyrt3600 = z.DecInferLen(yyl3600, z.DecBasicHandle().MaxInitLen, 392)
|
|
if yyrt3600 {
|
|
if yyrl3600 <= cap(yyv3600) {
|
|
yyv3600 = yyv3600[:yyrl3600]
|
|
} else {
|
|
yyv3600 = make([]PersistentVolume, yyrl3600)
|
|
}
|
|
} else {
|
|
yyv3600 = make([]PersistentVolume, yyrl3600)
|
|
}
|
|
yyc3600 = true
|
|
yyrr3600 = len(yyv3600)
|
|
if yyrg3600 {
|
|
copy(yyv3600, yyv23600)
|
|
}
|
|
} else if yyl3600 != len(yyv3600) {
|
|
yyv3600 = yyv3600[:yyl3600]
|
|
yyc3600 = true
|
|
}
|
|
yyj3600 := 0
|
|
for ; yyj3600 < yyrr3600; yyj3600++ {
|
|
yyh3600.ElemContainerState(yyj3600)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3600[yyj3600] = PersistentVolume{}
|
|
} else {
|
|
yyv3601 := &yyv3600[yyj3600]
|
|
yyv3601.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3600 {
|
|
for ; yyj3600 < yyl3600; yyj3600++ {
|
|
yyv3600 = append(yyv3600, PersistentVolume{})
|
|
yyh3600.ElemContainerState(yyj3600)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3600[yyj3600] = PersistentVolume{}
|
|
} else {
|
|
yyv3602 := &yyv3600[yyj3600]
|
|
yyv3602.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3600 := 0
|
|
for ; !r.CheckBreak(); yyj3600++ {
|
|
|
|
if yyj3600 >= len(yyv3600) {
|
|
yyv3600 = append(yyv3600, PersistentVolume{}) // var yyz3600 PersistentVolume
|
|
yyc3600 = true
|
|
}
|
|
yyh3600.ElemContainerState(yyj3600)
|
|
if yyj3600 < len(yyv3600) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3600[yyj3600] = PersistentVolume{}
|
|
} else {
|
|
yyv3603 := &yyv3600[yyj3600]
|
|
yyv3603.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3600 < len(yyv3600) {
|
|
yyv3600 = yyv3600[:yyj3600]
|
|
yyc3600 = true
|
|
} else if yyj3600 == 0 && yyv3600 == nil {
|
|
yyv3600 = []PersistentVolume{}
|
|
yyc3600 = true
|
|
}
|
|
}
|
|
yyh3600.End()
|
|
if yyc3600 {
|
|
*v = yyv3600
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSlicePersistentVolumeClaim(v []PersistentVolumeClaim, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv3604 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3605 := &yyv3604
|
|
yy3605.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSlicePersistentVolumeClaim(v *[]PersistentVolumeClaim, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv3606 := *v
|
|
yyh3606, yyl3606 := z.DecSliceHelperStart()
|
|
var yyc3606 bool
|
|
if yyl3606 == 0 {
|
|
if yyv3606 == nil {
|
|
yyv3606 = []PersistentVolumeClaim{}
|
|
yyc3606 = true
|
|
} else if len(yyv3606) != 0 {
|
|
yyv3606 = yyv3606[:0]
|
|
yyc3606 = true
|
|
}
|
|
} else if yyl3606 > 0 {
|
|
var yyrr3606, yyrl3606 int
|
|
var yyrt3606 bool
|
|
if yyl3606 > cap(yyv3606) {
|
|
|
|
yyrg3606 := len(yyv3606) > 0
|
|
yyv23606 := yyv3606
|
|
yyrl3606, yyrt3606 = z.DecInferLen(yyl3606, z.DecBasicHandle().MaxInitLen, 296)
|
|
if yyrt3606 {
|
|
if yyrl3606 <= cap(yyv3606) {
|
|
yyv3606 = yyv3606[:yyrl3606]
|
|
} else {
|
|
yyv3606 = make([]PersistentVolumeClaim, yyrl3606)
|
|
}
|
|
} else {
|
|
yyv3606 = make([]PersistentVolumeClaim, yyrl3606)
|
|
}
|
|
yyc3606 = true
|
|
yyrr3606 = len(yyv3606)
|
|
if yyrg3606 {
|
|
copy(yyv3606, yyv23606)
|
|
}
|
|
} else if yyl3606 != len(yyv3606) {
|
|
yyv3606 = yyv3606[:yyl3606]
|
|
yyc3606 = true
|
|
}
|
|
yyj3606 := 0
|
|
for ; yyj3606 < yyrr3606; yyj3606++ {
|
|
yyh3606.ElemContainerState(yyj3606)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3606[yyj3606] = PersistentVolumeClaim{}
|
|
} else {
|
|
yyv3607 := &yyv3606[yyj3606]
|
|
yyv3607.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3606 {
|
|
for ; yyj3606 < yyl3606; yyj3606++ {
|
|
yyv3606 = append(yyv3606, PersistentVolumeClaim{})
|
|
yyh3606.ElemContainerState(yyj3606)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3606[yyj3606] = PersistentVolumeClaim{}
|
|
} else {
|
|
yyv3608 := &yyv3606[yyj3606]
|
|
yyv3608.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3606 := 0
|
|
for ; !r.CheckBreak(); yyj3606++ {
|
|
|
|
if yyj3606 >= len(yyv3606) {
|
|
yyv3606 = append(yyv3606, PersistentVolumeClaim{}) // var yyz3606 PersistentVolumeClaim
|
|
yyc3606 = true
|
|
}
|
|
yyh3606.ElemContainerState(yyj3606)
|
|
if yyj3606 < len(yyv3606) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3606[yyj3606] = PersistentVolumeClaim{}
|
|
} else {
|
|
yyv3609 := &yyv3606[yyj3606]
|
|
yyv3609.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3606 < len(yyv3606) {
|
|
yyv3606 = yyv3606[:yyj3606]
|
|
yyc3606 = true
|
|
} else if yyj3606 == 0 && yyv3606 == nil {
|
|
yyv3606 = []PersistentVolumeClaim{}
|
|
yyc3606 = true
|
|
}
|
|
}
|
|
yyh3606.End()
|
|
if yyc3606 {
|
|
*v = yyv3606
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSliceDownwardAPIVolumeFile(v []DownwardAPIVolumeFile, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv3610 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3611 := &yyv3610
|
|
yy3611.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSliceDownwardAPIVolumeFile(v *[]DownwardAPIVolumeFile, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv3612 := *v
|
|
yyh3612, yyl3612 := z.DecSliceHelperStart()
|
|
var yyc3612 bool
|
|
if yyl3612 == 0 {
|
|
if yyv3612 == nil {
|
|
yyv3612 = []DownwardAPIVolumeFile{}
|
|
yyc3612 = true
|
|
} else if len(yyv3612) != 0 {
|
|
yyv3612 = yyv3612[:0]
|
|
yyc3612 = true
|
|
}
|
|
} else if yyl3612 > 0 {
|
|
var yyrr3612, yyrl3612 int
|
|
var yyrt3612 bool
|
|
if yyl3612 > cap(yyv3612) {
|
|
|
|
yyrg3612 := len(yyv3612) > 0
|
|
yyv23612 := yyv3612
|
|
yyrl3612, yyrt3612 = z.DecInferLen(yyl3612, z.DecBasicHandle().MaxInitLen, 48)
|
|
if yyrt3612 {
|
|
if yyrl3612 <= cap(yyv3612) {
|
|
yyv3612 = yyv3612[:yyrl3612]
|
|
} else {
|
|
yyv3612 = make([]DownwardAPIVolumeFile, yyrl3612)
|
|
}
|
|
} else {
|
|
yyv3612 = make([]DownwardAPIVolumeFile, yyrl3612)
|
|
}
|
|
yyc3612 = true
|
|
yyrr3612 = len(yyv3612)
|
|
if yyrg3612 {
|
|
copy(yyv3612, yyv23612)
|
|
}
|
|
} else if yyl3612 != len(yyv3612) {
|
|
yyv3612 = yyv3612[:yyl3612]
|
|
yyc3612 = true
|
|
}
|
|
yyj3612 := 0
|
|
for ; yyj3612 < yyrr3612; yyj3612++ {
|
|
yyh3612.ElemContainerState(yyj3612)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3612[yyj3612] = DownwardAPIVolumeFile{}
|
|
} else {
|
|
yyv3613 := &yyv3612[yyj3612]
|
|
yyv3613.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3612 {
|
|
for ; yyj3612 < yyl3612; yyj3612++ {
|
|
yyv3612 = append(yyv3612, DownwardAPIVolumeFile{})
|
|
yyh3612.ElemContainerState(yyj3612)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3612[yyj3612] = DownwardAPIVolumeFile{}
|
|
} else {
|
|
yyv3614 := &yyv3612[yyj3612]
|
|
yyv3614.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3612 := 0
|
|
for ; !r.CheckBreak(); yyj3612++ {
|
|
|
|
if yyj3612 >= len(yyv3612) {
|
|
yyv3612 = append(yyv3612, DownwardAPIVolumeFile{}) // var yyz3612 DownwardAPIVolumeFile
|
|
yyc3612 = true
|
|
}
|
|
yyh3612.ElemContainerState(yyj3612)
|
|
if yyj3612 < len(yyv3612) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3612[yyj3612] = DownwardAPIVolumeFile{}
|
|
} else {
|
|
yyv3615 := &yyv3612[yyj3612]
|
|
yyv3615.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3612 < len(yyv3612) {
|
|
yyv3612 = yyv3612[:yyj3612]
|
|
yyc3612 = true
|
|
} else if yyj3612 == 0 && yyv3612 == nil {
|
|
yyv3612 = []DownwardAPIVolumeFile{}
|
|
yyc3612 = true
|
|
}
|
|
}
|
|
yyh3612.End()
|
|
if yyc3612 {
|
|
*v = yyv3612
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSliceCapability(v []Capability, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv3616 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yyv3616.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSliceCapability(v *[]Capability, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv3617 := *v
|
|
yyh3617, yyl3617 := z.DecSliceHelperStart()
|
|
var yyc3617 bool
|
|
if yyl3617 == 0 {
|
|
if yyv3617 == nil {
|
|
yyv3617 = []Capability{}
|
|
yyc3617 = true
|
|
} else if len(yyv3617) != 0 {
|
|
yyv3617 = yyv3617[:0]
|
|
yyc3617 = true
|
|
}
|
|
} else if yyl3617 > 0 {
|
|
var yyrr3617, yyrl3617 int
|
|
var yyrt3617 bool
|
|
if yyl3617 > cap(yyv3617) {
|
|
|
|
yyrl3617, yyrt3617 = z.DecInferLen(yyl3617, z.DecBasicHandle().MaxInitLen, 16)
|
|
if yyrt3617 {
|
|
if yyrl3617 <= cap(yyv3617) {
|
|
yyv3617 = yyv3617[:yyrl3617]
|
|
} else {
|
|
yyv3617 = make([]Capability, yyrl3617)
|
|
}
|
|
} else {
|
|
yyv3617 = make([]Capability, yyrl3617)
|
|
}
|
|
yyc3617 = true
|
|
yyrr3617 = len(yyv3617)
|
|
} else if yyl3617 != len(yyv3617) {
|
|
yyv3617 = yyv3617[:yyl3617]
|
|
yyc3617 = true
|
|
}
|
|
yyj3617 := 0
|
|
for ; yyj3617 < yyrr3617; yyj3617++ {
|
|
yyh3617.ElemContainerState(yyj3617)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3617[yyj3617] = ""
|
|
} else {
|
|
yyv3617[yyj3617] = Capability(r.DecodeString())
|
|
}
|
|
|
|
}
|
|
if yyrt3617 {
|
|
for ; yyj3617 < yyl3617; yyj3617++ {
|
|
yyv3617 = append(yyv3617, "")
|
|
yyh3617.ElemContainerState(yyj3617)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3617[yyj3617] = ""
|
|
} else {
|
|
yyv3617[yyj3617] = Capability(r.DecodeString())
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3617 := 0
|
|
for ; !r.CheckBreak(); yyj3617++ {
|
|
|
|
if yyj3617 >= len(yyv3617) {
|
|
yyv3617 = append(yyv3617, "") // var yyz3617 Capability
|
|
yyc3617 = true
|
|
}
|
|
yyh3617.ElemContainerState(yyj3617)
|
|
if yyj3617 < len(yyv3617) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3617[yyj3617] = ""
|
|
} else {
|
|
yyv3617[yyj3617] = Capability(r.DecodeString())
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3617 < len(yyv3617) {
|
|
yyv3617 = yyv3617[:yyj3617]
|
|
yyc3617 = true
|
|
} else if yyj3617 == 0 && yyv3617 == nil {
|
|
yyv3617 = []Capability{}
|
|
yyc3617 = true
|
|
}
|
|
}
|
|
yyh3617.End()
|
|
if yyc3617 {
|
|
*v = yyv3617
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSliceContainerPort(v []ContainerPort, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv3621 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3622 := &yyv3621
|
|
yy3622.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSliceContainerPort(v *[]ContainerPort, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv3623 := *v
|
|
yyh3623, yyl3623 := z.DecSliceHelperStart()
|
|
var yyc3623 bool
|
|
if yyl3623 == 0 {
|
|
if yyv3623 == nil {
|
|
yyv3623 = []ContainerPort{}
|
|
yyc3623 = true
|
|
} else if len(yyv3623) != 0 {
|
|
yyv3623 = yyv3623[:0]
|
|
yyc3623 = true
|
|
}
|
|
} else if yyl3623 > 0 {
|
|
var yyrr3623, yyrl3623 int
|
|
var yyrt3623 bool
|
|
if yyl3623 > cap(yyv3623) {
|
|
|
|
yyrg3623 := len(yyv3623) > 0
|
|
yyv23623 := yyv3623
|
|
yyrl3623, yyrt3623 = z.DecInferLen(yyl3623, z.DecBasicHandle().MaxInitLen, 64)
|
|
if yyrt3623 {
|
|
if yyrl3623 <= cap(yyv3623) {
|
|
yyv3623 = yyv3623[:yyrl3623]
|
|
} else {
|
|
yyv3623 = make([]ContainerPort, yyrl3623)
|
|
}
|
|
} else {
|
|
yyv3623 = make([]ContainerPort, yyrl3623)
|
|
}
|
|
yyc3623 = true
|
|
yyrr3623 = len(yyv3623)
|
|
if yyrg3623 {
|
|
copy(yyv3623, yyv23623)
|
|
}
|
|
} else if yyl3623 != len(yyv3623) {
|
|
yyv3623 = yyv3623[:yyl3623]
|
|
yyc3623 = true
|
|
}
|
|
yyj3623 := 0
|
|
for ; yyj3623 < yyrr3623; yyj3623++ {
|
|
yyh3623.ElemContainerState(yyj3623)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3623[yyj3623] = ContainerPort{}
|
|
} else {
|
|
yyv3624 := &yyv3623[yyj3623]
|
|
yyv3624.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3623 {
|
|
for ; yyj3623 < yyl3623; yyj3623++ {
|
|
yyv3623 = append(yyv3623, ContainerPort{})
|
|
yyh3623.ElemContainerState(yyj3623)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3623[yyj3623] = ContainerPort{}
|
|
} else {
|
|
yyv3625 := &yyv3623[yyj3623]
|
|
yyv3625.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3623 := 0
|
|
for ; !r.CheckBreak(); yyj3623++ {
|
|
|
|
if yyj3623 >= len(yyv3623) {
|
|
yyv3623 = append(yyv3623, ContainerPort{}) // var yyz3623 ContainerPort
|
|
yyc3623 = true
|
|
}
|
|
yyh3623.ElemContainerState(yyj3623)
|
|
if yyj3623 < len(yyv3623) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3623[yyj3623] = ContainerPort{}
|
|
} else {
|
|
yyv3626 := &yyv3623[yyj3623]
|
|
yyv3626.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3623 < len(yyv3623) {
|
|
yyv3623 = yyv3623[:yyj3623]
|
|
yyc3623 = true
|
|
} else if yyj3623 == 0 && yyv3623 == nil {
|
|
yyv3623 = []ContainerPort{}
|
|
yyc3623 = true
|
|
}
|
|
}
|
|
yyh3623.End()
|
|
if yyc3623 {
|
|
*v = yyv3623
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSliceEnvVar(v []EnvVar, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv3627 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3628 := &yyv3627
|
|
yy3628.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSliceEnvVar(v *[]EnvVar, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv3629 := *v
|
|
yyh3629, yyl3629 := z.DecSliceHelperStart()
|
|
var yyc3629 bool
|
|
if yyl3629 == 0 {
|
|
if yyv3629 == nil {
|
|
yyv3629 = []EnvVar{}
|
|
yyc3629 = true
|
|
} else if len(yyv3629) != 0 {
|
|
yyv3629 = yyv3629[:0]
|
|
yyc3629 = true
|
|
}
|
|
} else if yyl3629 > 0 {
|
|
var yyrr3629, yyrl3629 int
|
|
var yyrt3629 bool
|
|
if yyl3629 > cap(yyv3629) {
|
|
|
|
yyrg3629 := len(yyv3629) > 0
|
|
yyv23629 := yyv3629
|
|
yyrl3629, yyrt3629 = z.DecInferLen(yyl3629, z.DecBasicHandle().MaxInitLen, 40)
|
|
if yyrt3629 {
|
|
if yyrl3629 <= cap(yyv3629) {
|
|
yyv3629 = yyv3629[:yyrl3629]
|
|
} else {
|
|
yyv3629 = make([]EnvVar, yyrl3629)
|
|
}
|
|
} else {
|
|
yyv3629 = make([]EnvVar, yyrl3629)
|
|
}
|
|
yyc3629 = true
|
|
yyrr3629 = len(yyv3629)
|
|
if yyrg3629 {
|
|
copy(yyv3629, yyv23629)
|
|
}
|
|
} else if yyl3629 != len(yyv3629) {
|
|
yyv3629 = yyv3629[:yyl3629]
|
|
yyc3629 = true
|
|
}
|
|
yyj3629 := 0
|
|
for ; yyj3629 < yyrr3629; yyj3629++ {
|
|
yyh3629.ElemContainerState(yyj3629)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3629[yyj3629] = EnvVar{}
|
|
} else {
|
|
yyv3630 := &yyv3629[yyj3629]
|
|
yyv3630.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3629 {
|
|
for ; yyj3629 < yyl3629; yyj3629++ {
|
|
yyv3629 = append(yyv3629, EnvVar{})
|
|
yyh3629.ElemContainerState(yyj3629)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3629[yyj3629] = EnvVar{}
|
|
} else {
|
|
yyv3631 := &yyv3629[yyj3629]
|
|
yyv3631.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3629 := 0
|
|
for ; !r.CheckBreak(); yyj3629++ {
|
|
|
|
if yyj3629 >= len(yyv3629) {
|
|
yyv3629 = append(yyv3629, EnvVar{}) // var yyz3629 EnvVar
|
|
yyc3629 = true
|
|
}
|
|
yyh3629.ElemContainerState(yyj3629)
|
|
if yyj3629 < len(yyv3629) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3629[yyj3629] = EnvVar{}
|
|
} else {
|
|
yyv3632 := &yyv3629[yyj3629]
|
|
yyv3632.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3629 < len(yyv3629) {
|
|
yyv3629 = yyv3629[:yyj3629]
|
|
yyc3629 = true
|
|
} else if yyj3629 == 0 && yyv3629 == nil {
|
|
yyv3629 = []EnvVar{}
|
|
yyc3629 = true
|
|
}
|
|
}
|
|
yyh3629.End()
|
|
if yyc3629 {
|
|
*v = yyv3629
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSliceVolumeMount(v []VolumeMount, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv3633 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3634 := &yyv3633
|
|
yy3634.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSliceVolumeMount(v *[]VolumeMount, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv3635 := *v
|
|
yyh3635, yyl3635 := z.DecSliceHelperStart()
|
|
var yyc3635 bool
|
|
if yyl3635 == 0 {
|
|
if yyv3635 == nil {
|
|
yyv3635 = []VolumeMount{}
|
|
yyc3635 = true
|
|
} else if len(yyv3635) != 0 {
|
|
yyv3635 = yyv3635[:0]
|
|
yyc3635 = true
|
|
}
|
|
} else if yyl3635 > 0 {
|
|
var yyrr3635, yyrl3635 int
|
|
var yyrt3635 bool
|
|
if yyl3635 > cap(yyv3635) {
|
|
|
|
yyrg3635 := len(yyv3635) > 0
|
|
yyv23635 := yyv3635
|
|
yyrl3635, yyrt3635 = z.DecInferLen(yyl3635, z.DecBasicHandle().MaxInitLen, 40)
|
|
if yyrt3635 {
|
|
if yyrl3635 <= cap(yyv3635) {
|
|
yyv3635 = yyv3635[:yyrl3635]
|
|
} else {
|
|
yyv3635 = make([]VolumeMount, yyrl3635)
|
|
}
|
|
} else {
|
|
yyv3635 = make([]VolumeMount, yyrl3635)
|
|
}
|
|
yyc3635 = true
|
|
yyrr3635 = len(yyv3635)
|
|
if yyrg3635 {
|
|
copy(yyv3635, yyv23635)
|
|
}
|
|
} else if yyl3635 != len(yyv3635) {
|
|
yyv3635 = yyv3635[:yyl3635]
|
|
yyc3635 = true
|
|
}
|
|
yyj3635 := 0
|
|
for ; yyj3635 < yyrr3635; yyj3635++ {
|
|
yyh3635.ElemContainerState(yyj3635)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3635[yyj3635] = VolumeMount{}
|
|
} else {
|
|
yyv3636 := &yyv3635[yyj3635]
|
|
yyv3636.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3635 {
|
|
for ; yyj3635 < yyl3635; yyj3635++ {
|
|
yyv3635 = append(yyv3635, VolumeMount{})
|
|
yyh3635.ElemContainerState(yyj3635)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3635[yyj3635] = VolumeMount{}
|
|
} else {
|
|
yyv3637 := &yyv3635[yyj3635]
|
|
yyv3637.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3635 := 0
|
|
for ; !r.CheckBreak(); yyj3635++ {
|
|
|
|
if yyj3635 >= len(yyv3635) {
|
|
yyv3635 = append(yyv3635, VolumeMount{}) // var yyz3635 VolumeMount
|
|
yyc3635 = true
|
|
}
|
|
yyh3635.ElemContainerState(yyj3635)
|
|
if yyj3635 < len(yyv3635) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3635[yyj3635] = VolumeMount{}
|
|
} else {
|
|
yyv3638 := &yyv3635[yyj3635]
|
|
yyv3638.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3635 < len(yyv3635) {
|
|
yyv3635 = yyv3635[:yyj3635]
|
|
yyc3635 = true
|
|
} else if yyj3635 == 0 && yyv3635 == nil {
|
|
yyv3635 = []VolumeMount{}
|
|
yyc3635 = true
|
|
}
|
|
}
|
|
yyh3635.End()
|
|
if yyc3635 {
|
|
*v = yyv3635
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSlicePod(v []Pod, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv3639 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3640 := &yyv3639
|
|
yy3640.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSlicePod(v *[]Pod, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv3641 := *v
|
|
yyh3641, yyl3641 := z.DecSliceHelperStart()
|
|
var yyc3641 bool
|
|
if yyl3641 == 0 {
|
|
if yyv3641 == nil {
|
|
yyv3641 = []Pod{}
|
|
yyc3641 = true
|
|
} else if len(yyv3641) != 0 {
|
|
yyv3641 = yyv3641[:0]
|
|
yyc3641 = true
|
|
}
|
|
} else if yyl3641 > 0 {
|
|
var yyrr3641, yyrl3641 int
|
|
var yyrt3641 bool
|
|
if yyl3641 > cap(yyv3641) {
|
|
|
|
yyrg3641 := len(yyv3641) > 0
|
|
yyv23641 := yyv3641
|
|
yyrl3641, yyrt3641 = z.DecInferLen(yyl3641, z.DecBasicHandle().MaxInitLen, 496)
|
|
if yyrt3641 {
|
|
if yyrl3641 <= cap(yyv3641) {
|
|
yyv3641 = yyv3641[:yyrl3641]
|
|
} else {
|
|
yyv3641 = make([]Pod, yyrl3641)
|
|
}
|
|
} else {
|
|
yyv3641 = make([]Pod, yyrl3641)
|
|
}
|
|
yyc3641 = true
|
|
yyrr3641 = len(yyv3641)
|
|
if yyrg3641 {
|
|
copy(yyv3641, yyv23641)
|
|
}
|
|
} else if yyl3641 != len(yyv3641) {
|
|
yyv3641 = yyv3641[:yyl3641]
|
|
yyc3641 = true
|
|
}
|
|
yyj3641 := 0
|
|
for ; yyj3641 < yyrr3641; yyj3641++ {
|
|
yyh3641.ElemContainerState(yyj3641)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3641[yyj3641] = Pod{}
|
|
} else {
|
|
yyv3642 := &yyv3641[yyj3641]
|
|
yyv3642.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3641 {
|
|
for ; yyj3641 < yyl3641; yyj3641++ {
|
|
yyv3641 = append(yyv3641, Pod{})
|
|
yyh3641.ElemContainerState(yyj3641)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3641[yyj3641] = Pod{}
|
|
} else {
|
|
yyv3643 := &yyv3641[yyj3641]
|
|
yyv3643.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3641 := 0
|
|
for ; !r.CheckBreak(); yyj3641++ {
|
|
|
|
if yyj3641 >= len(yyv3641) {
|
|
yyv3641 = append(yyv3641, Pod{}) // var yyz3641 Pod
|
|
yyc3641 = true
|
|
}
|
|
yyh3641.ElemContainerState(yyj3641)
|
|
if yyj3641 < len(yyv3641) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3641[yyj3641] = Pod{}
|
|
} else {
|
|
yyv3644 := &yyv3641[yyj3641]
|
|
yyv3644.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3641 < len(yyv3641) {
|
|
yyv3641 = yyv3641[:yyj3641]
|
|
yyc3641 = true
|
|
} else if yyj3641 == 0 && yyv3641 == nil {
|
|
yyv3641 = []Pod{}
|
|
yyc3641 = true
|
|
}
|
|
}
|
|
yyh3641.End()
|
|
if yyc3641 {
|
|
*v = yyv3641
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSliceVolume(v []Volume, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv3645 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3646 := &yyv3645
|
|
yy3646.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSliceVolume(v *[]Volume, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv3647 := *v
|
|
yyh3647, yyl3647 := z.DecSliceHelperStart()
|
|
var yyc3647 bool
|
|
if yyl3647 == 0 {
|
|
if yyv3647 == nil {
|
|
yyv3647 = []Volume{}
|
|
yyc3647 = true
|
|
} else if len(yyv3647) != 0 {
|
|
yyv3647 = yyv3647[:0]
|
|
yyc3647 = true
|
|
}
|
|
} else if yyl3647 > 0 {
|
|
var yyrr3647, yyrl3647 int
|
|
var yyrt3647 bool
|
|
if yyl3647 > cap(yyv3647) {
|
|
|
|
yyrg3647 := len(yyv3647) > 0
|
|
yyv23647 := yyv3647
|
|
yyrl3647, yyrt3647 = z.DecInferLen(yyl3647, z.DecBasicHandle().MaxInitLen, 152)
|
|
if yyrt3647 {
|
|
if yyrl3647 <= cap(yyv3647) {
|
|
yyv3647 = yyv3647[:yyrl3647]
|
|
} else {
|
|
yyv3647 = make([]Volume, yyrl3647)
|
|
}
|
|
} else {
|
|
yyv3647 = make([]Volume, yyrl3647)
|
|
}
|
|
yyc3647 = true
|
|
yyrr3647 = len(yyv3647)
|
|
if yyrg3647 {
|
|
copy(yyv3647, yyv23647)
|
|
}
|
|
} else if yyl3647 != len(yyv3647) {
|
|
yyv3647 = yyv3647[:yyl3647]
|
|
yyc3647 = true
|
|
}
|
|
yyj3647 := 0
|
|
for ; yyj3647 < yyrr3647; yyj3647++ {
|
|
yyh3647.ElemContainerState(yyj3647)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3647[yyj3647] = Volume{}
|
|
} else {
|
|
yyv3648 := &yyv3647[yyj3647]
|
|
yyv3648.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3647 {
|
|
for ; yyj3647 < yyl3647; yyj3647++ {
|
|
yyv3647 = append(yyv3647, Volume{})
|
|
yyh3647.ElemContainerState(yyj3647)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3647[yyj3647] = Volume{}
|
|
} else {
|
|
yyv3649 := &yyv3647[yyj3647]
|
|
yyv3649.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3647 := 0
|
|
for ; !r.CheckBreak(); yyj3647++ {
|
|
|
|
if yyj3647 >= len(yyv3647) {
|
|
yyv3647 = append(yyv3647, Volume{}) // var yyz3647 Volume
|
|
yyc3647 = true
|
|
}
|
|
yyh3647.ElemContainerState(yyj3647)
|
|
if yyj3647 < len(yyv3647) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3647[yyj3647] = Volume{}
|
|
} else {
|
|
yyv3650 := &yyv3647[yyj3647]
|
|
yyv3650.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3647 < len(yyv3647) {
|
|
yyv3647 = yyv3647[:yyj3647]
|
|
yyc3647 = true
|
|
} else if yyj3647 == 0 && yyv3647 == nil {
|
|
yyv3647 = []Volume{}
|
|
yyc3647 = true
|
|
}
|
|
}
|
|
yyh3647.End()
|
|
if yyc3647 {
|
|
*v = yyv3647
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSliceContainer(v []Container, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv3651 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3652 := &yyv3651
|
|
yy3652.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSliceContainer(v *[]Container, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv3653 := *v
|
|
yyh3653, yyl3653 := z.DecSliceHelperStart()
|
|
var yyc3653 bool
|
|
if yyl3653 == 0 {
|
|
if yyv3653 == nil {
|
|
yyv3653 = []Container{}
|
|
yyc3653 = true
|
|
} else if len(yyv3653) != 0 {
|
|
yyv3653 = yyv3653[:0]
|
|
yyc3653 = true
|
|
}
|
|
} else if yyl3653 > 0 {
|
|
var yyrr3653, yyrl3653 int
|
|
var yyrt3653 bool
|
|
if yyl3653 > cap(yyv3653) {
|
|
|
|
yyrg3653 := len(yyv3653) > 0
|
|
yyv23653 := yyv3653
|
|
yyrl3653, yyrt3653 = z.DecInferLen(yyl3653, z.DecBasicHandle().MaxInitLen, 256)
|
|
if yyrt3653 {
|
|
if yyrl3653 <= cap(yyv3653) {
|
|
yyv3653 = yyv3653[:yyrl3653]
|
|
} else {
|
|
yyv3653 = make([]Container, yyrl3653)
|
|
}
|
|
} else {
|
|
yyv3653 = make([]Container, yyrl3653)
|
|
}
|
|
yyc3653 = true
|
|
yyrr3653 = len(yyv3653)
|
|
if yyrg3653 {
|
|
copy(yyv3653, yyv23653)
|
|
}
|
|
} else if yyl3653 != len(yyv3653) {
|
|
yyv3653 = yyv3653[:yyl3653]
|
|
yyc3653 = true
|
|
}
|
|
yyj3653 := 0
|
|
for ; yyj3653 < yyrr3653; yyj3653++ {
|
|
yyh3653.ElemContainerState(yyj3653)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3653[yyj3653] = Container{}
|
|
} else {
|
|
yyv3654 := &yyv3653[yyj3653]
|
|
yyv3654.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3653 {
|
|
for ; yyj3653 < yyl3653; yyj3653++ {
|
|
yyv3653 = append(yyv3653, Container{})
|
|
yyh3653.ElemContainerState(yyj3653)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3653[yyj3653] = Container{}
|
|
} else {
|
|
yyv3655 := &yyv3653[yyj3653]
|
|
yyv3655.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3653 := 0
|
|
for ; !r.CheckBreak(); yyj3653++ {
|
|
|
|
if yyj3653 >= len(yyv3653) {
|
|
yyv3653 = append(yyv3653, Container{}) // var yyz3653 Container
|
|
yyc3653 = true
|
|
}
|
|
yyh3653.ElemContainerState(yyj3653)
|
|
if yyj3653 < len(yyv3653) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3653[yyj3653] = Container{}
|
|
} else {
|
|
yyv3656 := &yyv3653[yyj3653]
|
|
yyv3656.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3653 < len(yyv3653) {
|
|
yyv3653 = yyv3653[:yyj3653]
|
|
yyc3653 = true
|
|
} else if yyj3653 == 0 && yyv3653 == nil {
|
|
yyv3653 = []Container{}
|
|
yyc3653 = true
|
|
}
|
|
}
|
|
yyh3653.End()
|
|
if yyc3653 {
|
|
*v = yyv3653
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSliceLocalObjectReference(v []LocalObjectReference, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv3657 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3658 := &yyv3657
|
|
yy3658.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSliceLocalObjectReference(v *[]LocalObjectReference, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv3659 := *v
|
|
yyh3659, yyl3659 := z.DecSliceHelperStart()
|
|
var yyc3659 bool
|
|
if yyl3659 == 0 {
|
|
if yyv3659 == nil {
|
|
yyv3659 = []LocalObjectReference{}
|
|
yyc3659 = true
|
|
} else if len(yyv3659) != 0 {
|
|
yyv3659 = yyv3659[:0]
|
|
yyc3659 = true
|
|
}
|
|
} else if yyl3659 > 0 {
|
|
var yyrr3659, yyrl3659 int
|
|
var yyrt3659 bool
|
|
if yyl3659 > cap(yyv3659) {
|
|
|
|
yyrg3659 := len(yyv3659) > 0
|
|
yyv23659 := yyv3659
|
|
yyrl3659, yyrt3659 = z.DecInferLen(yyl3659, z.DecBasicHandle().MaxInitLen, 16)
|
|
if yyrt3659 {
|
|
if yyrl3659 <= cap(yyv3659) {
|
|
yyv3659 = yyv3659[:yyrl3659]
|
|
} else {
|
|
yyv3659 = make([]LocalObjectReference, yyrl3659)
|
|
}
|
|
} else {
|
|
yyv3659 = make([]LocalObjectReference, yyrl3659)
|
|
}
|
|
yyc3659 = true
|
|
yyrr3659 = len(yyv3659)
|
|
if yyrg3659 {
|
|
copy(yyv3659, yyv23659)
|
|
}
|
|
} else if yyl3659 != len(yyv3659) {
|
|
yyv3659 = yyv3659[:yyl3659]
|
|
yyc3659 = true
|
|
}
|
|
yyj3659 := 0
|
|
for ; yyj3659 < yyrr3659; yyj3659++ {
|
|
yyh3659.ElemContainerState(yyj3659)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3659[yyj3659] = LocalObjectReference{}
|
|
} else {
|
|
yyv3660 := &yyv3659[yyj3659]
|
|
yyv3660.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3659 {
|
|
for ; yyj3659 < yyl3659; yyj3659++ {
|
|
yyv3659 = append(yyv3659, LocalObjectReference{})
|
|
yyh3659.ElemContainerState(yyj3659)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3659[yyj3659] = LocalObjectReference{}
|
|
} else {
|
|
yyv3661 := &yyv3659[yyj3659]
|
|
yyv3661.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3659 := 0
|
|
for ; !r.CheckBreak(); yyj3659++ {
|
|
|
|
if yyj3659 >= len(yyv3659) {
|
|
yyv3659 = append(yyv3659, LocalObjectReference{}) // var yyz3659 LocalObjectReference
|
|
yyc3659 = true
|
|
}
|
|
yyh3659.ElemContainerState(yyj3659)
|
|
if yyj3659 < len(yyv3659) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3659[yyj3659] = LocalObjectReference{}
|
|
} else {
|
|
yyv3662 := &yyv3659[yyj3659]
|
|
yyv3662.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3659 < len(yyv3659) {
|
|
yyv3659 = yyv3659[:yyj3659]
|
|
yyc3659 = true
|
|
} else if yyj3659 == 0 && yyv3659 == nil {
|
|
yyv3659 = []LocalObjectReference{}
|
|
yyc3659 = true
|
|
}
|
|
}
|
|
yyh3659.End()
|
|
if yyc3659 {
|
|
*v = yyv3659
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSlicePodCondition(v []PodCondition, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv3663 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3664 := &yyv3663
|
|
yy3664.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSlicePodCondition(v *[]PodCondition, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv3665 := *v
|
|
yyh3665, yyl3665 := z.DecSliceHelperStart()
|
|
var yyc3665 bool
|
|
if yyl3665 == 0 {
|
|
if yyv3665 == nil {
|
|
yyv3665 = []PodCondition{}
|
|
yyc3665 = true
|
|
} else if len(yyv3665) != 0 {
|
|
yyv3665 = yyv3665[:0]
|
|
yyc3665 = true
|
|
}
|
|
} else if yyl3665 > 0 {
|
|
var yyrr3665, yyrl3665 int
|
|
var yyrt3665 bool
|
|
if yyl3665 > cap(yyv3665) {
|
|
|
|
yyrg3665 := len(yyv3665) > 0
|
|
yyv23665 := yyv3665
|
|
yyrl3665, yyrt3665 = z.DecInferLen(yyl3665, z.DecBasicHandle().MaxInitLen, 112)
|
|
if yyrt3665 {
|
|
if yyrl3665 <= cap(yyv3665) {
|
|
yyv3665 = yyv3665[:yyrl3665]
|
|
} else {
|
|
yyv3665 = make([]PodCondition, yyrl3665)
|
|
}
|
|
} else {
|
|
yyv3665 = make([]PodCondition, yyrl3665)
|
|
}
|
|
yyc3665 = true
|
|
yyrr3665 = len(yyv3665)
|
|
if yyrg3665 {
|
|
copy(yyv3665, yyv23665)
|
|
}
|
|
} else if yyl3665 != len(yyv3665) {
|
|
yyv3665 = yyv3665[:yyl3665]
|
|
yyc3665 = true
|
|
}
|
|
yyj3665 := 0
|
|
for ; yyj3665 < yyrr3665; yyj3665++ {
|
|
yyh3665.ElemContainerState(yyj3665)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3665[yyj3665] = PodCondition{}
|
|
} else {
|
|
yyv3666 := &yyv3665[yyj3665]
|
|
yyv3666.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3665 {
|
|
for ; yyj3665 < yyl3665; yyj3665++ {
|
|
yyv3665 = append(yyv3665, PodCondition{})
|
|
yyh3665.ElemContainerState(yyj3665)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3665[yyj3665] = PodCondition{}
|
|
} else {
|
|
yyv3667 := &yyv3665[yyj3665]
|
|
yyv3667.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3665 := 0
|
|
for ; !r.CheckBreak(); yyj3665++ {
|
|
|
|
if yyj3665 >= len(yyv3665) {
|
|
yyv3665 = append(yyv3665, PodCondition{}) // var yyz3665 PodCondition
|
|
yyc3665 = true
|
|
}
|
|
yyh3665.ElemContainerState(yyj3665)
|
|
if yyj3665 < len(yyv3665) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3665[yyj3665] = PodCondition{}
|
|
} else {
|
|
yyv3668 := &yyv3665[yyj3665]
|
|
yyv3668.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3665 < len(yyv3665) {
|
|
yyv3665 = yyv3665[:yyj3665]
|
|
yyc3665 = true
|
|
} else if yyj3665 == 0 && yyv3665 == nil {
|
|
yyv3665 = []PodCondition{}
|
|
yyc3665 = true
|
|
}
|
|
}
|
|
yyh3665.End()
|
|
if yyc3665 {
|
|
*v = yyv3665
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSliceContainerStatus(v []ContainerStatus, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv3669 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3670 := &yyv3669
|
|
yy3670.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSliceContainerStatus(v *[]ContainerStatus, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv3671 := *v
|
|
yyh3671, yyl3671 := z.DecSliceHelperStart()
|
|
var yyc3671 bool
|
|
if yyl3671 == 0 {
|
|
if yyv3671 == nil {
|
|
yyv3671 = []ContainerStatus{}
|
|
yyc3671 = true
|
|
} else if len(yyv3671) != 0 {
|
|
yyv3671 = yyv3671[:0]
|
|
yyc3671 = true
|
|
}
|
|
} else if yyl3671 > 0 {
|
|
var yyrr3671, yyrl3671 int
|
|
var yyrt3671 bool
|
|
if yyl3671 > cap(yyv3671) {
|
|
|
|
yyrg3671 := len(yyv3671) > 0
|
|
yyv23671 := yyv3671
|
|
yyrl3671, yyrt3671 = z.DecInferLen(yyl3671, z.DecBasicHandle().MaxInitLen, 128)
|
|
if yyrt3671 {
|
|
if yyrl3671 <= cap(yyv3671) {
|
|
yyv3671 = yyv3671[:yyrl3671]
|
|
} else {
|
|
yyv3671 = make([]ContainerStatus, yyrl3671)
|
|
}
|
|
} else {
|
|
yyv3671 = make([]ContainerStatus, yyrl3671)
|
|
}
|
|
yyc3671 = true
|
|
yyrr3671 = len(yyv3671)
|
|
if yyrg3671 {
|
|
copy(yyv3671, yyv23671)
|
|
}
|
|
} else if yyl3671 != len(yyv3671) {
|
|
yyv3671 = yyv3671[:yyl3671]
|
|
yyc3671 = true
|
|
}
|
|
yyj3671 := 0
|
|
for ; yyj3671 < yyrr3671; yyj3671++ {
|
|
yyh3671.ElemContainerState(yyj3671)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3671[yyj3671] = ContainerStatus{}
|
|
} else {
|
|
yyv3672 := &yyv3671[yyj3671]
|
|
yyv3672.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3671 {
|
|
for ; yyj3671 < yyl3671; yyj3671++ {
|
|
yyv3671 = append(yyv3671, ContainerStatus{})
|
|
yyh3671.ElemContainerState(yyj3671)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3671[yyj3671] = ContainerStatus{}
|
|
} else {
|
|
yyv3673 := &yyv3671[yyj3671]
|
|
yyv3673.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3671 := 0
|
|
for ; !r.CheckBreak(); yyj3671++ {
|
|
|
|
if yyj3671 >= len(yyv3671) {
|
|
yyv3671 = append(yyv3671, ContainerStatus{}) // var yyz3671 ContainerStatus
|
|
yyc3671 = true
|
|
}
|
|
yyh3671.ElemContainerState(yyj3671)
|
|
if yyj3671 < len(yyv3671) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3671[yyj3671] = ContainerStatus{}
|
|
} else {
|
|
yyv3674 := &yyv3671[yyj3671]
|
|
yyv3674.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3671 < len(yyv3671) {
|
|
yyv3671 = yyv3671[:yyj3671]
|
|
yyc3671 = true
|
|
} else if yyj3671 == 0 && yyv3671 == nil {
|
|
yyv3671 = []ContainerStatus{}
|
|
yyc3671 = true
|
|
}
|
|
}
|
|
yyh3671.End()
|
|
if yyc3671 {
|
|
*v = yyv3671
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSlicePodTemplate(v []PodTemplate, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv3675 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3676 := &yyv3675
|
|
yy3676.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSlicePodTemplate(v *[]PodTemplate, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv3677 := *v
|
|
yyh3677, yyl3677 := z.DecSliceHelperStart()
|
|
var yyc3677 bool
|
|
if yyl3677 == 0 {
|
|
if yyv3677 == nil {
|
|
yyv3677 = []PodTemplate{}
|
|
yyc3677 = true
|
|
} else if len(yyv3677) != 0 {
|
|
yyv3677 = yyv3677[:0]
|
|
yyc3677 = true
|
|
}
|
|
} else if yyl3677 > 0 {
|
|
var yyrr3677, yyrl3677 int
|
|
var yyrt3677 bool
|
|
if yyl3677 > cap(yyv3677) {
|
|
|
|
yyrg3677 := len(yyv3677) > 0
|
|
yyv23677 := yyv3677
|
|
yyrl3677, yyrt3677 = z.DecInferLen(yyl3677, z.DecBasicHandle().MaxInitLen, 520)
|
|
if yyrt3677 {
|
|
if yyrl3677 <= cap(yyv3677) {
|
|
yyv3677 = yyv3677[:yyrl3677]
|
|
} else {
|
|
yyv3677 = make([]PodTemplate, yyrl3677)
|
|
}
|
|
} else {
|
|
yyv3677 = make([]PodTemplate, yyrl3677)
|
|
}
|
|
yyc3677 = true
|
|
yyrr3677 = len(yyv3677)
|
|
if yyrg3677 {
|
|
copy(yyv3677, yyv23677)
|
|
}
|
|
} else if yyl3677 != len(yyv3677) {
|
|
yyv3677 = yyv3677[:yyl3677]
|
|
yyc3677 = true
|
|
}
|
|
yyj3677 := 0
|
|
for ; yyj3677 < yyrr3677; yyj3677++ {
|
|
yyh3677.ElemContainerState(yyj3677)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3677[yyj3677] = PodTemplate{}
|
|
} else {
|
|
yyv3678 := &yyv3677[yyj3677]
|
|
yyv3678.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3677 {
|
|
for ; yyj3677 < yyl3677; yyj3677++ {
|
|
yyv3677 = append(yyv3677, PodTemplate{})
|
|
yyh3677.ElemContainerState(yyj3677)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3677[yyj3677] = PodTemplate{}
|
|
} else {
|
|
yyv3679 := &yyv3677[yyj3677]
|
|
yyv3679.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3677 := 0
|
|
for ; !r.CheckBreak(); yyj3677++ {
|
|
|
|
if yyj3677 >= len(yyv3677) {
|
|
yyv3677 = append(yyv3677, PodTemplate{}) // var yyz3677 PodTemplate
|
|
yyc3677 = true
|
|
}
|
|
yyh3677.ElemContainerState(yyj3677)
|
|
if yyj3677 < len(yyv3677) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3677[yyj3677] = PodTemplate{}
|
|
} else {
|
|
yyv3680 := &yyv3677[yyj3677]
|
|
yyv3680.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3677 < len(yyv3677) {
|
|
yyv3677 = yyv3677[:yyj3677]
|
|
yyc3677 = true
|
|
} else if yyj3677 == 0 && yyv3677 == nil {
|
|
yyv3677 = []PodTemplate{}
|
|
yyc3677 = true
|
|
}
|
|
}
|
|
yyh3677.End()
|
|
if yyc3677 {
|
|
*v = yyv3677
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSliceReplicationController(v []ReplicationController, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv3681 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3682 := &yyv3681
|
|
yy3682.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSliceReplicationController(v *[]ReplicationController, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv3683 := *v
|
|
yyh3683, yyl3683 := z.DecSliceHelperStart()
|
|
var yyc3683 bool
|
|
if yyl3683 == 0 {
|
|
if yyv3683 == nil {
|
|
yyv3683 = []ReplicationController{}
|
|
yyc3683 = true
|
|
} else if len(yyv3683) != 0 {
|
|
yyv3683 = yyv3683[:0]
|
|
yyc3683 = true
|
|
}
|
|
} else if yyl3683 > 0 {
|
|
var yyrr3683, yyrl3683 int
|
|
var yyrt3683 bool
|
|
if yyl3683 > cap(yyv3683) {
|
|
|
|
yyrg3683 := len(yyv3683) > 0
|
|
yyv23683 := yyv3683
|
|
yyrl3683, yyrt3683 = z.DecInferLen(yyl3683, z.DecBasicHandle().MaxInitLen, 232)
|
|
if yyrt3683 {
|
|
if yyrl3683 <= cap(yyv3683) {
|
|
yyv3683 = yyv3683[:yyrl3683]
|
|
} else {
|
|
yyv3683 = make([]ReplicationController, yyrl3683)
|
|
}
|
|
} else {
|
|
yyv3683 = make([]ReplicationController, yyrl3683)
|
|
}
|
|
yyc3683 = true
|
|
yyrr3683 = len(yyv3683)
|
|
if yyrg3683 {
|
|
copy(yyv3683, yyv23683)
|
|
}
|
|
} else if yyl3683 != len(yyv3683) {
|
|
yyv3683 = yyv3683[:yyl3683]
|
|
yyc3683 = true
|
|
}
|
|
yyj3683 := 0
|
|
for ; yyj3683 < yyrr3683; yyj3683++ {
|
|
yyh3683.ElemContainerState(yyj3683)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3683[yyj3683] = ReplicationController{}
|
|
} else {
|
|
yyv3684 := &yyv3683[yyj3683]
|
|
yyv3684.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3683 {
|
|
for ; yyj3683 < yyl3683; yyj3683++ {
|
|
yyv3683 = append(yyv3683, ReplicationController{})
|
|
yyh3683.ElemContainerState(yyj3683)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3683[yyj3683] = ReplicationController{}
|
|
} else {
|
|
yyv3685 := &yyv3683[yyj3683]
|
|
yyv3685.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3683 := 0
|
|
for ; !r.CheckBreak(); yyj3683++ {
|
|
|
|
if yyj3683 >= len(yyv3683) {
|
|
yyv3683 = append(yyv3683, ReplicationController{}) // var yyz3683 ReplicationController
|
|
yyc3683 = true
|
|
}
|
|
yyh3683.ElemContainerState(yyj3683)
|
|
if yyj3683 < len(yyv3683) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3683[yyj3683] = ReplicationController{}
|
|
} else {
|
|
yyv3686 := &yyv3683[yyj3683]
|
|
yyv3686.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3683 < len(yyv3683) {
|
|
yyv3683 = yyv3683[:yyj3683]
|
|
yyc3683 = true
|
|
} else if yyj3683 == 0 && yyv3683 == nil {
|
|
yyv3683 = []ReplicationController{}
|
|
yyc3683 = true
|
|
}
|
|
}
|
|
yyh3683.End()
|
|
if yyc3683 {
|
|
*v = yyv3683
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSliceService(v []Service, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv3687 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3688 := &yyv3687
|
|
yy3688.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSliceService(v *[]Service, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv3689 := *v
|
|
yyh3689, yyl3689 := z.DecSliceHelperStart()
|
|
var yyc3689 bool
|
|
if yyl3689 == 0 {
|
|
if yyv3689 == nil {
|
|
yyv3689 = []Service{}
|
|
yyc3689 = true
|
|
} else if len(yyv3689) != 0 {
|
|
yyv3689 = yyv3689[:0]
|
|
yyc3689 = true
|
|
}
|
|
} else if yyl3689 > 0 {
|
|
var yyrr3689, yyrl3689 int
|
|
var yyrt3689 bool
|
|
if yyl3689 > cap(yyv3689) {
|
|
|
|
yyrg3689 := len(yyv3689) > 0
|
|
yyv23689 := yyv3689
|
|
yyrl3689, yyrt3689 = z.DecInferLen(yyl3689, z.DecBasicHandle().MaxInitLen, 336)
|
|
if yyrt3689 {
|
|
if yyrl3689 <= cap(yyv3689) {
|
|
yyv3689 = yyv3689[:yyrl3689]
|
|
} else {
|
|
yyv3689 = make([]Service, yyrl3689)
|
|
}
|
|
} else {
|
|
yyv3689 = make([]Service, yyrl3689)
|
|
}
|
|
yyc3689 = true
|
|
yyrr3689 = len(yyv3689)
|
|
if yyrg3689 {
|
|
copy(yyv3689, yyv23689)
|
|
}
|
|
} else if yyl3689 != len(yyv3689) {
|
|
yyv3689 = yyv3689[:yyl3689]
|
|
yyc3689 = true
|
|
}
|
|
yyj3689 := 0
|
|
for ; yyj3689 < yyrr3689; yyj3689++ {
|
|
yyh3689.ElemContainerState(yyj3689)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3689[yyj3689] = Service{}
|
|
} else {
|
|
yyv3690 := &yyv3689[yyj3689]
|
|
yyv3690.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3689 {
|
|
for ; yyj3689 < yyl3689; yyj3689++ {
|
|
yyv3689 = append(yyv3689, Service{})
|
|
yyh3689.ElemContainerState(yyj3689)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3689[yyj3689] = Service{}
|
|
} else {
|
|
yyv3691 := &yyv3689[yyj3689]
|
|
yyv3691.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3689 := 0
|
|
for ; !r.CheckBreak(); yyj3689++ {
|
|
|
|
if yyj3689 >= len(yyv3689) {
|
|
yyv3689 = append(yyv3689, Service{}) // var yyz3689 Service
|
|
yyc3689 = true
|
|
}
|
|
yyh3689.ElemContainerState(yyj3689)
|
|
if yyj3689 < len(yyv3689) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3689[yyj3689] = Service{}
|
|
} else {
|
|
yyv3692 := &yyv3689[yyj3689]
|
|
yyv3692.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3689 < len(yyv3689) {
|
|
yyv3689 = yyv3689[:yyj3689]
|
|
yyc3689 = true
|
|
} else if yyj3689 == 0 && yyv3689 == nil {
|
|
yyv3689 = []Service{}
|
|
yyc3689 = true
|
|
}
|
|
}
|
|
yyh3689.End()
|
|
if yyc3689 {
|
|
*v = yyv3689
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSliceLoadBalancerIngress(v []LoadBalancerIngress, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv3693 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3694 := &yyv3693
|
|
yy3694.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSliceLoadBalancerIngress(v *[]LoadBalancerIngress, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv3695 := *v
|
|
yyh3695, yyl3695 := z.DecSliceHelperStart()
|
|
var yyc3695 bool
|
|
if yyl3695 == 0 {
|
|
if yyv3695 == nil {
|
|
yyv3695 = []LoadBalancerIngress{}
|
|
yyc3695 = true
|
|
} else if len(yyv3695) != 0 {
|
|
yyv3695 = yyv3695[:0]
|
|
yyc3695 = true
|
|
}
|
|
} else if yyl3695 > 0 {
|
|
var yyrr3695, yyrl3695 int
|
|
var yyrt3695 bool
|
|
if yyl3695 > cap(yyv3695) {
|
|
|
|
yyrg3695 := len(yyv3695) > 0
|
|
yyv23695 := yyv3695
|
|
yyrl3695, yyrt3695 = z.DecInferLen(yyl3695, z.DecBasicHandle().MaxInitLen, 32)
|
|
if yyrt3695 {
|
|
if yyrl3695 <= cap(yyv3695) {
|
|
yyv3695 = yyv3695[:yyrl3695]
|
|
} else {
|
|
yyv3695 = make([]LoadBalancerIngress, yyrl3695)
|
|
}
|
|
} else {
|
|
yyv3695 = make([]LoadBalancerIngress, yyrl3695)
|
|
}
|
|
yyc3695 = true
|
|
yyrr3695 = len(yyv3695)
|
|
if yyrg3695 {
|
|
copy(yyv3695, yyv23695)
|
|
}
|
|
} else if yyl3695 != len(yyv3695) {
|
|
yyv3695 = yyv3695[:yyl3695]
|
|
yyc3695 = true
|
|
}
|
|
yyj3695 := 0
|
|
for ; yyj3695 < yyrr3695; yyj3695++ {
|
|
yyh3695.ElemContainerState(yyj3695)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3695[yyj3695] = LoadBalancerIngress{}
|
|
} else {
|
|
yyv3696 := &yyv3695[yyj3695]
|
|
yyv3696.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3695 {
|
|
for ; yyj3695 < yyl3695; yyj3695++ {
|
|
yyv3695 = append(yyv3695, LoadBalancerIngress{})
|
|
yyh3695.ElemContainerState(yyj3695)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3695[yyj3695] = LoadBalancerIngress{}
|
|
} else {
|
|
yyv3697 := &yyv3695[yyj3695]
|
|
yyv3697.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3695 := 0
|
|
for ; !r.CheckBreak(); yyj3695++ {
|
|
|
|
if yyj3695 >= len(yyv3695) {
|
|
yyv3695 = append(yyv3695, LoadBalancerIngress{}) // var yyz3695 LoadBalancerIngress
|
|
yyc3695 = true
|
|
}
|
|
yyh3695.ElemContainerState(yyj3695)
|
|
if yyj3695 < len(yyv3695) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3695[yyj3695] = LoadBalancerIngress{}
|
|
} else {
|
|
yyv3698 := &yyv3695[yyj3695]
|
|
yyv3698.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3695 < len(yyv3695) {
|
|
yyv3695 = yyv3695[:yyj3695]
|
|
yyc3695 = true
|
|
} else if yyj3695 == 0 && yyv3695 == nil {
|
|
yyv3695 = []LoadBalancerIngress{}
|
|
yyc3695 = true
|
|
}
|
|
}
|
|
yyh3695.End()
|
|
if yyc3695 {
|
|
*v = yyv3695
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSliceServicePort(v []ServicePort, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv3699 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3700 := &yyv3699
|
|
yy3700.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSliceServicePort(v *[]ServicePort, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv3701 := *v
|
|
yyh3701, yyl3701 := z.DecSliceHelperStart()
|
|
var yyc3701 bool
|
|
if yyl3701 == 0 {
|
|
if yyv3701 == nil {
|
|
yyv3701 = []ServicePort{}
|
|
yyc3701 = true
|
|
} else if len(yyv3701) != 0 {
|
|
yyv3701 = yyv3701[:0]
|
|
yyc3701 = true
|
|
}
|
|
} else if yyl3701 > 0 {
|
|
var yyrr3701, yyrl3701 int
|
|
var yyrt3701 bool
|
|
if yyl3701 > cap(yyv3701) {
|
|
|
|
yyrg3701 := len(yyv3701) > 0
|
|
yyv23701 := yyv3701
|
|
yyrl3701, yyrt3701 = z.DecInferLen(yyl3701, z.DecBasicHandle().MaxInitLen, 80)
|
|
if yyrt3701 {
|
|
if yyrl3701 <= cap(yyv3701) {
|
|
yyv3701 = yyv3701[:yyrl3701]
|
|
} else {
|
|
yyv3701 = make([]ServicePort, yyrl3701)
|
|
}
|
|
} else {
|
|
yyv3701 = make([]ServicePort, yyrl3701)
|
|
}
|
|
yyc3701 = true
|
|
yyrr3701 = len(yyv3701)
|
|
if yyrg3701 {
|
|
copy(yyv3701, yyv23701)
|
|
}
|
|
} else if yyl3701 != len(yyv3701) {
|
|
yyv3701 = yyv3701[:yyl3701]
|
|
yyc3701 = true
|
|
}
|
|
yyj3701 := 0
|
|
for ; yyj3701 < yyrr3701; yyj3701++ {
|
|
yyh3701.ElemContainerState(yyj3701)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3701[yyj3701] = ServicePort{}
|
|
} else {
|
|
yyv3702 := &yyv3701[yyj3701]
|
|
yyv3702.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3701 {
|
|
for ; yyj3701 < yyl3701; yyj3701++ {
|
|
yyv3701 = append(yyv3701, ServicePort{})
|
|
yyh3701.ElemContainerState(yyj3701)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3701[yyj3701] = ServicePort{}
|
|
} else {
|
|
yyv3703 := &yyv3701[yyj3701]
|
|
yyv3703.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3701 := 0
|
|
for ; !r.CheckBreak(); yyj3701++ {
|
|
|
|
if yyj3701 >= len(yyv3701) {
|
|
yyv3701 = append(yyv3701, ServicePort{}) // var yyz3701 ServicePort
|
|
yyc3701 = true
|
|
}
|
|
yyh3701.ElemContainerState(yyj3701)
|
|
if yyj3701 < len(yyv3701) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3701[yyj3701] = ServicePort{}
|
|
} else {
|
|
yyv3704 := &yyv3701[yyj3701]
|
|
yyv3704.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3701 < len(yyv3701) {
|
|
yyv3701 = yyv3701[:yyj3701]
|
|
yyc3701 = true
|
|
} else if yyj3701 == 0 && yyv3701 == nil {
|
|
yyv3701 = []ServicePort{}
|
|
yyc3701 = true
|
|
}
|
|
}
|
|
yyh3701.End()
|
|
if yyc3701 {
|
|
*v = yyv3701
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSliceObjectReference(v []ObjectReference, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv3705 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3706 := &yyv3705
|
|
yy3706.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSliceObjectReference(v *[]ObjectReference, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv3707 := *v
|
|
yyh3707, yyl3707 := z.DecSliceHelperStart()
|
|
var yyc3707 bool
|
|
if yyl3707 == 0 {
|
|
if yyv3707 == nil {
|
|
yyv3707 = []ObjectReference{}
|
|
yyc3707 = true
|
|
} else if len(yyv3707) != 0 {
|
|
yyv3707 = yyv3707[:0]
|
|
yyc3707 = true
|
|
}
|
|
} else if yyl3707 > 0 {
|
|
var yyrr3707, yyrl3707 int
|
|
var yyrt3707 bool
|
|
if yyl3707 > cap(yyv3707) {
|
|
|
|
yyrg3707 := len(yyv3707) > 0
|
|
yyv23707 := yyv3707
|
|
yyrl3707, yyrt3707 = z.DecInferLen(yyl3707, z.DecBasicHandle().MaxInitLen, 112)
|
|
if yyrt3707 {
|
|
if yyrl3707 <= cap(yyv3707) {
|
|
yyv3707 = yyv3707[:yyrl3707]
|
|
} else {
|
|
yyv3707 = make([]ObjectReference, yyrl3707)
|
|
}
|
|
} else {
|
|
yyv3707 = make([]ObjectReference, yyrl3707)
|
|
}
|
|
yyc3707 = true
|
|
yyrr3707 = len(yyv3707)
|
|
if yyrg3707 {
|
|
copy(yyv3707, yyv23707)
|
|
}
|
|
} else if yyl3707 != len(yyv3707) {
|
|
yyv3707 = yyv3707[:yyl3707]
|
|
yyc3707 = true
|
|
}
|
|
yyj3707 := 0
|
|
for ; yyj3707 < yyrr3707; yyj3707++ {
|
|
yyh3707.ElemContainerState(yyj3707)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3707[yyj3707] = ObjectReference{}
|
|
} else {
|
|
yyv3708 := &yyv3707[yyj3707]
|
|
yyv3708.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3707 {
|
|
for ; yyj3707 < yyl3707; yyj3707++ {
|
|
yyv3707 = append(yyv3707, ObjectReference{})
|
|
yyh3707.ElemContainerState(yyj3707)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3707[yyj3707] = ObjectReference{}
|
|
} else {
|
|
yyv3709 := &yyv3707[yyj3707]
|
|
yyv3709.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3707 := 0
|
|
for ; !r.CheckBreak(); yyj3707++ {
|
|
|
|
if yyj3707 >= len(yyv3707) {
|
|
yyv3707 = append(yyv3707, ObjectReference{}) // var yyz3707 ObjectReference
|
|
yyc3707 = true
|
|
}
|
|
yyh3707.ElemContainerState(yyj3707)
|
|
if yyj3707 < len(yyv3707) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3707[yyj3707] = ObjectReference{}
|
|
} else {
|
|
yyv3710 := &yyv3707[yyj3707]
|
|
yyv3710.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3707 < len(yyv3707) {
|
|
yyv3707 = yyv3707[:yyj3707]
|
|
yyc3707 = true
|
|
} else if yyj3707 == 0 && yyv3707 == nil {
|
|
yyv3707 = []ObjectReference{}
|
|
yyc3707 = true
|
|
}
|
|
}
|
|
yyh3707.End()
|
|
if yyc3707 {
|
|
*v = yyv3707
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSliceServiceAccount(v []ServiceAccount, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv3711 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3712 := &yyv3711
|
|
yy3712.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSliceServiceAccount(v *[]ServiceAccount, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv3713 := *v
|
|
yyh3713, yyl3713 := z.DecSliceHelperStart()
|
|
var yyc3713 bool
|
|
if yyl3713 == 0 {
|
|
if yyv3713 == nil {
|
|
yyv3713 = []ServiceAccount{}
|
|
yyc3713 = true
|
|
} else if len(yyv3713) != 0 {
|
|
yyv3713 = yyv3713[:0]
|
|
yyc3713 = true
|
|
}
|
|
} else if yyl3713 > 0 {
|
|
var yyrr3713, yyrl3713 int
|
|
var yyrt3713 bool
|
|
if yyl3713 > cap(yyv3713) {
|
|
|
|
yyrg3713 := len(yyv3713) > 0
|
|
yyv23713 := yyv3713
|
|
yyrl3713, yyrt3713 = z.DecInferLen(yyl3713, z.DecBasicHandle().MaxInitLen, 240)
|
|
if yyrt3713 {
|
|
if yyrl3713 <= cap(yyv3713) {
|
|
yyv3713 = yyv3713[:yyrl3713]
|
|
} else {
|
|
yyv3713 = make([]ServiceAccount, yyrl3713)
|
|
}
|
|
} else {
|
|
yyv3713 = make([]ServiceAccount, yyrl3713)
|
|
}
|
|
yyc3713 = true
|
|
yyrr3713 = len(yyv3713)
|
|
if yyrg3713 {
|
|
copy(yyv3713, yyv23713)
|
|
}
|
|
} else if yyl3713 != len(yyv3713) {
|
|
yyv3713 = yyv3713[:yyl3713]
|
|
yyc3713 = true
|
|
}
|
|
yyj3713 := 0
|
|
for ; yyj3713 < yyrr3713; yyj3713++ {
|
|
yyh3713.ElemContainerState(yyj3713)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3713[yyj3713] = ServiceAccount{}
|
|
} else {
|
|
yyv3714 := &yyv3713[yyj3713]
|
|
yyv3714.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3713 {
|
|
for ; yyj3713 < yyl3713; yyj3713++ {
|
|
yyv3713 = append(yyv3713, ServiceAccount{})
|
|
yyh3713.ElemContainerState(yyj3713)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3713[yyj3713] = ServiceAccount{}
|
|
} else {
|
|
yyv3715 := &yyv3713[yyj3713]
|
|
yyv3715.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3713 := 0
|
|
for ; !r.CheckBreak(); yyj3713++ {
|
|
|
|
if yyj3713 >= len(yyv3713) {
|
|
yyv3713 = append(yyv3713, ServiceAccount{}) // var yyz3713 ServiceAccount
|
|
yyc3713 = true
|
|
}
|
|
yyh3713.ElemContainerState(yyj3713)
|
|
if yyj3713 < len(yyv3713) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3713[yyj3713] = ServiceAccount{}
|
|
} else {
|
|
yyv3716 := &yyv3713[yyj3713]
|
|
yyv3716.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3713 < len(yyv3713) {
|
|
yyv3713 = yyv3713[:yyj3713]
|
|
yyc3713 = true
|
|
} else if yyj3713 == 0 && yyv3713 == nil {
|
|
yyv3713 = []ServiceAccount{}
|
|
yyc3713 = true
|
|
}
|
|
}
|
|
yyh3713.End()
|
|
if yyc3713 {
|
|
*v = yyv3713
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSliceEndpointSubset(v []EndpointSubset, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv3717 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3718 := &yyv3717
|
|
yy3718.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSliceEndpointSubset(v *[]EndpointSubset, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv3719 := *v
|
|
yyh3719, yyl3719 := z.DecSliceHelperStart()
|
|
var yyc3719 bool
|
|
if yyl3719 == 0 {
|
|
if yyv3719 == nil {
|
|
yyv3719 = []EndpointSubset{}
|
|
yyc3719 = true
|
|
} else if len(yyv3719) != 0 {
|
|
yyv3719 = yyv3719[:0]
|
|
yyc3719 = true
|
|
}
|
|
} else if yyl3719 > 0 {
|
|
var yyrr3719, yyrl3719 int
|
|
var yyrt3719 bool
|
|
if yyl3719 > cap(yyv3719) {
|
|
|
|
yyrg3719 := len(yyv3719) > 0
|
|
yyv23719 := yyv3719
|
|
yyrl3719, yyrt3719 = z.DecInferLen(yyl3719, z.DecBasicHandle().MaxInitLen, 72)
|
|
if yyrt3719 {
|
|
if yyrl3719 <= cap(yyv3719) {
|
|
yyv3719 = yyv3719[:yyrl3719]
|
|
} else {
|
|
yyv3719 = make([]EndpointSubset, yyrl3719)
|
|
}
|
|
} else {
|
|
yyv3719 = make([]EndpointSubset, yyrl3719)
|
|
}
|
|
yyc3719 = true
|
|
yyrr3719 = len(yyv3719)
|
|
if yyrg3719 {
|
|
copy(yyv3719, yyv23719)
|
|
}
|
|
} else if yyl3719 != len(yyv3719) {
|
|
yyv3719 = yyv3719[:yyl3719]
|
|
yyc3719 = true
|
|
}
|
|
yyj3719 := 0
|
|
for ; yyj3719 < yyrr3719; yyj3719++ {
|
|
yyh3719.ElemContainerState(yyj3719)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3719[yyj3719] = EndpointSubset{}
|
|
} else {
|
|
yyv3720 := &yyv3719[yyj3719]
|
|
yyv3720.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3719 {
|
|
for ; yyj3719 < yyl3719; yyj3719++ {
|
|
yyv3719 = append(yyv3719, EndpointSubset{})
|
|
yyh3719.ElemContainerState(yyj3719)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3719[yyj3719] = EndpointSubset{}
|
|
} else {
|
|
yyv3721 := &yyv3719[yyj3719]
|
|
yyv3721.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3719 := 0
|
|
for ; !r.CheckBreak(); yyj3719++ {
|
|
|
|
if yyj3719 >= len(yyv3719) {
|
|
yyv3719 = append(yyv3719, EndpointSubset{}) // var yyz3719 EndpointSubset
|
|
yyc3719 = true
|
|
}
|
|
yyh3719.ElemContainerState(yyj3719)
|
|
if yyj3719 < len(yyv3719) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3719[yyj3719] = EndpointSubset{}
|
|
} else {
|
|
yyv3722 := &yyv3719[yyj3719]
|
|
yyv3722.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3719 < len(yyv3719) {
|
|
yyv3719 = yyv3719[:yyj3719]
|
|
yyc3719 = true
|
|
} else if yyj3719 == 0 && yyv3719 == nil {
|
|
yyv3719 = []EndpointSubset{}
|
|
yyc3719 = true
|
|
}
|
|
}
|
|
yyh3719.End()
|
|
if yyc3719 {
|
|
*v = yyv3719
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSliceEndpointAddress(v []EndpointAddress, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv3723 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3724 := &yyv3723
|
|
yy3724.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSliceEndpointAddress(v *[]EndpointAddress, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv3725 := *v
|
|
yyh3725, yyl3725 := z.DecSliceHelperStart()
|
|
var yyc3725 bool
|
|
if yyl3725 == 0 {
|
|
if yyv3725 == nil {
|
|
yyv3725 = []EndpointAddress{}
|
|
yyc3725 = true
|
|
} else if len(yyv3725) != 0 {
|
|
yyv3725 = yyv3725[:0]
|
|
yyc3725 = true
|
|
}
|
|
} else if yyl3725 > 0 {
|
|
var yyrr3725, yyrl3725 int
|
|
var yyrt3725 bool
|
|
if yyl3725 > cap(yyv3725) {
|
|
|
|
yyrg3725 := len(yyv3725) > 0
|
|
yyv23725 := yyv3725
|
|
yyrl3725, yyrt3725 = z.DecInferLen(yyl3725, z.DecBasicHandle().MaxInitLen, 24)
|
|
if yyrt3725 {
|
|
if yyrl3725 <= cap(yyv3725) {
|
|
yyv3725 = yyv3725[:yyrl3725]
|
|
} else {
|
|
yyv3725 = make([]EndpointAddress, yyrl3725)
|
|
}
|
|
} else {
|
|
yyv3725 = make([]EndpointAddress, yyrl3725)
|
|
}
|
|
yyc3725 = true
|
|
yyrr3725 = len(yyv3725)
|
|
if yyrg3725 {
|
|
copy(yyv3725, yyv23725)
|
|
}
|
|
} else if yyl3725 != len(yyv3725) {
|
|
yyv3725 = yyv3725[:yyl3725]
|
|
yyc3725 = true
|
|
}
|
|
yyj3725 := 0
|
|
for ; yyj3725 < yyrr3725; yyj3725++ {
|
|
yyh3725.ElemContainerState(yyj3725)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3725[yyj3725] = EndpointAddress{}
|
|
} else {
|
|
yyv3726 := &yyv3725[yyj3725]
|
|
yyv3726.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3725 {
|
|
for ; yyj3725 < yyl3725; yyj3725++ {
|
|
yyv3725 = append(yyv3725, EndpointAddress{})
|
|
yyh3725.ElemContainerState(yyj3725)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3725[yyj3725] = EndpointAddress{}
|
|
} else {
|
|
yyv3727 := &yyv3725[yyj3725]
|
|
yyv3727.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3725 := 0
|
|
for ; !r.CheckBreak(); yyj3725++ {
|
|
|
|
if yyj3725 >= len(yyv3725) {
|
|
yyv3725 = append(yyv3725, EndpointAddress{}) // var yyz3725 EndpointAddress
|
|
yyc3725 = true
|
|
}
|
|
yyh3725.ElemContainerState(yyj3725)
|
|
if yyj3725 < len(yyv3725) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3725[yyj3725] = EndpointAddress{}
|
|
} else {
|
|
yyv3728 := &yyv3725[yyj3725]
|
|
yyv3728.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3725 < len(yyv3725) {
|
|
yyv3725 = yyv3725[:yyj3725]
|
|
yyc3725 = true
|
|
} else if yyj3725 == 0 && yyv3725 == nil {
|
|
yyv3725 = []EndpointAddress{}
|
|
yyc3725 = true
|
|
}
|
|
}
|
|
yyh3725.End()
|
|
if yyc3725 {
|
|
*v = yyv3725
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSliceEndpointPort(v []EndpointPort, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv3729 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3730 := &yyv3729
|
|
yy3730.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSliceEndpointPort(v *[]EndpointPort, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv3731 := *v
|
|
yyh3731, yyl3731 := z.DecSliceHelperStart()
|
|
var yyc3731 bool
|
|
if yyl3731 == 0 {
|
|
if yyv3731 == nil {
|
|
yyv3731 = []EndpointPort{}
|
|
yyc3731 = true
|
|
} else if len(yyv3731) != 0 {
|
|
yyv3731 = yyv3731[:0]
|
|
yyc3731 = true
|
|
}
|
|
} else if yyl3731 > 0 {
|
|
var yyrr3731, yyrl3731 int
|
|
var yyrt3731 bool
|
|
if yyl3731 > cap(yyv3731) {
|
|
|
|
yyrg3731 := len(yyv3731) > 0
|
|
yyv23731 := yyv3731
|
|
yyrl3731, yyrt3731 = z.DecInferLen(yyl3731, z.DecBasicHandle().MaxInitLen, 40)
|
|
if yyrt3731 {
|
|
if yyrl3731 <= cap(yyv3731) {
|
|
yyv3731 = yyv3731[:yyrl3731]
|
|
} else {
|
|
yyv3731 = make([]EndpointPort, yyrl3731)
|
|
}
|
|
} else {
|
|
yyv3731 = make([]EndpointPort, yyrl3731)
|
|
}
|
|
yyc3731 = true
|
|
yyrr3731 = len(yyv3731)
|
|
if yyrg3731 {
|
|
copy(yyv3731, yyv23731)
|
|
}
|
|
} else if yyl3731 != len(yyv3731) {
|
|
yyv3731 = yyv3731[:yyl3731]
|
|
yyc3731 = true
|
|
}
|
|
yyj3731 := 0
|
|
for ; yyj3731 < yyrr3731; yyj3731++ {
|
|
yyh3731.ElemContainerState(yyj3731)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3731[yyj3731] = EndpointPort{}
|
|
} else {
|
|
yyv3732 := &yyv3731[yyj3731]
|
|
yyv3732.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3731 {
|
|
for ; yyj3731 < yyl3731; yyj3731++ {
|
|
yyv3731 = append(yyv3731, EndpointPort{})
|
|
yyh3731.ElemContainerState(yyj3731)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3731[yyj3731] = EndpointPort{}
|
|
} else {
|
|
yyv3733 := &yyv3731[yyj3731]
|
|
yyv3733.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3731 := 0
|
|
for ; !r.CheckBreak(); yyj3731++ {
|
|
|
|
if yyj3731 >= len(yyv3731) {
|
|
yyv3731 = append(yyv3731, EndpointPort{}) // var yyz3731 EndpointPort
|
|
yyc3731 = true
|
|
}
|
|
yyh3731.ElemContainerState(yyj3731)
|
|
if yyj3731 < len(yyv3731) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3731[yyj3731] = EndpointPort{}
|
|
} else {
|
|
yyv3734 := &yyv3731[yyj3731]
|
|
yyv3734.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3731 < len(yyv3731) {
|
|
yyv3731 = yyv3731[:yyj3731]
|
|
yyc3731 = true
|
|
} else if yyj3731 == 0 && yyv3731 == nil {
|
|
yyv3731 = []EndpointPort{}
|
|
yyc3731 = true
|
|
}
|
|
}
|
|
yyh3731.End()
|
|
if yyc3731 {
|
|
*v = yyv3731
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSliceEndpoints(v []Endpoints, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv3735 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3736 := &yyv3735
|
|
yy3736.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSliceEndpoints(v *[]Endpoints, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv3737 := *v
|
|
yyh3737, yyl3737 := z.DecSliceHelperStart()
|
|
var yyc3737 bool
|
|
if yyl3737 == 0 {
|
|
if yyv3737 == nil {
|
|
yyv3737 = []Endpoints{}
|
|
yyc3737 = true
|
|
} else if len(yyv3737) != 0 {
|
|
yyv3737 = yyv3737[:0]
|
|
yyc3737 = true
|
|
}
|
|
} else if yyl3737 > 0 {
|
|
var yyrr3737, yyrl3737 int
|
|
var yyrt3737 bool
|
|
if yyl3737 > cap(yyv3737) {
|
|
|
|
yyrg3737 := len(yyv3737) > 0
|
|
yyv23737 := yyv3737
|
|
yyrl3737, yyrt3737 = z.DecInferLen(yyl3737, z.DecBasicHandle().MaxInitLen, 216)
|
|
if yyrt3737 {
|
|
if yyrl3737 <= cap(yyv3737) {
|
|
yyv3737 = yyv3737[:yyrl3737]
|
|
} else {
|
|
yyv3737 = make([]Endpoints, yyrl3737)
|
|
}
|
|
} else {
|
|
yyv3737 = make([]Endpoints, yyrl3737)
|
|
}
|
|
yyc3737 = true
|
|
yyrr3737 = len(yyv3737)
|
|
if yyrg3737 {
|
|
copy(yyv3737, yyv23737)
|
|
}
|
|
} else if yyl3737 != len(yyv3737) {
|
|
yyv3737 = yyv3737[:yyl3737]
|
|
yyc3737 = true
|
|
}
|
|
yyj3737 := 0
|
|
for ; yyj3737 < yyrr3737; yyj3737++ {
|
|
yyh3737.ElemContainerState(yyj3737)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3737[yyj3737] = Endpoints{}
|
|
} else {
|
|
yyv3738 := &yyv3737[yyj3737]
|
|
yyv3738.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3737 {
|
|
for ; yyj3737 < yyl3737; yyj3737++ {
|
|
yyv3737 = append(yyv3737, Endpoints{})
|
|
yyh3737.ElemContainerState(yyj3737)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3737[yyj3737] = Endpoints{}
|
|
} else {
|
|
yyv3739 := &yyv3737[yyj3737]
|
|
yyv3739.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3737 := 0
|
|
for ; !r.CheckBreak(); yyj3737++ {
|
|
|
|
if yyj3737 >= len(yyv3737) {
|
|
yyv3737 = append(yyv3737, Endpoints{}) // var yyz3737 Endpoints
|
|
yyc3737 = true
|
|
}
|
|
yyh3737.ElemContainerState(yyj3737)
|
|
if yyj3737 < len(yyv3737) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3737[yyj3737] = Endpoints{}
|
|
} else {
|
|
yyv3740 := &yyv3737[yyj3737]
|
|
yyv3740.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3737 < len(yyv3737) {
|
|
yyv3737 = yyv3737[:yyj3737]
|
|
yyc3737 = true
|
|
} else if yyj3737 == 0 && yyv3737 == nil {
|
|
yyv3737 = []Endpoints{}
|
|
yyc3737 = true
|
|
}
|
|
}
|
|
yyh3737.End()
|
|
if yyc3737 {
|
|
*v = yyv3737
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSliceNodeCondition(v []NodeCondition, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv3741 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3742 := &yyv3741
|
|
yy3742.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSliceNodeCondition(v *[]NodeCondition, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv3743 := *v
|
|
yyh3743, yyl3743 := z.DecSliceHelperStart()
|
|
var yyc3743 bool
|
|
if yyl3743 == 0 {
|
|
if yyv3743 == nil {
|
|
yyv3743 = []NodeCondition{}
|
|
yyc3743 = true
|
|
} else if len(yyv3743) != 0 {
|
|
yyv3743 = yyv3743[:0]
|
|
yyc3743 = true
|
|
}
|
|
} else if yyl3743 > 0 {
|
|
var yyrr3743, yyrl3743 int
|
|
var yyrt3743 bool
|
|
if yyl3743 > cap(yyv3743) {
|
|
|
|
yyrg3743 := len(yyv3743) > 0
|
|
yyv23743 := yyv3743
|
|
yyrl3743, yyrt3743 = z.DecInferLen(yyl3743, z.DecBasicHandle().MaxInitLen, 112)
|
|
if yyrt3743 {
|
|
if yyrl3743 <= cap(yyv3743) {
|
|
yyv3743 = yyv3743[:yyrl3743]
|
|
} else {
|
|
yyv3743 = make([]NodeCondition, yyrl3743)
|
|
}
|
|
} else {
|
|
yyv3743 = make([]NodeCondition, yyrl3743)
|
|
}
|
|
yyc3743 = true
|
|
yyrr3743 = len(yyv3743)
|
|
if yyrg3743 {
|
|
copy(yyv3743, yyv23743)
|
|
}
|
|
} else if yyl3743 != len(yyv3743) {
|
|
yyv3743 = yyv3743[:yyl3743]
|
|
yyc3743 = true
|
|
}
|
|
yyj3743 := 0
|
|
for ; yyj3743 < yyrr3743; yyj3743++ {
|
|
yyh3743.ElemContainerState(yyj3743)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3743[yyj3743] = NodeCondition{}
|
|
} else {
|
|
yyv3744 := &yyv3743[yyj3743]
|
|
yyv3744.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3743 {
|
|
for ; yyj3743 < yyl3743; yyj3743++ {
|
|
yyv3743 = append(yyv3743, NodeCondition{})
|
|
yyh3743.ElemContainerState(yyj3743)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3743[yyj3743] = NodeCondition{}
|
|
} else {
|
|
yyv3745 := &yyv3743[yyj3743]
|
|
yyv3745.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3743 := 0
|
|
for ; !r.CheckBreak(); yyj3743++ {
|
|
|
|
if yyj3743 >= len(yyv3743) {
|
|
yyv3743 = append(yyv3743, NodeCondition{}) // var yyz3743 NodeCondition
|
|
yyc3743 = true
|
|
}
|
|
yyh3743.ElemContainerState(yyj3743)
|
|
if yyj3743 < len(yyv3743) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3743[yyj3743] = NodeCondition{}
|
|
} else {
|
|
yyv3746 := &yyv3743[yyj3743]
|
|
yyv3746.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3743 < len(yyv3743) {
|
|
yyv3743 = yyv3743[:yyj3743]
|
|
yyc3743 = true
|
|
} else if yyj3743 == 0 && yyv3743 == nil {
|
|
yyv3743 = []NodeCondition{}
|
|
yyc3743 = true
|
|
}
|
|
}
|
|
yyh3743.End()
|
|
if yyc3743 {
|
|
*v = yyv3743
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSliceNodeAddress(v []NodeAddress, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv3747 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3748 := &yyv3747
|
|
yy3748.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSliceNodeAddress(v *[]NodeAddress, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv3749 := *v
|
|
yyh3749, yyl3749 := z.DecSliceHelperStart()
|
|
var yyc3749 bool
|
|
if yyl3749 == 0 {
|
|
if yyv3749 == nil {
|
|
yyv3749 = []NodeAddress{}
|
|
yyc3749 = true
|
|
} else if len(yyv3749) != 0 {
|
|
yyv3749 = yyv3749[:0]
|
|
yyc3749 = true
|
|
}
|
|
} else if yyl3749 > 0 {
|
|
var yyrr3749, yyrl3749 int
|
|
var yyrt3749 bool
|
|
if yyl3749 > cap(yyv3749) {
|
|
|
|
yyrg3749 := len(yyv3749) > 0
|
|
yyv23749 := yyv3749
|
|
yyrl3749, yyrt3749 = z.DecInferLen(yyl3749, z.DecBasicHandle().MaxInitLen, 32)
|
|
if yyrt3749 {
|
|
if yyrl3749 <= cap(yyv3749) {
|
|
yyv3749 = yyv3749[:yyrl3749]
|
|
} else {
|
|
yyv3749 = make([]NodeAddress, yyrl3749)
|
|
}
|
|
} else {
|
|
yyv3749 = make([]NodeAddress, yyrl3749)
|
|
}
|
|
yyc3749 = true
|
|
yyrr3749 = len(yyv3749)
|
|
if yyrg3749 {
|
|
copy(yyv3749, yyv23749)
|
|
}
|
|
} else if yyl3749 != len(yyv3749) {
|
|
yyv3749 = yyv3749[:yyl3749]
|
|
yyc3749 = true
|
|
}
|
|
yyj3749 := 0
|
|
for ; yyj3749 < yyrr3749; yyj3749++ {
|
|
yyh3749.ElemContainerState(yyj3749)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3749[yyj3749] = NodeAddress{}
|
|
} else {
|
|
yyv3750 := &yyv3749[yyj3749]
|
|
yyv3750.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3749 {
|
|
for ; yyj3749 < yyl3749; yyj3749++ {
|
|
yyv3749 = append(yyv3749, NodeAddress{})
|
|
yyh3749.ElemContainerState(yyj3749)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3749[yyj3749] = NodeAddress{}
|
|
} else {
|
|
yyv3751 := &yyv3749[yyj3749]
|
|
yyv3751.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3749 := 0
|
|
for ; !r.CheckBreak(); yyj3749++ {
|
|
|
|
if yyj3749 >= len(yyv3749) {
|
|
yyv3749 = append(yyv3749, NodeAddress{}) // var yyz3749 NodeAddress
|
|
yyc3749 = true
|
|
}
|
|
yyh3749.ElemContainerState(yyj3749)
|
|
if yyj3749 < len(yyv3749) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3749[yyj3749] = NodeAddress{}
|
|
} else {
|
|
yyv3752 := &yyv3749[yyj3749]
|
|
yyv3752.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3749 < len(yyv3749) {
|
|
yyv3749 = yyv3749[:yyj3749]
|
|
yyc3749 = true
|
|
} else if yyj3749 == 0 && yyv3749 == nil {
|
|
yyv3749 = []NodeAddress{}
|
|
yyc3749 = true
|
|
}
|
|
}
|
|
yyh3749.End()
|
|
if yyc3749 {
|
|
*v = yyv3749
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSliceContainerImage(v []ContainerImage, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv3753 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3754 := &yyv3753
|
|
yy3754.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSliceContainerImage(v *[]ContainerImage, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv3755 := *v
|
|
yyh3755, yyl3755 := z.DecSliceHelperStart()
|
|
var yyc3755 bool
|
|
if yyl3755 == 0 {
|
|
if yyv3755 == nil {
|
|
yyv3755 = []ContainerImage{}
|
|
yyc3755 = true
|
|
} else if len(yyv3755) != 0 {
|
|
yyv3755 = yyv3755[:0]
|
|
yyc3755 = true
|
|
}
|
|
} else if yyl3755 > 0 {
|
|
var yyrr3755, yyrl3755 int
|
|
var yyrt3755 bool
|
|
if yyl3755 > cap(yyv3755) {
|
|
|
|
yyrg3755 := len(yyv3755) > 0
|
|
yyv23755 := yyv3755
|
|
yyrl3755, yyrt3755 = z.DecInferLen(yyl3755, z.DecBasicHandle().MaxInitLen, 32)
|
|
if yyrt3755 {
|
|
if yyrl3755 <= cap(yyv3755) {
|
|
yyv3755 = yyv3755[:yyrl3755]
|
|
} else {
|
|
yyv3755 = make([]ContainerImage, yyrl3755)
|
|
}
|
|
} else {
|
|
yyv3755 = make([]ContainerImage, yyrl3755)
|
|
}
|
|
yyc3755 = true
|
|
yyrr3755 = len(yyv3755)
|
|
if yyrg3755 {
|
|
copy(yyv3755, yyv23755)
|
|
}
|
|
} else if yyl3755 != len(yyv3755) {
|
|
yyv3755 = yyv3755[:yyl3755]
|
|
yyc3755 = true
|
|
}
|
|
yyj3755 := 0
|
|
for ; yyj3755 < yyrr3755; yyj3755++ {
|
|
yyh3755.ElemContainerState(yyj3755)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3755[yyj3755] = ContainerImage{}
|
|
} else {
|
|
yyv3756 := &yyv3755[yyj3755]
|
|
yyv3756.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3755 {
|
|
for ; yyj3755 < yyl3755; yyj3755++ {
|
|
yyv3755 = append(yyv3755, ContainerImage{})
|
|
yyh3755.ElemContainerState(yyj3755)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3755[yyj3755] = ContainerImage{}
|
|
} else {
|
|
yyv3757 := &yyv3755[yyj3755]
|
|
yyv3757.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3755 := 0
|
|
for ; !r.CheckBreak(); yyj3755++ {
|
|
|
|
if yyj3755 >= len(yyv3755) {
|
|
yyv3755 = append(yyv3755, ContainerImage{}) // var yyz3755 ContainerImage
|
|
yyc3755 = true
|
|
}
|
|
yyh3755.ElemContainerState(yyj3755)
|
|
if yyj3755 < len(yyv3755) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3755[yyj3755] = ContainerImage{}
|
|
} else {
|
|
yyv3758 := &yyv3755[yyj3755]
|
|
yyv3758.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3755 < len(yyv3755) {
|
|
yyv3755 = yyv3755[:yyj3755]
|
|
yyc3755 = true
|
|
} else if yyj3755 == 0 && yyv3755 == nil {
|
|
yyv3755 = []ContainerImage{}
|
|
yyc3755 = true
|
|
}
|
|
}
|
|
yyh3755.End()
|
|
if yyc3755 {
|
|
*v = yyv3755
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encResourceList(v ResourceList, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeMapStart(len(v))
|
|
for yyk3759, yyv3759 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
yyk3759.CodecEncodeSelf(e)
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3760 := &yyv3759
|
|
yym3761 := z.EncBinary()
|
|
_ = yym3761
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3760) {
|
|
} else if !yym3761 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy3760)
|
|
} else {
|
|
z.EncFallback(yy3760)
|
|
}
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decResourceList(v *ResourceList, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv3762 := *v
|
|
yyl3762 := r.ReadMapStart()
|
|
yybh3762 := z.DecBasicHandle()
|
|
if yyv3762 == nil {
|
|
yyrl3762, _ := z.DecInferLen(yyl3762, yybh3762.MaxInitLen, 40)
|
|
yyv3762 = make(map[ResourceName]pkg3_resource.Quantity, yyrl3762)
|
|
*v = yyv3762
|
|
}
|
|
var yymk3762 ResourceName
|
|
var yymv3762 pkg3_resource.Quantity
|
|
var yymg3762 bool
|
|
if yybh3762.MapValueReset {
|
|
yymg3762 = true
|
|
}
|
|
if yyl3762 > 0 {
|
|
for yyj3762 := 0; yyj3762 < yyl3762; yyj3762++ {
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
if r.TryDecodeAsNil() {
|
|
yymk3762 = ""
|
|
} else {
|
|
yymk3762 = ResourceName(r.DecodeString())
|
|
}
|
|
|
|
if yymg3762 {
|
|
yymv3762 = yyv3762[yymk3762]
|
|
} else {
|
|
yymv3762 = pkg3_resource.Quantity{}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
if r.TryDecodeAsNil() {
|
|
yymv3762 = pkg3_resource.Quantity{}
|
|
} else {
|
|
yyv3764 := &yymv3762
|
|
yym3765 := z.DecBinary()
|
|
_ = yym3765
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3764) {
|
|
} else if !yym3765 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv3764)
|
|
} else {
|
|
z.DecFallback(yyv3764, false)
|
|
}
|
|
}
|
|
|
|
if yyv3762 != nil {
|
|
yyv3762[yymk3762] = yymv3762
|
|
}
|
|
}
|
|
} else if yyl3762 < 0 {
|
|
for yyj3762 := 0; !r.CheckBreak(); yyj3762++ {
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
if r.TryDecodeAsNil() {
|
|
yymk3762 = ""
|
|
} else {
|
|
yymk3762 = ResourceName(r.DecodeString())
|
|
}
|
|
|
|
if yymg3762 {
|
|
yymv3762 = yyv3762[yymk3762]
|
|
} else {
|
|
yymv3762 = pkg3_resource.Quantity{}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
if r.TryDecodeAsNil() {
|
|
yymv3762 = pkg3_resource.Quantity{}
|
|
} else {
|
|
yyv3767 := &yymv3762
|
|
yym3768 := z.DecBinary()
|
|
_ = yym3768
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3767) {
|
|
} else if !yym3768 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv3767)
|
|
} else {
|
|
z.DecFallback(yyv3767, false)
|
|
}
|
|
}
|
|
|
|
if yyv3762 != nil {
|
|
yyv3762[yymk3762] = yymv3762
|
|
}
|
|
}
|
|
} // else len==0: TODO: Should we clear map entries?
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) encSliceNode(v []Node, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv3769 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3770 := &yyv3769
|
|
yy3770.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSliceNode(v *[]Node, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv3771 := *v
|
|
yyh3771, yyl3771 := z.DecSliceHelperStart()
|
|
var yyc3771 bool
|
|
if yyl3771 == 0 {
|
|
if yyv3771 == nil {
|
|
yyv3771 = []Node{}
|
|
yyc3771 = true
|
|
} else if len(yyv3771) != 0 {
|
|
yyv3771 = yyv3771[:0]
|
|
yyc3771 = true
|
|
}
|
|
} else if yyl3771 > 0 {
|
|
var yyrr3771, yyrl3771 int
|
|
var yyrt3771 bool
|
|
if yyl3771 > cap(yyv3771) {
|
|
|
|
yyrg3771 := len(yyv3771) > 0
|
|
yyv23771 := yyv3771
|
|
yyrl3771, yyrt3771 = z.DecInferLen(yyl3771, z.DecBasicHandle().MaxInitLen, 488)
|
|
if yyrt3771 {
|
|
if yyrl3771 <= cap(yyv3771) {
|
|
yyv3771 = yyv3771[:yyrl3771]
|
|
} else {
|
|
yyv3771 = make([]Node, yyrl3771)
|
|
}
|
|
} else {
|
|
yyv3771 = make([]Node, yyrl3771)
|
|
}
|
|
yyc3771 = true
|
|
yyrr3771 = len(yyv3771)
|
|
if yyrg3771 {
|
|
copy(yyv3771, yyv23771)
|
|
}
|
|
} else if yyl3771 != len(yyv3771) {
|
|
yyv3771 = yyv3771[:yyl3771]
|
|
yyc3771 = true
|
|
}
|
|
yyj3771 := 0
|
|
for ; yyj3771 < yyrr3771; yyj3771++ {
|
|
yyh3771.ElemContainerState(yyj3771)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3771[yyj3771] = Node{}
|
|
} else {
|
|
yyv3772 := &yyv3771[yyj3771]
|
|
yyv3772.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3771 {
|
|
for ; yyj3771 < yyl3771; yyj3771++ {
|
|
yyv3771 = append(yyv3771, Node{})
|
|
yyh3771.ElemContainerState(yyj3771)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3771[yyj3771] = Node{}
|
|
} else {
|
|
yyv3773 := &yyv3771[yyj3771]
|
|
yyv3773.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3771 := 0
|
|
for ; !r.CheckBreak(); yyj3771++ {
|
|
|
|
if yyj3771 >= len(yyv3771) {
|
|
yyv3771 = append(yyv3771, Node{}) // var yyz3771 Node
|
|
yyc3771 = true
|
|
}
|
|
yyh3771.ElemContainerState(yyj3771)
|
|
if yyj3771 < len(yyv3771) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3771[yyj3771] = Node{}
|
|
} else {
|
|
yyv3774 := &yyv3771[yyj3771]
|
|
yyv3774.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3771 < len(yyv3771) {
|
|
yyv3771 = yyv3771[:yyj3771]
|
|
yyc3771 = true
|
|
} else if yyj3771 == 0 && yyv3771 == nil {
|
|
yyv3771 = []Node{}
|
|
yyc3771 = true
|
|
}
|
|
}
|
|
yyh3771.End()
|
|
if yyc3771 {
|
|
*v = yyv3771
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSliceFinalizerName(v []FinalizerName, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv3775 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yyv3775.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSliceFinalizerName(v *[]FinalizerName, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv3776 := *v
|
|
yyh3776, yyl3776 := z.DecSliceHelperStart()
|
|
var yyc3776 bool
|
|
if yyl3776 == 0 {
|
|
if yyv3776 == nil {
|
|
yyv3776 = []FinalizerName{}
|
|
yyc3776 = true
|
|
} else if len(yyv3776) != 0 {
|
|
yyv3776 = yyv3776[:0]
|
|
yyc3776 = true
|
|
}
|
|
} else if yyl3776 > 0 {
|
|
var yyrr3776, yyrl3776 int
|
|
var yyrt3776 bool
|
|
if yyl3776 > cap(yyv3776) {
|
|
|
|
yyrl3776, yyrt3776 = z.DecInferLen(yyl3776, z.DecBasicHandle().MaxInitLen, 16)
|
|
if yyrt3776 {
|
|
if yyrl3776 <= cap(yyv3776) {
|
|
yyv3776 = yyv3776[:yyrl3776]
|
|
} else {
|
|
yyv3776 = make([]FinalizerName, yyrl3776)
|
|
}
|
|
} else {
|
|
yyv3776 = make([]FinalizerName, yyrl3776)
|
|
}
|
|
yyc3776 = true
|
|
yyrr3776 = len(yyv3776)
|
|
} else if yyl3776 != len(yyv3776) {
|
|
yyv3776 = yyv3776[:yyl3776]
|
|
yyc3776 = true
|
|
}
|
|
yyj3776 := 0
|
|
for ; yyj3776 < yyrr3776; yyj3776++ {
|
|
yyh3776.ElemContainerState(yyj3776)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3776[yyj3776] = ""
|
|
} else {
|
|
yyv3776[yyj3776] = FinalizerName(r.DecodeString())
|
|
}
|
|
|
|
}
|
|
if yyrt3776 {
|
|
for ; yyj3776 < yyl3776; yyj3776++ {
|
|
yyv3776 = append(yyv3776, "")
|
|
yyh3776.ElemContainerState(yyj3776)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3776[yyj3776] = ""
|
|
} else {
|
|
yyv3776[yyj3776] = FinalizerName(r.DecodeString())
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3776 := 0
|
|
for ; !r.CheckBreak(); yyj3776++ {
|
|
|
|
if yyj3776 >= len(yyv3776) {
|
|
yyv3776 = append(yyv3776, "") // var yyz3776 FinalizerName
|
|
yyc3776 = true
|
|
}
|
|
yyh3776.ElemContainerState(yyj3776)
|
|
if yyj3776 < len(yyv3776) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3776[yyj3776] = ""
|
|
} else {
|
|
yyv3776[yyj3776] = FinalizerName(r.DecodeString())
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3776 < len(yyv3776) {
|
|
yyv3776 = yyv3776[:yyj3776]
|
|
yyc3776 = true
|
|
} else if yyj3776 == 0 && yyv3776 == nil {
|
|
yyv3776 = []FinalizerName{}
|
|
yyc3776 = true
|
|
}
|
|
}
|
|
yyh3776.End()
|
|
if yyc3776 {
|
|
*v = yyv3776
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSliceNamespace(v []Namespace, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv3780 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3781 := &yyv3780
|
|
yy3781.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSliceNamespace(v *[]Namespace, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv3782 := *v
|
|
yyh3782, yyl3782 := z.DecSliceHelperStart()
|
|
var yyc3782 bool
|
|
if yyl3782 == 0 {
|
|
if yyv3782 == nil {
|
|
yyv3782 = []Namespace{}
|
|
yyc3782 = true
|
|
} else if len(yyv3782) != 0 {
|
|
yyv3782 = yyv3782[:0]
|
|
yyc3782 = true
|
|
}
|
|
} else if yyl3782 > 0 {
|
|
var yyrr3782, yyrl3782 int
|
|
var yyrt3782 bool
|
|
if yyl3782 > cap(yyv3782) {
|
|
|
|
yyrg3782 := len(yyv3782) > 0
|
|
yyv23782 := yyv3782
|
|
yyrl3782, yyrt3782 = z.DecInferLen(yyl3782, z.DecBasicHandle().MaxInitLen, 232)
|
|
if yyrt3782 {
|
|
if yyrl3782 <= cap(yyv3782) {
|
|
yyv3782 = yyv3782[:yyrl3782]
|
|
} else {
|
|
yyv3782 = make([]Namespace, yyrl3782)
|
|
}
|
|
} else {
|
|
yyv3782 = make([]Namespace, yyrl3782)
|
|
}
|
|
yyc3782 = true
|
|
yyrr3782 = len(yyv3782)
|
|
if yyrg3782 {
|
|
copy(yyv3782, yyv23782)
|
|
}
|
|
} else if yyl3782 != len(yyv3782) {
|
|
yyv3782 = yyv3782[:yyl3782]
|
|
yyc3782 = true
|
|
}
|
|
yyj3782 := 0
|
|
for ; yyj3782 < yyrr3782; yyj3782++ {
|
|
yyh3782.ElemContainerState(yyj3782)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3782[yyj3782] = Namespace{}
|
|
} else {
|
|
yyv3783 := &yyv3782[yyj3782]
|
|
yyv3783.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3782 {
|
|
for ; yyj3782 < yyl3782; yyj3782++ {
|
|
yyv3782 = append(yyv3782, Namespace{})
|
|
yyh3782.ElemContainerState(yyj3782)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3782[yyj3782] = Namespace{}
|
|
} else {
|
|
yyv3784 := &yyv3782[yyj3782]
|
|
yyv3784.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3782 := 0
|
|
for ; !r.CheckBreak(); yyj3782++ {
|
|
|
|
if yyj3782 >= len(yyv3782) {
|
|
yyv3782 = append(yyv3782, Namespace{}) // var yyz3782 Namespace
|
|
yyc3782 = true
|
|
}
|
|
yyh3782.ElemContainerState(yyj3782)
|
|
if yyj3782 < len(yyv3782) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3782[yyj3782] = Namespace{}
|
|
} else {
|
|
yyv3785 := &yyv3782[yyj3782]
|
|
yyv3785.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3782 < len(yyv3782) {
|
|
yyv3782 = yyv3782[:yyj3782]
|
|
yyc3782 = true
|
|
} else if yyj3782 == 0 && yyv3782 == nil {
|
|
yyv3782 = []Namespace{}
|
|
yyc3782 = true
|
|
}
|
|
}
|
|
yyh3782.End()
|
|
if yyc3782 {
|
|
*v = yyv3782
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSliceEvent(v []Event, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv3786 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3787 := &yyv3786
|
|
yy3787.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSliceEvent(v *[]Event, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv3788 := *v
|
|
yyh3788, yyl3788 := z.DecSliceHelperStart()
|
|
var yyc3788 bool
|
|
if yyl3788 == 0 {
|
|
if yyv3788 == nil {
|
|
yyv3788 = []Event{}
|
|
yyc3788 = true
|
|
} else if len(yyv3788) != 0 {
|
|
yyv3788 = yyv3788[:0]
|
|
yyc3788 = true
|
|
}
|
|
} else if yyl3788 > 0 {
|
|
var yyrr3788, yyrl3788 int
|
|
var yyrt3788 bool
|
|
if yyl3788 > cap(yyv3788) {
|
|
|
|
yyrg3788 := len(yyv3788) > 0
|
|
yyv23788 := yyv3788
|
|
yyrl3788, yyrt3788 = z.DecInferLen(yyl3788, z.DecBasicHandle().MaxInitLen, 440)
|
|
if yyrt3788 {
|
|
if yyrl3788 <= cap(yyv3788) {
|
|
yyv3788 = yyv3788[:yyrl3788]
|
|
} else {
|
|
yyv3788 = make([]Event, yyrl3788)
|
|
}
|
|
} else {
|
|
yyv3788 = make([]Event, yyrl3788)
|
|
}
|
|
yyc3788 = true
|
|
yyrr3788 = len(yyv3788)
|
|
if yyrg3788 {
|
|
copy(yyv3788, yyv23788)
|
|
}
|
|
} else if yyl3788 != len(yyv3788) {
|
|
yyv3788 = yyv3788[:yyl3788]
|
|
yyc3788 = true
|
|
}
|
|
yyj3788 := 0
|
|
for ; yyj3788 < yyrr3788; yyj3788++ {
|
|
yyh3788.ElemContainerState(yyj3788)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3788[yyj3788] = Event{}
|
|
} else {
|
|
yyv3789 := &yyv3788[yyj3788]
|
|
yyv3789.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3788 {
|
|
for ; yyj3788 < yyl3788; yyj3788++ {
|
|
yyv3788 = append(yyv3788, Event{})
|
|
yyh3788.ElemContainerState(yyj3788)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3788[yyj3788] = Event{}
|
|
} else {
|
|
yyv3790 := &yyv3788[yyj3788]
|
|
yyv3790.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3788 := 0
|
|
for ; !r.CheckBreak(); yyj3788++ {
|
|
|
|
if yyj3788 >= len(yyv3788) {
|
|
yyv3788 = append(yyv3788, Event{}) // var yyz3788 Event
|
|
yyc3788 = true
|
|
}
|
|
yyh3788.ElemContainerState(yyj3788)
|
|
if yyj3788 < len(yyv3788) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3788[yyj3788] = Event{}
|
|
} else {
|
|
yyv3791 := &yyv3788[yyj3788]
|
|
yyv3791.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3788 < len(yyv3788) {
|
|
yyv3788 = yyv3788[:yyj3788]
|
|
yyc3788 = true
|
|
} else if yyj3788 == 0 && yyv3788 == nil {
|
|
yyv3788 = []Event{}
|
|
yyc3788 = true
|
|
}
|
|
}
|
|
yyh3788.End()
|
|
if yyc3788 {
|
|
*v = yyv3788
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSliceruntime_Object(v []pkg8_runtime.Object, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv3792 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyv3792 == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3793 := z.EncBinary()
|
|
_ = yym3793
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yyv3792) {
|
|
} else {
|
|
z.EncFallback(yyv3792)
|
|
}
|
|
}
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSliceruntime_Object(v *[]pkg8_runtime.Object, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv3794 := *v
|
|
yyh3794, yyl3794 := z.DecSliceHelperStart()
|
|
var yyc3794 bool
|
|
if yyl3794 == 0 {
|
|
if yyv3794 == nil {
|
|
yyv3794 = []pkg8_runtime.Object{}
|
|
yyc3794 = true
|
|
} else if len(yyv3794) != 0 {
|
|
yyv3794 = yyv3794[:0]
|
|
yyc3794 = true
|
|
}
|
|
} else if yyl3794 > 0 {
|
|
var yyrr3794, yyrl3794 int
|
|
var yyrt3794 bool
|
|
if yyl3794 > cap(yyv3794) {
|
|
|
|
yyrg3794 := len(yyv3794) > 0
|
|
yyv23794 := yyv3794
|
|
yyrl3794, yyrt3794 = z.DecInferLen(yyl3794, z.DecBasicHandle().MaxInitLen, 16)
|
|
if yyrt3794 {
|
|
if yyrl3794 <= cap(yyv3794) {
|
|
yyv3794 = yyv3794[:yyrl3794]
|
|
} else {
|
|
yyv3794 = make([]pkg8_runtime.Object, yyrl3794)
|
|
}
|
|
} else {
|
|
yyv3794 = make([]pkg8_runtime.Object, yyrl3794)
|
|
}
|
|
yyc3794 = true
|
|
yyrr3794 = len(yyv3794)
|
|
if yyrg3794 {
|
|
copy(yyv3794, yyv23794)
|
|
}
|
|
} else if yyl3794 != len(yyv3794) {
|
|
yyv3794 = yyv3794[:yyl3794]
|
|
yyc3794 = true
|
|
}
|
|
yyj3794 := 0
|
|
for ; yyj3794 < yyrr3794; yyj3794++ {
|
|
yyh3794.ElemContainerState(yyj3794)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3794[yyj3794] = nil
|
|
} else {
|
|
yyv3795 := &yyv3794[yyj3794]
|
|
yym3796 := z.DecBinary()
|
|
_ = yym3796
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3795) {
|
|
} else {
|
|
z.DecFallback(yyv3795, true)
|
|
}
|
|
}
|
|
|
|
}
|
|
if yyrt3794 {
|
|
for ; yyj3794 < yyl3794; yyj3794++ {
|
|
yyv3794 = append(yyv3794, nil)
|
|
yyh3794.ElemContainerState(yyj3794)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3794[yyj3794] = nil
|
|
} else {
|
|
yyv3797 := &yyv3794[yyj3794]
|
|
yym3798 := z.DecBinary()
|
|
_ = yym3798
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3797) {
|
|
} else {
|
|
z.DecFallback(yyv3797, true)
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3794 := 0
|
|
for ; !r.CheckBreak(); yyj3794++ {
|
|
|
|
if yyj3794 >= len(yyv3794) {
|
|
yyv3794 = append(yyv3794, nil) // var yyz3794 pkg8_runtime.Object
|
|
yyc3794 = true
|
|
}
|
|
yyh3794.ElemContainerState(yyj3794)
|
|
if yyj3794 < len(yyv3794) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3794[yyj3794] = nil
|
|
} else {
|
|
yyv3799 := &yyv3794[yyj3794]
|
|
yym3800 := z.DecBinary()
|
|
_ = yym3800
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3799) {
|
|
} else {
|
|
z.DecFallback(yyv3799, true)
|
|
}
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3794 < len(yyv3794) {
|
|
yyv3794 = yyv3794[:yyj3794]
|
|
yyc3794 = true
|
|
} else if yyj3794 == 0 && yyv3794 == nil {
|
|
yyv3794 = []pkg8_runtime.Object{}
|
|
yyc3794 = true
|
|
}
|
|
}
|
|
yyh3794.End()
|
|
if yyc3794 {
|
|
*v = yyv3794
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSliceLimitRangeItem(v []LimitRangeItem, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv3801 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3802 := &yyv3801
|
|
yy3802.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSliceLimitRangeItem(v *[]LimitRangeItem, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv3803 := *v
|
|
yyh3803, yyl3803 := z.DecSliceHelperStart()
|
|
var yyc3803 bool
|
|
if yyl3803 == 0 {
|
|
if yyv3803 == nil {
|
|
yyv3803 = []LimitRangeItem{}
|
|
yyc3803 = true
|
|
} else if len(yyv3803) != 0 {
|
|
yyv3803 = yyv3803[:0]
|
|
yyc3803 = true
|
|
}
|
|
} else if yyl3803 > 0 {
|
|
var yyrr3803, yyrl3803 int
|
|
var yyrt3803 bool
|
|
if yyl3803 > cap(yyv3803) {
|
|
|
|
yyrg3803 := len(yyv3803) > 0
|
|
yyv23803 := yyv3803
|
|
yyrl3803, yyrt3803 = z.DecInferLen(yyl3803, z.DecBasicHandle().MaxInitLen, 56)
|
|
if yyrt3803 {
|
|
if yyrl3803 <= cap(yyv3803) {
|
|
yyv3803 = yyv3803[:yyrl3803]
|
|
} else {
|
|
yyv3803 = make([]LimitRangeItem, yyrl3803)
|
|
}
|
|
} else {
|
|
yyv3803 = make([]LimitRangeItem, yyrl3803)
|
|
}
|
|
yyc3803 = true
|
|
yyrr3803 = len(yyv3803)
|
|
if yyrg3803 {
|
|
copy(yyv3803, yyv23803)
|
|
}
|
|
} else if yyl3803 != len(yyv3803) {
|
|
yyv3803 = yyv3803[:yyl3803]
|
|
yyc3803 = true
|
|
}
|
|
yyj3803 := 0
|
|
for ; yyj3803 < yyrr3803; yyj3803++ {
|
|
yyh3803.ElemContainerState(yyj3803)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3803[yyj3803] = LimitRangeItem{}
|
|
} else {
|
|
yyv3804 := &yyv3803[yyj3803]
|
|
yyv3804.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3803 {
|
|
for ; yyj3803 < yyl3803; yyj3803++ {
|
|
yyv3803 = append(yyv3803, LimitRangeItem{})
|
|
yyh3803.ElemContainerState(yyj3803)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3803[yyj3803] = LimitRangeItem{}
|
|
} else {
|
|
yyv3805 := &yyv3803[yyj3803]
|
|
yyv3805.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3803 := 0
|
|
for ; !r.CheckBreak(); yyj3803++ {
|
|
|
|
if yyj3803 >= len(yyv3803) {
|
|
yyv3803 = append(yyv3803, LimitRangeItem{}) // var yyz3803 LimitRangeItem
|
|
yyc3803 = true
|
|
}
|
|
yyh3803.ElemContainerState(yyj3803)
|
|
if yyj3803 < len(yyv3803) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3803[yyj3803] = LimitRangeItem{}
|
|
} else {
|
|
yyv3806 := &yyv3803[yyj3803]
|
|
yyv3806.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3803 < len(yyv3803) {
|
|
yyv3803 = yyv3803[:yyj3803]
|
|
yyc3803 = true
|
|
} else if yyj3803 == 0 && yyv3803 == nil {
|
|
yyv3803 = []LimitRangeItem{}
|
|
yyc3803 = true
|
|
}
|
|
}
|
|
yyh3803.End()
|
|
if yyc3803 {
|
|
*v = yyv3803
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSliceLimitRange(v []LimitRange, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv3807 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3808 := &yyv3807
|
|
yy3808.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSliceLimitRange(v *[]LimitRange, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv3809 := *v
|
|
yyh3809, yyl3809 := z.DecSliceHelperStart()
|
|
var yyc3809 bool
|
|
if yyl3809 == 0 {
|
|
if yyv3809 == nil {
|
|
yyv3809 = []LimitRange{}
|
|
yyc3809 = true
|
|
} else if len(yyv3809) != 0 {
|
|
yyv3809 = yyv3809[:0]
|
|
yyc3809 = true
|
|
}
|
|
} else if yyl3809 > 0 {
|
|
var yyrr3809, yyrl3809 int
|
|
var yyrt3809 bool
|
|
if yyl3809 > cap(yyv3809) {
|
|
|
|
yyrg3809 := len(yyv3809) > 0
|
|
yyv23809 := yyv3809
|
|
yyrl3809, yyrt3809 = z.DecInferLen(yyl3809, z.DecBasicHandle().MaxInitLen, 216)
|
|
if yyrt3809 {
|
|
if yyrl3809 <= cap(yyv3809) {
|
|
yyv3809 = yyv3809[:yyrl3809]
|
|
} else {
|
|
yyv3809 = make([]LimitRange, yyrl3809)
|
|
}
|
|
} else {
|
|
yyv3809 = make([]LimitRange, yyrl3809)
|
|
}
|
|
yyc3809 = true
|
|
yyrr3809 = len(yyv3809)
|
|
if yyrg3809 {
|
|
copy(yyv3809, yyv23809)
|
|
}
|
|
} else if yyl3809 != len(yyv3809) {
|
|
yyv3809 = yyv3809[:yyl3809]
|
|
yyc3809 = true
|
|
}
|
|
yyj3809 := 0
|
|
for ; yyj3809 < yyrr3809; yyj3809++ {
|
|
yyh3809.ElemContainerState(yyj3809)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3809[yyj3809] = LimitRange{}
|
|
} else {
|
|
yyv3810 := &yyv3809[yyj3809]
|
|
yyv3810.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3809 {
|
|
for ; yyj3809 < yyl3809; yyj3809++ {
|
|
yyv3809 = append(yyv3809, LimitRange{})
|
|
yyh3809.ElemContainerState(yyj3809)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3809[yyj3809] = LimitRange{}
|
|
} else {
|
|
yyv3811 := &yyv3809[yyj3809]
|
|
yyv3811.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3809 := 0
|
|
for ; !r.CheckBreak(); yyj3809++ {
|
|
|
|
if yyj3809 >= len(yyv3809) {
|
|
yyv3809 = append(yyv3809, LimitRange{}) // var yyz3809 LimitRange
|
|
yyc3809 = true
|
|
}
|
|
yyh3809.ElemContainerState(yyj3809)
|
|
if yyj3809 < len(yyv3809) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3809[yyj3809] = LimitRange{}
|
|
} else {
|
|
yyv3812 := &yyv3809[yyj3809]
|
|
yyv3812.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3809 < len(yyv3809) {
|
|
yyv3809 = yyv3809[:yyj3809]
|
|
yyc3809 = true
|
|
} else if yyj3809 == 0 && yyv3809 == nil {
|
|
yyv3809 = []LimitRange{}
|
|
yyc3809 = true
|
|
}
|
|
}
|
|
yyh3809.End()
|
|
if yyc3809 {
|
|
*v = yyv3809
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSliceResourceQuota(v []ResourceQuota, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv3813 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3814 := &yyv3813
|
|
yy3814.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSliceResourceQuota(v *[]ResourceQuota, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv3815 := *v
|
|
yyh3815, yyl3815 := z.DecSliceHelperStart()
|
|
var yyc3815 bool
|
|
if yyl3815 == 0 {
|
|
if yyv3815 == nil {
|
|
yyv3815 = []ResourceQuota{}
|
|
yyc3815 = true
|
|
} else if len(yyv3815) != 0 {
|
|
yyv3815 = yyv3815[:0]
|
|
yyc3815 = true
|
|
}
|
|
} else if yyl3815 > 0 {
|
|
var yyrr3815, yyrl3815 int
|
|
var yyrt3815 bool
|
|
if yyl3815 > cap(yyv3815) {
|
|
|
|
yyrg3815 := len(yyv3815) > 0
|
|
yyv23815 := yyv3815
|
|
yyrl3815, yyrt3815 = z.DecInferLen(yyl3815, z.DecBasicHandle().MaxInitLen, 216)
|
|
if yyrt3815 {
|
|
if yyrl3815 <= cap(yyv3815) {
|
|
yyv3815 = yyv3815[:yyrl3815]
|
|
} else {
|
|
yyv3815 = make([]ResourceQuota, yyrl3815)
|
|
}
|
|
} else {
|
|
yyv3815 = make([]ResourceQuota, yyrl3815)
|
|
}
|
|
yyc3815 = true
|
|
yyrr3815 = len(yyv3815)
|
|
if yyrg3815 {
|
|
copy(yyv3815, yyv23815)
|
|
}
|
|
} else if yyl3815 != len(yyv3815) {
|
|
yyv3815 = yyv3815[:yyl3815]
|
|
yyc3815 = true
|
|
}
|
|
yyj3815 := 0
|
|
for ; yyj3815 < yyrr3815; yyj3815++ {
|
|
yyh3815.ElemContainerState(yyj3815)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3815[yyj3815] = ResourceQuota{}
|
|
} else {
|
|
yyv3816 := &yyv3815[yyj3815]
|
|
yyv3816.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3815 {
|
|
for ; yyj3815 < yyl3815; yyj3815++ {
|
|
yyv3815 = append(yyv3815, ResourceQuota{})
|
|
yyh3815.ElemContainerState(yyj3815)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3815[yyj3815] = ResourceQuota{}
|
|
} else {
|
|
yyv3817 := &yyv3815[yyj3815]
|
|
yyv3817.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3815 := 0
|
|
for ; !r.CheckBreak(); yyj3815++ {
|
|
|
|
if yyj3815 >= len(yyv3815) {
|
|
yyv3815 = append(yyv3815, ResourceQuota{}) // var yyz3815 ResourceQuota
|
|
yyc3815 = true
|
|
}
|
|
yyh3815.ElemContainerState(yyj3815)
|
|
if yyj3815 < len(yyv3815) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3815[yyj3815] = ResourceQuota{}
|
|
} else {
|
|
yyv3818 := &yyv3815[yyj3815]
|
|
yyv3818.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3815 < len(yyv3815) {
|
|
yyv3815 = yyv3815[:yyj3815]
|
|
yyc3815 = true
|
|
} else if yyj3815 == 0 && yyv3815 == nil {
|
|
yyv3815 = []ResourceQuota{}
|
|
yyc3815 = true
|
|
}
|
|
}
|
|
yyh3815.End()
|
|
if yyc3815 {
|
|
*v = yyv3815
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encMapstringSliceuint8(v map[string][]uint8, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeMapStart(len(v))
|
|
for yyk3819, yyv3819 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
yym3820 := z.EncBinary()
|
|
_ = yym3820
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(yyk3819))
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyv3819 == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3821 := z.EncBinary()
|
|
_ = yym3821
|
|
if false {
|
|
} else {
|
|
r.EncodeStringBytes(codecSelferC_RAW1234, []byte(yyv3819))
|
|
}
|
|
}
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decMapstringSliceuint8(v *map[string][]uint8, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv3822 := *v
|
|
yyl3822 := r.ReadMapStart()
|
|
yybh3822 := z.DecBasicHandle()
|
|
if yyv3822 == nil {
|
|
yyrl3822, _ := z.DecInferLen(yyl3822, yybh3822.MaxInitLen, 40)
|
|
yyv3822 = make(map[string][]uint8, yyrl3822)
|
|
*v = yyv3822
|
|
}
|
|
var yymk3822 string
|
|
var yymv3822 []uint8
|
|
var yymg3822 bool
|
|
if yybh3822.MapValueReset {
|
|
yymg3822 = true
|
|
}
|
|
if yyl3822 > 0 {
|
|
for yyj3822 := 0; yyj3822 < yyl3822; yyj3822++ {
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
if r.TryDecodeAsNil() {
|
|
yymk3822 = ""
|
|
} else {
|
|
yymk3822 = string(r.DecodeString())
|
|
}
|
|
|
|
if yymg3822 {
|
|
yymv3822 = yyv3822[yymk3822]
|
|
} else {
|
|
yymv3822 = nil
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
if r.TryDecodeAsNil() {
|
|
yymv3822 = nil
|
|
} else {
|
|
yyv3824 := &yymv3822
|
|
yym3825 := z.DecBinary()
|
|
_ = yym3825
|
|
if false {
|
|
} else {
|
|
*yyv3824 = r.DecodeBytes(*(*[]byte)(yyv3824), false, false)
|
|
}
|
|
}
|
|
|
|
if yyv3822 != nil {
|
|
yyv3822[yymk3822] = yymv3822
|
|
}
|
|
}
|
|
} else if yyl3822 < 0 {
|
|
for yyj3822 := 0; !r.CheckBreak(); yyj3822++ {
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
if r.TryDecodeAsNil() {
|
|
yymk3822 = ""
|
|
} else {
|
|
yymk3822 = string(r.DecodeString())
|
|
}
|
|
|
|
if yymg3822 {
|
|
yymv3822 = yyv3822[yymk3822]
|
|
} else {
|
|
yymv3822 = nil
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
if r.TryDecodeAsNil() {
|
|
yymv3822 = nil
|
|
} else {
|
|
yyv3827 := &yymv3822
|
|
yym3828 := z.DecBinary()
|
|
_ = yym3828
|
|
if false {
|
|
} else {
|
|
*yyv3827 = r.DecodeBytes(*(*[]byte)(yyv3827), false, false)
|
|
}
|
|
}
|
|
|
|
if yyv3822 != nil {
|
|
yyv3822[yymk3822] = yymv3822
|
|
}
|
|
}
|
|
} // else len==0: TODO: Should we clear map entries?
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) encSliceSecret(v []Secret, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv3829 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3830 := &yyv3829
|
|
yy3830.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSliceSecret(v *[]Secret, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv3831 := *v
|
|
yyh3831, yyl3831 := z.DecSliceHelperStart()
|
|
var yyc3831 bool
|
|
if yyl3831 == 0 {
|
|
if yyv3831 == nil {
|
|
yyv3831 = []Secret{}
|
|
yyc3831 = true
|
|
} else if len(yyv3831) != 0 {
|
|
yyv3831 = yyv3831[:0]
|
|
yyc3831 = true
|
|
}
|
|
} else if yyl3831 > 0 {
|
|
var yyrr3831, yyrl3831 int
|
|
var yyrt3831 bool
|
|
if yyl3831 > cap(yyv3831) {
|
|
|
|
yyrg3831 := len(yyv3831) > 0
|
|
yyv23831 := yyv3831
|
|
yyrl3831, yyrt3831 = z.DecInferLen(yyl3831, z.DecBasicHandle().MaxInitLen, 216)
|
|
if yyrt3831 {
|
|
if yyrl3831 <= cap(yyv3831) {
|
|
yyv3831 = yyv3831[:yyrl3831]
|
|
} else {
|
|
yyv3831 = make([]Secret, yyrl3831)
|
|
}
|
|
} else {
|
|
yyv3831 = make([]Secret, yyrl3831)
|
|
}
|
|
yyc3831 = true
|
|
yyrr3831 = len(yyv3831)
|
|
if yyrg3831 {
|
|
copy(yyv3831, yyv23831)
|
|
}
|
|
} else if yyl3831 != len(yyv3831) {
|
|
yyv3831 = yyv3831[:yyl3831]
|
|
yyc3831 = true
|
|
}
|
|
yyj3831 := 0
|
|
for ; yyj3831 < yyrr3831; yyj3831++ {
|
|
yyh3831.ElemContainerState(yyj3831)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3831[yyj3831] = Secret{}
|
|
} else {
|
|
yyv3832 := &yyv3831[yyj3831]
|
|
yyv3832.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3831 {
|
|
for ; yyj3831 < yyl3831; yyj3831++ {
|
|
yyv3831 = append(yyv3831, Secret{})
|
|
yyh3831.ElemContainerState(yyj3831)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3831[yyj3831] = Secret{}
|
|
} else {
|
|
yyv3833 := &yyv3831[yyj3831]
|
|
yyv3833.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3831 := 0
|
|
for ; !r.CheckBreak(); yyj3831++ {
|
|
|
|
if yyj3831 >= len(yyv3831) {
|
|
yyv3831 = append(yyv3831, Secret{}) // var yyz3831 Secret
|
|
yyc3831 = true
|
|
}
|
|
yyh3831.ElemContainerState(yyj3831)
|
|
if yyj3831 < len(yyv3831) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3831[yyj3831] = Secret{}
|
|
} else {
|
|
yyv3834 := &yyv3831[yyj3831]
|
|
yyv3834.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3831 < len(yyv3831) {
|
|
yyv3831 = yyv3831[:yyj3831]
|
|
yyc3831 = true
|
|
} else if yyj3831 == 0 && yyv3831 == nil {
|
|
yyv3831 = []Secret{}
|
|
yyc3831 = true
|
|
}
|
|
}
|
|
yyh3831.End()
|
|
if yyc3831 {
|
|
*v = yyv3831
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSliceComponentCondition(v []ComponentCondition, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv3835 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3836 := &yyv3835
|
|
yy3836.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSliceComponentCondition(v *[]ComponentCondition, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv3837 := *v
|
|
yyh3837, yyl3837 := z.DecSliceHelperStart()
|
|
var yyc3837 bool
|
|
if yyl3837 == 0 {
|
|
if yyv3837 == nil {
|
|
yyv3837 = []ComponentCondition{}
|
|
yyc3837 = true
|
|
} else if len(yyv3837) != 0 {
|
|
yyv3837 = yyv3837[:0]
|
|
yyc3837 = true
|
|
}
|
|
} else if yyl3837 > 0 {
|
|
var yyrr3837, yyrl3837 int
|
|
var yyrt3837 bool
|
|
if yyl3837 > cap(yyv3837) {
|
|
|
|
yyrg3837 := len(yyv3837) > 0
|
|
yyv23837 := yyv3837
|
|
yyrl3837, yyrt3837 = z.DecInferLen(yyl3837, z.DecBasicHandle().MaxInitLen, 64)
|
|
if yyrt3837 {
|
|
if yyrl3837 <= cap(yyv3837) {
|
|
yyv3837 = yyv3837[:yyrl3837]
|
|
} else {
|
|
yyv3837 = make([]ComponentCondition, yyrl3837)
|
|
}
|
|
} else {
|
|
yyv3837 = make([]ComponentCondition, yyrl3837)
|
|
}
|
|
yyc3837 = true
|
|
yyrr3837 = len(yyv3837)
|
|
if yyrg3837 {
|
|
copy(yyv3837, yyv23837)
|
|
}
|
|
} else if yyl3837 != len(yyv3837) {
|
|
yyv3837 = yyv3837[:yyl3837]
|
|
yyc3837 = true
|
|
}
|
|
yyj3837 := 0
|
|
for ; yyj3837 < yyrr3837; yyj3837++ {
|
|
yyh3837.ElemContainerState(yyj3837)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3837[yyj3837] = ComponentCondition{}
|
|
} else {
|
|
yyv3838 := &yyv3837[yyj3837]
|
|
yyv3838.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3837 {
|
|
for ; yyj3837 < yyl3837; yyj3837++ {
|
|
yyv3837 = append(yyv3837, ComponentCondition{})
|
|
yyh3837.ElemContainerState(yyj3837)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3837[yyj3837] = ComponentCondition{}
|
|
} else {
|
|
yyv3839 := &yyv3837[yyj3837]
|
|
yyv3839.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3837 := 0
|
|
for ; !r.CheckBreak(); yyj3837++ {
|
|
|
|
if yyj3837 >= len(yyv3837) {
|
|
yyv3837 = append(yyv3837, ComponentCondition{}) // var yyz3837 ComponentCondition
|
|
yyc3837 = true
|
|
}
|
|
yyh3837.ElemContainerState(yyj3837)
|
|
if yyj3837 < len(yyv3837) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3837[yyj3837] = ComponentCondition{}
|
|
} else {
|
|
yyv3840 := &yyv3837[yyj3837]
|
|
yyv3840.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3837 < len(yyv3837) {
|
|
yyv3837 = yyv3837[:yyj3837]
|
|
yyc3837 = true
|
|
} else if yyj3837 == 0 && yyv3837 == nil {
|
|
yyv3837 = []ComponentCondition{}
|
|
yyc3837 = true
|
|
}
|
|
}
|
|
yyh3837.End()
|
|
if yyc3837 {
|
|
*v = yyv3837
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSliceComponentStatus(v []ComponentStatus, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv3841 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3842 := &yyv3841
|
|
yy3842.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSliceComponentStatus(v *[]ComponentStatus, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv3843 := *v
|
|
yyh3843, yyl3843 := z.DecSliceHelperStart()
|
|
var yyc3843 bool
|
|
if yyl3843 == 0 {
|
|
if yyv3843 == nil {
|
|
yyv3843 = []ComponentStatus{}
|
|
yyc3843 = true
|
|
} else if len(yyv3843) != 0 {
|
|
yyv3843 = yyv3843[:0]
|
|
yyc3843 = true
|
|
}
|
|
} else if yyl3843 > 0 {
|
|
var yyrr3843, yyrl3843 int
|
|
var yyrt3843 bool
|
|
if yyl3843 > cap(yyv3843) {
|
|
|
|
yyrg3843 := len(yyv3843) > 0
|
|
yyv23843 := yyv3843
|
|
yyrl3843, yyrt3843 = z.DecInferLen(yyl3843, z.DecBasicHandle().MaxInitLen, 216)
|
|
if yyrt3843 {
|
|
if yyrl3843 <= cap(yyv3843) {
|
|
yyv3843 = yyv3843[:yyrl3843]
|
|
} else {
|
|
yyv3843 = make([]ComponentStatus, yyrl3843)
|
|
}
|
|
} else {
|
|
yyv3843 = make([]ComponentStatus, yyrl3843)
|
|
}
|
|
yyc3843 = true
|
|
yyrr3843 = len(yyv3843)
|
|
if yyrg3843 {
|
|
copy(yyv3843, yyv23843)
|
|
}
|
|
} else if yyl3843 != len(yyv3843) {
|
|
yyv3843 = yyv3843[:yyl3843]
|
|
yyc3843 = true
|
|
}
|
|
yyj3843 := 0
|
|
for ; yyj3843 < yyrr3843; yyj3843++ {
|
|
yyh3843.ElemContainerState(yyj3843)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3843[yyj3843] = ComponentStatus{}
|
|
} else {
|
|
yyv3844 := &yyv3843[yyj3843]
|
|
yyv3844.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3843 {
|
|
for ; yyj3843 < yyl3843; yyj3843++ {
|
|
yyv3843 = append(yyv3843, ComponentStatus{})
|
|
yyh3843.ElemContainerState(yyj3843)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3843[yyj3843] = ComponentStatus{}
|
|
} else {
|
|
yyv3845 := &yyv3843[yyj3843]
|
|
yyv3845.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3843 := 0
|
|
for ; !r.CheckBreak(); yyj3843++ {
|
|
|
|
if yyj3843 >= len(yyv3843) {
|
|
yyv3843 = append(yyv3843, ComponentStatus{}) // var yyz3843 ComponentStatus
|
|
yyc3843 = true
|
|
}
|
|
yyh3843.ElemContainerState(yyj3843)
|
|
if yyj3843 < len(yyv3843) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3843[yyj3843] = ComponentStatus{}
|
|
} else {
|
|
yyv3846 := &yyv3843[yyj3843]
|
|
yyv3846.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3843 < len(yyv3843) {
|
|
yyv3843 = yyv3843[:yyj3843]
|
|
yyc3843 = true
|
|
} else if yyj3843 == 0 && yyv3843 == nil {
|
|
yyv3843 = []ComponentStatus{}
|
|
yyc3843 = true
|
|
}
|
|
}
|
|
yyh3843.End()
|
|
if yyc3843 {
|
|
*v = yyv3843
|
|
}
|
|
}
|