mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-08 06:15:45 +00:00
48114 lines
1.1 MiB
48114 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 [17]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.Cinder != nil && x.Cinder != nil
|
|
yyq82[13] = x.VolumeSource.CephFS != nil && x.CephFS != nil
|
|
yyq82[14] = x.VolumeSource.Flocker != nil && x.Flocker != nil
|
|
yyq82[15] = x.VolumeSource.DownwardAPI != nil && x.DownwardAPI != nil
|
|
yyq82[16] = x.VolumeSource.FC != nil && x.FC != nil
|
|
var yynn82 int
|
|
if yyr82 || yy2arr82 {
|
|
r.EncodeArrayStart(17)
|
|
} 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.Cinder == nil {
|
|
yyn97 = true
|
|
goto LABEL97
|
|
}
|
|
LABEL97:
|
|
if yyr82 || yy2arr82 {
|
|
if yyn97 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq82[12] {
|
|
if x.Cinder == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Cinder.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq82[12] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("cinder"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn97 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.Cinder == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Cinder.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn98 bool
|
|
if x.VolumeSource.CephFS == nil {
|
|
yyn98 = true
|
|
goto LABEL98
|
|
}
|
|
LABEL98:
|
|
if yyr82 || yy2arr82 {
|
|
if yyn98 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq82[13] {
|
|
if x.CephFS == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.CephFS.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq82[13] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("cephfs"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn98 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.CephFS == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.CephFS.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn99 bool
|
|
if x.VolumeSource.Flocker == nil {
|
|
yyn99 = true
|
|
goto LABEL99
|
|
}
|
|
LABEL99:
|
|
if yyr82 || yy2arr82 {
|
|
if yyn99 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq82[14] {
|
|
if x.Flocker == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Flocker.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq82[14] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("flocker"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn99 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.Flocker == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Flocker.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn100 bool
|
|
if x.VolumeSource.DownwardAPI == nil {
|
|
yyn100 = true
|
|
goto LABEL100
|
|
}
|
|
LABEL100:
|
|
if yyr82 || yy2arr82 {
|
|
if yyn100 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq82[15] {
|
|
if x.DownwardAPI == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.DownwardAPI.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq82[15] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("downwardAPI"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn100 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.DownwardAPI == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.DownwardAPI.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn101 bool
|
|
if x.VolumeSource.FC == nil {
|
|
yyn101 = true
|
|
goto LABEL101
|
|
}
|
|
LABEL101:
|
|
if yyr82 || yy2arr82 {
|
|
if yyn101 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq82[16] {
|
|
if x.FC == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.FC.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq82[16] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("fc"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn101 {
|
|
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
|
|
yym102 := z.DecBinary()
|
|
_ = yym102
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct103 := r.ContainerType()
|
|
if yyct103 == codecSelferValueTypeMap1234 {
|
|
yyl103 := r.ReadMapStart()
|
|
if yyl103 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl103, d)
|
|
}
|
|
} else if yyct103 == codecSelferValueTypeArray1234 {
|
|
yyl103 := r.ReadArrayStart()
|
|
if yyl103 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl103, 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 yys104Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys104Slc
|
|
var yyhl104 bool = l >= 0
|
|
for yyj104 := 0; ; yyj104++ {
|
|
if yyhl104 {
|
|
if yyj104 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys104Slc = r.DecodeBytes(yys104Slc, true, true)
|
|
yys104 := string(yys104Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys104 {
|
|
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 "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, yys104)
|
|
} // end switch yys104
|
|
} // end for yyj104
|
|
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 yyj122 int
|
|
var yyb122 bool
|
|
var yyhl122 bool = l >= 0
|
|
yyj122++
|
|
if yyhl122 {
|
|
yyb122 = yyj122 > l
|
|
} else {
|
|
yyb122 = r.CheckBreak()
|
|
}
|
|
if yyb122 {
|
|
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)
|
|
}
|
|
yyj122++
|
|
if yyhl122 {
|
|
yyb122 = yyj122 > l
|
|
} else {
|
|
yyb122 = r.CheckBreak()
|
|
}
|
|
if yyb122 {
|
|
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)
|
|
}
|
|
yyj122++
|
|
if yyhl122 {
|
|
yyb122 = yyj122 > l
|
|
} else {
|
|
yyb122 = r.CheckBreak()
|
|
}
|
|
if yyb122 {
|
|
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)
|
|
}
|
|
yyj122++
|
|
if yyhl122 {
|
|
yyb122 = yyj122 > l
|
|
} else {
|
|
yyb122 = r.CheckBreak()
|
|
}
|
|
if yyb122 {
|
|
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)
|
|
}
|
|
yyj122++
|
|
if yyhl122 {
|
|
yyb122 = yyj122 > l
|
|
} else {
|
|
yyb122 = r.CheckBreak()
|
|
}
|
|
if yyb122 {
|
|
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)
|
|
}
|
|
yyj122++
|
|
if yyhl122 {
|
|
yyb122 = yyj122 > l
|
|
} else {
|
|
yyb122 = r.CheckBreak()
|
|
}
|
|
if yyb122 {
|
|
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)
|
|
}
|
|
yyj122++
|
|
if yyhl122 {
|
|
yyb122 = yyj122 > l
|
|
} else {
|
|
yyb122 = r.CheckBreak()
|
|
}
|
|
if yyb122 {
|
|
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)
|
|
}
|
|
yyj122++
|
|
if yyhl122 {
|
|
yyb122 = yyj122 > l
|
|
} else {
|
|
yyb122 = r.CheckBreak()
|
|
}
|
|
if yyb122 {
|
|
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)
|
|
}
|
|
yyj122++
|
|
if yyhl122 {
|
|
yyb122 = yyj122 > l
|
|
} else {
|
|
yyb122 = r.CheckBreak()
|
|
}
|
|
if yyb122 {
|
|
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)
|
|
}
|
|
yyj122++
|
|
if yyhl122 {
|
|
yyb122 = yyj122 > l
|
|
} else {
|
|
yyb122 = r.CheckBreak()
|
|
}
|
|
if yyb122 {
|
|
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)
|
|
}
|
|
yyj122++
|
|
if yyhl122 {
|
|
yyb122 = yyj122 > l
|
|
} else {
|
|
yyb122 = r.CheckBreak()
|
|
}
|
|
if yyb122 {
|
|
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)
|
|
}
|
|
yyj122++
|
|
if yyhl122 {
|
|
yyb122 = yyj122 > l
|
|
} else {
|
|
yyb122 = r.CheckBreak()
|
|
}
|
|
if yyb122 {
|
|
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.Cinder == nil {
|
|
x.VolumeSource.Cinder = new(CinderVolumeSource)
|
|
}
|
|
yyj122++
|
|
if yyhl122 {
|
|
yyb122 = yyj122 > l
|
|
} else {
|
|
yyb122 = r.CheckBreak()
|
|
}
|
|
if yyb122 {
|
|
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)
|
|
}
|
|
yyj122++
|
|
if yyhl122 {
|
|
yyb122 = yyj122 > l
|
|
} else {
|
|
yyb122 = r.CheckBreak()
|
|
}
|
|
if yyb122 {
|
|
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)
|
|
}
|
|
yyj122++
|
|
if yyhl122 {
|
|
yyb122 = yyj122 > l
|
|
} else {
|
|
yyb122 = r.CheckBreak()
|
|
}
|
|
if yyb122 {
|
|
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)
|
|
}
|
|
yyj122++
|
|
if yyhl122 {
|
|
yyb122 = yyj122 > l
|
|
} else {
|
|
yyb122 = r.CheckBreak()
|
|
}
|
|
if yyb122 {
|
|
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)
|
|
}
|
|
yyj122++
|
|
if yyhl122 {
|
|
yyb122 = yyj122 > l
|
|
} else {
|
|
yyb122 = r.CheckBreak()
|
|
}
|
|
if yyb122 {
|
|
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 {
|
|
yyj122++
|
|
if yyhl122 {
|
|
yyb122 = yyj122 > l
|
|
} else {
|
|
yyb122 = r.CheckBreak()
|
|
}
|
|
if yyb122 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj122-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 {
|
|
yym140 := z.EncBinary()
|
|
_ = yym140
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep141 := !z.EncBinary()
|
|
yy2arr141 := z.EncBasicHandle().StructToArray
|
|
var yyq141 [16]bool
|
|
_, _, _ = yysep141, yyq141, yy2arr141
|
|
const yyr141 bool = false
|
|
yyq141[0] = x.HostPath != nil
|
|
yyq141[1] = x.EmptyDir != nil
|
|
yyq141[2] = x.GCEPersistentDisk != nil
|
|
yyq141[3] = x.AWSElasticBlockStore != nil
|
|
yyq141[4] = x.GitRepo != nil
|
|
yyq141[5] = x.Secret != nil
|
|
yyq141[6] = x.NFS != nil
|
|
yyq141[7] = x.ISCSI != nil
|
|
yyq141[8] = x.Glusterfs != nil
|
|
yyq141[9] = x.PersistentVolumeClaim != nil
|
|
yyq141[10] = x.RBD != nil
|
|
yyq141[11] = x.Cinder != nil
|
|
yyq141[12] = x.CephFS != nil
|
|
yyq141[13] = x.Flocker != nil
|
|
yyq141[14] = x.DownwardAPI != nil
|
|
yyq141[15] = x.FC != nil
|
|
var yynn141 int
|
|
if yyr141 || yy2arr141 {
|
|
r.EncodeArrayStart(16)
|
|
} else {
|
|
yynn141 = 0
|
|
for _, b := range yyq141 {
|
|
if b {
|
|
yynn141++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn141)
|
|
yynn141 = 0
|
|
}
|
|
if yyr141 || yy2arr141 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq141[0] {
|
|
if x.HostPath == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.HostPath.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq141[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 yyr141 || yy2arr141 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq141[1] {
|
|
if x.EmptyDir == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.EmptyDir.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq141[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 yyr141 || yy2arr141 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq141[2] {
|
|
if x.GCEPersistentDisk == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.GCEPersistentDisk.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq141[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 yyr141 || yy2arr141 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq141[3] {
|
|
if x.AWSElasticBlockStore == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.AWSElasticBlockStore.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq141[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 yyr141 || yy2arr141 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq141[4] {
|
|
if x.GitRepo == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.GitRepo.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq141[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 yyr141 || yy2arr141 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq141[5] {
|
|
if x.Secret == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Secret.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq141[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 yyr141 || yy2arr141 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq141[6] {
|
|
if x.NFS == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.NFS.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq141[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 yyr141 || yy2arr141 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq141[7] {
|
|
if x.ISCSI == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.ISCSI.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq141[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 yyr141 || yy2arr141 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq141[8] {
|
|
if x.Glusterfs == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Glusterfs.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq141[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 yyr141 || yy2arr141 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq141[9] {
|
|
if x.PersistentVolumeClaim == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.PersistentVolumeClaim.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq141[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 yyr141 || yy2arr141 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq141[10] {
|
|
if x.RBD == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.RBD.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq141[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 yyr141 || yy2arr141 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq141[11] {
|
|
if x.Cinder == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Cinder.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq141[11] {
|
|
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 yyr141 || yy2arr141 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq141[12] {
|
|
if x.CephFS == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.CephFS.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq141[12] {
|
|
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 yyr141 || yy2arr141 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq141[13] {
|
|
if x.Flocker == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Flocker.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq141[13] {
|
|
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 yyr141 || yy2arr141 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq141[14] {
|
|
if x.DownwardAPI == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.DownwardAPI.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq141[14] {
|
|
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 yyr141 || yy2arr141 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq141[15] {
|
|
if x.FC == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.FC.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq141[15] {
|
|
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 yyr141 || yy2arr141 {
|
|
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
|
|
yym158 := z.DecBinary()
|
|
_ = yym158
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct159 := r.ContainerType()
|
|
if yyct159 == codecSelferValueTypeMap1234 {
|
|
yyl159 := r.ReadMapStart()
|
|
if yyl159 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl159, d)
|
|
}
|
|
} else if yyct159 == codecSelferValueTypeArray1234 {
|
|
yyl159 := r.ReadArrayStart()
|
|
if yyl159 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl159, 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 yys160Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys160Slc
|
|
var yyhl160 bool = l >= 0
|
|
for yyj160 := 0; ; yyj160++ {
|
|
if yyhl160 {
|
|
if yyj160 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys160Slc = r.DecodeBytes(yys160Slc, true, true)
|
|
yys160 := string(yys160Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys160 {
|
|
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 "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, yys160)
|
|
} // end switch yys160
|
|
} // end for yyj160
|
|
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 yyj177 int
|
|
var yyb177 bool
|
|
var yyhl177 bool = l >= 0
|
|
yyj177++
|
|
if yyhl177 {
|
|
yyb177 = yyj177 > l
|
|
} else {
|
|
yyb177 = r.CheckBreak()
|
|
}
|
|
if yyb177 {
|
|
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)
|
|
}
|
|
yyj177++
|
|
if yyhl177 {
|
|
yyb177 = yyj177 > l
|
|
} else {
|
|
yyb177 = r.CheckBreak()
|
|
}
|
|
if yyb177 {
|
|
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)
|
|
}
|
|
yyj177++
|
|
if yyhl177 {
|
|
yyb177 = yyj177 > l
|
|
} else {
|
|
yyb177 = r.CheckBreak()
|
|
}
|
|
if yyb177 {
|
|
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)
|
|
}
|
|
yyj177++
|
|
if yyhl177 {
|
|
yyb177 = yyj177 > l
|
|
} else {
|
|
yyb177 = r.CheckBreak()
|
|
}
|
|
if yyb177 {
|
|
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)
|
|
}
|
|
yyj177++
|
|
if yyhl177 {
|
|
yyb177 = yyj177 > l
|
|
} else {
|
|
yyb177 = r.CheckBreak()
|
|
}
|
|
if yyb177 {
|
|
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)
|
|
}
|
|
yyj177++
|
|
if yyhl177 {
|
|
yyb177 = yyj177 > l
|
|
} else {
|
|
yyb177 = r.CheckBreak()
|
|
}
|
|
if yyb177 {
|
|
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)
|
|
}
|
|
yyj177++
|
|
if yyhl177 {
|
|
yyb177 = yyj177 > l
|
|
} else {
|
|
yyb177 = r.CheckBreak()
|
|
}
|
|
if yyb177 {
|
|
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)
|
|
}
|
|
yyj177++
|
|
if yyhl177 {
|
|
yyb177 = yyj177 > l
|
|
} else {
|
|
yyb177 = r.CheckBreak()
|
|
}
|
|
if yyb177 {
|
|
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)
|
|
}
|
|
yyj177++
|
|
if yyhl177 {
|
|
yyb177 = yyj177 > l
|
|
} else {
|
|
yyb177 = r.CheckBreak()
|
|
}
|
|
if yyb177 {
|
|
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)
|
|
}
|
|
yyj177++
|
|
if yyhl177 {
|
|
yyb177 = yyj177 > l
|
|
} else {
|
|
yyb177 = r.CheckBreak()
|
|
}
|
|
if yyb177 {
|
|
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)
|
|
}
|
|
yyj177++
|
|
if yyhl177 {
|
|
yyb177 = yyj177 > l
|
|
} else {
|
|
yyb177 = r.CheckBreak()
|
|
}
|
|
if yyb177 {
|
|
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)
|
|
}
|
|
yyj177++
|
|
if yyhl177 {
|
|
yyb177 = yyj177 > l
|
|
} else {
|
|
yyb177 = r.CheckBreak()
|
|
}
|
|
if yyb177 {
|
|
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)
|
|
}
|
|
yyj177++
|
|
if yyhl177 {
|
|
yyb177 = yyj177 > l
|
|
} else {
|
|
yyb177 = r.CheckBreak()
|
|
}
|
|
if yyb177 {
|
|
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)
|
|
}
|
|
yyj177++
|
|
if yyhl177 {
|
|
yyb177 = yyj177 > l
|
|
} else {
|
|
yyb177 = r.CheckBreak()
|
|
}
|
|
if yyb177 {
|
|
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)
|
|
}
|
|
yyj177++
|
|
if yyhl177 {
|
|
yyb177 = yyj177 > l
|
|
} else {
|
|
yyb177 = r.CheckBreak()
|
|
}
|
|
if yyb177 {
|
|
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)
|
|
}
|
|
yyj177++
|
|
if yyhl177 {
|
|
yyb177 = yyj177 > l
|
|
} else {
|
|
yyb177 = r.CheckBreak()
|
|
}
|
|
if yyb177 {
|
|
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 {
|
|
yyj177++
|
|
if yyhl177 {
|
|
yyb177 = yyj177 > l
|
|
} else {
|
|
yyb177 = r.CheckBreak()
|
|
}
|
|
if yyb177 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj177-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 {
|
|
yym194 := z.EncBinary()
|
|
_ = yym194
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep195 := !z.EncBinary()
|
|
yy2arr195 := z.EncBasicHandle().StructToArray
|
|
var yyq195 [11]bool
|
|
_, _, _ = yysep195, yyq195, yy2arr195
|
|
const yyr195 bool = false
|
|
yyq195[0] = x.GCEPersistentDisk != nil
|
|
yyq195[1] = x.AWSElasticBlockStore != nil
|
|
yyq195[2] = x.HostPath != nil
|
|
yyq195[3] = x.Glusterfs != nil
|
|
yyq195[4] = x.NFS != nil
|
|
yyq195[5] = x.RBD != nil
|
|
yyq195[6] = x.ISCSI != nil
|
|
yyq195[7] = x.Cinder != nil
|
|
yyq195[8] = x.CephFS != nil
|
|
yyq195[9] = x.FC != nil
|
|
yyq195[10] = x.Flocker != nil
|
|
var yynn195 int
|
|
if yyr195 || yy2arr195 {
|
|
r.EncodeArrayStart(11)
|
|
} else {
|
|
yynn195 = 0
|
|
for _, b := range yyq195 {
|
|
if b {
|
|
yynn195++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn195)
|
|
yynn195 = 0
|
|
}
|
|
if yyr195 || yy2arr195 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq195[0] {
|
|
if x.GCEPersistentDisk == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.GCEPersistentDisk.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq195[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 yyr195 || yy2arr195 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq195[1] {
|
|
if x.AWSElasticBlockStore == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.AWSElasticBlockStore.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq195[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 yyr195 || yy2arr195 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq195[2] {
|
|
if x.HostPath == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.HostPath.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq195[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 yyr195 || yy2arr195 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq195[3] {
|
|
if x.Glusterfs == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Glusterfs.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq195[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 yyr195 || yy2arr195 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq195[4] {
|
|
if x.NFS == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.NFS.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq195[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 yyr195 || yy2arr195 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq195[5] {
|
|
if x.RBD == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.RBD.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq195[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 yyr195 || yy2arr195 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq195[6] {
|
|
if x.ISCSI == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.ISCSI.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq195[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 yyr195 || yy2arr195 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq195[7] {
|
|
if x.Cinder == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Cinder.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq195[7] {
|
|
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 yyr195 || yy2arr195 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq195[8] {
|
|
if x.CephFS == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.CephFS.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq195[8] {
|
|
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 yyr195 || yy2arr195 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq195[9] {
|
|
if x.FC == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.FC.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq195[9] {
|
|
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 yyr195 || yy2arr195 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq195[10] {
|
|
if x.Flocker == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Flocker.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq195[10] {
|
|
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 yyr195 || yy2arr195 {
|
|
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
|
|
yym207 := z.DecBinary()
|
|
_ = yym207
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct208 := r.ContainerType()
|
|
if yyct208 == codecSelferValueTypeMap1234 {
|
|
yyl208 := r.ReadMapStart()
|
|
if yyl208 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl208, d)
|
|
}
|
|
} else if yyct208 == codecSelferValueTypeArray1234 {
|
|
yyl208 := r.ReadArrayStart()
|
|
if yyl208 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl208, 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 yys209Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys209Slc
|
|
var yyhl209 bool = l >= 0
|
|
for yyj209 := 0; ; yyj209++ {
|
|
if yyhl209 {
|
|
if yyj209 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys209Slc = r.DecodeBytes(yys209Slc, true, true)
|
|
yys209 := string(yys209Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys209 {
|
|
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 "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, yys209)
|
|
} // end switch yys209
|
|
} // end for yyj209
|
|
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 yyj221 int
|
|
var yyb221 bool
|
|
var yyhl221 bool = l >= 0
|
|
yyj221++
|
|
if yyhl221 {
|
|
yyb221 = yyj221 > l
|
|
} else {
|
|
yyb221 = r.CheckBreak()
|
|
}
|
|
if yyb221 {
|
|
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)
|
|
}
|
|
yyj221++
|
|
if yyhl221 {
|
|
yyb221 = yyj221 > l
|
|
} else {
|
|
yyb221 = r.CheckBreak()
|
|
}
|
|
if yyb221 {
|
|
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)
|
|
}
|
|
yyj221++
|
|
if yyhl221 {
|
|
yyb221 = yyj221 > l
|
|
} else {
|
|
yyb221 = r.CheckBreak()
|
|
}
|
|
if yyb221 {
|
|
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)
|
|
}
|
|
yyj221++
|
|
if yyhl221 {
|
|
yyb221 = yyj221 > l
|
|
} else {
|
|
yyb221 = r.CheckBreak()
|
|
}
|
|
if yyb221 {
|
|
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)
|
|
}
|
|
yyj221++
|
|
if yyhl221 {
|
|
yyb221 = yyj221 > l
|
|
} else {
|
|
yyb221 = r.CheckBreak()
|
|
}
|
|
if yyb221 {
|
|
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)
|
|
}
|
|
yyj221++
|
|
if yyhl221 {
|
|
yyb221 = yyj221 > l
|
|
} else {
|
|
yyb221 = r.CheckBreak()
|
|
}
|
|
if yyb221 {
|
|
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)
|
|
}
|
|
yyj221++
|
|
if yyhl221 {
|
|
yyb221 = yyj221 > l
|
|
} else {
|
|
yyb221 = r.CheckBreak()
|
|
}
|
|
if yyb221 {
|
|
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)
|
|
}
|
|
yyj221++
|
|
if yyhl221 {
|
|
yyb221 = yyj221 > l
|
|
} else {
|
|
yyb221 = r.CheckBreak()
|
|
}
|
|
if yyb221 {
|
|
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)
|
|
}
|
|
yyj221++
|
|
if yyhl221 {
|
|
yyb221 = yyj221 > l
|
|
} else {
|
|
yyb221 = r.CheckBreak()
|
|
}
|
|
if yyb221 {
|
|
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)
|
|
}
|
|
yyj221++
|
|
if yyhl221 {
|
|
yyb221 = yyj221 > l
|
|
} else {
|
|
yyb221 = r.CheckBreak()
|
|
}
|
|
if yyb221 {
|
|
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)
|
|
}
|
|
yyj221++
|
|
if yyhl221 {
|
|
yyb221 = yyj221 > l
|
|
} else {
|
|
yyb221 = r.CheckBreak()
|
|
}
|
|
if yyb221 {
|
|
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 {
|
|
yyj221++
|
|
if yyhl221 {
|
|
yyb221 = yyj221 > l
|
|
} else {
|
|
yyb221 = r.CheckBreak()
|
|
}
|
|
if yyb221 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj221-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 {
|
|
yym233 := z.EncBinary()
|
|
_ = yym233
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep234 := !z.EncBinary()
|
|
yy2arr234 := z.EncBasicHandle().StructToArray
|
|
var yyq234 [2]bool
|
|
_, _, _ = yysep234, yyq234, yy2arr234
|
|
const yyr234 bool = false
|
|
yyq234[1] = x.ReadOnly != false
|
|
var yynn234 int
|
|
if yyr234 || yy2arr234 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn234 = 1
|
|
for _, b := range yyq234 {
|
|
if b {
|
|
yynn234++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn234)
|
|
yynn234 = 0
|
|
}
|
|
if yyr234 || yy2arr234 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym236 := z.EncBinary()
|
|
_ = yym236
|
|
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)
|
|
yym237 := z.EncBinary()
|
|
_ = yym237
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ClaimName))
|
|
}
|
|
}
|
|
if yyr234 || yy2arr234 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq234[1] {
|
|
yym239 := z.EncBinary()
|
|
_ = yym239
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq234[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym240 := z.EncBinary()
|
|
_ = yym240
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
}
|
|
}
|
|
if yyr234 || yy2arr234 {
|
|
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
|
|
yym241 := z.DecBinary()
|
|
_ = yym241
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct242 := r.ContainerType()
|
|
if yyct242 == codecSelferValueTypeMap1234 {
|
|
yyl242 := r.ReadMapStart()
|
|
if yyl242 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl242, d)
|
|
}
|
|
} else if yyct242 == codecSelferValueTypeArray1234 {
|
|
yyl242 := r.ReadArrayStart()
|
|
if yyl242 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl242, 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 yys243Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys243Slc
|
|
var yyhl243 bool = l >= 0
|
|
for yyj243 := 0; ; yyj243++ {
|
|
if yyhl243 {
|
|
if yyj243 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys243Slc = r.DecodeBytes(yys243Slc, true, true)
|
|
yys243 := string(yys243Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys243 {
|
|
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, yys243)
|
|
} // end switch yys243
|
|
} // end for yyj243
|
|
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 yyj246 int
|
|
var yyb246 bool
|
|
var yyhl246 bool = l >= 0
|
|
yyj246++
|
|
if yyhl246 {
|
|
yyb246 = yyj246 > l
|
|
} else {
|
|
yyb246 = r.CheckBreak()
|
|
}
|
|
if yyb246 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ClaimName = ""
|
|
} else {
|
|
x.ClaimName = string(r.DecodeString())
|
|
}
|
|
yyj246++
|
|
if yyhl246 {
|
|
yyb246 = yyj246 > l
|
|
} else {
|
|
yyb246 = r.CheckBreak()
|
|
}
|
|
if yyb246 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
for {
|
|
yyj246++
|
|
if yyhl246 {
|
|
yyb246 = yyj246 > l
|
|
} else {
|
|
yyb246 = r.CheckBreak()
|
|
}
|
|
if yyb246 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj246-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 {
|
|
yym249 := z.EncBinary()
|
|
_ = yym249
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep250 := !z.EncBinary()
|
|
yy2arr250 := z.EncBasicHandle().StructToArray
|
|
var yyq250 [5]bool
|
|
_, _, _ = yysep250, yyq250, yy2arr250
|
|
const yyr250 bool = false
|
|
yyq250[0] = x.Kind != ""
|
|
yyq250[1] = x.APIVersion != ""
|
|
yyq250[2] = true
|
|
yyq250[3] = true
|
|
yyq250[4] = true
|
|
var yynn250 int
|
|
if yyr250 || yy2arr250 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn250 = 0
|
|
for _, b := range yyq250 {
|
|
if b {
|
|
yynn250++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn250)
|
|
yynn250 = 0
|
|
}
|
|
if yyr250 || yy2arr250 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq250[0] {
|
|
yym252 := z.EncBinary()
|
|
_ = yym252
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq250[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym253 := z.EncBinary()
|
|
_ = yym253
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr250 || yy2arr250 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq250[1] {
|
|
yym255 := z.EncBinary()
|
|
_ = yym255
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq250[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym256 := z.EncBinary()
|
|
_ = yym256
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr250 || yy2arr250 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq250[2] {
|
|
yy258 := &x.ObjectMeta
|
|
yy258.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq250[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy259 := &x.ObjectMeta
|
|
yy259.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr250 || yy2arr250 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq250[3] {
|
|
yy261 := &x.Spec
|
|
yy261.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq250[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("spec"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy262 := &x.Spec
|
|
yy262.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr250 || yy2arr250 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq250[4] {
|
|
yy264 := &x.Status
|
|
yy264.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq250[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("status"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy265 := &x.Status
|
|
yy265.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr250 || yy2arr250 {
|
|
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
|
|
yym266 := z.DecBinary()
|
|
_ = yym266
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct267 := r.ContainerType()
|
|
if yyct267 == codecSelferValueTypeMap1234 {
|
|
yyl267 := r.ReadMapStart()
|
|
if yyl267 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl267, d)
|
|
}
|
|
} else if yyct267 == codecSelferValueTypeArray1234 {
|
|
yyl267 := r.ReadArrayStart()
|
|
if yyl267 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl267, 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 yys268Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys268Slc
|
|
var yyhl268 bool = l >= 0
|
|
for yyj268 := 0; ; yyj268++ {
|
|
if yyhl268 {
|
|
if yyj268 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys268Slc = r.DecodeBytes(yys268Slc, true, true)
|
|
yys268 := string(yys268Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys268 {
|
|
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 {
|
|
yyv271 := &x.ObjectMeta
|
|
yyv271.CodecDecodeSelf(d)
|
|
}
|
|
case "spec":
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = PersistentVolumeSpec{}
|
|
} else {
|
|
yyv272 := &x.Spec
|
|
yyv272.CodecDecodeSelf(d)
|
|
}
|
|
case "status":
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = PersistentVolumeStatus{}
|
|
} else {
|
|
yyv273 := &x.Status
|
|
yyv273.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys268)
|
|
} // end switch yys268
|
|
} // end for yyj268
|
|
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 yyj274 int
|
|
var yyb274 bool
|
|
var yyhl274 bool = l >= 0
|
|
yyj274++
|
|
if yyhl274 {
|
|
yyb274 = yyj274 > l
|
|
} else {
|
|
yyb274 = r.CheckBreak()
|
|
}
|
|
if yyb274 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj274++
|
|
if yyhl274 {
|
|
yyb274 = yyj274 > l
|
|
} else {
|
|
yyb274 = r.CheckBreak()
|
|
}
|
|
if yyb274 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj274++
|
|
if yyhl274 {
|
|
yyb274 = yyj274 > l
|
|
} else {
|
|
yyb274 = r.CheckBreak()
|
|
}
|
|
if yyb274 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv277 := &x.ObjectMeta
|
|
yyv277.CodecDecodeSelf(d)
|
|
}
|
|
yyj274++
|
|
if yyhl274 {
|
|
yyb274 = yyj274 > l
|
|
} else {
|
|
yyb274 = r.CheckBreak()
|
|
}
|
|
if yyb274 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = PersistentVolumeSpec{}
|
|
} else {
|
|
yyv278 := &x.Spec
|
|
yyv278.CodecDecodeSelf(d)
|
|
}
|
|
yyj274++
|
|
if yyhl274 {
|
|
yyb274 = yyj274 > l
|
|
} else {
|
|
yyb274 = r.CheckBreak()
|
|
}
|
|
if yyb274 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = PersistentVolumeStatus{}
|
|
} else {
|
|
yyv279 := &x.Status
|
|
yyv279.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj274++
|
|
if yyhl274 {
|
|
yyb274 = yyj274 > l
|
|
} else {
|
|
yyb274 = r.CheckBreak()
|
|
}
|
|
if yyb274 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj274-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 {
|
|
yym280 := z.EncBinary()
|
|
_ = yym280
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep281 := !z.EncBinary()
|
|
yy2arr281 := z.EncBasicHandle().StructToArray
|
|
var yyq281 [15]bool
|
|
_, _, _ = yysep281, yyq281, yy2arr281
|
|
const yyr281 bool = false
|
|
yyq281[1] = x.PersistentVolumeSource.GCEPersistentDisk != nil && x.GCEPersistentDisk != nil
|
|
yyq281[2] = x.PersistentVolumeSource.AWSElasticBlockStore != nil && x.AWSElasticBlockStore != nil
|
|
yyq281[3] = x.PersistentVolumeSource.HostPath != nil && x.HostPath != nil
|
|
yyq281[4] = x.PersistentVolumeSource.Glusterfs != nil && x.Glusterfs != nil
|
|
yyq281[5] = x.PersistentVolumeSource.NFS != nil && x.NFS != nil
|
|
yyq281[6] = x.PersistentVolumeSource.RBD != nil && x.RBD != nil
|
|
yyq281[7] = x.PersistentVolumeSource.ISCSI != nil && x.ISCSI != nil
|
|
yyq281[8] = x.PersistentVolumeSource.Cinder != nil && x.Cinder != nil
|
|
yyq281[9] = x.PersistentVolumeSource.CephFS != nil && x.CephFS != nil
|
|
yyq281[10] = x.PersistentVolumeSource.FC != nil && x.FC != nil
|
|
yyq281[11] = x.PersistentVolumeSource.Flocker != nil && x.Flocker != nil
|
|
yyq281[12] = len(x.AccessModes) != 0
|
|
yyq281[13] = x.ClaimRef != nil
|
|
yyq281[14] = x.PersistentVolumeReclaimPolicy != ""
|
|
var yynn281 int
|
|
if yyr281 || yy2arr281 {
|
|
r.EncodeArrayStart(15)
|
|
} else {
|
|
yynn281 = 1
|
|
for _, b := range yyq281 {
|
|
if b {
|
|
yynn281++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn281)
|
|
yynn281 = 0
|
|
}
|
|
if yyr281 || yy2arr281 {
|
|
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 yyn283 bool
|
|
if x.PersistentVolumeSource.GCEPersistentDisk == nil {
|
|
yyn283 = true
|
|
goto LABEL283
|
|
}
|
|
LABEL283:
|
|
if yyr281 || yy2arr281 {
|
|
if yyn283 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq281[1] {
|
|
if x.GCEPersistentDisk == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.GCEPersistentDisk.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq281[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn283 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.GCEPersistentDisk == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.GCEPersistentDisk.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn284 bool
|
|
if x.PersistentVolumeSource.AWSElasticBlockStore == nil {
|
|
yyn284 = true
|
|
goto LABEL284
|
|
}
|
|
LABEL284:
|
|
if yyr281 || yy2arr281 {
|
|
if yyn284 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq281[2] {
|
|
if x.AWSElasticBlockStore == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.AWSElasticBlockStore.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq281[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn284 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.AWSElasticBlockStore == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.AWSElasticBlockStore.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn285 bool
|
|
if x.PersistentVolumeSource.HostPath == nil {
|
|
yyn285 = true
|
|
goto LABEL285
|
|
}
|
|
LABEL285:
|
|
if yyr281 || yy2arr281 {
|
|
if yyn285 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq281[3] {
|
|
if x.HostPath == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.HostPath.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq281[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("hostPath"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn285 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.HostPath == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.HostPath.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn286 bool
|
|
if x.PersistentVolumeSource.Glusterfs == nil {
|
|
yyn286 = true
|
|
goto LABEL286
|
|
}
|
|
LABEL286:
|
|
if yyr281 || yy2arr281 {
|
|
if yyn286 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq281[4] {
|
|
if x.Glusterfs == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Glusterfs.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq281[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("glusterfs"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn286 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.Glusterfs == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Glusterfs.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn287 bool
|
|
if x.PersistentVolumeSource.NFS == nil {
|
|
yyn287 = true
|
|
goto LABEL287
|
|
}
|
|
LABEL287:
|
|
if yyr281 || yy2arr281 {
|
|
if yyn287 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq281[5] {
|
|
if x.NFS == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.NFS.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq281[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("nfs"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn287 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.NFS == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.NFS.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn288 bool
|
|
if x.PersistentVolumeSource.RBD == nil {
|
|
yyn288 = true
|
|
goto LABEL288
|
|
}
|
|
LABEL288:
|
|
if yyr281 || yy2arr281 {
|
|
if yyn288 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq281[6] {
|
|
if x.RBD == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.RBD.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq281[6] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("rbd"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn288 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.RBD == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.RBD.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn289 bool
|
|
if x.PersistentVolumeSource.ISCSI == nil {
|
|
yyn289 = true
|
|
goto LABEL289
|
|
}
|
|
LABEL289:
|
|
if yyr281 || yy2arr281 {
|
|
if yyn289 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq281[7] {
|
|
if x.ISCSI == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.ISCSI.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq281[7] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("iscsi"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn289 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.ISCSI == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.ISCSI.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn290 bool
|
|
if x.PersistentVolumeSource.Cinder == nil {
|
|
yyn290 = true
|
|
goto LABEL290
|
|
}
|
|
LABEL290:
|
|
if yyr281 || yy2arr281 {
|
|
if yyn290 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq281[8] {
|
|
if x.Cinder == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Cinder.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq281[8] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("cinder"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn290 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.Cinder == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Cinder.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn291 bool
|
|
if x.PersistentVolumeSource.CephFS == nil {
|
|
yyn291 = true
|
|
goto LABEL291
|
|
}
|
|
LABEL291:
|
|
if yyr281 || yy2arr281 {
|
|
if yyn291 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq281[9] {
|
|
if x.CephFS == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.CephFS.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq281[9] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("cephfs"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn291 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.CephFS == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.CephFS.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn292 bool
|
|
if x.PersistentVolumeSource.FC == nil {
|
|
yyn292 = true
|
|
goto LABEL292
|
|
}
|
|
LABEL292:
|
|
if yyr281 || yy2arr281 {
|
|
if yyn292 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq281[10] {
|
|
if x.FC == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.FC.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq281[10] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("fc"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn292 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.FC == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.FC.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn293 bool
|
|
if x.PersistentVolumeSource.Flocker == nil {
|
|
yyn293 = true
|
|
goto LABEL293
|
|
}
|
|
LABEL293:
|
|
if yyr281 || yy2arr281 {
|
|
if yyn293 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq281[11] {
|
|
if x.Flocker == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Flocker.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq281[11] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("flocker"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn293 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.Flocker == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Flocker.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr281 || yy2arr281 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq281[12] {
|
|
if x.AccessModes == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym295 := z.EncBinary()
|
|
_ = yym295
|
|
if false {
|
|
} else {
|
|
h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq281[12] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("accessModes"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.AccessModes == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym296 := z.EncBinary()
|
|
_ = yym296
|
|
if false {
|
|
} else {
|
|
h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr281 || yy2arr281 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq281[13] {
|
|
if x.ClaimRef == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.ClaimRef.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq281[13] {
|
|
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 yyr281 || yy2arr281 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq281[14] {
|
|
x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq281[14] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeReclaimPolicy"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr281 || yy2arr281 {
|
|
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
|
|
yym299 := z.DecBinary()
|
|
_ = yym299
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct300 := r.ContainerType()
|
|
if yyct300 == codecSelferValueTypeMap1234 {
|
|
yyl300 := r.ReadMapStart()
|
|
if yyl300 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl300, d)
|
|
}
|
|
} else if yyct300 == codecSelferValueTypeArray1234 {
|
|
yyl300 := r.ReadArrayStart()
|
|
if yyl300 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl300, 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 yys301Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys301Slc
|
|
var yyhl301 bool = l >= 0
|
|
for yyj301 := 0; ; yyj301++ {
|
|
if yyhl301 {
|
|
if yyj301 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys301Slc = r.DecodeBytes(yys301Slc, true, true)
|
|
yys301 := string(yys301Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys301 {
|
|
case "capacity":
|
|
if r.TryDecodeAsNil() {
|
|
x.Capacity = nil
|
|
} else {
|
|
yyv302 := &x.Capacity
|
|
yyv302.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 "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 {
|
|
yyv314 := &x.AccessModes
|
|
yym315 := z.DecBinary()
|
|
_ = yym315
|
|
if false {
|
|
} else {
|
|
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv314), 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, yys301)
|
|
} // end switch yys301
|
|
} // end for yyj301
|
|
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 yyj318 int
|
|
var yyb318 bool
|
|
var yyhl318 bool = l >= 0
|
|
yyj318++
|
|
if yyhl318 {
|
|
yyb318 = yyj318 > l
|
|
} else {
|
|
yyb318 = r.CheckBreak()
|
|
}
|
|
if yyb318 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Capacity = nil
|
|
} else {
|
|
yyv319 := &x.Capacity
|
|
yyv319.CodecDecodeSelf(d)
|
|
}
|
|
if x.PersistentVolumeSource.GCEPersistentDisk == nil {
|
|
x.PersistentVolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
|
|
}
|
|
yyj318++
|
|
if yyhl318 {
|
|
yyb318 = yyj318 > l
|
|
} else {
|
|
yyb318 = r.CheckBreak()
|
|
}
|
|
if yyb318 {
|
|
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)
|
|
}
|
|
yyj318++
|
|
if yyhl318 {
|
|
yyb318 = yyj318 > l
|
|
} else {
|
|
yyb318 = r.CheckBreak()
|
|
}
|
|
if yyb318 {
|
|
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)
|
|
}
|
|
yyj318++
|
|
if yyhl318 {
|
|
yyb318 = yyj318 > l
|
|
} else {
|
|
yyb318 = r.CheckBreak()
|
|
}
|
|
if yyb318 {
|
|
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)
|
|
}
|
|
yyj318++
|
|
if yyhl318 {
|
|
yyb318 = yyj318 > l
|
|
} else {
|
|
yyb318 = r.CheckBreak()
|
|
}
|
|
if yyb318 {
|
|
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)
|
|
}
|
|
yyj318++
|
|
if yyhl318 {
|
|
yyb318 = yyj318 > l
|
|
} else {
|
|
yyb318 = r.CheckBreak()
|
|
}
|
|
if yyb318 {
|
|
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)
|
|
}
|
|
yyj318++
|
|
if yyhl318 {
|
|
yyb318 = yyj318 > l
|
|
} else {
|
|
yyb318 = r.CheckBreak()
|
|
}
|
|
if yyb318 {
|
|
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)
|
|
}
|
|
yyj318++
|
|
if yyhl318 {
|
|
yyb318 = yyj318 > l
|
|
} else {
|
|
yyb318 = r.CheckBreak()
|
|
}
|
|
if yyb318 {
|
|
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.Cinder == nil {
|
|
x.PersistentVolumeSource.Cinder = new(CinderVolumeSource)
|
|
}
|
|
yyj318++
|
|
if yyhl318 {
|
|
yyb318 = yyj318 > l
|
|
} else {
|
|
yyb318 = r.CheckBreak()
|
|
}
|
|
if yyb318 {
|
|
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)
|
|
}
|
|
yyj318++
|
|
if yyhl318 {
|
|
yyb318 = yyj318 > l
|
|
} else {
|
|
yyb318 = r.CheckBreak()
|
|
}
|
|
if yyb318 {
|
|
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)
|
|
}
|
|
yyj318++
|
|
if yyhl318 {
|
|
yyb318 = yyj318 > l
|
|
} else {
|
|
yyb318 = r.CheckBreak()
|
|
}
|
|
if yyb318 {
|
|
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)
|
|
}
|
|
yyj318++
|
|
if yyhl318 {
|
|
yyb318 = yyj318 > l
|
|
} else {
|
|
yyb318 = r.CheckBreak()
|
|
}
|
|
if yyb318 {
|
|
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)
|
|
}
|
|
yyj318++
|
|
if yyhl318 {
|
|
yyb318 = yyj318 > l
|
|
} else {
|
|
yyb318 = r.CheckBreak()
|
|
}
|
|
if yyb318 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.AccessModes = nil
|
|
} else {
|
|
yyv331 := &x.AccessModes
|
|
yym332 := z.DecBinary()
|
|
_ = yym332
|
|
if false {
|
|
} else {
|
|
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv331), d)
|
|
}
|
|
}
|
|
yyj318++
|
|
if yyhl318 {
|
|
yyb318 = yyj318 > l
|
|
} else {
|
|
yyb318 = r.CheckBreak()
|
|
}
|
|
if yyb318 {
|
|
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)
|
|
}
|
|
yyj318++
|
|
if yyhl318 {
|
|
yyb318 = yyj318 > l
|
|
} else {
|
|
yyb318 = r.CheckBreak()
|
|
}
|
|
if yyb318 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.PersistentVolumeReclaimPolicy = ""
|
|
} else {
|
|
x.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimPolicy(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj318++
|
|
if yyhl318 {
|
|
yyb318 = yyj318 > l
|
|
} else {
|
|
yyb318 = r.CheckBreak()
|
|
}
|
|
if yyb318 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj318-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x PersistentVolumeReclaimPolicy) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym335 := z.EncBinary()
|
|
_ = yym335
|
|
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
|
|
yym336 := z.DecBinary()
|
|
_ = yym336
|
|
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 {
|
|
yym337 := z.EncBinary()
|
|
_ = yym337
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep338 := !z.EncBinary()
|
|
yy2arr338 := z.EncBasicHandle().StructToArray
|
|
var yyq338 [3]bool
|
|
_, _, _ = yysep338, yyq338, yy2arr338
|
|
const yyr338 bool = false
|
|
yyq338[0] = x.Phase != ""
|
|
yyq338[1] = x.Message != ""
|
|
yyq338[2] = x.Reason != ""
|
|
var yynn338 int
|
|
if yyr338 || yy2arr338 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn338 = 0
|
|
for _, b := range yyq338 {
|
|
if b {
|
|
yynn338++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn338)
|
|
yynn338 = 0
|
|
}
|
|
if yyr338 || yy2arr338 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq338[0] {
|
|
x.Phase.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq338[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("phase"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Phase.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr338 || yy2arr338 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq338[1] {
|
|
yym341 := z.EncBinary()
|
|
_ = yym341
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq338[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("message"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym342 := z.EncBinary()
|
|
_ = yym342
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
}
|
|
}
|
|
if yyr338 || yy2arr338 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq338[2] {
|
|
yym344 := z.EncBinary()
|
|
_ = yym344
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq338[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("reason"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym345 := z.EncBinary()
|
|
_ = yym345
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
|
|
}
|
|
}
|
|
}
|
|
if yyr338 || yy2arr338 {
|
|
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
|
|
yym346 := z.DecBinary()
|
|
_ = yym346
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct347 := r.ContainerType()
|
|
if yyct347 == codecSelferValueTypeMap1234 {
|
|
yyl347 := r.ReadMapStart()
|
|
if yyl347 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl347, d)
|
|
}
|
|
} else if yyct347 == codecSelferValueTypeArray1234 {
|
|
yyl347 := r.ReadArrayStart()
|
|
if yyl347 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl347, 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 yys348Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys348Slc
|
|
var yyhl348 bool = l >= 0
|
|
for yyj348 := 0; ; yyj348++ {
|
|
if yyhl348 {
|
|
if yyj348 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys348Slc = r.DecodeBytes(yys348Slc, true, true)
|
|
yys348 := string(yys348Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys348 {
|
|
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, yys348)
|
|
} // end switch yys348
|
|
} // end for yyj348
|
|
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 yyj352 int
|
|
var yyb352 bool
|
|
var yyhl352 bool = l >= 0
|
|
yyj352++
|
|
if yyhl352 {
|
|
yyb352 = yyj352 > l
|
|
} else {
|
|
yyb352 = r.CheckBreak()
|
|
}
|
|
if yyb352 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Phase = ""
|
|
} else {
|
|
x.Phase = PersistentVolumePhase(r.DecodeString())
|
|
}
|
|
yyj352++
|
|
if yyhl352 {
|
|
yyb352 = yyj352 > l
|
|
} else {
|
|
yyb352 = r.CheckBreak()
|
|
}
|
|
if yyb352 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Message = ""
|
|
} else {
|
|
x.Message = string(r.DecodeString())
|
|
}
|
|
yyj352++
|
|
if yyhl352 {
|
|
yyb352 = yyj352 > l
|
|
} else {
|
|
yyb352 = r.CheckBreak()
|
|
}
|
|
if yyb352 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Reason = ""
|
|
} else {
|
|
x.Reason = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj352++
|
|
if yyhl352 {
|
|
yyb352 = yyj352 > l
|
|
} else {
|
|
yyb352 = r.CheckBreak()
|
|
}
|
|
if yyb352 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj352-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 {
|
|
yym356 := z.EncBinary()
|
|
_ = yym356
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep357 := !z.EncBinary()
|
|
yy2arr357 := z.EncBasicHandle().StructToArray
|
|
var yyq357 [4]bool
|
|
_, _, _ = yysep357, yyq357, yy2arr357
|
|
const yyr357 bool = false
|
|
yyq357[0] = x.Kind != ""
|
|
yyq357[1] = x.APIVersion != ""
|
|
yyq357[2] = true
|
|
var yynn357 int
|
|
if yyr357 || yy2arr357 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn357 = 1
|
|
for _, b := range yyq357 {
|
|
if b {
|
|
yynn357++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn357)
|
|
yynn357 = 0
|
|
}
|
|
if yyr357 || yy2arr357 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq357[0] {
|
|
yym359 := z.EncBinary()
|
|
_ = yym359
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq357[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym360 := z.EncBinary()
|
|
_ = yym360
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr357 || yy2arr357 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq357[1] {
|
|
yym362 := z.EncBinary()
|
|
_ = yym362
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq357[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym363 := z.EncBinary()
|
|
_ = yym363
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr357 || yy2arr357 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq357[2] {
|
|
yy365 := &x.ListMeta
|
|
yym366 := z.EncBinary()
|
|
_ = yym366
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy365) {
|
|
} else {
|
|
z.EncFallback(yy365)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq357[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy367 := &x.ListMeta
|
|
yym368 := z.EncBinary()
|
|
_ = yym368
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy367) {
|
|
} else {
|
|
z.EncFallback(yy367)
|
|
}
|
|
}
|
|
}
|
|
if yyr357 || yy2arr357 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym370 := z.EncBinary()
|
|
_ = yym370
|
|
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 {
|
|
yym371 := z.EncBinary()
|
|
_ = yym371
|
|
if false {
|
|
} else {
|
|
h.encSlicePersistentVolume(([]PersistentVolume)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr357 || yy2arr357 {
|
|
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
|
|
yym372 := z.DecBinary()
|
|
_ = yym372
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct373 := r.ContainerType()
|
|
if yyct373 == codecSelferValueTypeMap1234 {
|
|
yyl373 := r.ReadMapStart()
|
|
if yyl373 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl373, d)
|
|
}
|
|
} else if yyct373 == codecSelferValueTypeArray1234 {
|
|
yyl373 := r.ReadArrayStart()
|
|
if yyl373 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl373, 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 yys374Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys374Slc
|
|
var yyhl374 bool = l >= 0
|
|
for yyj374 := 0; ; yyj374++ {
|
|
if yyhl374 {
|
|
if yyj374 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys374Slc = r.DecodeBytes(yys374Slc, true, true)
|
|
yys374 := string(yys374Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys374 {
|
|
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 {
|
|
yyv377 := &x.ListMeta
|
|
yym378 := z.DecBinary()
|
|
_ = yym378
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv377) {
|
|
} else {
|
|
z.DecFallback(yyv377, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv379 := &x.Items
|
|
yym380 := z.DecBinary()
|
|
_ = yym380
|
|
if false {
|
|
} else {
|
|
h.decSlicePersistentVolume((*[]PersistentVolume)(yyv379), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys374)
|
|
} // end switch yys374
|
|
} // end for yyj374
|
|
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 yyj381 int
|
|
var yyb381 bool
|
|
var yyhl381 bool = l >= 0
|
|
yyj381++
|
|
if yyhl381 {
|
|
yyb381 = yyj381 > l
|
|
} else {
|
|
yyb381 = r.CheckBreak()
|
|
}
|
|
if yyb381 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj381++
|
|
if yyhl381 {
|
|
yyb381 = yyj381 > l
|
|
} else {
|
|
yyb381 = r.CheckBreak()
|
|
}
|
|
if yyb381 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj381++
|
|
if yyhl381 {
|
|
yyb381 = yyj381 > l
|
|
} else {
|
|
yyb381 = r.CheckBreak()
|
|
}
|
|
if yyb381 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv384 := &x.ListMeta
|
|
yym385 := z.DecBinary()
|
|
_ = yym385
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv384) {
|
|
} else {
|
|
z.DecFallback(yyv384, false)
|
|
}
|
|
}
|
|
yyj381++
|
|
if yyhl381 {
|
|
yyb381 = yyj381 > l
|
|
} else {
|
|
yyb381 = r.CheckBreak()
|
|
}
|
|
if yyb381 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv386 := &x.Items
|
|
yym387 := z.DecBinary()
|
|
_ = yym387
|
|
if false {
|
|
} else {
|
|
h.decSlicePersistentVolume((*[]PersistentVolume)(yyv386), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj381++
|
|
if yyhl381 {
|
|
yyb381 = yyj381 > l
|
|
} else {
|
|
yyb381 = r.CheckBreak()
|
|
}
|
|
if yyb381 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj381-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 {
|
|
yym388 := z.EncBinary()
|
|
_ = yym388
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep389 := !z.EncBinary()
|
|
yy2arr389 := z.EncBasicHandle().StructToArray
|
|
var yyq389 [5]bool
|
|
_, _, _ = yysep389, yyq389, yy2arr389
|
|
const yyr389 bool = false
|
|
yyq389[0] = x.Kind != ""
|
|
yyq389[1] = x.APIVersion != ""
|
|
yyq389[2] = true
|
|
yyq389[3] = true
|
|
yyq389[4] = true
|
|
var yynn389 int
|
|
if yyr389 || yy2arr389 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn389 = 0
|
|
for _, b := range yyq389 {
|
|
if b {
|
|
yynn389++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn389)
|
|
yynn389 = 0
|
|
}
|
|
if yyr389 || yy2arr389 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq389[0] {
|
|
yym391 := z.EncBinary()
|
|
_ = yym391
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq389[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym392 := z.EncBinary()
|
|
_ = yym392
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr389 || yy2arr389 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq389[1] {
|
|
yym394 := z.EncBinary()
|
|
_ = yym394
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq389[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym395 := z.EncBinary()
|
|
_ = yym395
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr389 || yy2arr389 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq389[2] {
|
|
yy397 := &x.ObjectMeta
|
|
yy397.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq389[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy398 := &x.ObjectMeta
|
|
yy398.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr389 || yy2arr389 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq389[3] {
|
|
yy400 := &x.Spec
|
|
yy400.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq389[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("spec"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy401 := &x.Spec
|
|
yy401.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr389 || yy2arr389 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq389[4] {
|
|
yy403 := &x.Status
|
|
yy403.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq389[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("status"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy404 := &x.Status
|
|
yy404.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr389 || yy2arr389 {
|
|
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
|
|
yym405 := z.DecBinary()
|
|
_ = yym405
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct406 := r.ContainerType()
|
|
if yyct406 == codecSelferValueTypeMap1234 {
|
|
yyl406 := r.ReadMapStart()
|
|
if yyl406 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl406, d)
|
|
}
|
|
} else if yyct406 == codecSelferValueTypeArray1234 {
|
|
yyl406 := r.ReadArrayStart()
|
|
if yyl406 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl406, 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 yys407Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys407Slc
|
|
var yyhl407 bool = l >= 0
|
|
for yyj407 := 0; ; yyj407++ {
|
|
if yyhl407 {
|
|
if yyj407 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys407Slc = r.DecodeBytes(yys407Slc, true, true)
|
|
yys407 := string(yys407Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys407 {
|
|
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 {
|
|
yyv410 := &x.ObjectMeta
|
|
yyv410.CodecDecodeSelf(d)
|
|
}
|
|
case "spec":
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = PersistentVolumeClaimSpec{}
|
|
} else {
|
|
yyv411 := &x.Spec
|
|
yyv411.CodecDecodeSelf(d)
|
|
}
|
|
case "status":
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = PersistentVolumeClaimStatus{}
|
|
} else {
|
|
yyv412 := &x.Status
|
|
yyv412.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys407)
|
|
} // end switch yys407
|
|
} // end for yyj407
|
|
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 yyj413 int
|
|
var yyb413 bool
|
|
var yyhl413 bool = l >= 0
|
|
yyj413++
|
|
if yyhl413 {
|
|
yyb413 = yyj413 > l
|
|
} else {
|
|
yyb413 = r.CheckBreak()
|
|
}
|
|
if yyb413 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj413++
|
|
if yyhl413 {
|
|
yyb413 = yyj413 > l
|
|
} else {
|
|
yyb413 = r.CheckBreak()
|
|
}
|
|
if yyb413 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj413++
|
|
if yyhl413 {
|
|
yyb413 = yyj413 > l
|
|
} else {
|
|
yyb413 = r.CheckBreak()
|
|
}
|
|
if yyb413 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv416 := &x.ObjectMeta
|
|
yyv416.CodecDecodeSelf(d)
|
|
}
|
|
yyj413++
|
|
if yyhl413 {
|
|
yyb413 = yyj413 > l
|
|
} else {
|
|
yyb413 = r.CheckBreak()
|
|
}
|
|
if yyb413 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = PersistentVolumeClaimSpec{}
|
|
} else {
|
|
yyv417 := &x.Spec
|
|
yyv417.CodecDecodeSelf(d)
|
|
}
|
|
yyj413++
|
|
if yyhl413 {
|
|
yyb413 = yyj413 > l
|
|
} else {
|
|
yyb413 = r.CheckBreak()
|
|
}
|
|
if yyb413 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = PersistentVolumeClaimStatus{}
|
|
} else {
|
|
yyv418 := &x.Status
|
|
yyv418.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj413++
|
|
if yyhl413 {
|
|
yyb413 = yyj413 > l
|
|
} else {
|
|
yyb413 = r.CheckBreak()
|
|
}
|
|
if yyb413 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj413-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 {
|
|
yym419 := z.EncBinary()
|
|
_ = yym419
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep420 := !z.EncBinary()
|
|
yy2arr420 := z.EncBasicHandle().StructToArray
|
|
var yyq420 [4]bool
|
|
_, _, _ = yysep420, yyq420, yy2arr420
|
|
const yyr420 bool = false
|
|
yyq420[0] = x.Kind != ""
|
|
yyq420[1] = x.APIVersion != ""
|
|
yyq420[2] = true
|
|
var yynn420 int
|
|
if yyr420 || yy2arr420 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn420 = 1
|
|
for _, b := range yyq420 {
|
|
if b {
|
|
yynn420++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn420)
|
|
yynn420 = 0
|
|
}
|
|
if yyr420 || yy2arr420 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq420[0] {
|
|
yym422 := z.EncBinary()
|
|
_ = yym422
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq420[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym423 := z.EncBinary()
|
|
_ = yym423
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr420 || yy2arr420 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq420[1] {
|
|
yym425 := z.EncBinary()
|
|
_ = yym425
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq420[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym426 := z.EncBinary()
|
|
_ = yym426
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr420 || yy2arr420 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq420[2] {
|
|
yy428 := &x.ListMeta
|
|
yym429 := z.EncBinary()
|
|
_ = yym429
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy428) {
|
|
} else {
|
|
z.EncFallback(yy428)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq420[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy430 := &x.ListMeta
|
|
yym431 := z.EncBinary()
|
|
_ = yym431
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy430) {
|
|
} else {
|
|
z.EncFallback(yy430)
|
|
}
|
|
}
|
|
}
|
|
if yyr420 || yy2arr420 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym433 := z.EncBinary()
|
|
_ = yym433
|
|
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 {
|
|
yym434 := z.EncBinary()
|
|
_ = yym434
|
|
if false {
|
|
} else {
|
|
h.encSlicePersistentVolumeClaim(([]PersistentVolumeClaim)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr420 || yy2arr420 {
|
|
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
|
|
yym435 := z.DecBinary()
|
|
_ = yym435
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct436 := r.ContainerType()
|
|
if yyct436 == codecSelferValueTypeMap1234 {
|
|
yyl436 := r.ReadMapStart()
|
|
if yyl436 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl436, d)
|
|
}
|
|
} else if yyct436 == codecSelferValueTypeArray1234 {
|
|
yyl436 := r.ReadArrayStart()
|
|
if yyl436 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl436, 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 yys437Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys437Slc
|
|
var yyhl437 bool = l >= 0
|
|
for yyj437 := 0; ; yyj437++ {
|
|
if yyhl437 {
|
|
if yyj437 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys437Slc = r.DecodeBytes(yys437Slc, true, true)
|
|
yys437 := string(yys437Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys437 {
|
|
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 {
|
|
yyv440 := &x.ListMeta
|
|
yym441 := z.DecBinary()
|
|
_ = yym441
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv440) {
|
|
} else {
|
|
z.DecFallback(yyv440, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv442 := &x.Items
|
|
yym443 := z.DecBinary()
|
|
_ = yym443
|
|
if false {
|
|
} else {
|
|
h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv442), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys437)
|
|
} // end switch yys437
|
|
} // end for yyj437
|
|
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 yyj444 int
|
|
var yyb444 bool
|
|
var yyhl444 bool = l >= 0
|
|
yyj444++
|
|
if yyhl444 {
|
|
yyb444 = yyj444 > l
|
|
} else {
|
|
yyb444 = r.CheckBreak()
|
|
}
|
|
if yyb444 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj444++
|
|
if yyhl444 {
|
|
yyb444 = yyj444 > l
|
|
} else {
|
|
yyb444 = r.CheckBreak()
|
|
}
|
|
if yyb444 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj444++
|
|
if yyhl444 {
|
|
yyb444 = yyj444 > l
|
|
} else {
|
|
yyb444 = r.CheckBreak()
|
|
}
|
|
if yyb444 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv447 := &x.ListMeta
|
|
yym448 := z.DecBinary()
|
|
_ = yym448
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv447) {
|
|
} else {
|
|
z.DecFallback(yyv447, false)
|
|
}
|
|
}
|
|
yyj444++
|
|
if yyhl444 {
|
|
yyb444 = yyj444 > l
|
|
} else {
|
|
yyb444 = r.CheckBreak()
|
|
}
|
|
if yyb444 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv449 := &x.Items
|
|
yym450 := z.DecBinary()
|
|
_ = yym450
|
|
if false {
|
|
} else {
|
|
h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv449), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj444++
|
|
if yyhl444 {
|
|
yyb444 = yyj444 > l
|
|
} else {
|
|
yyb444 = r.CheckBreak()
|
|
}
|
|
if yyb444 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj444-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 {
|
|
yym451 := z.EncBinary()
|
|
_ = yym451
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep452 := !z.EncBinary()
|
|
yy2arr452 := z.EncBasicHandle().StructToArray
|
|
var yyq452 [3]bool
|
|
_, _, _ = yysep452, yyq452, yy2arr452
|
|
const yyr452 bool = false
|
|
yyq452[0] = len(x.AccessModes) != 0
|
|
yyq452[1] = true
|
|
yyq452[2] = x.VolumeName != ""
|
|
var yynn452 int
|
|
if yyr452 || yy2arr452 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn452 = 0
|
|
for _, b := range yyq452 {
|
|
if b {
|
|
yynn452++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn452)
|
|
yynn452 = 0
|
|
}
|
|
if yyr452 || yy2arr452 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq452[0] {
|
|
if x.AccessModes == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym454 := z.EncBinary()
|
|
_ = yym454
|
|
if false {
|
|
} else {
|
|
h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq452[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("accessModes"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.AccessModes == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym455 := z.EncBinary()
|
|
_ = yym455
|
|
if false {
|
|
} else {
|
|
h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr452 || yy2arr452 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq452[1] {
|
|
yy457 := &x.Resources
|
|
yy457.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq452[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("resources"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy458 := &x.Resources
|
|
yy458.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr452 || yy2arr452 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq452[2] {
|
|
yym460 := z.EncBinary()
|
|
_ = yym460
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq452[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("volumeName"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym461 := z.EncBinary()
|
|
_ = yym461
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName))
|
|
}
|
|
}
|
|
}
|
|
if yyr452 || yy2arr452 {
|
|
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
|
|
yym462 := z.DecBinary()
|
|
_ = yym462
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct463 := r.ContainerType()
|
|
if yyct463 == codecSelferValueTypeMap1234 {
|
|
yyl463 := r.ReadMapStart()
|
|
if yyl463 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl463, d)
|
|
}
|
|
} else if yyct463 == codecSelferValueTypeArray1234 {
|
|
yyl463 := r.ReadArrayStart()
|
|
if yyl463 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl463, 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 yys464Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys464Slc
|
|
var yyhl464 bool = l >= 0
|
|
for yyj464 := 0; ; yyj464++ {
|
|
if yyhl464 {
|
|
if yyj464 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys464Slc = r.DecodeBytes(yys464Slc, true, true)
|
|
yys464 := string(yys464Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys464 {
|
|
case "accessModes":
|
|
if r.TryDecodeAsNil() {
|
|
x.AccessModes = nil
|
|
} else {
|
|
yyv465 := &x.AccessModes
|
|
yym466 := z.DecBinary()
|
|
_ = yym466
|
|
if false {
|
|
} else {
|
|
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv465), d)
|
|
}
|
|
}
|
|
case "resources":
|
|
if r.TryDecodeAsNil() {
|
|
x.Resources = ResourceRequirements{}
|
|
} else {
|
|
yyv467 := &x.Resources
|
|
yyv467.CodecDecodeSelf(d)
|
|
}
|
|
case "volumeName":
|
|
if r.TryDecodeAsNil() {
|
|
x.VolumeName = ""
|
|
} else {
|
|
x.VolumeName = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys464)
|
|
} // end switch yys464
|
|
} // end for yyj464
|
|
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 yyj469 int
|
|
var yyb469 bool
|
|
var yyhl469 bool = l >= 0
|
|
yyj469++
|
|
if yyhl469 {
|
|
yyb469 = yyj469 > l
|
|
} else {
|
|
yyb469 = r.CheckBreak()
|
|
}
|
|
if yyb469 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.AccessModes = nil
|
|
} else {
|
|
yyv470 := &x.AccessModes
|
|
yym471 := z.DecBinary()
|
|
_ = yym471
|
|
if false {
|
|
} else {
|
|
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv470), d)
|
|
}
|
|
}
|
|
yyj469++
|
|
if yyhl469 {
|
|
yyb469 = yyj469 > l
|
|
} else {
|
|
yyb469 = r.CheckBreak()
|
|
}
|
|
if yyb469 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Resources = ResourceRequirements{}
|
|
} else {
|
|
yyv472 := &x.Resources
|
|
yyv472.CodecDecodeSelf(d)
|
|
}
|
|
yyj469++
|
|
if yyhl469 {
|
|
yyb469 = yyj469 > l
|
|
} else {
|
|
yyb469 = r.CheckBreak()
|
|
}
|
|
if yyb469 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.VolumeName = ""
|
|
} else {
|
|
x.VolumeName = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj469++
|
|
if yyhl469 {
|
|
yyb469 = yyj469 > l
|
|
} else {
|
|
yyb469 = r.CheckBreak()
|
|
}
|
|
if yyb469 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj469-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 {
|
|
yym474 := z.EncBinary()
|
|
_ = yym474
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep475 := !z.EncBinary()
|
|
yy2arr475 := z.EncBasicHandle().StructToArray
|
|
var yyq475 [3]bool
|
|
_, _, _ = yysep475, yyq475, yy2arr475
|
|
const yyr475 bool = false
|
|
yyq475[0] = x.Phase != ""
|
|
yyq475[1] = len(x.AccessModes) != 0
|
|
yyq475[2] = len(x.Capacity) != 0
|
|
var yynn475 int
|
|
if yyr475 || yy2arr475 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn475 = 0
|
|
for _, b := range yyq475 {
|
|
if b {
|
|
yynn475++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn475)
|
|
yynn475 = 0
|
|
}
|
|
if yyr475 || yy2arr475 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq475[0] {
|
|
x.Phase.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq475[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("phase"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Phase.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr475 || yy2arr475 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq475[1] {
|
|
if x.AccessModes == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym478 := z.EncBinary()
|
|
_ = yym478
|
|
if false {
|
|
} else {
|
|
h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq475[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("accessModes"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.AccessModes == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym479 := z.EncBinary()
|
|
_ = yym479
|
|
if false {
|
|
} else {
|
|
h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr475 || yy2arr475 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq475[2] {
|
|
if x.Capacity == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Capacity.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq475[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 yyr475 || yy2arr475 {
|
|
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
|
|
yym481 := z.DecBinary()
|
|
_ = yym481
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct482 := r.ContainerType()
|
|
if yyct482 == codecSelferValueTypeMap1234 {
|
|
yyl482 := r.ReadMapStart()
|
|
if yyl482 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl482, d)
|
|
}
|
|
} else if yyct482 == codecSelferValueTypeArray1234 {
|
|
yyl482 := r.ReadArrayStart()
|
|
if yyl482 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl482, 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 yys483Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys483Slc
|
|
var yyhl483 bool = l >= 0
|
|
for yyj483 := 0; ; yyj483++ {
|
|
if yyhl483 {
|
|
if yyj483 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys483Slc = r.DecodeBytes(yys483Slc, true, true)
|
|
yys483 := string(yys483Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys483 {
|
|
case "phase":
|
|
if r.TryDecodeAsNil() {
|
|
x.Phase = ""
|
|
} else {
|
|
x.Phase = PersistentVolumeClaimPhase(r.DecodeString())
|
|
}
|
|
case "accessModes":
|
|
if r.TryDecodeAsNil() {
|
|
x.AccessModes = nil
|
|
} else {
|
|
yyv485 := &x.AccessModes
|
|
yym486 := z.DecBinary()
|
|
_ = yym486
|
|
if false {
|
|
} else {
|
|
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv485), d)
|
|
}
|
|
}
|
|
case "capacity":
|
|
if r.TryDecodeAsNil() {
|
|
x.Capacity = nil
|
|
} else {
|
|
yyv487 := &x.Capacity
|
|
yyv487.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys483)
|
|
} // end switch yys483
|
|
} // end for yyj483
|
|
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 yyj488 int
|
|
var yyb488 bool
|
|
var yyhl488 bool = l >= 0
|
|
yyj488++
|
|
if yyhl488 {
|
|
yyb488 = yyj488 > l
|
|
} else {
|
|
yyb488 = r.CheckBreak()
|
|
}
|
|
if yyb488 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Phase = ""
|
|
} else {
|
|
x.Phase = PersistentVolumeClaimPhase(r.DecodeString())
|
|
}
|
|
yyj488++
|
|
if yyhl488 {
|
|
yyb488 = yyj488 > l
|
|
} else {
|
|
yyb488 = r.CheckBreak()
|
|
}
|
|
if yyb488 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.AccessModes = nil
|
|
} else {
|
|
yyv490 := &x.AccessModes
|
|
yym491 := z.DecBinary()
|
|
_ = yym491
|
|
if false {
|
|
} else {
|
|
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv490), d)
|
|
}
|
|
}
|
|
yyj488++
|
|
if yyhl488 {
|
|
yyb488 = yyj488 > l
|
|
} else {
|
|
yyb488 = r.CheckBreak()
|
|
}
|
|
if yyb488 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Capacity = nil
|
|
} else {
|
|
yyv492 := &x.Capacity
|
|
yyv492.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj488++
|
|
if yyhl488 {
|
|
yyb488 = yyj488 > l
|
|
} else {
|
|
yyb488 = r.CheckBreak()
|
|
}
|
|
if yyb488 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj488-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x PersistentVolumeAccessMode) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym493 := z.EncBinary()
|
|
_ = yym493
|
|
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
|
|
yym494 := z.DecBinary()
|
|
_ = yym494
|
|
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
|
|
yym495 := z.EncBinary()
|
|
_ = yym495
|
|
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
|
|
yym496 := z.DecBinary()
|
|
_ = yym496
|
|
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
|
|
yym497 := z.EncBinary()
|
|
_ = yym497
|
|
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
|
|
yym498 := z.DecBinary()
|
|
_ = yym498
|
|
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 {
|
|
yym499 := z.EncBinary()
|
|
_ = yym499
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep500 := !z.EncBinary()
|
|
yy2arr500 := z.EncBasicHandle().StructToArray
|
|
var yyq500 [1]bool
|
|
_, _, _ = yysep500, yyq500, yy2arr500
|
|
const yyr500 bool = false
|
|
var yynn500 int
|
|
if yyr500 || yy2arr500 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn500 = 1
|
|
for _, b := range yyq500 {
|
|
if b {
|
|
yynn500++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn500)
|
|
yynn500 = 0
|
|
}
|
|
if yyr500 || yy2arr500 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym502 := z.EncBinary()
|
|
_ = yym502
|
|
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)
|
|
yym503 := z.EncBinary()
|
|
_ = yym503
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
|
|
}
|
|
}
|
|
if yyr500 || yy2arr500 {
|
|
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
|
|
yym504 := z.DecBinary()
|
|
_ = yym504
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct505 := r.ContainerType()
|
|
if yyct505 == codecSelferValueTypeMap1234 {
|
|
yyl505 := r.ReadMapStart()
|
|
if yyl505 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl505, d)
|
|
}
|
|
} else if yyct505 == codecSelferValueTypeArray1234 {
|
|
yyl505 := r.ReadArrayStart()
|
|
if yyl505 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl505, 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 yys506Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys506Slc
|
|
var yyhl506 bool = l >= 0
|
|
for yyj506 := 0; ; yyj506++ {
|
|
if yyhl506 {
|
|
if yyj506 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys506Slc = r.DecodeBytes(yys506Slc, true, true)
|
|
yys506 := string(yys506Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys506 {
|
|
case "path":
|
|
if r.TryDecodeAsNil() {
|
|
x.Path = ""
|
|
} else {
|
|
x.Path = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys506)
|
|
} // end switch yys506
|
|
} // end for yyj506
|
|
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 yyj508 int
|
|
var yyb508 bool
|
|
var yyhl508 bool = l >= 0
|
|
yyj508++
|
|
if yyhl508 {
|
|
yyb508 = yyj508 > l
|
|
} else {
|
|
yyb508 = r.CheckBreak()
|
|
}
|
|
if yyb508 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Path = ""
|
|
} else {
|
|
x.Path = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj508++
|
|
if yyhl508 {
|
|
yyb508 = yyj508 > l
|
|
} else {
|
|
yyb508 = r.CheckBreak()
|
|
}
|
|
if yyb508 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj508-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 {
|
|
yym510 := z.EncBinary()
|
|
_ = yym510
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep511 := !z.EncBinary()
|
|
yy2arr511 := z.EncBasicHandle().StructToArray
|
|
var yyq511 [1]bool
|
|
_, _, _ = yysep511, yyq511, yy2arr511
|
|
const yyr511 bool = false
|
|
yyq511[0] = x.Medium != ""
|
|
var yynn511 int
|
|
if yyr511 || yy2arr511 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn511 = 0
|
|
for _, b := range yyq511 {
|
|
if b {
|
|
yynn511++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn511)
|
|
yynn511 = 0
|
|
}
|
|
if yyr511 || yy2arr511 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq511[0] {
|
|
x.Medium.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq511[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("medium"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Medium.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr511 || yy2arr511 {
|
|
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
|
|
yym513 := z.DecBinary()
|
|
_ = yym513
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct514 := r.ContainerType()
|
|
if yyct514 == codecSelferValueTypeMap1234 {
|
|
yyl514 := r.ReadMapStart()
|
|
if yyl514 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl514, d)
|
|
}
|
|
} else if yyct514 == codecSelferValueTypeArray1234 {
|
|
yyl514 := r.ReadArrayStart()
|
|
if yyl514 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl514, 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 yys515Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys515Slc
|
|
var yyhl515 bool = l >= 0
|
|
for yyj515 := 0; ; yyj515++ {
|
|
if yyhl515 {
|
|
if yyj515 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys515Slc = r.DecodeBytes(yys515Slc, true, true)
|
|
yys515 := string(yys515Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys515 {
|
|
case "medium":
|
|
if r.TryDecodeAsNil() {
|
|
x.Medium = ""
|
|
} else {
|
|
x.Medium = StorageMedium(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys515)
|
|
} // end switch yys515
|
|
} // end for yyj515
|
|
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 yyj517 int
|
|
var yyb517 bool
|
|
var yyhl517 bool = l >= 0
|
|
yyj517++
|
|
if yyhl517 {
|
|
yyb517 = yyj517 > l
|
|
} else {
|
|
yyb517 = r.CheckBreak()
|
|
}
|
|
if yyb517 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Medium = ""
|
|
} else {
|
|
x.Medium = StorageMedium(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj517++
|
|
if yyhl517 {
|
|
yyb517 = yyj517 > l
|
|
} else {
|
|
yyb517 = r.CheckBreak()
|
|
}
|
|
if yyb517 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj517-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x StorageMedium) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym519 := z.EncBinary()
|
|
_ = yym519
|
|
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
|
|
yym520 := z.DecBinary()
|
|
_ = yym520
|
|
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
|
|
yym521 := z.EncBinary()
|
|
_ = yym521
|
|
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
|
|
yym522 := z.DecBinary()
|
|
_ = yym522
|
|
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 {
|
|
yym523 := z.EncBinary()
|
|
_ = yym523
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep524 := !z.EncBinary()
|
|
yy2arr524 := z.EncBasicHandle().StructToArray
|
|
var yyq524 [4]bool
|
|
_, _, _ = yysep524, yyq524, yy2arr524
|
|
const yyr524 bool = false
|
|
yyq524[1] = x.FSType != ""
|
|
yyq524[2] = x.Partition != 0
|
|
yyq524[3] = x.ReadOnly != false
|
|
var yynn524 int
|
|
if yyr524 || yy2arr524 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn524 = 1
|
|
for _, b := range yyq524 {
|
|
if b {
|
|
yynn524++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn524)
|
|
yynn524 = 0
|
|
}
|
|
if yyr524 || yy2arr524 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym526 := z.EncBinary()
|
|
_ = yym526
|
|
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)
|
|
yym527 := z.EncBinary()
|
|
_ = yym527
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.PDName))
|
|
}
|
|
}
|
|
if yyr524 || yy2arr524 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq524[1] {
|
|
yym529 := z.EncBinary()
|
|
_ = yym529
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq524[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym530 := z.EncBinary()
|
|
_ = yym530
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
|
|
}
|
|
}
|
|
}
|
|
if yyr524 || yy2arr524 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq524[2] {
|
|
yym532 := z.EncBinary()
|
|
_ = yym532
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Partition))
|
|
}
|
|
} else {
|
|
r.EncodeInt(0)
|
|
}
|
|
} else {
|
|
if yyq524[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("partition"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym533 := z.EncBinary()
|
|
_ = yym533
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Partition))
|
|
}
|
|
}
|
|
}
|
|
if yyr524 || yy2arr524 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq524[3] {
|
|
yym535 := z.EncBinary()
|
|
_ = yym535
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq524[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym536 := z.EncBinary()
|
|
_ = yym536
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
}
|
|
}
|
|
if yyr524 || yy2arr524 {
|
|
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
|
|
yym537 := z.DecBinary()
|
|
_ = yym537
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct538 := r.ContainerType()
|
|
if yyct538 == codecSelferValueTypeMap1234 {
|
|
yyl538 := r.ReadMapStart()
|
|
if yyl538 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl538, d)
|
|
}
|
|
} else if yyct538 == codecSelferValueTypeArray1234 {
|
|
yyl538 := r.ReadArrayStart()
|
|
if yyl538 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl538, 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 yys539Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys539Slc
|
|
var yyhl539 bool = l >= 0
|
|
for yyj539 := 0; ; yyj539++ {
|
|
if yyhl539 {
|
|
if yyj539 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys539Slc = r.DecodeBytes(yys539Slc, true, true)
|
|
yys539 := string(yys539Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys539 {
|
|
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, yys539)
|
|
} // end switch yys539
|
|
} // end for yyj539
|
|
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 yyj544 int
|
|
var yyb544 bool
|
|
var yyhl544 bool = l >= 0
|
|
yyj544++
|
|
if yyhl544 {
|
|
yyb544 = yyj544 > l
|
|
} else {
|
|
yyb544 = r.CheckBreak()
|
|
}
|
|
if yyb544 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.PDName = ""
|
|
} else {
|
|
x.PDName = string(r.DecodeString())
|
|
}
|
|
yyj544++
|
|
if yyhl544 {
|
|
yyb544 = yyj544 > l
|
|
} else {
|
|
yyb544 = r.CheckBreak()
|
|
}
|
|
if yyb544 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.FSType = ""
|
|
} else {
|
|
x.FSType = string(r.DecodeString())
|
|
}
|
|
yyj544++
|
|
if yyhl544 {
|
|
yyb544 = yyj544 > l
|
|
} else {
|
|
yyb544 = r.CheckBreak()
|
|
}
|
|
if yyb544 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Partition = 0
|
|
} else {
|
|
x.Partition = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
yyj544++
|
|
if yyhl544 {
|
|
yyb544 = yyj544 > l
|
|
} else {
|
|
yyb544 = r.CheckBreak()
|
|
}
|
|
if yyb544 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
for {
|
|
yyj544++
|
|
if yyhl544 {
|
|
yyb544 = yyj544 > l
|
|
} else {
|
|
yyb544 = r.CheckBreak()
|
|
}
|
|
if yyb544 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj544-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 {
|
|
yym549 := z.EncBinary()
|
|
_ = yym549
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep550 := !z.EncBinary()
|
|
yy2arr550 := z.EncBasicHandle().StructToArray
|
|
var yyq550 [6]bool
|
|
_, _, _ = yysep550, yyq550, yy2arr550
|
|
const yyr550 bool = false
|
|
yyq550[0] = x.TargetPortal != ""
|
|
yyq550[1] = x.IQN != ""
|
|
yyq550[2] = x.Lun != 0
|
|
yyq550[3] = x.ISCSIInterface != ""
|
|
yyq550[4] = x.FSType != ""
|
|
yyq550[5] = x.ReadOnly != false
|
|
var yynn550 int
|
|
if yyr550 || yy2arr550 {
|
|
r.EncodeArrayStart(6)
|
|
} else {
|
|
yynn550 = 0
|
|
for _, b := range yyq550 {
|
|
if b {
|
|
yynn550++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn550)
|
|
yynn550 = 0
|
|
}
|
|
if yyr550 || yy2arr550 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq550[0] {
|
|
yym552 := z.EncBinary()
|
|
_ = yym552
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.TargetPortal))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq550[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("targetPortal"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym553 := z.EncBinary()
|
|
_ = yym553
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.TargetPortal))
|
|
}
|
|
}
|
|
}
|
|
if yyr550 || yy2arr550 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq550[1] {
|
|
yym555 := z.EncBinary()
|
|
_ = yym555
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.IQN))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq550[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("iqn"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym556 := z.EncBinary()
|
|
_ = yym556
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.IQN))
|
|
}
|
|
}
|
|
}
|
|
if yyr550 || yy2arr550 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq550[2] {
|
|
yym558 := z.EncBinary()
|
|
_ = yym558
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Lun))
|
|
}
|
|
} else {
|
|
r.EncodeInt(0)
|
|
}
|
|
} else {
|
|
if yyq550[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("lun"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym559 := z.EncBinary()
|
|
_ = yym559
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Lun))
|
|
}
|
|
}
|
|
}
|
|
if yyr550 || yy2arr550 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq550[3] {
|
|
yym561 := z.EncBinary()
|
|
_ = yym561
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ISCSIInterface))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq550[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("iscsiInterface"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym562 := z.EncBinary()
|
|
_ = yym562
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ISCSIInterface))
|
|
}
|
|
}
|
|
}
|
|
if yyr550 || yy2arr550 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq550[4] {
|
|
yym564 := z.EncBinary()
|
|
_ = yym564
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq550[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym565 := z.EncBinary()
|
|
_ = yym565
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
|
|
}
|
|
}
|
|
}
|
|
if yyr550 || yy2arr550 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq550[5] {
|
|
yym567 := z.EncBinary()
|
|
_ = yym567
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq550[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym568 := z.EncBinary()
|
|
_ = yym568
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
}
|
|
}
|
|
if yyr550 || yy2arr550 {
|
|
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
|
|
yym569 := z.DecBinary()
|
|
_ = yym569
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct570 := r.ContainerType()
|
|
if yyct570 == codecSelferValueTypeMap1234 {
|
|
yyl570 := r.ReadMapStart()
|
|
if yyl570 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl570, d)
|
|
}
|
|
} else if yyct570 == codecSelferValueTypeArray1234 {
|
|
yyl570 := r.ReadArrayStart()
|
|
if yyl570 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl570, 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 yys571Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys571Slc
|
|
var yyhl571 bool = l >= 0
|
|
for yyj571 := 0; ; yyj571++ {
|
|
if yyhl571 {
|
|
if yyj571 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys571Slc = r.DecodeBytes(yys571Slc, true, true)
|
|
yys571 := string(yys571Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys571 {
|
|
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, yys571)
|
|
} // end switch yys571
|
|
} // end for yyj571
|
|
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 yyj578 int
|
|
var yyb578 bool
|
|
var yyhl578 bool = l >= 0
|
|
yyj578++
|
|
if yyhl578 {
|
|
yyb578 = yyj578 > l
|
|
} else {
|
|
yyb578 = r.CheckBreak()
|
|
}
|
|
if yyb578 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.TargetPortal = ""
|
|
} else {
|
|
x.TargetPortal = string(r.DecodeString())
|
|
}
|
|
yyj578++
|
|
if yyhl578 {
|
|
yyb578 = yyj578 > l
|
|
} else {
|
|
yyb578 = r.CheckBreak()
|
|
}
|
|
if yyb578 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.IQN = ""
|
|
} else {
|
|
x.IQN = string(r.DecodeString())
|
|
}
|
|
yyj578++
|
|
if yyhl578 {
|
|
yyb578 = yyj578 > l
|
|
} else {
|
|
yyb578 = r.CheckBreak()
|
|
}
|
|
if yyb578 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Lun = 0
|
|
} else {
|
|
x.Lun = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
yyj578++
|
|
if yyhl578 {
|
|
yyb578 = yyj578 > l
|
|
} else {
|
|
yyb578 = r.CheckBreak()
|
|
}
|
|
if yyb578 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ISCSIInterface = ""
|
|
} else {
|
|
x.ISCSIInterface = string(r.DecodeString())
|
|
}
|
|
yyj578++
|
|
if yyhl578 {
|
|
yyb578 = yyj578 > l
|
|
} else {
|
|
yyb578 = r.CheckBreak()
|
|
}
|
|
if yyb578 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.FSType = ""
|
|
} else {
|
|
x.FSType = string(r.DecodeString())
|
|
}
|
|
yyj578++
|
|
if yyhl578 {
|
|
yyb578 = yyj578 > l
|
|
} else {
|
|
yyb578 = r.CheckBreak()
|
|
}
|
|
if yyb578 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
for {
|
|
yyj578++
|
|
if yyhl578 {
|
|
yyb578 = yyj578 > l
|
|
} else {
|
|
yyb578 = r.CheckBreak()
|
|
}
|
|
if yyb578 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj578-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 {
|
|
yym585 := z.EncBinary()
|
|
_ = yym585
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep586 := !z.EncBinary()
|
|
yy2arr586 := z.EncBasicHandle().StructToArray
|
|
var yyq586 [4]bool
|
|
_, _, _ = yysep586, yyq586, yy2arr586
|
|
const yyr586 bool = false
|
|
yyq586[3] = x.ReadOnly != false
|
|
var yynn586 int
|
|
if yyr586 || yy2arr586 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn586 = 3
|
|
for _, b := range yyq586 {
|
|
if b {
|
|
yynn586++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn586)
|
|
yynn586 = 0
|
|
}
|
|
if yyr586 || yy2arr586 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.TargetWWNs == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym588 := z.EncBinary()
|
|
_ = yym588
|
|
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 {
|
|
yym589 := z.EncBinary()
|
|
_ = yym589
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.TargetWWNs, false, e)
|
|
}
|
|
}
|
|
}
|
|
if yyr586 || yy2arr586 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Lun == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy591 := *x.Lun
|
|
yym592 := z.EncBinary()
|
|
_ = yym592
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy591))
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("lun"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Lun == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy593 := *x.Lun
|
|
yym594 := z.EncBinary()
|
|
_ = yym594
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy593))
|
|
}
|
|
}
|
|
}
|
|
if yyr586 || yy2arr586 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym596 := z.EncBinary()
|
|
_ = yym596
|
|
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)
|
|
yym597 := z.EncBinary()
|
|
_ = yym597
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
|
|
}
|
|
}
|
|
if yyr586 || yy2arr586 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq586[3] {
|
|
yym599 := z.EncBinary()
|
|
_ = yym599
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq586[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym600 := z.EncBinary()
|
|
_ = yym600
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
}
|
|
}
|
|
if yyr586 || yy2arr586 {
|
|
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
|
|
yym601 := z.DecBinary()
|
|
_ = yym601
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct602 := r.ContainerType()
|
|
if yyct602 == codecSelferValueTypeMap1234 {
|
|
yyl602 := r.ReadMapStart()
|
|
if yyl602 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl602, d)
|
|
}
|
|
} else if yyct602 == codecSelferValueTypeArray1234 {
|
|
yyl602 := r.ReadArrayStart()
|
|
if yyl602 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl602, 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 yys603Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys603Slc
|
|
var yyhl603 bool = l >= 0
|
|
for yyj603 := 0; ; yyj603++ {
|
|
if yyhl603 {
|
|
if yyj603 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys603Slc = r.DecodeBytes(yys603Slc, true, true)
|
|
yys603 := string(yys603Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys603 {
|
|
case "targetWWNs":
|
|
if r.TryDecodeAsNil() {
|
|
x.TargetWWNs = nil
|
|
} else {
|
|
yyv604 := &x.TargetWWNs
|
|
yym605 := z.DecBinary()
|
|
_ = yym605
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv604, false, d)
|
|
}
|
|
}
|
|
case "lun":
|
|
if r.TryDecodeAsNil() {
|
|
if x.Lun != nil {
|
|
x.Lun = nil
|
|
}
|
|
} else {
|
|
if x.Lun == nil {
|
|
x.Lun = new(int)
|
|
}
|
|
yym607 := z.DecBinary()
|
|
_ = yym607
|
|
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, yys603)
|
|
} // end switch yys603
|
|
} // end for yyj603
|
|
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 yyj610 int
|
|
var yyb610 bool
|
|
var yyhl610 bool = l >= 0
|
|
yyj610++
|
|
if yyhl610 {
|
|
yyb610 = yyj610 > l
|
|
} else {
|
|
yyb610 = r.CheckBreak()
|
|
}
|
|
if yyb610 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.TargetWWNs = nil
|
|
} else {
|
|
yyv611 := &x.TargetWWNs
|
|
yym612 := z.DecBinary()
|
|
_ = yym612
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv611, false, d)
|
|
}
|
|
}
|
|
yyj610++
|
|
if yyhl610 {
|
|
yyb610 = yyj610 > l
|
|
} else {
|
|
yyb610 = r.CheckBreak()
|
|
}
|
|
if yyb610 {
|
|
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)
|
|
}
|
|
yym614 := z.DecBinary()
|
|
_ = yym614
|
|
if false {
|
|
} else {
|
|
*((*int)(x.Lun)) = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
}
|
|
yyj610++
|
|
if yyhl610 {
|
|
yyb610 = yyj610 > l
|
|
} else {
|
|
yyb610 = r.CheckBreak()
|
|
}
|
|
if yyb610 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.FSType = ""
|
|
} else {
|
|
x.FSType = string(r.DecodeString())
|
|
}
|
|
yyj610++
|
|
if yyhl610 {
|
|
yyb610 = yyj610 > l
|
|
} else {
|
|
yyb610 = r.CheckBreak()
|
|
}
|
|
if yyb610 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
for {
|
|
yyj610++
|
|
if yyhl610 {
|
|
yyb610 = yyj610 > l
|
|
} else {
|
|
yyb610 = r.CheckBreak()
|
|
}
|
|
if yyb610 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj610-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 {
|
|
yym617 := z.EncBinary()
|
|
_ = yym617
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep618 := !z.EncBinary()
|
|
yy2arr618 := z.EncBasicHandle().StructToArray
|
|
var yyq618 [4]bool
|
|
_, _, _ = yysep618, yyq618, yy2arr618
|
|
const yyr618 bool = false
|
|
yyq618[1] = x.FSType != ""
|
|
yyq618[2] = x.Partition != 0
|
|
yyq618[3] = x.ReadOnly != false
|
|
var yynn618 int
|
|
if yyr618 || yy2arr618 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn618 = 1
|
|
for _, b := range yyq618 {
|
|
if b {
|
|
yynn618++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn618)
|
|
yynn618 = 0
|
|
}
|
|
if yyr618 || yy2arr618 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym620 := z.EncBinary()
|
|
_ = yym620
|
|
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)
|
|
yym621 := z.EncBinary()
|
|
_ = yym621
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID))
|
|
}
|
|
}
|
|
if yyr618 || yy2arr618 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq618[1] {
|
|
yym623 := z.EncBinary()
|
|
_ = yym623
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq618[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym624 := z.EncBinary()
|
|
_ = yym624
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
|
|
}
|
|
}
|
|
}
|
|
if yyr618 || yy2arr618 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq618[2] {
|
|
yym626 := z.EncBinary()
|
|
_ = yym626
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Partition))
|
|
}
|
|
} else {
|
|
r.EncodeInt(0)
|
|
}
|
|
} else {
|
|
if yyq618[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("partition"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym627 := z.EncBinary()
|
|
_ = yym627
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Partition))
|
|
}
|
|
}
|
|
}
|
|
if yyr618 || yy2arr618 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq618[3] {
|
|
yym629 := z.EncBinary()
|
|
_ = yym629
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq618[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym630 := z.EncBinary()
|
|
_ = yym630
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
}
|
|
}
|
|
if yyr618 || yy2arr618 {
|
|
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
|
|
yym631 := z.DecBinary()
|
|
_ = yym631
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct632 := r.ContainerType()
|
|
if yyct632 == codecSelferValueTypeMap1234 {
|
|
yyl632 := r.ReadMapStart()
|
|
if yyl632 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl632, d)
|
|
}
|
|
} else if yyct632 == codecSelferValueTypeArray1234 {
|
|
yyl632 := r.ReadArrayStart()
|
|
if yyl632 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl632, 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 yys633Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys633Slc
|
|
var yyhl633 bool = l >= 0
|
|
for yyj633 := 0; ; yyj633++ {
|
|
if yyhl633 {
|
|
if yyj633 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys633Slc = r.DecodeBytes(yys633Slc, true, true)
|
|
yys633 := string(yys633Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys633 {
|
|
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, yys633)
|
|
} // end switch yys633
|
|
} // end for yyj633
|
|
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 yyj638 int
|
|
var yyb638 bool
|
|
var yyhl638 bool = l >= 0
|
|
yyj638++
|
|
if yyhl638 {
|
|
yyb638 = yyj638 > l
|
|
} else {
|
|
yyb638 = r.CheckBreak()
|
|
}
|
|
if yyb638 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.VolumeID = ""
|
|
} else {
|
|
x.VolumeID = string(r.DecodeString())
|
|
}
|
|
yyj638++
|
|
if yyhl638 {
|
|
yyb638 = yyj638 > l
|
|
} else {
|
|
yyb638 = r.CheckBreak()
|
|
}
|
|
if yyb638 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.FSType = ""
|
|
} else {
|
|
x.FSType = string(r.DecodeString())
|
|
}
|
|
yyj638++
|
|
if yyhl638 {
|
|
yyb638 = yyj638 > l
|
|
} else {
|
|
yyb638 = r.CheckBreak()
|
|
}
|
|
if yyb638 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Partition = 0
|
|
} else {
|
|
x.Partition = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
yyj638++
|
|
if yyhl638 {
|
|
yyb638 = yyj638 > l
|
|
} else {
|
|
yyb638 = r.CheckBreak()
|
|
}
|
|
if yyb638 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
for {
|
|
yyj638++
|
|
if yyhl638 {
|
|
yyb638 = yyj638 > l
|
|
} else {
|
|
yyb638 = r.CheckBreak()
|
|
}
|
|
if yyb638 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj638-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 {
|
|
yym643 := z.EncBinary()
|
|
_ = yym643
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep644 := !z.EncBinary()
|
|
yy2arr644 := z.EncBasicHandle().StructToArray
|
|
var yyq644 [3]bool
|
|
_, _, _ = yysep644, yyq644, yy2arr644
|
|
const yyr644 bool = false
|
|
yyq644[1] = x.Revision != ""
|
|
yyq644[2] = x.Directory != ""
|
|
var yynn644 int
|
|
if yyr644 || yy2arr644 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn644 = 1
|
|
for _, b := range yyq644 {
|
|
if b {
|
|
yynn644++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn644)
|
|
yynn644 = 0
|
|
}
|
|
if yyr644 || yy2arr644 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym646 := z.EncBinary()
|
|
_ = yym646
|
|
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)
|
|
yym647 := z.EncBinary()
|
|
_ = yym647
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Repository))
|
|
}
|
|
}
|
|
if yyr644 || yy2arr644 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq644[1] {
|
|
yym649 := z.EncBinary()
|
|
_ = yym649
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Revision))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq644[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("revision"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym650 := z.EncBinary()
|
|
_ = yym650
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Revision))
|
|
}
|
|
}
|
|
}
|
|
if yyr644 || yy2arr644 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq644[2] {
|
|
yym652 := z.EncBinary()
|
|
_ = yym652
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Directory))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq644[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("directory"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym653 := z.EncBinary()
|
|
_ = yym653
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Directory))
|
|
}
|
|
}
|
|
}
|
|
if yyr644 || yy2arr644 {
|
|
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
|
|
yym654 := z.DecBinary()
|
|
_ = yym654
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct655 := r.ContainerType()
|
|
if yyct655 == codecSelferValueTypeMap1234 {
|
|
yyl655 := r.ReadMapStart()
|
|
if yyl655 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl655, d)
|
|
}
|
|
} else if yyct655 == codecSelferValueTypeArray1234 {
|
|
yyl655 := r.ReadArrayStart()
|
|
if yyl655 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl655, 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 yys656Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys656Slc
|
|
var yyhl656 bool = l >= 0
|
|
for yyj656 := 0; ; yyj656++ {
|
|
if yyhl656 {
|
|
if yyj656 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys656Slc = r.DecodeBytes(yys656Slc, true, true)
|
|
yys656 := string(yys656Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys656 {
|
|
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, yys656)
|
|
} // end switch yys656
|
|
} // end for yyj656
|
|
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 yyj660 int
|
|
var yyb660 bool
|
|
var yyhl660 bool = l >= 0
|
|
yyj660++
|
|
if yyhl660 {
|
|
yyb660 = yyj660 > l
|
|
} else {
|
|
yyb660 = r.CheckBreak()
|
|
}
|
|
if yyb660 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Repository = ""
|
|
} else {
|
|
x.Repository = string(r.DecodeString())
|
|
}
|
|
yyj660++
|
|
if yyhl660 {
|
|
yyb660 = yyj660 > l
|
|
} else {
|
|
yyb660 = r.CheckBreak()
|
|
}
|
|
if yyb660 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Revision = ""
|
|
} else {
|
|
x.Revision = string(r.DecodeString())
|
|
}
|
|
yyj660++
|
|
if yyhl660 {
|
|
yyb660 = yyj660 > l
|
|
} else {
|
|
yyb660 = r.CheckBreak()
|
|
}
|
|
if yyb660 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Directory = ""
|
|
} else {
|
|
x.Directory = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj660++
|
|
if yyhl660 {
|
|
yyb660 = yyj660 > l
|
|
} else {
|
|
yyb660 = r.CheckBreak()
|
|
}
|
|
if yyb660 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj660-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 {
|
|
yym664 := z.EncBinary()
|
|
_ = yym664
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep665 := !z.EncBinary()
|
|
yy2arr665 := z.EncBasicHandle().StructToArray
|
|
var yyq665 [1]bool
|
|
_, _, _ = yysep665, yyq665, yy2arr665
|
|
const yyr665 bool = false
|
|
var yynn665 int
|
|
if yyr665 || yy2arr665 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn665 = 1
|
|
for _, b := range yyq665 {
|
|
if b {
|
|
yynn665++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn665)
|
|
yynn665 = 0
|
|
}
|
|
if yyr665 || yy2arr665 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym667 := z.EncBinary()
|
|
_ = yym667
|
|
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)
|
|
yym668 := z.EncBinary()
|
|
_ = yym668
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.SecretName))
|
|
}
|
|
}
|
|
if yyr665 || yy2arr665 {
|
|
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
|
|
yym669 := z.DecBinary()
|
|
_ = yym669
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct670 := r.ContainerType()
|
|
if yyct670 == codecSelferValueTypeMap1234 {
|
|
yyl670 := r.ReadMapStart()
|
|
if yyl670 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl670, d)
|
|
}
|
|
} else if yyct670 == codecSelferValueTypeArray1234 {
|
|
yyl670 := r.ReadArrayStart()
|
|
if yyl670 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl670, 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 yys671Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys671Slc
|
|
var yyhl671 bool = l >= 0
|
|
for yyj671 := 0; ; yyj671++ {
|
|
if yyhl671 {
|
|
if yyj671 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys671Slc = r.DecodeBytes(yys671Slc, true, true)
|
|
yys671 := string(yys671Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys671 {
|
|
case "secretName":
|
|
if r.TryDecodeAsNil() {
|
|
x.SecretName = ""
|
|
} else {
|
|
x.SecretName = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys671)
|
|
} // end switch yys671
|
|
} // end for yyj671
|
|
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 yyj673 int
|
|
var yyb673 bool
|
|
var yyhl673 bool = l >= 0
|
|
yyj673++
|
|
if yyhl673 {
|
|
yyb673 = yyj673 > l
|
|
} else {
|
|
yyb673 = r.CheckBreak()
|
|
}
|
|
if yyb673 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.SecretName = ""
|
|
} else {
|
|
x.SecretName = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj673++
|
|
if yyhl673 {
|
|
yyb673 = yyj673 > l
|
|
} else {
|
|
yyb673 = r.CheckBreak()
|
|
}
|
|
if yyb673 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj673-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 {
|
|
yym675 := z.EncBinary()
|
|
_ = yym675
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep676 := !z.EncBinary()
|
|
yy2arr676 := z.EncBasicHandle().StructToArray
|
|
var yyq676 [3]bool
|
|
_, _, _ = yysep676, yyq676, yy2arr676
|
|
const yyr676 bool = false
|
|
yyq676[2] = x.ReadOnly != false
|
|
var yynn676 int
|
|
if yyr676 || yy2arr676 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn676 = 2
|
|
for _, b := range yyq676 {
|
|
if b {
|
|
yynn676++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn676)
|
|
yynn676 = 0
|
|
}
|
|
if yyr676 || yy2arr676 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym678 := z.EncBinary()
|
|
_ = yym678
|
|
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)
|
|
yym679 := z.EncBinary()
|
|
_ = yym679
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Server))
|
|
}
|
|
}
|
|
if yyr676 || yy2arr676 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym681 := z.EncBinary()
|
|
_ = yym681
|
|
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)
|
|
yym682 := z.EncBinary()
|
|
_ = yym682
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
|
|
}
|
|
}
|
|
if yyr676 || yy2arr676 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq676[2] {
|
|
yym684 := z.EncBinary()
|
|
_ = yym684
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq676[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym685 := z.EncBinary()
|
|
_ = yym685
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
}
|
|
}
|
|
if yyr676 || yy2arr676 {
|
|
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
|
|
yym686 := z.DecBinary()
|
|
_ = yym686
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct687 := r.ContainerType()
|
|
if yyct687 == codecSelferValueTypeMap1234 {
|
|
yyl687 := r.ReadMapStart()
|
|
if yyl687 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl687, d)
|
|
}
|
|
} else if yyct687 == codecSelferValueTypeArray1234 {
|
|
yyl687 := r.ReadArrayStart()
|
|
if yyl687 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl687, 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 yys688Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys688Slc
|
|
var yyhl688 bool = l >= 0
|
|
for yyj688 := 0; ; yyj688++ {
|
|
if yyhl688 {
|
|
if yyj688 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys688Slc = r.DecodeBytes(yys688Slc, true, true)
|
|
yys688 := string(yys688Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys688 {
|
|
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, yys688)
|
|
} // end switch yys688
|
|
} // end for yyj688
|
|
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 yyj692 int
|
|
var yyb692 bool
|
|
var yyhl692 bool = l >= 0
|
|
yyj692++
|
|
if yyhl692 {
|
|
yyb692 = yyj692 > l
|
|
} else {
|
|
yyb692 = r.CheckBreak()
|
|
}
|
|
if yyb692 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Server = ""
|
|
} else {
|
|
x.Server = string(r.DecodeString())
|
|
}
|
|
yyj692++
|
|
if yyhl692 {
|
|
yyb692 = yyj692 > l
|
|
} else {
|
|
yyb692 = r.CheckBreak()
|
|
}
|
|
if yyb692 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Path = ""
|
|
} else {
|
|
x.Path = string(r.DecodeString())
|
|
}
|
|
yyj692++
|
|
if yyhl692 {
|
|
yyb692 = yyj692 > l
|
|
} else {
|
|
yyb692 = r.CheckBreak()
|
|
}
|
|
if yyb692 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
for {
|
|
yyj692++
|
|
if yyhl692 {
|
|
yyb692 = yyj692 > l
|
|
} else {
|
|
yyb692 = r.CheckBreak()
|
|
}
|
|
if yyb692 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj692-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 {
|
|
yym696 := z.EncBinary()
|
|
_ = yym696
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep697 := !z.EncBinary()
|
|
yy2arr697 := z.EncBasicHandle().StructToArray
|
|
var yyq697 [3]bool
|
|
_, _, _ = yysep697, yyq697, yy2arr697
|
|
const yyr697 bool = false
|
|
yyq697[2] = x.ReadOnly != false
|
|
var yynn697 int
|
|
if yyr697 || yy2arr697 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn697 = 2
|
|
for _, b := range yyq697 {
|
|
if b {
|
|
yynn697++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn697)
|
|
yynn697 = 0
|
|
}
|
|
if yyr697 || yy2arr697 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym699 := z.EncBinary()
|
|
_ = yym699
|
|
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)
|
|
yym700 := z.EncBinary()
|
|
_ = yym700
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.EndpointsName))
|
|
}
|
|
}
|
|
if yyr697 || yy2arr697 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym702 := z.EncBinary()
|
|
_ = yym702
|
|
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)
|
|
yym703 := z.EncBinary()
|
|
_ = yym703
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
|
|
}
|
|
}
|
|
if yyr697 || yy2arr697 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq697[2] {
|
|
yym705 := z.EncBinary()
|
|
_ = yym705
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq697[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym706 := z.EncBinary()
|
|
_ = yym706
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
}
|
|
}
|
|
if yyr697 || yy2arr697 {
|
|
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
|
|
yym707 := z.DecBinary()
|
|
_ = yym707
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct708 := r.ContainerType()
|
|
if yyct708 == codecSelferValueTypeMap1234 {
|
|
yyl708 := r.ReadMapStart()
|
|
if yyl708 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl708, d)
|
|
}
|
|
} else if yyct708 == codecSelferValueTypeArray1234 {
|
|
yyl708 := r.ReadArrayStart()
|
|
if yyl708 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl708, 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 yys709Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys709Slc
|
|
var yyhl709 bool = l >= 0
|
|
for yyj709 := 0; ; yyj709++ {
|
|
if yyhl709 {
|
|
if yyj709 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys709Slc = r.DecodeBytes(yys709Slc, true, true)
|
|
yys709 := string(yys709Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys709 {
|
|
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, yys709)
|
|
} // end switch yys709
|
|
} // end for yyj709
|
|
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 yyj713 int
|
|
var yyb713 bool
|
|
var yyhl713 bool = l >= 0
|
|
yyj713++
|
|
if yyhl713 {
|
|
yyb713 = yyj713 > l
|
|
} else {
|
|
yyb713 = r.CheckBreak()
|
|
}
|
|
if yyb713 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.EndpointsName = ""
|
|
} else {
|
|
x.EndpointsName = string(r.DecodeString())
|
|
}
|
|
yyj713++
|
|
if yyhl713 {
|
|
yyb713 = yyj713 > l
|
|
} else {
|
|
yyb713 = r.CheckBreak()
|
|
}
|
|
if yyb713 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Path = ""
|
|
} else {
|
|
x.Path = string(r.DecodeString())
|
|
}
|
|
yyj713++
|
|
if yyhl713 {
|
|
yyb713 = yyj713 > l
|
|
} else {
|
|
yyb713 = r.CheckBreak()
|
|
}
|
|
if yyb713 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
for {
|
|
yyj713++
|
|
if yyhl713 {
|
|
yyb713 = yyj713 > l
|
|
} else {
|
|
yyb713 = r.CheckBreak()
|
|
}
|
|
if yyb713 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj713-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 {
|
|
yym717 := z.EncBinary()
|
|
_ = yym717
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep718 := !z.EncBinary()
|
|
yy2arr718 := z.EncBasicHandle().StructToArray
|
|
var yyq718 [8]bool
|
|
_, _, _ = yysep718, yyq718, yy2arr718
|
|
const yyr718 bool = false
|
|
yyq718[2] = x.FSType != ""
|
|
yyq718[7] = x.ReadOnly != false
|
|
var yynn718 int
|
|
if yyr718 || yy2arr718 {
|
|
r.EncodeArrayStart(8)
|
|
} else {
|
|
yynn718 = 6
|
|
for _, b := range yyq718 {
|
|
if b {
|
|
yynn718++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn718)
|
|
yynn718 = 0
|
|
}
|
|
if yyr718 || yy2arr718 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.CephMonitors == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym720 := z.EncBinary()
|
|
_ = yym720
|
|
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 {
|
|
yym721 := z.EncBinary()
|
|
_ = yym721
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.CephMonitors, false, e)
|
|
}
|
|
}
|
|
}
|
|
if yyr718 || yy2arr718 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym723 := z.EncBinary()
|
|
_ = yym723
|
|
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)
|
|
yym724 := z.EncBinary()
|
|
_ = yym724
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.RBDImage))
|
|
}
|
|
}
|
|
if yyr718 || yy2arr718 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq718[2] {
|
|
yym726 := z.EncBinary()
|
|
_ = yym726
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq718[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym727 := z.EncBinary()
|
|
_ = yym727
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
|
|
}
|
|
}
|
|
}
|
|
if yyr718 || yy2arr718 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym729 := z.EncBinary()
|
|
_ = yym729
|
|
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)
|
|
yym730 := z.EncBinary()
|
|
_ = yym730
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.RBDPool))
|
|
}
|
|
}
|
|
if yyr718 || yy2arr718 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym732 := z.EncBinary()
|
|
_ = yym732
|
|
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)
|
|
yym733 := z.EncBinary()
|
|
_ = yym733
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.RadosUser))
|
|
}
|
|
}
|
|
if yyr718 || yy2arr718 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym735 := z.EncBinary()
|
|
_ = yym735
|
|
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)
|
|
yym736 := z.EncBinary()
|
|
_ = yym736
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Keyring))
|
|
}
|
|
}
|
|
if yyr718 || yy2arr718 {
|
|
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 yyr718 || yy2arr718 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq718[7] {
|
|
yym739 := z.EncBinary()
|
|
_ = yym739
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq718[7] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym740 := z.EncBinary()
|
|
_ = yym740
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
}
|
|
}
|
|
if yyr718 || yy2arr718 {
|
|
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
|
|
yym741 := z.DecBinary()
|
|
_ = yym741
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct742 := r.ContainerType()
|
|
if yyct742 == codecSelferValueTypeMap1234 {
|
|
yyl742 := r.ReadMapStart()
|
|
if yyl742 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl742, d)
|
|
}
|
|
} else if yyct742 == codecSelferValueTypeArray1234 {
|
|
yyl742 := r.ReadArrayStart()
|
|
if yyl742 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl742, 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 yys743Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys743Slc
|
|
var yyhl743 bool = l >= 0
|
|
for yyj743 := 0; ; yyj743++ {
|
|
if yyhl743 {
|
|
if yyj743 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys743Slc = r.DecodeBytes(yys743Slc, true, true)
|
|
yys743 := string(yys743Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys743 {
|
|
case "monitors":
|
|
if r.TryDecodeAsNil() {
|
|
x.CephMonitors = nil
|
|
} else {
|
|
yyv744 := &x.CephMonitors
|
|
yym745 := z.DecBinary()
|
|
_ = yym745
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv744, 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, yys743)
|
|
} // end switch yys743
|
|
} // end for yyj743
|
|
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 yyj753 int
|
|
var yyb753 bool
|
|
var yyhl753 bool = l >= 0
|
|
yyj753++
|
|
if yyhl753 {
|
|
yyb753 = yyj753 > l
|
|
} else {
|
|
yyb753 = r.CheckBreak()
|
|
}
|
|
if yyb753 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.CephMonitors = nil
|
|
} else {
|
|
yyv754 := &x.CephMonitors
|
|
yym755 := z.DecBinary()
|
|
_ = yym755
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv754, false, d)
|
|
}
|
|
}
|
|
yyj753++
|
|
if yyhl753 {
|
|
yyb753 = yyj753 > l
|
|
} else {
|
|
yyb753 = r.CheckBreak()
|
|
}
|
|
if yyb753 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.RBDImage = ""
|
|
} else {
|
|
x.RBDImage = string(r.DecodeString())
|
|
}
|
|
yyj753++
|
|
if yyhl753 {
|
|
yyb753 = yyj753 > l
|
|
} else {
|
|
yyb753 = r.CheckBreak()
|
|
}
|
|
if yyb753 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.FSType = ""
|
|
} else {
|
|
x.FSType = string(r.DecodeString())
|
|
}
|
|
yyj753++
|
|
if yyhl753 {
|
|
yyb753 = yyj753 > l
|
|
} else {
|
|
yyb753 = r.CheckBreak()
|
|
}
|
|
if yyb753 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.RBDPool = ""
|
|
} else {
|
|
x.RBDPool = string(r.DecodeString())
|
|
}
|
|
yyj753++
|
|
if yyhl753 {
|
|
yyb753 = yyj753 > l
|
|
} else {
|
|
yyb753 = r.CheckBreak()
|
|
}
|
|
if yyb753 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.RadosUser = ""
|
|
} else {
|
|
x.RadosUser = string(r.DecodeString())
|
|
}
|
|
yyj753++
|
|
if yyhl753 {
|
|
yyb753 = yyj753 > l
|
|
} else {
|
|
yyb753 = r.CheckBreak()
|
|
}
|
|
if yyb753 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Keyring = ""
|
|
} else {
|
|
x.Keyring = string(r.DecodeString())
|
|
}
|
|
yyj753++
|
|
if yyhl753 {
|
|
yyb753 = yyj753 > l
|
|
} else {
|
|
yyb753 = r.CheckBreak()
|
|
}
|
|
if yyb753 {
|
|
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)
|
|
}
|
|
yyj753++
|
|
if yyhl753 {
|
|
yyb753 = yyj753 > l
|
|
} else {
|
|
yyb753 = r.CheckBreak()
|
|
}
|
|
if yyb753 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
for {
|
|
yyj753++
|
|
if yyhl753 {
|
|
yyb753 = yyj753 > l
|
|
} else {
|
|
yyb753 = r.CheckBreak()
|
|
}
|
|
if yyb753 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj753-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 {
|
|
yym763 := z.EncBinary()
|
|
_ = yym763
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep764 := !z.EncBinary()
|
|
yy2arr764 := z.EncBasicHandle().StructToArray
|
|
var yyq764 [3]bool
|
|
_, _, _ = yysep764, yyq764, yy2arr764
|
|
const yyr764 bool = false
|
|
yyq764[1] = x.FSType != ""
|
|
yyq764[2] = x.ReadOnly != false
|
|
var yynn764 int
|
|
if yyr764 || yy2arr764 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn764 = 1
|
|
for _, b := range yyq764 {
|
|
if b {
|
|
yynn764++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn764)
|
|
yynn764 = 0
|
|
}
|
|
if yyr764 || yy2arr764 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym766 := z.EncBinary()
|
|
_ = yym766
|
|
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)
|
|
yym767 := z.EncBinary()
|
|
_ = yym767
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID))
|
|
}
|
|
}
|
|
if yyr764 || yy2arr764 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq764[1] {
|
|
yym769 := z.EncBinary()
|
|
_ = yym769
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq764[1] {
|
|
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 yyr764 || yy2arr764 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq764[2] {
|
|
yym772 := z.EncBinary()
|
|
_ = yym772
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq764[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym773 := z.EncBinary()
|
|
_ = yym773
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
}
|
|
}
|
|
if yyr764 || yy2arr764 {
|
|
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
|
|
yym774 := z.DecBinary()
|
|
_ = yym774
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct775 := r.ContainerType()
|
|
if yyct775 == codecSelferValueTypeMap1234 {
|
|
yyl775 := r.ReadMapStart()
|
|
if yyl775 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl775, d)
|
|
}
|
|
} else if yyct775 == codecSelferValueTypeArray1234 {
|
|
yyl775 := r.ReadArrayStart()
|
|
if yyl775 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl775, 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 yys776Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys776Slc
|
|
var yyhl776 bool = l >= 0
|
|
for yyj776 := 0; ; yyj776++ {
|
|
if yyhl776 {
|
|
if yyj776 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys776Slc = r.DecodeBytes(yys776Slc, true, true)
|
|
yys776 := string(yys776Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys776 {
|
|
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, yys776)
|
|
} // end switch yys776
|
|
} // end for yyj776
|
|
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 yyj780 int
|
|
var yyb780 bool
|
|
var yyhl780 bool = l >= 0
|
|
yyj780++
|
|
if yyhl780 {
|
|
yyb780 = yyj780 > l
|
|
} else {
|
|
yyb780 = r.CheckBreak()
|
|
}
|
|
if yyb780 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.VolumeID = ""
|
|
} else {
|
|
x.VolumeID = string(r.DecodeString())
|
|
}
|
|
yyj780++
|
|
if yyhl780 {
|
|
yyb780 = yyj780 > l
|
|
} else {
|
|
yyb780 = r.CheckBreak()
|
|
}
|
|
if yyb780 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.FSType = ""
|
|
} else {
|
|
x.FSType = string(r.DecodeString())
|
|
}
|
|
yyj780++
|
|
if yyhl780 {
|
|
yyb780 = yyj780 > l
|
|
} else {
|
|
yyb780 = r.CheckBreak()
|
|
}
|
|
if yyb780 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
for {
|
|
yyj780++
|
|
if yyhl780 {
|
|
yyb780 = yyj780 > l
|
|
} else {
|
|
yyb780 = r.CheckBreak()
|
|
}
|
|
if yyb780 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj780-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 {
|
|
yym784 := z.EncBinary()
|
|
_ = yym784
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep785 := !z.EncBinary()
|
|
yy2arr785 := z.EncBasicHandle().StructToArray
|
|
var yyq785 [5]bool
|
|
_, _, _ = yysep785, yyq785, yy2arr785
|
|
const yyr785 bool = false
|
|
yyq785[1] = x.User != ""
|
|
yyq785[2] = x.SecretFile != ""
|
|
yyq785[3] = x.SecretRef != nil
|
|
yyq785[4] = x.ReadOnly != false
|
|
var yynn785 int
|
|
if yyr785 || yy2arr785 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn785 = 1
|
|
for _, b := range yyq785 {
|
|
if b {
|
|
yynn785++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn785)
|
|
yynn785 = 0
|
|
}
|
|
if yyr785 || yy2arr785 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Monitors == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym787 := z.EncBinary()
|
|
_ = yym787
|
|
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 {
|
|
yym788 := z.EncBinary()
|
|
_ = yym788
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.Monitors, false, e)
|
|
}
|
|
}
|
|
}
|
|
if yyr785 || yy2arr785 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq785[1] {
|
|
yym790 := z.EncBinary()
|
|
_ = yym790
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.User))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq785[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("user"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym791 := z.EncBinary()
|
|
_ = yym791
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.User))
|
|
}
|
|
}
|
|
}
|
|
if yyr785 || yy2arr785 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq785[2] {
|
|
yym793 := z.EncBinary()
|
|
_ = yym793
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq785[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("secretFile"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym794 := z.EncBinary()
|
|
_ = yym794
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile))
|
|
}
|
|
}
|
|
}
|
|
if yyr785 || yy2arr785 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq785[3] {
|
|
if x.SecretRef == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.SecretRef.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq785[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 yyr785 || yy2arr785 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq785[4] {
|
|
yym797 := z.EncBinary()
|
|
_ = yym797
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq785[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym798 := z.EncBinary()
|
|
_ = yym798
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
}
|
|
}
|
|
if yyr785 || yy2arr785 {
|
|
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
|
|
yym799 := z.DecBinary()
|
|
_ = yym799
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct800 := r.ContainerType()
|
|
if yyct800 == codecSelferValueTypeMap1234 {
|
|
yyl800 := r.ReadMapStart()
|
|
if yyl800 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl800, d)
|
|
}
|
|
} else if yyct800 == codecSelferValueTypeArray1234 {
|
|
yyl800 := r.ReadArrayStart()
|
|
if yyl800 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl800, 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 yys801Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys801Slc
|
|
var yyhl801 bool = l >= 0
|
|
for yyj801 := 0; ; yyj801++ {
|
|
if yyhl801 {
|
|
if yyj801 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys801Slc = r.DecodeBytes(yys801Slc, true, true)
|
|
yys801 := string(yys801Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys801 {
|
|
case "monitors":
|
|
if r.TryDecodeAsNil() {
|
|
x.Monitors = nil
|
|
} else {
|
|
yyv802 := &x.Monitors
|
|
yym803 := z.DecBinary()
|
|
_ = yym803
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv802, 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, yys801)
|
|
} // end switch yys801
|
|
} // end for yyj801
|
|
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 yyj808 int
|
|
var yyb808 bool
|
|
var yyhl808 bool = l >= 0
|
|
yyj808++
|
|
if yyhl808 {
|
|
yyb808 = yyj808 > l
|
|
} else {
|
|
yyb808 = r.CheckBreak()
|
|
}
|
|
if yyb808 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Monitors = nil
|
|
} else {
|
|
yyv809 := &x.Monitors
|
|
yym810 := z.DecBinary()
|
|
_ = yym810
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv809, false, d)
|
|
}
|
|
}
|
|
yyj808++
|
|
if yyhl808 {
|
|
yyb808 = yyj808 > l
|
|
} else {
|
|
yyb808 = r.CheckBreak()
|
|
}
|
|
if yyb808 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.User = ""
|
|
} else {
|
|
x.User = string(r.DecodeString())
|
|
}
|
|
yyj808++
|
|
if yyhl808 {
|
|
yyb808 = yyj808 > l
|
|
} else {
|
|
yyb808 = r.CheckBreak()
|
|
}
|
|
if yyb808 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.SecretFile = ""
|
|
} else {
|
|
x.SecretFile = string(r.DecodeString())
|
|
}
|
|
yyj808++
|
|
if yyhl808 {
|
|
yyb808 = yyj808 > l
|
|
} else {
|
|
yyb808 = r.CheckBreak()
|
|
}
|
|
if yyb808 {
|
|
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)
|
|
}
|
|
yyj808++
|
|
if yyhl808 {
|
|
yyb808 = yyj808 > l
|
|
} else {
|
|
yyb808 = r.CheckBreak()
|
|
}
|
|
if yyb808 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
for {
|
|
yyj808++
|
|
if yyhl808 {
|
|
yyb808 = yyj808 > l
|
|
} else {
|
|
yyb808 = r.CheckBreak()
|
|
}
|
|
if yyb808 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj808-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 {
|
|
yym815 := z.EncBinary()
|
|
_ = yym815
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep816 := !z.EncBinary()
|
|
yy2arr816 := z.EncBasicHandle().StructToArray
|
|
var yyq816 [1]bool
|
|
_, _, _ = yysep816, yyq816, yy2arr816
|
|
const yyr816 bool = false
|
|
var yynn816 int
|
|
if yyr816 || yy2arr816 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn816 = 1
|
|
for _, b := range yyq816 {
|
|
if b {
|
|
yynn816++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn816)
|
|
yynn816 = 0
|
|
}
|
|
if yyr816 || yy2arr816 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym818 := z.EncBinary()
|
|
_ = yym818
|
|
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)
|
|
yym819 := z.EncBinary()
|
|
_ = yym819
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.DatasetName))
|
|
}
|
|
}
|
|
if yyr816 || yy2arr816 {
|
|
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
|
|
yym820 := z.DecBinary()
|
|
_ = yym820
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct821 := r.ContainerType()
|
|
if yyct821 == codecSelferValueTypeMap1234 {
|
|
yyl821 := r.ReadMapStart()
|
|
if yyl821 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl821, d)
|
|
}
|
|
} else if yyct821 == codecSelferValueTypeArray1234 {
|
|
yyl821 := r.ReadArrayStart()
|
|
if yyl821 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl821, 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 yys822Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys822Slc
|
|
var yyhl822 bool = l >= 0
|
|
for yyj822 := 0; ; yyj822++ {
|
|
if yyhl822 {
|
|
if yyj822 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys822Slc = r.DecodeBytes(yys822Slc, true, true)
|
|
yys822 := string(yys822Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys822 {
|
|
case "datasetName":
|
|
if r.TryDecodeAsNil() {
|
|
x.DatasetName = ""
|
|
} else {
|
|
x.DatasetName = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys822)
|
|
} // end switch yys822
|
|
} // end for yyj822
|
|
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 yyj824 int
|
|
var yyb824 bool
|
|
var yyhl824 bool = l >= 0
|
|
yyj824++
|
|
if yyhl824 {
|
|
yyb824 = yyj824 > l
|
|
} else {
|
|
yyb824 = r.CheckBreak()
|
|
}
|
|
if yyb824 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.DatasetName = ""
|
|
} else {
|
|
x.DatasetName = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj824++
|
|
if yyhl824 {
|
|
yyb824 = yyj824 > l
|
|
} else {
|
|
yyb824 = r.CheckBreak()
|
|
}
|
|
if yyb824 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj824-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 {
|
|
yym826 := z.EncBinary()
|
|
_ = yym826
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep827 := !z.EncBinary()
|
|
yy2arr827 := z.EncBasicHandle().StructToArray
|
|
var yyq827 [1]bool
|
|
_, _, _ = yysep827, yyq827, yy2arr827
|
|
const yyr827 bool = false
|
|
yyq827[0] = len(x.Items) != 0
|
|
var yynn827 int
|
|
if yyr827 || yy2arr827 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn827 = 0
|
|
for _, b := range yyq827 {
|
|
if b {
|
|
yynn827++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn827)
|
|
yynn827 = 0
|
|
}
|
|
if yyr827 || yy2arr827 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq827[0] {
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym829 := z.EncBinary()
|
|
_ = yym829
|
|
if false {
|
|
} else {
|
|
h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq827[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("items"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym830 := z.EncBinary()
|
|
_ = yym830
|
|
if false {
|
|
} else {
|
|
h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr827 || yy2arr827 {
|
|
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
|
|
yym831 := z.DecBinary()
|
|
_ = yym831
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct832 := r.ContainerType()
|
|
if yyct832 == codecSelferValueTypeMap1234 {
|
|
yyl832 := r.ReadMapStart()
|
|
if yyl832 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl832, d)
|
|
}
|
|
} else if yyct832 == codecSelferValueTypeArray1234 {
|
|
yyl832 := r.ReadArrayStart()
|
|
if yyl832 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl832, 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 yys833Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys833Slc
|
|
var yyhl833 bool = l >= 0
|
|
for yyj833 := 0; ; yyj833++ {
|
|
if yyhl833 {
|
|
if yyj833 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys833Slc = r.DecodeBytes(yys833Slc, true, true)
|
|
yys833 := string(yys833Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys833 {
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv834 := &x.Items
|
|
yym835 := z.DecBinary()
|
|
_ = yym835
|
|
if false {
|
|
} else {
|
|
h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv834), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys833)
|
|
} // end switch yys833
|
|
} // end for yyj833
|
|
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 yyj836 int
|
|
var yyb836 bool
|
|
var yyhl836 bool = l >= 0
|
|
yyj836++
|
|
if yyhl836 {
|
|
yyb836 = yyj836 > l
|
|
} else {
|
|
yyb836 = r.CheckBreak()
|
|
}
|
|
if yyb836 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv837 := &x.Items
|
|
yym838 := z.DecBinary()
|
|
_ = yym838
|
|
if false {
|
|
} else {
|
|
h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv837), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj836++
|
|
if yyhl836 {
|
|
yyb836 = yyj836 > l
|
|
} else {
|
|
yyb836 = r.CheckBreak()
|
|
}
|
|
if yyb836 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj836-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 {
|
|
yym839 := z.EncBinary()
|
|
_ = yym839
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep840 := !z.EncBinary()
|
|
yy2arr840 := z.EncBasicHandle().StructToArray
|
|
var yyq840 [2]bool
|
|
_, _, _ = yysep840, yyq840, yy2arr840
|
|
const yyr840 bool = false
|
|
var yynn840 int
|
|
if yyr840 || yy2arr840 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn840 = 2
|
|
for _, b := range yyq840 {
|
|
if b {
|
|
yynn840++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn840)
|
|
yynn840 = 0
|
|
}
|
|
if yyr840 || yy2arr840 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym842 := z.EncBinary()
|
|
_ = yym842
|
|
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)
|
|
yym843 := z.EncBinary()
|
|
_ = yym843
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
|
|
}
|
|
}
|
|
if yyr840 || yy2arr840 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy845 := &x.FieldRef
|
|
yy845.CodecEncodeSelf(e)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("fieldRef"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy846 := &x.FieldRef
|
|
yy846.CodecEncodeSelf(e)
|
|
}
|
|
if yyr840 || yy2arr840 {
|
|
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
|
|
yym847 := z.DecBinary()
|
|
_ = yym847
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct848 := r.ContainerType()
|
|
if yyct848 == codecSelferValueTypeMap1234 {
|
|
yyl848 := r.ReadMapStart()
|
|
if yyl848 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl848, d)
|
|
}
|
|
} else if yyct848 == codecSelferValueTypeArray1234 {
|
|
yyl848 := r.ReadArrayStart()
|
|
if yyl848 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl848, 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 yys849Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys849Slc
|
|
var yyhl849 bool = l >= 0
|
|
for yyj849 := 0; ; yyj849++ {
|
|
if yyhl849 {
|
|
if yyj849 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys849Slc = r.DecodeBytes(yys849Slc, true, true)
|
|
yys849 := string(yys849Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys849 {
|
|
case "path":
|
|
if r.TryDecodeAsNil() {
|
|
x.Path = ""
|
|
} else {
|
|
x.Path = string(r.DecodeString())
|
|
}
|
|
case "fieldRef":
|
|
if r.TryDecodeAsNil() {
|
|
x.FieldRef = ObjectFieldSelector{}
|
|
} else {
|
|
yyv851 := &x.FieldRef
|
|
yyv851.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys849)
|
|
} // end switch yys849
|
|
} // end for yyj849
|
|
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 yyj852 int
|
|
var yyb852 bool
|
|
var yyhl852 bool = l >= 0
|
|
yyj852++
|
|
if yyhl852 {
|
|
yyb852 = yyj852 > l
|
|
} else {
|
|
yyb852 = r.CheckBreak()
|
|
}
|
|
if yyb852 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Path = ""
|
|
} else {
|
|
x.Path = string(r.DecodeString())
|
|
}
|
|
yyj852++
|
|
if yyhl852 {
|
|
yyb852 = yyj852 > l
|
|
} else {
|
|
yyb852 = r.CheckBreak()
|
|
}
|
|
if yyb852 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.FieldRef = ObjectFieldSelector{}
|
|
} else {
|
|
yyv854 := &x.FieldRef
|
|
yyv854.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj852++
|
|
if yyhl852 {
|
|
yyb852 = yyj852 > l
|
|
} else {
|
|
yyb852 = r.CheckBreak()
|
|
}
|
|
if yyb852 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj852-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 {
|
|
yym855 := z.EncBinary()
|
|
_ = yym855
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep856 := !z.EncBinary()
|
|
yy2arr856 := z.EncBasicHandle().StructToArray
|
|
var yyq856 [5]bool
|
|
_, _, _ = yysep856, yyq856, yy2arr856
|
|
const yyr856 bool = false
|
|
yyq856[0] = x.Name != ""
|
|
yyq856[1] = x.HostPort != 0
|
|
yyq856[3] = x.Protocol != ""
|
|
yyq856[4] = x.HostIP != ""
|
|
var yynn856 int
|
|
if yyr856 || yy2arr856 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn856 = 1
|
|
for _, b := range yyq856 {
|
|
if b {
|
|
yynn856++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn856)
|
|
yynn856 = 0
|
|
}
|
|
if yyr856 || yy2arr856 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq856[0] {
|
|
yym858 := z.EncBinary()
|
|
_ = yym858
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq856[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("name"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym859 := z.EncBinary()
|
|
_ = yym859
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
}
|
|
}
|
|
if yyr856 || yy2arr856 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq856[1] {
|
|
yym861 := z.EncBinary()
|
|
_ = yym861
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.HostPort))
|
|
}
|
|
} else {
|
|
r.EncodeInt(0)
|
|
}
|
|
} else {
|
|
if yyq856[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("hostPort"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym862 := z.EncBinary()
|
|
_ = yym862
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.HostPort))
|
|
}
|
|
}
|
|
}
|
|
if yyr856 || yy2arr856 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym864 := z.EncBinary()
|
|
_ = yym864
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.ContainerPort))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("containerPort"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym865 := z.EncBinary()
|
|
_ = yym865
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.ContainerPort))
|
|
}
|
|
}
|
|
if yyr856 || yy2arr856 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq856[3] {
|
|
x.Protocol.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq856[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("protocol"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Protocol.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr856 || yy2arr856 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq856[4] {
|
|
yym868 := z.EncBinary()
|
|
_ = yym868
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.HostIP))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq856[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("hostIP"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym869 := z.EncBinary()
|
|
_ = yym869
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.HostIP))
|
|
}
|
|
}
|
|
}
|
|
if yyr856 || yy2arr856 {
|
|
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
|
|
yym870 := z.DecBinary()
|
|
_ = yym870
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct871 := r.ContainerType()
|
|
if yyct871 == codecSelferValueTypeMap1234 {
|
|
yyl871 := r.ReadMapStart()
|
|
if yyl871 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl871, d)
|
|
}
|
|
} else if yyct871 == codecSelferValueTypeArray1234 {
|
|
yyl871 := r.ReadArrayStart()
|
|
if yyl871 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl871, 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 yys872Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys872Slc
|
|
var yyhl872 bool = l >= 0
|
|
for yyj872 := 0; ; yyj872++ {
|
|
if yyhl872 {
|
|
if yyj872 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys872Slc = r.DecodeBytes(yys872Slc, true, true)
|
|
yys872 := string(yys872Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys872 {
|
|
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, yys872)
|
|
} // end switch yys872
|
|
} // end for yyj872
|
|
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 yyj878 int
|
|
var yyb878 bool
|
|
var yyhl878 bool = l >= 0
|
|
yyj878++
|
|
if yyhl878 {
|
|
yyb878 = yyj878 > l
|
|
} else {
|
|
yyb878 = r.CheckBreak()
|
|
}
|
|
if yyb878 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
yyj878++
|
|
if yyhl878 {
|
|
yyb878 = yyj878 > l
|
|
} else {
|
|
yyb878 = r.CheckBreak()
|
|
}
|
|
if yyb878 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.HostPort = 0
|
|
} else {
|
|
x.HostPort = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
yyj878++
|
|
if yyhl878 {
|
|
yyb878 = yyj878 > l
|
|
} else {
|
|
yyb878 = r.CheckBreak()
|
|
}
|
|
if yyb878 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ContainerPort = 0
|
|
} else {
|
|
x.ContainerPort = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
yyj878++
|
|
if yyhl878 {
|
|
yyb878 = yyj878 > l
|
|
} else {
|
|
yyb878 = r.CheckBreak()
|
|
}
|
|
if yyb878 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Protocol = ""
|
|
} else {
|
|
x.Protocol = Protocol(r.DecodeString())
|
|
}
|
|
yyj878++
|
|
if yyhl878 {
|
|
yyb878 = yyj878 > l
|
|
} else {
|
|
yyb878 = r.CheckBreak()
|
|
}
|
|
if yyb878 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.HostIP = ""
|
|
} else {
|
|
x.HostIP = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj878++
|
|
if yyhl878 {
|
|
yyb878 = yyj878 > l
|
|
} else {
|
|
yyb878 = r.CheckBreak()
|
|
}
|
|
if yyb878 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj878-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 {
|
|
yym884 := z.EncBinary()
|
|
_ = yym884
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep885 := !z.EncBinary()
|
|
yy2arr885 := z.EncBasicHandle().StructToArray
|
|
var yyq885 [3]bool
|
|
_, _, _ = yysep885, yyq885, yy2arr885
|
|
const yyr885 bool = false
|
|
yyq885[1] = x.ReadOnly != false
|
|
var yynn885 int
|
|
if yyr885 || yy2arr885 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn885 = 2
|
|
for _, b := range yyq885 {
|
|
if b {
|
|
yynn885++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn885)
|
|
yynn885 = 0
|
|
}
|
|
if yyr885 || yy2arr885 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym887 := z.EncBinary()
|
|
_ = yym887
|
|
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)
|
|
yym888 := z.EncBinary()
|
|
_ = yym888
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
}
|
|
if yyr885 || yy2arr885 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq885[1] {
|
|
yym890 := z.EncBinary()
|
|
_ = yym890
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq885[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym891 := z.EncBinary()
|
|
_ = yym891
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
}
|
|
}
|
|
if yyr885 || yy2arr885 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym893 := z.EncBinary()
|
|
_ = yym893
|
|
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)
|
|
yym894 := z.EncBinary()
|
|
_ = yym894
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.MountPath))
|
|
}
|
|
}
|
|
if yyr885 || yy2arr885 {
|
|
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
|
|
yym895 := z.DecBinary()
|
|
_ = yym895
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct896 := r.ContainerType()
|
|
if yyct896 == codecSelferValueTypeMap1234 {
|
|
yyl896 := r.ReadMapStart()
|
|
if yyl896 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl896, d)
|
|
}
|
|
} else if yyct896 == codecSelferValueTypeArray1234 {
|
|
yyl896 := r.ReadArrayStart()
|
|
if yyl896 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl896, 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 yys897Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys897Slc
|
|
var yyhl897 bool = l >= 0
|
|
for yyj897 := 0; ; yyj897++ {
|
|
if yyhl897 {
|
|
if yyj897 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys897Slc = r.DecodeBytes(yys897Slc, true, true)
|
|
yys897 := string(yys897Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys897 {
|
|
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, yys897)
|
|
} // end switch yys897
|
|
} // end for yyj897
|
|
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 yyj901 int
|
|
var yyb901 bool
|
|
var yyhl901 bool = l >= 0
|
|
yyj901++
|
|
if yyhl901 {
|
|
yyb901 = yyj901 > l
|
|
} else {
|
|
yyb901 = r.CheckBreak()
|
|
}
|
|
if yyb901 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
yyj901++
|
|
if yyhl901 {
|
|
yyb901 = yyj901 > l
|
|
} else {
|
|
yyb901 = r.CheckBreak()
|
|
}
|
|
if yyb901 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
yyj901++
|
|
if yyhl901 {
|
|
yyb901 = yyj901 > l
|
|
} else {
|
|
yyb901 = r.CheckBreak()
|
|
}
|
|
if yyb901 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.MountPath = ""
|
|
} else {
|
|
x.MountPath = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj901++
|
|
if yyhl901 {
|
|
yyb901 = yyj901 > l
|
|
} else {
|
|
yyb901 = r.CheckBreak()
|
|
}
|
|
if yyb901 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj901-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 {
|
|
yym905 := z.EncBinary()
|
|
_ = yym905
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep906 := !z.EncBinary()
|
|
yy2arr906 := z.EncBasicHandle().StructToArray
|
|
var yyq906 [3]bool
|
|
_, _, _ = yysep906, yyq906, yy2arr906
|
|
const yyr906 bool = false
|
|
yyq906[1] = x.Value != ""
|
|
yyq906[2] = x.ValueFrom != nil
|
|
var yynn906 int
|
|
if yyr906 || yy2arr906 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn906 = 1
|
|
for _, b := range yyq906 {
|
|
if b {
|
|
yynn906++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn906)
|
|
yynn906 = 0
|
|
}
|
|
if yyr906 || yy2arr906 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym908 := z.EncBinary()
|
|
_ = yym908
|
|
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)
|
|
yym909 := z.EncBinary()
|
|
_ = yym909
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
}
|
|
if yyr906 || yy2arr906 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq906[1] {
|
|
yym911 := z.EncBinary()
|
|
_ = yym911
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Value))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq906[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("value"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym912 := z.EncBinary()
|
|
_ = yym912
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Value))
|
|
}
|
|
}
|
|
}
|
|
if yyr906 || yy2arr906 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq906[2] {
|
|
if x.ValueFrom == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.ValueFrom.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq906[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 yyr906 || yy2arr906 {
|
|
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
|
|
yym914 := z.DecBinary()
|
|
_ = yym914
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct915 := r.ContainerType()
|
|
if yyct915 == codecSelferValueTypeMap1234 {
|
|
yyl915 := r.ReadMapStart()
|
|
if yyl915 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl915, d)
|
|
}
|
|
} else if yyct915 == codecSelferValueTypeArray1234 {
|
|
yyl915 := r.ReadArrayStart()
|
|
if yyl915 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl915, 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 yys916Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys916Slc
|
|
var yyhl916 bool = l >= 0
|
|
for yyj916 := 0; ; yyj916++ {
|
|
if yyhl916 {
|
|
if yyj916 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys916Slc = r.DecodeBytes(yys916Slc, true, true)
|
|
yys916 := string(yys916Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys916 {
|
|
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, yys916)
|
|
} // end switch yys916
|
|
} // end for yyj916
|
|
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 yyj920 int
|
|
var yyb920 bool
|
|
var yyhl920 bool = l >= 0
|
|
yyj920++
|
|
if yyhl920 {
|
|
yyb920 = yyj920 > l
|
|
} else {
|
|
yyb920 = r.CheckBreak()
|
|
}
|
|
if yyb920 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
yyj920++
|
|
if yyhl920 {
|
|
yyb920 = yyj920 > l
|
|
} else {
|
|
yyb920 = r.CheckBreak()
|
|
}
|
|
if yyb920 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Value = ""
|
|
} else {
|
|
x.Value = string(r.DecodeString())
|
|
}
|
|
yyj920++
|
|
if yyhl920 {
|
|
yyb920 = yyj920 > l
|
|
} else {
|
|
yyb920 = r.CheckBreak()
|
|
}
|
|
if yyb920 {
|
|
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 {
|
|
yyj920++
|
|
if yyhl920 {
|
|
yyb920 = yyj920 > l
|
|
} else {
|
|
yyb920 = r.CheckBreak()
|
|
}
|
|
if yyb920 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj920-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 {
|
|
yym924 := z.EncBinary()
|
|
_ = yym924
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep925 := !z.EncBinary()
|
|
yy2arr925 := z.EncBasicHandle().StructToArray
|
|
var yyq925 [1]bool
|
|
_, _, _ = yysep925, yyq925, yy2arr925
|
|
const yyr925 bool = false
|
|
var yynn925 int
|
|
if yyr925 || yy2arr925 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn925 = 1
|
|
for _, b := range yyq925 {
|
|
if b {
|
|
yynn925++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn925)
|
|
yynn925 = 0
|
|
}
|
|
if yyr925 || yy2arr925 {
|
|
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 yyr925 || yy2arr925 {
|
|
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
|
|
yym927 := z.DecBinary()
|
|
_ = yym927
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct928 := r.ContainerType()
|
|
if yyct928 == codecSelferValueTypeMap1234 {
|
|
yyl928 := r.ReadMapStart()
|
|
if yyl928 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl928, d)
|
|
}
|
|
} else if yyct928 == codecSelferValueTypeArray1234 {
|
|
yyl928 := r.ReadArrayStart()
|
|
if yyl928 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl928, 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 yys929Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys929Slc
|
|
var yyhl929 bool = l >= 0
|
|
for yyj929 := 0; ; yyj929++ {
|
|
if yyhl929 {
|
|
if yyj929 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys929Slc = r.DecodeBytes(yys929Slc, true, true)
|
|
yys929 := string(yys929Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys929 {
|
|
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, yys929)
|
|
} // end switch yys929
|
|
} // end for yyj929
|
|
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 yyj931 int
|
|
var yyb931 bool
|
|
var yyhl931 bool = l >= 0
|
|
yyj931++
|
|
if yyhl931 {
|
|
yyb931 = yyj931 > l
|
|
} else {
|
|
yyb931 = r.CheckBreak()
|
|
}
|
|
if yyb931 {
|
|
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 {
|
|
yyj931++
|
|
if yyhl931 {
|
|
yyb931 = yyj931 > l
|
|
} else {
|
|
yyb931 = r.CheckBreak()
|
|
}
|
|
if yyb931 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj931-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 {
|
|
yym933 := z.EncBinary()
|
|
_ = yym933
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep934 := !z.EncBinary()
|
|
yy2arr934 := z.EncBasicHandle().StructToArray
|
|
var yyq934 [2]bool
|
|
_, _, _ = yysep934, yyq934, yy2arr934
|
|
const yyr934 bool = false
|
|
var yynn934 int
|
|
if yyr934 || yy2arr934 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn934 = 2
|
|
for _, b := range yyq934 {
|
|
if b {
|
|
yynn934++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn934)
|
|
yynn934 = 0
|
|
}
|
|
if yyr934 || yy2arr934 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym936 := z.EncBinary()
|
|
_ = yym936
|
|
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)
|
|
yym937 := z.EncBinary()
|
|
_ = yym937
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
if yyr934 || yy2arr934 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym939 := z.EncBinary()
|
|
_ = yym939
|
|
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)
|
|
yym940 := z.EncBinary()
|
|
_ = yym940
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath))
|
|
}
|
|
}
|
|
if yyr934 || yy2arr934 {
|
|
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
|
|
yym941 := z.DecBinary()
|
|
_ = yym941
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct942 := r.ContainerType()
|
|
if yyct942 == codecSelferValueTypeMap1234 {
|
|
yyl942 := r.ReadMapStart()
|
|
if yyl942 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl942, d)
|
|
}
|
|
} else if yyct942 == codecSelferValueTypeArray1234 {
|
|
yyl942 := r.ReadArrayStart()
|
|
if yyl942 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl942, 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 yys943Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys943Slc
|
|
var yyhl943 bool = l >= 0
|
|
for yyj943 := 0; ; yyj943++ {
|
|
if yyhl943 {
|
|
if yyj943 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys943Slc = r.DecodeBytes(yys943Slc, true, true)
|
|
yys943 := string(yys943Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys943 {
|
|
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, yys943)
|
|
} // end switch yys943
|
|
} // end for yyj943
|
|
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 yyj946 int
|
|
var yyb946 bool
|
|
var yyhl946 bool = l >= 0
|
|
yyj946++
|
|
if yyhl946 {
|
|
yyb946 = yyj946 > l
|
|
} else {
|
|
yyb946 = r.CheckBreak()
|
|
}
|
|
if yyb946 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj946++
|
|
if yyhl946 {
|
|
yyb946 = yyj946 > l
|
|
} else {
|
|
yyb946 = r.CheckBreak()
|
|
}
|
|
if yyb946 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.FieldPath = ""
|
|
} else {
|
|
x.FieldPath = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj946++
|
|
if yyhl946 {
|
|
yyb946 = yyj946 > l
|
|
} else {
|
|
yyb946 = r.CheckBreak()
|
|
}
|
|
if yyb946 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj946-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 {
|
|
yym949 := z.EncBinary()
|
|
_ = yym949
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep950 := !z.EncBinary()
|
|
yy2arr950 := z.EncBasicHandle().StructToArray
|
|
var yyq950 [4]bool
|
|
_, _, _ = yysep950, yyq950, yy2arr950
|
|
const yyr950 bool = false
|
|
yyq950[0] = x.Path != ""
|
|
yyq950[1] = true
|
|
yyq950[2] = x.Host != ""
|
|
yyq950[3] = x.Scheme != ""
|
|
var yynn950 int
|
|
if yyr950 || yy2arr950 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn950 = 0
|
|
for _, b := range yyq950 {
|
|
if b {
|
|
yynn950++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn950)
|
|
yynn950 = 0
|
|
}
|
|
if yyr950 || yy2arr950 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq950[0] {
|
|
yym952 := z.EncBinary()
|
|
_ = yym952
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq950[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("path"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym953 := z.EncBinary()
|
|
_ = yym953
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
|
|
}
|
|
}
|
|
}
|
|
if yyr950 || yy2arr950 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq950[1] {
|
|
yy955 := &x.Port
|
|
yym956 := z.EncBinary()
|
|
_ = yym956
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy955) {
|
|
} else if !yym956 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy955)
|
|
} else {
|
|
z.EncFallback(yy955)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq950[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("port"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy957 := &x.Port
|
|
yym958 := z.EncBinary()
|
|
_ = yym958
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy957) {
|
|
} else if !yym958 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy957)
|
|
} else {
|
|
z.EncFallback(yy957)
|
|
}
|
|
}
|
|
}
|
|
if yyr950 || yy2arr950 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq950[2] {
|
|
yym960 := z.EncBinary()
|
|
_ = yym960
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Host))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq950[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("host"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym961 := z.EncBinary()
|
|
_ = yym961
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Host))
|
|
}
|
|
}
|
|
}
|
|
if yyr950 || yy2arr950 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq950[3] {
|
|
x.Scheme.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq950[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("scheme"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Scheme.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr950 || yy2arr950 {
|
|
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
|
|
yym963 := z.DecBinary()
|
|
_ = yym963
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct964 := r.ContainerType()
|
|
if yyct964 == codecSelferValueTypeMap1234 {
|
|
yyl964 := r.ReadMapStart()
|
|
if yyl964 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl964, d)
|
|
}
|
|
} else if yyct964 == codecSelferValueTypeArray1234 {
|
|
yyl964 := r.ReadArrayStart()
|
|
if yyl964 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl964, 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 yys965Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys965Slc
|
|
var yyhl965 bool = l >= 0
|
|
for yyj965 := 0; ; yyj965++ {
|
|
if yyhl965 {
|
|
if yyj965 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys965Slc = r.DecodeBytes(yys965Slc, true, true)
|
|
yys965 := string(yys965Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys965 {
|
|
case "path":
|
|
if r.TryDecodeAsNil() {
|
|
x.Path = ""
|
|
} else {
|
|
x.Path = string(r.DecodeString())
|
|
}
|
|
case "port":
|
|
if r.TryDecodeAsNil() {
|
|
x.Port = pkg5_intstr.IntOrString{}
|
|
} else {
|
|
yyv967 := &x.Port
|
|
yym968 := z.DecBinary()
|
|
_ = yym968
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv967) {
|
|
} else if !yym968 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv967)
|
|
} else {
|
|
z.DecFallback(yyv967, 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, yys965)
|
|
} // end switch yys965
|
|
} // end for yyj965
|
|
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 yyj971 int
|
|
var yyb971 bool
|
|
var yyhl971 bool = l >= 0
|
|
yyj971++
|
|
if yyhl971 {
|
|
yyb971 = yyj971 > l
|
|
} else {
|
|
yyb971 = r.CheckBreak()
|
|
}
|
|
if yyb971 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Path = ""
|
|
} else {
|
|
x.Path = string(r.DecodeString())
|
|
}
|
|
yyj971++
|
|
if yyhl971 {
|
|
yyb971 = yyj971 > l
|
|
} else {
|
|
yyb971 = r.CheckBreak()
|
|
}
|
|
if yyb971 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Port = pkg5_intstr.IntOrString{}
|
|
} else {
|
|
yyv973 := &x.Port
|
|
yym974 := z.DecBinary()
|
|
_ = yym974
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv973) {
|
|
} else if !yym974 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv973)
|
|
} else {
|
|
z.DecFallback(yyv973, false)
|
|
}
|
|
}
|
|
yyj971++
|
|
if yyhl971 {
|
|
yyb971 = yyj971 > l
|
|
} else {
|
|
yyb971 = r.CheckBreak()
|
|
}
|
|
if yyb971 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Host = ""
|
|
} else {
|
|
x.Host = string(r.DecodeString())
|
|
}
|
|
yyj971++
|
|
if yyhl971 {
|
|
yyb971 = yyj971 > l
|
|
} else {
|
|
yyb971 = r.CheckBreak()
|
|
}
|
|
if yyb971 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Scheme = ""
|
|
} else {
|
|
x.Scheme = URIScheme(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj971++
|
|
if yyhl971 {
|
|
yyb971 = yyj971 > l
|
|
} else {
|
|
yyb971 = r.CheckBreak()
|
|
}
|
|
if yyb971 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj971-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x URIScheme) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym977 := z.EncBinary()
|
|
_ = yym977
|
|
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
|
|
yym978 := z.DecBinary()
|
|
_ = yym978
|
|
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 {
|
|
yym979 := z.EncBinary()
|
|
_ = yym979
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep980 := !z.EncBinary()
|
|
yy2arr980 := z.EncBasicHandle().StructToArray
|
|
var yyq980 [1]bool
|
|
_, _, _ = yysep980, yyq980, yy2arr980
|
|
const yyr980 bool = false
|
|
yyq980[0] = true
|
|
var yynn980 int
|
|
if yyr980 || yy2arr980 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn980 = 0
|
|
for _, b := range yyq980 {
|
|
if b {
|
|
yynn980++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn980)
|
|
yynn980 = 0
|
|
}
|
|
if yyr980 || yy2arr980 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq980[0] {
|
|
yy982 := &x.Port
|
|
yym983 := z.EncBinary()
|
|
_ = yym983
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy982) {
|
|
} else if !yym983 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy982)
|
|
} else {
|
|
z.EncFallback(yy982)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq980[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("port"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy984 := &x.Port
|
|
yym985 := z.EncBinary()
|
|
_ = yym985
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy984) {
|
|
} else if !yym985 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy984)
|
|
} else {
|
|
z.EncFallback(yy984)
|
|
}
|
|
}
|
|
}
|
|
if yyr980 || yy2arr980 {
|
|
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
|
|
yym986 := z.DecBinary()
|
|
_ = yym986
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct987 := r.ContainerType()
|
|
if yyct987 == codecSelferValueTypeMap1234 {
|
|
yyl987 := r.ReadMapStart()
|
|
if yyl987 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl987, d)
|
|
}
|
|
} else if yyct987 == codecSelferValueTypeArray1234 {
|
|
yyl987 := r.ReadArrayStart()
|
|
if yyl987 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl987, 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 yys988Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys988Slc
|
|
var yyhl988 bool = l >= 0
|
|
for yyj988 := 0; ; yyj988++ {
|
|
if yyhl988 {
|
|
if yyj988 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys988Slc = r.DecodeBytes(yys988Slc, true, true)
|
|
yys988 := string(yys988Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys988 {
|
|
case "port":
|
|
if r.TryDecodeAsNil() {
|
|
x.Port = pkg5_intstr.IntOrString{}
|
|
} else {
|
|
yyv989 := &x.Port
|
|
yym990 := z.DecBinary()
|
|
_ = yym990
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv989) {
|
|
} else if !yym990 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv989)
|
|
} else {
|
|
z.DecFallback(yyv989, false)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys988)
|
|
} // end switch yys988
|
|
} // end for yyj988
|
|
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 yyj991 int
|
|
var yyb991 bool
|
|
var yyhl991 bool = l >= 0
|
|
yyj991++
|
|
if yyhl991 {
|
|
yyb991 = yyj991 > l
|
|
} else {
|
|
yyb991 = r.CheckBreak()
|
|
}
|
|
if yyb991 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Port = pkg5_intstr.IntOrString{}
|
|
} else {
|
|
yyv992 := &x.Port
|
|
yym993 := z.DecBinary()
|
|
_ = yym993
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv992) {
|
|
} else if !yym993 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv992)
|
|
} else {
|
|
z.DecFallback(yyv992, false)
|
|
}
|
|
}
|
|
for {
|
|
yyj991++
|
|
if yyhl991 {
|
|
yyb991 = yyj991 > l
|
|
} else {
|
|
yyb991 = r.CheckBreak()
|
|
}
|
|
if yyb991 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj991-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 {
|
|
yym994 := z.EncBinary()
|
|
_ = yym994
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep995 := !z.EncBinary()
|
|
yy2arr995 := z.EncBasicHandle().StructToArray
|
|
var yyq995 [1]bool
|
|
_, _, _ = yysep995, yyq995, yy2arr995
|
|
const yyr995 bool = false
|
|
yyq995[0] = len(x.Command) != 0
|
|
var yynn995 int
|
|
if yyr995 || yy2arr995 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn995 = 0
|
|
for _, b := range yyq995 {
|
|
if b {
|
|
yynn995++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn995)
|
|
yynn995 = 0
|
|
}
|
|
if yyr995 || yy2arr995 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq995[0] {
|
|
if x.Command == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym997 := z.EncBinary()
|
|
_ = yym997
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.Command, false, e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq995[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("command"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Command == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym998 := z.EncBinary()
|
|
_ = yym998
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.Command, false, e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr995 || yy2arr995 {
|
|
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
|
|
yym999 := z.DecBinary()
|
|
_ = yym999
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1000 := r.ContainerType()
|
|
if yyct1000 == codecSelferValueTypeMap1234 {
|
|
yyl1000 := r.ReadMapStart()
|
|
if yyl1000 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1000, d)
|
|
}
|
|
} else if yyct1000 == codecSelferValueTypeArray1234 {
|
|
yyl1000 := r.ReadArrayStart()
|
|
if yyl1000 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1000, 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 yys1001Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1001Slc
|
|
var yyhl1001 bool = l >= 0
|
|
for yyj1001 := 0; ; yyj1001++ {
|
|
if yyhl1001 {
|
|
if yyj1001 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1001Slc = r.DecodeBytes(yys1001Slc, true, true)
|
|
yys1001 := string(yys1001Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1001 {
|
|
case "command":
|
|
if r.TryDecodeAsNil() {
|
|
x.Command = nil
|
|
} else {
|
|
yyv1002 := &x.Command
|
|
yym1003 := z.DecBinary()
|
|
_ = yym1003
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv1002, false, d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1001)
|
|
} // end switch yys1001
|
|
} // end for yyj1001
|
|
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 yyj1004 int
|
|
var yyb1004 bool
|
|
var yyhl1004 bool = l >= 0
|
|
yyj1004++
|
|
if yyhl1004 {
|
|
yyb1004 = yyj1004 > l
|
|
} else {
|
|
yyb1004 = r.CheckBreak()
|
|
}
|
|
if yyb1004 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Command = nil
|
|
} else {
|
|
yyv1005 := &x.Command
|
|
yym1006 := z.DecBinary()
|
|
_ = yym1006
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv1005, false, d)
|
|
}
|
|
}
|
|
for {
|
|
yyj1004++
|
|
if yyhl1004 {
|
|
yyb1004 = yyj1004 > l
|
|
} else {
|
|
yyb1004 = r.CheckBreak()
|
|
}
|
|
if yyb1004 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1004-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 {
|
|
yym1007 := z.EncBinary()
|
|
_ = yym1007
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1008 := !z.EncBinary()
|
|
yy2arr1008 := z.EncBasicHandle().StructToArray
|
|
var yyq1008 [8]bool
|
|
_, _, _ = yysep1008, yyq1008, yy2arr1008
|
|
const yyr1008 bool = false
|
|
yyq1008[0] = x.Handler.Exec != nil && x.Exec != nil
|
|
yyq1008[1] = x.Handler.HTTPGet != nil && x.HTTPGet != nil
|
|
yyq1008[2] = x.Handler.TCPSocket != nil && x.TCPSocket != nil
|
|
yyq1008[3] = x.InitialDelaySeconds != 0
|
|
yyq1008[4] = x.TimeoutSeconds != 0
|
|
yyq1008[5] = x.PeriodSeconds != 0
|
|
yyq1008[6] = x.SuccessThreshold != 0
|
|
yyq1008[7] = x.FailureThreshold != 0
|
|
var yynn1008 int
|
|
if yyr1008 || yy2arr1008 {
|
|
r.EncodeArrayStart(8)
|
|
} else {
|
|
yynn1008 = 0
|
|
for _, b := range yyq1008 {
|
|
if b {
|
|
yynn1008++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1008)
|
|
yynn1008 = 0
|
|
}
|
|
var yyn1009 bool
|
|
if x.Handler.Exec == nil {
|
|
yyn1009 = true
|
|
goto LABEL1009
|
|
}
|
|
LABEL1009:
|
|
if yyr1008 || yy2arr1008 {
|
|
if yyn1009 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1008[0] {
|
|
if x.Exec == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Exec.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq1008[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("exec"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn1009 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.Exec == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Exec.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn1010 bool
|
|
if x.Handler.HTTPGet == nil {
|
|
yyn1010 = true
|
|
goto LABEL1010
|
|
}
|
|
LABEL1010:
|
|
if yyr1008 || yy2arr1008 {
|
|
if yyn1010 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1008[1] {
|
|
if x.HTTPGet == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.HTTPGet.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq1008[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("httpGet"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn1010 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.HTTPGet == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.HTTPGet.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn1011 bool
|
|
if x.Handler.TCPSocket == nil {
|
|
yyn1011 = true
|
|
goto LABEL1011
|
|
}
|
|
LABEL1011:
|
|
if yyr1008 || yy2arr1008 {
|
|
if yyn1011 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1008[2] {
|
|
if x.TCPSocket == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.TCPSocket.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq1008[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("tcpSocket"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn1011 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.TCPSocket == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.TCPSocket.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1008 || yy2arr1008 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1008[3] {
|
|
yym1013 := z.EncBinary()
|
|
_ = yym1013
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.InitialDelaySeconds))
|
|
}
|
|
} else {
|
|
r.EncodeInt(0)
|
|
}
|
|
} else {
|
|
if yyq1008[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("initialDelaySeconds"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1014 := z.EncBinary()
|
|
_ = yym1014
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.InitialDelaySeconds))
|
|
}
|
|
}
|
|
}
|
|
if yyr1008 || yy2arr1008 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1008[4] {
|
|
yym1016 := z.EncBinary()
|
|
_ = yym1016
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.TimeoutSeconds))
|
|
}
|
|
} else {
|
|
r.EncodeInt(0)
|
|
}
|
|
} else {
|
|
if yyq1008[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("timeoutSeconds"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1017 := z.EncBinary()
|
|
_ = yym1017
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.TimeoutSeconds))
|
|
}
|
|
}
|
|
}
|
|
if yyr1008 || yy2arr1008 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1008[5] {
|
|
yym1019 := z.EncBinary()
|
|
_ = yym1019
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.PeriodSeconds))
|
|
}
|
|
} else {
|
|
r.EncodeInt(0)
|
|
}
|
|
} else {
|
|
if yyq1008[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("periodSeconds"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1020 := z.EncBinary()
|
|
_ = yym1020
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.PeriodSeconds))
|
|
}
|
|
}
|
|
}
|
|
if yyr1008 || yy2arr1008 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1008[6] {
|
|
yym1022 := z.EncBinary()
|
|
_ = yym1022
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.SuccessThreshold))
|
|
}
|
|
} else {
|
|
r.EncodeInt(0)
|
|
}
|
|
} else {
|
|
if yyq1008[6] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("successThreshold"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1023 := z.EncBinary()
|
|
_ = yym1023
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.SuccessThreshold))
|
|
}
|
|
}
|
|
}
|
|
if yyr1008 || yy2arr1008 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1008[7] {
|
|
yym1025 := z.EncBinary()
|
|
_ = yym1025
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.FailureThreshold))
|
|
}
|
|
} else {
|
|
r.EncodeInt(0)
|
|
}
|
|
} else {
|
|
if yyq1008[7] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("failureThreshold"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1026 := z.EncBinary()
|
|
_ = yym1026
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.FailureThreshold))
|
|
}
|
|
}
|
|
}
|
|
if yyr1008 || yy2arr1008 {
|
|
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
|
|
yym1027 := z.DecBinary()
|
|
_ = yym1027
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1028 := r.ContainerType()
|
|
if yyct1028 == codecSelferValueTypeMap1234 {
|
|
yyl1028 := r.ReadMapStart()
|
|
if yyl1028 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1028, d)
|
|
}
|
|
} else if yyct1028 == codecSelferValueTypeArray1234 {
|
|
yyl1028 := r.ReadArrayStart()
|
|
if yyl1028 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1028, 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 yys1029Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1029Slc
|
|
var yyhl1029 bool = l >= 0
|
|
for yyj1029 := 0; ; yyj1029++ {
|
|
if yyhl1029 {
|
|
if yyj1029 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1029Slc = r.DecodeBytes(yys1029Slc, true, true)
|
|
yys1029 := string(yys1029Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1029 {
|
|
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, yys1029)
|
|
} // end switch yys1029
|
|
} // end for yyj1029
|
|
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 yyj1038 int
|
|
var yyb1038 bool
|
|
var yyhl1038 bool = l >= 0
|
|
if x.Handler.Exec == nil {
|
|
x.Handler.Exec = new(ExecAction)
|
|
}
|
|
yyj1038++
|
|
if yyhl1038 {
|
|
yyb1038 = yyj1038 > l
|
|
} else {
|
|
yyb1038 = r.CheckBreak()
|
|
}
|
|
if yyb1038 {
|
|
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)
|
|
}
|
|
yyj1038++
|
|
if yyhl1038 {
|
|
yyb1038 = yyj1038 > l
|
|
} else {
|
|
yyb1038 = r.CheckBreak()
|
|
}
|
|
if yyb1038 {
|
|
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)
|
|
}
|
|
yyj1038++
|
|
if yyhl1038 {
|
|
yyb1038 = yyj1038 > l
|
|
} else {
|
|
yyb1038 = r.CheckBreak()
|
|
}
|
|
if yyb1038 {
|
|
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)
|
|
}
|
|
yyj1038++
|
|
if yyhl1038 {
|
|
yyb1038 = yyj1038 > l
|
|
} else {
|
|
yyb1038 = r.CheckBreak()
|
|
}
|
|
if yyb1038 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.InitialDelaySeconds = 0
|
|
} else {
|
|
x.InitialDelaySeconds = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
yyj1038++
|
|
if yyhl1038 {
|
|
yyb1038 = yyj1038 > l
|
|
} else {
|
|
yyb1038 = r.CheckBreak()
|
|
}
|
|
if yyb1038 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.TimeoutSeconds = 0
|
|
} else {
|
|
x.TimeoutSeconds = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
yyj1038++
|
|
if yyhl1038 {
|
|
yyb1038 = yyj1038 > l
|
|
} else {
|
|
yyb1038 = r.CheckBreak()
|
|
}
|
|
if yyb1038 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.PeriodSeconds = 0
|
|
} else {
|
|
x.PeriodSeconds = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
yyj1038++
|
|
if yyhl1038 {
|
|
yyb1038 = yyj1038 > l
|
|
} else {
|
|
yyb1038 = r.CheckBreak()
|
|
}
|
|
if yyb1038 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.SuccessThreshold = 0
|
|
} else {
|
|
x.SuccessThreshold = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
yyj1038++
|
|
if yyhl1038 {
|
|
yyb1038 = yyj1038 > l
|
|
} else {
|
|
yyb1038 = r.CheckBreak()
|
|
}
|
|
if yyb1038 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.FailureThreshold = 0
|
|
} else {
|
|
x.FailureThreshold = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
for {
|
|
yyj1038++
|
|
if yyhl1038 {
|
|
yyb1038 = yyj1038 > l
|
|
} else {
|
|
yyb1038 = r.CheckBreak()
|
|
}
|
|
if yyb1038 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1038-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x PullPolicy) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym1047 := z.EncBinary()
|
|
_ = yym1047
|
|
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
|
|
yym1048 := z.DecBinary()
|
|
_ = yym1048
|
|
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
|
|
yym1049 := z.EncBinary()
|
|
_ = yym1049
|
|
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
|
|
yym1050 := z.DecBinary()
|
|
_ = yym1050
|
|
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 {
|
|
yym1051 := z.EncBinary()
|
|
_ = yym1051
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1052 := !z.EncBinary()
|
|
yy2arr1052 := z.EncBasicHandle().StructToArray
|
|
var yyq1052 [2]bool
|
|
_, _, _ = yysep1052, yyq1052, yy2arr1052
|
|
const yyr1052 bool = false
|
|
yyq1052[0] = len(x.Add) != 0
|
|
yyq1052[1] = len(x.Drop) != 0
|
|
var yynn1052 int
|
|
if yyr1052 || yy2arr1052 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn1052 = 0
|
|
for _, b := range yyq1052 {
|
|
if b {
|
|
yynn1052++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1052)
|
|
yynn1052 = 0
|
|
}
|
|
if yyr1052 || yy2arr1052 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1052[0] {
|
|
if x.Add == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1054 := z.EncBinary()
|
|
_ = yym1054
|
|
if false {
|
|
} else {
|
|
h.encSliceCapability(([]Capability)(x.Add), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1052[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("add"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Add == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1055 := z.EncBinary()
|
|
_ = yym1055
|
|
if false {
|
|
} else {
|
|
h.encSliceCapability(([]Capability)(x.Add), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1052 || yy2arr1052 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1052[1] {
|
|
if x.Drop == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1057 := z.EncBinary()
|
|
_ = yym1057
|
|
if false {
|
|
} else {
|
|
h.encSliceCapability(([]Capability)(x.Drop), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1052[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("drop"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Drop == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1058 := z.EncBinary()
|
|
_ = yym1058
|
|
if false {
|
|
} else {
|
|
h.encSliceCapability(([]Capability)(x.Drop), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1052 || yy2arr1052 {
|
|
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
|
|
yym1059 := z.DecBinary()
|
|
_ = yym1059
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1060 := r.ContainerType()
|
|
if yyct1060 == codecSelferValueTypeMap1234 {
|
|
yyl1060 := r.ReadMapStart()
|
|
if yyl1060 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1060, d)
|
|
}
|
|
} else if yyct1060 == codecSelferValueTypeArray1234 {
|
|
yyl1060 := r.ReadArrayStart()
|
|
if yyl1060 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1060, 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 yys1061Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1061Slc
|
|
var yyhl1061 bool = l >= 0
|
|
for yyj1061 := 0; ; yyj1061++ {
|
|
if yyhl1061 {
|
|
if yyj1061 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1061Slc = r.DecodeBytes(yys1061Slc, true, true)
|
|
yys1061 := string(yys1061Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1061 {
|
|
case "add":
|
|
if r.TryDecodeAsNil() {
|
|
x.Add = nil
|
|
} else {
|
|
yyv1062 := &x.Add
|
|
yym1063 := z.DecBinary()
|
|
_ = yym1063
|
|
if false {
|
|
} else {
|
|
h.decSliceCapability((*[]Capability)(yyv1062), d)
|
|
}
|
|
}
|
|
case "drop":
|
|
if r.TryDecodeAsNil() {
|
|
x.Drop = nil
|
|
} else {
|
|
yyv1064 := &x.Drop
|
|
yym1065 := z.DecBinary()
|
|
_ = yym1065
|
|
if false {
|
|
} else {
|
|
h.decSliceCapability((*[]Capability)(yyv1064), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1061)
|
|
} // end switch yys1061
|
|
} // end for yyj1061
|
|
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 yyj1066 int
|
|
var yyb1066 bool
|
|
var yyhl1066 bool = l >= 0
|
|
yyj1066++
|
|
if yyhl1066 {
|
|
yyb1066 = yyj1066 > l
|
|
} else {
|
|
yyb1066 = r.CheckBreak()
|
|
}
|
|
if yyb1066 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Add = nil
|
|
} else {
|
|
yyv1067 := &x.Add
|
|
yym1068 := z.DecBinary()
|
|
_ = yym1068
|
|
if false {
|
|
} else {
|
|
h.decSliceCapability((*[]Capability)(yyv1067), d)
|
|
}
|
|
}
|
|
yyj1066++
|
|
if yyhl1066 {
|
|
yyb1066 = yyj1066 > l
|
|
} else {
|
|
yyb1066 = r.CheckBreak()
|
|
}
|
|
if yyb1066 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Drop = nil
|
|
} else {
|
|
yyv1069 := &x.Drop
|
|
yym1070 := z.DecBinary()
|
|
_ = yym1070
|
|
if false {
|
|
} else {
|
|
h.decSliceCapability((*[]Capability)(yyv1069), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj1066++
|
|
if yyhl1066 {
|
|
yyb1066 = yyj1066 > l
|
|
} else {
|
|
yyb1066 = r.CheckBreak()
|
|
}
|
|
if yyb1066 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1066-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 {
|
|
yym1071 := z.EncBinary()
|
|
_ = yym1071
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1072 := !z.EncBinary()
|
|
yy2arr1072 := z.EncBasicHandle().StructToArray
|
|
var yyq1072 [2]bool
|
|
_, _, _ = yysep1072, yyq1072, yy2arr1072
|
|
const yyr1072 bool = false
|
|
yyq1072[0] = len(x.Limits) != 0
|
|
yyq1072[1] = len(x.Requests) != 0
|
|
var yynn1072 int
|
|
if yyr1072 || yy2arr1072 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn1072 = 0
|
|
for _, b := range yyq1072 {
|
|
if b {
|
|
yynn1072++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1072)
|
|
yynn1072 = 0
|
|
}
|
|
if yyr1072 || yy2arr1072 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1072[0] {
|
|
if x.Limits == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Limits.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1072[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 yyr1072 || yy2arr1072 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1072[1] {
|
|
if x.Requests == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Requests.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1072[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 yyr1072 || yy2arr1072 {
|
|
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
|
|
yym1075 := z.DecBinary()
|
|
_ = yym1075
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1076 := r.ContainerType()
|
|
if yyct1076 == codecSelferValueTypeMap1234 {
|
|
yyl1076 := r.ReadMapStart()
|
|
if yyl1076 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1076, d)
|
|
}
|
|
} else if yyct1076 == codecSelferValueTypeArray1234 {
|
|
yyl1076 := r.ReadArrayStart()
|
|
if yyl1076 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1076, 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 yys1077Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1077Slc
|
|
var yyhl1077 bool = l >= 0
|
|
for yyj1077 := 0; ; yyj1077++ {
|
|
if yyhl1077 {
|
|
if yyj1077 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1077Slc = r.DecodeBytes(yys1077Slc, true, true)
|
|
yys1077 := string(yys1077Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1077 {
|
|
case "limits":
|
|
if r.TryDecodeAsNil() {
|
|
x.Limits = nil
|
|
} else {
|
|
yyv1078 := &x.Limits
|
|
yyv1078.CodecDecodeSelf(d)
|
|
}
|
|
case "requests":
|
|
if r.TryDecodeAsNil() {
|
|
x.Requests = nil
|
|
} else {
|
|
yyv1079 := &x.Requests
|
|
yyv1079.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1077)
|
|
} // end switch yys1077
|
|
} // end for yyj1077
|
|
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 yyj1080 int
|
|
var yyb1080 bool
|
|
var yyhl1080 bool = l >= 0
|
|
yyj1080++
|
|
if yyhl1080 {
|
|
yyb1080 = yyj1080 > l
|
|
} else {
|
|
yyb1080 = r.CheckBreak()
|
|
}
|
|
if yyb1080 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Limits = nil
|
|
} else {
|
|
yyv1081 := &x.Limits
|
|
yyv1081.CodecDecodeSelf(d)
|
|
}
|
|
yyj1080++
|
|
if yyhl1080 {
|
|
yyb1080 = yyj1080 > l
|
|
} else {
|
|
yyb1080 = r.CheckBreak()
|
|
}
|
|
if yyb1080 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Requests = nil
|
|
} else {
|
|
yyv1082 := &x.Requests
|
|
yyv1082.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj1080++
|
|
if yyhl1080 {
|
|
yyb1080 = yyj1080 > l
|
|
} else {
|
|
yyb1080 = r.CheckBreak()
|
|
}
|
|
if yyb1080 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1080-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 {
|
|
yym1083 := z.EncBinary()
|
|
_ = yym1083
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1084 := !z.EncBinary()
|
|
yy2arr1084 := z.EncBasicHandle().StructToArray
|
|
var yyq1084 [18]bool
|
|
_, _, _ = yysep1084, yyq1084, yy2arr1084
|
|
const yyr1084 bool = false
|
|
yyq1084[2] = len(x.Command) != 0
|
|
yyq1084[3] = len(x.Args) != 0
|
|
yyq1084[4] = x.WorkingDir != ""
|
|
yyq1084[5] = len(x.Ports) != 0
|
|
yyq1084[6] = len(x.Env) != 0
|
|
yyq1084[7] = true
|
|
yyq1084[8] = len(x.VolumeMounts) != 0
|
|
yyq1084[9] = x.LivenessProbe != nil
|
|
yyq1084[10] = x.ReadinessProbe != nil
|
|
yyq1084[11] = x.Lifecycle != nil
|
|
yyq1084[12] = x.TerminationMessagePath != ""
|
|
yyq1084[14] = x.SecurityContext != nil
|
|
yyq1084[15] = x.Stdin != false
|
|
yyq1084[16] = x.StdinOnce != false
|
|
yyq1084[17] = x.TTY != false
|
|
var yynn1084 int
|
|
if yyr1084 || yy2arr1084 {
|
|
r.EncodeArrayStart(18)
|
|
} else {
|
|
yynn1084 = 3
|
|
for _, b := range yyq1084 {
|
|
if b {
|
|
yynn1084++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1084)
|
|
yynn1084 = 0
|
|
}
|
|
if yyr1084 || yy2arr1084 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1086 := z.EncBinary()
|
|
_ = yym1086
|
|
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)
|
|
yym1087 := z.EncBinary()
|
|
_ = yym1087
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
}
|
|
if yyr1084 || yy2arr1084 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1089 := z.EncBinary()
|
|
_ = yym1089
|
|
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)
|
|
yym1090 := z.EncBinary()
|
|
_ = yym1090
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Image))
|
|
}
|
|
}
|
|
if yyr1084 || yy2arr1084 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1084[2] {
|
|
if x.Command == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1092 := z.EncBinary()
|
|
_ = yym1092
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.Command, false, e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1084[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("command"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Command == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1093 := z.EncBinary()
|
|
_ = yym1093
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.Command, false, e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1084 || yy2arr1084 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1084[3] {
|
|
if x.Args == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1095 := z.EncBinary()
|
|
_ = yym1095
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.Args, false, e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1084[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("args"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Args == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1096 := z.EncBinary()
|
|
_ = yym1096
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.Args, false, e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1084 || yy2arr1084 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1084[4] {
|
|
yym1098 := z.EncBinary()
|
|
_ = yym1098
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1084[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("workingDir"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1099 := z.EncBinary()
|
|
_ = yym1099
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir))
|
|
}
|
|
}
|
|
}
|
|
if yyr1084 || yy2arr1084 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1084[5] {
|
|
if x.Ports == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1101 := z.EncBinary()
|
|
_ = yym1101
|
|
if false {
|
|
} else {
|
|
h.encSliceContainerPort(([]ContainerPort)(x.Ports), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1084[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("ports"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Ports == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1102 := z.EncBinary()
|
|
_ = yym1102
|
|
if false {
|
|
} else {
|
|
h.encSliceContainerPort(([]ContainerPort)(x.Ports), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1084 || yy2arr1084 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1084[6] {
|
|
if x.Env == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1104 := z.EncBinary()
|
|
_ = yym1104
|
|
if false {
|
|
} else {
|
|
h.encSliceEnvVar(([]EnvVar)(x.Env), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1084[6] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("env"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Env == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1105 := z.EncBinary()
|
|
_ = yym1105
|
|
if false {
|
|
} else {
|
|
h.encSliceEnvVar(([]EnvVar)(x.Env), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1084 || yy2arr1084 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1084[7] {
|
|
yy1107 := &x.Resources
|
|
yy1107.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1084[7] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("resources"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1108 := &x.Resources
|
|
yy1108.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1084 || yy2arr1084 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1084[8] {
|
|
if x.VolumeMounts == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1110 := z.EncBinary()
|
|
_ = yym1110
|
|
if false {
|
|
} else {
|
|
h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1084[8] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("volumeMounts"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.VolumeMounts == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1111 := z.EncBinary()
|
|
_ = yym1111
|
|
if false {
|
|
} else {
|
|
h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1084 || yy2arr1084 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1084[9] {
|
|
if x.LivenessProbe == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.LivenessProbe.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1084[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 yyr1084 || yy2arr1084 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1084[10] {
|
|
if x.ReadinessProbe == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.ReadinessProbe.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1084[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 yyr1084 || yy2arr1084 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1084[11] {
|
|
if x.Lifecycle == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Lifecycle.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1084[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 yyr1084 || yy2arr1084 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1084[12] {
|
|
yym1116 := z.EncBinary()
|
|
_ = yym1116
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1084[12] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("terminationMessagePath"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1117 := z.EncBinary()
|
|
_ = yym1117
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath))
|
|
}
|
|
}
|
|
}
|
|
if yyr1084 || yy2arr1084 {
|
|
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 yyr1084 || yy2arr1084 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1084[14] {
|
|
if x.SecurityContext == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.SecurityContext.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1084[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 yyr1084 || yy2arr1084 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1084[15] {
|
|
yym1121 := z.EncBinary()
|
|
_ = yym1121
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Stdin))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq1084[15] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("stdin"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1122 := z.EncBinary()
|
|
_ = yym1122
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Stdin))
|
|
}
|
|
}
|
|
}
|
|
if yyr1084 || yy2arr1084 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1084[16] {
|
|
yym1124 := z.EncBinary()
|
|
_ = yym1124
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.StdinOnce))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq1084[16] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("stdinOnce"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1125 := z.EncBinary()
|
|
_ = yym1125
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.StdinOnce))
|
|
}
|
|
}
|
|
}
|
|
if yyr1084 || yy2arr1084 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1084[17] {
|
|
yym1127 := z.EncBinary()
|
|
_ = yym1127
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.TTY))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq1084[17] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("tty"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1128 := z.EncBinary()
|
|
_ = yym1128
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.TTY))
|
|
}
|
|
}
|
|
}
|
|
if yyr1084 || yy2arr1084 {
|
|
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
|
|
yym1129 := z.DecBinary()
|
|
_ = yym1129
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1130 := r.ContainerType()
|
|
if yyct1130 == codecSelferValueTypeMap1234 {
|
|
yyl1130 := r.ReadMapStart()
|
|
if yyl1130 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1130, d)
|
|
}
|
|
} else if yyct1130 == codecSelferValueTypeArray1234 {
|
|
yyl1130 := r.ReadArrayStart()
|
|
if yyl1130 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1130, 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 yys1131Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1131Slc
|
|
var yyhl1131 bool = l >= 0
|
|
for yyj1131 := 0; ; yyj1131++ {
|
|
if yyhl1131 {
|
|
if yyj1131 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1131Slc = r.DecodeBytes(yys1131Slc, true, true)
|
|
yys1131 := string(yys1131Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1131 {
|
|
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 {
|
|
yyv1134 := &x.Command
|
|
yym1135 := z.DecBinary()
|
|
_ = yym1135
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv1134, false, d)
|
|
}
|
|
}
|
|
case "args":
|
|
if r.TryDecodeAsNil() {
|
|
x.Args = nil
|
|
} else {
|
|
yyv1136 := &x.Args
|
|
yym1137 := z.DecBinary()
|
|
_ = yym1137
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv1136, false, d)
|
|
}
|
|
}
|
|
case "workingDir":
|
|
if r.TryDecodeAsNil() {
|
|
x.WorkingDir = ""
|
|
} else {
|
|
x.WorkingDir = string(r.DecodeString())
|
|
}
|
|
case "ports":
|
|
if r.TryDecodeAsNil() {
|
|
x.Ports = nil
|
|
} else {
|
|
yyv1139 := &x.Ports
|
|
yym1140 := z.DecBinary()
|
|
_ = yym1140
|
|
if false {
|
|
} else {
|
|
h.decSliceContainerPort((*[]ContainerPort)(yyv1139), d)
|
|
}
|
|
}
|
|
case "env":
|
|
if r.TryDecodeAsNil() {
|
|
x.Env = nil
|
|
} else {
|
|
yyv1141 := &x.Env
|
|
yym1142 := z.DecBinary()
|
|
_ = yym1142
|
|
if false {
|
|
} else {
|
|
h.decSliceEnvVar((*[]EnvVar)(yyv1141), d)
|
|
}
|
|
}
|
|
case "resources":
|
|
if r.TryDecodeAsNil() {
|
|
x.Resources = ResourceRequirements{}
|
|
} else {
|
|
yyv1143 := &x.Resources
|
|
yyv1143.CodecDecodeSelf(d)
|
|
}
|
|
case "volumeMounts":
|
|
if r.TryDecodeAsNil() {
|
|
x.VolumeMounts = nil
|
|
} else {
|
|
yyv1144 := &x.VolumeMounts
|
|
yym1145 := z.DecBinary()
|
|
_ = yym1145
|
|
if false {
|
|
} else {
|
|
h.decSliceVolumeMount((*[]VolumeMount)(yyv1144), 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, yys1131)
|
|
} // end switch yys1131
|
|
} // end for yyj1131
|
|
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 yyj1155 int
|
|
var yyb1155 bool
|
|
var yyhl1155 bool = l >= 0
|
|
yyj1155++
|
|
if yyhl1155 {
|
|
yyb1155 = yyj1155 > l
|
|
} else {
|
|
yyb1155 = r.CheckBreak()
|
|
}
|
|
if yyb1155 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
yyj1155++
|
|
if yyhl1155 {
|
|
yyb1155 = yyj1155 > l
|
|
} else {
|
|
yyb1155 = r.CheckBreak()
|
|
}
|
|
if yyb1155 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Image = ""
|
|
} else {
|
|
x.Image = string(r.DecodeString())
|
|
}
|
|
yyj1155++
|
|
if yyhl1155 {
|
|
yyb1155 = yyj1155 > l
|
|
} else {
|
|
yyb1155 = r.CheckBreak()
|
|
}
|
|
if yyb1155 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Command = nil
|
|
} else {
|
|
yyv1158 := &x.Command
|
|
yym1159 := z.DecBinary()
|
|
_ = yym1159
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv1158, false, d)
|
|
}
|
|
}
|
|
yyj1155++
|
|
if yyhl1155 {
|
|
yyb1155 = yyj1155 > l
|
|
} else {
|
|
yyb1155 = r.CheckBreak()
|
|
}
|
|
if yyb1155 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Args = nil
|
|
} else {
|
|
yyv1160 := &x.Args
|
|
yym1161 := z.DecBinary()
|
|
_ = yym1161
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv1160, false, d)
|
|
}
|
|
}
|
|
yyj1155++
|
|
if yyhl1155 {
|
|
yyb1155 = yyj1155 > l
|
|
} else {
|
|
yyb1155 = r.CheckBreak()
|
|
}
|
|
if yyb1155 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.WorkingDir = ""
|
|
} else {
|
|
x.WorkingDir = string(r.DecodeString())
|
|
}
|
|
yyj1155++
|
|
if yyhl1155 {
|
|
yyb1155 = yyj1155 > l
|
|
} else {
|
|
yyb1155 = r.CheckBreak()
|
|
}
|
|
if yyb1155 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Ports = nil
|
|
} else {
|
|
yyv1163 := &x.Ports
|
|
yym1164 := z.DecBinary()
|
|
_ = yym1164
|
|
if false {
|
|
} else {
|
|
h.decSliceContainerPort((*[]ContainerPort)(yyv1163), d)
|
|
}
|
|
}
|
|
yyj1155++
|
|
if yyhl1155 {
|
|
yyb1155 = yyj1155 > l
|
|
} else {
|
|
yyb1155 = r.CheckBreak()
|
|
}
|
|
if yyb1155 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Env = nil
|
|
} else {
|
|
yyv1165 := &x.Env
|
|
yym1166 := z.DecBinary()
|
|
_ = yym1166
|
|
if false {
|
|
} else {
|
|
h.decSliceEnvVar((*[]EnvVar)(yyv1165), d)
|
|
}
|
|
}
|
|
yyj1155++
|
|
if yyhl1155 {
|
|
yyb1155 = yyj1155 > l
|
|
} else {
|
|
yyb1155 = r.CheckBreak()
|
|
}
|
|
if yyb1155 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Resources = ResourceRequirements{}
|
|
} else {
|
|
yyv1167 := &x.Resources
|
|
yyv1167.CodecDecodeSelf(d)
|
|
}
|
|
yyj1155++
|
|
if yyhl1155 {
|
|
yyb1155 = yyj1155 > l
|
|
} else {
|
|
yyb1155 = r.CheckBreak()
|
|
}
|
|
if yyb1155 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.VolumeMounts = nil
|
|
} else {
|
|
yyv1168 := &x.VolumeMounts
|
|
yym1169 := z.DecBinary()
|
|
_ = yym1169
|
|
if false {
|
|
} else {
|
|
h.decSliceVolumeMount((*[]VolumeMount)(yyv1168), d)
|
|
}
|
|
}
|
|
yyj1155++
|
|
if yyhl1155 {
|
|
yyb1155 = yyj1155 > l
|
|
} else {
|
|
yyb1155 = r.CheckBreak()
|
|
}
|
|
if yyb1155 {
|
|
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)
|
|
}
|
|
yyj1155++
|
|
if yyhl1155 {
|
|
yyb1155 = yyj1155 > l
|
|
} else {
|
|
yyb1155 = r.CheckBreak()
|
|
}
|
|
if yyb1155 {
|
|
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)
|
|
}
|
|
yyj1155++
|
|
if yyhl1155 {
|
|
yyb1155 = yyj1155 > l
|
|
} else {
|
|
yyb1155 = r.CheckBreak()
|
|
}
|
|
if yyb1155 {
|
|
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)
|
|
}
|
|
yyj1155++
|
|
if yyhl1155 {
|
|
yyb1155 = yyj1155 > l
|
|
} else {
|
|
yyb1155 = r.CheckBreak()
|
|
}
|
|
if yyb1155 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.TerminationMessagePath = ""
|
|
} else {
|
|
x.TerminationMessagePath = string(r.DecodeString())
|
|
}
|
|
yyj1155++
|
|
if yyhl1155 {
|
|
yyb1155 = yyj1155 > l
|
|
} else {
|
|
yyb1155 = r.CheckBreak()
|
|
}
|
|
if yyb1155 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ImagePullPolicy = ""
|
|
} else {
|
|
x.ImagePullPolicy = PullPolicy(r.DecodeString())
|
|
}
|
|
yyj1155++
|
|
if yyhl1155 {
|
|
yyb1155 = yyj1155 > l
|
|
} else {
|
|
yyb1155 = r.CheckBreak()
|
|
}
|
|
if yyb1155 {
|
|
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)
|
|
}
|
|
yyj1155++
|
|
if yyhl1155 {
|
|
yyb1155 = yyj1155 > l
|
|
} else {
|
|
yyb1155 = r.CheckBreak()
|
|
}
|
|
if yyb1155 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Stdin = false
|
|
} else {
|
|
x.Stdin = bool(r.DecodeBool())
|
|
}
|
|
yyj1155++
|
|
if yyhl1155 {
|
|
yyb1155 = yyj1155 > l
|
|
} else {
|
|
yyb1155 = r.CheckBreak()
|
|
}
|
|
if yyb1155 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.StdinOnce = false
|
|
} else {
|
|
x.StdinOnce = bool(r.DecodeBool())
|
|
}
|
|
yyj1155++
|
|
if yyhl1155 {
|
|
yyb1155 = yyj1155 > l
|
|
} else {
|
|
yyb1155 = r.CheckBreak()
|
|
}
|
|
if yyb1155 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.TTY = false
|
|
} else {
|
|
x.TTY = bool(r.DecodeBool())
|
|
}
|
|
for {
|
|
yyj1155++
|
|
if yyhl1155 {
|
|
yyb1155 = yyj1155 > l
|
|
} else {
|
|
yyb1155 = r.CheckBreak()
|
|
}
|
|
if yyb1155 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1155-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 {
|
|
yym1179 := z.EncBinary()
|
|
_ = yym1179
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1180 := !z.EncBinary()
|
|
yy2arr1180 := z.EncBasicHandle().StructToArray
|
|
var yyq1180 [3]bool
|
|
_, _, _ = yysep1180, yyq1180, yy2arr1180
|
|
const yyr1180 bool = false
|
|
yyq1180[0] = x.Exec != nil
|
|
yyq1180[1] = x.HTTPGet != nil
|
|
yyq1180[2] = x.TCPSocket != nil
|
|
var yynn1180 int
|
|
if yyr1180 || yy2arr1180 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn1180 = 0
|
|
for _, b := range yyq1180 {
|
|
if b {
|
|
yynn1180++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1180)
|
|
yynn1180 = 0
|
|
}
|
|
if yyr1180 || yy2arr1180 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1180[0] {
|
|
if x.Exec == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Exec.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1180[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 yyr1180 || yy2arr1180 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1180[1] {
|
|
if x.HTTPGet == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.HTTPGet.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1180[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 yyr1180 || yy2arr1180 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1180[2] {
|
|
if x.TCPSocket == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.TCPSocket.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1180[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 yyr1180 || yy2arr1180 {
|
|
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
|
|
yym1184 := z.DecBinary()
|
|
_ = yym1184
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1185 := r.ContainerType()
|
|
if yyct1185 == codecSelferValueTypeMap1234 {
|
|
yyl1185 := r.ReadMapStart()
|
|
if yyl1185 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1185, d)
|
|
}
|
|
} else if yyct1185 == codecSelferValueTypeArray1234 {
|
|
yyl1185 := r.ReadArrayStart()
|
|
if yyl1185 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1185, 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 yys1186Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1186Slc
|
|
var yyhl1186 bool = l >= 0
|
|
for yyj1186 := 0; ; yyj1186++ {
|
|
if yyhl1186 {
|
|
if yyj1186 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1186Slc = r.DecodeBytes(yys1186Slc, true, true)
|
|
yys1186 := string(yys1186Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1186 {
|
|
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, yys1186)
|
|
} // end switch yys1186
|
|
} // end for yyj1186
|
|
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 yyj1190 int
|
|
var yyb1190 bool
|
|
var yyhl1190 bool = l >= 0
|
|
yyj1190++
|
|
if yyhl1190 {
|
|
yyb1190 = yyj1190 > l
|
|
} else {
|
|
yyb1190 = r.CheckBreak()
|
|
}
|
|
if yyb1190 {
|
|
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)
|
|
}
|
|
yyj1190++
|
|
if yyhl1190 {
|
|
yyb1190 = yyj1190 > l
|
|
} else {
|
|
yyb1190 = r.CheckBreak()
|
|
}
|
|
if yyb1190 {
|
|
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)
|
|
}
|
|
yyj1190++
|
|
if yyhl1190 {
|
|
yyb1190 = yyj1190 > l
|
|
} else {
|
|
yyb1190 = r.CheckBreak()
|
|
}
|
|
if yyb1190 {
|
|
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 {
|
|
yyj1190++
|
|
if yyhl1190 {
|
|
yyb1190 = yyj1190 > l
|
|
} else {
|
|
yyb1190 = r.CheckBreak()
|
|
}
|
|
if yyb1190 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1190-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 {
|
|
yym1194 := z.EncBinary()
|
|
_ = yym1194
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1195 := !z.EncBinary()
|
|
yy2arr1195 := z.EncBasicHandle().StructToArray
|
|
var yyq1195 [2]bool
|
|
_, _, _ = yysep1195, yyq1195, yy2arr1195
|
|
const yyr1195 bool = false
|
|
yyq1195[0] = x.PostStart != nil
|
|
yyq1195[1] = x.PreStop != nil
|
|
var yynn1195 int
|
|
if yyr1195 || yy2arr1195 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn1195 = 0
|
|
for _, b := range yyq1195 {
|
|
if b {
|
|
yynn1195++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1195)
|
|
yynn1195 = 0
|
|
}
|
|
if yyr1195 || yy2arr1195 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1195[0] {
|
|
if x.PostStart == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.PostStart.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1195[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 yyr1195 || yy2arr1195 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1195[1] {
|
|
if x.PreStop == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.PreStop.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1195[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 yyr1195 || yy2arr1195 {
|
|
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
|
|
yym1198 := z.DecBinary()
|
|
_ = yym1198
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1199 := r.ContainerType()
|
|
if yyct1199 == codecSelferValueTypeMap1234 {
|
|
yyl1199 := r.ReadMapStart()
|
|
if yyl1199 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1199, d)
|
|
}
|
|
} else if yyct1199 == codecSelferValueTypeArray1234 {
|
|
yyl1199 := r.ReadArrayStart()
|
|
if yyl1199 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1199, 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 yys1200Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1200Slc
|
|
var yyhl1200 bool = l >= 0
|
|
for yyj1200 := 0; ; yyj1200++ {
|
|
if yyhl1200 {
|
|
if yyj1200 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1200Slc = r.DecodeBytes(yys1200Slc, true, true)
|
|
yys1200 := string(yys1200Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1200 {
|
|
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, yys1200)
|
|
} // end switch yys1200
|
|
} // end for yyj1200
|
|
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 yyj1203 int
|
|
var yyb1203 bool
|
|
var yyhl1203 bool = l >= 0
|
|
yyj1203++
|
|
if yyhl1203 {
|
|
yyb1203 = yyj1203 > l
|
|
} else {
|
|
yyb1203 = r.CheckBreak()
|
|
}
|
|
if yyb1203 {
|
|
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)
|
|
}
|
|
yyj1203++
|
|
if yyhl1203 {
|
|
yyb1203 = yyj1203 > l
|
|
} else {
|
|
yyb1203 = r.CheckBreak()
|
|
}
|
|
if yyb1203 {
|
|
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 {
|
|
yyj1203++
|
|
if yyhl1203 {
|
|
yyb1203 = yyj1203 > l
|
|
} else {
|
|
yyb1203 = r.CheckBreak()
|
|
}
|
|
if yyb1203 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1203-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x ConditionStatus) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym1206 := z.EncBinary()
|
|
_ = yym1206
|
|
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
|
|
yym1207 := z.DecBinary()
|
|
_ = yym1207
|
|
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 {
|
|
yym1208 := z.EncBinary()
|
|
_ = yym1208
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1209 := !z.EncBinary()
|
|
yy2arr1209 := z.EncBasicHandle().StructToArray
|
|
var yyq1209 [2]bool
|
|
_, _, _ = yysep1209, yyq1209, yy2arr1209
|
|
const yyr1209 bool = false
|
|
yyq1209[0] = x.Reason != ""
|
|
yyq1209[1] = x.Message != ""
|
|
var yynn1209 int
|
|
if yyr1209 || yy2arr1209 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn1209 = 0
|
|
for _, b := range yyq1209 {
|
|
if b {
|
|
yynn1209++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1209)
|
|
yynn1209 = 0
|
|
}
|
|
if yyr1209 || yy2arr1209 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1209[0] {
|
|
yym1211 := z.EncBinary()
|
|
_ = yym1211
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1209[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("reason"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1212 := z.EncBinary()
|
|
_ = yym1212
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
|
|
}
|
|
}
|
|
}
|
|
if yyr1209 || yy2arr1209 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1209[1] {
|
|
yym1214 := z.EncBinary()
|
|
_ = yym1214
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1209[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("message"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1215 := z.EncBinary()
|
|
_ = yym1215
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
}
|
|
}
|
|
if yyr1209 || yy2arr1209 {
|
|
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
|
|
yym1216 := z.DecBinary()
|
|
_ = yym1216
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1217 := r.ContainerType()
|
|
if yyct1217 == codecSelferValueTypeMap1234 {
|
|
yyl1217 := r.ReadMapStart()
|
|
if yyl1217 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1217, d)
|
|
}
|
|
} else if yyct1217 == codecSelferValueTypeArray1234 {
|
|
yyl1217 := r.ReadArrayStart()
|
|
if yyl1217 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1217, 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 yys1218Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1218Slc
|
|
var yyhl1218 bool = l >= 0
|
|
for yyj1218 := 0; ; yyj1218++ {
|
|
if yyhl1218 {
|
|
if yyj1218 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1218Slc = r.DecodeBytes(yys1218Slc, true, true)
|
|
yys1218 := string(yys1218Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1218 {
|
|
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, yys1218)
|
|
} // end switch yys1218
|
|
} // end for yyj1218
|
|
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 yyj1221 int
|
|
var yyb1221 bool
|
|
var yyhl1221 bool = l >= 0
|
|
yyj1221++
|
|
if yyhl1221 {
|
|
yyb1221 = yyj1221 > l
|
|
} else {
|
|
yyb1221 = r.CheckBreak()
|
|
}
|
|
if yyb1221 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Reason = ""
|
|
} else {
|
|
x.Reason = string(r.DecodeString())
|
|
}
|
|
yyj1221++
|
|
if yyhl1221 {
|
|
yyb1221 = yyj1221 > l
|
|
} else {
|
|
yyb1221 = r.CheckBreak()
|
|
}
|
|
if yyb1221 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Message = ""
|
|
} else {
|
|
x.Message = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj1221++
|
|
if yyhl1221 {
|
|
yyb1221 = yyj1221 > l
|
|
} else {
|
|
yyb1221 = r.CheckBreak()
|
|
}
|
|
if yyb1221 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1221-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 {
|
|
yym1224 := z.EncBinary()
|
|
_ = yym1224
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1225 := !z.EncBinary()
|
|
yy2arr1225 := z.EncBasicHandle().StructToArray
|
|
var yyq1225 [1]bool
|
|
_, _, _ = yysep1225, yyq1225, yy2arr1225
|
|
const yyr1225 bool = false
|
|
yyq1225[0] = true
|
|
var yynn1225 int
|
|
if yyr1225 || yy2arr1225 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn1225 = 0
|
|
for _, b := range yyq1225 {
|
|
if b {
|
|
yynn1225++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1225)
|
|
yynn1225 = 0
|
|
}
|
|
if yyr1225 || yy2arr1225 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1225[0] {
|
|
yy1227 := &x.StartedAt
|
|
yym1228 := z.EncBinary()
|
|
_ = yym1228
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1227) {
|
|
} else if yym1228 {
|
|
z.EncBinaryMarshal(yy1227)
|
|
} else if !yym1228 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy1227)
|
|
} else {
|
|
z.EncFallback(yy1227)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1225[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("startedAt"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1229 := &x.StartedAt
|
|
yym1230 := z.EncBinary()
|
|
_ = yym1230
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1229) {
|
|
} else if yym1230 {
|
|
z.EncBinaryMarshal(yy1229)
|
|
} else if !yym1230 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy1229)
|
|
} else {
|
|
z.EncFallback(yy1229)
|
|
}
|
|
}
|
|
}
|
|
if yyr1225 || yy2arr1225 {
|
|
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
|
|
yym1231 := z.DecBinary()
|
|
_ = yym1231
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1232 := r.ContainerType()
|
|
if yyct1232 == codecSelferValueTypeMap1234 {
|
|
yyl1232 := r.ReadMapStart()
|
|
if yyl1232 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1232, d)
|
|
}
|
|
} else if yyct1232 == codecSelferValueTypeArray1234 {
|
|
yyl1232 := r.ReadArrayStart()
|
|
if yyl1232 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1232, 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 yys1233Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1233Slc
|
|
var yyhl1233 bool = l >= 0
|
|
for yyj1233 := 0; ; yyj1233++ {
|
|
if yyhl1233 {
|
|
if yyj1233 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1233Slc = r.DecodeBytes(yys1233Slc, true, true)
|
|
yys1233 := string(yys1233Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1233 {
|
|
case "startedAt":
|
|
if r.TryDecodeAsNil() {
|
|
x.StartedAt = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv1234 := &x.StartedAt
|
|
yym1235 := z.DecBinary()
|
|
_ = yym1235
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1234) {
|
|
} else if yym1235 {
|
|
z.DecBinaryUnmarshal(yyv1234)
|
|
} else if !yym1235 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv1234)
|
|
} else {
|
|
z.DecFallback(yyv1234, false)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1233)
|
|
} // end switch yys1233
|
|
} // end for yyj1233
|
|
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 yyj1236 int
|
|
var yyb1236 bool
|
|
var yyhl1236 bool = l >= 0
|
|
yyj1236++
|
|
if yyhl1236 {
|
|
yyb1236 = yyj1236 > l
|
|
} else {
|
|
yyb1236 = r.CheckBreak()
|
|
}
|
|
if yyb1236 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.StartedAt = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv1237 := &x.StartedAt
|
|
yym1238 := z.DecBinary()
|
|
_ = yym1238
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1237) {
|
|
} else if yym1238 {
|
|
z.DecBinaryUnmarshal(yyv1237)
|
|
} else if !yym1238 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv1237)
|
|
} else {
|
|
z.DecFallback(yyv1237, false)
|
|
}
|
|
}
|
|
for {
|
|
yyj1236++
|
|
if yyhl1236 {
|
|
yyb1236 = yyj1236 > l
|
|
} else {
|
|
yyb1236 = r.CheckBreak()
|
|
}
|
|
if yyb1236 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1236-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 {
|
|
yym1239 := z.EncBinary()
|
|
_ = yym1239
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1240 := !z.EncBinary()
|
|
yy2arr1240 := z.EncBasicHandle().StructToArray
|
|
var yyq1240 [7]bool
|
|
_, _, _ = yysep1240, yyq1240, yy2arr1240
|
|
const yyr1240 bool = false
|
|
yyq1240[1] = x.Signal != 0
|
|
yyq1240[2] = x.Reason != ""
|
|
yyq1240[3] = x.Message != ""
|
|
yyq1240[4] = true
|
|
yyq1240[5] = true
|
|
yyq1240[6] = x.ContainerID != ""
|
|
var yynn1240 int
|
|
if yyr1240 || yy2arr1240 {
|
|
r.EncodeArrayStart(7)
|
|
} else {
|
|
yynn1240 = 1
|
|
for _, b := range yyq1240 {
|
|
if b {
|
|
yynn1240++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1240)
|
|
yynn1240 = 0
|
|
}
|
|
if yyr1240 || yy2arr1240 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1242 := z.EncBinary()
|
|
_ = yym1242
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.ExitCode))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("exitCode"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1243 := z.EncBinary()
|
|
_ = yym1243
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.ExitCode))
|
|
}
|
|
}
|
|
if yyr1240 || yy2arr1240 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1240[1] {
|
|
yym1245 := z.EncBinary()
|
|
_ = yym1245
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Signal))
|
|
}
|
|
} else {
|
|
r.EncodeInt(0)
|
|
}
|
|
} else {
|
|
if yyq1240[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("signal"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1246 := z.EncBinary()
|
|
_ = yym1246
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Signal))
|
|
}
|
|
}
|
|
}
|
|
if yyr1240 || yy2arr1240 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1240[2] {
|
|
yym1248 := z.EncBinary()
|
|
_ = yym1248
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1240[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("reason"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1249 := z.EncBinary()
|
|
_ = yym1249
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
|
|
}
|
|
}
|
|
}
|
|
if yyr1240 || yy2arr1240 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1240[3] {
|
|
yym1251 := z.EncBinary()
|
|
_ = yym1251
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1240[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("message"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1252 := z.EncBinary()
|
|
_ = yym1252
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
}
|
|
}
|
|
if yyr1240 || yy2arr1240 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1240[4] {
|
|
yy1254 := &x.StartedAt
|
|
yym1255 := z.EncBinary()
|
|
_ = yym1255
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1254) {
|
|
} else if yym1255 {
|
|
z.EncBinaryMarshal(yy1254)
|
|
} else if !yym1255 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy1254)
|
|
} else {
|
|
z.EncFallback(yy1254)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1240[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("startedAt"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1256 := &x.StartedAt
|
|
yym1257 := z.EncBinary()
|
|
_ = yym1257
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1256) {
|
|
} else if yym1257 {
|
|
z.EncBinaryMarshal(yy1256)
|
|
} else if !yym1257 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy1256)
|
|
} else {
|
|
z.EncFallback(yy1256)
|
|
}
|
|
}
|
|
}
|
|
if yyr1240 || yy2arr1240 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1240[5] {
|
|
yy1259 := &x.FinishedAt
|
|
yym1260 := z.EncBinary()
|
|
_ = yym1260
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1259) {
|
|
} else if yym1260 {
|
|
z.EncBinaryMarshal(yy1259)
|
|
} else if !yym1260 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy1259)
|
|
} else {
|
|
z.EncFallback(yy1259)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1240[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("finishedAt"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1261 := &x.FinishedAt
|
|
yym1262 := z.EncBinary()
|
|
_ = yym1262
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1261) {
|
|
} else if yym1262 {
|
|
z.EncBinaryMarshal(yy1261)
|
|
} else if !yym1262 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy1261)
|
|
} else {
|
|
z.EncFallback(yy1261)
|
|
}
|
|
}
|
|
}
|
|
if yyr1240 || yy2arr1240 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1240[6] {
|
|
yym1264 := z.EncBinary()
|
|
_ = yym1264
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1240[6] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("containerID"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1265 := z.EncBinary()
|
|
_ = yym1265
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID))
|
|
}
|
|
}
|
|
}
|
|
if yyr1240 || yy2arr1240 {
|
|
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
|
|
yym1266 := z.DecBinary()
|
|
_ = yym1266
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1267 := r.ContainerType()
|
|
if yyct1267 == codecSelferValueTypeMap1234 {
|
|
yyl1267 := r.ReadMapStart()
|
|
if yyl1267 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1267, d)
|
|
}
|
|
} else if yyct1267 == codecSelferValueTypeArray1234 {
|
|
yyl1267 := r.ReadArrayStart()
|
|
if yyl1267 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1267, 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 yys1268Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1268Slc
|
|
var yyhl1268 bool = l >= 0
|
|
for yyj1268 := 0; ; yyj1268++ {
|
|
if yyhl1268 {
|
|
if yyj1268 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1268Slc = r.DecodeBytes(yys1268Slc, true, true)
|
|
yys1268 := string(yys1268Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1268 {
|
|
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 {
|
|
yyv1273 := &x.StartedAt
|
|
yym1274 := z.DecBinary()
|
|
_ = yym1274
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1273) {
|
|
} else if yym1274 {
|
|
z.DecBinaryUnmarshal(yyv1273)
|
|
} else if !yym1274 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv1273)
|
|
} else {
|
|
z.DecFallback(yyv1273, false)
|
|
}
|
|
}
|
|
case "finishedAt":
|
|
if r.TryDecodeAsNil() {
|
|
x.FinishedAt = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv1275 := &x.FinishedAt
|
|
yym1276 := z.DecBinary()
|
|
_ = yym1276
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1275) {
|
|
} else if yym1276 {
|
|
z.DecBinaryUnmarshal(yyv1275)
|
|
} else if !yym1276 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv1275)
|
|
} else {
|
|
z.DecFallback(yyv1275, false)
|
|
}
|
|
}
|
|
case "containerID":
|
|
if r.TryDecodeAsNil() {
|
|
x.ContainerID = ""
|
|
} else {
|
|
x.ContainerID = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1268)
|
|
} // end switch yys1268
|
|
} // end for yyj1268
|
|
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 yyj1278 int
|
|
var yyb1278 bool
|
|
var yyhl1278 bool = l >= 0
|
|
yyj1278++
|
|
if yyhl1278 {
|
|
yyb1278 = yyj1278 > l
|
|
} else {
|
|
yyb1278 = r.CheckBreak()
|
|
}
|
|
if yyb1278 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ExitCode = 0
|
|
} else {
|
|
x.ExitCode = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
yyj1278++
|
|
if yyhl1278 {
|
|
yyb1278 = yyj1278 > l
|
|
} else {
|
|
yyb1278 = r.CheckBreak()
|
|
}
|
|
if yyb1278 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Signal = 0
|
|
} else {
|
|
x.Signal = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
yyj1278++
|
|
if yyhl1278 {
|
|
yyb1278 = yyj1278 > l
|
|
} else {
|
|
yyb1278 = r.CheckBreak()
|
|
}
|
|
if yyb1278 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Reason = ""
|
|
} else {
|
|
x.Reason = string(r.DecodeString())
|
|
}
|
|
yyj1278++
|
|
if yyhl1278 {
|
|
yyb1278 = yyj1278 > l
|
|
} else {
|
|
yyb1278 = r.CheckBreak()
|
|
}
|
|
if yyb1278 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Message = ""
|
|
} else {
|
|
x.Message = string(r.DecodeString())
|
|
}
|
|
yyj1278++
|
|
if yyhl1278 {
|
|
yyb1278 = yyj1278 > l
|
|
} else {
|
|
yyb1278 = r.CheckBreak()
|
|
}
|
|
if yyb1278 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.StartedAt = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv1283 := &x.StartedAt
|
|
yym1284 := z.DecBinary()
|
|
_ = yym1284
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1283) {
|
|
} else if yym1284 {
|
|
z.DecBinaryUnmarshal(yyv1283)
|
|
} else if !yym1284 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv1283)
|
|
} else {
|
|
z.DecFallback(yyv1283, false)
|
|
}
|
|
}
|
|
yyj1278++
|
|
if yyhl1278 {
|
|
yyb1278 = yyj1278 > l
|
|
} else {
|
|
yyb1278 = r.CheckBreak()
|
|
}
|
|
if yyb1278 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.FinishedAt = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv1285 := &x.FinishedAt
|
|
yym1286 := z.DecBinary()
|
|
_ = yym1286
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1285) {
|
|
} else if yym1286 {
|
|
z.DecBinaryUnmarshal(yyv1285)
|
|
} else if !yym1286 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv1285)
|
|
} else {
|
|
z.DecFallback(yyv1285, false)
|
|
}
|
|
}
|
|
yyj1278++
|
|
if yyhl1278 {
|
|
yyb1278 = yyj1278 > l
|
|
} else {
|
|
yyb1278 = r.CheckBreak()
|
|
}
|
|
if yyb1278 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ContainerID = ""
|
|
} else {
|
|
x.ContainerID = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj1278++
|
|
if yyhl1278 {
|
|
yyb1278 = yyj1278 > l
|
|
} else {
|
|
yyb1278 = r.CheckBreak()
|
|
}
|
|
if yyb1278 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1278-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 {
|
|
yym1288 := z.EncBinary()
|
|
_ = yym1288
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1289 := !z.EncBinary()
|
|
yy2arr1289 := z.EncBasicHandle().StructToArray
|
|
var yyq1289 [3]bool
|
|
_, _, _ = yysep1289, yyq1289, yy2arr1289
|
|
const yyr1289 bool = false
|
|
yyq1289[0] = x.Waiting != nil
|
|
yyq1289[1] = x.Running != nil
|
|
yyq1289[2] = x.Terminated != nil
|
|
var yynn1289 int
|
|
if yyr1289 || yy2arr1289 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn1289 = 0
|
|
for _, b := range yyq1289 {
|
|
if b {
|
|
yynn1289++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1289)
|
|
yynn1289 = 0
|
|
}
|
|
if yyr1289 || yy2arr1289 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1289[0] {
|
|
if x.Waiting == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Waiting.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1289[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 yyr1289 || yy2arr1289 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1289[1] {
|
|
if x.Running == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Running.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1289[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 yyr1289 || yy2arr1289 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1289[2] {
|
|
if x.Terminated == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Terminated.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1289[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 yyr1289 || yy2arr1289 {
|
|
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
|
|
yym1293 := z.DecBinary()
|
|
_ = yym1293
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1294 := r.ContainerType()
|
|
if yyct1294 == codecSelferValueTypeMap1234 {
|
|
yyl1294 := r.ReadMapStart()
|
|
if yyl1294 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1294, d)
|
|
}
|
|
} else if yyct1294 == codecSelferValueTypeArray1234 {
|
|
yyl1294 := r.ReadArrayStart()
|
|
if yyl1294 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1294, 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 yys1295Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1295Slc
|
|
var yyhl1295 bool = l >= 0
|
|
for yyj1295 := 0; ; yyj1295++ {
|
|
if yyhl1295 {
|
|
if yyj1295 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1295Slc = r.DecodeBytes(yys1295Slc, true, true)
|
|
yys1295 := string(yys1295Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1295 {
|
|
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, yys1295)
|
|
} // end switch yys1295
|
|
} // end for yyj1295
|
|
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 yyj1299 int
|
|
var yyb1299 bool
|
|
var yyhl1299 bool = l >= 0
|
|
yyj1299++
|
|
if yyhl1299 {
|
|
yyb1299 = yyj1299 > l
|
|
} else {
|
|
yyb1299 = r.CheckBreak()
|
|
}
|
|
if yyb1299 {
|
|
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)
|
|
}
|
|
yyj1299++
|
|
if yyhl1299 {
|
|
yyb1299 = yyj1299 > l
|
|
} else {
|
|
yyb1299 = r.CheckBreak()
|
|
}
|
|
if yyb1299 {
|
|
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)
|
|
}
|
|
yyj1299++
|
|
if yyhl1299 {
|
|
yyb1299 = yyj1299 > l
|
|
} else {
|
|
yyb1299 = r.CheckBreak()
|
|
}
|
|
if yyb1299 {
|
|
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 {
|
|
yyj1299++
|
|
if yyhl1299 {
|
|
yyb1299 = yyj1299 > l
|
|
} else {
|
|
yyb1299 = r.CheckBreak()
|
|
}
|
|
if yyb1299 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1299-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 {
|
|
yym1303 := z.EncBinary()
|
|
_ = yym1303
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1304 := !z.EncBinary()
|
|
yy2arr1304 := z.EncBasicHandle().StructToArray
|
|
var yyq1304 [8]bool
|
|
_, _, _ = yysep1304, yyq1304, yy2arr1304
|
|
const yyr1304 bool = false
|
|
yyq1304[1] = true
|
|
yyq1304[2] = true
|
|
yyq1304[7] = x.ContainerID != ""
|
|
var yynn1304 int
|
|
if yyr1304 || yy2arr1304 {
|
|
r.EncodeArrayStart(8)
|
|
} else {
|
|
yynn1304 = 5
|
|
for _, b := range yyq1304 {
|
|
if b {
|
|
yynn1304++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1304)
|
|
yynn1304 = 0
|
|
}
|
|
if yyr1304 || yy2arr1304 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1306 := z.EncBinary()
|
|
_ = yym1306
|
|
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)
|
|
yym1307 := z.EncBinary()
|
|
_ = yym1307
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
}
|
|
if yyr1304 || yy2arr1304 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1304[1] {
|
|
yy1309 := &x.State
|
|
yy1309.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1304[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("state"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1310 := &x.State
|
|
yy1310.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1304 || yy2arr1304 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1304[2] {
|
|
yy1312 := &x.LastTerminationState
|
|
yy1312.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1304[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("lastState"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1313 := &x.LastTerminationState
|
|
yy1313.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1304 || yy2arr1304 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1315 := z.EncBinary()
|
|
_ = yym1315
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Ready))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("ready"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1316 := z.EncBinary()
|
|
_ = yym1316
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Ready))
|
|
}
|
|
}
|
|
if yyr1304 || yy2arr1304 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1318 := z.EncBinary()
|
|
_ = yym1318
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.RestartCount))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("restartCount"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1319 := z.EncBinary()
|
|
_ = yym1319
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.RestartCount))
|
|
}
|
|
}
|
|
if yyr1304 || yy2arr1304 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1321 := z.EncBinary()
|
|
_ = yym1321
|
|
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)
|
|
yym1322 := z.EncBinary()
|
|
_ = yym1322
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Image))
|
|
}
|
|
}
|
|
if yyr1304 || yy2arr1304 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1324 := z.EncBinary()
|
|
_ = yym1324
|
|
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)
|
|
yym1325 := z.EncBinary()
|
|
_ = yym1325
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ImageID))
|
|
}
|
|
}
|
|
if yyr1304 || yy2arr1304 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1304[7] {
|
|
yym1327 := z.EncBinary()
|
|
_ = yym1327
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1304[7] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("containerID"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1328 := z.EncBinary()
|
|
_ = yym1328
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID))
|
|
}
|
|
}
|
|
}
|
|
if yyr1304 || yy2arr1304 {
|
|
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
|
|
yym1329 := z.DecBinary()
|
|
_ = yym1329
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1330 := r.ContainerType()
|
|
if yyct1330 == codecSelferValueTypeMap1234 {
|
|
yyl1330 := r.ReadMapStart()
|
|
if yyl1330 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1330, d)
|
|
}
|
|
} else if yyct1330 == codecSelferValueTypeArray1234 {
|
|
yyl1330 := r.ReadArrayStart()
|
|
if yyl1330 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1330, 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 yys1331Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1331Slc
|
|
var yyhl1331 bool = l >= 0
|
|
for yyj1331 := 0; ; yyj1331++ {
|
|
if yyhl1331 {
|
|
if yyj1331 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1331Slc = r.DecodeBytes(yys1331Slc, true, true)
|
|
yys1331 := string(yys1331Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1331 {
|
|
case "name":
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
case "state":
|
|
if r.TryDecodeAsNil() {
|
|
x.State = ContainerState{}
|
|
} else {
|
|
yyv1333 := &x.State
|
|
yyv1333.CodecDecodeSelf(d)
|
|
}
|
|
case "lastState":
|
|
if r.TryDecodeAsNil() {
|
|
x.LastTerminationState = ContainerState{}
|
|
} else {
|
|
yyv1334 := &x.LastTerminationState
|
|
yyv1334.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, yys1331)
|
|
} // end switch yys1331
|
|
} // end for yyj1331
|
|
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 yyj1340 int
|
|
var yyb1340 bool
|
|
var yyhl1340 bool = l >= 0
|
|
yyj1340++
|
|
if yyhl1340 {
|
|
yyb1340 = yyj1340 > l
|
|
} else {
|
|
yyb1340 = r.CheckBreak()
|
|
}
|
|
if yyb1340 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
yyj1340++
|
|
if yyhl1340 {
|
|
yyb1340 = yyj1340 > l
|
|
} else {
|
|
yyb1340 = r.CheckBreak()
|
|
}
|
|
if yyb1340 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.State = ContainerState{}
|
|
} else {
|
|
yyv1342 := &x.State
|
|
yyv1342.CodecDecodeSelf(d)
|
|
}
|
|
yyj1340++
|
|
if yyhl1340 {
|
|
yyb1340 = yyj1340 > l
|
|
} else {
|
|
yyb1340 = r.CheckBreak()
|
|
}
|
|
if yyb1340 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.LastTerminationState = ContainerState{}
|
|
} else {
|
|
yyv1343 := &x.LastTerminationState
|
|
yyv1343.CodecDecodeSelf(d)
|
|
}
|
|
yyj1340++
|
|
if yyhl1340 {
|
|
yyb1340 = yyj1340 > l
|
|
} else {
|
|
yyb1340 = r.CheckBreak()
|
|
}
|
|
if yyb1340 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Ready = false
|
|
} else {
|
|
x.Ready = bool(r.DecodeBool())
|
|
}
|
|
yyj1340++
|
|
if yyhl1340 {
|
|
yyb1340 = yyj1340 > l
|
|
} else {
|
|
yyb1340 = r.CheckBreak()
|
|
}
|
|
if yyb1340 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.RestartCount = 0
|
|
} else {
|
|
x.RestartCount = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
yyj1340++
|
|
if yyhl1340 {
|
|
yyb1340 = yyj1340 > l
|
|
} else {
|
|
yyb1340 = r.CheckBreak()
|
|
}
|
|
if yyb1340 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Image = ""
|
|
} else {
|
|
x.Image = string(r.DecodeString())
|
|
}
|
|
yyj1340++
|
|
if yyhl1340 {
|
|
yyb1340 = yyj1340 > l
|
|
} else {
|
|
yyb1340 = r.CheckBreak()
|
|
}
|
|
if yyb1340 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ImageID = ""
|
|
} else {
|
|
x.ImageID = string(r.DecodeString())
|
|
}
|
|
yyj1340++
|
|
if yyhl1340 {
|
|
yyb1340 = yyj1340 > l
|
|
} else {
|
|
yyb1340 = r.CheckBreak()
|
|
}
|
|
if yyb1340 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ContainerID = ""
|
|
} else {
|
|
x.ContainerID = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj1340++
|
|
if yyhl1340 {
|
|
yyb1340 = yyj1340 > l
|
|
} else {
|
|
yyb1340 = r.CheckBreak()
|
|
}
|
|
if yyb1340 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1340-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x PodPhase) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym1349 := z.EncBinary()
|
|
_ = yym1349
|
|
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
|
|
yym1350 := z.DecBinary()
|
|
_ = yym1350
|
|
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
|
|
yym1351 := z.EncBinary()
|
|
_ = yym1351
|
|
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
|
|
yym1352 := z.DecBinary()
|
|
_ = yym1352
|
|
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 {
|
|
yym1353 := z.EncBinary()
|
|
_ = yym1353
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1354 := !z.EncBinary()
|
|
yy2arr1354 := z.EncBasicHandle().StructToArray
|
|
var yyq1354 [6]bool
|
|
_, _, _ = yysep1354, yyq1354, yy2arr1354
|
|
const yyr1354 bool = false
|
|
yyq1354[2] = true
|
|
yyq1354[3] = true
|
|
yyq1354[4] = x.Reason != ""
|
|
yyq1354[5] = x.Message != ""
|
|
var yynn1354 int
|
|
if yyr1354 || yy2arr1354 {
|
|
r.EncodeArrayStart(6)
|
|
} else {
|
|
yynn1354 = 2
|
|
for _, b := range yyq1354 {
|
|
if b {
|
|
yynn1354++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1354)
|
|
yynn1354 = 0
|
|
}
|
|
if yyr1354 || yy2arr1354 {
|
|
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 yyr1354 || yy2arr1354 {
|
|
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 yyr1354 || yy2arr1354 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1354[2] {
|
|
yy1358 := &x.LastProbeTime
|
|
yym1359 := z.EncBinary()
|
|
_ = yym1359
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1358) {
|
|
} else if yym1359 {
|
|
z.EncBinaryMarshal(yy1358)
|
|
} else if !yym1359 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy1358)
|
|
} else {
|
|
z.EncFallback(yy1358)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1354[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("lastProbeTime"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1360 := &x.LastProbeTime
|
|
yym1361 := z.EncBinary()
|
|
_ = yym1361
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1360) {
|
|
} else if yym1361 {
|
|
z.EncBinaryMarshal(yy1360)
|
|
} else if !yym1361 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy1360)
|
|
} else {
|
|
z.EncFallback(yy1360)
|
|
}
|
|
}
|
|
}
|
|
if yyr1354 || yy2arr1354 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1354[3] {
|
|
yy1363 := &x.LastTransitionTime
|
|
yym1364 := z.EncBinary()
|
|
_ = yym1364
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1363) {
|
|
} else if yym1364 {
|
|
z.EncBinaryMarshal(yy1363)
|
|
} else if !yym1364 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy1363)
|
|
} else {
|
|
z.EncFallback(yy1363)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1354[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1365 := &x.LastTransitionTime
|
|
yym1366 := z.EncBinary()
|
|
_ = yym1366
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1365) {
|
|
} else if yym1366 {
|
|
z.EncBinaryMarshal(yy1365)
|
|
} else if !yym1366 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy1365)
|
|
} else {
|
|
z.EncFallback(yy1365)
|
|
}
|
|
}
|
|
}
|
|
if yyr1354 || yy2arr1354 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1354[4] {
|
|
yym1368 := z.EncBinary()
|
|
_ = yym1368
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1354[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("reason"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1369 := z.EncBinary()
|
|
_ = yym1369
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
|
|
}
|
|
}
|
|
}
|
|
if yyr1354 || yy2arr1354 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1354[5] {
|
|
yym1371 := z.EncBinary()
|
|
_ = yym1371
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1354[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("message"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1372 := z.EncBinary()
|
|
_ = yym1372
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
}
|
|
}
|
|
if yyr1354 || yy2arr1354 {
|
|
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
|
|
yym1373 := z.DecBinary()
|
|
_ = yym1373
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1374 := r.ContainerType()
|
|
if yyct1374 == codecSelferValueTypeMap1234 {
|
|
yyl1374 := r.ReadMapStart()
|
|
if yyl1374 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1374, d)
|
|
}
|
|
} else if yyct1374 == codecSelferValueTypeArray1234 {
|
|
yyl1374 := r.ReadArrayStart()
|
|
if yyl1374 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1374, 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 yys1375Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1375Slc
|
|
var yyhl1375 bool = l >= 0
|
|
for yyj1375 := 0; ; yyj1375++ {
|
|
if yyhl1375 {
|
|
if yyj1375 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1375Slc = r.DecodeBytes(yys1375Slc, true, true)
|
|
yys1375 := string(yys1375Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1375 {
|
|
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 {
|
|
yyv1378 := &x.LastProbeTime
|
|
yym1379 := z.DecBinary()
|
|
_ = yym1379
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1378) {
|
|
} else if yym1379 {
|
|
z.DecBinaryUnmarshal(yyv1378)
|
|
} else if !yym1379 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv1378)
|
|
} else {
|
|
z.DecFallback(yyv1378, false)
|
|
}
|
|
}
|
|
case "lastTransitionTime":
|
|
if r.TryDecodeAsNil() {
|
|
x.LastTransitionTime = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv1380 := &x.LastTransitionTime
|
|
yym1381 := z.DecBinary()
|
|
_ = yym1381
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1380) {
|
|
} else if yym1381 {
|
|
z.DecBinaryUnmarshal(yyv1380)
|
|
} else if !yym1381 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv1380)
|
|
} else {
|
|
z.DecFallback(yyv1380, 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, yys1375)
|
|
} // end switch yys1375
|
|
} // end for yyj1375
|
|
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 yyj1384 int
|
|
var yyb1384 bool
|
|
var yyhl1384 bool = l >= 0
|
|
yyj1384++
|
|
if yyhl1384 {
|
|
yyb1384 = yyj1384 > l
|
|
} else {
|
|
yyb1384 = r.CheckBreak()
|
|
}
|
|
if yyb1384 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Type = ""
|
|
} else {
|
|
x.Type = PodConditionType(r.DecodeString())
|
|
}
|
|
yyj1384++
|
|
if yyhl1384 {
|
|
yyb1384 = yyj1384 > l
|
|
} else {
|
|
yyb1384 = r.CheckBreak()
|
|
}
|
|
if yyb1384 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = ""
|
|
} else {
|
|
x.Status = ConditionStatus(r.DecodeString())
|
|
}
|
|
yyj1384++
|
|
if yyhl1384 {
|
|
yyb1384 = yyj1384 > l
|
|
} else {
|
|
yyb1384 = r.CheckBreak()
|
|
}
|
|
if yyb1384 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.LastProbeTime = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv1387 := &x.LastProbeTime
|
|
yym1388 := z.DecBinary()
|
|
_ = yym1388
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1387) {
|
|
} else if yym1388 {
|
|
z.DecBinaryUnmarshal(yyv1387)
|
|
} else if !yym1388 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv1387)
|
|
} else {
|
|
z.DecFallback(yyv1387, false)
|
|
}
|
|
}
|
|
yyj1384++
|
|
if yyhl1384 {
|
|
yyb1384 = yyj1384 > l
|
|
} else {
|
|
yyb1384 = r.CheckBreak()
|
|
}
|
|
if yyb1384 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.LastTransitionTime = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv1389 := &x.LastTransitionTime
|
|
yym1390 := z.DecBinary()
|
|
_ = yym1390
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1389) {
|
|
} else if yym1390 {
|
|
z.DecBinaryUnmarshal(yyv1389)
|
|
} else if !yym1390 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv1389)
|
|
} else {
|
|
z.DecFallback(yyv1389, false)
|
|
}
|
|
}
|
|
yyj1384++
|
|
if yyhl1384 {
|
|
yyb1384 = yyj1384 > l
|
|
} else {
|
|
yyb1384 = r.CheckBreak()
|
|
}
|
|
if yyb1384 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Reason = ""
|
|
} else {
|
|
x.Reason = string(r.DecodeString())
|
|
}
|
|
yyj1384++
|
|
if yyhl1384 {
|
|
yyb1384 = yyj1384 > l
|
|
} else {
|
|
yyb1384 = r.CheckBreak()
|
|
}
|
|
if yyb1384 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Message = ""
|
|
} else {
|
|
x.Message = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj1384++
|
|
if yyhl1384 {
|
|
yyb1384 = yyj1384 > l
|
|
} else {
|
|
yyb1384 = r.CheckBreak()
|
|
}
|
|
if yyb1384 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1384-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x RestartPolicy) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym1393 := z.EncBinary()
|
|
_ = yym1393
|
|
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
|
|
yym1394 := z.DecBinary()
|
|
_ = yym1394
|
|
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 {
|
|
yym1395 := z.EncBinary()
|
|
_ = yym1395
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1396 := !z.EncBinary()
|
|
yy2arr1396 := z.EncBasicHandle().StructToArray
|
|
var yyq1396 [4]bool
|
|
_, _, _ = yysep1396, yyq1396, yy2arr1396
|
|
const yyr1396 bool = false
|
|
yyq1396[0] = x.Kind != ""
|
|
yyq1396[1] = x.APIVersion != ""
|
|
yyq1396[2] = true
|
|
var yynn1396 int
|
|
if yyr1396 || yy2arr1396 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn1396 = 1
|
|
for _, b := range yyq1396 {
|
|
if b {
|
|
yynn1396++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1396)
|
|
yynn1396 = 0
|
|
}
|
|
if yyr1396 || yy2arr1396 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1396[0] {
|
|
yym1398 := z.EncBinary()
|
|
_ = yym1398
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1396[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1399 := z.EncBinary()
|
|
_ = yym1399
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr1396 || yy2arr1396 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1396[1] {
|
|
yym1401 := z.EncBinary()
|
|
_ = yym1401
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1396[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1402 := z.EncBinary()
|
|
_ = yym1402
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr1396 || yy2arr1396 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1396[2] {
|
|
yy1404 := &x.ListMeta
|
|
yym1405 := z.EncBinary()
|
|
_ = yym1405
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1404) {
|
|
} else {
|
|
z.EncFallback(yy1404)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1396[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1406 := &x.ListMeta
|
|
yym1407 := z.EncBinary()
|
|
_ = yym1407
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1406) {
|
|
} else {
|
|
z.EncFallback(yy1406)
|
|
}
|
|
}
|
|
}
|
|
if yyr1396 || yy2arr1396 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1409 := z.EncBinary()
|
|
_ = yym1409
|
|
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 {
|
|
yym1410 := z.EncBinary()
|
|
_ = yym1410
|
|
if false {
|
|
} else {
|
|
h.encSlicePod(([]Pod)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1396 || yy2arr1396 {
|
|
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
|
|
yym1411 := z.DecBinary()
|
|
_ = yym1411
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1412 := r.ContainerType()
|
|
if yyct1412 == codecSelferValueTypeMap1234 {
|
|
yyl1412 := r.ReadMapStart()
|
|
if yyl1412 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1412, d)
|
|
}
|
|
} else if yyct1412 == codecSelferValueTypeArray1234 {
|
|
yyl1412 := r.ReadArrayStart()
|
|
if yyl1412 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1412, 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 yys1413Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1413Slc
|
|
var yyhl1413 bool = l >= 0
|
|
for yyj1413 := 0; ; yyj1413++ {
|
|
if yyhl1413 {
|
|
if yyj1413 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1413Slc = r.DecodeBytes(yys1413Slc, true, true)
|
|
yys1413 := string(yys1413Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1413 {
|
|
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 {
|
|
yyv1416 := &x.ListMeta
|
|
yym1417 := z.DecBinary()
|
|
_ = yym1417
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1416) {
|
|
} else {
|
|
z.DecFallback(yyv1416, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv1418 := &x.Items
|
|
yym1419 := z.DecBinary()
|
|
_ = yym1419
|
|
if false {
|
|
} else {
|
|
h.decSlicePod((*[]Pod)(yyv1418), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1413)
|
|
} // end switch yys1413
|
|
} // end for yyj1413
|
|
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 yyj1420 int
|
|
var yyb1420 bool
|
|
var yyhl1420 bool = l >= 0
|
|
yyj1420++
|
|
if yyhl1420 {
|
|
yyb1420 = yyj1420 > l
|
|
} else {
|
|
yyb1420 = r.CheckBreak()
|
|
}
|
|
if yyb1420 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj1420++
|
|
if yyhl1420 {
|
|
yyb1420 = yyj1420 > l
|
|
} else {
|
|
yyb1420 = r.CheckBreak()
|
|
}
|
|
if yyb1420 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj1420++
|
|
if yyhl1420 {
|
|
yyb1420 = yyj1420 > l
|
|
} else {
|
|
yyb1420 = r.CheckBreak()
|
|
}
|
|
if yyb1420 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv1423 := &x.ListMeta
|
|
yym1424 := z.DecBinary()
|
|
_ = yym1424
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1423) {
|
|
} else {
|
|
z.DecFallback(yyv1423, false)
|
|
}
|
|
}
|
|
yyj1420++
|
|
if yyhl1420 {
|
|
yyb1420 = yyj1420 > l
|
|
} else {
|
|
yyb1420 = r.CheckBreak()
|
|
}
|
|
if yyb1420 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv1425 := &x.Items
|
|
yym1426 := z.DecBinary()
|
|
_ = yym1426
|
|
if false {
|
|
} else {
|
|
h.decSlicePod((*[]Pod)(yyv1425), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj1420++
|
|
if yyhl1420 {
|
|
yyb1420 = yyj1420 > l
|
|
} else {
|
|
yyb1420 = r.CheckBreak()
|
|
}
|
|
if yyb1420 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1420-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x DNSPolicy) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym1427 := z.EncBinary()
|
|
_ = yym1427
|
|
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
|
|
yym1428 := z.DecBinary()
|
|
_ = yym1428
|
|
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 {
|
|
yym1429 := z.EncBinary()
|
|
_ = yym1429
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1430 := !z.EncBinary()
|
|
yy2arr1430 := z.EncBasicHandle().StructToArray
|
|
var yyq1430 [11]bool
|
|
_, _, _ = yysep1430, yyq1430, yy2arr1430
|
|
const yyr1430 bool = false
|
|
yyq1430[2] = x.RestartPolicy != ""
|
|
yyq1430[3] = x.TerminationGracePeriodSeconds != nil
|
|
yyq1430[4] = x.ActiveDeadlineSeconds != nil
|
|
yyq1430[5] = x.DNSPolicy != ""
|
|
yyq1430[6] = len(x.NodeSelector) != 0
|
|
yyq1430[8] = x.NodeName != ""
|
|
yyq1430[9] = x.SecurityContext != nil
|
|
yyq1430[10] = len(x.ImagePullSecrets) != 0
|
|
var yynn1430 int
|
|
if yyr1430 || yy2arr1430 {
|
|
r.EncodeArrayStart(11)
|
|
} else {
|
|
yynn1430 = 3
|
|
for _, b := range yyq1430 {
|
|
if b {
|
|
yynn1430++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1430)
|
|
yynn1430 = 0
|
|
}
|
|
if yyr1430 || yy2arr1430 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Volumes == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1432 := z.EncBinary()
|
|
_ = yym1432
|
|
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 {
|
|
yym1433 := z.EncBinary()
|
|
_ = yym1433
|
|
if false {
|
|
} else {
|
|
h.encSliceVolume(([]Volume)(x.Volumes), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1430 || yy2arr1430 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Containers == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1435 := z.EncBinary()
|
|
_ = yym1435
|
|
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 {
|
|
yym1436 := z.EncBinary()
|
|
_ = yym1436
|
|
if false {
|
|
} else {
|
|
h.encSliceContainer(([]Container)(x.Containers), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1430 || yy2arr1430 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1430[2] {
|
|
x.RestartPolicy.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1430[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("restartPolicy"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.RestartPolicy.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1430 || yy2arr1430 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1430[3] {
|
|
if x.TerminationGracePeriodSeconds == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy1439 := *x.TerminationGracePeriodSeconds
|
|
yym1440 := z.EncBinary()
|
|
_ = yym1440
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy1439))
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1430[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("terminationGracePeriodSeconds"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.TerminationGracePeriodSeconds == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy1441 := *x.TerminationGracePeriodSeconds
|
|
yym1442 := z.EncBinary()
|
|
_ = yym1442
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy1441))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1430 || yy2arr1430 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1430[4] {
|
|
if x.ActiveDeadlineSeconds == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy1444 := *x.ActiveDeadlineSeconds
|
|
yym1445 := z.EncBinary()
|
|
_ = yym1445
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy1444))
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1430[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("activeDeadlineSeconds"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.ActiveDeadlineSeconds == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy1446 := *x.ActiveDeadlineSeconds
|
|
yym1447 := z.EncBinary()
|
|
_ = yym1447
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy1446))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1430 || yy2arr1430 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1430[5] {
|
|
x.DNSPolicy.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1430[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("dnsPolicy"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.DNSPolicy.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1430 || yy2arr1430 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1430[6] {
|
|
if x.NodeSelector == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1450 := z.EncBinary()
|
|
_ = yym1450
|
|
if false {
|
|
} else {
|
|
z.F.EncMapStringStringV(x.NodeSelector, false, e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1430[6] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("nodeSelector"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.NodeSelector == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1451 := z.EncBinary()
|
|
_ = yym1451
|
|
if false {
|
|
} else {
|
|
z.F.EncMapStringStringV(x.NodeSelector, false, e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1430 || yy2arr1430 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1453 := z.EncBinary()
|
|
_ = yym1453
|
|
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)
|
|
yym1454 := z.EncBinary()
|
|
_ = yym1454
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountName))
|
|
}
|
|
}
|
|
if yyr1430 || yy2arr1430 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1430[8] {
|
|
yym1456 := z.EncBinary()
|
|
_ = yym1456
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.NodeName))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1430[8] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("nodeName"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1457 := z.EncBinary()
|
|
_ = yym1457
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.NodeName))
|
|
}
|
|
}
|
|
}
|
|
if yyr1430 || yy2arr1430 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1430[9] {
|
|
if x.SecurityContext == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.SecurityContext.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1430[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 yyr1430 || yy2arr1430 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1430[10] {
|
|
if x.ImagePullSecrets == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1460 := z.EncBinary()
|
|
_ = yym1460
|
|
if false {
|
|
} else {
|
|
h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1430[10] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.ImagePullSecrets == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1461 := z.EncBinary()
|
|
_ = yym1461
|
|
if false {
|
|
} else {
|
|
h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1430 || yy2arr1430 {
|
|
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
|
|
yym1462 := z.DecBinary()
|
|
_ = yym1462
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1463 := r.ContainerType()
|
|
if yyct1463 == codecSelferValueTypeMap1234 {
|
|
yyl1463 := r.ReadMapStart()
|
|
if yyl1463 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1463, d)
|
|
}
|
|
} else if yyct1463 == codecSelferValueTypeArray1234 {
|
|
yyl1463 := r.ReadArrayStart()
|
|
if yyl1463 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1463, 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 yys1464Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1464Slc
|
|
var yyhl1464 bool = l >= 0
|
|
for yyj1464 := 0; ; yyj1464++ {
|
|
if yyhl1464 {
|
|
if yyj1464 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1464Slc = r.DecodeBytes(yys1464Slc, true, true)
|
|
yys1464 := string(yys1464Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1464 {
|
|
case "volumes":
|
|
if r.TryDecodeAsNil() {
|
|
x.Volumes = nil
|
|
} else {
|
|
yyv1465 := &x.Volumes
|
|
yym1466 := z.DecBinary()
|
|
_ = yym1466
|
|
if false {
|
|
} else {
|
|
h.decSliceVolume((*[]Volume)(yyv1465), d)
|
|
}
|
|
}
|
|
case "containers":
|
|
if r.TryDecodeAsNil() {
|
|
x.Containers = nil
|
|
} else {
|
|
yyv1467 := &x.Containers
|
|
yym1468 := z.DecBinary()
|
|
_ = yym1468
|
|
if false {
|
|
} else {
|
|
h.decSliceContainer((*[]Container)(yyv1467), 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)
|
|
}
|
|
yym1471 := z.DecBinary()
|
|
_ = yym1471
|
|
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)
|
|
}
|
|
yym1473 := z.DecBinary()
|
|
_ = yym1473
|
|
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 {
|
|
yyv1475 := &x.NodeSelector
|
|
yym1476 := z.DecBinary()
|
|
_ = yym1476
|
|
if false {
|
|
} else {
|
|
z.F.DecMapStringStringX(yyv1475, 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 {
|
|
yyv1480 := &x.ImagePullSecrets
|
|
yym1481 := z.DecBinary()
|
|
_ = yym1481
|
|
if false {
|
|
} else {
|
|
h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv1480), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1464)
|
|
} // end switch yys1464
|
|
} // end for yyj1464
|
|
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 yyj1482 int
|
|
var yyb1482 bool
|
|
var yyhl1482 bool = l >= 0
|
|
yyj1482++
|
|
if yyhl1482 {
|
|
yyb1482 = yyj1482 > l
|
|
} else {
|
|
yyb1482 = r.CheckBreak()
|
|
}
|
|
if yyb1482 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Volumes = nil
|
|
} else {
|
|
yyv1483 := &x.Volumes
|
|
yym1484 := z.DecBinary()
|
|
_ = yym1484
|
|
if false {
|
|
} else {
|
|
h.decSliceVolume((*[]Volume)(yyv1483), d)
|
|
}
|
|
}
|
|
yyj1482++
|
|
if yyhl1482 {
|
|
yyb1482 = yyj1482 > l
|
|
} else {
|
|
yyb1482 = r.CheckBreak()
|
|
}
|
|
if yyb1482 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Containers = nil
|
|
} else {
|
|
yyv1485 := &x.Containers
|
|
yym1486 := z.DecBinary()
|
|
_ = yym1486
|
|
if false {
|
|
} else {
|
|
h.decSliceContainer((*[]Container)(yyv1485), d)
|
|
}
|
|
}
|
|
yyj1482++
|
|
if yyhl1482 {
|
|
yyb1482 = yyj1482 > l
|
|
} else {
|
|
yyb1482 = r.CheckBreak()
|
|
}
|
|
if yyb1482 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.RestartPolicy = ""
|
|
} else {
|
|
x.RestartPolicy = RestartPolicy(r.DecodeString())
|
|
}
|
|
yyj1482++
|
|
if yyhl1482 {
|
|
yyb1482 = yyj1482 > l
|
|
} else {
|
|
yyb1482 = r.CheckBreak()
|
|
}
|
|
if yyb1482 {
|
|
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)
|
|
}
|
|
yym1489 := z.DecBinary()
|
|
_ = yym1489
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.TerminationGracePeriodSeconds)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
yyj1482++
|
|
if yyhl1482 {
|
|
yyb1482 = yyj1482 > l
|
|
} else {
|
|
yyb1482 = r.CheckBreak()
|
|
}
|
|
if yyb1482 {
|
|
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)
|
|
}
|
|
yym1491 := z.DecBinary()
|
|
_ = yym1491
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
yyj1482++
|
|
if yyhl1482 {
|
|
yyb1482 = yyj1482 > l
|
|
} else {
|
|
yyb1482 = r.CheckBreak()
|
|
}
|
|
if yyb1482 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.DNSPolicy = ""
|
|
} else {
|
|
x.DNSPolicy = DNSPolicy(r.DecodeString())
|
|
}
|
|
yyj1482++
|
|
if yyhl1482 {
|
|
yyb1482 = yyj1482 > l
|
|
} else {
|
|
yyb1482 = r.CheckBreak()
|
|
}
|
|
if yyb1482 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.NodeSelector = nil
|
|
} else {
|
|
yyv1493 := &x.NodeSelector
|
|
yym1494 := z.DecBinary()
|
|
_ = yym1494
|
|
if false {
|
|
} else {
|
|
z.F.DecMapStringStringX(yyv1493, false, d)
|
|
}
|
|
}
|
|
yyj1482++
|
|
if yyhl1482 {
|
|
yyb1482 = yyj1482 > l
|
|
} else {
|
|
yyb1482 = r.CheckBreak()
|
|
}
|
|
if yyb1482 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ServiceAccountName = ""
|
|
} else {
|
|
x.ServiceAccountName = string(r.DecodeString())
|
|
}
|
|
yyj1482++
|
|
if yyhl1482 {
|
|
yyb1482 = yyj1482 > l
|
|
} else {
|
|
yyb1482 = r.CheckBreak()
|
|
}
|
|
if yyb1482 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.NodeName = ""
|
|
} else {
|
|
x.NodeName = string(r.DecodeString())
|
|
}
|
|
yyj1482++
|
|
if yyhl1482 {
|
|
yyb1482 = yyj1482 > l
|
|
} else {
|
|
yyb1482 = r.CheckBreak()
|
|
}
|
|
if yyb1482 {
|
|
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)
|
|
}
|
|
yyj1482++
|
|
if yyhl1482 {
|
|
yyb1482 = yyj1482 > l
|
|
} else {
|
|
yyb1482 = r.CheckBreak()
|
|
}
|
|
if yyb1482 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ImagePullSecrets = nil
|
|
} else {
|
|
yyv1498 := &x.ImagePullSecrets
|
|
yym1499 := z.DecBinary()
|
|
_ = yym1499
|
|
if false {
|
|
} else {
|
|
h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv1498), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj1482++
|
|
if yyhl1482 {
|
|
yyb1482 = yyj1482 > l
|
|
} else {
|
|
yyb1482 = r.CheckBreak()
|
|
}
|
|
if yyb1482 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1482-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 {
|
|
yym1500 := z.EncBinary()
|
|
_ = yym1500
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1501 := !z.EncBinary()
|
|
yy2arr1501 := z.EncBasicHandle().StructToArray
|
|
var yyq1501 [8]bool
|
|
_, _, _ = yysep1501, yyq1501, yy2arr1501
|
|
const yyr1501 bool = false
|
|
yyq1501[0] = x.HostNetwork != false
|
|
yyq1501[1] = x.HostPID != false
|
|
yyq1501[2] = x.HostIPC != false
|
|
yyq1501[3] = x.SELinuxOptions != nil
|
|
yyq1501[4] = x.RunAsUser != nil
|
|
yyq1501[5] = x.RunAsNonRoot != nil
|
|
yyq1501[6] = len(x.SupplementalGroups) != 0
|
|
yyq1501[7] = x.FSGroup != nil
|
|
var yynn1501 int
|
|
if yyr1501 || yy2arr1501 {
|
|
r.EncodeArrayStart(8)
|
|
} else {
|
|
yynn1501 = 0
|
|
for _, b := range yyq1501 {
|
|
if b {
|
|
yynn1501++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1501)
|
|
yynn1501 = 0
|
|
}
|
|
if yyr1501 || yy2arr1501 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1501[0] {
|
|
yym1503 := z.EncBinary()
|
|
_ = yym1503
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.HostNetwork))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq1501[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("hostNetwork"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1504 := z.EncBinary()
|
|
_ = yym1504
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.HostNetwork))
|
|
}
|
|
}
|
|
}
|
|
if yyr1501 || yy2arr1501 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1501[1] {
|
|
yym1506 := z.EncBinary()
|
|
_ = yym1506
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.HostPID))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq1501[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("hostPID"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1507 := z.EncBinary()
|
|
_ = yym1507
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.HostPID))
|
|
}
|
|
}
|
|
}
|
|
if yyr1501 || yy2arr1501 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1501[2] {
|
|
yym1509 := z.EncBinary()
|
|
_ = yym1509
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.HostIPC))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq1501[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("hostIPC"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1510 := z.EncBinary()
|
|
_ = yym1510
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.HostIPC))
|
|
}
|
|
}
|
|
}
|
|
if yyr1501 || yy2arr1501 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1501[3] {
|
|
if x.SELinuxOptions == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.SELinuxOptions.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1501[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 yyr1501 || yy2arr1501 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1501[4] {
|
|
if x.RunAsUser == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy1513 := *x.RunAsUser
|
|
yym1514 := z.EncBinary()
|
|
_ = yym1514
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy1513))
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1501[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("runAsUser"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.RunAsUser == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy1515 := *x.RunAsUser
|
|
yym1516 := z.EncBinary()
|
|
_ = yym1516
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy1515))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1501 || yy2arr1501 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1501[5] {
|
|
if x.RunAsNonRoot == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy1518 := *x.RunAsNonRoot
|
|
yym1519 := z.EncBinary()
|
|
_ = yym1519
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(yy1518))
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1501[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.RunAsNonRoot == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy1520 := *x.RunAsNonRoot
|
|
yym1521 := z.EncBinary()
|
|
_ = yym1521
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(yy1520))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1501 || yy2arr1501 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1501[6] {
|
|
if x.SupplementalGroups == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1523 := z.EncBinary()
|
|
_ = yym1523
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceInt64V(x.SupplementalGroups, false, e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1501[6] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("supplementalGroups"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.SupplementalGroups == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1524 := z.EncBinary()
|
|
_ = yym1524
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceInt64V(x.SupplementalGroups, false, e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1501 || yy2arr1501 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1501[7] {
|
|
if x.FSGroup == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy1526 := *x.FSGroup
|
|
yym1527 := z.EncBinary()
|
|
_ = yym1527
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy1526))
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1501[7] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("fsGroup"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.FSGroup == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy1528 := *x.FSGroup
|
|
yym1529 := z.EncBinary()
|
|
_ = yym1529
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy1528))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1501 || yy2arr1501 {
|
|
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
|
|
yym1530 := z.DecBinary()
|
|
_ = yym1530
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1531 := r.ContainerType()
|
|
if yyct1531 == codecSelferValueTypeMap1234 {
|
|
yyl1531 := r.ReadMapStart()
|
|
if yyl1531 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1531, d)
|
|
}
|
|
} else if yyct1531 == codecSelferValueTypeArray1234 {
|
|
yyl1531 := r.ReadArrayStart()
|
|
if yyl1531 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1531, 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 yys1532Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1532Slc
|
|
var yyhl1532 bool = l >= 0
|
|
for yyj1532 := 0; ; yyj1532++ {
|
|
if yyhl1532 {
|
|
if yyj1532 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1532Slc = r.DecodeBytes(yys1532Slc, true, true)
|
|
yys1532 := string(yys1532Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1532 {
|
|
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)
|
|
}
|
|
yym1538 := z.DecBinary()
|
|
_ = yym1538
|
|
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)
|
|
}
|
|
yym1540 := z.DecBinary()
|
|
_ = yym1540
|
|
if false {
|
|
} else {
|
|
*((*bool)(x.RunAsNonRoot)) = r.DecodeBool()
|
|
}
|
|
}
|
|
case "supplementalGroups":
|
|
if r.TryDecodeAsNil() {
|
|
x.SupplementalGroups = nil
|
|
} else {
|
|
yyv1541 := &x.SupplementalGroups
|
|
yym1542 := z.DecBinary()
|
|
_ = yym1542
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceInt64X(yyv1541, false, d)
|
|
}
|
|
}
|
|
case "fsGroup":
|
|
if r.TryDecodeAsNil() {
|
|
if x.FSGroup != nil {
|
|
x.FSGroup = nil
|
|
}
|
|
} else {
|
|
if x.FSGroup == nil {
|
|
x.FSGroup = new(int64)
|
|
}
|
|
yym1544 := z.DecBinary()
|
|
_ = yym1544
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.FSGroup)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1532)
|
|
} // end switch yys1532
|
|
} // end for yyj1532
|
|
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 yyj1545 int
|
|
var yyb1545 bool
|
|
var yyhl1545 bool = l >= 0
|
|
yyj1545++
|
|
if yyhl1545 {
|
|
yyb1545 = yyj1545 > l
|
|
} else {
|
|
yyb1545 = r.CheckBreak()
|
|
}
|
|
if yyb1545 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.HostNetwork = false
|
|
} else {
|
|
x.HostNetwork = bool(r.DecodeBool())
|
|
}
|
|
yyj1545++
|
|
if yyhl1545 {
|
|
yyb1545 = yyj1545 > l
|
|
} else {
|
|
yyb1545 = r.CheckBreak()
|
|
}
|
|
if yyb1545 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.HostPID = false
|
|
} else {
|
|
x.HostPID = bool(r.DecodeBool())
|
|
}
|
|
yyj1545++
|
|
if yyhl1545 {
|
|
yyb1545 = yyj1545 > l
|
|
} else {
|
|
yyb1545 = r.CheckBreak()
|
|
}
|
|
if yyb1545 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.HostIPC = false
|
|
} else {
|
|
x.HostIPC = bool(r.DecodeBool())
|
|
}
|
|
yyj1545++
|
|
if yyhl1545 {
|
|
yyb1545 = yyj1545 > l
|
|
} else {
|
|
yyb1545 = r.CheckBreak()
|
|
}
|
|
if yyb1545 {
|
|
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)
|
|
}
|
|
yyj1545++
|
|
if yyhl1545 {
|
|
yyb1545 = yyj1545 > l
|
|
} else {
|
|
yyb1545 = r.CheckBreak()
|
|
}
|
|
if yyb1545 {
|
|
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)
|
|
}
|
|
yym1551 := z.DecBinary()
|
|
_ = yym1551
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
yyj1545++
|
|
if yyhl1545 {
|
|
yyb1545 = yyj1545 > l
|
|
} else {
|
|
yyb1545 = r.CheckBreak()
|
|
}
|
|
if yyb1545 {
|
|
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)
|
|
}
|
|
yym1553 := z.DecBinary()
|
|
_ = yym1553
|
|
if false {
|
|
} else {
|
|
*((*bool)(x.RunAsNonRoot)) = r.DecodeBool()
|
|
}
|
|
}
|
|
yyj1545++
|
|
if yyhl1545 {
|
|
yyb1545 = yyj1545 > l
|
|
} else {
|
|
yyb1545 = r.CheckBreak()
|
|
}
|
|
if yyb1545 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.SupplementalGroups = nil
|
|
} else {
|
|
yyv1554 := &x.SupplementalGroups
|
|
yym1555 := z.DecBinary()
|
|
_ = yym1555
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceInt64X(yyv1554, false, d)
|
|
}
|
|
}
|
|
yyj1545++
|
|
if yyhl1545 {
|
|
yyb1545 = yyj1545 > l
|
|
} else {
|
|
yyb1545 = r.CheckBreak()
|
|
}
|
|
if yyb1545 {
|
|
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)
|
|
}
|
|
yym1557 := z.DecBinary()
|
|
_ = yym1557
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.FSGroup)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
for {
|
|
yyj1545++
|
|
if yyhl1545 {
|
|
yyb1545 = yyj1545 > l
|
|
} else {
|
|
yyb1545 = r.CheckBreak()
|
|
}
|
|
if yyb1545 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1545-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 {
|
|
yym1558 := z.EncBinary()
|
|
_ = yym1558
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1559 := !z.EncBinary()
|
|
yy2arr1559 := z.EncBasicHandle().StructToArray
|
|
var yyq1559 [8]bool
|
|
_, _, _ = yysep1559, yyq1559, yy2arr1559
|
|
const yyr1559 bool = false
|
|
yyq1559[0] = x.Phase != ""
|
|
yyq1559[1] = len(x.Conditions) != 0
|
|
yyq1559[2] = x.Message != ""
|
|
yyq1559[3] = x.Reason != ""
|
|
yyq1559[4] = x.HostIP != ""
|
|
yyq1559[5] = x.PodIP != ""
|
|
yyq1559[6] = x.StartTime != nil
|
|
yyq1559[7] = len(x.ContainerStatuses) != 0
|
|
var yynn1559 int
|
|
if yyr1559 || yy2arr1559 {
|
|
r.EncodeArrayStart(8)
|
|
} else {
|
|
yynn1559 = 0
|
|
for _, b := range yyq1559 {
|
|
if b {
|
|
yynn1559++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1559)
|
|
yynn1559 = 0
|
|
}
|
|
if yyr1559 || yy2arr1559 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1559[0] {
|
|
x.Phase.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1559[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("phase"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Phase.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1559 || yy2arr1559 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1559[1] {
|
|
if x.Conditions == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1562 := z.EncBinary()
|
|
_ = yym1562
|
|
if false {
|
|
} else {
|
|
h.encSlicePodCondition(([]PodCondition)(x.Conditions), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1559[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("conditions"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Conditions == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1563 := z.EncBinary()
|
|
_ = yym1563
|
|
if false {
|
|
} else {
|
|
h.encSlicePodCondition(([]PodCondition)(x.Conditions), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1559 || yy2arr1559 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1559[2] {
|
|
yym1565 := z.EncBinary()
|
|
_ = yym1565
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1559[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("message"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1566 := z.EncBinary()
|
|
_ = yym1566
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
}
|
|
}
|
|
if yyr1559 || yy2arr1559 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1559[3] {
|
|
yym1568 := z.EncBinary()
|
|
_ = yym1568
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1559[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("reason"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1569 := z.EncBinary()
|
|
_ = yym1569
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
|
|
}
|
|
}
|
|
}
|
|
if yyr1559 || yy2arr1559 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1559[4] {
|
|
yym1571 := z.EncBinary()
|
|
_ = yym1571
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.HostIP))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1559[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("hostIP"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1572 := z.EncBinary()
|
|
_ = yym1572
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.HostIP))
|
|
}
|
|
}
|
|
}
|
|
if yyr1559 || yy2arr1559 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1559[5] {
|
|
yym1574 := z.EncBinary()
|
|
_ = yym1574
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.PodIP))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1559[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("podIP"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1575 := z.EncBinary()
|
|
_ = yym1575
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.PodIP))
|
|
}
|
|
}
|
|
}
|
|
if yyr1559 || yy2arr1559 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1559[6] {
|
|
if x.StartTime == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1577 := z.EncBinary()
|
|
_ = yym1577
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x.StartTime) {
|
|
} else if yym1577 {
|
|
z.EncBinaryMarshal(x.StartTime)
|
|
} else if !yym1577 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(x.StartTime)
|
|
} else {
|
|
z.EncFallback(x.StartTime)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1559[6] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("startTime"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.StartTime == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1578 := z.EncBinary()
|
|
_ = yym1578
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x.StartTime) {
|
|
} else if yym1578 {
|
|
z.EncBinaryMarshal(x.StartTime)
|
|
} else if !yym1578 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(x.StartTime)
|
|
} else {
|
|
z.EncFallback(x.StartTime)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1559 || yy2arr1559 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1559[7] {
|
|
if x.ContainerStatuses == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1580 := z.EncBinary()
|
|
_ = yym1580
|
|
if false {
|
|
} else {
|
|
h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1559[7] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("containerStatuses"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.ContainerStatuses == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1581 := z.EncBinary()
|
|
_ = yym1581
|
|
if false {
|
|
} else {
|
|
h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1559 || yy2arr1559 {
|
|
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
|
|
yym1582 := z.DecBinary()
|
|
_ = yym1582
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1583 := r.ContainerType()
|
|
if yyct1583 == codecSelferValueTypeMap1234 {
|
|
yyl1583 := r.ReadMapStart()
|
|
if yyl1583 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1583, d)
|
|
}
|
|
} else if yyct1583 == codecSelferValueTypeArray1234 {
|
|
yyl1583 := r.ReadArrayStart()
|
|
if yyl1583 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1583, 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 yys1584Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1584Slc
|
|
var yyhl1584 bool = l >= 0
|
|
for yyj1584 := 0; ; yyj1584++ {
|
|
if yyhl1584 {
|
|
if yyj1584 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1584Slc = r.DecodeBytes(yys1584Slc, true, true)
|
|
yys1584 := string(yys1584Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1584 {
|
|
case "phase":
|
|
if r.TryDecodeAsNil() {
|
|
x.Phase = ""
|
|
} else {
|
|
x.Phase = PodPhase(r.DecodeString())
|
|
}
|
|
case "conditions":
|
|
if r.TryDecodeAsNil() {
|
|
x.Conditions = nil
|
|
} else {
|
|
yyv1586 := &x.Conditions
|
|
yym1587 := z.DecBinary()
|
|
_ = yym1587
|
|
if false {
|
|
} else {
|
|
h.decSlicePodCondition((*[]PodCondition)(yyv1586), 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)
|
|
}
|
|
yym1593 := z.DecBinary()
|
|
_ = yym1593
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x.StartTime) {
|
|
} else if yym1593 {
|
|
z.DecBinaryUnmarshal(x.StartTime)
|
|
} else if !yym1593 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(x.StartTime)
|
|
} else {
|
|
z.DecFallback(x.StartTime, false)
|
|
}
|
|
}
|
|
case "containerStatuses":
|
|
if r.TryDecodeAsNil() {
|
|
x.ContainerStatuses = nil
|
|
} else {
|
|
yyv1594 := &x.ContainerStatuses
|
|
yym1595 := z.DecBinary()
|
|
_ = yym1595
|
|
if false {
|
|
} else {
|
|
h.decSliceContainerStatus((*[]ContainerStatus)(yyv1594), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1584)
|
|
} // end switch yys1584
|
|
} // end for yyj1584
|
|
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 yyj1596 int
|
|
var yyb1596 bool
|
|
var yyhl1596 bool = l >= 0
|
|
yyj1596++
|
|
if yyhl1596 {
|
|
yyb1596 = yyj1596 > l
|
|
} else {
|
|
yyb1596 = r.CheckBreak()
|
|
}
|
|
if yyb1596 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Phase = ""
|
|
} else {
|
|
x.Phase = PodPhase(r.DecodeString())
|
|
}
|
|
yyj1596++
|
|
if yyhl1596 {
|
|
yyb1596 = yyj1596 > l
|
|
} else {
|
|
yyb1596 = r.CheckBreak()
|
|
}
|
|
if yyb1596 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Conditions = nil
|
|
} else {
|
|
yyv1598 := &x.Conditions
|
|
yym1599 := z.DecBinary()
|
|
_ = yym1599
|
|
if false {
|
|
} else {
|
|
h.decSlicePodCondition((*[]PodCondition)(yyv1598), d)
|
|
}
|
|
}
|
|
yyj1596++
|
|
if yyhl1596 {
|
|
yyb1596 = yyj1596 > l
|
|
} else {
|
|
yyb1596 = r.CheckBreak()
|
|
}
|
|
if yyb1596 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Message = ""
|
|
} else {
|
|
x.Message = string(r.DecodeString())
|
|
}
|
|
yyj1596++
|
|
if yyhl1596 {
|
|
yyb1596 = yyj1596 > l
|
|
} else {
|
|
yyb1596 = r.CheckBreak()
|
|
}
|
|
if yyb1596 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Reason = ""
|
|
} else {
|
|
x.Reason = string(r.DecodeString())
|
|
}
|
|
yyj1596++
|
|
if yyhl1596 {
|
|
yyb1596 = yyj1596 > l
|
|
} else {
|
|
yyb1596 = r.CheckBreak()
|
|
}
|
|
if yyb1596 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.HostIP = ""
|
|
} else {
|
|
x.HostIP = string(r.DecodeString())
|
|
}
|
|
yyj1596++
|
|
if yyhl1596 {
|
|
yyb1596 = yyj1596 > l
|
|
} else {
|
|
yyb1596 = r.CheckBreak()
|
|
}
|
|
if yyb1596 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.PodIP = ""
|
|
} else {
|
|
x.PodIP = string(r.DecodeString())
|
|
}
|
|
yyj1596++
|
|
if yyhl1596 {
|
|
yyb1596 = yyj1596 > l
|
|
} else {
|
|
yyb1596 = r.CheckBreak()
|
|
}
|
|
if yyb1596 {
|
|
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)
|
|
}
|
|
yym1605 := z.DecBinary()
|
|
_ = yym1605
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x.StartTime) {
|
|
} else if yym1605 {
|
|
z.DecBinaryUnmarshal(x.StartTime)
|
|
} else if !yym1605 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(x.StartTime)
|
|
} else {
|
|
z.DecFallback(x.StartTime, false)
|
|
}
|
|
}
|
|
yyj1596++
|
|
if yyhl1596 {
|
|
yyb1596 = yyj1596 > l
|
|
} else {
|
|
yyb1596 = r.CheckBreak()
|
|
}
|
|
if yyb1596 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ContainerStatuses = nil
|
|
} else {
|
|
yyv1606 := &x.ContainerStatuses
|
|
yym1607 := z.DecBinary()
|
|
_ = yym1607
|
|
if false {
|
|
} else {
|
|
h.decSliceContainerStatus((*[]ContainerStatus)(yyv1606), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj1596++
|
|
if yyhl1596 {
|
|
yyb1596 = yyj1596 > l
|
|
} else {
|
|
yyb1596 = r.CheckBreak()
|
|
}
|
|
if yyb1596 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1596-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 {
|
|
yym1608 := z.EncBinary()
|
|
_ = yym1608
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1609 := !z.EncBinary()
|
|
yy2arr1609 := z.EncBasicHandle().StructToArray
|
|
var yyq1609 [4]bool
|
|
_, _, _ = yysep1609, yyq1609, yy2arr1609
|
|
const yyr1609 bool = false
|
|
yyq1609[0] = x.Kind != ""
|
|
yyq1609[1] = x.APIVersion != ""
|
|
yyq1609[2] = true
|
|
yyq1609[3] = true
|
|
var yynn1609 int
|
|
if yyr1609 || yy2arr1609 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn1609 = 0
|
|
for _, b := range yyq1609 {
|
|
if b {
|
|
yynn1609++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1609)
|
|
yynn1609 = 0
|
|
}
|
|
if yyr1609 || yy2arr1609 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1609[0] {
|
|
yym1611 := z.EncBinary()
|
|
_ = yym1611
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1609[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1612 := z.EncBinary()
|
|
_ = yym1612
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr1609 || yy2arr1609 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1609[1] {
|
|
yym1614 := z.EncBinary()
|
|
_ = yym1614
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1609[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1615 := z.EncBinary()
|
|
_ = yym1615
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr1609 || yy2arr1609 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1609[2] {
|
|
yy1617 := &x.ObjectMeta
|
|
yy1617.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1609[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1618 := &x.ObjectMeta
|
|
yy1618.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1609 || yy2arr1609 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1609[3] {
|
|
yy1620 := &x.Status
|
|
yy1620.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1609[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("status"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1621 := &x.Status
|
|
yy1621.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1609 || yy2arr1609 {
|
|
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
|
|
yym1622 := z.DecBinary()
|
|
_ = yym1622
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1623 := r.ContainerType()
|
|
if yyct1623 == codecSelferValueTypeMap1234 {
|
|
yyl1623 := r.ReadMapStart()
|
|
if yyl1623 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1623, d)
|
|
}
|
|
} else if yyct1623 == codecSelferValueTypeArray1234 {
|
|
yyl1623 := r.ReadArrayStart()
|
|
if yyl1623 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1623, 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 yys1624Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1624Slc
|
|
var yyhl1624 bool = l >= 0
|
|
for yyj1624 := 0; ; yyj1624++ {
|
|
if yyhl1624 {
|
|
if yyj1624 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1624Slc = r.DecodeBytes(yys1624Slc, true, true)
|
|
yys1624 := string(yys1624Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1624 {
|
|
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 {
|
|
yyv1627 := &x.ObjectMeta
|
|
yyv1627.CodecDecodeSelf(d)
|
|
}
|
|
case "status":
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = PodStatus{}
|
|
} else {
|
|
yyv1628 := &x.Status
|
|
yyv1628.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1624)
|
|
} // end switch yys1624
|
|
} // end for yyj1624
|
|
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 yyj1629 int
|
|
var yyb1629 bool
|
|
var yyhl1629 bool = l >= 0
|
|
yyj1629++
|
|
if yyhl1629 {
|
|
yyb1629 = yyj1629 > l
|
|
} else {
|
|
yyb1629 = r.CheckBreak()
|
|
}
|
|
if yyb1629 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj1629++
|
|
if yyhl1629 {
|
|
yyb1629 = yyj1629 > l
|
|
} else {
|
|
yyb1629 = r.CheckBreak()
|
|
}
|
|
if yyb1629 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj1629++
|
|
if yyhl1629 {
|
|
yyb1629 = yyj1629 > l
|
|
} else {
|
|
yyb1629 = r.CheckBreak()
|
|
}
|
|
if yyb1629 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv1632 := &x.ObjectMeta
|
|
yyv1632.CodecDecodeSelf(d)
|
|
}
|
|
yyj1629++
|
|
if yyhl1629 {
|
|
yyb1629 = yyj1629 > l
|
|
} else {
|
|
yyb1629 = r.CheckBreak()
|
|
}
|
|
if yyb1629 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = PodStatus{}
|
|
} else {
|
|
yyv1633 := &x.Status
|
|
yyv1633.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj1629++
|
|
if yyhl1629 {
|
|
yyb1629 = yyj1629 > l
|
|
} else {
|
|
yyb1629 = r.CheckBreak()
|
|
}
|
|
if yyb1629 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1629-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 {
|
|
yym1634 := z.EncBinary()
|
|
_ = yym1634
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1635 := !z.EncBinary()
|
|
yy2arr1635 := z.EncBasicHandle().StructToArray
|
|
var yyq1635 [5]bool
|
|
_, _, _ = yysep1635, yyq1635, yy2arr1635
|
|
const yyr1635 bool = false
|
|
yyq1635[0] = x.Kind != ""
|
|
yyq1635[1] = x.APIVersion != ""
|
|
yyq1635[2] = true
|
|
yyq1635[3] = true
|
|
yyq1635[4] = true
|
|
var yynn1635 int
|
|
if yyr1635 || yy2arr1635 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn1635 = 0
|
|
for _, b := range yyq1635 {
|
|
if b {
|
|
yynn1635++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1635)
|
|
yynn1635 = 0
|
|
}
|
|
if yyr1635 || yy2arr1635 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1635[0] {
|
|
yym1637 := z.EncBinary()
|
|
_ = yym1637
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1635[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1638 := z.EncBinary()
|
|
_ = yym1638
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr1635 || yy2arr1635 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1635[1] {
|
|
yym1640 := z.EncBinary()
|
|
_ = yym1640
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1635[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1641 := z.EncBinary()
|
|
_ = yym1641
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr1635 || yy2arr1635 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1635[2] {
|
|
yy1643 := &x.ObjectMeta
|
|
yy1643.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1635[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1644 := &x.ObjectMeta
|
|
yy1644.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1635 || yy2arr1635 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1635[3] {
|
|
yy1646 := &x.Spec
|
|
yy1646.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1635[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("spec"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1647 := &x.Spec
|
|
yy1647.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1635 || yy2arr1635 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1635[4] {
|
|
yy1649 := &x.Status
|
|
yy1649.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1635[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("status"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1650 := &x.Status
|
|
yy1650.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1635 || yy2arr1635 {
|
|
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
|
|
yym1651 := z.DecBinary()
|
|
_ = yym1651
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1652 := r.ContainerType()
|
|
if yyct1652 == codecSelferValueTypeMap1234 {
|
|
yyl1652 := r.ReadMapStart()
|
|
if yyl1652 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1652, d)
|
|
}
|
|
} else if yyct1652 == codecSelferValueTypeArray1234 {
|
|
yyl1652 := r.ReadArrayStart()
|
|
if yyl1652 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1652, 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 yys1653Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1653Slc
|
|
var yyhl1653 bool = l >= 0
|
|
for yyj1653 := 0; ; yyj1653++ {
|
|
if yyhl1653 {
|
|
if yyj1653 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1653Slc = r.DecodeBytes(yys1653Slc, true, true)
|
|
yys1653 := string(yys1653Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1653 {
|
|
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 {
|
|
yyv1656 := &x.ObjectMeta
|
|
yyv1656.CodecDecodeSelf(d)
|
|
}
|
|
case "spec":
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = PodSpec{}
|
|
} else {
|
|
yyv1657 := &x.Spec
|
|
yyv1657.CodecDecodeSelf(d)
|
|
}
|
|
case "status":
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = PodStatus{}
|
|
} else {
|
|
yyv1658 := &x.Status
|
|
yyv1658.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1653)
|
|
} // end switch yys1653
|
|
} // end for yyj1653
|
|
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 yyj1659 int
|
|
var yyb1659 bool
|
|
var yyhl1659 bool = l >= 0
|
|
yyj1659++
|
|
if yyhl1659 {
|
|
yyb1659 = yyj1659 > l
|
|
} else {
|
|
yyb1659 = r.CheckBreak()
|
|
}
|
|
if yyb1659 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj1659++
|
|
if yyhl1659 {
|
|
yyb1659 = yyj1659 > l
|
|
} else {
|
|
yyb1659 = r.CheckBreak()
|
|
}
|
|
if yyb1659 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj1659++
|
|
if yyhl1659 {
|
|
yyb1659 = yyj1659 > l
|
|
} else {
|
|
yyb1659 = r.CheckBreak()
|
|
}
|
|
if yyb1659 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv1662 := &x.ObjectMeta
|
|
yyv1662.CodecDecodeSelf(d)
|
|
}
|
|
yyj1659++
|
|
if yyhl1659 {
|
|
yyb1659 = yyj1659 > l
|
|
} else {
|
|
yyb1659 = r.CheckBreak()
|
|
}
|
|
if yyb1659 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = PodSpec{}
|
|
} else {
|
|
yyv1663 := &x.Spec
|
|
yyv1663.CodecDecodeSelf(d)
|
|
}
|
|
yyj1659++
|
|
if yyhl1659 {
|
|
yyb1659 = yyj1659 > l
|
|
} else {
|
|
yyb1659 = r.CheckBreak()
|
|
}
|
|
if yyb1659 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = PodStatus{}
|
|
} else {
|
|
yyv1664 := &x.Status
|
|
yyv1664.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj1659++
|
|
if yyhl1659 {
|
|
yyb1659 = yyj1659 > l
|
|
} else {
|
|
yyb1659 = r.CheckBreak()
|
|
}
|
|
if yyb1659 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1659-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 {
|
|
yym1665 := z.EncBinary()
|
|
_ = yym1665
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1666 := !z.EncBinary()
|
|
yy2arr1666 := z.EncBasicHandle().StructToArray
|
|
var yyq1666 [2]bool
|
|
_, _, _ = yysep1666, yyq1666, yy2arr1666
|
|
const yyr1666 bool = false
|
|
yyq1666[0] = true
|
|
yyq1666[1] = true
|
|
var yynn1666 int
|
|
if yyr1666 || yy2arr1666 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn1666 = 0
|
|
for _, b := range yyq1666 {
|
|
if b {
|
|
yynn1666++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1666)
|
|
yynn1666 = 0
|
|
}
|
|
if yyr1666 || yy2arr1666 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1666[0] {
|
|
yy1668 := &x.ObjectMeta
|
|
yy1668.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1666[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1669 := &x.ObjectMeta
|
|
yy1669.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1666 || yy2arr1666 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1666[1] {
|
|
yy1671 := &x.Spec
|
|
yy1671.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1666[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("spec"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1672 := &x.Spec
|
|
yy1672.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1666 || yy2arr1666 {
|
|
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
|
|
yym1673 := z.DecBinary()
|
|
_ = yym1673
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1674 := r.ContainerType()
|
|
if yyct1674 == codecSelferValueTypeMap1234 {
|
|
yyl1674 := r.ReadMapStart()
|
|
if yyl1674 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1674, d)
|
|
}
|
|
} else if yyct1674 == codecSelferValueTypeArray1234 {
|
|
yyl1674 := r.ReadArrayStart()
|
|
if yyl1674 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1674, 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 yys1675Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1675Slc
|
|
var yyhl1675 bool = l >= 0
|
|
for yyj1675 := 0; ; yyj1675++ {
|
|
if yyhl1675 {
|
|
if yyj1675 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1675Slc = r.DecodeBytes(yys1675Slc, true, true)
|
|
yys1675 := string(yys1675Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1675 {
|
|
case "metadata":
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv1676 := &x.ObjectMeta
|
|
yyv1676.CodecDecodeSelf(d)
|
|
}
|
|
case "spec":
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = PodSpec{}
|
|
} else {
|
|
yyv1677 := &x.Spec
|
|
yyv1677.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1675)
|
|
} // end switch yys1675
|
|
} // end for yyj1675
|
|
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 yyj1678 int
|
|
var yyb1678 bool
|
|
var yyhl1678 bool = l >= 0
|
|
yyj1678++
|
|
if yyhl1678 {
|
|
yyb1678 = yyj1678 > l
|
|
} else {
|
|
yyb1678 = r.CheckBreak()
|
|
}
|
|
if yyb1678 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv1679 := &x.ObjectMeta
|
|
yyv1679.CodecDecodeSelf(d)
|
|
}
|
|
yyj1678++
|
|
if yyhl1678 {
|
|
yyb1678 = yyj1678 > l
|
|
} else {
|
|
yyb1678 = r.CheckBreak()
|
|
}
|
|
if yyb1678 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = PodSpec{}
|
|
} else {
|
|
yyv1680 := &x.Spec
|
|
yyv1680.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj1678++
|
|
if yyhl1678 {
|
|
yyb1678 = yyj1678 > l
|
|
} else {
|
|
yyb1678 = r.CheckBreak()
|
|
}
|
|
if yyb1678 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1678-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 {
|
|
yym1681 := z.EncBinary()
|
|
_ = yym1681
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1682 := !z.EncBinary()
|
|
yy2arr1682 := z.EncBasicHandle().StructToArray
|
|
var yyq1682 [4]bool
|
|
_, _, _ = yysep1682, yyq1682, yy2arr1682
|
|
const yyr1682 bool = false
|
|
yyq1682[0] = x.Kind != ""
|
|
yyq1682[1] = x.APIVersion != ""
|
|
yyq1682[2] = true
|
|
yyq1682[3] = true
|
|
var yynn1682 int
|
|
if yyr1682 || yy2arr1682 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn1682 = 0
|
|
for _, b := range yyq1682 {
|
|
if b {
|
|
yynn1682++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1682)
|
|
yynn1682 = 0
|
|
}
|
|
if yyr1682 || yy2arr1682 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1682[0] {
|
|
yym1684 := z.EncBinary()
|
|
_ = yym1684
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1682[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1685 := z.EncBinary()
|
|
_ = yym1685
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr1682 || yy2arr1682 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1682[1] {
|
|
yym1687 := z.EncBinary()
|
|
_ = yym1687
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1682[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1688 := z.EncBinary()
|
|
_ = yym1688
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr1682 || yy2arr1682 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1682[2] {
|
|
yy1690 := &x.ObjectMeta
|
|
yy1690.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1682[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1691 := &x.ObjectMeta
|
|
yy1691.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1682 || yy2arr1682 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1682[3] {
|
|
yy1693 := &x.Template
|
|
yy1693.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1682[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("template"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1694 := &x.Template
|
|
yy1694.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1682 || yy2arr1682 {
|
|
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
|
|
yym1695 := z.DecBinary()
|
|
_ = yym1695
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1696 := r.ContainerType()
|
|
if yyct1696 == codecSelferValueTypeMap1234 {
|
|
yyl1696 := r.ReadMapStart()
|
|
if yyl1696 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1696, d)
|
|
}
|
|
} else if yyct1696 == codecSelferValueTypeArray1234 {
|
|
yyl1696 := r.ReadArrayStart()
|
|
if yyl1696 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1696, 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 yys1697Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1697Slc
|
|
var yyhl1697 bool = l >= 0
|
|
for yyj1697 := 0; ; yyj1697++ {
|
|
if yyhl1697 {
|
|
if yyj1697 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1697Slc = r.DecodeBytes(yys1697Slc, true, true)
|
|
yys1697 := string(yys1697Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1697 {
|
|
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 {
|
|
yyv1700 := &x.ObjectMeta
|
|
yyv1700.CodecDecodeSelf(d)
|
|
}
|
|
case "template":
|
|
if r.TryDecodeAsNil() {
|
|
x.Template = PodTemplateSpec{}
|
|
} else {
|
|
yyv1701 := &x.Template
|
|
yyv1701.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1697)
|
|
} // end switch yys1697
|
|
} // end for yyj1697
|
|
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 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.Template = PodTemplateSpec{}
|
|
} else {
|
|
yyv1706 := &x.Template
|
|
yyv1706.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 *PodTemplateList) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1707 := z.EncBinary()
|
|
_ = yym1707
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1708 := !z.EncBinary()
|
|
yy2arr1708 := z.EncBasicHandle().StructToArray
|
|
var yyq1708 [4]bool
|
|
_, _, _ = yysep1708, yyq1708, yy2arr1708
|
|
const yyr1708 bool = false
|
|
yyq1708[0] = x.Kind != ""
|
|
yyq1708[1] = x.APIVersion != ""
|
|
yyq1708[2] = true
|
|
var yynn1708 int
|
|
if yyr1708 || yy2arr1708 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn1708 = 1
|
|
for _, b := range yyq1708 {
|
|
if b {
|
|
yynn1708++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1708)
|
|
yynn1708 = 0
|
|
}
|
|
if yyr1708 || yy2arr1708 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1708[0] {
|
|
yym1710 := z.EncBinary()
|
|
_ = yym1710
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1708[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1711 := z.EncBinary()
|
|
_ = yym1711
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr1708 || yy2arr1708 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1708[1] {
|
|
yym1713 := z.EncBinary()
|
|
_ = yym1713
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1708[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1714 := z.EncBinary()
|
|
_ = yym1714
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr1708 || yy2arr1708 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1708[2] {
|
|
yy1716 := &x.ListMeta
|
|
yym1717 := z.EncBinary()
|
|
_ = yym1717
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1716) {
|
|
} else {
|
|
z.EncFallback(yy1716)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1708[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1718 := &x.ListMeta
|
|
yym1719 := z.EncBinary()
|
|
_ = yym1719
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1718) {
|
|
} else {
|
|
z.EncFallback(yy1718)
|
|
}
|
|
}
|
|
}
|
|
if yyr1708 || yy2arr1708 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1721 := z.EncBinary()
|
|
_ = yym1721
|
|
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 {
|
|
yym1722 := z.EncBinary()
|
|
_ = yym1722
|
|
if false {
|
|
} else {
|
|
h.encSlicePodTemplate(([]PodTemplate)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1708 || yy2arr1708 {
|
|
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
|
|
yym1723 := z.DecBinary()
|
|
_ = yym1723
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1724 := r.ContainerType()
|
|
if yyct1724 == codecSelferValueTypeMap1234 {
|
|
yyl1724 := r.ReadMapStart()
|
|
if yyl1724 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1724, d)
|
|
}
|
|
} else if yyct1724 == codecSelferValueTypeArray1234 {
|
|
yyl1724 := r.ReadArrayStart()
|
|
if yyl1724 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1724, 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 yys1725Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1725Slc
|
|
var yyhl1725 bool = l >= 0
|
|
for yyj1725 := 0; ; yyj1725++ {
|
|
if yyhl1725 {
|
|
if yyj1725 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1725Slc = r.DecodeBytes(yys1725Slc, true, true)
|
|
yys1725 := string(yys1725Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1725 {
|
|
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 {
|
|
yyv1728 := &x.ListMeta
|
|
yym1729 := z.DecBinary()
|
|
_ = yym1729
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1728) {
|
|
} else {
|
|
z.DecFallback(yyv1728, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv1730 := &x.Items
|
|
yym1731 := z.DecBinary()
|
|
_ = yym1731
|
|
if false {
|
|
} else {
|
|
h.decSlicePodTemplate((*[]PodTemplate)(yyv1730), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1725)
|
|
} // end switch yys1725
|
|
} // end for yyj1725
|
|
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 yyj1732 int
|
|
var yyb1732 bool
|
|
var yyhl1732 bool = l >= 0
|
|
yyj1732++
|
|
if yyhl1732 {
|
|
yyb1732 = yyj1732 > l
|
|
} else {
|
|
yyb1732 = r.CheckBreak()
|
|
}
|
|
if yyb1732 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj1732++
|
|
if yyhl1732 {
|
|
yyb1732 = yyj1732 > l
|
|
} else {
|
|
yyb1732 = r.CheckBreak()
|
|
}
|
|
if yyb1732 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj1732++
|
|
if yyhl1732 {
|
|
yyb1732 = yyj1732 > l
|
|
} else {
|
|
yyb1732 = r.CheckBreak()
|
|
}
|
|
if yyb1732 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv1735 := &x.ListMeta
|
|
yym1736 := z.DecBinary()
|
|
_ = yym1736
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1735) {
|
|
} else {
|
|
z.DecFallback(yyv1735, false)
|
|
}
|
|
}
|
|
yyj1732++
|
|
if yyhl1732 {
|
|
yyb1732 = yyj1732 > l
|
|
} else {
|
|
yyb1732 = r.CheckBreak()
|
|
}
|
|
if yyb1732 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv1737 := &x.Items
|
|
yym1738 := z.DecBinary()
|
|
_ = yym1738
|
|
if false {
|
|
} else {
|
|
h.decSlicePodTemplate((*[]PodTemplate)(yyv1737), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj1732++
|
|
if yyhl1732 {
|
|
yyb1732 = yyj1732 > l
|
|
} else {
|
|
yyb1732 = r.CheckBreak()
|
|
}
|
|
if yyb1732 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1732-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 {
|
|
yym1739 := z.EncBinary()
|
|
_ = yym1739
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1740 := !z.EncBinary()
|
|
yy2arr1740 := z.EncBasicHandle().StructToArray
|
|
var yyq1740 [3]bool
|
|
_, _, _ = yysep1740, yyq1740, yy2arr1740
|
|
const yyr1740 bool = false
|
|
yyq1740[2] = x.Template != nil
|
|
var yynn1740 int
|
|
if yyr1740 || yy2arr1740 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn1740 = 2
|
|
for _, b := range yyq1740 {
|
|
if b {
|
|
yynn1740++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1740)
|
|
yynn1740 = 0
|
|
}
|
|
if yyr1740 || yy2arr1740 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1742 := z.EncBinary()
|
|
_ = yym1742
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Replicas))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("replicas"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1743 := z.EncBinary()
|
|
_ = yym1743
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Replicas))
|
|
}
|
|
}
|
|
if yyr1740 || yy2arr1740 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Selector == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1745 := z.EncBinary()
|
|
_ = yym1745
|
|
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 {
|
|
yym1746 := z.EncBinary()
|
|
_ = yym1746
|
|
if false {
|
|
} else {
|
|
z.F.EncMapStringStringV(x.Selector, false, e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1740 || yy2arr1740 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1740[2] {
|
|
if x.Template == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Template.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1740[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 yyr1740 || yy2arr1740 {
|
|
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
|
|
yym1748 := z.DecBinary()
|
|
_ = yym1748
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1749 := r.ContainerType()
|
|
if yyct1749 == codecSelferValueTypeMap1234 {
|
|
yyl1749 := r.ReadMapStart()
|
|
if yyl1749 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1749, d)
|
|
}
|
|
} else if yyct1749 == codecSelferValueTypeArray1234 {
|
|
yyl1749 := r.ReadArrayStart()
|
|
if yyl1749 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1749, 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 yys1750Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1750Slc
|
|
var yyhl1750 bool = l >= 0
|
|
for yyj1750 := 0; ; yyj1750++ {
|
|
if yyhl1750 {
|
|
if yyj1750 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1750Slc = r.DecodeBytes(yys1750Slc, true, true)
|
|
yys1750 := string(yys1750Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1750 {
|
|
case "replicas":
|
|
if r.TryDecodeAsNil() {
|
|
x.Replicas = 0
|
|
} else {
|
|
x.Replicas = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
case "selector":
|
|
if r.TryDecodeAsNil() {
|
|
x.Selector = nil
|
|
} else {
|
|
yyv1752 := &x.Selector
|
|
yym1753 := z.DecBinary()
|
|
_ = yym1753
|
|
if false {
|
|
} else {
|
|
z.F.DecMapStringStringX(yyv1752, 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, yys1750)
|
|
} // end switch yys1750
|
|
} // end for yyj1750
|
|
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 yyj1755 int
|
|
var yyb1755 bool
|
|
var yyhl1755 bool = l >= 0
|
|
yyj1755++
|
|
if yyhl1755 {
|
|
yyb1755 = yyj1755 > l
|
|
} else {
|
|
yyb1755 = r.CheckBreak()
|
|
}
|
|
if yyb1755 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Replicas = 0
|
|
} else {
|
|
x.Replicas = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
yyj1755++
|
|
if yyhl1755 {
|
|
yyb1755 = yyj1755 > l
|
|
} else {
|
|
yyb1755 = r.CheckBreak()
|
|
}
|
|
if yyb1755 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Selector = nil
|
|
} else {
|
|
yyv1757 := &x.Selector
|
|
yym1758 := z.DecBinary()
|
|
_ = yym1758
|
|
if false {
|
|
} else {
|
|
z.F.DecMapStringStringX(yyv1757, false, d)
|
|
}
|
|
}
|
|
yyj1755++
|
|
if yyhl1755 {
|
|
yyb1755 = yyj1755 > l
|
|
} else {
|
|
yyb1755 = r.CheckBreak()
|
|
}
|
|
if yyb1755 {
|
|
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 {
|
|
yyj1755++
|
|
if yyhl1755 {
|
|
yyb1755 = yyj1755 > l
|
|
} else {
|
|
yyb1755 = r.CheckBreak()
|
|
}
|
|
if yyb1755 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1755-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 {
|
|
yym1760 := z.EncBinary()
|
|
_ = yym1760
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1761 := !z.EncBinary()
|
|
yy2arr1761 := z.EncBasicHandle().StructToArray
|
|
var yyq1761 [2]bool
|
|
_, _, _ = yysep1761, yyq1761, yy2arr1761
|
|
const yyr1761 bool = false
|
|
yyq1761[1] = x.ObservedGeneration != 0
|
|
var yynn1761 int
|
|
if yyr1761 || yy2arr1761 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn1761 = 1
|
|
for _, b := range yyq1761 {
|
|
if b {
|
|
yynn1761++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1761)
|
|
yynn1761 = 0
|
|
}
|
|
if yyr1761 || yy2arr1761 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1763 := z.EncBinary()
|
|
_ = yym1763
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Replicas))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("replicas"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1764 := z.EncBinary()
|
|
_ = yym1764
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Replicas))
|
|
}
|
|
}
|
|
if yyr1761 || yy2arr1761 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1761[1] {
|
|
yym1766 := z.EncBinary()
|
|
_ = yym1766
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.ObservedGeneration))
|
|
}
|
|
} else {
|
|
r.EncodeInt(0)
|
|
}
|
|
} else {
|
|
if yyq1761[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("observedGeneration"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1767 := z.EncBinary()
|
|
_ = yym1767
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.ObservedGeneration))
|
|
}
|
|
}
|
|
}
|
|
if yyr1761 || yy2arr1761 {
|
|
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
|
|
yym1768 := z.DecBinary()
|
|
_ = yym1768
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1769 := r.ContainerType()
|
|
if yyct1769 == codecSelferValueTypeMap1234 {
|
|
yyl1769 := r.ReadMapStart()
|
|
if yyl1769 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1769, d)
|
|
}
|
|
} else if yyct1769 == codecSelferValueTypeArray1234 {
|
|
yyl1769 := r.ReadArrayStart()
|
|
if yyl1769 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1769, 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 yys1770Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1770Slc
|
|
var yyhl1770 bool = l >= 0
|
|
for yyj1770 := 0; ; yyj1770++ {
|
|
if yyhl1770 {
|
|
if yyj1770 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1770Slc = r.DecodeBytes(yys1770Slc, true, true)
|
|
yys1770 := string(yys1770Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1770 {
|
|
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, yys1770)
|
|
} // end switch yys1770
|
|
} // end for yyj1770
|
|
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 yyj1773 int
|
|
var yyb1773 bool
|
|
var yyhl1773 bool = l >= 0
|
|
yyj1773++
|
|
if yyhl1773 {
|
|
yyb1773 = yyj1773 > l
|
|
} else {
|
|
yyb1773 = r.CheckBreak()
|
|
}
|
|
if yyb1773 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Replicas = 0
|
|
} else {
|
|
x.Replicas = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
yyj1773++
|
|
if yyhl1773 {
|
|
yyb1773 = yyj1773 > l
|
|
} else {
|
|
yyb1773 = r.CheckBreak()
|
|
}
|
|
if yyb1773 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObservedGeneration = 0
|
|
} else {
|
|
x.ObservedGeneration = int64(r.DecodeInt(64))
|
|
}
|
|
for {
|
|
yyj1773++
|
|
if yyhl1773 {
|
|
yyb1773 = yyj1773 > l
|
|
} else {
|
|
yyb1773 = r.CheckBreak()
|
|
}
|
|
if yyb1773 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1773-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 {
|
|
yym1776 := z.EncBinary()
|
|
_ = yym1776
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1777 := !z.EncBinary()
|
|
yy2arr1777 := z.EncBasicHandle().StructToArray
|
|
var yyq1777 [5]bool
|
|
_, _, _ = yysep1777, yyq1777, yy2arr1777
|
|
const yyr1777 bool = false
|
|
yyq1777[0] = x.Kind != ""
|
|
yyq1777[1] = x.APIVersion != ""
|
|
yyq1777[2] = true
|
|
yyq1777[3] = true
|
|
yyq1777[4] = true
|
|
var yynn1777 int
|
|
if yyr1777 || yy2arr1777 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn1777 = 0
|
|
for _, b := range yyq1777 {
|
|
if b {
|
|
yynn1777++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1777)
|
|
yynn1777 = 0
|
|
}
|
|
if yyr1777 || yy2arr1777 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1777[0] {
|
|
yym1779 := z.EncBinary()
|
|
_ = yym1779
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1777[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1780 := z.EncBinary()
|
|
_ = yym1780
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr1777 || yy2arr1777 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1777[1] {
|
|
yym1782 := z.EncBinary()
|
|
_ = yym1782
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1777[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1783 := z.EncBinary()
|
|
_ = yym1783
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr1777 || yy2arr1777 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1777[2] {
|
|
yy1785 := &x.ObjectMeta
|
|
yy1785.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1777[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1786 := &x.ObjectMeta
|
|
yy1786.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1777 || yy2arr1777 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1777[3] {
|
|
yy1788 := &x.Spec
|
|
yy1788.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1777[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("spec"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1789 := &x.Spec
|
|
yy1789.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1777 || yy2arr1777 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1777[4] {
|
|
yy1791 := &x.Status
|
|
yy1791.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1777[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("status"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1792 := &x.Status
|
|
yy1792.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1777 || yy2arr1777 {
|
|
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
|
|
yym1793 := z.DecBinary()
|
|
_ = yym1793
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1794 := r.ContainerType()
|
|
if yyct1794 == codecSelferValueTypeMap1234 {
|
|
yyl1794 := r.ReadMapStart()
|
|
if yyl1794 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1794, d)
|
|
}
|
|
} else if yyct1794 == codecSelferValueTypeArray1234 {
|
|
yyl1794 := r.ReadArrayStart()
|
|
if yyl1794 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1794, 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 yys1795Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1795Slc
|
|
var yyhl1795 bool = l >= 0
|
|
for yyj1795 := 0; ; yyj1795++ {
|
|
if yyhl1795 {
|
|
if yyj1795 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1795Slc = r.DecodeBytes(yys1795Slc, true, true)
|
|
yys1795 := string(yys1795Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1795 {
|
|
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 {
|
|
yyv1798 := &x.ObjectMeta
|
|
yyv1798.CodecDecodeSelf(d)
|
|
}
|
|
case "spec":
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = ReplicationControllerSpec{}
|
|
} else {
|
|
yyv1799 := &x.Spec
|
|
yyv1799.CodecDecodeSelf(d)
|
|
}
|
|
case "status":
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = ReplicationControllerStatus{}
|
|
} else {
|
|
yyv1800 := &x.Status
|
|
yyv1800.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1795)
|
|
} // end switch yys1795
|
|
} // end for yyj1795
|
|
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 yyj1801 int
|
|
var yyb1801 bool
|
|
var yyhl1801 bool = l >= 0
|
|
yyj1801++
|
|
if yyhl1801 {
|
|
yyb1801 = yyj1801 > l
|
|
} else {
|
|
yyb1801 = r.CheckBreak()
|
|
}
|
|
if yyb1801 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj1801++
|
|
if yyhl1801 {
|
|
yyb1801 = yyj1801 > l
|
|
} else {
|
|
yyb1801 = r.CheckBreak()
|
|
}
|
|
if yyb1801 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj1801++
|
|
if yyhl1801 {
|
|
yyb1801 = yyj1801 > l
|
|
} else {
|
|
yyb1801 = r.CheckBreak()
|
|
}
|
|
if yyb1801 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv1804 := &x.ObjectMeta
|
|
yyv1804.CodecDecodeSelf(d)
|
|
}
|
|
yyj1801++
|
|
if yyhl1801 {
|
|
yyb1801 = yyj1801 > l
|
|
} else {
|
|
yyb1801 = r.CheckBreak()
|
|
}
|
|
if yyb1801 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = ReplicationControllerSpec{}
|
|
} else {
|
|
yyv1805 := &x.Spec
|
|
yyv1805.CodecDecodeSelf(d)
|
|
}
|
|
yyj1801++
|
|
if yyhl1801 {
|
|
yyb1801 = yyj1801 > l
|
|
} else {
|
|
yyb1801 = r.CheckBreak()
|
|
}
|
|
if yyb1801 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = ReplicationControllerStatus{}
|
|
} else {
|
|
yyv1806 := &x.Status
|
|
yyv1806.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj1801++
|
|
if yyhl1801 {
|
|
yyb1801 = yyj1801 > l
|
|
} else {
|
|
yyb1801 = r.CheckBreak()
|
|
}
|
|
if yyb1801 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1801-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 {
|
|
yym1807 := z.EncBinary()
|
|
_ = yym1807
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1808 := !z.EncBinary()
|
|
yy2arr1808 := z.EncBasicHandle().StructToArray
|
|
var yyq1808 [4]bool
|
|
_, _, _ = yysep1808, yyq1808, yy2arr1808
|
|
const yyr1808 bool = false
|
|
yyq1808[0] = x.Kind != ""
|
|
yyq1808[1] = x.APIVersion != ""
|
|
yyq1808[2] = true
|
|
var yynn1808 int
|
|
if yyr1808 || yy2arr1808 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn1808 = 1
|
|
for _, b := range yyq1808 {
|
|
if b {
|
|
yynn1808++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1808)
|
|
yynn1808 = 0
|
|
}
|
|
if yyr1808 || yy2arr1808 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1808[0] {
|
|
yym1810 := z.EncBinary()
|
|
_ = yym1810
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1808[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1811 := z.EncBinary()
|
|
_ = yym1811
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr1808 || yy2arr1808 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1808[1] {
|
|
yym1813 := z.EncBinary()
|
|
_ = yym1813
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1808[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1814 := z.EncBinary()
|
|
_ = yym1814
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr1808 || yy2arr1808 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1808[2] {
|
|
yy1816 := &x.ListMeta
|
|
yym1817 := z.EncBinary()
|
|
_ = yym1817
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1816) {
|
|
} else {
|
|
z.EncFallback(yy1816)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1808[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1818 := &x.ListMeta
|
|
yym1819 := z.EncBinary()
|
|
_ = yym1819
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1818) {
|
|
} else {
|
|
z.EncFallback(yy1818)
|
|
}
|
|
}
|
|
}
|
|
if yyr1808 || yy2arr1808 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1821 := z.EncBinary()
|
|
_ = yym1821
|
|
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 {
|
|
yym1822 := z.EncBinary()
|
|
_ = yym1822
|
|
if false {
|
|
} else {
|
|
h.encSliceReplicationController(([]ReplicationController)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1808 || yy2arr1808 {
|
|
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
|
|
yym1823 := z.DecBinary()
|
|
_ = yym1823
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1824 := r.ContainerType()
|
|
if yyct1824 == codecSelferValueTypeMap1234 {
|
|
yyl1824 := r.ReadMapStart()
|
|
if yyl1824 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1824, d)
|
|
}
|
|
} else if yyct1824 == codecSelferValueTypeArray1234 {
|
|
yyl1824 := r.ReadArrayStart()
|
|
if yyl1824 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1824, 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 yys1825Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1825Slc
|
|
var yyhl1825 bool = l >= 0
|
|
for yyj1825 := 0; ; yyj1825++ {
|
|
if yyhl1825 {
|
|
if yyj1825 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1825Slc = r.DecodeBytes(yys1825Slc, true, true)
|
|
yys1825 := string(yys1825Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1825 {
|
|
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 {
|
|
yyv1828 := &x.ListMeta
|
|
yym1829 := z.DecBinary()
|
|
_ = yym1829
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1828) {
|
|
} else {
|
|
z.DecFallback(yyv1828, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv1830 := &x.Items
|
|
yym1831 := z.DecBinary()
|
|
_ = yym1831
|
|
if false {
|
|
} else {
|
|
h.decSliceReplicationController((*[]ReplicationController)(yyv1830), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1825)
|
|
} // end switch yys1825
|
|
} // end for yyj1825
|
|
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 yyj1832 int
|
|
var yyb1832 bool
|
|
var yyhl1832 bool = l >= 0
|
|
yyj1832++
|
|
if yyhl1832 {
|
|
yyb1832 = yyj1832 > l
|
|
} else {
|
|
yyb1832 = r.CheckBreak()
|
|
}
|
|
if yyb1832 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj1832++
|
|
if yyhl1832 {
|
|
yyb1832 = yyj1832 > l
|
|
} else {
|
|
yyb1832 = r.CheckBreak()
|
|
}
|
|
if yyb1832 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj1832++
|
|
if yyhl1832 {
|
|
yyb1832 = yyj1832 > l
|
|
} else {
|
|
yyb1832 = r.CheckBreak()
|
|
}
|
|
if yyb1832 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv1835 := &x.ListMeta
|
|
yym1836 := z.DecBinary()
|
|
_ = yym1836
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1835) {
|
|
} else {
|
|
z.DecFallback(yyv1835, false)
|
|
}
|
|
}
|
|
yyj1832++
|
|
if yyhl1832 {
|
|
yyb1832 = yyj1832 > l
|
|
} else {
|
|
yyb1832 = r.CheckBreak()
|
|
}
|
|
if yyb1832 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv1837 := &x.Items
|
|
yym1838 := z.DecBinary()
|
|
_ = yym1838
|
|
if false {
|
|
} else {
|
|
h.decSliceReplicationController((*[]ReplicationController)(yyv1837), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj1832++
|
|
if yyhl1832 {
|
|
yyb1832 = yyj1832 > l
|
|
} else {
|
|
yyb1832 = r.CheckBreak()
|
|
}
|
|
if yyb1832 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1832-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 {
|
|
yym1839 := z.EncBinary()
|
|
_ = yym1839
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1840 := !z.EncBinary()
|
|
yy2arr1840 := z.EncBasicHandle().StructToArray
|
|
var yyq1840 [4]bool
|
|
_, _, _ = yysep1840, yyq1840, yy2arr1840
|
|
const yyr1840 bool = false
|
|
yyq1840[0] = x.Kind != ""
|
|
yyq1840[1] = x.APIVersion != ""
|
|
yyq1840[2] = true
|
|
var yynn1840 int
|
|
if yyr1840 || yy2arr1840 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn1840 = 1
|
|
for _, b := range yyq1840 {
|
|
if b {
|
|
yynn1840++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1840)
|
|
yynn1840 = 0
|
|
}
|
|
if yyr1840 || yy2arr1840 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1840[0] {
|
|
yym1842 := z.EncBinary()
|
|
_ = yym1842
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1840[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1843 := z.EncBinary()
|
|
_ = yym1843
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr1840 || yy2arr1840 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1840[1] {
|
|
yym1845 := z.EncBinary()
|
|
_ = yym1845
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1840[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1846 := z.EncBinary()
|
|
_ = yym1846
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr1840 || yy2arr1840 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1840[2] {
|
|
yy1848 := &x.ListMeta
|
|
yym1849 := z.EncBinary()
|
|
_ = yym1849
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1848) {
|
|
} else {
|
|
z.EncFallback(yy1848)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1840[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1850 := &x.ListMeta
|
|
yym1851 := z.EncBinary()
|
|
_ = yym1851
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1850) {
|
|
} else {
|
|
z.EncFallback(yy1850)
|
|
}
|
|
}
|
|
}
|
|
if yyr1840 || yy2arr1840 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1853 := z.EncBinary()
|
|
_ = yym1853
|
|
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 {
|
|
yym1854 := z.EncBinary()
|
|
_ = yym1854
|
|
if false {
|
|
} else {
|
|
h.encSliceService(([]Service)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1840 || yy2arr1840 {
|
|
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
|
|
yym1855 := z.DecBinary()
|
|
_ = yym1855
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1856 := r.ContainerType()
|
|
if yyct1856 == codecSelferValueTypeMap1234 {
|
|
yyl1856 := r.ReadMapStart()
|
|
if yyl1856 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1856, d)
|
|
}
|
|
} else if yyct1856 == codecSelferValueTypeArray1234 {
|
|
yyl1856 := r.ReadArrayStart()
|
|
if yyl1856 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1856, 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 yys1857Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1857Slc
|
|
var yyhl1857 bool = l >= 0
|
|
for yyj1857 := 0; ; yyj1857++ {
|
|
if yyhl1857 {
|
|
if yyj1857 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1857Slc = r.DecodeBytes(yys1857Slc, true, true)
|
|
yys1857 := string(yys1857Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1857 {
|
|
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 {
|
|
yyv1860 := &x.ListMeta
|
|
yym1861 := z.DecBinary()
|
|
_ = yym1861
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1860) {
|
|
} else {
|
|
z.DecFallback(yyv1860, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv1862 := &x.Items
|
|
yym1863 := z.DecBinary()
|
|
_ = yym1863
|
|
if false {
|
|
} else {
|
|
h.decSliceService((*[]Service)(yyv1862), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1857)
|
|
} // end switch yys1857
|
|
} // end for yyj1857
|
|
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 yyj1864 int
|
|
var yyb1864 bool
|
|
var yyhl1864 bool = l >= 0
|
|
yyj1864++
|
|
if yyhl1864 {
|
|
yyb1864 = yyj1864 > l
|
|
} else {
|
|
yyb1864 = r.CheckBreak()
|
|
}
|
|
if yyb1864 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj1864++
|
|
if yyhl1864 {
|
|
yyb1864 = yyj1864 > l
|
|
} else {
|
|
yyb1864 = r.CheckBreak()
|
|
}
|
|
if yyb1864 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj1864++
|
|
if yyhl1864 {
|
|
yyb1864 = yyj1864 > l
|
|
} else {
|
|
yyb1864 = r.CheckBreak()
|
|
}
|
|
if yyb1864 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv1867 := &x.ListMeta
|
|
yym1868 := z.DecBinary()
|
|
_ = yym1868
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1867) {
|
|
} else {
|
|
z.DecFallback(yyv1867, false)
|
|
}
|
|
}
|
|
yyj1864++
|
|
if yyhl1864 {
|
|
yyb1864 = yyj1864 > l
|
|
} else {
|
|
yyb1864 = r.CheckBreak()
|
|
}
|
|
if yyb1864 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv1869 := &x.Items
|
|
yym1870 := z.DecBinary()
|
|
_ = yym1870
|
|
if false {
|
|
} else {
|
|
h.decSliceService((*[]Service)(yyv1869), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj1864++
|
|
if yyhl1864 {
|
|
yyb1864 = yyj1864 > l
|
|
} else {
|
|
yyb1864 = r.CheckBreak()
|
|
}
|
|
if yyb1864 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1864-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x ServiceAffinity) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym1871 := z.EncBinary()
|
|
_ = yym1871
|
|
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
|
|
yym1872 := z.DecBinary()
|
|
_ = yym1872
|
|
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
|
|
yym1873 := z.EncBinary()
|
|
_ = yym1873
|
|
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
|
|
yym1874 := z.DecBinary()
|
|
_ = yym1874
|
|
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 {
|
|
yym1875 := z.EncBinary()
|
|
_ = yym1875
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1876 := !z.EncBinary()
|
|
yy2arr1876 := z.EncBasicHandle().StructToArray
|
|
var yyq1876 [1]bool
|
|
_, _, _ = yysep1876, yyq1876, yy2arr1876
|
|
const yyr1876 bool = false
|
|
yyq1876[0] = true
|
|
var yynn1876 int
|
|
if yyr1876 || yy2arr1876 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn1876 = 0
|
|
for _, b := range yyq1876 {
|
|
if b {
|
|
yynn1876++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1876)
|
|
yynn1876 = 0
|
|
}
|
|
if yyr1876 || yy2arr1876 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1876[0] {
|
|
yy1878 := &x.LoadBalancer
|
|
yy1878.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1876[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("loadBalancer"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1879 := &x.LoadBalancer
|
|
yy1879.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1876 || yy2arr1876 {
|
|
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
|
|
yym1880 := z.DecBinary()
|
|
_ = yym1880
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1881 := r.ContainerType()
|
|
if yyct1881 == codecSelferValueTypeMap1234 {
|
|
yyl1881 := r.ReadMapStart()
|
|
if yyl1881 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1881, d)
|
|
}
|
|
} else if yyct1881 == codecSelferValueTypeArray1234 {
|
|
yyl1881 := r.ReadArrayStart()
|
|
if yyl1881 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1881, 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 yys1882Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1882Slc
|
|
var yyhl1882 bool = l >= 0
|
|
for yyj1882 := 0; ; yyj1882++ {
|
|
if yyhl1882 {
|
|
if yyj1882 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1882Slc = r.DecodeBytes(yys1882Slc, true, true)
|
|
yys1882 := string(yys1882Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1882 {
|
|
case "loadBalancer":
|
|
if r.TryDecodeAsNil() {
|
|
x.LoadBalancer = LoadBalancerStatus{}
|
|
} else {
|
|
yyv1883 := &x.LoadBalancer
|
|
yyv1883.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1882)
|
|
} // end switch yys1882
|
|
} // end for yyj1882
|
|
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 yyj1884 int
|
|
var yyb1884 bool
|
|
var yyhl1884 bool = l >= 0
|
|
yyj1884++
|
|
if yyhl1884 {
|
|
yyb1884 = yyj1884 > l
|
|
} else {
|
|
yyb1884 = r.CheckBreak()
|
|
}
|
|
if yyb1884 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.LoadBalancer = LoadBalancerStatus{}
|
|
} else {
|
|
yyv1885 := &x.LoadBalancer
|
|
yyv1885.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj1884++
|
|
if yyhl1884 {
|
|
yyb1884 = yyj1884 > l
|
|
} else {
|
|
yyb1884 = r.CheckBreak()
|
|
}
|
|
if yyb1884 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1884-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 {
|
|
yym1886 := z.EncBinary()
|
|
_ = yym1886
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1887 := !z.EncBinary()
|
|
yy2arr1887 := z.EncBasicHandle().StructToArray
|
|
var yyq1887 [1]bool
|
|
_, _, _ = yysep1887, yyq1887, yy2arr1887
|
|
const yyr1887 bool = false
|
|
yyq1887[0] = len(x.Ingress) != 0
|
|
var yynn1887 int
|
|
if yyr1887 || yy2arr1887 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn1887 = 0
|
|
for _, b := range yyq1887 {
|
|
if b {
|
|
yynn1887++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1887)
|
|
yynn1887 = 0
|
|
}
|
|
if yyr1887 || yy2arr1887 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1887[0] {
|
|
if x.Ingress == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1889 := z.EncBinary()
|
|
_ = yym1889
|
|
if false {
|
|
} else {
|
|
h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1887[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("ingress"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Ingress == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1890 := z.EncBinary()
|
|
_ = yym1890
|
|
if false {
|
|
} else {
|
|
h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1887 || yy2arr1887 {
|
|
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
|
|
yym1891 := z.DecBinary()
|
|
_ = yym1891
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1892 := r.ContainerType()
|
|
if yyct1892 == codecSelferValueTypeMap1234 {
|
|
yyl1892 := r.ReadMapStart()
|
|
if yyl1892 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1892, d)
|
|
}
|
|
} else if yyct1892 == codecSelferValueTypeArray1234 {
|
|
yyl1892 := r.ReadArrayStart()
|
|
if yyl1892 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1892, 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 yys1893Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1893Slc
|
|
var yyhl1893 bool = l >= 0
|
|
for yyj1893 := 0; ; yyj1893++ {
|
|
if yyhl1893 {
|
|
if yyj1893 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1893Slc = r.DecodeBytes(yys1893Slc, true, true)
|
|
yys1893 := string(yys1893Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1893 {
|
|
case "ingress":
|
|
if r.TryDecodeAsNil() {
|
|
x.Ingress = nil
|
|
} else {
|
|
yyv1894 := &x.Ingress
|
|
yym1895 := z.DecBinary()
|
|
_ = yym1895
|
|
if false {
|
|
} else {
|
|
h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv1894), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1893)
|
|
} // end switch yys1893
|
|
} // end for yyj1893
|
|
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 yyj1896 int
|
|
var yyb1896 bool
|
|
var yyhl1896 bool = l >= 0
|
|
yyj1896++
|
|
if yyhl1896 {
|
|
yyb1896 = yyj1896 > l
|
|
} else {
|
|
yyb1896 = r.CheckBreak()
|
|
}
|
|
if yyb1896 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Ingress = nil
|
|
} else {
|
|
yyv1897 := &x.Ingress
|
|
yym1898 := z.DecBinary()
|
|
_ = yym1898
|
|
if false {
|
|
} else {
|
|
h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv1897), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj1896++
|
|
if yyhl1896 {
|
|
yyb1896 = yyj1896 > l
|
|
} else {
|
|
yyb1896 = r.CheckBreak()
|
|
}
|
|
if yyb1896 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1896-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 {
|
|
yym1899 := z.EncBinary()
|
|
_ = yym1899
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1900 := !z.EncBinary()
|
|
yy2arr1900 := z.EncBasicHandle().StructToArray
|
|
var yyq1900 [2]bool
|
|
_, _, _ = yysep1900, yyq1900, yy2arr1900
|
|
const yyr1900 bool = false
|
|
yyq1900[0] = x.IP != ""
|
|
yyq1900[1] = x.Hostname != ""
|
|
var yynn1900 int
|
|
if yyr1900 || yy2arr1900 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn1900 = 0
|
|
for _, b := range yyq1900 {
|
|
if b {
|
|
yynn1900++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1900)
|
|
yynn1900 = 0
|
|
}
|
|
if yyr1900 || yy2arr1900 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1900[0] {
|
|
yym1902 := z.EncBinary()
|
|
_ = yym1902
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.IP))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1900[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("ip"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1903 := z.EncBinary()
|
|
_ = yym1903
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.IP))
|
|
}
|
|
}
|
|
}
|
|
if yyr1900 || yy2arr1900 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1900[1] {
|
|
yym1905 := z.EncBinary()
|
|
_ = yym1905
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Hostname))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1900[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("hostname"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1906 := z.EncBinary()
|
|
_ = yym1906
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Hostname))
|
|
}
|
|
}
|
|
}
|
|
if yyr1900 || yy2arr1900 {
|
|
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
|
|
yym1907 := z.DecBinary()
|
|
_ = yym1907
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1908 := r.ContainerType()
|
|
if yyct1908 == codecSelferValueTypeMap1234 {
|
|
yyl1908 := r.ReadMapStart()
|
|
if yyl1908 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1908, d)
|
|
}
|
|
} else if yyct1908 == codecSelferValueTypeArray1234 {
|
|
yyl1908 := r.ReadArrayStart()
|
|
if yyl1908 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1908, 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 yys1909Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1909Slc
|
|
var yyhl1909 bool = l >= 0
|
|
for yyj1909 := 0; ; yyj1909++ {
|
|
if yyhl1909 {
|
|
if yyj1909 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1909Slc = r.DecodeBytes(yys1909Slc, true, true)
|
|
yys1909 := string(yys1909Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1909 {
|
|
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, yys1909)
|
|
} // end switch yys1909
|
|
} // end for yyj1909
|
|
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 yyj1912 int
|
|
var yyb1912 bool
|
|
var yyhl1912 bool = l >= 0
|
|
yyj1912++
|
|
if yyhl1912 {
|
|
yyb1912 = yyj1912 > l
|
|
} else {
|
|
yyb1912 = r.CheckBreak()
|
|
}
|
|
if yyb1912 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.IP = ""
|
|
} else {
|
|
x.IP = string(r.DecodeString())
|
|
}
|
|
yyj1912++
|
|
if yyhl1912 {
|
|
yyb1912 = yyj1912 > l
|
|
} else {
|
|
yyb1912 = r.CheckBreak()
|
|
}
|
|
if yyb1912 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Hostname = ""
|
|
} else {
|
|
x.Hostname = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj1912++
|
|
if yyhl1912 {
|
|
yyb1912 = yyj1912 > l
|
|
} else {
|
|
yyb1912 = r.CheckBreak()
|
|
}
|
|
if yyb1912 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1912-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 {
|
|
yym1915 := z.EncBinary()
|
|
_ = yym1915
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1916 := !z.EncBinary()
|
|
yy2arr1916 := z.EncBasicHandle().StructToArray
|
|
var yyq1916 [7]bool
|
|
_, _, _ = yysep1916, yyq1916, yy2arr1916
|
|
const yyr1916 bool = false
|
|
yyq1916[0] = x.Type != ""
|
|
yyq1916[3] = x.ClusterIP != ""
|
|
yyq1916[4] = len(x.ExternalIPs) != 0
|
|
yyq1916[5] = x.LoadBalancerIP != ""
|
|
yyq1916[6] = x.SessionAffinity != ""
|
|
var yynn1916 int
|
|
if yyr1916 || yy2arr1916 {
|
|
r.EncodeArrayStart(7)
|
|
} else {
|
|
yynn1916 = 2
|
|
for _, b := range yyq1916 {
|
|
if b {
|
|
yynn1916++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1916)
|
|
yynn1916 = 0
|
|
}
|
|
if yyr1916 || yy2arr1916 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1916[0] {
|
|
x.Type.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1916[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("type"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Type.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1916 || yy2arr1916 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Ports == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1919 := z.EncBinary()
|
|
_ = yym1919
|
|
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 {
|
|
yym1920 := z.EncBinary()
|
|
_ = yym1920
|
|
if false {
|
|
} else {
|
|
h.encSliceServicePort(([]ServicePort)(x.Ports), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1916 || yy2arr1916 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Selector == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1922 := z.EncBinary()
|
|
_ = yym1922
|
|
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 {
|
|
yym1923 := z.EncBinary()
|
|
_ = yym1923
|
|
if false {
|
|
} else {
|
|
z.F.EncMapStringStringV(x.Selector, false, e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1916 || yy2arr1916 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1916[3] {
|
|
yym1925 := z.EncBinary()
|
|
_ = yym1925
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1916[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("clusterIP"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1926 := z.EncBinary()
|
|
_ = yym1926
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP))
|
|
}
|
|
}
|
|
}
|
|
if yyr1916 || yy2arr1916 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1916[4] {
|
|
if x.ExternalIPs == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1928 := z.EncBinary()
|
|
_ = yym1928
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.ExternalIPs, false, e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1916[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("externalIPs"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.ExternalIPs == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1929 := z.EncBinary()
|
|
_ = yym1929
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.ExternalIPs, false, e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1916 || yy2arr1916 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1916[5] {
|
|
yym1931 := z.EncBinary()
|
|
_ = yym1931
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1916[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("loadBalancerIP"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1932 := z.EncBinary()
|
|
_ = yym1932
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP))
|
|
}
|
|
}
|
|
}
|
|
if yyr1916 || yy2arr1916 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1916[6] {
|
|
x.SessionAffinity.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1916[6] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("sessionAffinity"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.SessionAffinity.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1916 || yy2arr1916 {
|
|
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
|
|
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 *ServiceSpec) 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 "type":
|
|
if r.TryDecodeAsNil() {
|
|
x.Type = ""
|
|
} else {
|
|
x.Type = ServiceType(r.DecodeString())
|
|
}
|
|
case "ports":
|
|
if r.TryDecodeAsNil() {
|
|
x.Ports = nil
|
|
} else {
|
|
yyv1938 := &x.Ports
|
|
yym1939 := z.DecBinary()
|
|
_ = yym1939
|
|
if false {
|
|
} else {
|
|
h.decSliceServicePort((*[]ServicePort)(yyv1938), d)
|
|
}
|
|
}
|
|
case "selector":
|
|
if r.TryDecodeAsNil() {
|
|
x.Selector = nil
|
|
} else {
|
|
yyv1940 := &x.Selector
|
|
yym1941 := z.DecBinary()
|
|
_ = yym1941
|
|
if false {
|
|
} else {
|
|
z.F.DecMapStringStringX(yyv1940, false, d)
|
|
}
|
|
}
|
|
case "clusterIP":
|
|
if r.TryDecodeAsNil() {
|
|
x.ClusterIP = ""
|
|
} else {
|
|
x.ClusterIP = string(r.DecodeString())
|
|
}
|
|
case "externalIPs":
|
|
if r.TryDecodeAsNil() {
|
|
x.ExternalIPs = nil
|
|
} else {
|
|
yyv1943 := &x.ExternalIPs
|
|
yym1944 := z.DecBinary()
|
|
_ = yym1944
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv1943, 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, yys1936)
|
|
} // end switch yys1936
|
|
} // end for yyj1936
|
|
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 yyj1947 int
|
|
var yyb1947 bool
|
|
var yyhl1947 bool = l >= 0
|
|
yyj1947++
|
|
if yyhl1947 {
|
|
yyb1947 = yyj1947 > l
|
|
} else {
|
|
yyb1947 = r.CheckBreak()
|
|
}
|
|
if yyb1947 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Type = ""
|
|
} else {
|
|
x.Type = ServiceType(r.DecodeString())
|
|
}
|
|
yyj1947++
|
|
if yyhl1947 {
|
|
yyb1947 = yyj1947 > l
|
|
} else {
|
|
yyb1947 = r.CheckBreak()
|
|
}
|
|
if yyb1947 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Ports = nil
|
|
} else {
|
|
yyv1949 := &x.Ports
|
|
yym1950 := z.DecBinary()
|
|
_ = yym1950
|
|
if false {
|
|
} else {
|
|
h.decSliceServicePort((*[]ServicePort)(yyv1949), d)
|
|
}
|
|
}
|
|
yyj1947++
|
|
if yyhl1947 {
|
|
yyb1947 = yyj1947 > l
|
|
} else {
|
|
yyb1947 = r.CheckBreak()
|
|
}
|
|
if yyb1947 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Selector = nil
|
|
} else {
|
|
yyv1951 := &x.Selector
|
|
yym1952 := z.DecBinary()
|
|
_ = yym1952
|
|
if false {
|
|
} else {
|
|
z.F.DecMapStringStringX(yyv1951, false, d)
|
|
}
|
|
}
|
|
yyj1947++
|
|
if yyhl1947 {
|
|
yyb1947 = yyj1947 > l
|
|
} else {
|
|
yyb1947 = r.CheckBreak()
|
|
}
|
|
if yyb1947 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ClusterIP = ""
|
|
} else {
|
|
x.ClusterIP = string(r.DecodeString())
|
|
}
|
|
yyj1947++
|
|
if yyhl1947 {
|
|
yyb1947 = yyj1947 > l
|
|
} else {
|
|
yyb1947 = r.CheckBreak()
|
|
}
|
|
if yyb1947 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ExternalIPs = nil
|
|
} else {
|
|
yyv1954 := &x.ExternalIPs
|
|
yym1955 := z.DecBinary()
|
|
_ = yym1955
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv1954, false, d)
|
|
}
|
|
}
|
|
yyj1947++
|
|
if yyhl1947 {
|
|
yyb1947 = yyj1947 > l
|
|
} else {
|
|
yyb1947 = r.CheckBreak()
|
|
}
|
|
if yyb1947 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.LoadBalancerIP = ""
|
|
} else {
|
|
x.LoadBalancerIP = string(r.DecodeString())
|
|
}
|
|
yyj1947++
|
|
if yyhl1947 {
|
|
yyb1947 = yyj1947 > l
|
|
} else {
|
|
yyb1947 = r.CheckBreak()
|
|
}
|
|
if yyb1947 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.SessionAffinity = ""
|
|
} else {
|
|
x.SessionAffinity = ServiceAffinity(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj1947++
|
|
if yyhl1947 {
|
|
yyb1947 = yyj1947 > l
|
|
} else {
|
|
yyb1947 = r.CheckBreak()
|
|
}
|
|
if yyb1947 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1947-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 {
|
|
yym1958 := z.EncBinary()
|
|
_ = yym1958
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1959 := !z.EncBinary()
|
|
yy2arr1959 := z.EncBasicHandle().StructToArray
|
|
var yyq1959 [5]bool
|
|
_, _, _ = yysep1959, yyq1959, yy2arr1959
|
|
const yyr1959 bool = false
|
|
var yynn1959 int
|
|
if yyr1959 || yy2arr1959 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn1959 = 5
|
|
for _, b := range yyq1959 {
|
|
if b {
|
|
yynn1959++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1959)
|
|
yynn1959 = 0
|
|
}
|
|
if yyr1959 || yy2arr1959 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1961 := z.EncBinary()
|
|
_ = yym1961
|
|
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)
|
|
yym1962 := z.EncBinary()
|
|
_ = yym1962
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
}
|
|
if yyr1959 || yy2arr1959 {
|
|
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 yyr1959 || yy2arr1959 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1965 := z.EncBinary()
|
|
_ = yym1965
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Port))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("port"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1966 := z.EncBinary()
|
|
_ = yym1966
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Port))
|
|
}
|
|
}
|
|
if yyr1959 || yy2arr1959 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy1968 := &x.TargetPort
|
|
yym1969 := z.EncBinary()
|
|
_ = yym1969
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1968) {
|
|
} else if !yym1969 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy1968)
|
|
} else {
|
|
z.EncFallback(yy1968)
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("targetPort"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1970 := &x.TargetPort
|
|
yym1971 := z.EncBinary()
|
|
_ = yym1971
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1970) {
|
|
} else if !yym1971 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy1970)
|
|
} else {
|
|
z.EncFallback(yy1970)
|
|
}
|
|
}
|
|
if yyr1959 || yy2arr1959 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1973 := z.EncBinary()
|
|
_ = yym1973
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.NodePort))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("nodePort"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1974 := z.EncBinary()
|
|
_ = yym1974
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.NodePort))
|
|
}
|
|
}
|
|
if yyr1959 || yy2arr1959 {
|
|
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
|
|
yym1975 := z.DecBinary()
|
|
_ = yym1975
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1976 := r.ContainerType()
|
|
if yyct1976 == codecSelferValueTypeMap1234 {
|
|
yyl1976 := r.ReadMapStart()
|
|
if yyl1976 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1976, d)
|
|
}
|
|
} else if yyct1976 == codecSelferValueTypeArray1234 {
|
|
yyl1976 := r.ReadArrayStart()
|
|
if yyl1976 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1976, 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 yys1977Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1977Slc
|
|
var yyhl1977 bool = l >= 0
|
|
for yyj1977 := 0; ; yyj1977++ {
|
|
if yyhl1977 {
|
|
if yyj1977 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1977Slc = r.DecodeBytes(yys1977Slc, true, true)
|
|
yys1977 := string(yys1977Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1977 {
|
|
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 {
|
|
yyv1981 := &x.TargetPort
|
|
yym1982 := z.DecBinary()
|
|
_ = yym1982
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1981) {
|
|
} else if !yym1982 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv1981)
|
|
} else {
|
|
z.DecFallback(yyv1981, false)
|
|
}
|
|
}
|
|
case "nodePort":
|
|
if r.TryDecodeAsNil() {
|
|
x.NodePort = 0
|
|
} else {
|
|
x.NodePort = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1977)
|
|
} // end switch yys1977
|
|
} // end for yyj1977
|
|
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 yyj1984 int
|
|
var yyb1984 bool
|
|
var yyhl1984 bool = l >= 0
|
|
yyj1984++
|
|
if yyhl1984 {
|
|
yyb1984 = yyj1984 > l
|
|
} else {
|
|
yyb1984 = r.CheckBreak()
|
|
}
|
|
if yyb1984 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
yyj1984++
|
|
if yyhl1984 {
|
|
yyb1984 = yyj1984 > l
|
|
} else {
|
|
yyb1984 = r.CheckBreak()
|
|
}
|
|
if yyb1984 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Protocol = ""
|
|
} else {
|
|
x.Protocol = Protocol(r.DecodeString())
|
|
}
|
|
yyj1984++
|
|
if yyhl1984 {
|
|
yyb1984 = yyj1984 > l
|
|
} else {
|
|
yyb1984 = r.CheckBreak()
|
|
}
|
|
if yyb1984 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Port = 0
|
|
} else {
|
|
x.Port = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
yyj1984++
|
|
if yyhl1984 {
|
|
yyb1984 = yyj1984 > l
|
|
} else {
|
|
yyb1984 = r.CheckBreak()
|
|
}
|
|
if yyb1984 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.TargetPort = pkg5_intstr.IntOrString{}
|
|
} else {
|
|
yyv1988 := &x.TargetPort
|
|
yym1989 := z.DecBinary()
|
|
_ = yym1989
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1988) {
|
|
} else if !yym1989 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv1988)
|
|
} else {
|
|
z.DecFallback(yyv1988, false)
|
|
}
|
|
}
|
|
yyj1984++
|
|
if yyhl1984 {
|
|
yyb1984 = yyj1984 > l
|
|
} else {
|
|
yyb1984 = r.CheckBreak()
|
|
}
|
|
if yyb1984 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.NodePort = 0
|
|
} else {
|
|
x.NodePort = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
for {
|
|
yyj1984++
|
|
if yyhl1984 {
|
|
yyb1984 = yyj1984 > l
|
|
} else {
|
|
yyb1984 = r.CheckBreak()
|
|
}
|
|
if yyb1984 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1984-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 {
|
|
yym1991 := z.EncBinary()
|
|
_ = yym1991
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1992 := !z.EncBinary()
|
|
yy2arr1992 := z.EncBasicHandle().StructToArray
|
|
var yyq1992 [5]bool
|
|
_, _, _ = yysep1992, yyq1992, yy2arr1992
|
|
const yyr1992 bool = false
|
|
yyq1992[0] = x.Kind != ""
|
|
yyq1992[1] = x.APIVersion != ""
|
|
yyq1992[2] = true
|
|
yyq1992[3] = true
|
|
yyq1992[4] = true
|
|
var yynn1992 int
|
|
if yyr1992 || yy2arr1992 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn1992 = 0
|
|
for _, b := range yyq1992 {
|
|
if b {
|
|
yynn1992++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1992)
|
|
yynn1992 = 0
|
|
}
|
|
if yyr1992 || yy2arr1992 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1992[0] {
|
|
yym1994 := z.EncBinary()
|
|
_ = yym1994
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1992[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1995 := z.EncBinary()
|
|
_ = yym1995
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr1992 || yy2arr1992 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1992[1] {
|
|
yym1997 := z.EncBinary()
|
|
_ = yym1997
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1992[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1998 := z.EncBinary()
|
|
_ = yym1998
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr1992 || yy2arr1992 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1992[2] {
|
|
yy2000 := &x.ObjectMeta
|
|
yy2000.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1992[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2001 := &x.ObjectMeta
|
|
yy2001.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1992 || yy2arr1992 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1992[3] {
|
|
yy2003 := &x.Spec
|
|
yy2003.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1992[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("spec"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2004 := &x.Spec
|
|
yy2004.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1992 || yy2arr1992 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1992[4] {
|
|
yy2006 := &x.Status
|
|
yy2006.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1992[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("status"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2007 := &x.Status
|
|
yy2007.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1992 || yy2arr1992 {
|
|
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
|
|
yym2008 := z.DecBinary()
|
|
_ = yym2008
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2009 := r.ContainerType()
|
|
if yyct2009 == codecSelferValueTypeMap1234 {
|
|
yyl2009 := r.ReadMapStart()
|
|
if yyl2009 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2009, d)
|
|
}
|
|
} else if yyct2009 == codecSelferValueTypeArray1234 {
|
|
yyl2009 := r.ReadArrayStart()
|
|
if yyl2009 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2009, 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 yys2010Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2010Slc
|
|
var yyhl2010 bool = l >= 0
|
|
for yyj2010 := 0; ; yyj2010++ {
|
|
if yyhl2010 {
|
|
if yyj2010 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2010Slc = r.DecodeBytes(yys2010Slc, true, true)
|
|
yys2010 := string(yys2010Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2010 {
|
|
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 {
|
|
yyv2013 := &x.ObjectMeta
|
|
yyv2013.CodecDecodeSelf(d)
|
|
}
|
|
case "spec":
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = ServiceSpec{}
|
|
} else {
|
|
yyv2014 := &x.Spec
|
|
yyv2014.CodecDecodeSelf(d)
|
|
}
|
|
case "status":
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = ServiceStatus{}
|
|
} else {
|
|
yyv2015 := &x.Status
|
|
yyv2015.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2010)
|
|
} // end switch yys2010
|
|
} // end for yyj2010
|
|
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 yyj2016 int
|
|
var yyb2016 bool
|
|
var yyhl2016 bool = l >= 0
|
|
yyj2016++
|
|
if yyhl2016 {
|
|
yyb2016 = yyj2016 > l
|
|
} else {
|
|
yyb2016 = r.CheckBreak()
|
|
}
|
|
if yyb2016 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2016++
|
|
if yyhl2016 {
|
|
yyb2016 = yyj2016 > l
|
|
} else {
|
|
yyb2016 = r.CheckBreak()
|
|
}
|
|
if yyb2016 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2016++
|
|
if yyhl2016 {
|
|
yyb2016 = yyj2016 > l
|
|
} else {
|
|
yyb2016 = r.CheckBreak()
|
|
}
|
|
if yyb2016 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv2019 := &x.ObjectMeta
|
|
yyv2019.CodecDecodeSelf(d)
|
|
}
|
|
yyj2016++
|
|
if yyhl2016 {
|
|
yyb2016 = yyj2016 > l
|
|
} else {
|
|
yyb2016 = r.CheckBreak()
|
|
}
|
|
if yyb2016 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = ServiceSpec{}
|
|
} else {
|
|
yyv2020 := &x.Spec
|
|
yyv2020.CodecDecodeSelf(d)
|
|
}
|
|
yyj2016++
|
|
if yyhl2016 {
|
|
yyb2016 = yyj2016 > l
|
|
} else {
|
|
yyb2016 = r.CheckBreak()
|
|
}
|
|
if yyb2016 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = ServiceStatus{}
|
|
} else {
|
|
yyv2021 := &x.Status
|
|
yyv2021.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj2016++
|
|
if yyhl2016 {
|
|
yyb2016 = yyj2016 > l
|
|
} else {
|
|
yyb2016 = r.CheckBreak()
|
|
}
|
|
if yyb2016 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2016-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 {
|
|
yym2022 := z.EncBinary()
|
|
_ = yym2022
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2023 := !z.EncBinary()
|
|
yy2arr2023 := z.EncBasicHandle().StructToArray
|
|
var yyq2023 [5]bool
|
|
_, _, _ = yysep2023, yyq2023, yy2arr2023
|
|
const yyr2023 bool = false
|
|
yyq2023[0] = x.Kind != ""
|
|
yyq2023[1] = x.APIVersion != ""
|
|
yyq2023[2] = true
|
|
yyq2023[4] = len(x.ImagePullSecrets) != 0
|
|
var yynn2023 int
|
|
if yyr2023 || yy2arr2023 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn2023 = 1
|
|
for _, b := range yyq2023 {
|
|
if b {
|
|
yynn2023++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2023)
|
|
yynn2023 = 0
|
|
}
|
|
if yyr2023 || yy2arr2023 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2023[0] {
|
|
yym2025 := z.EncBinary()
|
|
_ = yym2025
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2023[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2026 := z.EncBinary()
|
|
_ = yym2026
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2023 || yy2arr2023 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2023[1] {
|
|
yym2028 := z.EncBinary()
|
|
_ = yym2028
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2023[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2029 := z.EncBinary()
|
|
_ = yym2029
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2023 || yy2arr2023 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2023[2] {
|
|
yy2031 := &x.ObjectMeta
|
|
yy2031.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2023[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2032 := &x.ObjectMeta
|
|
yy2032.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2023 || yy2arr2023 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Secrets == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2034 := z.EncBinary()
|
|
_ = yym2034
|
|
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 {
|
|
yym2035 := z.EncBinary()
|
|
_ = yym2035
|
|
if false {
|
|
} else {
|
|
h.encSliceObjectReference(([]ObjectReference)(x.Secrets), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr2023 || yy2arr2023 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2023[4] {
|
|
if x.ImagePullSecrets == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2037 := z.EncBinary()
|
|
_ = yym2037
|
|
if false {
|
|
} else {
|
|
h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2023[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.ImagePullSecrets == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2038 := z.EncBinary()
|
|
_ = yym2038
|
|
if false {
|
|
} else {
|
|
h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr2023 || yy2arr2023 {
|
|
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
|
|
yym2039 := z.DecBinary()
|
|
_ = yym2039
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2040 := r.ContainerType()
|
|
if yyct2040 == codecSelferValueTypeMap1234 {
|
|
yyl2040 := r.ReadMapStart()
|
|
if yyl2040 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2040, d)
|
|
}
|
|
} else if yyct2040 == codecSelferValueTypeArray1234 {
|
|
yyl2040 := r.ReadArrayStart()
|
|
if yyl2040 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2040, 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 yys2041Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2041Slc
|
|
var yyhl2041 bool = l >= 0
|
|
for yyj2041 := 0; ; yyj2041++ {
|
|
if yyhl2041 {
|
|
if yyj2041 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2041Slc = r.DecodeBytes(yys2041Slc, true, true)
|
|
yys2041 := string(yys2041Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2041 {
|
|
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 {
|
|
yyv2044 := &x.ObjectMeta
|
|
yyv2044.CodecDecodeSelf(d)
|
|
}
|
|
case "secrets":
|
|
if r.TryDecodeAsNil() {
|
|
x.Secrets = nil
|
|
} else {
|
|
yyv2045 := &x.Secrets
|
|
yym2046 := z.DecBinary()
|
|
_ = yym2046
|
|
if false {
|
|
} else {
|
|
h.decSliceObjectReference((*[]ObjectReference)(yyv2045), d)
|
|
}
|
|
}
|
|
case "imagePullSecrets":
|
|
if r.TryDecodeAsNil() {
|
|
x.ImagePullSecrets = nil
|
|
} else {
|
|
yyv2047 := &x.ImagePullSecrets
|
|
yym2048 := z.DecBinary()
|
|
_ = yym2048
|
|
if false {
|
|
} else {
|
|
h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2047), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2041)
|
|
} // end switch yys2041
|
|
} // end for yyj2041
|
|
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 yyj2049 int
|
|
var yyb2049 bool
|
|
var yyhl2049 bool = l >= 0
|
|
yyj2049++
|
|
if yyhl2049 {
|
|
yyb2049 = yyj2049 > l
|
|
} else {
|
|
yyb2049 = r.CheckBreak()
|
|
}
|
|
if yyb2049 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2049++
|
|
if yyhl2049 {
|
|
yyb2049 = yyj2049 > l
|
|
} else {
|
|
yyb2049 = r.CheckBreak()
|
|
}
|
|
if yyb2049 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2049++
|
|
if yyhl2049 {
|
|
yyb2049 = yyj2049 > l
|
|
} else {
|
|
yyb2049 = r.CheckBreak()
|
|
}
|
|
if yyb2049 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv2052 := &x.ObjectMeta
|
|
yyv2052.CodecDecodeSelf(d)
|
|
}
|
|
yyj2049++
|
|
if yyhl2049 {
|
|
yyb2049 = yyj2049 > l
|
|
} else {
|
|
yyb2049 = r.CheckBreak()
|
|
}
|
|
if yyb2049 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Secrets = nil
|
|
} else {
|
|
yyv2053 := &x.Secrets
|
|
yym2054 := z.DecBinary()
|
|
_ = yym2054
|
|
if false {
|
|
} else {
|
|
h.decSliceObjectReference((*[]ObjectReference)(yyv2053), d)
|
|
}
|
|
}
|
|
yyj2049++
|
|
if yyhl2049 {
|
|
yyb2049 = yyj2049 > l
|
|
} else {
|
|
yyb2049 = r.CheckBreak()
|
|
}
|
|
if yyb2049 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ImagePullSecrets = nil
|
|
} else {
|
|
yyv2055 := &x.ImagePullSecrets
|
|
yym2056 := z.DecBinary()
|
|
_ = yym2056
|
|
if false {
|
|
} else {
|
|
h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2055), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj2049++
|
|
if yyhl2049 {
|
|
yyb2049 = yyj2049 > l
|
|
} else {
|
|
yyb2049 = r.CheckBreak()
|
|
}
|
|
if yyb2049 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2049-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 {
|
|
yym2057 := z.EncBinary()
|
|
_ = yym2057
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2058 := !z.EncBinary()
|
|
yy2arr2058 := z.EncBasicHandle().StructToArray
|
|
var yyq2058 [4]bool
|
|
_, _, _ = yysep2058, yyq2058, yy2arr2058
|
|
const yyr2058 bool = false
|
|
yyq2058[0] = x.Kind != ""
|
|
yyq2058[1] = x.APIVersion != ""
|
|
yyq2058[2] = true
|
|
var yynn2058 int
|
|
if yyr2058 || yy2arr2058 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn2058 = 1
|
|
for _, b := range yyq2058 {
|
|
if b {
|
|
yynn2058++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2058)
|
|
yynn2058 = 0
|
|
}
|
|
if yyr2058 || yy2arr2058 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2058[0] {
|
|
yym2060 := z.EncBinary()
|
|
_ = yym2060
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2058[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2061 := z.EncBinary()
|
|
_ = yym2061
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2058 || yy2arr2058 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2058[1] {
|
|
yym2063 := z.EncBinary()
|
|
_ = yym2063
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2058[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2064 := z.EncBinary()
|
|
_ = yym2064
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2058 || yy2arr2058 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2058[2] {
|
|
yy2066 := &x.ListMeta
|
|
yym2067 := z.EncBinary()
|
|
_ = yym2067
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy2066) {
|
|
} else {
|
|
z.EncFallback(yy2066)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2058[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2068 := &x.ListMeta
|
|
yym2069 := z.EncBinary()
|
|
_ = yym2069
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy2068) {
|
|
} else {
|
|
z.EncFallback(yy2068)
|
|
}
|
|
}
|
|
}
|
|
if yyr2058 || yy2arr2058 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2071 := z.EncBinary()
|
|
_ = yym2071
|
|
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 {
|
|
yym2072 := z.EncBinary()
|
|
_ = yym2072
|
|
if false {
|
|
} else {
|
|
h.encSliceServiceAccount(([]ServiceAccount)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr2058 || yy2arr2058 {
|
|
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
|
|
yym2073 := z.DecBinary()
|
|
_ = yym2073
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2074 := r.ContainerType()
|
|
if yyct2074 == codecSelferValueTypeMap1234 {
|
|
yyl2074 := r.ReadMapStart()
|
|
if yyl2074 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2074, d)
|
|
}
|
|
} else if yyct2074 == codecSelferValueTypeArray1234 {
|
|
yyl2074 := r.ReadArrayStart()
|
|
if yyl2074 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2074, 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 yys2075Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2075Slc
|
|
var yyhl2075 bool = l >= 0
|
|
for yyj2075 := 0; ; yyj2075++ {
|
|
if yyhl2075 {
|
|
if yyj2075 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2075Slc = r.DecodeBytes(yys2075Slc, true, true)
|
|
yys2075 := string(yys2075Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2075 {
|
|
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 {
|
|
yyv2078 := &x.ListMeta
|
|
yym2079 := z.DecBinary()
|
|
_ = yym2079
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2078) {
|
|
} else {
|
|
z.DecFallback(yyv2078, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv2080 := &x.Items
|
|
yym2081 := z.DecBinary()
|
|
_ = yym2081
|
|
if false {
|
|
} else {
|
|
h.decSliceServiceAccount((*[]ServiceAccount)(yyv2080), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2075)
|
|
} // end switch yys2075
|
|
} // end for yyj2075
|
|
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 yyj2082 int
|
|
var yyb2082 bool
|
|
var yyhl2082 bool = l >= 0
|
|
yyj2082++
|
|
if yyhl2082 {
|
|
yyb2082 = yyj2082 > l
|
|
} else {
|
|
yyb2082 = r.CheckBreak()
|
|
}
|
|
if yyb2082 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2082++
|
|
if yyhl2082 {
|
|
yyb2082 = yyj2082 > l
|
|
} else {
|
|
yyb2082 = r.CheckBreak()
|
|
}
|
|
if yyb2082 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2082++
|
|
if yyhl2082 {
|
|
yyb2082 = yyj2082 > l
|
|
} else {
|
|
yyb2082 = r.CheckBreak()
|
|
}
|
|
if yyb2082 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv2085 := &x.ListMeta
|
|
yym2086 := z.DecBinary()
|
|
_ = yym2086
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2085) {
|
|
} else {
|
|
z.DecFallback(yyv2085, false)
|
|
}
|
|
}
|
|
yyj2082++
|
|
if yyhl2082 {
|
|
yyb2082 = yyj2082 > l
|
|
} else {
|
|
yyb2082 = r.CheckBreak()
|
|
}
|
|
if yyb2082 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv2087 := &x.Items
|
|
yym2088 := z.DecBinary()
|
|
_ = yym2088
|
|
if false {
|
|
} else {
|
|
h.decSliceServiceAccount((*[]ServiceAccount)(yyv2087), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj2082++
|
|
if yyhl2082 {
|
|
yyb2082 = yyj2082 > l
|
|
} else {
|
|
yyb2082 = r.CheckBreak()
|
|
}
|
|
if yyb2082 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2082-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 {
|
|
yym2089 := z.EncBinary()
|
|
_ = yym2089
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2090 := !z.EncBinary()
|
|
yy2arr2090 := z.EncBasicHandle().StructToArray
|
|
var yyq2090 [4]bool
|
|
_, _, _ = yysep2090, yyq2090, yy2arr2090
|
|
const yyr2090 bool = false
|
|
yyq2090[0] = x.Kind != ""
|
|
yyq2090[1] = x.APIVersion != ""
|
|
yyq2090[2] = true
|
|
var yynn2090 int
|
|
if yyr2090 || yy2arr2090 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn2090 = 1
|
|
for _, b := range yyq2090 {
|
|
if b {
|
|
yynn2090++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2090)
|
|
yynn2090 = 0
|
|
}
|
|
if yyr2090 || yy2arr2090 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2090[0] {
|
|
yym2092 := z.EncBinary()
|
|
_ = yym2092
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2090[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2093 := z.EncBinary()
|
|
_ = yym2093
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2090 || yy2arr2090 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2090[1] {
|
|
yym2095 := z.EncBinary()
|
|
_ = yym2095
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2090[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2096 := z.EncBinary()
|
|
_ = yym2096
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2090 || yy2arr2090 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2090[2] {
|
|
yy2098 := &x.ObjectMeta
|
|
yy2098.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2090[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2099 := &x.ObjectMeta
|
|
yy2099.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2090 || yy2arr2090 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Subsets == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2101 := z.EncBinary()
|
|
_ = yym2101
|
|
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 {
|
|
yym2102 := z.EncBinary()
|
|
_ = yym2102
|
|
if false {
|
|
} else {
|
|
h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr2090 || yy2arr2090 {
|
|
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
|
|
yym2103 := z.DecBinary()
|
|
_ = yym2103
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2104 := r.ContainerType()
|
|
if yyct2104 == codecSelferValueTypeMap1234 {
|
|
yyl2104 := r.ReadMapStart()
|
|
if yyl2104 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2104, d)
|
|
}
|
|
} else if yyct2104 == codecSelferValueTypeArray1234 {
|
|
yyl2104 := r.ReadArrayStart()
|
|
if yyl2104 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2104, 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 yys2105Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2105Slc
|
|
var yyhl2105 bool = l >= 0
|
|
for yyj2105 := 0; ; yyj2105++ {
|
|
if yyhl2105 {
|
|
if yyj2105 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2105Slc = r.DecodeBytes(yys2105Slc, true, true)
|
|
yys2105 := string(yys2105Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2105 {
|
|
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 {
|
|
yyv2108 := &x.ObjectMeta
|
|
yyv2108.CodecDecodeSelf(d)
|
|
}
|
|
case "Subsets":
|
|
if r.TryDecodeAsNil() {
|
|
x.Subsets = nil
|
|
} else {
|
|
yyv2109 := &x.Subsets
|
|
yym2110 := z.DecBinary()
|
|
_ = yym2110
|
|
if false {
|
|
} else {
|
|
h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2109), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2105)
|
|
} // end switch yys2105
|
|
} // end for yyj2105
|
|
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 yyj2111 int
|
|
var yyb2111 bool
|
|
var yyhl2111 bool = l >= 0
|
|
yyj2111++
|
|
if yyhl2111 {
|
|
yyb2111 = yyj2111 > l
|
|
} else {
|
|
yyb2111 = r.CheckBreak()
|
|
}
|
|
if yyb2111 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2111++
|
|
if yyhl2111 {
|
|
yyb2111 = yyj2111 > l
|
|
} else {
|
|
yyb2111 = r.CheckBreak()
|
|
}
|
|
if yyb2111 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2111++
|
|
if yyhl2111 {
|
|
yyb2111 = yyj2111 > l
|
|
} else {
|
|
yyb2111 = r.CheckBreak()
|
|
}
|
|
if yyb2111 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv2114 := &x.ObjectMeta
|
|
yyv2114.CodecDecodeSelf(d)
|
|
}
|
|
yyj2111++
|
|
if yyhl2111 {
|
|
yyb2111 = yyj2111 > l
|
|
} else {
|
|
yyb2111 = r.CheckBreak()
|
|
}
|
|
if yyb2111 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Subsets = nil
|
|
} else {
|
|
yyv2115 := &x.Subsets
|
|
yym2116 := z.DecBinary()
|
|
_ = yym2116
|
|
if false {
|
|
} else {
|
|
h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2115), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj2111++
|
|
if yyhl2111 {
|
|
yyb2111 = yyj2111 > l
|
|
} else {
|
|
yyb2111 = r.CheckBreak()
|
|
}
|
|
if yyb2111 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2111-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 {
|
|
yym2117 := z.EncBinary()
|
|
_ = yym2117
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2118 := !z.EncBinary()
|
|
yy2arr2118 := z.EncBasicHandle().StructToArray
|
|
var yyq2118 [3]bool
|
|
_, _, _ = yysep2118, yyq2118, yy2arr2118
|
|
const yyr2118 bool = false
|
|
var yynn2118 int
|
|
if yyr2118 || yy2arr2118 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn2118 = 3
|
|
for _, b := range yyq2118 {
|
|
if b {
|
|
yynn2118++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2118)
|
|
yynn2118 = 0
|
|
}
|
|
if yyr2118 || yy2arr2118 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Addresses == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2120 := z.EncBinary()
|
|
_ = yym2120
|
|
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 {
|
|
yym2121 := z.EncBinary()
|
|
_ = yym2121
|
|
if false {
|
|
} else {
|
|
h.encSliceEndpointAddress(([]EndpointAddress)(x.Addresses), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr2118 || yy2arr2118 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.NotReadyAddresses == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2123 := z.EncBinary()
|
|
_ = yym2123
|
|
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 {
|
|
yym2124 := z.EncBinary()
|
|
_ = yym2124
|
|
if false {
|
|
} else {
|
|
h.encSliceEndpointAddress(([]EndpointAddress)(x.NotReadyAddresses), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr2118 || yy2arr2118 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Ports == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2126 := z.EncBinary()
|
|
_ = yym2126
|
|
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 {
|
|
yym2127 := z.EncBinary()
|
|
_ = yym2127
|
|
if false {
|
|
} else {
|
|
h.encSliceEndpointPort(([]EndpointPort)(x.Ports), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr2118 || yy2arr2118 {
|
|
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
|
|
yym2128 := z.DecBinary()
|
|
_ = yym2128
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2129 := r.ContainerType()
|
|
if yyct2129 == codecSelferValueTypeMap1234 {
|
|
yyl2129 := r.ReadMapStart()
|
|
if yyl2129 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2129, d)
|
|
}
|
|
} else if yyct2129 == codecSelferValueTypeArray1234 {
|
|
yyl2129 := r.ReadArrayStart()
|
|
if yyl2129 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2129, 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 yys2130Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2130Slc
|
|
var yyhl2130 bool = l >= 0
|
|
for yyj2130 := 0; ; yyj2130++ {
|
|
if yyhl2130 {
|
|
if yyj2130 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2130Slc = r.DecodeBytes(yys2130Slc, true, true)
|
|
yys2130 := string(yys2130Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2130 {
|
|
case "Addresses":
|
|
if r.TryDecodeAsNil() {
|
|
x.Addresses = nil
|
|
} else {
|
|
yyv2131 := &x.Addresses
|
|
yym2132 := z.DecBinary()
|
|
_ = yym2132
|
|
if false {
|
|
} else {
|
|
h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2131), d)
|
|
}
|
|
}
|
|
case "NotReadyAddresses":
|
|
if r.TryDecodeAsNil() {
|
|
x.NotReadyAddresses = nil
|
|
} else {
|
|
yyv2133 := &x.NotReadyAddresses
|
|
yym2134 := z.DecBinary()
|
|
_ = yym2134
|
|
if false {
|
|
} else {
|
|
h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2133), d)
|
|
}
|
|
}
|
|
case "Ports":
|
|
if r.TryDecodeAsNil() {
|
|
x.Ports = nil
|
|
} else {
|
|
yyv2135 := &x.Ports
|
|
yym2136 := z.DecBinary()
|
|
_ = yym2136
|
|
if false {
|
|
} else {
|
|
h.decSliceEndpointPort((*[]EndpointPort)(yyv2135), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2130)
|
|
} // end switch yys2130
|
|
} // end for yyj2130
|
|
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 yyj2137 int
|
|
var yyb2137 bool
|
|
var yyhl2137 bool = l >= 0
|
|
yyj2137++
|
|
if yyhl2137 {
|
|
yyb2137 = yyj2137 > l
|
|
} else {
|
|
yyb2137 = r.CheckBreak()
|
|
}
|
|
if yyb2137 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Addresses = nil
|
|
} else {
|
|
yyv2138 := &x.Addresses
|
|
yym2139 := z.DecBinary()
|
|
_ = yym2139
|
|
if false {
|
|
} else {
|
|
h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2138), d)
|
|
}
|
|
}
|
|
yyj2137++
|
|
if yyhl2137 {
|
|
yyb2137 = yyj2137 > l
|
|
} else {
|
|
yyb2137 = r.CheckBreak()
|
|
}
|
|
if yyb2137 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.NotReadyAddresses = nil
|
|
} else {
|
|
yyv2140 := &x.NotReadyAddresses
|
|
yym2141 := z.DecBinary()
|
|
_ = yym2141
|
|
if false {
|
|
} else {
|
|
h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2140), d)
|
|
}
|
|
}
|
|
yyj2137++
|
|
if yyhl2137 {
|
|
yyb2137 = yyj2137 > l
|
|
} else {
|
|
yyb2137 = r.CheckBreak()
|
|
}
|
|
if yyb2137 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Ports = nil
|
|
} else {
|
|
yyv2142 := &x.Ports
|
|
yym2143 := z.DecBinary()
|
|
_ = yym2143
|
|
if false {
|
|
} else {
|
|
h.decSliceEndpointPort((*[]EndpointPort)(yyv2142), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj2137++
|
|
if yyhl2137 {
|
|
yyb2137 = yyj2137 > l
|
|
} else {
|
|
yyb2137 = r.CheckBreak()
|
|
}
|
|
if yyb2137 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2137-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 {
|
|
yym2144 := z.EncBinary()
|
|
_ = yym2144
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2145 := !z.EncBinary()
|
|
yy2arr2145 := z.EncBasicHandle().StructToArray
|
|
var yyq2145 [2]bool
|
|
_, _, _ = yysep2145, yyq2145, yy2arr2145
|
|
const yyr2145 bool = false
|
|
var yynn2145 int
|
|
if yyr2145 || yy2arr2145 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn2145 = 2
|
|
for _, b := range yyq2145 {
|
|
if b {
|
|
yynn2145++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2145)
|
|
yynn2145 = 0
|
|
}
|
|
if yyr2145 || yy2arr2145 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2147 := z.EncBinary()
|
|
_ = yym2147
|
|
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)
|
|
yym2148 := z.EncBinary()
|
|
_ = yym2148
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.IP))
|
|
}
|
|
}
|
|
if yyr2145 || yy2arr2145 {
|
|
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 yyr2145 || yy2arr2145 {
|
|
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
|
|
yym2150 := z.DecBinary()
|
|
_ = yym2150
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2151 := r.ContainerType()
|
|
if yyct2151 == codecSelferValueTypeMap1234 {
|
|
yyl2151 := r.ReadMapStart()
|
|
if yyl2151 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2151, d)
|
|
}
|
|
} else if yyct2151 == codecSelferValueTypeArray1234 {
|
|
yyl2151 := r.ReadArrayStart()
|
|
if yyl2151 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2151, 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 yys2152Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2152Slc
|
|
var yyhl2152 bool = l >= 0
|
|
for yyj2152 := 0; ; yyj2152++ {
|
|
if yyhl2152 {
|
|
if yyj2152 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2152Slc = r.DecodeBytes(yys2152Slc, true, true)
|
|
yys2152 := string(yys2152Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2152 {
|
|
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, yys2152)
|
|
} // end switch yys2152
|
|
} // end for yyj2152
|
|
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 yyj2155 int
|
|
var yyb2155 bool
|
|
var yyhl2155 bool = l >= 0
|
|
yyj2155++
|
|
if yyhl2155 {
|
|
yyb2155 = yyj2155 > l
|
|
} else {
|
|
yyb2155 = r.CheckBreak()
|
|
}
|
|
if yyb2155 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.IP = ""
|
|
} else {
|
|
x.IP = string(r.DecodeString())
|
|
}
|
|
yyj2155++
|
|
if yyhl2155 {
|
|
yyb2155 = yyj2155 > l
|
|
} else {
|
|
yyb2155 = r.CheckBreak()
|
|
}
|
|
if yyb2155 {
|
|
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 {
|
|
yyj2155++
|
|
if yyhl2155 {
|
|
yyb2155 = yyj2155 > l
|
|
} else {
|
|
yyb2155 = r.CheckBreak()
|
|
}
|
|
if yyb2155 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2155-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 {
|
|
yym2158 := z.EncBinary()
|
|
_ = yym2158
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2159 := !z.EncBinary()
|
|
yy2arr2159 := z.EncBasicHandle().StructToArray
|
|
var yyq2159 [3]bool
|
|
_, _, _ = yysep2159, yyq2159, yy2arr2159
|
|
const yyr2159 bool = false
|
|
var yynn2159 int
|
|
if yyr2159 || yy2arr2159 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn2159 = 3
|
|
for _, b := range yyq2159 {
|
|
if b {
|
|
yynn2159++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2159)
|
|
yynn2159 = 0
|
|
}
|
|
if yyr2159 || yy2arr2159 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2161 := z.EncBinary()
|
|
_ = yym2161
|
|
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)
|
|
yym2162 := z.EncBinary()
|
|
_ = yym2162
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
}
|
|
if yyr2159 || yy2arr2159 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2164 := z.EncBinary()
|
|
_ = yym2164
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Port))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("Port"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2165 := z.EncBinary()
|
|
_ = yym2165
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Port))
|
|
}
|
|
}
|
|
if yyr2159 || yy2arr2159 {
|
|
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 yyr2159 || yy2arr2159 {
|
|
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
|
|
yym2167 := z.DecBinary()
|
|
_ = yym2167
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2168 := r.ContainerType()
|
|
if yyct2168 == codecSelferValueTypeMap1234 {
|
|
yyl2168 := r.ReadMapStart()
|
|
if yyl2168 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2168, d)
|
|
}
|
|
} else if yyct2168 == codecSelferValueTypeArray1234 {
|
|
yyl2168 := r.ReadArrayStart()
|
|
if yyl2168 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2168, 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 yys2169Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2169Slc
|
|
var yyhl2169 bool = l >= 0
|
|
for yyj2169 := 0; ; yyj2169++ {
|
|
if yyhl2169 {
|
|
if yyj2169 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2169Slc = r.DecodeBytes(yys2169Slc, true, true)
|
|
yys2169 := string(yys2169Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2169 {
|
|
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, yys2169)
|
|
} // end switch yys2169
|
|
} // end for yyj2169
|
|
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 yyj2173 int
|
|
var yyb2173 bool
|
|
var yyhl2173 bool = l >= 0
|
|
yyj2173++
|
|
if yyhl2173 {
|
|
yyb2173 = yyj2173 > l
|
|
} else {
|
|
yyb2173 = r.CheckBreak()
|
|
}
|
|
if yyb2173 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
yyj2173++
|
|
if yyhl2173 {
|
|
yyb2173 = yyj2173 > l
|
|
} else {
|
|
yyb2173 = r.CheckBreak()
|
|
}
|
|
if yyb2173 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Port = 0
|
|
} else {
|
|
x.Port = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
yyj2173++
|
|
if yyhl2173 {
|
|
yyb2173 = yyj2173 > l
|
|
} else {
|
|
yyb2173 = r.CheckBreak()
|
|
}
|
|
if yyb2173 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Protocol = ""
|
|
} else {
|
|
x.Protocol = Protocol(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj2173++
|
|
if yyhl2173 {
|
|
yyb2173 = yyj2173 > l
|
|
} else {
|
|
yyb2173 = r.CheckBreak()
|
|
}
|
|
if yyb2173 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2173-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 {
|
|
yym2177 := z.EncBinary()
|
|
_ = yym2177
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2178 := !z.EncBinary()
|
|
yy2arr2178 := z.EncBasicHandle().StructToArray
|
|
var yyq2178 [4]bool
|
|
_, _, _ = yysep2178, yyq2178, yy2arr2178
|
|
const yyr2178 bool = false
|
|
yyq2178[0] = x.Kind != ""
|
|
yyq2178[1] = x.APIVersion != ""
|
|
yyq2178[2] = true
|
|
var yynn2178 int
|
|
if yyr2178 || yy2arr2178 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn2178 = 1
|
|
for _, b := range yyq2178 {
|
|
if b {
|
|
yynn2178++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2178)
|
|
yynn2178 = 0
|
|
}
|
|
if yyr2178 || yy2arr2178 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2178[0] {
|
|
yym2180 := z.EncBinary()
|
|
_ = yym2180
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2178[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2181 := z.EncBinary()
|
|
_ = yym2181
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2178 || yy2arr2178 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2178[1] {
|
|
yym2183 := z.EncBinary()
|
|
_ = yym2183
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2178[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2184 := z.EncBinary()
|
|
_ = yym2184
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2178 || yy2arr2178 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2178[2] {
|
|
yy2186 := &x.ListMeta
|
|
yym2187 := z.EncBinary()
|
|
_ = yym2187
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy2186) {
|
|
} else {
|
|
z.EncFallback(yy2186)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2178[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2188 := &x.ListMeta
|
|
yym2189 := z.EncBinary()
|
|
_ = yym2189
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy2188) {
|
|
} else {
|
|
z.EncFallback(yy2188)
|
|
}
|
|
}
|
|
}
|
|
if yyr2178 || yy2arr2178 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2191 := z.EncBinary()
|
|
_ = yym2191
|
|
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 {
|
|
yym2192 := z.EncBinary()
|
|
_ = yym2192
|
|
if false {
|
|
} else {
|
|
h.encSliceEndpoints(([]Endpoints)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr2178 || yy2arr2178 {
|
|
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
|
|
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 *EndpointsList) 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 "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 {
|
|
yyv2198 := &x.ListMeta
|
|
yym2199 := z.DecBinary()
|
|
_ = yym2199
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2198) {
|
|
} else {
|
|
z.DecFallback(yyv2198, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv2200 := &x.Items
|
|
yym2201 := z.DecBinary()
|
|
_ = yym2201
|
|
if false {
|
|
} else {
|
|
h.decSliceEndpoints((*[]Endpoints)(yyv2200), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2195)
|
|
} // end switch yys2195
|
|
} // end for yyj2195
|
|
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 yyj2202 int
|
|
var yyb2202 bool
|
|
var yyhl2202 bool = l >= 0
|
|
yyj2202++
|
|
if yyhl2202 {
|
|
yyb2202 = yyj2202 > l
|
|
} else {
|
|
yyb2202 = r.CheckBreak()
|
|
}
|
|
if yyb2202 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2202++
|
|
if yyhl2202 {
|
|
yyb2202 = yyj2202 > l
|
|
} else {
|
|
yyb2202 = r.CheckBreak()
|
|
}
|
|
if yyb2202 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2202++
|
|
if yyhl2202 {
|
|
yyb2202 = yyj2202 > l
|
|
} else {
|
|
yyb2202 = r.CheckBreak()
|
|
}
|
|
if yyb2202 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv2205 := &x.ListMeta
|
|
yym2206 := z.DecBinary()
|
|
_ = yym2206
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2205) {
|
|
} else {
|
|
z.DecFallback(yyv2205, false)
|
|
}
|
|
}
|
|
yyj2202++
|
|
if yyhl2202 {
|
|
yyb2202 = yyj2202 > l
|
|
} else {
|
|
yyb2202 = r.CheckBreak()
|
|
}
|
|
if yyb2202 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv2207 := &x.Items
|
|
yym2208 := z.DecBinary()
|
|
_ = yym2208
|
|
if false {
|
|
} else {
|
|
h.decSliceEndpoints((*[]Endpoints)(yyv2207), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj2202++
|
|
if yyhl2202 {
|
|
yyb2202 = yyj2202 > l
|
|
} else {
|
|
yyb2202 = r.CheckBreak()
|
|
}
|
|
if yyb2202 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2202-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 {
|
|
yym2209 := z.EncBinary()
|
|
_ = yym2209
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2210 := !z.EncBinary()
|
|
yy2arr2210 := z.EncBasicHandle().StructToArray
|
|
var yyq2210 [4]bool
|
|
_, _, _ = yysep2210, yyq2210, yy2arr2210
|
|
const yyr2210 bool = false
|
|
yyq2210[0] = x.PodCIDR != ""
|
|
yyq2210[1] = x.ExternalID != ""
|
|
yyq2210[2] = x.ProviderID != ""
|
|
yyq2210[3] = x.Unschedulable != false
|
|
var yynn2210 int
|
|
if yyr2210 || yy2arr2210 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn2210 = 0
|
|
for _, b := range yyq2210 {
|
|
if b {
|
|
yynn2210++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2210)
|
|
yynn2210 = 0
|
|
}
|
|
if yyr2210 || yy2arr2210 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2210[0] {
|
|
yym2212 := z.EncBinary()
|
|
_ = yym2212
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2210[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("podCIDR"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2213 := z.EncBinary()
|
|
_ = yym2213
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR))
|
|
}
|
|
}
|
|
}
|
|
if yyr2210 || yy2arr2210 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2210[1] {
|
|
yym2215 := z.EncBinary()
|
|
_ = yym2215
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2210[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("externalID"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2216 := z.EncBinary()
|
|
_ = yym2216
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID))
|
|
}
|
|
}
|
|
}
|
|
if yyr2210 || yy2arr2210 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2210[2] {
|
|
yym2218 := z.EncBinary()
|
|
_ = yym2218
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2210[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("providerID"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2219 := z.EncBinary()
|
|
_ = yym2219
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID))
|
|
}
|
|
}
|
|
}
|
|
if yyr2210 || yy2arr2210 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2210[3] {
|
|
yym2221 := z.EncBinary()
|
|
_ = yym2221
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Unschedulable))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq2210[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("unschedulable"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2222 := z.EncBinary()
|
|
_ = yym2222
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Unschedulable))
|
|
}
|
|
}
|
|
}
|
|
if yyr2210 || yy2arr2210 {
|
|
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
|
|
yym2223 := z.DecBinary()
|
|
_ = yym2223
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2224 := r.ContainerType()
|
|
if yyct2224 == codecSelferValueTypeMap1234 {
|
|
yyl2224 := r.ReadMapStart()
|
|
if yyl2224 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2224, d)
|
|
}
|
|
} else if yyct2224 == codecSelferValueTypeArray1234 {
|
|
yyl2224 := r.ReadArrayStart()
|
|
if yyl2224 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2224, 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 yys2225Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2225Slc
|
|
var yyhl2225 bool = l >= 0
|
|
for yyj2225 := 0; ; yyj2225++ {
|
|
if yyhl2225 {
|
|
if yyj2225 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2225Slc = r.DecodeBytes(yys2225Slc, true, true)
|
|
yys2225 := string(yys2225Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2225 {
|
|
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, yys2225)
|
|
} // end switch yys2225
|
|
} // end for yyj2225
|
|
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 yyj2230 int
|
|
var yyb2230 bool
|
|
var yyhl2230 bool = l >= 0
|
|
yyj2230++
|
|
if yyhl2230 {
|
|
yyb2230 = yyj2230 > l
|
|
} else {
|
|
yyb2230 = r.CheckBreak()
|
|
}
|
|
if yyb2230 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.PodCIDR = ""
|
|
} else {
|
|
x.PodCIDR = string(r.DecodeString())
|
|
}
|
|
yyj2230++
|
|
if yyhl2230 {
|
|
yyb2230 = yyj2230 > l
|
|
} else {
|
|
yyb2230 = r.CheckBreak()
|
|
}
|
|
if yyb2230 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ExternalID = ""
|
|
} else {
|
|
x.ExternalID = string(r.DecodeString())
|
|
}
|
|
yyj2230++
|
|
if yyhl2230 {
|
|
yyb2230 = yyj2230 > l
|
|
} else {
|
|
yyb2230 = r.CheckBreak()
|
|
}
|
|
if yyb2230 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ProviderID = ""
|
|
} else {
|
|
x.ProviderID = string(r.DecodeString())
|
|
}
|
|
yyj2230++
|
|
if yyhl2230 {
|
|
yyb2230 = yyj2230 > l
|
|
} else {
|
|
yyb2230 = r.CheckBreak()
|
|
}
|
|
if yyb2230 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Unschedulable = false
|
|
} else {
|
|
x.Unschedulable = bool(r.DecodeBool())
|
|
}
|
|
for {
|
|
yyj2230++
|
|
if yyhl2230 {
|
|
yyb2230 = yyj2230 > l
|
|
} else {
|
|
yyb2230 = r.CheckBreak()
|
|
}
|
|
if yyb2230 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2230-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 {
|
|
yym2235 := z.EncBinary()
|
|
_ = yym2235
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2236 := !z.EncBinary()
|
|
yy2arr2236 := z.EncBasicHandle().StructToArray
|
|
var yyq2236 [1]bool
|
|
_, _, _ = yysep2236, yyq2236, yy2arr2236
|
|
const yyr2236 bool = false
|
|
var yynn2236 int
|
|
if yyr2236 || yy2arr2236 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn2236 = 1
|
|
for _, b := range yyq2236 {
|
|
if b {
|
|
yynn2236++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2236)
|
|
yynn2236 = 0
|
|
}
|
|
if yyr2236 || yy2arr2236 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2238 := z.EncBinary()
|
|
_ = yym2238
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Port))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("Port"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2239 := z.EncBinary()
|
|
_ = yym2239
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Port))
|
|
}
|
|
}
|
|
if yyr2236 || yy2arr2236 {
|
|
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
|
|
yym2240 := z.DecBinary()
|
|
_ = yym2240
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2241 := r.ContainerType()
|
|
if yyct2241 == codecSelferValueTypeMap1234 {
|
|
yyl2241 := r.ReadMapStart()
|
|
if yyl2241 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2241, d)
|
|
}
|
|
} else if yyct2241 == codecSelferValueTypeArray1234 {
|
|
yyl2241 := r.ReadArrayStart()
|
|
if yyl2241 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2241, 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 yys2242Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2242Slc
|
|
var yyhl2242 bool = l >= 0
|
|
for yyj2242 := 0; ; yyj2242++ {
|
|
if yyhl2242 {
|
|
if yyj2242 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2242Slc = r.DecodeBytes(yys2242Slc, true, true)
|
|
yys2242 := string(yys2242Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2242 {
|
|
case "Port":
|
|
if r.TryDecodeAsNil() {
|
|
x.Port = 0
|
|
} else {
|
|
x.Port = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2242)
|
|
} // end switch yys2242
|
|
} // end for yyj2242
|
|
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 yyj2244 int
|
|
var yyb2244 bool
|
|
var yyhl2244 bool = l >= 0
|
|
yyj2244++
|
|
if yyhl2244 {
|
|
yyb2244 = yyj2244 > l
|
|
} else {
|
|
yyb2244 = r.CheckBreak()
|
|
}
|
|
if yyb2244 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Port = 0
|
|
} else {
|
|
x.Port = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
for {
|
|
yyj2244++
|
|
if yyhl2244 {
|
|
yyb2244 = yyj2244 > l
|
|
} else {
|
|
yyb2244 = r.CheckBreak()
|
|
}
|
|
if yyb2244 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2244-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 {
|
|
yym2246 := z.EncBinary()
|
|
_ = yym2246
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2247 := !z.EncBinary()
|
|
yy2arr2247 := z.EncBasicHandle().StructToArray
|
|
var yyq2247 [1]bool
|
|
_, _, _ = yysep2247, yyq2247, yy2arr2247
|
|
const yyr2247 bool = false
|
|
yyq2247[0] = true
|
|
var yynn2247 int
|
|
if yyr2247 || yy2arr2247 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn2247 = 0
|
|
for _, b := range yyq2247 {
|
|
if b {
|
|
yynn2247++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2247)
|
|
yynn2247 = 0
|
|
}
|
|
if yyr2247 || yy2arr2247 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2247[0] {
|
|
yy2249 := &x.KubeletEndpoint
|
|
yy2249.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2247[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kubeletEndpoint"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2250 := &x.KubeletEndpoint
|
|
yy2250.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2247 || yy2arr2247 {
|
|
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
|
|
yym2251 := z.DecBinary()
|
|
_ = yym2251
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2252 := r.ContainerType()
|
|
if yyct2252 == codecSelferValueTypeMap1234 {
|
|
yyl2252 := r.ReadMapStart()
|
|
if yyl2252 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2252, d)
|
|
}
|
|
} else if yyct2252 == codecSelferValueTypeArray1234 {
|
|
yyl2252 := r.ReadArrayStart()
|
|
if yyl2252 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2252, 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 yys2253Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2253Slc
|
|
var yyhl2253 bool = l >= 0
|
|
for yyj2253 := 0; ; yyj2253++ {
|
|
if yyhl2253 {
|
|
if yyj2253 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2253Slc = r.DecodeBytes(yys2253Slc, true, true)
|
|
yys2253 := string(yys2253Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2253 {
|
|
case "kubeletEndpoint":
|
|
if r.TryDecodeAsNil() {
|
|
x.KubeletEndpoint = DaemonEndpoint{}
|
|
} else {
|
|
yyv2254 := &x.KubeletEndpoint
|
|
yyv2254.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2253)
|
|
} // end switch yys2253
|
|
} // end for yyj2253
|
|
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 yyj2255 int
|
|
var yyb2255 bool
|
|
var yyhl2255 bool = l >= 0
|
|
yyj2255++
|
|
if yyhl2255 {
|
|
yyb2255 = yyj2255 > l
|
|
} else {
|
|
yyb2255 = r.CheckBreak()
|
|
}
|
|
if yyb2255 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.KubeletEndpoint = DaemonEndpoint{}
|
|
} else {
|
|
yyv2256 := &x.KubeletEndpoint
|
|
yyv2256.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj2255++
|
|
if yyhl2255 {
|
|
yyb2255 = yyj2255 > l
|
|
} else {
|
|
yyb2255 = r.CheckBreak()
|
|
}
|
|
if yyb2255 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2255-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 {
|
|
yym2257 := z.EncBinary()
|
|
_ = yym2257
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2258 := !z.EncBinary()
|
|
yy2arr2258 := z.EncBasicHandle().StructToArray
|
|
var yyq2258 [8]bool
|
|
_, _, _ = yysep2258, yyq2258, yy2arr2258
|
|
const yyr2258 bool = false
|
|
var yynn2258 int
|
|
if yyr2258 || yy2arr2258 {
|
|
r.EncodeArrayStart(8)
|
|
} else {
|
|
yynn2258 = 8
|
|
for _, b := range yyq2258 {
|
|
if b {
|
|
yynn2258++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2258)
|
|
yynn2258 = 0
|
|
}
|
|
if yyr2258 || yy2arr2258 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2260 := z.EncBinary()
|
|
_ = yym2260
|
|
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)
|
|
yym2261 := z.EncBinary()
|
|
_ = yym2261
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.MachineID))
|
|
}
|
|
}
|
|
if yyr2258 || yy2arr2258 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2263 := z.EncBinary()
|
|
_ = yym2263
|
|
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)
|
|
yym2264 := z.EncBinary()
|
|
_ = yym2264
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.SystemUUID))
|
|
}
|
|
}
|
|
if yyr2258 || yy2arr2258 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2266 := z.EncBinary()
|
|
_ = yym2266
|
|
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)
|
|
yym2267 := z.EncBinary()
|
|
_ = yym2267
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.BootID))
|
|
}
|
|
}
|
|
if yyr2258 || yy2arr2258 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2269 := z.EncBinary()
|
|
_ = yym2269
|
|
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)
|
|
yym2270 := z.EncBinary()
|
|
_ = yym2270
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.KernelVersion))
|
|
}
|
|
}
|
|
if yyr2258 || yy2arr2258 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2272 := z.EncBinary()
|
|
_ = yym2272
|
|
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)
|
|
yym2273 := z.EncBinary()
|
|
_ = yym2273
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.OSImage))
|
|
}
|
|
}
|
|
if yyr2258 || yy2arr2258 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2275 := z.EncBinary()
|
|
_ = yym2275
|
|
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)
|
|
yym2276 := z.EncBinary()
|
|
_ = yym2276
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntimeVersion))
|
|
}
|
|
}
|
|
if yyr2258 || yy2arr2258 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2278 := z.EncBinary()
|
|
_ = yym2278
|
|
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)
|
|
yym2279 := z.EncBinary()
|
|
_ = yym2279
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.KubeletVersion))
|
|
}
|
|
}
|
|
if yyr2258 || yy2arr2258 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2281 := z.EncBinary()
|
|
_ = yym2281
|
|
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)
|
|
yym2282 := z.EncBinary()
|
|
_ = yym2282
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.KubeProxyVersion))
|
|
}
|
|
}
|
|
if yyr2258 || yy2arr2258 {
|
|
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
|
|
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 *NodeSystemInfo) 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 "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, yys2285)
|
|
} // end switch yys2285
|
|
} // end for yyj2285
|
|
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 yyj2294 int
|
|
var yyb2294 bool
|
|
var yyhl2294 bool = l >= 0
|
|
yyj2294++
|
|
if yyhl2294 {
|
|
yyb2294 = yyj2294 > l
|
|
} else {
|
|
yyb2294 = r.CheckBreak()
|
|
}
|
|
if yyb2294 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.MachineID = ""
|
|
} else {
|
|
x.MachineID = string(r.DecodeString())
|
|
}
|
|
yyj2294++
|
|
if yyhl2294 {
|
|
yyb2294 = yyj2294 > l
|
|
} else {
|
|
yyb2294 = r.CheckBreak()
|
|
}
|
|
if yyb2294 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.SystemUUID = ""
|
|
} else {
|
|
x.SystemUUID = string(r.DecodeString())
|
|
}
|
|
yyj2294++
|
|
if yyhl2294 {
|
|
yyb2294 = yyj2294 > l
|
|
} else {
|
|
yyb2294 = r.CheckBreak()
|
|
}
|
|
if yyb2294 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.BootID = ""
|
|
} else {
|
|
x.BootID = string(r.DecodeString())
|
|
}
|
|
yyj2294++
|
|
if yyhl2294 {
|
|
yyb2294 = yyj2294 > l
|
|
} else {
|
|
yyb2294 = r.CheckBreak()
|
|
}
|
|
if yyb2294 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.KernelVersion = ""
|
|
} else {
|
|
x.KernelVersion = string(r.DecodeString())
|
|
}
|
|
yyj2294++
|
|
if yyhl2294 {
|
|
yyb2294 = yyj2294 > l
|
|
} else {
|
|
yyb2294 = r.CheckBreak()
|
|
}
|
|
if yyb2294 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.OSImage = ""
|
|
} else {
|
|
x.OSImage = string(r.DecodeString())
|
|
}
|
|
yyj2294++
|
|
if yyhl2294 {
|
|
yyb2294 = yyj2294 > l
|
|
} else {
|
|
yyb2294 = r.CheckBreak()
|
|
}
|
|
if yyb2294 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ContainerRuntimeVersion = ""
|
|
} else {
|
|
x.ContainerRuntimeVersion = string(r.DecodeString())
|
|
}
|
|
yyj2294++
|
|
if yyhl2294 {
|
|
yyb2294 = yyj2294 > l
|
|
} else {
|
|
yyb2294 = r.CheckBreak()
|
|
}
|
|
if yyb2294 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.KubeletVersion = ""
|
|
} else {
|
|
x.KubeletVersion = string(r.DecodeString())
|
|
}
|
|
yyj2294++
|
|
if yyhl2294 {
|
|
yyb2294 = yyj2294 > l
|
|
} else {
|
|
yyb2294 = r.CheckBreak()
|
|
}
|
|
if yyb2294 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.KubeProxyVersion = ""
|
|
} else {
|
|
x.KubeProxyVersion = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj2294++
|
|
if yyhl2294 {
|
|
yyb2294 = yyj2294 > l
|
|
} else {
|
|
yyb2294 = r.CheckBreak()
|
|
}
|
|
if yyb2294 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2294-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 {
|
|
yym2303 := z.EncBinary()
|
|
_ = yym2303
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2304 := !z.EncBinary()
|
|
yy2arr2304 := z.EncBasicHandle().StructToArray
|
|
var yyq2304 [7]bool
|
|
_, _, _ = yysep2304, yyq2304, yy2arr2304
|
|
const yyr2304 bool = false
|
|
yyq2304[0] = len(x.Capacity) != 0
|
|
yyq2304[1] = len(x.Allocatable) != 0
|
|
yyq2304[2] = x.Phase != ""
|
|
yyq2304[3] = len(x.Conditions) != 0
|
|
yyq2304[4] = len(x.Addresses) != 0
|
|
yyq2304[5] = true
|
|
yyq2304[6] = true
|
|
var yynn2304 int
|
|
if yyr2304 || yy2arr2304 {
|
|
r.EncodeArrayStart(7)
|
|
} else {
|
|
yynn2304 = 0
|
|
for _, b := range yyq2304 {
|
|
if b {
|
|
yynn2304++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2304)
|
|
yynn2304 = 0
|
|
}
|
|
if yyr2304 || yy2arr2304 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2304[0] {
|
|
if x.Capacity == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Capacity.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2304[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 yyr2304 || yy2arr2304 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2304[1] {
|
|
if x.Allocatable == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Allocatable.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2304[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 yyr2304 || yy2arr2304 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2304[2] {
|
|
x.Phase.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2304[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("phase"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Phase.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2304 || yy2arr2304 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2304[3] {
|
|
if x.Conditions == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2309 := z.EncBinary()
|
|
_ = yym2309
|
|
if false {
|
|
} else {
|
|
h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2304[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("conditions"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Conditions == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2310 := z.EncBinary()
|
|
_ = yym2310
|
|
if false {
|
|
} else {
|
|
h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr2304 || yy2arr2304 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2304[4] {
|
|
if x.Addresses == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2312 := z.EncBinary()
|
|
_ = yym2312
|
|
if false {
|
|
} else {
|
|
h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2304[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("addresses"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Addresses == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2313 := z.EncBinary()
|
|
_ = yym2313
|
|
if false {
|
|
} else {
|
|
h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr2304 || yy2arr2304 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2304[5] {
|
|
yy2315 := &x.DaemonEndpoints
|
|
yy2315.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2304[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("daemonEndpoints"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2316 := &x.DaemonEndpoints
|
|
yy2316.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2304 || yy2arr2304 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2304[6] {
|
|
yy2318 := &x.NodeInfo
|
|
yy2318.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2304[6] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("nodeInfo"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2319 := &x.NodeInfo
|
|
yy2319.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2304 || yy2arr2304 {
|
|
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
|
|
yym2320 := z.DecBinary()
|
|
_ = yym2320
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2321 := r.ContainerType()
|
|
if yyct2321 == codecSelferValueTypeMap1234 {
|
|
yyl2321 := r.ReadMapStart()
|
|
if yyl2321 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2321, d)
|
|
}
|
|
} else if yyct2321 == codecSelferValueTypeArray1234 {
|
|
yyl2321 := r.ReadArrayStart()
|
|
if yyl2321 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2321, 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 yys2322Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2322Slc
|
|
var yyhl2322 bool = l >= 0
|
|
for yyj2322 := 0; ; yyj2322++ {
|
|
if yyhl2322 {
|
|
if yyj2322 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2322Slc = r.DecodeBytes(yys2322Slc, true, true)
|
|
yys2322 := string(yys2322Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2322 {
|
|
case "capacity":
|
|
if r.TryDecodeAsNil() {
|
|
x.Capacity = nil
|
|
} else {
|
|
yyv2323 := &x.Capacity
|
|
yyv2323.CodecDecodeSelf(d)
|
|
}
|
|
case "allocatable":
|
|
if r.TryDecodeAsNil() {
|
|
x.Allocatable = nil
|
|
} else {
|
|
yyv2324 := &x.Allocatable
|
|
yyv2324.CodecDecodeSelf(d)
|
|
}
|
|
case "phase":
|
|
if r.TryDecodeAsNil() {
|
|
x.Phase = ""
|
|
} else {
|
|
x.Phase = NodePhase(r.DecodeString())
|
|
}
|
|
case "conditions":
|
|
if r.TryDecodeAsNil() {
|
|
x.Conditions = nil
|
|
} else {
|
|
yyv2326 := &x.Conditions
|
|
yym2327 := z.DecBinary()
|
|
_ = yym2327
|
|
if false {
|
|
} else {
|
|
h.decSliceNodeCondition((*[]NodeCondition)(yyv2326), d)
|
|
}
|
|
}
|
|
case "addresses":
|
|
if r.TryDecodeAsNil() {
|
|
x.Addresses = nil
|
|
} else {
|
|
yyv2328 := &x.Addresses
|
|
yym2329 := z.DecBinary()
|
|
_ = yym2329
|
|
if false {
|
|
} else {
|
|
h.decSliceNodeAddress((*[]NodeAddress)(yyv2328), d)
|
|
}
|
|
}
|
|
case "daemonEndpoints":
|
|
if r.TryDecodeAsNil() {
|
|
x.DaemonEndpoints = NodeDaemonEndpoints{}
|
|
} else {
|
|
yyv2330 := &x.DaemonEndpoints
|
|
yyv2330.CodecDecodeSelf(d)
|
|
}
|
|
case "nodeInfo":
|
|
if r.TryDecodeAsNil() {
|
|
x.NodeInfo = NodeSystemInfo{}
|
|
} else {
|
|
yyv2331 := &x.NodeInfo
|
|
yyv2331.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2322)
|
|
} // end switch yys2322
|
|
} // end for yyj2322
|
|
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 yyj2332 int
|
|
var yyb2332 bool
|
|
var yyhl2332 bool = l >= 0
|
|
yyj2332++
|
|
if yyhl2332 {
|
|
yyb2332 = yyj2332 > l
|
|
} else {
|
|
yyb2332 = r.CheckBreak()
|
|
}
|
|
if yyb2332 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Capacity = nil
|
|
} else {
|
|
yyv2333 := &x.Capacity
|
|
yyv2333.CodecDecodeSelf(d)
|
|
}
|
|
yyj2332++
|
|
if yyhl2332 {
|
|
yyb2332 = yyj2332 > l
|
|
} else {
|
|
yyb2332 = r.CheckBreak()
|
|
}
|
|
if yyb2332 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Allocatable = nil
|
|
} else {
|
|
yyv2334 := &x.Allocatable
|
|
yyv2334.CodecDecodeSelf(d)
|
|
}
|
|
yyj2332++
|
|
if yyhl2332 {
|
|
yyb2332 = yyj2332 > l
|
|
} else {
|
|
yyb2332 = r.CheckBreak()
|
|
}
|
|
if yyb2332 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Phase = ""
|
|
} else {
|
|
x.Phase = NodePhase(r.DecodeString())
|
|
}
|
|
yyj2332++
|
|
if yyhl2332 {
|
|
yyb2332 = yyj2332 > l
|
|
} else {
|
|
yyb2332 = r.CheckBreak()
|
|
}
|
|
if yyb2332 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Conditions = nil
|
|
} else {
|
|
yyv2336 := &x.Conditions
|
|
yym2337 := z.DecBinary()
|
|
_ = yym2337
|
|
if false {
|
|
} else {
|
|
h.decSliceNodeCondition((*[]NodeCondition)(yyv2336), d)
|
|
}
|
|
}
|
|
yyj2332++
|
|
if yyhl2332 {
|
|
yyb2332 = yyj2332 > l
|
|
} else {
|
|
yyb2332 = r.CheckBreak()
|
|
}
|
|
if yyb2332 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Addresses = nil
|
|
} else {
|
|
yyv2338 := &x.Addresses
|
|
yym2339 := z.DecBinary()
|
|
_ = yym2339
|
|
if false {
|
|
} else {
|
|
h.decSliceNodeAddress((*[]NodeAddress)(yyv2338), d)
|
|
}
|
|
}
|
|
yyj2332++
|
|
if yyhl2332 {
|
|
yyb2332 = yyj2332 > l
|
|
} else {
|
|
yyb2332 = r.CheckBreak()
|
|
}
|
|
if yyb2332 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.DaemonEndpoints = NodeDaemonEndpoints{}
|
|
} else {
|
|
yyv2340 := &x.DaemonEndpoints
|
|
yyv2340.CodecDecodeSelf(d)
|
|
}
|
|
yyj2332++
|
|
if yyhl2332 {
|
|
yyb2332 = yyj2332 > l
|
|
} else {
|
|
yyb2332 = r.CheckBreak()
|
|
}
|
|
if yyb2332 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.NodeInfo = NodeSystemInfo{}
|
|
} else {
|
|
yyv2341 := &x.NodeInfo
|
|
yyv2341.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj2332++
|
|
if yyhl2332 {
|
|
yyb2332 = yyj2332 > l
|
|
} else {
|
|
yyb2332 = r.CheckBreak()
|
|
}
|
|
if yyb2332 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2332-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x NodePhase) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym2342 := z.EncBinary()
|
|
_ = yym2342
|
|
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
|
|
yym2343 := z.DecBinary()
|
|
_ = yym2343
|
|
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
|
|
yym2344 := z.EncBinary()
|
|
_ = yym2344
|
|
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
|
|
yym2345 := z.DecBinary()
|
|
_ = yym2345
|
|
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 {
|
|
yym2346 := z.EncBinary()
|
|
_ = yym2346
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2347 := !z.EncBinary()
|
|
yy2arr2347 := z.EncBasicHandle().StructToArray
|
|
var yyq2347 [6]bool
|
|
_, _, _ = yysep2347, yyq2347, yy2arr2347
|
|
const yyr2347 bool = false
|
|
yyq2347[2] = true
|
|
yyq2347[3] = true
|
|
yyq2347[4] = x.Reason != ""
|
|
yyq2347[5] = x.Message != ""
|
|
var yynn2347 int
|
|
if yyr2347 || yy2arr2347 {
|
|
r.EncodeArrayStart(6)
|
|
} else {
|
|
yynn2347 = 2
|
|
for _, b := range yyq2347 {
|
|
if b {
|
|
yynn2347++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2347)
|
|
yynn2347 = 0
|
|
}
|
|
if yyr2347 || yy2arr2347 {
|
|
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 yyr2347 || yy2arr2347 {
|
|
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 yyr2347 || yy2arr2347 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2347[2] {
|
|
yy2351 := &x.LastHeartbeatTime
|
|
yym2352 := z.EncBinary()
|
|
_ = yym2352
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy2351) {
|
|
} else if yym2352 {
|
|
z.EncBinaryMarshal(yy2351)
|
|
} else if !yym2352 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy2351)
|
|
} else {
|
|
z.EncFallback(yy2351)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2347[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("lastHeartbeatTime"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2353 := &x.LastHeartbeatTime
|
|
yym2354 := z.EncBinary()
|
|
_ = yym2354
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy2353) {
|
|
} else if yym2354 {
|
|
z.EncBinaryMarshal(yy2353)
|
|
} else if !yym2354 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy2353)
|
|
} else {
|
|
z.EncFallback(yy2353)
|
|
}
|
|
}
|
|
}
|
|
if yyr2347 || yy2arr2347 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2347[3] {
|
|
yy2356 := &x.LastTransitionTime
|
|
yym2357 := z.EncBinary()
|
|
_ = yym2357
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy2356) {
|
|
} else if yym2357 {
|
|
z.EncBinaryMarshal(yy2356)
|
|
} else if !yym2357 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy2356)
|
|
} else {
|
|
z.EncFallback(yy2356)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2347[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2358 := &x.LastTransitionTime
|
|
yym2359 := z.EncBinary()
|
|
_ = yym2359
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy2358) {
|
|
} else if yym2359 {
|
|
z.EncBinaryMarshal(yy2358)
|
|
} else if !yym2359 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy2358)
|
|
} else {
|
|
z.EncFallback(yy2358)
|
|
}
|
|
}
|
|
}
|
|
if yyr2347 || yy2arr2347 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2347[4] {
|
|
yym2361 := z.EncBinary()
|
|
_ = yym2361
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2347[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("reason"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2362 := z.EncBinary()
|
|
_ = yym2362
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
|
|
}
|
|
}
|
|
}
|
|
if yyr2347 || yy2arr2347 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2347[5] {
|
|
yym2364 := z.EncBinary()
|
|
_ = yym2364
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2347[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("message"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2365 := z.EncBinary()
|
|
_ = yym2365
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
}
|
|
}
|
|
if yyr2347 || yy2arr2347 {
|
|
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
|
|
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 *NodeCondition) 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 "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 {
|
|
yyv2371 := &x.LastHeartbeatTime
|
|
yym2372 := z.DecBinary()
|
|
_ = yym2372
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2371) {
|
|
} else if yym2372 {
|
|
z.DecBinaryUnmarshal(yyv2371)
|
|
} else if !yym2372 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv2371)
|
|
} else {
|
|
z.DecFallback(yyv2371, false)
|
|
}
|
|
}
|
|
case "lastTransitionTime":
|
|
if r.TryDecodeAsNil() {
|
|
x.LastTransitionTime = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv2373 := &x.LastTransitionTime
|
|
yym2374 := z.DecBinary()
|
|
_ = yym2374
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2373) {
|
|
} else if yym2374 {
|
|
z.DecBinaryUnmarshal(yyv2373)
|
|
} else if !yym2374 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv2373)
|
|
} else {
|
|
z.DecFallback(yyv2373, 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, yys2368)
|
|
} // end switch yys2368
|
|
} // end for yyj2368
|
|
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 yyj2377 int
|
|
var yyb2377 bool
|
|
var yyhl2377 bool = l >= 0
|
|
yyj2377++
|
|
if yyhl2377 {
|
|
yyb2377 = yyj2377 > l
|
|
} else {
|
|
yyb2377 = r.CheckBreak()
|
|
}
|
|
if yyb2377 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Type = ""
|
|
} else {
|
|
x.Type = NodeConditionType(r.DecodeString())
|
|
}
|
|
yyj2377++
|
|
if yyhl2377 {
|
|
yyb2377 = yyj2377 > l
|
|
} else {
|
|
yyb2377 = r.CheckBreak()
|
|
}
|
|
if yyb2377 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = ""
|
|
} else {
|
|
x.Status = ConditionStatus(r.DecodeString())
|
|
}
|
|
yyj2377++
|
|
if yyhl2377 {
|
|
yyb2377 = yyj2377 > l
|
|
} else {
|
|
yyb2377 = r.CheckBreak()
|
|
}
|
|
if yyb2377 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.LastHeartbeatTime = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv2380 := &x.LastHeartbeatTime
|
|
yym2381 := z.DecBinary()
|
|
_ = yym2381
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2380) {
|
|
} else if yym2381 {
|
|
z.DecBinaryUnmarshal(yyv2380)
|
|
} else if !yym2381 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv2380)
|
|
} else {
|
|
z.DecFallback(yyv2380, false)
|
|
}
|
|
}
|
|
yyj2377++
|
|
if yyhl2377 {
|
|
yyb2377 = yyj2377 > l
|
|
} else {
|
|
yyb2377 = r.CheckBreak()
|
|
}
|
|
if yyb2377 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.LastTransitionTime = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv2382 := &x.LastTransitionTime
|
|
yym2383 := z.DecBinary()
|
|
_ = yym2383
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2382) {
|
|
} else if yym2383 {
|
|
z.DecBinaryUnmarshal(yyv2382)
|
|
} else if !yym2383 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv2382)
|
|
} else {
|
|
z.DecFallback(yyv2382, false)
|
|
}
|
|
}
|
|
yyj2377++
|
|
if yyhl2377 {
|
|
yyb2377 = yyj2377 > l
|
|
} else {
|
|
yyb2377 = r.CheckBreak()
|
|
}
|
|
if yyb2377 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Reason = ""
|
|
} else {
|
|
x.Reason = string(r.DecodeString())
|
|
}
|
|
yyj2377++
|
|
if yyhl2377 {
|
|
yyb2377 = yyj2377 > l
|
|
} else {
|
|
yyb2377 = r.CheckBreak()
|
|
}
|
|
if yyb2377 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Message = ""
|
|
} else {
|
|
x.Message = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj2377++
|
|
if yyhl2377 {
|
|
yyb2377 = yyj2377 > l
|
|
} else {
|
|
yyb2377 = r.CheckBreak()
|
|
}
|
|
if yyb2377 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2377-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x NodeAddressType) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym2386 := z.EncBinary()
|
|
_ = yym2386
|
|
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
|
|
yym2387 := z.DecBinary()
|
|
_ = yym2387
|
|
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 {
|
|
yym2388 := z.EncBinary()
|
|
_ = yym2388
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2389 := !z.EncBinary()
|
|
yy2arr2389 := z.EncBasicHandle().StructToArray
|
|
var yyq2389 [2]bool
|
|
_, _, _ = yysep2389, yyq2389, yy2arr2389
|
|
const yyr2389 bool = false
|
|
var yynn2389 int
|
|
if yyr2389 || yy2arr2389 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn2389 = 2
|
|
for _, b := range yyq2389 {
|
|
if b {
|
|
yynn2389++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2389)
|
|
yynn2389 = 0
|
|
}
|
|
if yyr2389 || yy2arr2389 {
|
|
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 yyr2389 || yy2arr2389 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2392 := z.EncBinary()
|
|
_ = yym2392
|
|
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)
|
|
yym2393 := z.EncBinary()
|
|
_ = yym2393
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Address))
|
|
}
|
|
}
|
|
if yyr2389 || yy2arr2389 {
|
|
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
|
|
yym2394 := z.DecBinary()
|
|
_ = yym2394
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2395 := r.ContainerType()
|
|
if yyct2395 == codecSelferValueTypeMap1234 {
|
|
yyl2395 := r.ReadMapStart()
|
|
if yyl2395 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2395, d)
|
|
}
|
|
} else if yyct2395 == codecSelferValueTypeArray1234 {
|
|
yyl2395 := r.ReadArrayStart()
|
|
if yyl2395 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2395, 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 yys2396Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2396Slc
|
|
var yyhl2396 bool = l >= 0
|
|
for yyj2396 := 0; ; yyj2396++ {
|
|
if yyhl2396 {
|
|
if yyj2396 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2396Slc = r.DecodeBytes(yys2396Slc, true, true)
|
|
yys2396 := string(yys2396Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2396 {
|
|
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, yys2396)
|
|
} // end switch yys2396
|
|
} // end for yyj2396
|
|
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 yyj2399 int
|
|
var yyb2399 bool
|
|
var yyhl2399 bool = l >= 0
|
|
yyj2399++
|
|
if yyhl2399 {
|
|
yyb2399 = yyj2399 > l
|
|
} else {
|
|
yyb2399 = r.CheckBreak()
|
|
}
|
|
if yyb2399 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Type = ""
|
|
} else {
|
|
x.Type = NodeAddressType(r.DecodeString())
|
|
}
|
|
yyj2399++
|
|
if yyhl2399 {
|
|
yyb2399 = yyj2399 > l
|
|
} else {
|
|
yyb2399 = r.CheckBreak()
|
|
}
|
|
if yyb2399 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Address = ""
|
|
} else {
|
|
x.Address = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj2399++
|
|
if yyhl2399 {
|
|
yyb2399 = yyj2399 > l
|
|
} else {
|
|
yyb2399 = r.CheckBreak()
|
|
}
|
|
if yyb2399 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2399-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 {
|
|
yym2402 := z.EncBinary()
|
|
_ = yym2402
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2403 := !z.EncBinary()
|
|
yy2arr2403 := z.EncBasicHandle().StructToArray
|
|
var yyq2403 [1]bool
|
|
_, _, _ = yysep2403, yyq2403, yy2arr2403
|
|
const yyr2403 bool = false
|
|
yyq2403[0] = len(x.Capacity) != 0
|
|
var yynn2403 int
|
|
if yyr2403 || yy2arr2403 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn2403 = 0
|
|
for _, b := range yyq2403 {
|
|
if b {
|
|
yynn2403++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2403)
|
|
yynn2403 = 0
|
|
}
|
|
if yyr2403 || yy2arr2403 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2403[0] {
|
|
if x.Capacity == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Capacity.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2403[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 yyr2403 || yy2arr2403 {
|
|
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
|
|
yym2405 := z.DecBinary()
|
|
_ = yym2405
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2406 := r.ContainerType()
|
|
if yyct2406 == codecSelferValueTypeMap1234 {
|
|
yyl2406 := r.ReadMapStart()
|
|
if yyl2406 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2406, d)
|
|
}
|
|
} else if yyct2406 == codecSelferValueTypeArray1234 {
|
|
yyl2406 := r.ReadArrayStart()
|
|
if yyl2406 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2406, 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 yys2407Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2407Slc
|
|
var yyhl2407 bool = l >= 0
|
|
for yyj2407 := 0; ; yyj2407++ {
|
|
if yyhl2407 {
|
|
if yyj2407 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2407Slc = r.DecodeBytes(yys2407Slc, true, true)
|
|
yys2407 := string(yys2407Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2407 {
|
|
case "capacity":
|
|
if r.TryDecodeAsNil() {
|
|
x.Capacity = nil
|
|
} else {
|
|
yyv2408 := &x.Capacity
|
|
yyv2408.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2407)
|
|
} // end switch yys2407
|
|
} // end for yyj2407
|
|
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 yyj2409 int
|
|
var yyb2409 bool
|
|
var yyhl2409 bool = l >= 0
|
|
yyj2409++
|
|
if yyhl2409 {
|
|
yyb2409 = yyj2409 > l
|
|
} else {
|
|
yyb2409 = r.CheckBreak()
|
|
}
|
|
if yyb2409 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Capacity = nil
|
|
} else {
|
|
yyv2410 := &x.Capacity
|
|
yyv2410.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj2409++
|
|
if yyhl2409 {
|
|
yyb2409 = yyj2409 > l
|
|
} else {
|
|
yyb2409 = r.CheckBreak()
|
|
}
|
|
if yyb2409 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2409-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x ResourceName) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym2411 := z.EncBinary()
|
|
_ = yym2411
|
|
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
|
|
yym2412 := z.DecBinary()
|
|
_ = yym2412
|
|
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 {
|
|
yym2413 := z.EncBinary()
|
|
_ = yym2413
|
|
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
|
|
yym2414 := z.DecBinary()
|
|
_ = yym2414
|
|
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 {
|
|
yym2415 := z.EncBinary()
|
|
_ = yym2415
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2416 := !z.EncBinary()
|
|
yy2arr2416 := z.EncBasicHandle().StructToArray
|
|
var yyq2416 [5]bool
|
|
_, _, _ = yysep2416, yyq2416, yy2arr2416
|
|
const yyr2416 bool = false
|
|
yyq2416[0] = x.Kind != ""
|
|
yyq2416[1] = x.APIVersion != ""
|
|
yyq2416[2] = true
|
|
yyq2416[3] = true
|
|
yyq2416[4] = true
|
|
var yynn2416 int
|
|
if yyr2416 || yy2arr2416 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn2416 = 0
|
|
for _, b := range yyq2416 {
|
|
if b {
|
|
yynn2416++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2416)
|
|
yynn2416 = 0
|
|
}
|
|
if yyr2416 || yy2arr2416 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2416[0] {
|
|
yym2418 := z.EncBinary()
|
|
_ = yym2418
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2416[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2419 := z.EncBinary()
|
|
_ = yym2419
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2416 || yy2arr2416 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2416[1] {
|
|
yym2421 := z.EncBinary()
|
|
_ = yym2421
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2416[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2422 := z.EncBinary()
|
|
_ = yym2422
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2416 || yy2arr2416 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2416[2] {
|
|
yy2424 := &x.ObjectMeta
|
|
yy2424.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2416[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2425 := &x.ObjectMeta
|
|
yy2425.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2416 || yy2arr2416 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2416[3] {
|
|
yy2427 := &x.Spec
|
|
yy2427.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2416[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("spec"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2428 := &x.Spec
|
|
yy2428.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2416 || yy2arr2416 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2416[4] {
|
|
yy2430 := &x.Status
|
|
yy2430.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2416[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("status"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2431 := &x.Status
|
|
yy2431.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2416 || yy2arr2416 {
|
|
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
|
|
yym2432 := z.DecBinary()
|
|
_ = yym2432
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2433 := r.ContainerType()
|
|
if yyct2433 == codecSelferValueTypeMap1234 {
|
|
yyl2433 := r.ReadMapStart()
|
|
if yyl2433 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2433, d)
|
|
}
|
|
} else if yyct2433 == codecSelferValueTypeArray1234 {
|
|
yyl2433 := r.ReadArrayStart()
|
|
if yyl2433 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2433, 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 yys2434Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2434Slc
|
|
var yyhl2434 bool = l >= 0
|
|
for yyj2434 := 0; ; yyj2434++ {
|
|
if yyhl2434 {
|
|
if yyj2434 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2434Slc = r.DecodeBytes(yys2434Slc, true, true)
|
|
yys2434 := string(yys2434Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2434 {
|
|
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 {
|
|
yyv2437 := &x.ObjectMeta
|
|
yyv2437.CodecDecodeSelf(d)
|
|
}
|
|
case "spec":
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = NodeSpec{}
|
|
} else {
|
|
yyv2438 := &x.Spec
|
|
yyv2438.CodecDecodeSelf(d)
|
|
}
|
|
case "status":
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = NodeStatus{}
|
|
} else {
|
|
yyv2439 := &x.Status
|
|
yyv2439.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2434)
|
|
} // end switch yys2434
|
|
} // end for yyj2434
|
|
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 yyj2440 int
|
|
var yyb2440 bool
|
|
var yyhl2440 bool = l >= 0
|
|
yyj2440++
|
|
if yyhl2440 {
|
|
yyb2440 = yyj2440 > l
|
|
} else {
|
|
yyb2440 = r.CheckBreak()
|
|
}
|
|
if yyb2440 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2440++
|
|
if yyhl2440 {
|
|
yyb2440 = yyj2440 > l
|
|
} else {
|
|
yyb2440 = r.CheckBreak()
|
|
}
|
|
if yyb2440 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2440++
|
|
if yyhl2440 {
|
|
yyb2440 = yyj2440 > l
|
|
} else {
|
|
yyb2440 = r.CheckBreak()
|
|
}
|
|
if yyb2440 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv2443 := &x.ObjectMeta
|
|
yyv2443.CodecDecodeSelf(d)
|
|
}
|
|
yyj2440++
|
|
if yyhl2440 {
|
|
yyb2440 = yyj2440 > l
|
|
} else {
|
|
yyb2440 = r.CheckBreak()
|
|
}
|
|
if yyb2440 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = NodeSpec{}
|
|
} else {
|
|
yyv2444 := &x.Spec
|
|
yyv2444.CodecDecodeSelf(d)
|
|
}
|
|
yyj2440++
|
|
if yyhl2440 {
|
|
yyb2440 = yyj2440 > l
|
|
} else {
|
|
yyb2440 = r.CheckBreak()
|
|
}
|
|
if yyb2440 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = NodeStatus{}
|
|
} else {
|
|
yyv2445 := &x.Status
|
|
yyv2445.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj2440++
|
|
if yyhl2440 {
|
|
yyb2440 = yyj2440 > l
|
|
} else {
|
|
yyb2440 = r.CheckBreak()
|
|
}
|
|
if yyb2440 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2440-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 {
|
|
yym2446 := z.EncBinary()
|
|
_ = yym2446
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2447 := !z.EncBinary()
|
|
yy2arr2447 := z.EncBasicHandle().StructToArray
|
|
var yyq2447 [4]bool
|
|
_, _, _ = yysep2447, yyq2447, yy2arr2447
|
|
const yyr2447 bool = false
|
|
yyq2447[0] = x.Kind != ""
|
|
yyq2447[1] = x.APIVersion != ""
|
|
yyq2447[2] = true
|
|
var yynn2447 int
|
|
if yyr2447 || yy2arr2447 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn2447 = 1
|
|
for _, b := range yyq2447 {
|
|
if b {
|
|
yynn2447++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2447)
|
|
yynn2447 = 0
|
|
}
|
|
if yyr2447 || yy2arr2447 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2447[0] {
|
|
yym2449 := z.EncBinary()
|
|
_ = yym2449
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2447[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2450 := z.EncBinary()
|
|
_ = yym2450
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2447 || yy2arr2447 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2447[1] {
|
|
yym2452 := z.EncBinary()
|
|
_ = yym2452
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2447[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2453 := z.EncBinary()
|
|
_ = yym2453
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2447 || yy2arr2447 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2447[2] {
|
|
yy2455 := &x.ListMeta
|
|
yym2456 := z.EncBinary()
|
|
_ = yym2456
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy2455) {
|
|
} else {
|
|
z.EncFallback(yy2455)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2447[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2457 := &x.ListMeta
|
|
yym2458 := z.EncBinary()
|
|
_ = yym2458
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy2457) {
|
|
} else {
|
|
z.EncFallback(yy2457)
|
|
}
|
|
}
|
|
}
|
|
if yyr2447 || yy2arr2447 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2460 := z.EncBinary()
|
|
_ = yym2460
|
|
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 {
|
|
yym2461 := z.EncBinary()
|
|
_ = yym2461
|
|
if false {
|
|
} else {
|
|
h.encSliceNode(([]Node)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr2447 || yy2arr2447 {
|
|
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
|
|
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 *NodeList) 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 "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 {
|
|
yyv2467 := &x.ListMeta
|
|
yym2468 := z.DecBinary()
|
|
_ = yym2468
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2467) {
|
|
} else {
|
|
z.DecFallback(yyv2467, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv2469 := &x.Items
|
|
yym2470 := z.DecBinary()
|
|
_ = yym2470
|
|
if false {
|
|
} else {
|
|
h.decSliceNode((*[]Node)(yyv2469), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2464)
|
|
} // end switch yys2464
|
|
} // end for yyj2464
|
|
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 yyj2471 int
|
|
var yyb2471 bool
|
|
var yyhl2471 bool = l >= 0
|
|
yyj2471++
|
|
if yyhl2471 {
|
|
yyb2471 = yyj2471 > l
|
|
} else {
|
|
yyb2471 = r.CheckBreak()
|
|
}
|
|
if yyb2471 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2471++
|
|
if yyhl2471 {
|
|
yyb2471 = yyj2471 > l
|
|
} else {
|
|
yyb2471 = r.CheckBreak()
|
|
}
|
|
if yyb2471 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2471++
|
|
if yyhl2471 {
|
|
yyb2471 = yyj2471 > l
|
|
} else {
|
|
yyb2471 = r.CheckBreak()
|
|
}
|
|
if yyb2471 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv2474 := &x.ListMeta
|
|
yym2475 := z.DecBinary()
|
|
_ = yym2475
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2474) {
|
|
} else {
|
|
z.DecFallback(yyv2474, false)
|
|
}
|
|
}
|
|
yyj2471++
|
|
if yyhl2471 {
|
|
yyb2471 = yyj2471 > l
|
|
} else {
|
|
yyb2471 = r.CheckBreak()
|
|
}
|
|
if yyb2471 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv2476 := &x.Items
|
|
yym2477 := z.DecBinary()
|
|
_ = yym2477
|
|
if false {
|
|
} else {
|
|
h.decSliceNode((*[]Node)(yyv2476), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj2471++
|
|
if yyhl2471 {
|
|
yyb2471 = yyj2471 > l
|
|
} else {
|
|
yyb2471 = r.CheckBreak()
|
|
}
|
|
if yyb2471 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2471-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 {
|
|
yym2478 := z.EncBinary()
|
|
_ = yym2478
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2479 := !z.EncBinary()
|
|
yy2arr2479 := z.EncBasicHandle().StructToArray
|
|
var yyq2479 [1]bool
|
|
_, _, _ = yysep2479, yyq2479, yy2arr2479
|
|
const yyr2479 bool = false
|
|
var yynn2479 int
|
|
if yyr2479 || yy2arr2479 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn2479 = 1
|
|
for _, b := range yyq2479 {
|
|
if b {
|
|
yynn2479++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2479)
|
|
yynn2479 = 0
|
|
}
|
|
if yyr2479 || yy2arr2479 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Finalizers == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2481 := z.EncBinary()
|
|
_ = yym2481
|
|
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 {
|
|
yym2482 := z.EncBinary()
|
|
_ = yym2482
|
|
if false {
|
|
} else {
|
|
h.encSliceFinalizerName(([]FinalizerName)(x.Finalizers), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr2479 || yy2arr2479 {
|
|
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
|
|
yym2483 := z.DecBinary()
|
|
_ = yym2483
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2484 := r.ContainerType()
|
|
if yyct2484 == codecSelferValueTypeMap1234 {
|
|
yyl2484 := r.ReadMapStart()
|
|
if yyl2484 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2484, d)
|
|
}
|
|
} else if yyct2484 == codecSelferValueTypeArray1234 {
|
|
yyl2484 := r.ReadArrayStart()
|
|
if yyl2484 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2484, 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 yys2485Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2485Slc
|
|
var yyhl2485 bool = l >= 0
|
|
for yyj2485 := 0; ; yyj2485++ {
|
|
if yyhl2485 {
|
|
if yyj2485 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2485Slc = r.DecodeBytes(yys2485Slc, true, true)
|
|
yys2485 := string(yys2485Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2485 {
|
|
case "Finalizers":
|
|
if r.TryDecodeAsNil() {
|
|
x.Finalizers = nil
|
|
} else {
|
|
yyv2486 := &x.Finalizers
|
|
yym2487 := z.DecBinary()
|
|
_ = yym2487
|
|
if false {
|
|
} else {
|
|
h.decSliceFinalizerName((*[]FinalizerName)(yyv2486), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2485)
|
|
} // end switch yys2485
|
|
} // end for yyj2485
|
|
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 yyj2488 int
|
|
var yyb2488 bool
|
|
var yyhl2488 bool = l >= 0
|
|
yyj2488++
|
|
if yyhl2488 {
|
|
yyb2488 = yyj2488 > l
|
|
} else {
|
|
yyb2488 = r.CheckBreak()
|
|
}
|
|
if yyb2488 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Finalizers = nil
|
|
} else {
|
|
yyv2489 := &x.Finalizers
|
|
yym2490 := z.DecBinary()
|
|
_ = yym2490
|
|
if false {
|
|
} else {
|
|
h.decSliceFinalizerName((*[]FinalizerName)(yyv2489), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj2488++
|
|
if yyhl2488 {
|
|
yyb2488 = yyj2488 > l
|
|
} else {
|
|
yyb2488 = r.CheckBreak()
|
|
}
|
|
if yyb2488 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2488-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x FinalizerName) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym2491 := z.EncBinary()
|
|
_ = yym2491
|
|
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
|
|
yym2492 := z.DecBinary()
|
|
_ = yym2492
|
|
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 {
|
|
yym2493 := z.EncBinary()
|
|
_ = yym2493
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2494 := !z.EncBinary()
|
|
yy2arr2494 := z.EncBasicHandle().StructToArray
|
|
var yyq2494 [1]bool
|
|
_, _, _ = yysep2494, yyq2494, yy2arr2494
|
|
const yyr2494 bool = false
|
|
yyq2494[0] = x.Phase != ""
|
|
var yynn2494 int
|
|
if yyr2494 || yy2arr2494 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn2494 = 0
|
|
for _, b := range yyq2494 {
|
|
if b {
|
|
yynn2494++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2494)
|
|
yynn2494 = 0
|
|
}
|
|
if yyr2494 || yy2arr2494 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2494[0] {
|
|
x.Phase.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2494[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("phase"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Phase.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2494 || yy2arr2494 {
|
|
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
|
|
yym2496 := z.DecBinary()
|
|
_ = yym2496
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2497 := r.ContainerType()
|
|
if yyct2497 == codecSelferValueTypeMap1234 {
|
|
yyl2497 := r.ReadMapStart()
|
|
if yyl2497 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2497, d)
|
|
}
|
|
} else if yyct2497 == codecSelferValueTypeArray1234 {
|
|
yyl2497 := r.ReadArrayStart()
|
|
if yyl2497 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2497, 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 yys2498Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2498Slc
|
|
var yyhl2498 bool = l >= 0
|
|
for yyj2498 := 0; ; yyj2498++ {
|
|
if yyhl2498 {
|
|
if yyj2498 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2498Slc = r.DecodeBytes(yys2498Slc, true, true)
|
|
yys2498 := string(yys2498Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2498 {
|
|
case "phase":
|
|
if r.TryDecodeAsNil() {
|
|
x.Phase = ""
|
|
} else {
|
|
x.Phase = NamespacePhase(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2498)
|
|
} // end switch yys2498
|
|
} // end for yyj2498
|
|
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 yyj2500 int
|
|
var yyb2500 bool
|
|
var yyhl2500 bool = l >= 0
|
|
yyj2500++
|
|
if yyhl2500 {
|
|
yyb2500 = yyj2500 > l
|
|
} else {
|
|
yyb2500 = r.CheckBreak()
|
|
}
|
|
if yyb2500 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Phase = ""
|
|
} else {
|
|
x.Phase = NamespacePhase(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj2500++
|
|
if yyhl2500 {
|
|
yyb2500 = yyj2500 > l
|
|
} else {
|
|
yyb2500 = r.CheckBreak()
|
|
}
|
|
if yyb2500 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2500-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x NamespacePhase) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym2502 := z.EncBinary()
|
|
_ = yym2502
|
|
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
|
|
yym2503 := z.DecBinary()
|
|
_ = yym2503
|
|
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 {
|
|
yym2504 := z.EncBinary()
|
|
_ = yym2504
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2505 := !z.EncBinary()
|
|
yy2arr2505 := z.EncBasicHandle().StructToArray
|
|
var yyq2505 [5]bool
|
|
_, _, _ = yysep2505, yyq2505, yy2arr2505
|
|
const yyr2505 bool = false
|
|
yyq2505[0] = x.Kind != ""
|
|
yyq2505[1] = x.APIVersion != ""
|
|
yyq2505[2] = true
|
|
yyq2505[3] = true
|
|
yyq2505[4] = true
|
|
var yynn2505 int
|
|
if yyr2505 || yy2arr2505 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn2505 = 0
|
|
for _, b := range yyq2505 {
|
|
if b {
|
|
yynn2505++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2505)
|
|
yynn2505 = 0
|
|
}
|
|
if yyr2505 || yy2arr2505 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2505[0] {
|
|
yym2507 := z.EncBinary()
|
|
_ = yym2507
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2505[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2508 := z.EncBinary()
|
|
_ = yym2508
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2505 || yy2arr2505 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2505[1] {
|
|
yym2510 := z.EncBinary()
|
|
_ = yym2510
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2505[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2511 := z.EncBinary()
|
|
_ = yym2511
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2505 || yy2arr2505 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2505[2] {
|
|
yy2513 := &x.ObjectMeta
|
|
yy2513.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2505[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2514 := &x.ObjectMeta
|
|
yy2514.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2505 || yy2arr2505 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2505[3] {
|
|
yy2516 := &x.Spec
|
|
yy2516.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2505[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("spec"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2517 := &x.Spec
|
|
yy2517.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2505 || yy2arr2505 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2505[4] {
|
|
yy2519 := &x.Status
|
|
yy2519.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2505[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("status"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2520 := &x.Status
|
|
yy2520.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2505 || yy2arr2505 {
|
|
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
|
|
yym2521 := z.DecBinary()
|
|
_ = yym2521
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2522 := r.ContainerType()
|
|
if yyct2522 == codecSelferValueTypeMap1234 {
|
|
yyl2522 := r.ReadMapStart()
|
|
if yyl2522 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2522, d)
|
|
}
|
|
} else if yyct2522 == codecSelferValueTypeArray1234 {
|
|
yyl2522 := r.ReadArrayStart()
|
|
if yyl2522 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2522, 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 yys2523Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2523Slc
|
|
var yyhl2523 bool = l >= 0
|
|
for yyj2523 := 0; ; yyj2523++ {
|
|
if yyhl2523 {
|
|
if yyj2523 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2523Slc = r.DecodeBytes(yys2523Slc, true, true)
|
|
yys2523 := string(yys2523Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2523 {
|
|
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 {
|
|
yyv2526 := &x.ObjectMeta
|
|
yyv2526.CodecDecodeSelf(d)
|
|
}
|
|
case "spec":
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = NamespaceSpec{}
|
|
} else {
|
|
yyv2527 := &x.Spec
|
|
yyv2527.CodecDecodeSelf(d)
|
|
}
|
|
case "status":
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = NamespaceStatus{}
|
|
} else {
|
|
yyv2528 := &x.Status
|
|
yyv2528.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2523)
|
|
} // end switch yys2523
|
|
} // end for yyj2523
|
|
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 yyj2529 int
|
|
var yyb2529 bool
|
|
var yyhl2529 bool = l >= 0
|
|
yyj2529++
|
|
if yyhl2529 {
|
|
yyb2529 = yyj2529 > l
|
|
} else {
|
|
yyb2529 = r.CheckBreak()
|
|
}
|
|
if yyb2529 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2529++
|
|
if yyhl2529 {
|
|
yyb2529 = yyj2529 > l
|
|
} else {
|
|
yyb2529 = r.CheckBreak()
|
|
}
|
|
if yyb2529 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2529++
|
|
if yyhl2529 {
|
|
yyb2529 = yyj2529 > l
|
|
} else {
|
|
yyb2529 = r.CheckBreak()
|
|
}
|
|
if yyb2529 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv2532 := &x.ObjectMeta
|
|
yyv2532.CodecDecodeSelf(d)
|
|
}
|
|
yyj2529++
|
|
if yyhl2529 {
|
|
yyb2529 = yyj2529 > l
|
|
} else {
|
|
yyb2529 = r.CheckBreak()
|
|
}
|
|
if yyb2529 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = NamespaceSpec{}
|
|
} else {
|
|
yyv2533 := &x.Spec
|
|
yyv2533.CodecDecodeSelf(d)
|
|
}
|
|
yyj2529++
|
|
if yyhl2529 {
|
|
yyb2529 = yyj2529 > l
|
|
} else {
|
|
yyb2529 = r.CheckBreak()
|
|
}
|
|
if yyb2529 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = NamespaceStatus{}
|
|
} else {
|
|
yyv2534 := &x.Status
|
|
yyv2534.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj2529++
|
|
if yyhl2529 {
|
|
yyb2529 = yyj2529 > l
|
|
} else {
|
|
yyb2529 = r.CheckBreak()
|
|
}
|
|
if yyb2529 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2529-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 {
|
|
yym2535 := z.EncBinary()
|
|
_ = yym2535
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2536 := !z.EncBinary()
|
|
yy2arr2536 := z.EncBasicHandle().StructToArray
|
|
var yyq2536 [4]bool
|
|
_, _, _ = yysep2536, yyq2536, yy2arr2536
|
|
const yyr2536 bool = false
|
|
yyq2536[0] = x.Kind != ""
|
|
yyq2536[1] = x.APIVersion != ""
|
|
yyq2536[2] = true
|
|
var yynn2536 int
|
|
if yyr2536 || yy2arr2536 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn2536 = 1
|
|
for _, b := range yyq2536 {
|
|
if b {
|
|
yynn2536++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2536)
|
|
yynn2536 = 0
|
|
}
|
|
if yyr2536 || yy2arr2536 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2536[0] {
|
|
yym2538 := z.EncBinary()
|
|
_ = yym2538
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2536[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2539 := z.EncBinary()
|
|
_ = yym2539
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2536 || yy2arr2536 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2536[1] {
|
|
yym2541 := z.EncBinary()
|
|
_ = yym2541
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2536[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2542 := z.EncBinary()
|
|
_ = yym2542
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2536 || yy2arr2536 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2536[2] {
|
|
yy2544 := &x.ListMeta
|
|
yym2545 := z.EncBinary()
|
|
_ = yym2545
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy2544) {
|
|
} else {
|
|
z.EncFallback(yy2544)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2536[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2546 := &x.ListMeta
|
|
yym2547 := z.EncBinary()
|
|
_ = yym2547
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy2546) {
|
|
} else {
|
|
z.EncFallback(yy2546)
|
|
}
|
|
}
|
|
}
|
|
if yyr2536 || yy2arr2536 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2549 := z.EncBinary()
|
|
_ = yym2549
|
|
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 {
|
|
yym2550 := z.EncBinary()
|
|
_ = yym2550
|
|
if false {
|
|
} else {
|
|
h.encSliceNamespace(([]Namespace)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr2536 || yy2arr2536 {
|
|
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
|
|
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 *NamespaceList) 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 "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 {
|
|
yyv2556 := &x.ListMeta
|
|
yym2557 := z.DecBinary()
|
|
_ = yym2557
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2556) {
|
|
} else {
|
|
z.DecFallback(yyv2556, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv2558 := &x.Items
|
|
yym2559 := z.DecBinary()
|
|
_ = yym2559
|
|
if false {
|
|
} else {
|
|
h.decSliceNamespace((*[]Namespace)(yyv2558), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2553)
|
|
} // end switch yys2553
|
|
} // end for yyj2553
|
|
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 yyj2560 int
|
|
var yyb2560 bool
|
|
var yyhl2560 bool = l >= 0
|
|
yyj2560++
|
|
if yyhl2560 {
|
|
yyb2560 = yyj2560 > l
|
|
} else {
|
|
yyb2560 = r.CheckBreak()
|
|
}
|
|
if yyb2560 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2560++
|
|
if yyhl2560 {
|
|
yyb2560 = yyj2560 > l
|
|
} else {
|
|
yyb2560 = r.CheckBreak()
|
|
}
|
|
if yyb2560 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2560++
|
|
if yyhl2560 {
|
|
yyb2560 = yyj2560 > l
|
|
} else {
|
|
yyb2560 = r.CheckBreak()
|
|
}
|
|
if yyb2560 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv2563 := &x.ListMeta
|
|
yym2564 := z.DecBinary()
|
|
_ = yym2564
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2563) {
|
|
} else {
|
|
z.DecFallback(yyv2563, false)
|
|
}
|
|
}
|
|
yyj2560++
|
|
if yyhl2560 {
|
|
yyb2560 = yyj2560 > l
|
|
} else {
|
|
yyb2560 = r.CheckBreak()
|
|
}
|
|
if yyb2560 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv2565 := &x.Items
|
|
yym2566 := z.DecBinary()
|
|
_ = yym2566
|
|
if false {
|
|
} else {
|
|
h.decSliceNamespace((*[]Namespace)(yyv2565), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj2560++
|
|
if yyhl2560 {
|
|
yyb2560 = yyj2560 > l
|
|
} else {
|
|
yyb2560 = r.CheckBreak()
|
|
}
|
|
if yyb2560 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2560-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 {
|
|
yym2567 := z.EncBinary()
|
|
_ = yym2567
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2568 := !z.EncBinary()
|
|
yy2arr2568 := z.EncBasicHandle().StructToArray
|
|
var yyq2568 [4]bool
|
|
_, _, _ = yysep2568, yyq2568, yy2arr2568
|
|
const yyr2568 bool = false
|
|
yyq2568[0] = x.Kind != ""
|
|
yyq2568[1] = x.APIVersion != ""
|
|
yyq2568[2] = true
|
|
var yynn2568 int
|
|
if yyr2568 || yy2arr2568 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn2568 = 1
|
|
for _, b := range yyq2568 {
|
|
if b {
|
|
yynn2568++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2568)
|
|
yynn2568 = 0
|
|
}
|
|
if yyr2568 || yy2arr2568 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2568[0] {
|
|
yym2570 := z.EncBinary()
|
|
_ = yym2570
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2568[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2571 := z.EncBinary()
|
|
_ = yym2571
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2568 || yy2arr2568 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2568[1] {
|
|
yym2573 := z.EncBinary()
|
|
_ = yym2573
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2568[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2574 := z.EncBinary()
|
|
_ = yym2574
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2568 || yy2arr2568 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2568[2] {
|
|
yy2576 := &x.ObjectMeta
|
|
yy2576.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2568[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2577 := &x.ObjectMeta
|
|
yy2577.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2568 || yy2arr2568 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy2579 := &x.Target
|
|
yy2579.CodecEncodeSelf(e)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("target"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2580 := &x.Target
|
|
yy2580.CodecEncodeSelf(e)
|
|
}
|
|
if yyr2568 || yy2arr2568 {
|
|
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
|
|
yym2581 := z.DecBinary()
|
|
_ = yym2581
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2582 := r.ContainerType()
|
|
if yyct2582 == codecSelferValueTypeMap1234 {
|
|
yyl2582 := r.ReadMapStart()
|
|
if yyl2582 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2582, d)
|
|
}
|
|
} else if yyct2582 == codecSelferValueTypeArray1234 {
|
|
yyl2582 := r.ReadArrayStart()
|
|
if yyl2582 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2582, 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 yys2583Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2583Slc
|
|
var yyhl2583 bool = l >= 0
|
|
for yyj2583 := 0; ; yyj2583++ {
|
|
if yyhl2583 {
|
|
if yyj2583 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2583Slc = r.DecodeBytes(yys2583Slc, true, true)
|
|
yys2583 := string(yys2583Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2583 {
|
|
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 {
|
|
yyv2586 := &x.ObjectMeta
|
|
yyv2586.CodecDecodeSelf(d)
|
|
}
|
|
case "target":
|
|
if r.TryDecodeAsNil() {
|
|
x.Target = ObjectReference{}
|
|
} else {
|
|
yyv2587 := &x.Target
|
|
yyv2587.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2583)
|
|
} // end switch yys2583
|
|
} // end for yyj2583
|
|
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 yyj2588 int
|
|
var yyb2588 bool
|
|
var yyhl2588 bool = l >= 0
|
|
yyj2588++
|
|
if yyhl2588 {
|
|
yyb2588 = yyj2588 > l
|
|
} else {
|
|
yyb2588 = r.CheckBreak()
|
|
}
|
|
if yyb2588 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2588++
|
|
if yyhl2588 {
|
|
yyb2588 = yyj2588 > l
|
|
} else {
|
|
yyb2588 = r.CheckBreak()
|
|
}
|
|
if yyb2588 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2588++
|
|
if yyhl2588 {
|
|
yyb2588 = yyj2588 > l
|
|
} else {
|
|
yyb2588 = r.CheckBreak()
|
|
}
|
|
if yyb2588 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv2591 := &x.ObjectMeta
|
|
yyv2591.CodecDecodeSelf(d)
|
|
}
|
|
yyj2588++
|
|
if yyhl2588 {
|
|
yyb2588 = yyj2588 > l
|
|
} else {
|
|
yyb2588 = r.CheckBreak()
|
|
}
|
|
if yyb2588 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Target = ObjectReference{}
|
|
} else {
|
|
yyv2592 := &x.Target
|
|
yyv2592.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj2588++
|
|
if yyhl2588 {
|
|
yyb2588 = yyj2588 > l
|
|
} else {
|
|
yyb2588 = r.CheckBreak()
|
|
}
|
|
if yyb2588 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2588-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 {
|
|
yym2593 := z.EncBinary()
|
|
_ = yym2593
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2594 := !z.EncBinary()
|
|
yy2arr2594 := z.EncBasicHandle().StructToArray
|
|
var yyq2594 [3]bool
|
|
_, _, _ = yysep2594, yyq2594, yy2arr2594
|
|
const yyr2594 bool = false
|
|
yyq2594[0] = x.Kind != ""
|
|
yyq2594[1] = x.APIVersion != ""
|
|
var yynn2594 int
|
|
if yyr2594 || yy2arr2594 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn2594 = 1
|
|
for _, b := range yyq2594 {
|
|
if b {
|
|
yynn2594++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2594)
|
|
yynn2594 = 0
|
|
}
|
|
if yyr2594 || yy2arr2594 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2594[0] {
|
|
yym2596 := z.EncBinary()
|
|
_ = yym2596
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2594[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2597 := z.EncBinary()
|
|
_ = yym2597
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2594 || yy2arr2594 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2594[1] {
|
|
yym2599 := z.EncBinary()
|
|
_ = yym2599
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2594[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2600 := z.EncBinary()
|
|
_ = yym2600
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2594 || yy2arr2594 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.GracePeriodSeconds == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy2602 := *x.GracePeriodSeconds
|
|
yym2603 := z.EncBinary()
|
|
_ = yym2603
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy2602))
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("gracePeriodSeconds"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.GracePeriodSeconds == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy2604 := *x.GracePeriodSeconds
|
|
yym2605 := z.EncBinary()
|
|
_ = yym2605
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy2604))
|
|
}
|
|
}
|
|
}
|
|
if yyr2594 || yy2arr2594 {
|
|
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
|
|
yym2606 := z.DecBinary()
|
|
_ = yym2606
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2607 := r.ContainerType()
|
|
if yyct2607 == codecSelferValueTypeMap1234 {
|
|
yyl2607 := r.ReadMapStart()
|
|
if yyl2607 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2607, d)
|
|
}
|
|
} else if yyct2607 == codecSelferValueTypeArray1234 {
|
|
yyl2607 := r.ReadArrayStart()
|
|
if yyl2607 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2607, 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 yys2608Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2608Slc
|
|
var yyhl2608 bool = l >= 0
|
|
for yyj2608 := 0; ; yyj2608++ {
|
|
if yyhl2608 {
|
|
if yyj2608 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2608Slc = r.DecodeBytes(yys2608Slc, true, true)
|
|
yys2608 := string(yys2608Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2608 {
|
|
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)
|
|
}
|
|
yym2612 := z.DecBinary()
|
|
_ = yym2612
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2608)
|
|
} // end switch yys2608
|
|
} // end for yyj2608
|
|
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 yyj2613 int
|
|
var yyb2613 bool
|
|
var yyhl2613 bool = l >= 0
|
|
yyj2613++
|
|
if yyhl2613 {
|
|
yyb2613 = yyj2613 > l
|
|
} else {
|
|
yyb2613 = r.CheckBreak()
|
|
}
|
|
if yyb2613 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2613++
|
|
if yyhl2613 {
|
|
yyb2613 = yyj2613 > l
|
|
} else {
|
|
yyb2613 = r.CheckBreak()
|
|
}
|
|
if yyb2613 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2613++
|
|
if yyhl2613 {
|
|
yyb2613 = yyj2613 > l
|
|
} else {
|
|
yyb2613 = r.CheckBreak()
|
|
}
|
|
if yyb2613 {
|
|
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)
|
|
}
|
|
yym2617 := z.DecBinary()
|
|
_ = yym2617
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
for {
|
|
yyj2613++
|
|
if yyhl2613 {
|
|
yyb2613 = yyj2613 > l
|
|
} else {
|
|
yyb2613 = r.CheckBreak()
|
|
}
|
|
if yyb2613 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2613-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 {
|
|
yym2618 := z.EncBinary()
|
|
_ = yym2618
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2619 := !z.EncBinary()
|
|
yy2arr2619 := z.EncBasicHandle().StructToArray
|
|
var yyq2619 [4]bool
|
|
_, _, _ = yysep2619, yyq2619, yy2arr2619
|
|
const yyr2619 bool = false
|
|
yyq2619[0] = x.Kind != ""
|
|
yyq2619[1] = x.APIVersion != ""
|
|
var yynn2619 int
|
|
if yyr2619 || yy2arr2619 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn2619 = 2
|
|
for _, b := range yyq2619 {
|
|
if b {
|
|
yynn2619++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2619)
|
|
yynn2619 = 0
|
|
}
|
|
if yyr2619 || yy2arr2619 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2619[0] {
|
|
yym2621 := z.EncBinary()
|
|
_ = yym2621
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2619[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2622 := z.EncBinary()
|
|
_ = yym2622
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2619 || yy2arr2619 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2619[1] {
|
|
yym2624 := z.EncBinary()
|
|
_ = yym2624
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2619[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2625 := z.EncBinary()
|
|
_ = yym2625
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2619 || yy2arr2619 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2627 := z.EncBinary()
|
|
_ = yym2627
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Export))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("export"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2628 := z.EncBinary()
|
|
_ = yym2628
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Export))
|
|
}
|
|
}
|
|
if yyr2619 || yy2arr2619 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2630 := z.EncBinary()
|
|
_ = yym2630
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Exact))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("exact"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2631 := z.EncBinary()
|
|
_ = yym2631
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Exact))
|
|
}
|
|
}
|
|
if yyr2619 || yy2arr2619 {
|
|
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
|
|
yym2632 := z.DecBinary()
|
|
_ = yym2632
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2633 := r.ContainerType()
|
|
if yyct2633 == codecSelferValueTypeMap1234 {
|
|
yyl2633 := r.ReadMapStart()
|
|
if yyl2633 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2633, d)
|
|
}
|
|
} else if yyct2633 == codecSelferValueTypeArray1234 {
|
|
yyl2633 := r.ReadArrayStart()
|
|
if yyl2633 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2633, 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 yys2634Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2634Slc
|
|
var yyhl2634 bool = l >= 0
|
|
for yyj2634 := 0; ; yyj2634++ {
|
|
if yyhl2634 {
|
|
if yyj2634 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2634Slc = r.DecodeBytes(yys2634Slc, true, true)
|
|
yys2634 := string(yys2634Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2634 {
|
|
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, yys2634)
|
|
} // end switch yys2634
|
|
} // end for yyj2634
|
|
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 yyj2639 int
|
|
var yyb2639 bool
|
|
var yyhl2639 bool = l >= 0
|
|
yyj2639++
|
|
if yyhl2639 {
|
|
yyb2639 = yyj2639 > l
|
|
} else {
|
|
yyb2639 = r.CheckBreak()
|
|
}
|
|
if yyb2639 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2639++
|
|
if yyhl2639 {
|
|
yyb2639 = yyj2639 > l
|
|
} else {
|
|
yyb2639 = r.CheckBreak()
|
|
}
|
|
if yyb2639 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2639++
|
|
if yyhl2639 {
|
|
yyb2639 = yyj2639 > l
|
|
} else {
|
|
yyb2639 = r.CheckBreak()
|
|
}
|
|
if yyb2639 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Export = false
|
|
} else {
|
|
x.Export = bool(r.DecodeBool())
|
|
}
|
|
yyj2639++
|
|
if yyhl2639 {
|
|
yyb2639 = yyj2639 > l
|
|
} else {
|
|
yyb2639 = r.CheckBreak()
|
|
}
|
|
if yyb2639 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Exact = false
|
|
} else {
|
|
x.Exact = bool(r.DecodeBool())
|
|
}
|
|
for {
|
|
yyj2639++
|
|
if yyhl2639 {
|
|
yyb2639 = yyj2639 > l
|
|
} else {
|
|
yyb2639 = r.CheckBreak()
|
|
}
|
|
if yyb2639 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2639-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 {
|
|
yym2644 := z.EncBinary()
|
|
_ = yym2644
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2645 := !z.EncBinary()
|
|
yy2arr2645 := z.EncBasicHandle().StructToArray
|
|
var yyq2645 [7]bool
|
|
_, _, _ = yysep2645, yyq2645, yy2arr2645
|
|
const yyr2645 bool = false
|
|
yyq2645[0] = x.Kind != ""
|
|
yyq2645[1] = x.APIVersion != ""
|
|
var yynn2645 int
|
|
if yyr2645 || yy2arr2645 {
|
|
r.EncodeArrayStart(7)
|
|
} else {
|
|
yynn2645 = 5
|
|
for _, b := range yyq2645 {
|
|
if b {
|
|
yynn2645++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2645)
|
|
yynn2645 = 0
|
|
}
|
|
if yyr2645 || yy2arr2645 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2645[0] {
|
|
yym2647 := z.EncBinary()
|
|
_ = yym2647
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2645[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2648 := z.EncBinary()
|
|
_ = yym2648
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2645 || yy2arr2645 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2645[1] {
|
|
yym2650 := z.EncBinary()
|
|
_ = yym2650
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2645[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2651 := z.EncBinary()
|
|
_ = yym2651
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2645 || yy2arr2645 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.LabelSelector == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2653 := z.EncBinary()
|
|
_ = yym2653
|
|
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 {
|
|
yym2654 := z.EncBinary()
|
|
_ = yym2654
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x.LabelSelector) {
|
|
} else {
|
|
z.EncFallback(x.LabelSelector)
|
|
}
|
|
}
|
|
}
|
|
if yyr2645 || yy2arr2645 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.FieldSelector == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2656 := z.EncBinary()
|
|
_ = yym2656
|
|
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 {
|
|
yym2657 := z.EncBinary()
|
|
_ = yym2657
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x.FieldSelector) {
|
|
} else {
|
|
z.EncFallback(x.FieldSelector)
|
|
}
|
|
}
|
|
}
|
|
if yyr2645 || yy2arr2645 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2659 := z.EncBinary()
|
|
_ = yym2659
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Watch))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("Watch"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2660 := z.EncBinary()
|
|
_ = yym2660
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Watch))
|
|
}
|
|
}
|
|
if yyr2645 || yy2arr2645 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2662 := z.EncBinary()
|
|
_ = yym2662
|
|
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)
|
|
yym2663 := z.EncBinary()
|
|
_ = yym2663
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
|
|
}
|
|
}
|
|
if yyr2645 || yy2arr2645 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.TimeoutSeconds == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy2665 := *x.TimeoutSeconds
|
|
yym2666 := z.EncBinary()
|
|
_ = yym2666
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy2665))
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("TimeoutSeconds"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.TimeoutSeconds == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy2667 := *x.TimeoutSeconds
|
|
yym2668 := z.EncBinary()
|
|
_ = yym2668
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy2667))
|
|
}
|
|
}
|
|
}
|
|
if yyr2645 || yy2arr2645 {
|
|
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
|
|
yym2669 := z.DecBinary()
|
|
_ = yym2669
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2670 := r.ContainerType()
|
|
if yyct2670 == codecSelferValueTypeMap1234 {
|
|
yyl2670 := r.ReadMapStart()
|
|
if yyl2670 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2670, d)
|
|
}
|
|
} else if yyct2670 == codecSelferValueTypeArray1234 {
|
|
yyl2670 := r.ReadArrayStart()
|
|
if yyl2670 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2670, 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 yys2671Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2671Slc
|
|
var yyhl2671 bool = l >= 0
|
|
for yyj2671 := 0; ; yyj2671++ {
|
|
if yyhl2671 {
|
|
if yyj2671 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2671Slc = r.DecodeBytes(yys2671Slc, true, true)
|
|
yys2671 := string(yys2671Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2671 {
|
|
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 {
|
|
yyv2674 := &x.LabelSelector
|
|
yym2675 := z.DecBinary()
|
|
_ = yym2675
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2674) {
|
|
} else {
|
|
z.DecFallback(yyv2674, true)
|
|
}
|
|
}
|
|
case "FieldSelector":
|
|
if r.TryDecodeAsNil() {
|
|
x.FieldSelector = nil
|
|
} else {
|
|
yyv2676 := &x.FieldSelector
|
|
yym2677 := z.DecBinary()
|
|
_ = yym2677
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2676) {
|
|
} else {
|
|
z.DecFallback(yyv2676, 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)
|
|
}
|
|
yym2681 := z.DecBinary()
|
|
_ = yym2681
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2671)
|
|
} // end switch yys2671
|
|
} // end for yyj2671
|
|
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 yyj2682 int
|
|
var yyb2682 bool
|
|
var yyhl2682 bool = l >= 0
|
|
yyj2682++
|
|
if yyhl2682 {
|
|
yyb2682 = yyj2682 > l
|
|
} else {
|
|
yyb2682 = r.CheckBreak()
|
|
}
|
|
if yyb2682 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2682++
|
|
if yyhl2682 {
|
|
yyb2682 = yyj2682 > l
|
|
} else {
|
|
yyb2682 = r.CheckBreak()
|
|
}
|
|
if yyb2682 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2682++
|
|
if yyhl2682 {
|
|
yyb2682 = yyj2682 > l
|
|
} else {
|
|
yyb2682 = r.CheckBreak()
|
|
}
|
|
if yyb2682 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.LabelSelector = nil
|
|
} else {
|
|
yyv2685 := &x.LabelSelector
|
|
yym2686 := z.DecBinary()
|
|
_ = yym2686
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2685) {
|
|
} else {
|
|
z.DecFallback(yyv2685, true)
|
|
}
|
|
}
|
|
yyj2682++
|
|
if yyhl2682 {
|
|
yyb2682 = yyj2682 > l
|
|
} else {
|
|
yyb2682 = r.CheckBreak()
|
|
}
|
|
if yyb2682 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.FieldSelector = nil
|
|
} else {
|
|
yyv2687 := &x.FieldSelector
|
|
yym2688 := z.DecBinary()
|
|
_ = yym2688
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2687) {
|
|
} else {
|
|
z.DecFallback(yyv2687, true)
|
|
}
|
|
}
|
|
yyj2682++
|
|
if yyhl2682 {
|
|
yyb2682 = yyj2682 > l
|
|
} else {
|
|
yyb2682 = r.CheckBreak()
|
|
}
|
|
if yyb2682 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Watch = false
|
|
} else {
|
|
x.Watch = bool(r.DecodeBool())
|
|
}
|
|
yyj2682++
|
|
if yyhl2682 {
|
|
yyb2682 = yyj2682 > l
|
|
} else {
|
|
yyb2682 = r.CheckBreak()
|
|
}
|
|
if yyb2682 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ResourceVersion = ""
|
|
} else {
|
|
x.ResourceVersion = string(r.DecodeString())
|
|
}
|
|
yyj2682++
|
|
if yyhl2682 {
|
|
yyb2682 = yyj2682 > l
|
|
} else {
|
|
yyb2682 = r.CheckBreak()
|
|
}
|
|
if yyb2682 {
|
|
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)
|
|
}
|
|
yym2692 := z.DecBinary()
|
|
_ = yym2692
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
for {
|
|
yyj2682++
|
|
if yyhl2682 {
|
|
yyb2682 = yyj2682 > l
|
|
} else {
|
|
yyb2682 = r.CheckBreak()
|
|
}
|
|
if yyb2682 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2682-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 {
|
|
yym2693 := z.EncBinary()
|
|
_ = yym2693
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2694 := !z.EncBinary()
|
|
yy2arr2694 := z.EncBasicHandle().StructToArray
|
|
var yyq2694 [10]bool
|
|
_, _, _ = yysep2694, yyq2694, yy2arr2694
|
|
const yyr2694 bool = false
|
|
yyq2694[0] = x.Kind != ""
|
|
yyq2694[1] = x.APIVersion != ""
|
|
var yynn2694 int
|
|
if yyr2694 || yy2arr2694 {
|
|
r.EncodeArrayStart(10)
|
|
} else {
|
|
yynn2694 = 8
|
|
for _, b := range yyq2694 {
|
|
if b {
|
|
yynn2694++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2694)
|
|
yynn2694 = 0
|
|
}
|
|
if yyr2694 || yy2arr2694 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2694[0] {
|
|
yym2696 := z.EncBinary()
|
|
_ = yym2696
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2694[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2697 := z.EncBinary()
|
|
_ = yym2697
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2694 || yy2arr2694 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2694[1] {
|
|
yym2699 := z.EncBinary()
|
|
_ = yym2699
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2694[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2700 := z.EncBinary()
|
|
_ = yym2700
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2694 || yy2arr2694 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2702 := z.EncBinary()
|
|
_ = yym2702
|
|
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)
|
|
yym2703 := z.EncBinary()
|
|
_ = yym2703
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Container))
|
|
}
|
|
}
|
|
if yyr2694 || yy2arr2694 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2705 := z.EncBinary()
|
|
_ = yym2705
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Follow))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("Follow"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2706 := z.EncBinary()
|
|
_ = yym2706
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Follow))
|
|
}
|
|
}
|
|
if yyr2694 || yy2arr2694 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2708 := z.EncBinary()
|
|
_ = yym2708
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Previous))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("Previous"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2709 := z.EncBinary()
|
|
_ = yym2709
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Previous))
|
|
}
|
|
}
|
|
if yyr2694 || yy2arr2694 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.SinceSeconds == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy2711 := *x.SinceSeconds
|
|
yym2712 := z.EncBinary()
|
|
_ = yym2712
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy2711))
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("SinceSeconds"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.SinceSeconds == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy2713 := *x.SinceSeconds
|
|
yym2714 := z.EncBinary()
|
|
_ = yym2714
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy2713))
|
|
}
|
|
}
|
|
}
|
|
if yyr2694 || yy2arr2694 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.SinceTime == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2716 := z.EncBinary()
|
|
_ = yym2716
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x.SinceTime) {
|
|
} else if yym2716 {
|
|
z.EncBinaryMarshal(x.SinceTime)
|
|
} else if !yym2716 && 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 {
|
|
yym2717 := z.EncBinary()
|
|
_ = yym2717
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x.SinceTime) {
|
|
} else if yym2717 {
|
|
z.EncBinaryMarshal(x.SinceTime)
|
|
} else if !yym2717 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(x.SinceTime)
|
|
} else {
|
|
z.EncFallback(x.SinceTime)
|
|
}
|
|
}
|
|
}
|
|
if yyr2694 || yy2arr2694 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2719 := z.EncBinary()
|
|
_ = yym2719
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Timestamps))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("Timestamps"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2720 := z.EncBinary()
|
|
_ = yym2720
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Timestamps))
|
|
}
|
|
}
|
|
if yyr2694 || yy2arr2694 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.TailLines == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy2722 := *x.TailLines
|
|
yym2723 := z.EncBinary()
|
|
_ = yym2723
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy2722))
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("TailLines"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.TailLines == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy2724 := *x.TailLines
|
|
yym2725 := z.EncBinary()
|
|
_ = yym2725
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy2724))
|
|
}
|
|
}
|
|
}
|
|
if yyr2694 || yy2arr2694 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.LimitBytes == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy2727 := *x.LimitBytes
|
|
yym2728 := z.EncBinary()
|
|
_ = yym2728
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy2727))
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("LimitBytes"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.LimitBytes == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy2729 := *x.LimitBytes
|
|
yym2730 := z.EncBinary()
|
|
_ = yym2730
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy2729))
|
|
}
|
|
}
|
|
}
|
|
if yyr2694 || yy2arr2694 {
|
|
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
|
|
yym2731 := z.DecBinary()
|
|
_ = yym2731
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2732 := r.ContainerType()
|
|
if yyct2732 == codecSelferValueTypeMap1234 {
|
|
yyl2732 := r.ReadMapStart()
|
|
if yyl2732 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2732, d)
|
|
}
|
|
} else if yyct2732 == codecSelferValueTypeArray1234 {
|
|
yyl2732 := r.ReadArrayStart()
|
|
if yyl2732 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2732, 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 yys2733Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2733Slc
|
|
var yyhl2733 bool = l >= 0
|
|
for yyj2733 := 0; ; yyj2733++ {
|
|
if yyhl2733 {
|
|
if yyj2733 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2733Slc = r.DecodeBytes(yys2733Slc, true, true)
|
|
yys2733 := string(yys2733Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2733 {
|
|
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)
|
|
}
|
|
yym2740 := z.DecBinary()
|
|
_ = yym2740
|
|
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)
|
|
}
|
|
yym2742 := z.DecBinary()
|
|
_ = yym2742
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x.SinceTime) {
|
|
} else if yym2742 {
|
|
z.DecBinaryUnmarshal(x.SinceTime)
|
|
} else if !yym2742 && 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)
|
|
}
|
|
yym2745 := z.DecBinary()
|
|
_ = yym2745
|
|
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)
|
|
}
|
|
yym2747 := z.DecBinary()
|
|
_ = yym2747
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2733)
|
|
} // end switch yys2733
|
|
} // end for yyj2733
|
|
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 yyj2748 int
|
|
var yyb2748 bool
|
|
var yyhl2748 bool = l >= 0
|
|
yyj2748++
|
|
if yyhl2748 {
|
|
yyb2748 = yyj2748 > l
|
|
} else {
|
|
yyb2748 = r.CheckBreak()
|
|
}
|
|
if yyb2748 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2748++
|
|
if yyhl2748 {
|
|
yyb2748 = yyj2748 > l
|
|
} else {
|
|
yyb2748 = r.CheckBreak()
|
|
}
|
|
if yyb2748 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2748++
|
|
if yyhl2748 {
|
|
yyb2748 = yyj2748 > l
|
|
} else {
|
|
yyb2748 = r.CheckBreak()
|
|
}
|
|
if yyb2748 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Container = ""
|
|
} else {
|
|
x.Container = string(r.DecodeString())
|
|
}
|
|
yyj2748++
|
|
if yyhl2748 {
|
|
yyb2748 = yyj2748 > l
|
|
} else {
|
|
yyb2748 = r.CheckBreak()
|
|
}
|
|
if yyb2748 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Follow = false
|
|
} else {
|
|
x.Follow = bool(r.DecodeBool())
|
|
}
|
|
yyj2748++
|
|
if yyhl2748 {
|
|
yyb2748 = yyj2748 > l
|
|
} else {
|
|
yyb2748 = r.CheckBreak()
|
|
}
|
|
if yyb2748 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Previous = false
|
|
} else {
|
|
x.Previous = bool(r.DecodeBool())
|
|
}
|
|
yyj2748++
|
|
if yyhl2748 {
|
|
yyb2748 = yyj2748 > l
|
|
} else {
|
|
yyb2748 = r.CheckBreak()
|
|
}
|
|
if yyb2748 {
|
|
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)
|
|
}
|
|
yym2755 := z.DecBinary()
|
|
_ = yym2755
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.SinceSeconds)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
yyj2748++
|
|
if yyhl2748 {
|
|
yyb2748 = yyj2748 > l
|
|
} else {
|
|
yyb2748 = r.CheckBreak()
|
|
}
|
|
if yyb2748 {
|
|
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)
|
|
}
|
|
yym2757 := z.DecBinary()
|
|
_ = yym2757
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x.SinceTime) {
|
|
} else if yym2757 {
|
|
z.DecBinaryUnmarshal(x.SinceTime)
|
|
} else if !yym2757 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(x.SinceTime)
|
|
} else {
|
|
z.DecFallback(x.SinceTime, false)
|
|
}
|
|
}
|
|
yyj2748++
|
|
if yyhl2748 {
|
|
yyb2748 = yyj2748 > l
|
|
} else {
|
|
yyb2748 = r.CheckBreak()
|
|
}
|
|
if yyb2748 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Timestamps = false
|
|
} else {
|
|
x.Timestamps = bool(r.DecodeBool())
|
|
}
|
|
yyj2748++
|
|
if yyhl2748 {
|
|
yyb2748 = yyj2748 > l
|
|
} else {
|
|
yyb2748 = r.CheckBreak()
|
|
}
|
|
if yyb2748 {
|
|
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)
|
|
}
|
|
yym2760 := z.DecBinary()
|
|
_ = yym2760
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.TailLines)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
yyj2748++
|
|
if yyhl2748 {
|
|
yyb2748 = yyj2748 > l
|
|
} else {
|
|
yyb2748 = r.CheckBreak()
|
|
}
|
|
if yyb2748 {
|
|
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)
|
|
}
|
|
yym2762 := z.DecBinary()
|
|
_ = yym2762
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
for {
|
|
yyj2748++
|
|
if yyhl2748 {
|
|
yyb2748 = yyj2748 > l
|
|
} else {
|
|
yyb2748 = r.CheckBreak()
|
|
}
|
|
if yyb2748 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2748-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 {
|
|
yym2763 := z.EncBinary()
|
|
_ = yym2763
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2764 := !z.EncBinary()
|
|
yy2arr2764 := z.EncBasicHandle().StructToArray
|
|
var yyq2764 [7]bool
|
|
_, _, _ = yysep2764, yyq2764, yy2arr2764
|
|
const yyr2764 bool = false
|
|
yyq2764[0] = x.Kind != ""
|
|
yyq2764[1] = x.APIVersion != ""
|
|
yyq2764[2] = x.Stdin != false
|
|
yyq2764[3] = x.Stdout != false
|
|
yyq2764[4] = x.Stderr != false
|
|
yyq2764[5] = x.TTY != false
|
|
yyq2764[6] = x.Container != ""
|
|
var yynn2764 int
|
|
if yyr2764 || yy2arr2764 {
|
|
r.EncodeArrayStart(7)
|
|
} else {
|
|
yynn2764 = 0
|
|
for _, b := range yyq2764 {
|
|
if b {
|
|
yynn2764++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2764)
|
|
yynn2764 = 0
|
|
}
|
|
if yyr2764 || yy2arr2764 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2764[0] {
|
|
yym2766 := z.EncBinary()
|
|
_ = yym2766
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2764[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2767 := z.EncBinary()
|
|
_ = yym2767
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2764 || yy2arr2764 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2764[1] {
|
|
yym2769 := z.EncBinary()
|
|
_ = yym2769
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2764[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2770 := z.EncBinary()
|
|
_ = yym2770
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2764 || yy2arr2764 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2764[2] {
|
|
yym2772 := z.EncBinary()
|
|
_ = yym2772
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Stdin))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq2764[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("stdin"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2773 := z.EncBinary()
|
|
_ = yym2773
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Stdin))
|
|
}
|
|
}
|
|
}
|
|
if yyr2764 || yy2arr2764 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2764[3] {
|
|
yym2775 := z.EncBinary()
|
|
_ = yym2775
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Stdout))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq2764[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("stdout"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2776 := z.EncBinary()
|
|
_ = yym2776
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Stdout))
|
|
}
|
|
}
|
|
}
|
|
if yyr2764 || yy2arr2764 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2764[4] {
|
|
yym2778 := z.EncBinary()
|
|
_ = yym2778
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Stderr))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq2764[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("stderr"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2779 := z.EncBinary()
|
|
_ = yym2779
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Stderr))
|
|
}
|
|
}
|
|
}
|
|
if yyr2764 || yy2arr2764 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2764[5] {
|
|
yym2781 := z.EncBinary()
|
|
_ = yym2781
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.TTY))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq2764[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("tty"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2782 := z.EncBinary()
|
|
_ = yym2782
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.TTY))
|
|
}
|
|
}
|
|
}
|
|
if yyr2764 || yy2arr2764 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2764[6] {
|
|
yym2784 := z.EncBinary()
|
|
_ = yym2784
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Container))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2764[6] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("container"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2785 := z.EncBinary()
|
|
_ = yym2785
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Container))
|
|
}
|
|
}
|
|
}
|
|
if yyr2764 || yy2arr2764 {
|
|
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
|
|
yym2786 := z.DecBinary()
|
|
_ = yym2786
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2787 := r.ContainerType()
|
|
if yyct2787 == codecSelferValueTypeMap1234 {
|
|
yyl2787 := r.ReadMapStart()
|
|
if yyl2787 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2787, d)
|
|
}
|
|
} else if yyct2787 == codecSelferValueTypeArray1234 {
|
|
yyl2787 := r.ReadArrayStart()
|
|
if yyl2787 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2787, 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 yys2788Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2788Slc
|
|
var yyhl2788 bool = l >= 0
|
|
for yyj2788 := 0; ; yyj2788++ {
|
|
if yyhl2788 {
|
|
if yyj2788 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2788Slc = r.DecodeBytes(yys2788Slc, true, true)
|
|
yys2788 := string(yys2788Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2788 {
|
|
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, yys2788)
|
|
} // end switch yys2788
|
|
} // end for yyj2788
|
|
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 yyj2796 int
|
|
var yyb2796 bool
|
|
var yyhl2796 bool = l >= 0
|
|
yyj2796++
|
|
if yyhl2796 {
|
|
yyb2796 = yyj2796 > l
|
|
} else {
|
|
yyb2796 = r.CheckBreak()
|
|
}
|
|
if yyb2796 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2796++
|
|
if yyhl2796 {
|
|
yyb2796 = yyj2796 > l
|
|
} else {
|
|
yyb2796 = r.CheckBreak()
|
|
}
|
|
if yyb2796 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2796++
|
|
if yyhl2796 {
|
|
yyb2796 = yyj2796 > l
|
|
} else {
|
|
yyb2796 = r.CheckBreak()
|
|
}
|
|
if yyb2796 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Stdin = false
|
|
} else {
|
|
x.Stdin = bool(r.DecodeBool())
|
|
}
|
|
yyj2796++
|
|
if yyhl2796 {
|
|
yyb2796 = yyj2796 > l
|
|
} else {
|
|
yyb2796 = r.CheckBreak()
|
|
}
|
|
if yyb2796 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Stdout = false
|
|
} else {
|
|
x.Stdout = bool(r.DecodeBool())
|
|
}
|
|
yyj2796++
|
|
if yyhl2796 {
|
|
yyb2796 = yyj2796 > l
|
|
} else {
|
|
yyb2796 = r.CheckBreak()
|
|
}
|
|
if yyb2796 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Stderr = false
|
|
} else {
|
|
x.Stderr = bool(r.DecodeBool())
|
|
}
|
|
yyj2796++
|
|
if yyhl2796 {
|
|
yyb2796 = yyj2796 > l
|
|
} else {
|
|
yyb2796 = r.CheckBreak()
|
|
}
|
|
if yyb2796 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.TTY = false
|
|
} else {
|
|
x.TTY = bool(r.DecodeBool())
|
|
}
|
|
yyj2796++
|
|
if yyhl2796 {
|
|
yyb2796 = yyj2796 > l
|
|
} else {
|
|
yyb2796 = r.CheckBreak()
|
|
}
|
|
if yyb2796 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Container = ""
|
|
} else {
|
|
x.Container = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj2796++
|
|
if yyhl2796 {
|
|
yyb2796 = yyj2796 > l
|
|
} else {
|
|
yyb2796 = r.CheckBreak()
|
|
}
|
|
if yyb2796 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2796-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 {
|
|
yym2804 := z.EncBinary()
|
|
_ = yym2804
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2805 := !z.EncBinary()
|
|
yy2arr2805 := z.EncBasicHandle().StructToArray
|
|
var yyq2805 [8]bool
|
|
_, _, _ = yysep2805, yyq2805, yy2arr2805
|
|
const yyr2805 bool = false
|
|
yyq2805[0] = x.Kind != ""
|
|
yyq2805[1] = x.APIVersion != ""
|
|
var yynn2805 int
|
|
if yyr2805 || yy2arr2805 {
|
|
r.EncodeArrayStart(8)
|
|
} else {
|
|
yynn2805 = 6
|
|
for _, b := range yyq2805 {
|
|
if b {
|
|
yynn2805++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2805)
|
|
yynn2805 = 0
|
|
}
|
|
if yyr2805 || yy2arr2805 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2805[0] {
|
|
yym2807 := z.EncBinary()
|
|
_ = yym2807
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2805[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2808 := z.EncBinary()
|
|
_ = yym2808
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2805 || yy2arr2805 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2805[1] {
|
|
yym2810 := z.EncBinary()
|
|
_ = yym2810
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2805[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2811 := z.EncBinary()
|
|
_ = yym2811
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2805 || yy2arr2805 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2813 := z.EncBinary()
|
|
_ = yym2813
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Stdin))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("Stdin"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2814 := z.EncBinary()
|
|
_ = yym2814
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Stdin))
|
|
}
|
|
}
|
|
if yyr2805 || yy2arr2805 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2816 := z.EncBinary()
|
|
_ = yym2816
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Stdout))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("Stdout"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2817 := z.EncBinary()
|
|
_ = yym2817
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Stdout))
|
|
}
|
|
}
|
|
if yyr2805 || yy2arr2805 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2819 := z.EncBinary()
|
|
_ = yym2819
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Stderr))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("Stderr"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2820 := z.EncBinary()
|
|
_ = yym2820
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Stderr))
|
|
}
|
|
}
|
|
if yyr2805 || yy2arr2805 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2822 := z.EncBinary()
|
|
_ = yym2822
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.TTY))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("TTY"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2823 := z.EncBinary()
|
|
_ = yym2823
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.TTY))
|
|
}
|
|
}
|
|
if yyr2805 || yy2arr2805 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2825 := z.EncBinary()
|
|
_ = yym2825
|
|
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)
|
|
yym2826 := z.EncBinary()
|
|
_ = yym2826
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Container))
|
|
}
|
|
}
|
|
if yyr2805 || yy2arr2805 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Command == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2828 := z.EncBinary()
|
|
_ = yym2828
|
|
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 {
|
|
yym2829 := z.EncBinary()
|
|
_ = yym2829
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.Command, false, e)
|
|
}
|
|
}
|
|
}
|
|
if yyr2805 || yy2arr2805 {
|
|
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
|
|
yym2830 := z.DecBinary()
|
|
_ = yym2830
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2831 := r.ContainerType()
|
|
if yyct2831 == codecSelferValueTypeMap1234 {
|
|
yyl2831 := r.ReadMapStart()
|
|
if yyl2831 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2831, d)
|
|
}
|
|
} else if yyct2831 == codecSelferValueTypeArray1234 {
|
|
yyl2831 := r.ReadArrayStart()
|
|
if yyl2831 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2831, 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 yys2832Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2832Slc
|
|
var yyhl2832 bool = l >= 0
|
|
for yyj2832 := 0; ; yyj2832++ {
|
|
if yyhl2832 {
|
|
if yyj2832 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2832Slc = r.DecodeBytes(yys2832Slc, true, true)
|
|
yys2832 := string(yys2832Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2832 {
|
|
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 {
|
|
yyv2840 := &x.Command
|
|
yym2841 := z.DecBinary()
|
|
_ = yym2841
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv2840, false, d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2832)
|
|
} // end switch yys2832
|
|
} // end for yyj2832
|
|
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 yyj2842 int
|
|
var yyb2842 bool
|
|
var yyhl2842 bool = l >= 0
|
|
yyj2842++
|
|
if yyhl2842 {
|
|
yyb2842 = yyj2842 > l
|
|
} else {
|
|
yyb2842 = r.CheckBreak()
|
|
}
|
|
if yyb2842 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2842++
|
|
if yyhl2842 {
|
|
yyb2842 = yyj2842 > l
|
|
} else {
|
|
yyb2842 = r.CheckBreak()
|
|
}
|
|
if yyb2842 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2842++
|
|
if yyhl2842 {
|
|
yyb2842 = yyj2842 > l
|
|
} else {
|
|
yyb2842 = r.CheckBreak()
|
|
}
|
|
if yyb2842 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Stdin = false
|
|
} else {
|
|
x.Stdin = bool(r.DecodeBool())
|
|
}
|
|
yyj2842++
|
|
if yyhl2842 {
|
|
yyb2842 = yyj2842 > l
|
|
} else {
|
|
yyb2842 = r.CheckBreak()
|
|
}
|
|
if yyb2842 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Stdout = false
|
|
} else {
|
|
x.Stdout = bool(r.DecodeBool())
|
|
}
|
|
yyj2842++
|
|
if yyhl2842 {
|
|
yyb2842 = yyj2842 > l
|
|
} else {
|
|
yyb2842 = r.CheckBreak()
|
|
}
|
|
if yyb2842 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Stderr = false
|
|
} else {
|
|
x.Stderr = bool(r.DecodeBool())
|
|
}
|
|
yyj2842++
|
|
if yyhl2842 {
|
|
yyb2842 = yyj2842 > l
|
|
} else {
|
|
yyb2842 = r.CheckBreak()
|
|
}
|
|
if yyb2842 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.TTY = false
|
|
} else {
|
|
x.TTY = bool(r.DecodeBool())
|
|
}
|
|
yyj2842++
|
|
if yyhl2842 {
|
|
yyb2842 = yyj2842 > l
|
|
} else {
|
|
yyb2842 = r.CheckBreak()
|
|
}
|
|
if yyb2842 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Container = ""
|
|
} else {
|
|
x.Container = string(r.DecodeString())
|
|
}
|
|
yyj2842++
|
|
if yyhl2842 {
|
|
yyb2842 = yyj2842 > l
|
|
} else {
|
|
yyb2842 = r.CheckBreak()
|
|
}
|
|
if yyb2842 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Command = nil
|
|
} else {
|
|
yyv2850 := &x.Command
|
|
yym2851 := z.DecBinary()
|
|
_ = yym2851
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv2850, false, d)
|
|
}
|
|
}
|
|
for {
|
|
yyj2842++
|
|
if yyhl2842 {
|
|
yyb2842 = yyj2842 > l
|
|
} else {
|
|
yyb2842 = r.CheckBreak()
|
|
}
|
|
if yyb2842 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2842-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 {
|
|
yym2852 := z.EncBinary()
|
|
_ = yym2852
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2853 := !z.EncBinary()
|
|
yy2arr2853 := z.EncBasicHandle().StructToArray
|
|
var yyq2853 [3]bool
|
|
_, _, _ = yysep2853, yyq2853, yy2arr2853
|
|
const yyr2853 bool = false
|
|
yyq2853[0] = x.Kind != ""
|
|
yyq2853[1] = x.APIVersion != ""
|
|
var yynn2853 int
|
|
if yyr2853 || yy2arr2853 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn2853 = 1
|
|
for _, b := range yyq2853 {
|
|
if b {
|
|
yynn2853++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2853)
|
|
yynn2853 = 0
|
|
}
|
|
if yyr2853 || yy2arr2853 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2853[0] {
|
|
yym2855 := z.EncBinary()
|
|
_ = yym2855
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2853[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2856 := z.EncBinary()
|
|
_ = yym2856
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2853 || yy2arr2853 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2853[1] {
|
|
yym2858 := z.EncBinary()
|
|
_ = yym2858
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2853[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2859 := z.EncBinary()
|
|
_ = yym2859
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2853 || yy2arr2853 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2861 := z.EncBinary()
|
|
_ = yym2861
|
|
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)
|
|
yym2862 := z.EncBinary()
|
|
_ = yym2862
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
|
|
}
|
|
}
|
|
if yyr2853 || yy2arr2853 {
|
|
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
|
|
yym2863 := z.DecBinary()
|
|
_ = yym2863
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2864 := r.ContainerType()
|
|
if yyct2864 == codecSelferValueTypeMap1234 {
|
|
yyl2864 := r.ReadMapStart()
|
|
if yyl2864 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2864, d)
|
|
}
|
|
} else if yyct2864 == codecSelferValueTypeArray1234 {
|
|
yyl2864 := r.ReadArrayStart()
|
|
if yyl2864 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2864, 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 yys2865Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2865Slc
|
|
var yyhl2865 bool = l >= 0
|
|
for yyj2865 := 0; ; yyj2865++ {
|
|
if yyhl2865 {
|
|
if yyj2865 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2865Slc = r.DecodeBytes(yys2865Slc, true, true)
|
|
yys2865 := string(yys2865Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2865 {
|
|
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, yys2865)
|
|
} // end switch yys2865
|
|
} // end for yyj2865
|
|
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 yyj2869 int
|
|
var yyb2869 bool
|
|
var yyhl2869 bool = l >= 0
|
|
yyj2869++
|
|
if yyhl2869 {
|
|
yyb2869 = yyj2869 > l
|
|
} else {
|
|
yyb2869 = r.CheckBreak()
|
|
}
|
|
if yyb2869 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2869++
|
|
if yyhl2869 {
|
|
yyb2869 = yyj2869 > l
|
|
} else {
|
|
yyb2869 = r.CheckBreak()
|
|
}
|
|
if yyb2869 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2869++
|
|
if yyhl2869 {
|
|
yyb2869 = yyj2869 > l
|
|
} else {
|
|
yyb2869 = r.CheckBreak()
|
|
}
|
|
if yyb2869 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Path = ""
|
|
} else {
|
|
x.Path = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj2869++
|
|
if yyhl2869 {
|
|
yyb2869 = yyj2869 > l
|
|
} else {
|
|
yyb2869 = r.CheckBreak()
|
|
}
|
|
if yyb2869 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2869-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 {
|
|
yym2873 := z.EncBinary()
|
|
_ = yym2873
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2874 := !z.EncBinary()
|
|
yy2arr2874 := z.EncBasicHandle().StructToArray
|
|
var yyq2874 [7]bool
|
|
_, _, _ = yysep2874, yyq2874, yy2arr2874
|
|
const yyr2874 bool = false
|
|
yyq2874[0] = x.Kind != ""
|
|
yyq2874[1] = x.Namespace != ""
|
|
yyq2874[2] = x.Name != ""
|
|
yyq2874[3] = x.UID != ""
|
|
yyq2874[4] = x.APIVersion != ""
|
|
yyq2874[5] = x.ResourceVersion != ""
|
|
yyq2874[6] = x.FieldPath != ""
|
|
var yynn2874 int
|
|
if yyr2874 || yy2arr2874 {
|
|
r.EncodeArrayStart(7)
|
|
} else {
|
|
yynn2874 = 0
|
|
for _, b := range yyq2874 {
|
|
if b {
|
|
yynn2874++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2874)
|
|
yynn2874 = 0
|
|
}
|
|
if yyr2874 || yy2arr2874 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2874[0] {
|
|
yym2876 := z.EncBinary()
|
|
_ = yym2876
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2874[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2877 := z.EncBinary()
|
|
_ = yym2877
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2874 || yy2arr2874 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2874[1] {
|
|
yym2879 := z.EncBinary()
|
|
_ = yym2879
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Namespace))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2874[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("namespace"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2880 := z.EncBinary()
|
|
_ = yym2880
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Namespace))
|
|
}
|
|
}
|
|
}
|
|
if yyr2874 || yy2arr2874 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2874[2] {
|
|
yym2882 := z.EncBinary()
|
|
_ = yym2882
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2874[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("name"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2883 := z.EncBinary()
|
|
_ = yym2883
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
}
|
|
}
|
|
if yyr2874 || yy2arr2874 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2874[3] {
|
|
yym2885 := z.EncBinary()
|
|
_ = yym2885
|
|
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 yyq2874[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("uid"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2886 := z.EncBinary()
|
|
_ = yym2886
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x.UID) {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.UID))
|
|
}
|
|
}
|
|
}
|
|
if yyr2874 || yy2arr2874 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2874[4] {
|
|
yym2888 := z.EncBinary()
|
|
_ = yym2888
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2874[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2889 := z.EncBinary()
|
|
_ = yym2889
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2874 || yy2arr2874 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2874[5] {
|
|
yym2891 := z.EncBinary()
|
|
_ = yym2891
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2874[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("resourceVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2892 := z.EncBinary()
|
|
_ = yym2892
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2874 || yy2arr2874 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2874[6] {
|
|
yym2894 := z.EncBinary()
|
|
_ = yym2894
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2874[6] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("fieldPath"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2895 := z.EncBinary()
|
|
_ = yym2895
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath))
|
|
}
|
|
}
|
|
}
|
|
if yyr2874 || yy2arr2874 {
|
|
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
|
|
yym2896 := z.DecBinary()
|
|
_ = yym2896
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2897 := r.ContainerType()
|
|
if yyct2897 == codecSelferValueTypeMap1234 {
|
|
yyl2897 := r.ReadMapStart()
|
|
if yyl2897 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2897, d)
|
|
}
|
|
} else if yyct2897 == codecSelferValueTypeArray1234 {
|
|
yyl2897 := r.ReadArrayStart()
|
|
if yyl2897 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2897, 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 yys2898Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2898Slc
|
|
var yyhl2898 bool = l >= 0
|
|
for yyj2898 := 0; ; yyj2898++ {
|
|
if yyhl2898 {
|
|
if yyj2898 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2898Slc = r.DecodeBytes(yys2898Slc, true, true)
|
|
yys2898 := string(yys2898Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2898 {
|
|
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, yys2898)
|
|
} // end switch yys2898
|
|
} // end for yyj2898
|
|
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 yyj2906 int
|
|
var yyb2906 bool
|
|
var yyhl2906 bool = l >= 0
|
|
yyj2906++
|
|
if yyhl2906 {
|
|
yyb2906 = yyj2906 > l
|
|
} else {
|
|
yyb2906 = r.CheckBreak()
|
|
}
|
|
if yyb2906 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2906++
|
|
if yyhl2906 {
|
|
yyb2906 = yyj2906 > l
|
|
} else {
|
|
yyb2906 = r.CheckBreak()
|
|
}
|
|
if yyb2906 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Namespace = ""
|
|
} else {
|
|
x.Namespace = string(r.DecodeString())
|
|
}
|
|
yyj2906++
|
|
if yyhl2906 {
|
|
yyb2906 = yyj2906 > l
|
|
} else {
|
|
yyb2906 = r.CheckBreak()
|
|
}
|
|
if yyb2906 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
yyj2906++
|
|
if yyhl2906 {
|
|
yyb2906 = yyj2906 > l
|
|
} else {
|
|
yyb2906 = r.CheckBreak()
|
|
}
|
|
if yyb2906 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.UID = ""
|
|
} else {
|
|
x.UID = pkg1_types.UID(r.DecodeString())
|
|
}
|
|
yyj2906++
|
|
if yyhl2906 {
|
|
yyb2906 = yyj2906 > l
|
|
} else {
|
|
yyb2906 = r.CheckBreak()
|
|
}
|
|
if yyb2906 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2906++
|
|
if yyhl2906 {
|
|
yyb2906 = yyj2906 > l
|
|
} else {
|
|
yyb2906 = r.CheckBreak()
|
|
}
|
|
if yyb2906 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ResourceVersion = ""
|
|
} else {
|
|
x.ResourceVersion = string(r.DecodeString())
|
|
}
|
|
yyj2906++
|
|
if yyhl2906 {
|
|
yyb2906 = yyj2906 > l
|
|
} else {
|
|
yyb2906 = r.CheckBreak()
|
|
}
|
|
if yyb2906 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.FieldPath = ""
|
|
} else {
|
|
x.FieldPath = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj2906++
|
|
if yyhl2906 {
|
|
yyb2906 = yyj2906 > l
|
|
} else {
|
|
yyb2906 = r.CheckBreak()
|
|
}
|
|
if yyb2906 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2906-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 {
|
|
yym2914 := z.EncBinary()
|
|
_ = yym2914
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2915 := !z.EncBinary()
|
|
yy2arr2915 := z.EncBasicHandle().StructToArray
|
|
var yyq2915 [1]bool
|
|
_, _, _ = yysep2915, yyq2915, yy2arr2915
|
|
const yyr2915 bool = false
|
|
var yynn2915 int
|
|
if yyr2915 || yy2arr2915 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn2915 = 1
|
|
for _, b := range yyq2915 {
|
|
if b {
|
|
yynn2915++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2915)
|
|
yynn2915 = 0
|
|
}
|
|
if yyr2915 || yy2arr2915 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2917 := z.EncBinary()
|
|
_ = yym2917
|
|
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)
|
|
yym2918 := z.EncBinary()
|
|
_ = yym2918
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
}
|
|
if yyr2915 || yy2arr2915 {
|
|
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
|
|
yym2919 := z.DecBinary()
|
|
_ = yym2919
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2920 := r.ContainerType()
|
|
if yyct2920 == codecSelferValueTypeMap1234 {
|
|
yyl2920 := r.ReadMapStart()
|
|
if yyl2920 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2920, d)
|
|
}
|
|
} else if yyct2920 == codecSelferValueTypeArray1234 {
|
|
yyl2920 := r.ReadArrayStart()
|
|
if yyl2920 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2920, 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 yys2921Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2921Slc
|
|
var yyhl2921 bool = l >= 0
|
|
for yyj2921 := 0; ; yyj2921++ {
|
|
if yyhl2921 {
|
|
if yyj2921 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2921Slc = r.DecodeBytes(yys2921Slc, true, true)
|
|
yys2921 := string(yys2921Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2921 {
|
|
case "Name":
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2921)
|
|
} // end switch yys2921
|
|
} // end for yyj2921
|
|
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 yyj2923 int
|
|
var yyb2923 bool
|
|
var yyhl2923 bool = l >= 0
|
|
yyj2923++
|
|
if yyhl2923 {
|
|
yyb2923 = yyj2923 > l
|
|
} else {
|
|
yyb2923 = r.CheckBreak()
|
|
}
|
|
if yyb2923 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj2923++
|
|
if yyhl2923 {
|
|
yyb2923 = yyj2923 > l
|
|
} else {
|
|
yyb2923 = r.CheckBreak()
|
|
}
|
|
if yyb2923 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2923-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 {
|
|
yym2925 := z.EncBinary()
|
|
_ = yym2925
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2926 := !z.EncBinary()
|
|
yy2arr2926 := z.EncBasicHandle().StructToArray
|
|
var yyq2926 [3]bool
|
|
_, _, _ = yysep2926, yyq2926, yy2arr2926
|
|
const yyr2926 bool = false
|
|
yyq2926[0] = x.Kind != ""
|
|
yyq2926[1] = x.APIVersion != ""
|
|
yyq2926[2] = true
|
|
var yynn2926 int
|
|
if yyr2926 || yy2arr2926 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn2926 = 0
|
|
for _, b := range yyq2926 {
|
|
if b {
|
|
yynn2926++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2926)
|
|
yynn2926 = 0
|
|
}
|
|
if yyr2926 || yy2arr2926 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2926[0] {
|
|
yym2928 := z.EncBinary()
|
|
_ = yym2928
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2926[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2929 := z.EncBinary()
|
|
_ = yym2929
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2926 || yy2arr2926 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2926[1] {
|
|
yym2931 := z.EncBinary()
|
|
_ = yym2931
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2926[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2932 := z.EncBinary()
|
|
_ = yym2932
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2926 || yy2arr2926 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2926[2] {
|
|
yy2934 := &x.Reference
|
|
yy2934.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2926[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("reference"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2935 := &x.Reference
|
|
yy2935.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2926 || yy2arr2926 {
|
|
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
|
|
yym2936 := z.DecBinary()
|
|
_ = yym2936
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2937 := r.ContainerType()
|
|
if yyct2937 == codecSelferValueTypeMap1234 {
|
|
yyl2937 := r.ReadMapStart()
|
|
if yyl2937 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2937, d)
|
|
}
|
|
} else if yyct2937 == codecSelferValueTypeArray1234 {
|
|
yyl2937 := r.ReadArrayStart()
|
|
if yyl2937 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2937, 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 yys2938Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2938Slc
|
|
var yyhl2938 bool = l >= 0
|
|
for yyj2938 := 0; ; yyj2938++ {
|
|
if yyhl2938 {
|
|
if yyj2938 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2938Slc = r.DecodeBytes(yys2938Slc, true, true)
|
|
yys2938 := string(yys2938Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2938 {
|
|
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 {
|
|
yyv2941 := &x.Reference
|
|
yyv2941.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2938)
|
|
} // end switch yys2938
|
|
} // end for yyj2938
|
|
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 yyj2942 int
|
|
var yyb2942 bool
|
|
var yyhl2942 bool = l >= 0
|
|
yyj2942++
|
|
if yyhl2942 {
|
|
yyb2942 = yyj2942 > l
|
|
} else {
|
|
yyb2942 = r.CheckBreak()
|
|
}
|
|
if yyb2942 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2942++
|
|
if yyhl2942 {
|
|
yyb2942 = yyj2942 > l
|
|
} else {
|
|
yyb2942 = r.CheckBreak()
|
|
}
|
|
if yyb2942 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2942++
|
|
if yyhl2942 {
|
|
yyb2942 = yyj2942 > l
|
|
} else {
|
|
yyb2942 = r.CheckBreak()
|
|
}
|
|
if yyb2942 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Reference = ObjectReference{}
|
|
} else {
|
|
yyv2945 := &x.Reference
|
|
yyv2945.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj2942++
|
|
if yyhl2942 {
|
|
yyb2942 = yyj2942 > l
|
|
} else {
|
|
yyb2942 = r.CheckBreak()
|
|
}
|
|
if yyb2942 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2942-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 {
|
|
yym2946 := z.EncBinary()
|
|
_ = yym2946
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2947 := !z.EncBinary()
|
|
yy2arr2947 := z.EncBasicHandle().StructToArray
|
|
var yyq2947 [2]bool
|
|
_, _, _ = yysep2947, yyq2947, yy2arr2947
|
|
const yyr2947 bool = false
|
|
yyq2947[0] = x.Component != ""
|
|
yyq2947[1] = x.Host != ""
|
|
var yynn2947 int
|
|
if yyr2947 || yy2arr2947 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn2947 = 0
|
|
for _, b := range yyq2947 {
|
|
if b {
|
|
yynn2947++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2947)
|
|
yynn2947 = 0
|
|
}
|
|
if yyr2947 || yy2arr2947 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2947[0] {
|
|
yym2949 := z.EncBinary()
|
|
_ = yym2949
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Component))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2947[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("component"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2950 := z.EncBinary()
|
|
_ = yym2950
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Component))
|
|
}
|
|
}
|
|
}
|
|
if yyr2947 || yy2arr2947 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2947[1] {
|
|
yym2952 := z.EncBinary()
|
|
_ = yym2952
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Host))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2947[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("host"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2953 := z.EncBinary()
|
|
_ = yym2953
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Host))
|
|
}
|
|
}
|
|
}
|
|
if yyr2947 || yy2arr2947 {
|
|
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
|
|
yym2954 := z.DecBinary()
|
|
_ = yym2954
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2955 := r.ContainerType()
|
|
if yyct2955 == codecSelferValueTypeMap1234 {
|
|
yyl2955 := r.ReadMapStart()
|
|
if yyl2955 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2955, d)
|
|
}
|
|
} else if yyct2955 == codecSelferValueTypeArray1234 {
|
|
yyl2955 := r.ReadArrayStart()
|
|
if yyl2955 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2955, 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 yys2956Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2956Slc
|
|
var yyhl2956 bool = l >= 0
|
|
for yyj2956 := 0; ; yyj2956++ {
|
|
if yyhl2956 {
|
|
if yyj2956 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2956Slc = r.DecodeBytes(yys2956Slc, true, true)
|
|
yys2956 := string(yys2956Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2956 {
|
|
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, yys2956)
|
|
} // end switch yys2956
|
|
} // end for yyj2956
|
|
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 yyj2959 int
|
|
var yyb2959 bool
|
|
var yyhl2959 bool = l >= 0
|
|
yyj2959++
|
|
if yyhl2959 {
|
|
yyb2959 = yyj2959 > l
|
|
} else {
|
|
yyb2959 = r.CheckBreak()
|
|
}
|
|
if yyb2959 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Component = ""
|
|
} else {
|
|
x.Component = string(r.DecodeString())
|
|
}
|
|
yyj2959++
|
|
if yyhl2959 {
|
|
yyb2959 = yyj2959 > l
|
|
} else {
|
|
yyb2959 = r.CheckBreak()
|
|
}
|
|
if yyb2959 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Host = ""
|
|
} else {
|
|
x.Host = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj2959++
|
|
if yyhl2959 {
|
|
yyb2959 = yyj2959 > l
|
|
} else {
|
|
yyb2959 = r.CheckBreak()
|
|
}
|
|
if yyb2959 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2959-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 {
|
|
yym2962 := z.EncBinary()
|
|
_ = yym2962
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2963 := !z.EncBinary()
|
|
yy2arr2963 := z.EncBasicHandle().StructToArray
|
|
var yyq2963 [11]bool
|
|
_, _, _ = yysep2963, yyq2963, yy2arr2963
|
|
const yyr2963 bool = false
|
|
yyq2963[0] = x.Kind != ""
|
|
yyq2963[1] = x.APIVersion != ""
|
|
yyq2963[2] = true
|
|
yyq2963[3] = true
|
|
yyq2963[4] = x.Reason != ""
|
|
yyq2963[5] = x.Message != ""
|
|
yyq2963[6] = true
|
|
yyq2963[7] = true
|
|
yyq2963[8] = true
|
|
yyq2963[9] = x.Count != 0
|
|
yyq2963[10] = x.Type != ""
|
|
var yynn2963 int
|
|
if yyr2963 || yy2arr2963 {
|
|
r.EncodeArrayStart(11)
|
|
} else {
|
|
yynn2963 = 0
|
|
for _, b := range yyq2963 {
|
|
if b {
|
|
yynn2963++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2963)
|
|
yynn2963 = 0
|
|
}
|
|
if yyr2963 || yy2arr2963 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2963[0] {
|
|
yym2965 := z.EncBinary()
|
|
_ = yym2965
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2963[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2966 := z.EncBinary()
|
|
_ = yym2966
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2963 || yy2arr2963 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2963[1] {
|
|
yym2968 := z.EncBinary()
|
|
_ = yym2968
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2963[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2969 := z.EncBinary()
|
|
_ = yym2969
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2963 || yy2arr2963 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2963[2] {
|
|
yy2971 := &x.ObjectMeta
|
|
yy2971.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2963[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2972 := &x.ObjectMeta
|
|
yy2972.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2963 || yy2arr2963 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2963[3] {
|
|
yy2974 := &x.InvolvedObject
|
|
yy2974.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2963[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("involvedObject"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2975 := &x.InvolvedObject
|
|
yy2975.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2963 || yy2arr2963 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2963[4] {
|
|
yym2977 := z.EncBinary()
|
|
_ = yym2977
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2963[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("reason"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2978 := z.EncBinary()
|
|
_ = yym2978
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
|
|
}
|
|
}
|
|
}
|
|
if yyr2963 || yy2arr2963 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2963[5] {
|
|
yym2980 := z.EncBinary()
|
|
_ = yym2980
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2963[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("message"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2981 := z.EncBinary()
|
|
_ = yym2981
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
}
|
|
}
|
|
if yyr2963 || yy2arr2963 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2963[6] {
|
|
yy2983 := &x.Source
|
|
yy2983.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2963[6] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("source"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2984 := &x.Source
|
|
yy2984.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2963 || yy2arr2963 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2963[7] {
|
|
yy2986 := &x.FirstTimestamp
|
|
yym2987 := z.EncBinary()
|
|
_ = yym2987
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy2986) {
|
|
} else if yym2987 {
|
|
z.EncBinaryMarshal(yy2986)
|
|
} else if !yym2987 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy2986)
|
|
} else {
|
|
z.EncFallback(yy2986)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2963[7] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("firstTimestamp"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2988 := &x.FirstTimestamp
|
|
yym2989 := z.EncBinary()
|
|
_ = yym2989
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy2988) {
|
|
} else if yym2989 {
|
|
z.EncBinaryMarshal(yy2988)
|
|
} else if !yym2989 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy2988)
|
|
} else {
|
|
z.EncFallback(yy2988)
|
|
}
|
|
}
|
|
}
|
|
if yyr2963 || yy2arr2963 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2963[8] {
|
|
yy2991 := &x.LastTimestamp
|
|
yym2992 := z.EncBinary()
|
|
_ = yym2992
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy2991) {
|
|
} else if yym2992 {
|
|
z.EncBinaryMarshal(yy2991)
|
|
} else if !yym2992 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy2991)
|
|
} else {
|
|
z.EncFallback(yy2991)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2963[8] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("lastTimestamp"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2993 := &x.LastTimestamp
|
|
yym2994 := z.EncBinary()
|
|
_ = yym2994
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy2993) {
|
|
} else if yym2994 {
|
|
z.EncBinaryMarshal(yy2993)
|
|
} else if !yym2994 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy2993)
|
|
} else {
|
|
z.EncFallback(yy2993)
|
|
}
|
|
}
|
|
}
|
|
if yyr2963 || yy2arr2963 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2963[9] {
|
|
yym2996 := z.EncBinary()
|
|
_ = yym2996
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Count))
|
|
}
|
|
} else {
|
|
r.EncodeInt(0)
|
|
}
|
|
} else {
|
|
if yyq2963[9] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("count"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2997 := z.EncBinary()
|
|
_ = yym2997
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Count))
|
|
}
|
|
}
|
|
}
|
|
if yyr2963 || yy2arr2963 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2963[10] {
|
|
yym2999 := z.EncBinary()
|
|
_ = yym2999
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Type))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2963[10] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("type"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3000 := z.EncBinary()
|
|
_ = yym3000
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Type))
|
|
}
|
|
}
|
|
}
|
|
if yyr2963 || yy2arr2963 {
|
|
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
|
|
yym3001 := z.DecBinary()
|
|
_ = yym3001
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3002 := r.ContainerType()
|
|
if yyct3002 == codecSelferValueTypeMap1234 {
|
|
yyl3002 := r.ReadMapStart()
|
|
if yyl3002 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3002, d)
|
|
}
|
|
} else if yyct3002 == codecSelferValueTypeArray1234 {
|
|
yyl3002 := r.ReadArrayStart()
|
|
if yyl3002 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3002, 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 yys3003Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3003Slc
|
|
var yyhl3003 bool = l >= 0
|
|
for yyj3003 := 0; ; yyj3003++ {
|
|
if yyhl3003 {
|
|
if yyj3003 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3003Slc = r.DecodeBytes(yys3003Slc, true, true)
|
|
yys3003 := string(yys3003Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3003 {
|
|
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 {
|
|
yyv3006 := &x.ObjectMeta
|
|
yyv3006.CodecDecodeSelf(d)
|
|
}
|
|
case "involvedObject":
|
|
if r.TryDecodeAsNil() {
|
|
x.InvolvedObject = ObjectReference{}
|
|
} else {
|
|
yyv3007 := &x.InvolvedObject
|
|
yyv3007.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 {
|
|
yyv3010 := &x.Source
|
|
yyv3010.CodecDecodeSelf(d)
|
|
}
|
|
case "firstTimestamp":
|
|
if r.TryDecodeAsNil() {
|
|
x.FirstTimestamp = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv3011 := &x.FirstTimestamp
|
|
yym3012 := z.DecBinary()
|
|
_ = yym3012
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3011) {
|
|
} else if yym3012 {
|
|
z.DecBinaryUnmarshal(yyv3011)
|
|
} else if !yym3012 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv3011)
|
|
} else {
|
|
z.DecFallback(yyv3011, false)
|
|
}
|
|
}
|
|
case "lastTimestamp":
|
|
if r.TryDecodeAsNil() {
|
|
x.LastTimestamp = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv3013 := &x.LastTimestamp
|
|
yym3014 := z.DecBinary()
|
|
_ = yym3014
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3013) {
|
|
} else if yym3014 {
|
|
z.DecBinaryUnmarshal(yyv3013)
|
|
} else if !yym3014 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv3013)
|
|
} else {
|
|
z.DecFallback(yyv3013, 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, yys3003)
|
|
} // end switch yys3003
|
|
} // end for yyj3003
|
|
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 yyj3017 int
|
|
var yyb3017 bool
|
|
var yyhl3017 bool = l >= 0
|
|
yyj3017++
|
|
if yyhl3017 {
|
|
yyb3017 = yyj3017 > l
|
|
} else {
|
|
yyb3017 = r.CheckBreak()
|
|
}
|
|
if yyb3017 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj3017++
|
|
if yyhl3017 {
|
|
yyb3017 = yyj3017 > l
|
|
} else {
|
|
yyb3017 = r.CheckBreak()
|
|
}
|
|
if yyb3017 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj3017++
|
|
if yyhl3017 {
|
|
yyb3017 = yyj3017 > l
|
|
} else {
|
|
yyb3017 = r.CheckBreak()
|
|
}
|
|
if yyb3017 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv3020 := &x.ObjectMeta
|
|
yyv3020.CodecDecodeSelf(d)
|
|
}
|
|
yyj3017++
|
|
if yyhl3017 {
|
|
yyb3017 = yyj3017 > l
|
|
} else {
|
|
yyb3017 = r.CheckBreak()
|
|
}
|
|
if yyb3017 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.InvolvedObject = ObjectReference{}
|
|
} else {
|
|
yyv3021 := &x.InvolvedObject
|
|
yyv3021.CodecDecodeSelf(d)
|
|
}
|
|
yyj3017++
|
|
if yyhl3017 {
|
|
yyb3017 = yyj3017 > l
|
|
} else {
|
|
yyb3017 = r.CheckBreak()
|
|
}
|
|
if yyb3017 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Reason = ""
|
|
} else {
|
|
x.Reason = string(r.DecodeString())
|
|
}
|
|
yyj3017++
|
|
if yyhl3017 {
|
|
yyb3017 = yyj3017 > l
|
|
} else {
|
|
yyb3017 = r.CheckBreak()
|
|
}
|
|
if yyb3017 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Message = ""
|
|
} else {
|
|
x.Message = string(r.DecodeString())
|
|
}
|
|
yyj3017++
|
|
if yyhl3017 {
|
|
yyb3017 = yyj3017 > l
|
|
} else {
|
|
yyb3017 = r.CheckBreak()
|
|
}
|
|
if yyb3017 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Source = EventSource{}
|
|
} else {
|
|
yyv3024 := &x.Source
|
|
yyv3024.CodecDecodeSelf(d)
|
|
}
|
|
yyj3017++
|
|
if yyhl3017 {
|
|
yyb3017 = yyj3017 > l
|
|
} else {
|
|
yyb3017 = r.CheckBreak()
|
|
}
|
|
if yyb3017 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.FirstTimestamp = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv3025 := &x.FirstTimestamp
|
|
yym3026 := z.DecBinary()
|
|
_ = yym3026
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3025) {
|
|
} else if yym3026 {
|
|
z.DecBinaryUnmarshal(yyv3025)
|
|
} else if !yym3026 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv3025)
|
|
} else {
|
|
z.DecFallback(yyv3025, false)
|
|
}
|
|
}
|
|
yyj3017++
|
|
if yyhl3017 {
|
|
yyb3017 = yyj3017 > l
|
|
} else {
|
|
yyb3017 = r.CheckBreak()
|
|
}
|
|
if yyb3017 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.LastTimestamp = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv3027 := &x.LastTimestamp
|
|
yym3028 := z.DecBinary()
|
|
_ = yym3028
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3027) {
|
|
} else if yym3028 {
|
|
z.DecBinaryUnmarshal(yyv3027)
|
|
} else if !yym3028 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv3027)
|
|
} else {
|
|
z.DecFallback(yyv3027, false)
|
|
}
|
|
}
|
|
yyj3017++
|
|
if yyhl3017 {
|
|
yyb3017 = yyj3017 > l
|
|
} else {
|
|
yyb3017 = r.CheckBreak()
|
|
}
|
|
if yyb3017 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Count = 0
|
|
} else {
|
|
x.Count = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
yyj3017++
|
|
if yyhl3017 {
|
|
yyb3017 = yyj3017 > l
|
|
} else {
|
|
yyb3017 = r.CheckBreak()
|
|
}
|
|
if yyb3017 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Type = ""
|
|
} else {
|
|
x.Type = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj3017++
|
|
if yyhl3017 {
|
|
yyb3017 = yyj3017 > l
|
|
} else {
|
|
yyb3017 = r.CheckBreak()
|
|
}
|
|
if yyb3017 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3017-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 {
|
|
yym3031 := z.EncBinary()
|
|
_ = yym3031
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3032 := !z.EncBinary()
|
|
yy2arr3032 := z.EncBasicHandle().StructToArray
|
|
var yyq3032 [4]bool
|
|
_, _, _ = yysep3032, yyq3032, yy2arr3032
|
|
const yyr3032 bool = false
|
|
yyq3032[0] = x.Kind != ""
|
|
yyq3032[1] = x.APIVersion != ""
|
|
yyq3032[2] = true
|
|
var yynn3032 int
|
|
if yyr3032 || yy2arr3032 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn3032 = 1
|
|
for _, b := range yyq3032 {
|
|
if b {
|
|
yynn3032++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3032)
|
|
yynn3032 = 0
|
|
}
|
|
if yyr3032 || yy2arr3032 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3032[0] {
|
|
yym3034 := z.EncBinary()
|
|
_ = yym3034
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3032[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3035 := z.EncBinary()
|
|
_ = yym3035
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr3032 || yy2arr3032 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3032[1] {
|
|
yym3037 := z.EncBinary()
|
|
_ = yym3037
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3032[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3038 := z.EncBinary()
|
|
_ = yym3038
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr3032 || yy2arr3032 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3032[2] {
|
|
yy3040 := &x.ListMeta
|
|
yym3041 := z.EncBinary()
|
|
_ = yym3041
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3040) {
|
|
} else {
|
|
z.EncFallback(yy3040)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3032[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3042 := &x.ListMeta
|
|
yym3043 := z.EncBinary()
|
|
_ = yym3043
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3042) {
|
|
} else {
|
|
z.EncFallback(yy3042)
|
|
}
|
|
}
|
|
}
|
|
if yyr3032 || yy2arr3032 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3045 := z.EncBinary()
|
|
_ = yym3045
|
|
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 {
|
|
yym3046 := z.EncBinary()
|
|
_ = yym3046
|
|
if false {
|
|
} else {
|
|
h.encSliceEvent(([]Event)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr3032 || yy2arr3032 {
|
|
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
|
|
yym3047 := z.DecBinary()
|
|
_ = yym3047
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3048 := r.ContainerType()
|
|
if yyct3048 == codecSelferValueTypeMap1234 {
|
|
yyl3048 := r.ReadMapStart()
|
|
if yyl3048 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3048, d)
|
|
}
|
|
} else if yyct3048 == codecSelferValueTypeArray1234 {
|
|
yyl3048 := r.ReadArrayStart()
|
|
if yyl3048 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3048, 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 yys3049Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3049Slc
|
|
var yyhl3049 bool = l >= 0
|
|
for yyj3049 := 0; ; yyj3049++ {
|
|
if yyhl3049 {
|
|
if yyj3049 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3049Slc = r.DecodeBytes(yys3049Slc, true, true)
|
|
yys3049 := string(yys3049Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3049 {
|
|
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 {
|
|
yyv3052 := &x.ListMeta
|
|
yym3053 := z.DecBinary()
|
|
_ = yym3053
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3052) {
|
|
} else {
|
|
z.DecFallback(yyv3052, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv3054 := &x.Items
|
|
yym3055 := z.DecBinary()
|
|
_ = yym3055
|
|
if false {
|
|
} else {
|
|
h.decSliceEvent((*[]Event)(yyv3054), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3049)
|
|
} // end switch yys3049
|
|
} // end for yyj3049
|
|
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 yyj3056 int
|
|
var yyb3056 bool
|
|
var yyhl3056 bool = l >= 0
|
|
yyj3056++
|
|
if yyhl3056 {
|
|
yyb3056 = yyj3056 > l
|
|
} else {
|
|
yyb3056 = r.CheckBreak()
|
|
}
|
|
if yyb3056 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj3056++
|
|
if yyhl3056 {
|
|
yyb3056 = yyj3056 > l
|
|
} else {
|
|
yyb3056 = r.CheckBreak()
|
|
}
|
|
if yyb3056 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj3056++
|
|
if yyhl3056 {
|
|
yyb3056 = yyj3056 > l
|
|
} else {
|
|
yyb3056 = r.CheckBreak()
|
|
}
|
|
if yyb3056 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv3059 := &x.ListMeta
|
|
yym3060 := z.DecBinary()
|
|
_ = yym3060
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3059) {
|
|
} else {
|
|
z.DecFallback(yyv3059, false)
|
|
}
|
|
}
|
|
yyj3056++
|
|
if yyhl3056 {
|
|
yyb3056 = yyj3056 > l
|
|
} else {
|
|
yyb3056 = r.CheckBreak()
|
|
}
|
|
if yyb3056 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv3061 := &x.Items
|
|
yym3062 := z.DecBinary()
|
|
_ = yym3062
|
|
if false {
|
|
} else {
|
|
h.decSliceEvent((*[]Event)(yyv3061), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj3056++
|
|
if yyhl3056 {
|
|
yyb3056 = yyj3056 > l
|
|
} else {
|
|
yyb3056 = r.CheckBreak()
|
|
}
|
|
if yyb3056 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3056-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 {
|
|
yym3063 := z.EncBinary()
|
|
_ = yym3063
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3064 := !z.EncBinary()
|
|
yy2arr3064 := z.EncBasicHandle().StructToArray
|
|
var yyq3064 [4]bool
|
|
_, _, _ = yysep3064, yyq3064, yy2arr3064
|
|
const yyr3064 bool = false
|
|
yyq3064[0] = x.Kind != ""
|
|
yyq3064[1] = x.APIVersion != ""
|
|
yyq3064[2] = true
|
|
var yynn3064 int
|
|
if yyr3064 || yy2arr3064 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn3064 = 1
|
|
for _, b := range yyq3064 {
|
|
if b {
|
|
yynn3064++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3064)
|
|
yynn3064 = 0
|
|
}
|
|
if yyr3064 || yy2arr3064 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3064[0] {
|
|
yym3066 := z.EncBinary()
|
|
_ = yym3066
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3064[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3067 := z.EncBinary()
|
|
_ = yym3067
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr3064 || yy2arr3064 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3064[1] {
|
|
yym3069 := z.EncBinary()
|
|
_ = yym3069
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3064[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3070 := z.EncBinary()
|
|
_ = yym3070
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr3064 || yy2arr3064 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3064[2] {
|
|
yy3072 := &x.ListMeta
|
|
yym3073 := z.EncBinary()
|
|
_ = yym3073
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3072) {
|
|
} else {
|
|
z.EncFallback(yy3072)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3064[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3074 := &x.ListMeta
|
|
yym3075 := z.EncBinary()
|
|
_ = yym3075
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3074) {
|
|
} else {
|
|
z.EncFallback(yy3074)
|
|
}
|
|
}
|
|
}
|
|
if yyr3064 || yy2arr3064 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3077 := z.EncBinary()
|
|
_ = yym3077
|
|
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 {
|
|
yym3078 := z.EncBinary()
|
|
_ = yym3078
|
|
if false {
|
|
} else {
|
|
h.encSliceruntime_Object(([]pkg8_runtime.Object)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr3064 || yy2arr3064 {
|
|
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
|
|
yym3079 := z.DecBinary()
|
|
_ = yym3079
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3080 := r.ContainerType()
|
|
if yyct3080 == codecSelferValueTypeMap1234 {
|
|
yyl3080 := r.ReadMapStart()
|
|
if yyl3080 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3080, d)
|
|
}
|
|
} else if yyct3080 == codecSelferValueTypeArray1234 {
|
|
yyl3080 := r.ReadArrayStart()
|
|
if yyl3080 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3080, 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 yys3081Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3081Slc
|
|
var yyhl3081 bool = l >= 0
|
|
for yyj3081 := 0; ; yyj3081++ {
|
|
if yyhl3081 {
|
|
if yyj3081 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3081Slc = r.DecodeBytes(yys3081Slc, true, true)
|
|
yys3081 := string(yys3081Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3081 {
|
|
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 {
|
|
yyv3084 := &x.ListMeta
|
|
yym3085 := z.DecBinary()
|
|
_ = yym3085
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3084) {
|
|
} else {
|
|
z.DecFallback(yyv3084, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv3086 := &x.Items
|
|
yym3087 := z.DecBinary()
|
|
_ = yym3087
|
|
if false {
|
|
} else {
|
|
h.decSliceruntime_Object((*[]pkg8_runtime.Object)(yyv3086), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3081)
|
|
} // end switch yys3081
|
|
} // end for yyj3081
|
|
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 yyj3088 int
|
|
var yyb3088 bool
|
|
var yyhl3088 bool = l >= 0
|
|
yyj3088++
|
|
if yyhl3088 {
|
|
yyb3088 = yyj3088 > l
|
|
} else {
|
|
yyb3088 = r.CheckBreak()
|
|
}
|
|
if yyb3088 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj3088++
|
|
if yyhl3088 {
|
|
yyb3088 = yyj3088 > l
|
|
} else {
|
|
yyb3088 = r.CheckBreak()
|
|
}
|
|
if yyb3088 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj3088++
|
|
if yyhl3088 {
|
|
yyb3088 = yyj3088 > l
|
|
} else {
|
|
yyb3088 = r.CheckBreak()
|
|
}
|
|
if yyb3088 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv3091 := &x.ListMeta
|
|
yym3092 := z.DecBinary()
|
|
_ = yym3092
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3091) {
|
|
} else {
|
|
z.DecFallback(yyv3091, false)
|
|
}
|
|
}
|
|
yyj3088++
|
|
if yyhl3088 {
|
|
yyb3088 = yyj3088 > l
|
|
} else {
|
|
yyb3088 = r.CheckBreak()
|
|
}
|
|
if yyb3088 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv3093 := &x.Items
|
|
yym3094 := z.DecBinary()
|
|
_ = yym3094
|
|
if false {
|
|
} else {
|
|
h.decSliceruntime_Object((*[]pkg8_runtime.Object)(yyv3093), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj3088++
|
|
if yyhl3088 {
|
|
yyb3088 = yyj3088 > l
|
|
} else {
|
|
yyb3088 = r.CheckBreak()
|
|
}
|
|
if yyb3088 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3088-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x LimitType) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym3095 := z.EncBinary()
|
|
_ = yym3095
|
|
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
|
|
yym3096 := z.DecBinary()
|
|
_ = yym3096
|
|
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 {
|
|
yym3097 := z.EncBinary()
|
|
_ = yym3097
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3098 := !z.EncBinary()
|
|
yy2arr3098 := z.EncBasicHandle().StructToArray
|
|
var yyq3098 [6]bool
|
|
_, _, _ = yysep3098, yyq3098, yy2arr3098
|
|
const yyr3098 bool = false
|
|
yyq3098[0] = x.Type != ""
|
|
yyq3098[1] = len(x.Max) != 0
|
|
yyq3098[2] = len(x.Min) != 0
|
|
yyq3098[3] = len(x.Default) != 0
|
|
yyq3098[4] = len(x.DefaultRequest) != 0
|
|
yyq3098[5] = len(x.MaxLimitRequestRatio) != 0
|
|
var yynn3098 int
|
|
if yyr3098 || yy2arr3098 {
|
|
r.EncodeArrayStart(6)
|
|
} else {
|
|
yynn3098 = 0
|
|
for _, b := range yyq3098 {
|
|
if b {
|
|
yynn3098++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3098)
|
|
yynn3098 = 0
|
|
}
|
|
if yyr3098 || yy2arr3098 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3098[0] {
|
|
x.Type.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3098[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("type"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Type.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr3098 || yy2arr3098 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3098[1] {
|
|
if x.Max == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Max.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3098[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 yyr3098 || yy2arr3098 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3098[2] {
|
|
if x.Min == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Min.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3098[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 yyr3098 || yy2arr3098 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3098[3] {
|
|
if x.Default == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Default.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3098[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 yyr3098 || yy2arr3098 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3098[4] {
|
|
if x.DefaultRequest == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.DefaultRequest.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3098[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 yyr3098 || yy2arr3098 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3098[5] {
|
|
if x.MaxLimitRequestRatio == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.MaxLimitRequestRatio.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3098[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 yyr3098 || yy2arr3098 {
|
|
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
|
|
yym3105 := z.DecBinary()
|
|
_ = yym3105
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3106 := r.ContainerType()
|
|
if yyct3106 == codecSelferValueTypeMap1234 {
|
|
yyl3106 := r.ReadMapStart()
|
|
if yyl3106 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3106, d)
|
|
}
|
|
} else if yyct3106 == codecSelferValueTypeArray1234 {
|
|
yyl3106 := r.ReadArrayStart()
|
|
if yyl3106 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3106, 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 yys3107Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3107Slc
|
|
var yyhl3107 bool = l >= 0
|
|
for yyj3107 := 0; ; yyj3107++ {
|
|
if yyhl3107 {
|
|
if yyj3107 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3107Slc = r.DecodeBytes(yys3107Slc, true, true)
|
|
yys3107 := string(yys3107Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3107 {
|
|
case "type":
|
|
if r.TryDecodeAsNil() {
|
|
x.Type = ""
|
|
} else {
|
|
x.Type = LimitType(r.DecodeString())
|
|
}
|
|
case "max":
|
|
if r.TryDecodeAsNil() {
|
|
x.Max = nil
|
|
} else {
|
|
yyv3109 := &x.Max
|
|
yyv3109.CodecDecodeSelf(d)
|
|
}
|
|
case "min":
|
|
if r.TryDecodeAsNil() {
|
|
x.Min = nil
|
|
} else {
|
|
yyv3110 := &x.Min
|
|
yyv3110.CodecDecodeSelf(d)
|
|
}
|
|
case "default":
|
|
if r.TryDecodeAsNil() {
|
|
x.Default = nil
|
|
} else {
|
|
yyv3111 := &x.Default
|
|
yyv3111.CodecDecodeSelf(d)
|
|
}
|
|
case "defaultRequest":
|
|
if r.TryDecodeAsNil() {
|
|
x.DefaultRequest = nil
|
|
} else {
|
|
yyv3112 := &x.DefaultRequest
|
|
yyv3112.CodecDecodeSelf(d)
|
|
}
|
|
case "maxLimitRequestRatio":
|
|
if r.TryDecodeAsNil() {
|
|
x.MaxLimitRequestRatio = nil
|
|
} else {
|
|
yyv3113 := &x.MaxLimitRequestRatio
|
|
yyv3113.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3107)
|
|
} // end switch yys3107
|
|
} // end for yyj3107
|
|
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 yyj3114 int
|
|
var yyb3114 bool
|
|
var yyhl3114 bool = l >= 0
|
|
yyj3114++
|
|
if yyhl3114 {
|
|
yyb3114 = yyj3114 > l
|
|
} else {
|
|
yyb3114 = r.CheckBreak()
|
|
}
|
|
if yyb3114 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Type = ""
|
|
} else {
|
|
x.Type = LimitType(r.DecodeString())
|
|
}
|
|
yyj3114++
|
|
if yyhl3114 {
|
|
yyb3114 = yyj3114 > l
|
|
} else {
|
|
yyb3114 = r.CheckBreak()
|
|
}
|
|
if yyb3114 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Max = nil
|
|
} else {
|
|
yyv3116 := &x.Max
|
|
yyv3116.CodecDecodeSelf(d)
|
|
}
|
|
yyj3114++
|
|
if yyhl3114 {
|
|
yyb3114 = yyj3114 > l
|
|
} else {
|
|
yyb3114 = r.CheckBreak()
|
|
}
|
|
if yyb3114 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Min = nil
|
|
} else {
|
|
yyv3117 := &x.Min
|
|
yyv3117.CodecDecodeSelf(d)
|
|
}
|
|
yyj3114++
|
|
if yyhl3114 {
|
|
yyb3114 = yyj3114 > l
|
|
} else {
|
|
yyb3114 = r.CheckBreak()
|
|
}
|
|
if yyb3114 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Default = nil
|
|
} else {
|
|
yyv3118 := &x.Default
|
|
yyv3118.CodecDecodeSelf(d)
|
|
}
|
|
yyj3114++
|
|
if yyhl3114 {
|
|
yyb3114 = yyj3114 > l
|
|
} else {
|
|
yyb3114 = r.CheckBreak()
|
|
}
|
|
if yyb3114 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.DefaultRequest = nil
|
|
} else {
|
|
yyv3119 := &x.DefaultRequest
|
|
yyv3119.CodecDecodeSelf(d)
|
|
}
|
|
yyj3114++
|
|
if yyhl3114 {
|
|
yyb3114 = yyj3114 > l
|
|
} else {
|
|
yyb3114 = r.CheckBreak()
|
|
}
|
|
if yyb3114 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.MaxLimitRequestRatio = nil
|
|
} else {
|
|
yyv3120 := &x.MaxLimitRequestRatio
|
|
yyv3120.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj3114++
|
|
if yyhl3114 {
|
|
yyb3114 = yyj3114 > l
|
|
} else {
|
|
yyb3114 = r.CheckBreak()
|
|
}
|
|
if yyb3114 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3114-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 {
|
|
yym3121 := z.EncBinary()
|
|
_ = yym3121
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3122 := !z.EncBinary()
|
|
yy2arr3122 := z.EncBasicHandle().StructToArray
|
|
var yyq3122 [1]bool
|
|
_, _, _ = yysep3122, yyq3122, yy2arr3122
|
|
const yyr3122 bool = false
|
|
var yynn3122 int
|
|
if yyr3122 || yy2arr3122 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn3122 = 1
|
|
for _, b := range yyq3122 {
|
|
if b {
|
|
yynn3122++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3122)
|
|
yynn3122 = 0
|
|
}
|
|
if yyr3122 || yy2arr3122 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Limits == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3124 := z.EncBinary()
|
|
_ = yym3124
|
|
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 {
|
|
yym3125 := z.EncBinary()
|
|
_ = yym3125
|
|
if false {
|
|
} else {
|
|
h.encSliceLimitRangeItem(([]LimitRangeItem)(x.Limits), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr3122 || yy2arr3122 {
|
|
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
|
|
yym3126 := z.DecBinary()
|
|
_ = yym3126
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3127 := r.ContainerType()
|
|
if yyct3127 == codecSelferValueTypeMap1234 {
|
|
yyl3127 := r.ReadMapStart()
|
|
if yyl3127 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3127, d)
|
|
}
|
|
} else if yyct3127 == codecSelferValueTypeArray1234 {
|
|
yyl3127 := r.ReadArrayStart()
|
|
if yyl3127 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3127, 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 yys3128Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3128Slc
|
|
var yyhl3128 bool = l >= 0
|
|
for yyj3128 := 0; ; yyj3128++ {
|
|
if yyhl3128 {
|
|
if yyj3128 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3128Slc = r.DecodeBytes(yys3128Slc, true, true)
|
|
yys3128 := string(yys3128Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3128 {
|
|
case "limits":
|
|
if r.TryDecodeAsNil() {
|
|
x.Limits = nil
|
|
} else {
|
|
yyv3129 := &x.Limits
|
|
yym3130 := z.DecBinary()
|
|
_ = yym3130
|
|
if false {
|
|
} else {
|
|
h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv3129), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3128)
|
|
} // end switch yys3128
|
|
} // end for yyj3128
|
|
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 yyj3131 int
|
|
var yyb3131 bool
|
|
var yyhl3131 bool = l >= 0
|
|
yyj3131++
|
|
if yyhl3131 {
|
|
yyb3131 = yyj3131 > l
|
|
} else {
|
|
yyb3131 = r.CheckBreak()
|
|
}
|
|
if yyb3131 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Limits = nil
|
|
} else {
|
|
yyv3132 := &x.Limits
|
|
yym3133 := z.DecBinary()
|
|
_ = yym3133
|
|
if false {
|
|
} else {
|
|
h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv3132), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj3131++
|
|
if yyhl3131 {
|
|
yyb3131 = yyj3131 > l
|
|
} else {
|
|
yyb3131 = r.CheckBreak()
|
|
}
|
|
if yyb3131 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3131-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 {
|
|
yym3134 := z.EncBinary()
|
|
_ = yym3134
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3135 := !z.EncBinary()
|
|
yy2arr3135 := z.EncBasicHandle().StructToArray
|
|
var yyq3135 [4]bool
|
|
_, _, _ = yysep3135, yyq3135, yy2arr3135
|
|
const yyr3135 bool = false
|
|
yyq3135[0] = x.Kind != ""
|
|
yyq3135[1] = x.APIVersion != ""
|
|
yyq3135[2] = true
|
|
yyq3135[3] = true
|
|
var yynn3135 int
|
|
if yyr3135 || yy2arr3135 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn3135 = 0
|
|
for _, b := range yyq3135 {
|
|
if b {
|
|
yynn3135++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3135)
|
|
yynn3135 = 0
|
|
}
|
|
if yyr3135 || yy2arr3135 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3135[0] {
|
|
yym3137 := z.EncBinary()
|
|
_ = yym3137
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3135[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3138 := z.EncBinary()
|
|
_ = yym3138
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr3135 || yy2arr3135 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3135[1] {
|
|
yym3140 := z.EncBinary()
|
|
_ = yym3140
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3135[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3141 := z.EncBinary()
|
|
_ = yym3141
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr3135 || yy2arr3135 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3135[2] {
|
|
yy3143 := &x.ObjectMeta
|
|
yy3143.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3135[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3144 := &x.ObjectMeta
|
|
yy3144.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr3135 || yy2arr3135 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3135[3] {
|
|
yy3146 := &x.Spec
|
|
yy3146.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3135[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("spec"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3147 := &x.Spec
|
|
yy3147.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr3135 || yy2arr3135 {
|
|
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
|
|
yym3148 := z.DecBinary()
|
|
_ = yym3148
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3149 := r.ContainerType()
|
|
if yyct3149 == codecSelferValueTypeMap1234 {
|
|
yyl3149 := r.ReadMapStart()
|
|
if yyl3149 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3149, d)
|
|
}
|
|
} else if yyct3149 == codecSelferValueTypeArray1234 {
|
|
yyl3149 := r.ReadArrayStart()
|
|
if yyl3149 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3149, 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 yys3150Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3150Slc
|
|
var yyhl3150 bool = l >= 0
|
|
for yyj3150 := 0; ; yyj3150++ {
|
|
if yyhl3150 {
|
|
if yyj3150 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3150Slc = r.DecodeBytes(yys3150Slc, true, true)
|
|
yys3150 := string(yys3150Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3150 {
|
|
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 {
|
|
yyv3153 := &x.ObjectMeta
|
|
yyv3153.CodecDecodeSelf(d)
|
|
}
|
|
case "spec":
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = LimitRangeSpec{}
|
|
} else {
|
|
yyv3154 := &x.Spec
|
|
yyv3154.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3150)
|
|
} // end switch yys3150
|
|
} // end for yyj3150
|
|
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 yyj3155 int
|
|
var yyb3155 bool
|
|
var yyhl3155 bool = l >= 0
|
|
yyj3155++
|
|
if yyhl3155 {
|
|
yyb3155 = yyj3155 > l
|
|
} else {
|
|
yyb3155 = r.CheckBreak()
|
|
}
|
|
if yyb3155 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj3155++
|
|
if yyhl3155 {
|
|
yyb3155 = yyj3155 > l
|
|
} else {
|
|
yyb3155 = r.CheckBreak()
|
|
}
|
|
if yyb3155 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj3155++
|
|
if yyhl3155 {
|
|
yyb3155 = yyj3155 > l
|
|
} else {
|
|
yyb3155 = r.CheckBreak()
|
|
}
|
|
if yyb3155 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv3158 := &x.ObjectMeta
|
|
yyv3158.CodecDecodeSelf(d)
|
|
}
|
|
yyj3155++
|
|
if yyhl3155 {
|
|
yyb3155 = yyj3155 > l
|
|
} else {
|
|
yyb3155 = r.CheckBreak()
|
|
}
|
|
if yyb3155 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = LimitRangeSpec{}
|
|
} else {
|
|
yyv3159 := &x.Spec
|
|
yyv3159.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj3155++
|
|
if yyhl3155 {
|
|
yyb3155 = yyj3155 > l
|
|
} else {
|
|
yyb3155 = r.CheckBreak()
|
|
}
|
|
if yyb3155 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3155-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 {
|
|
yym3160 := z.EncBinary()
|
|
_ = yym3160
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3161 := !z.EncBinary()
|
|
yy2arr3161 := z.EncBasicHandle().StructToArray
|
|
var yyq3161 [4]bool
|
|
_, _, _ = yysep3161, yyq3161, yy2arr3161
|
|
const yyr3161 bool = false
|
|
yyq3161[0] = x.Kind != ""
|
|
yyq3161[1] = x.APIVersion != ""
|
|
yyq3161[2] = true
|
|
var yynn3161 int
|
|
if yyr3161 || yy2arr3161 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn3161 = 1
|
|
for _, b := range yyq3161 {
|
|
if b {
|
|
yynn3161++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3161)
|
|
yynn3161 = 0
|
|
}
|
|
if yyr3161 || yy2arr3161 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3161[0] {
|
|
yym3163 := z.EncBinary()
|
|
_ = yym3163
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3161[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3164 := z.EncBinary()
|
|
_ = yym3164
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr3161 || yy2arr3161 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3161[1] {
|
|
yym3166 := z.EncBinary()
|
|
_ = yym3166
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3161[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3167 := z.EncBinary()
|
|
_ = yym3167
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr3161 || yy2arr3161 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3161[2] {
|
|
yy3169 := &x.ListMeta
|
|
yym3170 := z.EncBinary()
|
|
_ = yym3170
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3169) {
|
|
} else {
|
|
z.EncFallback(yy3169)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3161[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3171 := &x.ListMeta
|
|
yym3172 := z.EncBinary()
|
|
_ = yym3172
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3171) {
|
|
} else {
|
|
z.EncFallback(yy3171)
|
|
}
|
|
}
|
|
}
|
|
if yyr3161 || yy2arr3161 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3174 := z.EncBinary()
|
|
_ = yym3174
|
|
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 {
|
|
yym3175 := z.EncBinary()
|
|
_ = yym3175
|
|
if false {
|
|
} else {
|
|
h.encSliceLimitRange(([]LimitRange)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr3161 || yy2arr3161 {
|
|
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
|
|
yym3176 := z.DecBinary()
|
|
_ = yym3176
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3177 := r.ContainerType()
|
|
if yyct3177 == codecSelferValueTypeMap1234 {
|
|
yyl3177 := r.ReadMapStart()
|
|
if yyl3177 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3177, d)
|
|
}
|
|
} else if yyct3177 == codecSelferValueTypeArray1234 {
|
|
yyl3177 := r.ReadArrayStart()
|
|
if yyl3177 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3177, 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 yys3178Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3178Slc
|
|
var yyhl3178 bool = l >= 0
|
|
for yyj3178 := 0; ; yyj3178++ {
|
|
if yyhl3178 {
|
|
if yyj3178 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3178Slc = r.DecodeBytes(yys3178Slc, true, true)
|
|
yys3178 := string(yys3178Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3178 {
|
|
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 {
|
|
yyv3181 := &x.ListMeta
|
|
yym3182 := z.DecBinary()
|
|
_ = yym3182
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3181) {
|
|
} else {
|
|
z.DecFallback(yyv3181, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv3183 := &x.Items
|
|
yym3184 := z.DecBinary()
|
|
_ = yym3184
|
|
if false {
|
|
} else {
|
|
h.decSliceLimitRange((*[]LimitRange)(yyv3183), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3178)
|
|
} // end switch yys3178
|
|
} // end for yyj3178
|
|
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 yyj3185 int
|
|
var yyb3185 bool
|
|
var yyhl3185 bool = l >= 0
|
|
yyj3185++
|
|
if yyhl3185 {
|
|
yyb3185 = yyj3185 > l
|
|
} else {
|
|
yyb3185 = r.CheckBreak()
|
|
}
|
|
if yyb3185 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj3185++
|
|
if yyhl3185 {
|
|
yyb3185 = yyj3185 > l
|
|
} else {
|
|
yyb3185 = r.CheckBreak()
|
|
}
|
|
if yyb3185 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj3185++
|
|
if yyhl3185 {
|
|
yyb3185 = yyj3185 > l
|
|
} else {
|
|
yyb3185 = r.CheckBreak()
|
|
}
|
|
if yyb3185 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv3188 := &x.ListMeta
|
|
yym3189 := z.DecBinary()
|
|
_ = yym3189
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3188) {
|
|
} else {
|
|
z.DecFallback(yyv3188, false)
|
|
}
|
|
}
|
|
yyj3185++
|
|
if yyhl3185 {
|
|
yyb3185 = yyj3185 > l
|
|
} else {
|
|
yyb3185 = r.CheckBreak()
|
|
}
|
|
if yyb3185 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv3190 := &x.Items
|
|
yym3191 := z.DecBinary()
|
|
_ = yym3191
|
|
if false {
|
|
} else {
|
|
h.decSliceLimitRange((*[]LimitRange)(yyv3190), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj3185++
|
|
if yyhl3185 {
|
|
yyb3185 = yyj3185 > l
|
|
} else {
|
|
yyb3185 = r.CheckBreak()
|
|
}
|
|
if yyb3185 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3185-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 {
|
|
yym3192 := z.EncBinary()
|
|
_ = yym3192
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3193 := !z.EncBinary()
|
|
yy2arr3193 := z.EncBasicHandle().StructToArray
|
|
var yyq3193 [1]bool
|
|
_, _, _ = yysep3193, yyq3193, yy2arr3193
|
|
const yyr3193 bool = false
|
|
yyq3193[0] = len(x.Hard) != 0
|
|
var yynn3193 int
|
|
if yyr3193 || yy2arr3193 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn3193 = 0
|
|
for _, b := range yyq3193 {
|
|
if b {
|
|
yynn3193++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3193)
|
|
yynn3193 = 0
|
|
}
|
|
if yyr3193 || yy2arr3193 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3193[0] {
|
|
if x.Hard == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Hard.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3193[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 yyr3193 || yy2arr3193 {
|
|
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
|
|
yym3195 := z.DecBinary()
|
|
_ = yym3195
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3196 := r.ContainerType()
|
|
if yyct3196 == codecSelferValueTypeMap1234 {
|
|
yyl3196 := r.ReadMapStart()
|
|
if yyl3196 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3196, d)
|
|
}
|
|
} else if yyct3196 == codecSelferValueTypeArray1234 {
|
|
yyl3196 := r.ReadArrayStart()
|
|
if yyl3196 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3196, 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 yys3197Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3197Slc
|
|
var yyhl3197 bool = l >= 0
|
|
for yyj3197 := 0; ; yyj3197++ {
|
|
if yyhl3197 {
|
|
if yyj3197 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3197Slc = r.DecodeBytes(yys3197Slc, true, true)
|
|
yys3197 := string(yys3197Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3197 {
|
|
case "hard":
|
|
if r.TryDecodeAsNil() {
|
|
x.Hard = nil
|
|
} else {
|
|
yyv3198 := &x.Hard
|
|
yyv3198.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3197)
|
|
} // end switch yys3197
|
|
} // end for yyj3197
|
|
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 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.Hard = nil
|
|
} else {
|
|
yyv3200 := &x.Hard
|
|
yyv3200.CodecDecodeSelf(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 *ResourceQuotaStatus) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3201 := z.EncBinary()
|
|
_ = yym3201
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3202 := !z.EncBinary()
|
|
yy2arr3202 := z.EncBasicHandle().StructToArray
|
|
var yyq3202 [2]bool
|
|
_, _, _ = yysep3202, yyq3202, yy2arr3202
|
|
const yyr3202 bool = false
|
|
yyq3202[0] = len(x.Hard) != 0
|
|
yyq3202[1] = len(x.Used) != 0
|
|
var yynn3202 int
|
|
if yyr3202 || yy2arr3202 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn3202 = 0
|
|
for _, b := range yyq3202 {
|
|
if b {
|
|
yynn3202++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3202)
|
|
yynn3202 = 0
|
|
}
|
|
if yyr3202 || yy2arr3202 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3202[0] {
|
|
if x.Hard == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Hard.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3202[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 yyr3202 || yy2arr3202 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3202[1] {
|
|
if x.Used == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Used.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3202[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 yyr3202 || yy2arr3202 {
|
|
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
|
|
yym3205 := z.DecBinary()
|
|
_ = yym3205
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3206 := r.ContainerType()
|
|
if yyct3206 == codecSelferValueTypeMap1234 {
|
|
yyl3206 := r.ReadMapStart()
|
|
if yyl3206 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3206, d)
|
|
}
|
|
} else if yyct3206 == codecSelferValueTypeArray1234 {
|
|
yyl3206 := r.ReadArrayStart()
|
|
if yyl3206 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3206, 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 yys3207Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3207Slc
|
|
var yyhl3207 bool = l >= 0
|
|
for yyj3207 := 0; ; yyj3207++ {
|
|
if yyhl3207 {
|
|
if yyj3207 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3207Slc = r.DecodeBytes(yys3207Slc, true, true)
|
|
yys3207 := string(yys3207Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3207 {
|
|
case "hard":
|
|
if r.TryDecodeAsNil() {
|
|
x.Hard = nil
|
|
} else {
|
|
yyv3208 := &x.Hard
|
|
yyv3208.CodecDecodeSelf(d)
|
|
}
|
|
case "used":
|
|
if r.TryDecodeAsNil() {
|
|
x.Used = nil
|
|
} else {
|
|
yyv3209 := &x.Used
|
|
yyv3209.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3207)
|
|
} // end switch yys3207
|
|
} // end for yyj3207
|
|
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 yyj3210 int
|
|
var yyb3210 bool
|
|
var yyhl3210 bool = l >= 0
|
|
yyj3210++
|
|
if yyhl3210 {
|
|
yyb3210 = yyj3210 > l
|
|
} else {
|
|
yyb3210 = r.CheckBreak()
|
|
}
|
|
if yyb3210 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Hard = nil
|
|
} else {
|
|
yyv3211 := &x.Hard
|
|
yyv3211.CodecDecodeSelf(d)
|
|
}
|
|
yyj3210++
|
|
if yyhl3210 {
|
|
yyb3210 = yyj3210 > l
|
|
} else {
|
|
yyb3210 = r.CheckBreak()
|
|
}
|
|
if yyb3210 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Used = nil
|
|
} else {
|
|
yyv3212 := &x.Used
|
|
yyv3212.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj3210++
|
|
if yyhl3210 {
|
|
yyb3210 = yyj3210 > l
|
|
} else {
|
|
yyb3210 = r.CheckBreak()
|
|
}
|
|
if yyb3210 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3210-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 {
|
|
yym3213 := z.EncBinary()
|
|
_ = yym3213
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3214 := !z.EncBinary()
|
|
yy2arr3214 := z.EncBasicHandle().StructToArray
|
|
var yyq3214 [5]bool
|
|
_, _, _ = yysep3214, yyq3214, yy2arr3214
|
|
const yyr3214 bool = false
|
|
yyq3214[0] = x.Kind != ""
|
|
yyq3214[1] = x.APIVersion != ""
|
|
yyq3214[2] = true
|
|
yyq3214[3] = true
|
|
yyq3214[4] = true
|
|
var yynn3214 int
|
|
if yyr3214 || yy2arr3214 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn3214 = 0
|
|
for _, b := range yyq3214 {
|
|
if b {
|
|
yynn3214++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3214)
|
|
yynn3214 = 0
|
|
}
|
|
if yyr3214 || yy2arr3214 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3214[0] {
|
|
yym3216 := z.EncBinary()
|
|
_ = yym3216
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3214[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3217 := z.EncBinary()
|
|
_ = yym3217
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr3214 || yy2arr3214 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3214[1] {
|
|
yym3219 := z.EncBinary()
|
|
_ = yym3219
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3214[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3220 := z.EncBinary()
|
|
_ = yym3220
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr3214 || yy2arr3214 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3214[2] {
|
|
yy3222 := &x.ObjectMeta
|
|
yy3222.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3214[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3223 := &x.ObjectMeta
|
|
yy3223.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr3214 || yy2arr3214 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3214[3] {
|
|
yy3225 := &x.Spec
|
|
yy3225.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3214[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("spec"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3226 := &x.Spec
|
|
yy3226.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr3214 || yy2arr3214 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3214[4] {
|
|
yy3228 := &x.Status
|
|
yy3228.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3214[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("status"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3229 := &x.Status
|
|
yy3229.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr3214 || yy2arr3214 {
|
|
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
|
|
yym3230 := z.DecBinary()
|
|
_ = yym3230
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3231 := r.ContainerType()
|
|
if yyct3231 == codecSelferValueTypeMap1234 {
|
|
yyl3231 := r.ReadMapStart()
|
|
if yyl3231 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3231, d)
|
|
}
|
|
} else if yyct3231 == codecSelferValueTypeArray1234 {
|
|
yyl3231 := r.ReadArrayStart()
|
|
if yyl3231 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3231, 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 yys3232Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3232Slc
|
|
var yyhl3232 bool = l >= 0
|
|
for yyj3232 := 0; ; yyj3232++ {
|
|
if yyhl3232 {
|
|
if yyj3232 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3232Slc = r.DecodeBytes(yys3232Slc, true, true)
|
|
yys3232 := string(yys3232Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3232 {
|
|
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 {
|
|
yyv3235 := &x.ObjectMeta
|
|
yyv3235.CodecDecodeSelf(d)
|
|
}
|
|
case "spec":
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = ResourceQuotaSpec{}
|
|
} else {
|
|
yyv3236 := &x.Spec
|
|
yyv3236.CodecDecodeSelf(d)
|
|
}
|
|
case "status":
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = ResourceQuotaStatus{}
|
|
} else {
|
|
yyv3237 := &x.Status
|
|
yyv3237.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3232)
|
|
} // end switch yys3232
|
|
} // end for yyj3232
|
|
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 yyj3238 int
|
|
var yyb3238 bool
|
|
var yyhl3238 bool = l >= 0
|
|
yyj3238++
|
|
if yyhl3238 {
|
|
yyb3238 = yyj3238 > l
|
|
} else {
|
|
yyb3238 = r.CheckBreak()
|
|
}
|
|
if yyb3238 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj3238++
|
|
if yyhl3238 {
|
|
yyb3238 = yyj3238 > l
|
|
} else {
|
|
yyb3238 = r.CheckBreak()
|
|
}
|
|
if yyb3238 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj3238++
|
|
if yyhl3238 {
|
|
yyb3238 = yyj3238 > l
|
|
} else {
|
|
yyb3238 = r.CheckBreak()
|
|
}
|
|
if yyb3238 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv3241 := &x.ObjectMeta
|
|
yyv3241.CodecDecodeSelf(d)
|
|
}
|
|
yyj3238++
|
|
if yyhl3238 {
|
|
yyb3238 = yyj3238 > l
|
|
} else {
|
|
yyb3238 = r.CheckBreak()
|
|
}
|
|
if yyb3238 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = ResourceQuotaSpec{}
|
|
} else {
|
|
yyv3242 := &x.Spec
|
|
yyv3242.CodecDecodeSelf(d)
|
|
}
|
|
yyj3238++
|
|
if yyhl3238 {
|
|
yyb3238 = yyj3238 > l
|
|
} else {
|
|
yyb3238 = r.CheckBreak()
|
|
}
|
|
if yyb3238 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = ResourceQuotaStatus{}
|
|
} else {
|
|
yyv3243 := &x.Status
|
|
yyv3243.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj3238++
|
|
if yyhl3238 {
|
|
yyb3238 = yyj3238 > l
|
|
} else {
|
|
yyb3238 = r.CheckBreak()
|
|
}
|
|
if yyb3238 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3238-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 {
|
|
yym3244 := z.EncBinary()
|
|
_ = yym3244
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3245 := !z.EncBinary()
|
|
yy2arr3245 := z.EncBasicHandle().StructToArray
|
|
var yyq3245 [4]bool
|
|
_, _, _ = yysep3245, yyq3245, yy2arr3245
|
|
const yyr3245 bool = false
|
|
yyq3245[0] = x.Kind != ""
|
|
yyq3245[1] = x.APIVersion != ""
|
|
yyq3245[2] = true
|
|
var yynn3245 int
|
|
if yyr3245 || yy2arr3245 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn3245 = 1
|
|
for _, b := range yyq3245 {
|
|
if b {
|
|
yynn3245++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3245)
|
|
yynn3245 = 0
|
|
}
|
|
if yyr3245 || yy2arr3245 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3245[0] {
|
|
yym3247 := z.EncBinary()
|
|
_ = yym3247
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3245[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3248 := z.EncBinary()
|
|
_ = yym3248
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr3245 || yy2arr3245 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3245[1] {
|
|
yym3250 := z.EncBinary()
|
|
_ = yym3250
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3245[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3251 := z.EncBinary()
|
|
_ = yym3251
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr3245 || yy2arr3245 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3245[2] {
|
|
yy3253 := &x.ListMeta
|
|
yym3254 := z.EncBinary()
|
|
_ = yym3254
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3253) {
|
|
} else {
|
|
z.EncFallback(yy3253)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3245[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3255 := &x.ListMeta
|
|
yym3256 := z.EncBinary()
|
|
_ = yym3256
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3255) {
|
|
} else {
|
|
z.EncFallback(yy3255)
|
|
}
|
|
}
|
|
}
|
|
if yyr3245 || yy2arr3245 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3258 := z.EncBinary()
|
|
_ = yym3258
|
|
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 {
|
|
yym3259 := z.EncBinary()
|
|
_ = yym3259
|
|
if false {
|
|
} else {
|
|
h.encSliceResourceQuota(([]ResourceQuota)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr3245 || yy2arr3245 {
|
|
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
|
|
yym3260 := z.DecBinary()
|
|
_ = yym3260
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3261 := r.ContainerType()
|
|
if yyct3261 == codecSelferValueTypeMap1234 {
|
|
yyl3261 := r.ReadMapStart()
|
|
if yyl3261 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3261, d)
|
|
}
|
|
} else if yyct3261 == codecSelferValueTypeArray1234 {
|
|
yyl3261 := r.ReadArrayStart()
|
|
if yyl3261 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3261, 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 yys3262Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3262Slc
|
|
var yyhl3262 bool = l >= 0
|
|
for yyj3262 := 0; ; yyj3262++ {
|
|
if yyhl3262 {
|
|
if yyj3262 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3262Slc = r.DecodeBytes(yys3262Slc, true, true)
|
|
yys3262 := string(yys3262Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3262 {
|
|
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 {
|
|
yyv3265 := &x.ListMeta
|
|
yym3266 := z.DecBinary()
|
|
_ = yym3266
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3265) {
|
|
} else {
|
|
z.DecFallback(yyv3265, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv3267 := &x.Items
|
|
yym3268 := z.DecBinary()
|
|
_ = yym3268
|
|
if false {
|
|
} else {
|
|
h.decSliceResourceQuota((*[]ResourceQuota)(yyv3267), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3262)
|
|
} // end switch yys3262
|
|
} // end for yyj3262
|
|
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 yyj3269 int
|
|
var yyb3269 bool
|
|
var yyhl3269 bool = l >= 0
|
|
yyj3269++
|
|
if yyhl3269 {
|
|
yyb3269 = yyj3269 > l
|
|
} else {
|
|
yyb3269 = r.CheckBreak()
|
|
}
|
|
if yyb3269 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj3269++
|
|
if yyhl3269 {
|
|
yyb3269 = yyj3269 > l
|
|
} else {
|
|
yyb3269 = r.CheckBreak()
|
|
}
|
|
if yyb3269 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj3269++
|
|
if yyhl3269 {
|
|
yyb3269 = yyj3269 > l
|
|
} else {
|
|
yyb3269 = r.CheckBreak()
|
|
}
|
|
if yyb3269 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv3272 := &x.ListMeta
|
|
yym3273 := z.DecBinary()
|
|
_ = yym3273
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3272) {
|
|
} else {
|
|
z.DecFallback(yyv3272, false)
|
|
}
|
|
}
|
|
yyj3269++
|
|
if yyhl3269 {
|
|
yyb3269 = yyj3269 > l
|
|
} else {
|
|
yyb3269 = r.CheckBreak()
|
|
}
|
|
if yyb3269 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv3274 := &x.Items
|
|
yym3275 := z.DecBinary()
|
|
_ = yym3275
|
|
if false {
|
|
} else {
|
|
h.decSliceResourceQuota((*[]ResourceQuota)(yyv3274), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj3269++
|
|
if yyhl3269 {
|
|
yyb3269 = yyj3269 > l
|
|
} else {
|
|
yyb3269 = r.CheckBreak()
|
|
}
|
|
if yyb3269 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3269-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 {
|
|
yym3276 := z.EncBinary()
|
|
_ = yym3276
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3277 := !z.EncBinary()
|
|
yy2arr3277 := z.EncBasicHandle().StructToArray
|
|
var yyq3277 [5]bool
|
|
_, _, _ = yysep3277, yyq3277, yy2arr3277
|
|
const yyr3277 bool = false
|
|
yyq3277[0] = x.Kind != ""
|
|
yyq3277[1] = x.APIVersion != ""
|
|
yyq3277[2] = true
|
|
yyq3277[3] = len(x.Data) != 0
|
|
yyq3277[4] = x.Type != ""
|
|
var yynn3277 int
|
|
if yyr3277 || yy2arr3277 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn3277 = 0
|
|
for _, b := range yyq3277 {
|
|
if b {
|
|
yynn3277++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3277)
|
|
yynn3277 = 0
|
|
}
|
|
if yyr3277 || yy2arr3277 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3277[0] {
|
|
yym3279 := z.EncBinary()
|
|
_ = yym3279
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3277[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3280 := z.EncBinary()
|
|
_ = yym3280
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr3277 || yy2arr3277 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3277[1] {
|
|
yym3282 := z.EncBinary()
|
|
_ = yym3282
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3277[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3283 := z.EncBinary()
|
|
_ = yym3283
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr3277 || yy2arr3277 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3277[2] {
|
|
yy3285 := &x.ObjectMeta
|
|
yy3285.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3277[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3286 := &x.ObjectMeta
|
|
yy3286.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr3277 || yy2arr3277 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3277[3] {
|
|
if x.Data == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3288 := z.EncBinary()
|
|
_ = yym3288
|
|
if false {
|
|
} else {
|
|
h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3277[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("data"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Data == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3289 := z.EncBinary()
|
|
_ = yym3289
|
|
if false {
|
|
} else {
|
|
h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr3277 || yy2arr3277 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3277[4] {
|
|
x.Type.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3277[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("type"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Type.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr3277 || yy2arr3277 {
|
|
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
|
|
yym3291 := z.DecBinary()
|
|
_ = yym3291
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3292 := r.ContainerType()
|
|
if yyct3292 == codecSelferValueTypeMap1234 {
|
|
yyl3292 := r.ReadMapStart()
|
|
if yyl3292 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3292, d)
|
|
}
|
|
} else if yyct3292 == codecSelferValueTypeArray1234 {
|
|
yyl3292 := r.ReadArrayStart()
|
|
if yyl3292 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3292, 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 yys3293Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3293Slc
|
|
var yyhl3293 bool = l >= 0
|
|
for yyj3293 := 0; ; yyj3293++ {
|
|
if yyhl3293 {
|
|
if yyj3293 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3293Slc = r.DecodeBytes(yys3293Slc, true, true)
|
|
yys3293 := string(yys3293Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3293 {
|
|
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 {
|
|
yyv3296 := &x.ObjectMeta
|
|
yyv3296.CodecDecodeSelf(d)
|
|
}
|
|
case "data":
|
|
if r.TryDecodeAsNil() {
|
|
x.Data = nil
|
|
} else {
|
|
yyv3297 := &x.Data
|
|
yym3298 := z.DecBinary()
|
|
_ = yym3298
|
|
if false {
|
|
} else {
|
|
h.decMapstringSliceuint8((*map[string][]uint8)(yyv3297), d)
|
|
}
|
|
}
|
|
case "type":
|
|
if r.TryDecodeAsNil() {
|
|
x.Type = ""
|
|
} else {
|
|
x.Type = SecretType(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3293)
|
|
} // end switch yys3293
|
|
} // end for yyj3293
|
|
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 yyj3300 int
|
|
var yyb3300 bool
|
|
var yyhl3300 bool = l >= 0
|
|
yyj3300++
|
|
if yyhl3300 {
|
|
yyb3300 = yyj3300 > l
|
|
} else {
|
|
yyb3300 = r.CheckBreak()
|
|
}
|
|
if yyb3300 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj3300++
|
|
if yyhl3300 {
|
|
yyb3300 = yyj3300 > l
|
|
} else {
|
|
yyb3300 = r.CheckBreak()
|
|
}
|
|
if yyb3300 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj3300++
|
|
if yyhl3300 {
|
|
yyb3300 = yyj3300 > l
|
|
} else {
|
|
yyb3300 = r.CheckBreak()
|
|
}
|
|
if yyb3300 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv3303 := &x.ObjectMeta
|
|
yyv3303.CodecDecodeSelf(d)
|
|
}
|
|
yyj3300++
|
|
if yyhl3300 {
|
|
yyb3300 = yyj3300 > l
|
|
} else {
|
|
yyb3300 = r.CheckBreak()
|
|
}
|
|
if yyb3300 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Data = nil
|
|
} else {
|
|
yyv3304 := &x.Data
|
|
yym3305 := z.DecBinary()
|
|
_ = yym3305
|
|
if false {
|
|
} else {
|
|
h.decMapstringSliceuint8((*map[string][]uint8)(yyv3304), d)
|
|
}
|
|
}
|
|
yyj3300++
|
|
if yyhl3300 {
|
|
yyb3300 = yyj3300 > l
|
|
} else {
|
|
yyb3300 = r.CheckBreak()
|
|
}
|
|
if yyb3300 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Type = ""
|
|
} else {
|
|
x.Type = SecretType(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj3300++
|
|
if yyhl3300 {
|
|
yyb3300 = yyj3300 > l
|
|
} else {
|
|
yyb3300 = r.CheckBreak()
|
|
}
|
|
if yyb3300 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3300-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x SecretType) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym3307 := z.EncBinary()
|
|
_ = yym3307
|
|
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
|
|
yym3308 := z.DecBinary()
|
|
_ = yym3308
|
|
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 {
|
|
yym3309 := z.EncBinary()
|
|
_ = yym3309
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3310 := !z.EncBinary()
|
|
yy2arr3310 := z.EncBasicHandle().StructToArray
|
|
var yyq3310 [4]bool
|
|
_, _, _ = yysep3310, yyq3310, yy2arr3310
|
|
const yyr3310 bool = false
|
|
yyq3310[0] = x.Kind != ""
|
|
yyq3310[1] = x.APIVersion != ""
|
|
yyq3310[2] = true
|
|
var yynn3310 int
|
|
if yyr3310 || yy2arr3310 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn3310 = 1
|
|
for _, b := range yyq3310 {
|
|
if b {
|
|
yynn3310++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3310)
|
|
yynn3310 = 0
|
|
}
|
|
if yyr3310 || yy2arr3310 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3310[0] {
|
|
yym3312 := z.EncBinary()
|
|
_ = yym3312
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3310[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3313 := z.EncBinary()
|
|
_ = yym3313
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr3310 || yy2arr3310 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3310[1] {
|
|
yym3315 := z.EncBinary()
|
|
_ = yym3315
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3310[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3316 := z.EncBinary()
|
|
_ = yym3316
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr3310 || yy2arr3310 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3310[2] {
|
|
yy3318 := &x.ListMeta
|
|
yym3319 := z.EncBinary()
|
|
_ = yym3319
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3318) {
|
|
} else {
|
|
z.EncFallback(yy3318)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3310[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3320 := &x.ListMeta
|
|
yym3321 := z.EncBinary()
|
|
_ = yym3321
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3320) {
|
|
} else {
|
|
z.EncFallback(yy3320)
|
|
}
|
|
}
|
|
}
|
|
if yyr3310 || yy2arr3310 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3323 := z.EncBinary()
|
|
_ = yym3323
|
|
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 {
|
|
yym3324 := z.EncBinary()
|
|
_ = yym3324
|
|
if false {
|
|
} else {
|
|
h.encSliceSecret(([]Secret)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr3310 || yy2arr3310 {
|
|
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
|
|
yym3325 := z.DecBinary()
|
|
_ = yym3325
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3326 := r.ContainerType()
|
|
if yyct3326 == codecSelferValueTypeMap1234 {
|
|
yyl3326 := r.ReadMapStart()
|
|
if yyl3326 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3326, d)
|
|
}
|
|
} else if yyct3326 == codecSelferValueTypeArray1234 {
|
|
yyl3326 := r.ReadArrayStart()
|
|
if yyl3326 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3326, 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 yys3327Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3327Slc
|
|
var yyhl3327 bool = l >= 0
|
|
for yyj3327 := 0; ; yyj3327++ {
|
|
if yyhl3327 {
|
|
if yyj3327 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3327Slc = r.DecodeBytes(yys3327Slc, true, true)
|
|
yys3327 := string(yys3327Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3327 {
|
|
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 {
|
|
yyv3330 := &x.ListMeta
|
|
yym3331 := z.DecBinary()
|
|
_ = yym3331
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3330) {
|
|
} else {
|
|
z.DecFallback(yyv3330, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv3332 := &x.Items
|
|
yym3333 := z.DecBinary()
|
|
_ = yym3333
|
|
if false {
|
|
} else {
|
|
h.decSliceSecret((*[]Secret)(yyv3332), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3327)
|
|
} // end switch yys3327
|
|
} // end for yyj3327
|
|
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 yyj3334 int
|
|
var yyb3334 bool
|
|
var yyhl3334 bool = l >= 0
|
|
yyj3334++
|
|
if yyhl3334 {
|
|
yyb3334 = yyj3334 > l
|
|
} else {
|
|
yyb3334 = r.CheckBreak()
|
|
}
|
|
if yyb3334 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj3334++
|
|
if yyhl3334 {
|
|
yyb3334 = yyj3334 > l
|
|
} else {
|
|
yyb3334 = r.CheckBreak()
|
|
}
|
|
if yyb3334 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj3334++
|
|
if yyhl3334 {
|
|
yyb3334 = yyj3334 > l
|
|
} else {
|
|
yyb3334 = r.CheckBreak()
|
|
}
|
|
if yyb3334 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv3337 := &x.ListMeta
|
|
yym3338 := z.DecBinary()
|
|
_ = yym3338
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3337) {
|
|
} else {
|
|
z.DecFallback(yyv3337, false)
|
|
}
|
|
}
|
|
yyj3334++
|
|
if yyhl3334 {
|
|
yyb3334 = yyj3334 > l
|
|
} else {
|
|
yyb3334 = r.CheckBreak()
|
|
}
|
|
if yyb3334 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv3339 := &x.Items
|
|
yym3340 := z.DecBinary()
|
|
_ = yym3340
|
|
if false {
|
|
} else {
|
|
h.decSliceSecret((*[]Secret)(yyv3339), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj3334++
|
|
if yyhl3334 {
|
|
yyb3334 = yyj3334 > l
|
|
} else {
|
|
yyb3334 = r.CheckBreak()
|
|
}
|
|
if yyb3334 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3334-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x PatchType) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym3341 := z.EncBinary()
|
|
_ = yym3341
|
|
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
|
|
yym3342 := z.DecBinary()
|
|
_ = yym3342
|
|
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
|
|
yym3343 := z.EncBinary()
|
|
_ = yym3343
|
|
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
|
|
yym3344 := z.DecBinary()
|
|
_ = yym3344
|
|
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 {
|
|
yym3345 := z.EncBinary()
|
|
_ = yym3345
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3346 := !z.EncBinary()
|
|
yy2arr3346 := z.EncBasicHandle().StructToArray
|
|
var yyq3346 [4]bool
|
|
_, _, _ = yysep3346, yyq3346, yy2arr3346
|
|
const yyr3346 bool = false
|
|
yyq3346[2] = x.Message != ""
|
|
yyq3346[3] = x.Error != ""
|
|
var yynn3346 int
|
|
if yyr3346 || yy2arr3346 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn3346 = 2
|
|
for _, b := range yyq3346 {
|
|
if b {
|
|
yynn3346++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3346)
|
|
yynn3346 = 0
|
|
}
|
|
if yyr3346 || yy2arr3346 {
|
|
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 yyr3346 || yy2arr3346 {
|
|
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 yyr3346 || yy2arr3346 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3346[2] {
|
|
yym3350 := z.EncBinary()
|
|
_ = yym3350
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3346[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("message"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3351 := z.EncBinary()
|
|
_ = yym3351
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
}
|
|
}
|
|
if yyr3346 || yy2arr3346 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3346[3] {
|
|
yym3353 := z.EncBinary()
|
|
_ = yym3353
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Error))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3346[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("error"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3354 := z.EncBinary()
|
|
_ = yym3354
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Error))
|
|
}
|
|
}
|
|
}
|
|
if yyr3346 || yy2arr3346 {
|
|
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
|
|
yym3355 := z.DecBinary()
|
|
_ = yym3355
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3356 := r.ContainerType()
|
|
if yyct3356 == codecSelferValueTypeMap1234 {
|
|
yyl3356 := r.ReadMapStart()
|
|
if yyl3356 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3356, d)
|
|
}
|
|
} else if yyct3356 == codecSelferValueTypeArray1234 {
|
|
yyl3356 := r.ReadArrayStart()
|
|
if yyl3356 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3356, 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 yys3357Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3357Slc
|
|
var yyhl3357 bool = l >= 0
|
|
for yyj3357 := 0; ; yyj3357++ {
|
|
if yyhl3357 {
|
|
if yyj3357 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3357Slc = r.DecodeBytes(yys3357Slc, true, true)
|
|
yys3357 := string(yys3357Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3357 {
|
|
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, yys3357)
|
|
} // end switch yys3357
|
|
} // end for yyj3357
|
|
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 yyj3362 int
|
|
var yyb3362 bool
|
|
var yyhl3362 bool = l >= 0
|
|
yyj3362++
|
|
if yyhl3362 {
|
|
yyb3362 = yyj3362 > l
|
|
} else {
|
|
yyb3362 = r.CheckBreak()
|
|
}
|
|
if yyb3362 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Type = ""
|
|
} else {
|
|
x.Type = ComponentConditionType(r.DecodeString())
|
|
}
|
|
yyj3362++
|
|
if yyhl3362 {
|
|
yyb3362 = yyj3362 > l
|
|
} else {
|
|
yyb3362 = r.CheckBreak()
|
|
}
|
|
if yyb3362 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = ""
|
|
} else {
|
|
x.Status = ConditionStatus(r.DecodeString())
|
|
}
|
|
yyj3362++
|
|
if yyhl3362 {
|
|
yyb3362 = yyj3362 > l
|
|
} else {
|
|
yyb3362 = r.CheckBreak()
|
|
}
|
|
if yyb3362 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Message = ""
|
|
} else {
|
|
x.Message = string(r.DecodeString())
|
|
}
|
|
yyj3362++
|
|
if yyhl3362 {
|
|
yyb3362 = yyj3362 > l
|
|
} else {
|
|
yyb3362 = r.CheckBreak()
|
|
}
|
|
if yyb3362 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Error = ""
|
|
} else {
|
|
x.Error = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj3362++
|
|
if yyhl3362 {
|
|
yyb3362 = yyj3362 > l
|
|
} else {
|
|
yyb3362 = r.CheckBreak()
|
|
}
|
|
if yyb3362 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3362-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 {
|
|
yym3367 := z.EncBinary()
|
|
_ = yym3367
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3368 := !z.EncBinary()
|
|
yy2arr3368 := z.EncBasicHandle().StructToArray
|
|
var yyq3368 [4]bool
|
|
_, _, _ = yysep3368, yyq3368, yy2arr3368
|
|
const yyr3368 bool = false
|
|
yyq3368[0] = x.Kind != ""
|
|
yyq3368[1] = x.APIVersion != ""
|
|
yyq3368[2] = true
|
|
yyq3368[3] = len(x.Conditions) != 0
|
|
var yynn3368 int
|
|
if yyr3368 || yy2arr3368 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn3368 = 0
|
|
for _, b := range yyq3368 {
|
|
if b {
|
|
yynn3368++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3368)
|
|
yynn3368 = 0
|
|
}
|
|
if yyr3368 || yy2arr3368 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3368[0] {
|
|
yym3370 := z.EncBinary()
|
|
_ = yym3370
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3368[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3371 := z.EncBinary()
|
|
_ = yym3371
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr3368 || yy2arr3368 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3368[1] {
|
|
yym3373 := z.EncBinary()
|
|
_ = yym3373
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3368[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3374 := z.EncBinary()
|
|
_ = yym3374
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr3368 || yy2arr3368 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3368[2] {
|
|
yy3376 := &x.ObjectMeta
|
|
yy3376.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3368[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3377 := &x.ObjectMeta
|
|
yy3377.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr3368 || yy2arr3368 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3368[3] {
|
|
if x.Conditions == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3379 := z.EncBinary()
|
|
_ = yym3379
|
|
if false {
|
|
} else {
|
|
h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3368[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("conditions"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Conditions == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3380 := z.EncBinary()
|
|
_ = yym3380
|
|
if false {
|
|
} else {
|
|
h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr3368 || yy2arr3368 {
|
|
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
|
|
yym3381 := z.DecBinary()
|
|
_ = yym3381
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3382 := r.ContainerType()
|
|
if yyct3382 == codecSelferValueTypeMap1234 {
|
|
yyl3382 := r.ReadMapStart()
|
|
if yyl3382 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3382, d)
|
|
}
|
|
} else if yyct3382 == codecSelferValueTypeArray1234 {
|
|
yyl3382 := r.ReadArrayStart()
|
|
if yyl3382 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3382, 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 yys3383Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3383Slc
|
|
var yyhl3383 bool = l >= 0
|
|
for yyj3383 := 0; ; yyj3383++ {
|
|
if yyhl3383 {
|
|
if yyj3383 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3383Slc = r.DecodeBytes(yys3383Slc, true, true)
|
|
yys3383 := string(yys3383Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3383 {
|
|
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 {
|
|
yyv3386 := &x.ObjectMeta
|
|
yyv3386.CodecDecodeSelf(d)
|
|
}
|
|
case "conditions":
|
|
if r.TryDecodeAsNil() {
|
|
x.Conditions = nil
|
|
} else {
|
|
yyv3387 := &x.Conditions
|
|
yym3388 := z.DecBinary()
|
|
_ = yym3388
|
|
if false {
|
|
} else {
|
|
h.decSliceComponentCondition((*[]ComponentCondition)(yyv3387), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3383)
|
|
} // end switch yys3383
|
|
} // end for yyj3383
|
|
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 yyj3389 int
|
|
var yyb3389 bool
|
|
var yyhl3389 bool = l >= 0
|
|
yyj3389++
|
|
if yyhl3389 {
|
|
yyb3389 = yyj3389 > l
|
|
} else {
|
|
yyb3389 = r.CheckBreak()
|
|
}
|
|
if yyb3389 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj3389++
|
|
if yyhl3389 {
|
|
yyb3389 = yyj3389 > l
|
|
} else {
|
|
yyb3389 = r.CheckBreak()
|
|
}
|
|
if yyb3389 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj3389++
|
|
if yyhl3389 {
|
|
yyb3389 = yyj3389 > l
|
|
} else {
|
|
yyb3389 = r.CheckBreak()
|
|
}
|
|
if yyb3389 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv3392 := &x.ObjectMeta
|
|
yyv3392.CodecDecodeSelf(d)
|
|
}
|
|
yyj3389++
|
|
if yyhl3389 {
|
|
yyb3389 = yyj3389 > l
|
|
} else {
|
|
yyb3389 = r.CheckBreak()
|
|
}
|
|
if yyb3389 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Conditions = nil
|
|
} else {
|
|
yyv3393 := &x.Conditions
|
|
yym3394 := z.DecBinary()
|
|
_ = yym3394
|
|
if false {
|
|
} else {
|
|
h.decSliceComponentCondition((*[]ComponentCondition)(yyv3393), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj3389++
|
|
if yyhl3389 {
|
|
yyb3389 = yyj3389 > l
|
|
} else {
|
|
yyb3389 = r.CheckBreak()
|
|
}
|
|
if yyb3389 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3389-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 {
|
|
yym3395 := z.EncBinary()
|
|
_ = yym3395
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3396 := !z.EncBinary()
|
|
yy2arr3396 := z.EncBasicHandle().StructToArray
|
|
var yyq3396 [4]bool
|
|
_, _, _ = yysep3396, yyq3396, yy2arr3396
|
|
const yyr3396 bool = false
|
|
yyq3396[0] = x.Kind != ""
|
|
yyq3396[1] = x.APIVersion != ""
|
|
yyq3396[2] = true
|
|
var yynn3396 int
|
|
if yyr3396 || yy2arr3396 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn3396 = 1
|
|
for _, b := range yyq3396 {
|
|
if b {
|
|
yynn3396++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3396)
|
|
yynn3396 = 0
|
|
}
|
|
if yyr3396 || yy2arr3396 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3396[0] {
|
|
yym3398 := z.EncBinary()
|
|
_ = yym3398
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3396[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3399 := z.EncBinary()
|
|
_ = yym3399
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr3396 || yy2arr3396 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3396[1] {
|
|
yym3401 := z.EncBinary()
|
|
_ = yym3401
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3396[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3402 := z.EncBinary()
|
|
_ = yym3402
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr3396 || yy2arr3396 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3396[2] {
|
|
yy3404 := &x.ListMeta
|
|
yym3405 := z.EncBinary()
|
|
_ = yym3405
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3404) {
|
|
} else {
|
|
z.EncFallback(yy3404)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3396[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3406 := &x.ListMeta
|
|
yym3407 := z.EncBinary()
|
|
_ = yym3407
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3406) {
|
|
} else {
|
|
z.EncFallback(yy3406)
|
|
}
|
|
}
|
|
}
|
|
if yyr3396 || yy2arr3396 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3409 := z.EncBinary()
|
|
_ = yym3409
|
|
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 {
|
|
yym3410 := z.EncBinary()
|
|
_ = yym3410
|
|
if false {
|
|
} else {
|
|
h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr3396 || yy2arr3396 {
|
|
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
|
|
yym3411 := z.DecBinary()
|
|
_ = yym3411
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3412 := r.ContainerType()
|
|
if yyct3412 == codecSelferValueTypeMap1234 {
|
|
yyl3412 := r.ReadMapStart()
|
|
if yyl3412 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3412, d)
|
|
}
|
|
} else if yyct3412 == codecSelferValueTypeArray1234 {
|
|
yyl3412 := r.ReadArrayStart()
|
|
if yyl3412 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3412, 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 yys3413Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3413Slc
|
|
var yyhl3413 bool = l >= 0
|
|
for yyj3413 := 0; ; yyj3413++ {
|
|
if yyhl3413 {
|
|
if yyj3413 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3413Slc = r.DecodeBytes(yys3413Slc, true, true)
|
|
yys3413 := string(yys3413Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3413 {
|
|
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 {
|
|
yyv3416 := &x.ListMeta
|
|
yym3417 := z.DecBinary()
|
|
_ = yym3417
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3416) {
|
|
} else {
|
|
z.DecFallback(yyv3416, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv3418 := &x.Items
|
|
yym3419 := z.DecBinary()
|
|
_ = yym3419
|
|
if false {
|
|
} else {
|
|
h.decSliceComponentStatus((*[]ComponentStatus)(yyv3418), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3413)
|
|
} // end switch yys3413
|
|
} // end for yyj3413
|
|
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 yyj3420 int
|
|
var yyb3420 bool
|
|
var yyhl3420 bool = l >= 0
|
|
yyj3420++
|
|
if yyhl3420 {
|
|
yyb3420 = yyj3420 > l
|
|
} else {
|
|
yyb3420 = r.CheckBreak()
|
|
}
|
|
if yyb3420 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj3420++
|
|
if yyhl3420 {
|
|
yyb3420 = yyj3420 > l
|
|
} else {
|
|
yyb3420 = r.CheckBreak()
|
|
}
|
|
if yyb3420 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj3420++
|
|
if yyhl3420 {
|
|
yyb3420 = yyj3420 > l
|
|
} else {
|
|
yyb3420 = r.CheckBreak()
|
|
}
|
|
if yyb3420 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv3423 := &x.ListMeta
|
|
yym3424 := z.DecBinary()
|
|
_ = yym3424
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3423) {
|
|
} else {
|
|
z.DecFallback(yyv3423, false)
|
|
}
|
|
}
|
|
yyj3420++
|
|
if yyhl3420 {
|
|
yyb3420 = yyj3420 > l
|
|
} else {
|
|
yyb3420 = r.CheckBreak()
|
|
}
|
|
if yyb3420 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv3425 := &x.Items
|
|
yym3426 := z.DecBinary()
|
|
_ = yym3426
|
|
if false {
|
|
} else {
|
|
h.decSliceComponentStatus((*[]ComponentStatus)(yyv3425), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj3420++
|
|
if yyhl3420 {
|
|
yyb3420 = yyj3420 > l
|
|
} else {
|
|
yyb3420 = r.CheckBreak()
|
|
}
|
|
if yyb3420 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3420-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 {
|
|
yym3427 := z.EncBinary()
|
|
_ = yym3427
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3428 := !z.EncBinary()
|
|
yy2arr3428 := z.EncBasicHandle().StructToArray
|
|
var yyq3428 [5]bool
|
|
_, _, _ = yysep3428, yyq3428, yy2arr3428
|
|
const yyr3428 bool = false
|
|
yyq3428[0] = x.Capabilities != nil
|
|
yyq3428[1] = x.Privileged != nil
|
|
yyq3428[2] = x.SELinuxOptions != nil
|
|
yyq3428[3] = x.RunAsUser != nil
|
|
yyq3428[4] = x.RunAsNonRoot != nil
|
|
var yynn3428 int
|
|
if yyr3428 || yy2arr3428 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn3428 = 0
|
|
for _, b := range yyq3428 {
|
|
if b {
|
|
yynn3428++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3428)
|
|
yynn3428 = 0
|
|
}
|
|
if yyr3428 || yy2arr3428 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3428[0] {
|
|
if x.Capabilities == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Capabilities.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3428[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 yyr3428 || yy2arr3428 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3428[1] {
|
|
if x.Privileged == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy3431 := *x.Privileged
|
|
yym3432 := z.EncBinary()
|
|
_ = yym3432
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(yy3431))
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3428[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("privileged"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Privileged == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy3433 := *x.Privileged
|
|
yym3434 := z.EncBinary()
|
|
_ = yym3434
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(yy3433))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr3428 || yy2arr3428 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3428[2] {
|
|
if x.SELinuxOptions == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.SELinuxOptions.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3428[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 yyr3428 || yy2arr3428 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3428[3] {
|
|
if x.RunAsUser == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy3437 := *x.RunAsUser
|
|
yym3438 := z.EncBinary()
|
|
_ = yym3438
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy3437))
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3428[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("runAsUser"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.RunAsUser == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy3439 := *x.RunAsUser
|
|
yym3440 := z.EncBinary()
|
|
_ = yym3440
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy3439))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr3428 || yy2arr3428 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3428[4] {
|
|
if x.RunAsNonRoot == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy3442 := *x.RunAsNonRoot
|
|
yym3443 := z.EncBinary()
|
|
_ = yym3443
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(yy3442))
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3428[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.RunAsNonRoot == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy3444 := *x.RunAsNonRoot
|
|
yym3445 := z.EncBinary()
|
|
_ = yym3445
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(yy3444))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr3428 || yy2arr3428 {
|
|
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
|
|
yym3446 := z.DecBinary()
|
|
_ = yym3446
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3447 := r.ContainerType()
|
|
if yyct3447 == codecSelferValueTypeMap1234 {
|
|
yyl3447 := r.ReadMapStart()
|
|
if yyl3447 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3447, d)
|
|
}
|
|
} else if yyct3447 == codecSelferValueTypeArray1234 {
|
|
yyl3447 := r.ReadArrayStart()
|
|
if yyl3447 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3447, 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 yys3448Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3448Slc
|
|
var yyhl3448 bool = l >= 0
|
|
for yyj3448 := 0; ; yyj3448++ {
|
|
if yyhl3448 {
|
|
if yyj3448 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3448Slc = r.DecodeBytes(yys3448Slc, true, true)
|
|
yys3448 := string(yys3448Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3448 {
|
|
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)
|
|
}
|
|
yym3451 := z.DecBinary()
|
|
_ = yym3451
|
|
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)
|
|
}
|
|
yym3454 := z.DecBinary()
|
|
_ = yym3454
|
|
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)
|
|
}
|
|
yym3456 := z.DecBinary()
|
|
_ = yym3456
|
|
if false {
|
|
} else {
|
|
*((*bool)(x.RunAsNonRoot)) = r.DecodeBool()
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3448)
|
|
} // end switch yys3448
|
|
} // end for yyj3448
|
|
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 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() {
|
|
if x.Capabilities != nil {
|
|
x.Capabilities = nil
|
|
}
|
|
} else {
|
|
if x.Capabilities == nil {
|
|
x.Capabilities = new(Capabilities)
|
|
}
|
|
x.Capabilities.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() {
|
|
if x.Privileged != nil {
|
|
x.Privileged = nil
|
|
}
|
|
} else {
|
|
if x.Privileged == nil {
|
|
x.Privileged = new(bool)
|
|
}
|
|
yym3460 := z.DecBinary()
|
|
_ = yym3460
|
|
if false {
|
|
} else {
|
|
*((*bool)(x.Privileged)) = r.DecodeBool()
|
|
}
|
|
}
|
|
yyj3457++
|
|
if yyhl3457 {
|
|
yyb3457 = yyj3457 > l
|
|
} else {
|
|
yyb3457 = r.CheckBreak()
|
|
}
|
|
if yyb3457 {
|
|
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)
|
|
}
|
|
yyj3457++
|
|
if yyhl3457 {
|
|
yyb3457 = yyj3457 > l
|
|
} else {
|
|
yyb3457 = r.CheckBreak()
|
|
}
|
|
if yyb3457 {
|
|
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)
|
|
}
|
|
yym3463 := z.DecBinary()
|
|
_ = yym3463
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
yyj3457++
|
|
if yyhl3457 {
|
|
yyb3457 = yyj3457 > l
|
|
} else {
|
|
yyb3457 = r.CheckBreak()
|
|
}
|
|
if yyb3457 {
|
|
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)
|
|
}
|
|
yym3465 := z.DecBinary()
|
|
_ = yym3465
|
|
if false {
|
|
} else {
|
|
*((*bool)(x.RunAsNonRoot)) = r.DecodeBool()
|
|
}
|
|
}
|
|
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 *SELinuxOptions) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3466 := z.EncBinary()
|
|
_ = yym3466
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3467 := !z.EncBinary()
|
|
yy2arr3467 := z.EncBasicHandle().StructToArray
|
|
var yyq3467 [4]bool
|
|
_, _, _ = yysep3467, yyq3467, yy2arr3467
|
|
const yyr3467 bool = false
|
|
yyq3467[0] = x.User != ""
|
|
yyq3467[1] = x.Role != ""
|
|
yyq3467[2] = x.Type != ""
|
|
yyq3467[3] = x.Level != ""
|
|
var yynn3467 int
|
|
if yyr3467 || yy2arr3467 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn3467 = 0
|
|
for _, b := range yyq3467 {
|
|
if b {
|
|
yynn3467++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3467)
|
|
yynn3467 = 0
|
|
}
|
|
if yyr3467 || yy2arr3467 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3467[0] {
|
|
yym3469 := z.EncBinary()
|
|
_ = yym3469
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.User))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3467[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("user"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3470 := z.EncBinary()
|
|
_ = yym3470
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.User))
|
|
}
|
|
}
|
|
}
|
|
if yyr3467 || yy2arr3467 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3467[1] {
|
|
yym3472 := z.EncBinary()
|
|
_ = yym3472
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Role))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3467[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("role"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3473 := z.EncBinary()
|
|
_ = yym3473
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Role))
|
|
}
|
|
}
|
|
}
|
|
if yyr3467 || yy2arr3467 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3467[2] {
|
|
yym3475 := z.EncBinary()
|
|
_ = yym3475
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Type))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3467[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("type"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3476 := z.EncBinary()
|
|
_ = yym3476
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Type))
|
|
}
|
|
}
|
|
}
|
|
if yyr3467 || yy2arr3467 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3467[3] {
|
|
yym3478 := z.EncBinary()
|
|
_ = yym3478
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Level))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3467[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("level"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3479 := z.EncBinary()
|
|
_ = yym3479
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Level))
|
|
}
|
|
}
|
|
}
|
|
if yyr3467 || yy2arr3467 {
|
|
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
|
|
yym3480 := z.DecBinary()
|
|
_ = yym3480
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3481 := r.ContainerType()
|
|
if yyct3481 == codecSelferValueTypeMap1234 {
|
|
yyl3481 := r.ReadMapStart()
|
|
if yyl3481 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3481, d)
|
|
}
|
|
} else if yyct3481 == codecSelferValueTypeArray1234 {
|
|
yyl3481 := r.ReadArrayStart()
|
|
if yyl3481 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3481, 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 yys3482Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3482Slc
|
|
var yyhl3482 bool = l >= 0
|
|
for yyj3482 := 0; ; yyj3482++ {
|
|
if yyhl3482 {
|
|
if yyj3482 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3482Slc = r.DecodeBytes(yys3482Slc, true, true)
|
|
yys3482 := string(yys3482Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3482 {
|
|
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, yys3482)
|
|
} // end switch yys3482
|
|
} // end for yyj3482
|
|
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 yyj3487 int
|
|
var yyb3487 bool
|
|
var yyhl3487 bool = l >= 0
|
|
yyj3487++
|
|
if yyhl3487 {
|
|
yyb3487 = yyj3487 > l
|
|
} else {
|
|
yyb3487 = r.CheckBreak()
|
|
}
|
|
if yyb3487 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.User = ""
|
|
} else {
|
|
x.User = string(r.DecodeString())
|
|
}
|
|
yyj3487++
|
|
if yyhl3487 {
|
|
yyb3487 = yyj3487 > l
|
|
} else {
|
|
yyb3487 = r.CheckBreak()
|
|
}
|
|
if yyb3487 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Role = ""
|
|
} else {
|
|
x.Role = string(r.DecodeString())
|
|
}
|
|
yyj3487++
|
|
if yyhl3487 {
|
|
yyb3487 = yyj3487 > l
|
|
} else {
|
|
yyb3487 = r.CheckBreak()
|
|
}
|
|
if yyb3487 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Type = ""
|
|
} else {
|
|
x.Type = string(r.DecodeString())
|
|
}
|
|
yyj3487++
|
|
if yyhl3487 {
|
|
yyb3487 = yyj3487 > l
|
|
} else {
|
|
yyb3487 = r.CheckBreak()
|
|
}
|
|
if yyb3487 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Level = ""
|
|
} else {
|
|
x.Level = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj3487++
|
|
if yyhl3487 {
|
|
yyb3487 = yyj3487 > l
|
|
} else {
|
|
yyb3487 = r.CheckBreak()
|
|
}
|
|
if yyb3487 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3487-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 {
|
|
yym3492 := z.EncBinary()
|
|
_ = yym3492
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3493 := !z.EncBinary()
|
|
yy2arr3493 := z.EncBasicHandle().StructToArray
|
|
var yyq3493 [5]bool
|
|
_, _, _ = yysep3493, yyq3493, yy2arr3493
|
|
const yyr3493 bool = false
|
|
yyq3493[0] = x.Kind != ""
|
|
yyq3493[1] = x.APIVersion != ""
|
|
yyq3493[2] = true
|
|
var yynn3493 int
|
|
if yyr3493 || yy2arr3493 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn3493 = 2
|
|
for _, b := range yyq3493 {
|
|
if b {
|
|
yynn3493++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3493)
|
|
yynn3493 = 0
|
|
}
|
|
if yyr3493 || yy2arr3493 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3493[0] {
|
|
yym3495 := z.EncBinary()
|
|
_ = yym3495
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3493[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3496 := z.EncBinary()
|
|
_ = yym3496
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr3493 || yy2arr3493 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3493[1] {
|
|
yym3498 := z.EncBinary()
|
|
_ = yym3498
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3493[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3499 := z.EncBinary()
|
|
_ = yym3499
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr3493 || yy2arr3493 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3493[2] {
|
|
yy3501 := &x.ObjectMeta
|
|
yy3501.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3493[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3502 := &x.ObjectMeta
|
|
yy3502.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr3493 || yy2arr3493 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym3504 := z.EncBinary()
|
|
_ = yym3504
|
|
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)
|
|
yym3505 := z.EncBinary()
|
|
_ = yym3505
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Range))
|
|
}
|
|
}
|
|
if yyr3493 || yy2arr3493 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Data == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3507 := z.EncBinary()
|
|
_ = yym3507
|
|
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 {
|
|
yym3508 := z.EncBinary()
|
|
_ = yym3508
|
|
if false {
|
|
} else {
|
|
r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data))
|
|
}
|
|
}
|
|
}
|
|
if yyr3493 || yy2arr3493 {
|
|
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
|
|
yym3509 := z.DecBinary()
|
|
_ = yym3509
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3510 := r.ContainerType()
|
|
if yyct3510 == codecSelferValueTypeMap1234 {
|
|
yyl3510 := r.ReadMapStart()
|
|
if yyl3510 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3510, d)
|
|
}
|
|
} else if yyct3510 == codecSelferValueTypeArray1234 {
|
|
yyl3510 := r.ReadArrayStart()
|
|
if yyl3510 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3510, 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 yys3511Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3511Slc
|
|
var yyhl3511 bool = l >= 0
|
|
for yyj3511 := 0; ; yyj3511++ {
|
|
if yyhl3511 {
|
|
if yyj3511 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3511Slc = r.DecodeBytes(yys3511Slc, true, true)
|
|
yys3511 := string(yys3511Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3511 {
|
|
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 {
|
|
yyv3514 := &x.ObjectMeta
|
|
yyv3514.CodecDecodeSelf(d)
|
|
}
|
|
case "range":
|
|
if r.TryDecodeAsNil() {
|
|
x.Range = ""
|
|
} else {
|
|
x.Range = string(r.DecodeString())
|
|
}
|
|
case "data":
|
|
if r.TryDecodeAsNil() {
|
|
x.Data = nil
|
|
} else {
|
|
yyv3516 := &x.Data
|
|
yym3517 := z.DecBinary()
|
|
_ = yym3517
|
|
if false {
|
|
} else {
|
|
*yyv3516 = r.DecodeBytes(*(*[]byte)(yyv3516), false, false)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3511)
|
|
} // end switch yys3511
|
|
} // end for yyj3511
|
|
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 yyj3518 int
|
|
var yyb3518 bool
|
|
var yyhl3518 bool = l >= 0
|
|
yyj3518++
|
|
if yyhl3518 {
|
|
yyb3518 = yyj3518 > l
|
|
} else {
|
|
yyb3518 = r.CheckBreak()
|
|
}
|
|
if yyb3518 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj3518++
|
|
if yyhl3518 {
|
|
yyb3518 = yyj3518 > l
|
|
} else {
|
|
yyb3518 = r.CheckBreak()
|
|
}
|
|
if yyb3518 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj3518++
|
|
if yyhl3518 {
|
|
yyb3518 = yyj3518 > l
|
|
} else {
|
|
yyb3518 = r.CheckBreak()
|
|
}
|
|
if yyb3518 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv3521 := &x.ObjectMeta
|
|
yyv3521.CodecDecodeSelf(d)
|
|
}
|
|
yyj3518++
|
|
if yyhl3518 {
|
|
yyb3518 = yyj3518 > l
|
|
} else {
|
|
yyb3518 = r.CheckBreak()
|
|
}
|
|
if yyb3518 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Range = ""
|
|
} else {
|
|
x.Range = string(r.DecodeString())
|
|
}
|
|
yyj3518++
|
|
if yyhl3518 {
|
|
yyb3518 = yyj3518 > l
|
|
} else {
|
|
yyb3518 = r.CheckBreak()
|
|
}
|
|
if yyb3518 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Data = nil
|
|
} else {
|
|
yyv3523 := &x.Data
|
|
yym3524 := z.DecBinary()
|
|
_ = yym3524
|
|
if false {
|
|
} else {
|
|
*yyv3523 = r.DecodeBytes(*(*[]byte)(yyv3523), false, false)
|
|
}
|
|
}
|
|
for {
|
|
yyj3518++
|
|
if yyhl3518 {
|
|
yyb3518 = yyj3518 > l
|
|
} else {
|
|
yyb3518 = r.CheckBreak()
|
|
}
|
|
if yyb3518 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3518-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 _, yyv3525 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yyv3525.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
|
|
|
|
yyv3526 := *v
|
|
yyh3526, yyl3526 := z.DecSliceHelperStart()
|
|
var yyc3526 bool
|
|
if yyl3526 == 0 {
|
|
if yyv3526 == nil {
|
|
yyv3526 = []PersistentVolumeAccessMode{}
|
|
yyc3526 = true
|
|
} else if len(yyv3526) != 0 {
|
|
yyv3526 = yyv3526[:0]
|
|
yyc3526 = true
|
|
}
|
|
} else if yyl3526 > 0 {
|
|
var yyrr3526, yyrl3526 int
|
|
var yyrt3526 bool
|
|
if yyl3526 > cap(yyv3526) {
|
|
|
|
yyrl3526, yyrt3526 = z.DecInferLen(yyl3526, z.DecBasicHandle().MaxInitLen, 16)
|
|
if yyrt3526 {
|
|
if yyrl3526 <= cap(yyv3526) {
|
|
yyv3526 = yyv3526[:yyrl3526]
|
|
} else {
|
|
yyv3526 = make([]PersistentVolumeAccessMode, yyrl3526)
|
|
}
|
|
} else {
|
|
yyv3526 = make([]PersistentVolumeAccessMode, yyrl3526)
|
|
}
|
|
yyc3526 = true
|
|
yyrr3526 = len(yyv3526)
|
|
} else if yyl3526 != len(yyv3526) {
|
|
yyv3526 = yyv3526[:yyl3526]
|
|
yyc3526 = true
|
|
}
|
|
yyj3526 := 0
|
|
for ; yyj3526 < yyrr3526; yyj3526++ {
|
|
yyh3526.ElemContainerState(yyj3526)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3526[yyj3526] = ""
|
|
} else {
|
|
yyv3526[yyj3526] = PersistentVolumeAccessMode(r.DecodeString())
|
|
}
|
|
|
|
}
|
|
if yyrt3526 {
|
|
for ; yyj3526 < yyl3526; yyj3526++ {
|
|
yyv3526 = append(yyv3526, "")
|
|
yyh3526.ElemContainerState(yyj3526)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3526[yyj3526] = ""
|
|
} else {
|
|
yyv3526[yyj3526] = PersistentVolumeAccessMode(r.DecodeString())
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3526 := 0
|
|
for ; !r.CheckBreak(); yyj3526++ {
|
|
|
|
if yyj3526 >= len(yyv3526) {
|
|
yyv3526 = append(yyv3526, "") // var yyz3526 PersistentVolumeAccessMode
|
|
yyc3526 = true
|
|
}
|
|
yyh3526.ElemContainerState(yyj3526)
|
|
if yyj3526 < len(yyv3526) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3526[yyj3526] = ""
|
|
} else {
|
|
yyv3526[yyj3526] = PersistentVolumeAccessMode(r.DecodeString())
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3526 < len(yyv3526) {
|
|
yyv3526 = yyv3526[:yyj3526]
|
|
yyc3526 = true
|
|
} else if yyj3526 == 0 && yyv3526 == nil {
|
|
yyv3526 = []PersistentVolumeAccessMode{}
|
|
yyc3526 = true
|
|
}
|
|
}
|
|
yyh3526.End()
|
|
if yyc3526 {
|
|
*v = yyv3526
|
|
}
|
|
}
|
|
|
|
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 _, yyv3530 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3531 := &yyv3530
|
|
yy3531.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
|
|
|
|
yyv3532 := *v
|
|
yyh3532, yyl3532 := z.DecSliceHelperStart()
|
|
var yyc3532 bool
|
|
if yyl3532 == 0 {
|
|
if yyv3532 == nil {
|
|
yyv3532 = []PersistentVolume{}
|
|
yyc3532 = true
|
|
} else if len(yyv3532) != 0 {
|
|
yyv3532 = yyv3532[:0]
|
|
yyc3532 = true
|
|
}
|
|
} else if yyl3532 > 0 {
|
|
var yyrr3532, yyrl3532 int
|
|
var yyrt3532 bool
|
|
if yyl3532 > cap(yyv3532) {
|
|
|
|
yyrg3532 := len(yyv3532) > 0
|
|
yyv23532 := yyv3532
|
|
yyrl3532, yyrt3532 = z.DecInferLen(yyl3532, z.DecBasicHandle().MaxInitLen, 384)
|
|
if yyrt3532 {
|
|
if yyrl3532 <= cap(yyv3532) {
|
|
yyv3532 = yyv3532[:yyrl3532]
|
|
} else {
|
|
yyv3532 = make([]PersistentVolume, yyrl3532)
|
|
}
|
|
} else {
|
|
yyv3532 = make([]PersistentVolume, yyrl3532)
|
|
}
|
|
yyc3532 = true
|
|
yyrr3532 = len(yyv3532)
|
|
if yyrg3532 {
|
|
copy(yyv3532, yyv23532)
|
|
}
|
|
} else if yyl3532 != len(yyv3532) {
|
|
yyv3532 = yyv3532[:yyl3532]
|
|
yyc3532 = true
|
|
}
|
|
yyj3532 := 0
|
|
for ; yyj3532 < yyrr3532; yyj3532++ {
|
|
yyh3532.ElemContainerState(yyj3532)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3532[yyj3532] = PersistentVolume{}
|
|
} else {
|
|
yyv3533 := &yyv3532[yyj3532]
|
|
yyv3533.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3532 {
|
|
for ; yyj3532 < yyl3532; yyj3532++ {
|
|
yyv3532 = append(yyv3532, PersistentVolume{})
|
|
yyh3532.ElemContainerState(yyj3532)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3532[yyj3532] = PersistentVolume{}
|
|
} else {
|
|
yyv3534 := &yyv3532[yyj3532]
|
|
yyv3534.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3532 := 0
|
|
for ; !r.CheckBreak(); yyj3532++ {
|
|
|
|
if yyj3532 >= len(yyv3532) {
|
|
yyv3532 = append(yyv3532, PersistentVolume{}) // var yyz3532 PersistentVolume
|
|
yyc3532 = true
|
|
}
|
|
yyh3532.ElemContainerState(yyj3532)
|
|
if yyj3532 < len(yyv3532) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3532[yyj3532] = PersistentVolume{}
|
|
} else {
|
|
yyv3535 := &yyv3532[yyj3532]
|
|
yyv3535.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3532 < len(yyv3532) {
|
|
yyv3532 = yyv3532[:yyj3532]
|
|
yyc3532 = true
|
|
} else if yyj3532 == 0 && yyv3532 == nil {
|
|
yyv3532 = []PersistentVolume{}
|
|
yyc3532 = true
|
|
}
|
|
}
|
|
yyh3532.End()
|
|
if yyc3532 {
|
|
*v = yyv3532
|
|
}
|
|
}
|
|
|
|
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 _, yyv3536 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3537 := &yyv3536
|
|
yy3537.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
|
|
|
|
yyv3538 := *v
|
|
yyh3538, yyl3538 := z.DecSliceHelperStart()
|
|
var yyc3538 bool
|
|
if yyl3538 == 0 {
|
|
if yyv3538 == nil {
|
|
yyv3538 = []PersistentVolumeClaim{}
|
|
yyc3538 = true
|
|
} else if len(yyv3538) != 0 {
|
|
yyv3538 = yyv3538[:0]
|
|
yyc3538 = true
|
|
}
|
|
} else if yyl3538 > 0 {
|
|
var yyrr3538, yyrl3538 int
|
|
var yyrt3538 bool
|
|
if yyl3538 > cap(yyv3538) {
|
|
|
|
yyrg3538 := len(yyv3538) > 0
|
|
yyv23538 := yyv3538
|
|
yyrl3538, yyrt3538 = z.DecInferLen(yyl3538, z.DecBasicHandle().MaxInitLen, 296)
|
|
if yyrt3538 {
|
|
if yyrl3538 <= cap(yyv3538) {
|
|
yyv3538 = yyv3538[:yyrl3538]
|
|
} else {
|
|
yyv3538 = make([]PersistentVolumeClaim, yyrl3538)
|
|
}
|
|
} else {
|
|
yyv3538 = make([]PersistentVolumeClaim, yyrl3538)
|
|
}
|
|
yyc3538 = true
|
|
yyrr3538 = len(yyv3538)
|
|
if yyrg3538 {
|
|
copy(yyv3538, yyv23538)
|
|
}
|
|
} else if yyl3538 != len(yyv3538) {
|
|
yyv3538 = yyv3538[:yyl3538]
|
|
yyc3538 = true
|
|
}
|
|
yyj3538 := 0
|
|
for ; yyj3538 < yyrr3538; yyj3538++ {
|
|
yyh3538.ElemContainerState(yyj3538)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3538[yyj3538] = PersistentVolumeClaim{}
|
|
} else {
|
|
yyv3539 := &yyv3538[yyj3538]
|
|
yyv3539.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3538 {
|
|
for ; yyj3538 < yyl3538; yyj3538++ {
|
|
yyv3538 = append(yyv3538, PersistentVolumeClaim{})
|
|
yyh3538.ElemContainerState(yyj3538)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3538[yyj3538] = PersistentVolumeClaim{}
|
|
} else {
|
|
yyv3540 := &yyv3538[yyj3538]
|
|
yyv3540.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3538 := 0
|
|
for ; !r.CheckBreak(); yyj3538++ {
|
|
|
|
if yyj3538 >= len(yyv3538) {
|
|
yyv3538 = append(yyv3538, PersistentVolumeClaim{}) // var yyz3538 PersistentVolumeClaim
|
|
yyc3538 = true
|
|
}
|
|
yyh3538.ElemContainerState(yyj3538)
|
|
if yyj3538 < len(yyv3538) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3538[yyj3538] = PersistentVolumeClaim{}
|
|
} else {
|
|
yyv3541 := &yyv3538[yyj3538]
|
|
yyv3541.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3538 < len(yyv3538) {
|
|
yyv3538 = yyv3538[:yyj3538]
|
|
yyc3538 = true
|
|
} else if yyj3538 == 0 && yyv3538 == nil {
|
|
yyv3538 = []PersistentVolumeClaim{}
|
|
yyc3538 = true
|
|
}
|
|
}
|
|
yyh3538.End()
|
|
if yyc3538 {
|
|
*v = yyv3538
|
|
}
|
|
}
|
|
|
|
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 _, yyv3542 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3543 := &yyv3542
|
|
yy3543.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
|
|
|
|
yyv3544 := *v
|
|
yyh3544, yyl3544 := z.DecSliceHelperStart()
|
|
var yyc3544 bool
|
|
if yyl3544 == 0 {
|
|
if yyv3544 == nil {
|
|
yyv3544 = []DownwardAPIVolumeFile{}
|
|
yyc3544 = true
|
|
} else if len(yyv3544) != 0 {
|
|
yyv3544 = yyv3544[:0]
|
|
yyc3544 = true
|
|
}
|
|
} else if yyl3544 > 0 {
|
|
var yyrr3544, yyrl3544 int
|
|
var yyrt3544 bool
|
|
if yyl3544 > cap(yyv3544) {
|
|
|
|
yyrg3544 := len(yyv3544) > 0
|
|
yyv23544 := yyv3544
|
|
yyrl3544, yyrt3544 = z.DecInferLen(yyl3544, z.DecBasicHandle().MaxInitLen, 48)
|
|
if yyrt3544 {
|
|
if yyrl3544 <= cap(yyv3544) {
|
|
yyv3544 = yyv3544[:yyrl3544]
|
|
} else {
|
|
yyv3544 = make([]DownwardAPIVolumeFile, yyrl3544)
|
|
}
|
|
} else {
|
|
yyv3544 = make([]DownwardAPIVolumeFile, yyrl3544)
|
|
}
|
|
yyc3544 = true
|
|
yyrr3544 = len(yyv3544)
|
|
if yyrg3544 {
|
|
copy(yyv3544, yyv23544)
|
|
}
|
|
} else if yyl3544 != len(yyv3544) {
|
|
yyv3544 = yyv3544[:yyl3544]
|
|
yyc3544 = true
|
|
}
|
|
yyj3544 := 0
|
|
for ; yyj3544 < yyrr3544; yyj3544++ {
|
|
yyh3544.ElemContainerState(yyj3544)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3544[yyj3544] = DownwardAPIVolumeFile{}
|
|
} else {
|
|
yyv3545 := &yyv3544[yyj3544]
|
|
yyv3545.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3544 {
|
|
for ; yyj3544 < yyl3544; yyj3544++ {
|
|
yyv3544 = append(yyv3544, DownwardAPIVolumeFile{})
|
|
yyh3544.ElemContainerState(yyj3544)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3544[yyj3544] = DownwardAPIVolumeFile{}
|
|
} else {
|
|
yyv3546 := &yyv3544[yyj3544]
|
|
yyv3546.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3544 := 0
|
|
for ; !r.CheckBreak(); yyj3544++ {
|
|
|
|
if yyj3544 >= len(yyv3544) {
|
|
yyv3544 = append(yyv3544, DownwardAPIVolumeFile{}) // var yyz3544 DownwardAPIVolumeFile
|
|
yyc3544 = true
|
|
}
|
|
yyh3544.ElemContainerState(yyj3544)
|
|
if yyj3544 < len(yyv3544) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3544[yyj3544] = DownwardAPIVolumeFile{}
|
|
} else {
|
|
yyv3547 := &yyv3544[yyj3544]
|
|
yyv3547.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3544 < len(yyv3544) {
|
|
yyv3544 = yyv3544[:yyj3544]
|
|
yyc3544 = true
|
|
} else if yyj3544 == 0 && yyv3544 == nil {
|
|
yyv3544 = []DownwardAPIVolumeFile{}
|
|
yyc3544 = true
|
|
}
|
|
}
|
|
yyh3544.End()
|
|
if yyc3544 {
|
|
*v = yyv3544
|
|
}
|
|
}
|
|
|
|
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 _, yyv3548 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yyv3548.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
|
|
|
|
yyv3549 := *v
|
|
yyh3549, yyl3549 := z.DecSliceHelperStart()
|
|
var yyc3549 bool
|
|
if yyl3549 == 0 {
|
|
if yyv3549 == nil {
|
|
yyv3549 = []Capability{}
|
|
yyc3549 = true
|
|
} else if len(yyv3549) != 0 {
|
|
yyv3549 = yyv3549[:0]
|
|
yyc3549 = true
|
|
}
|
|
} else if yyl3549 > 0 {
|
|
var yyrr3549, yyrl3549 int
|
|
var yyrt3549 bool
|
|
if yyl3549 > cap(yyv3549) {
|
|
|
|
yyrl3549, yyrt3549 = z.DecInferLen(yyl3549, z.DecBasicHandle().MaxInitLen, 16)
|
|
if yyrt3549 {
|
|
if yyrl3549 <= cap(yyv3549) {
|
|
yyv3549 = yyv3549[:yyrl3549]
|
|
} else {
|
|
yyv3549 = make([]Capability, yyrl3549)
|
|
}
|
|
} else {
|
|
yyv3549 = make([]Capability, yyrl3549)
|
|
}
|
|
yyc3549 = true
|
|
yyrr3549 = len(yyv3549)
|
|
} else if yyl3549 != len(yyv3549) {
|
|
yyv3549 = yyv3549[:yyl3549]
|
|
yyc3549 = true
|
|
}
|
|
yyj3549 := 0
|
|
for ; yyj3549 < yyrr3549; yyj3549++ {
|
|
yyh3549.ElemContainerState(yyj3549)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3549[yyj3549] = ""
|
|
} else {
|
|
yyv3549[yyj3549] = Capability(r.DecodeString())
|
|
}
|
|
|
|
}
|
|
if yyrt3549 {
|
|
for ; yyj3549 < yyl3549; yyj3549++ {
|
|
yyv3549 = append(yyv3549, "")
|
|
yyh3549.ElemContainerState(yyj3549)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3549[yyj3549] = ""
|
|
} else {
|
|
yyv3549[yyj3549] = Capability(r.DecodeString())
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3549 := 0
|
|
for ; !r.CheckBreak(); yyj3549++ {
|
|
|
|
if yyj3549 >= len(yyv3549) {
|
|
yyv3549 = append(yyv3549, "") // var yyz3549 Capability
|
|
yyc3549 = true
|
|
}
|
|
yyh3549.ElemContainerState(yyj3549)
|
|
if yyj3549 < len(yyv3549) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3549[yyj3549] = ""
|
|
} else {
|
|
yyv3549[yyj3549] = Capability(r.DecodeString())
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3549 < len(yyv3549) {
|
|
yyv3549 = yyv3549[:yyj3549]
|
|
yyc3549 = true
|
|
} else if yyj3549 == 0 && yyv3549 == nil {
|
|
yyv3549 = []Capability{}
|
|
yyc3549 = true
|
|
}
|
|
}
|
|
yyh3549.End()
|
|
if yyc3549 {
|
|
*v = yyv3549
|
|
}
|
|
}
|
|
|
|
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 _, yyv3553 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3554 := &yyv3553
|
|
yy3554.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
|
|
|
|
yyv3555 := *v
|
|
yyh3555, yyl3555 := z.DecSliceHelperStart()
|
|
var yyc3555 bool
|
|
if yyl3555 == 0 {
|
|
if yyv3555 == nil {
|
|
yyv3555 = []ContainerPort{}
|
|
yyc3555 = true
|
|
} else if len(yyv3555) != 0 {
|
|
yyv3555 = yyv3555[:0]
|
|
yyc3555 = true
|
|
}
|
|
} else if yyl3555 > 0 {
|
|
var yyrr3555, yyrl3555 int
|
|
var yyrt3555 bool
|
|
if yyl3555 > cap(yyv3555) {
|
|
|
|
yyrg3555 := len(yyv3555) > 0
|
|
yyv23555 := yyv3555
|
|
yyrl3555, yyrt3555 = z.DecInferLen(yyl3555, z.DecBasicHandle().MaxInitLen, 64)
|
|
if yyrt3555 {
|
|
if yyrl3555 <= cap(yyv3555) {
|
|
yyv3555 = yyv3555[:yyrl3555]
|
|
} else {
|
|
yyv3555 = make([]ContainerPort, yyrl3555)
|
|
}
|
|
} else {
|
|
yyv3555 = make([]ContainerPort, yyrl3555)
|
|
}
|
|
yyc3555 = true
|
|
yyrr3555 = len(yyv3555)
|
|
if yyrg3555 {
|
|
copy(yyv3555, yyv23555)
|
|
}
|
|
} else if yyl3555 != len(yyv3555) {
|
|
yyv3555 = yyv3555[:yyl3555]
|
|
yyc3555 = true
|
|
}
|
|
yyj3555 := 0
|
|
for ; yyj3555 < yyrr3555; yyj3555++ {
|
|
yyh3555.ElemContainerState(yyj3555)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3555[yyj3555] = ContainerPort{}
|
|
} else {
|
|
yyv3556 := &yyv3555[yyj3555]
|
|
yyv3556.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3555 {
|
|
for ; yyj3555 < yyl3555; yyj3555++ {
|
|
yyv3555 = append(yyv3555, ContainerPort{})
|
|
yyh3555.ElemContainerState(yyj3555)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3555[yyj3555] = ContainerPort{}
|
|
} else {
|
|
yyv3557 := &yyv3555[yyj3555]
|
|
yyv3557.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3555 := 0
|
|
for ; !r.CheckBreak(); yyj3555++ {
|
|
|
|
if yyj3555 >= len(yyv3555) {
|
|
yyv3555 = append(yyv3555, ContainerPort{}) // var yyz3555 ContainerPort
|
|
yyc3555 = true
|
|
}
|
|
yyh3555.ElemContainerState(yyj3555)
|
|
if yyj3555 < len(yyv3555) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3555[yyj3555] = ContainerPort{}
|
|
} else {
|
|
yyv3558 := &yyv3555[yyj3555]
|
|
yyv3558.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3555 < len(yyv3555) {
|
|
yyv3555 = yyv3555[:yyj3555]
|
|
yyc3555 = true
|
|
} else if yyj3555 == 0 && yyv3555 == nil {
|
|
yyv3555 = []ContainerPort{}
|
|
yyc3555 = true
|
|
}
|
|
}
|
|
yyh3555.End()
|
|
if yyc3555 {
|
|
*v = yyv3555
|
|
}
|
|
}
|
|
|
|
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 _, yyv3559 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3560 := &yyv3559
|
|
yy3560.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
|
|
|
|
yyv3561 := *v
|
|
yyh3561, yyl3561 := z.DecSliceHelperStart()
|
|
var yyc3561 bool
|
|
if yyl3561 == 0 {
|
|
if yyv3561 == nil {
|
|
yyv3561 = []EnvVar{}
|
|
yyc3561 = true
|
|
} else if len(yyv3561) != 0 {
|
|
yyv3561 = yyv3561[:0]
|
|
yyc3561 = true
|
|
}
|
|
} else if yyl3561 > 0 {
|
|
var yyrr3561, yyrl3561 int
|
|
var yyrt3561 bool
|
|
if yyl3561 > cap(yyv3561) {
|
|
|
|
yyrg3561 := len(yyv3561) > 0
|
|
yyv23561 := yyv3561
|
|
yyrl3561, yyrt3561 = z.DecInferLen(yyl3561, z.DecBasicHandle().MaxInitLen, 40)
|
|
if yyrt3561 {
|
|
if yyrl3561 <= cap(yyv3561) {
|
|
yyv3561 = yyv3561[:yyrl3561]
|
|
} else {
|
|
yyv3561 = make([]EnvVar, yyrl3561)
|
|
}
|
|
} else {
|
|
yyv3561 = make([]EnvVar, yyrl3561)
|
|
}
|
|
yyc3561 = true
|
|
yyrr3561 = len(yyv3561)
|
|
if yyrg3561 {
|
|
copy(yyv3561, yyv23561)
|
|
}
|
|
} else if yyl3561 != len(yyv3561) {
|
|
yyv3561 = yyv3561[:yyl3561]
|
|
yyc3561 = true
|
|
}
|
|
yyj3561 := 0
|
|
for ; yyj3561 < yyrr3561; yyj3561++ {
|
|
yyh3561.ElemContainerState(yyj3561)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3561[yyj3561] = EnvVar{}
|
|
} else {
|
|
yyv3562 := &yyv3561[yyj3561]
|
|
yyv3562.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3561 {
|
|
for ; yyj3561 < yyl3561; yyj3561++ {
|
|
yyv3561 = append(yyv3561, EnvVar{})
|
|
yyh3561.ElemContainerState(yyj3561)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3561[yyj3561] = EnvVar{}
|
|
} else {
|
|
yyv3563 := &yyv3561[yyj3561]
|
|
yyv3563.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3561 := 0
|
|
for ; !r.CheckBreak(); yyj3561++ {
|
|
|
|
if yyj3561 >= len(yyv3561) {
|
|
yyv3561 = append(yyv3561, EnvVar{}) // var yyz3561 EnvVar
|
|
yyc3561 = true
|
|
}
|
|
yyh3561.ElemContainerState(yyj3561)
|
|
if yyj3561 < len(yyv3561) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3561[yyj3561] = EnvVar{}
|
|
} else {
|
|
yyv3564 := &yyv3561[yyj3561]
|
|
yyv3564.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3561 < len(yyv3561) {
|
|
yyv3561 = yyv3561[:yyj3561]
|
|
yyc3561 = true
|
|
} else if yyj3561 == 0 && yyv3561 == nil {
|
|
yyv3561 = []EnvVar{}
|
|
yyc3561 = true
|
|
}
|
|
}
|
|
yyh3561.End()
|
|
if yyc3561 {
|
|
*v = yyv3561
|
|
}
|
|
}
|
|
|
|
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 _, yyv3565 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3566 := &yyv3565
|
|
yy3566.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
|
|
|
|
yyv3567 := *v
|
|
yyh3567, yyl3567 := z.DecSliceHelperStart()
|
|
var yyc3567 bool
|
|
if yyl3567 == 0 {
|
|
if yyv3567 == nil {
|
|
yyv3567 = []VolumeMount{}
|
|
yyc3567 = true
|
|
} else if len(yyv3567) != 0 {
|
|
yyv3567 = yyv3567[:0]
|
|
yyc3567 = true
|
|
}
|
|
} else if yyl3567 > 0 {
|
|
var yyrr3567, yyrl3567 int
|
|
var yyrt3567 bool
|
|
if yyl3567 > cap(yyv3567) {
|
|
|
|
yyrg3567 := len(yyv3567) > 0
|
|
yyv23567 := yyv3567
|
|
yyrl3567, yyrt3567 = z.DecInferLen(yyl3567, z.DecBasicHandle().MaxInitLen, 40)
|
|
if yyrt3567 {
|
|
if yyrl3567 <= cap(yyv3567) {
|
|
yyv3567 = yyv3567[:yyrl3567]
|
|
} else {
|
|
yyv3567 = make([]VolumeMount, yyrl3567)
|
|
}
|
|
} else {
|
|
yyv3567 = make([]VolumeMount, yyrl3567)
|
|
}
|
|
yyc3567 = true
|
|
yyrr3567 = len(yyv3567)
|
|
if yyrg3567 {
|
|
copy(yyv3567, yyv23567)
|
|
}
|
|
} else if yyl3567 != len(yyv3567) {
|
|
yyv3567 = yyv3567[:yyl3567]
|
|
yyc3567 = true
|
|
}
|
|
yyj3567 := 0
|
|
for ; yyj3567 < yyrr3567; yyj3567++ {
|
|
yyh3567.ElemContainerState(yyj3567)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3567[yyj3567] = VolumeMount{}
|
|
} else {
|
|
yyv3568 := &yyv3567[yyj3567]
|
|
yyv3568.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3567 {
|
|
for ; yyj3567 < yyl3567; yyj3567++ {
|
|
yyv3567 = append(yyv3567, VolumeMount{})
|
|
yyh3567.ElemContainerState(yyj3567)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3567[yyj3567] = VolumeMount{}
|
|
} else {
|
|
yyv3569 := &yyv3567[yyj3567]
|
|
yyv3569.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3567 := 0
|
|
for ; !r.CheckBreak(); yyj3567++ {
|
|
|
|
if yyj3567 >= len(yyv3567) {
|
|
yyv3567 = append(yyv3567, VolumeMount{}) // var yyz3567 VolumeMount
|
|
yyc3567 = true
|
|
}
|
|
yyh3567.ElemContainerState(yyj3567)
|
|
if yyj3567 < len(yyv3567) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3567[yyj3567] = VolumeMount{}
|
|
} else {
|
|
yyv3570 := &yyv3567[yyj3567]
|
|
yyv3570.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3567 < len(yyv3567) {
|
|
yyv3567 = yyv3567[:yyj3567]
|
|
yyc3567 = true
|
|
} else if yyj3567 == 0 && yyv3567 == nil {
|
|
yyv3567 = []VolumeMount{}
|
|
yyc3567 = true
|
|
}
|
|
}
|
|
yyh3567.End()
|
|
if yyc3567 {
|
|
*v = yyv3567
|
|
}
|
|
}
|
|
|
|
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 _, yyv3571 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3572 := &yyv3571
|
|
yy3572.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
|
|
|
|
yyv3573 := *v
|
|
yyh3573, yyl3573 := z.DecSliceHelperStart()
|
|
var yyc3573 bool
|
|
if yyl3573 == 0 {
|
|
if yyv3573 == nil {
|
|
yyv3573 = []Pod{}
|
|
yyc3573 = true
|
|
} else if len(yyv3573) != 0 {
|
|
yyv3573 = yyv3573[:0]
|
|
yyc3573 = true
|
|
}
|
|
} else if yyl3573 > 0 {
|
|
var yyrr3573, yyrl3573 int
|
|
var yyrt3573 bool
|
|
if yyl3573 > cap(yyv3573) {
|
|
|
|
yyrg3573 := len(yyv3573) > 0
|
|
yyv23573 := yyv3573
|
|
yyrl3573, yyrt3573 = z.DecInferLen(yyl3573, z.DecBasicHandle().MaxInitLen, 496)
|
|
if yyrt3573 {
|
|
if yyrl3573 <= cap(yyv3573) {
|
|
yyv3573 = yyv3573[:yyrl3573]
|
|
} else {
|
|
yyv3573 = make([]Pod, yyrl3573)
|
|
}
|
|
} else {
|
|
yyv3573 = make([]Pod, yyrl3573)
|
|
}
|
|
yyc3573 = true
|
|
yyrr3573 = len(yyv3573)
|
|
if yyrg3573 {
|
|
copy(yyv3573, yyv23573)
|
|
}
|
|
} else if yyl3573 != len(yyv3573) {
|
|
yyv3573 = yyv3573[:yyl3573]
|
|
yyc3573 = true
|
|
}
|
|
yyj3573 := 0
|
|
for ; yyj3573 < yyrr3573; yyj3573++ {
|
|
yyh3573.ElemContainerState(yyj3573)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3573[yyj3573] = Pod{}
|
|
} else {
|
|
yyv3574 := &yyv3573[yyj3573]
|
|
yyv3574.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3573 {
|
|
for ; yyj3573 < yyl3573; yyj3573++ {
|
|
yyv3573 = append(yyv3573, Pod{})
|
|
yyh3573.ElemContainerState(yyj3573)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3573[yyj3573] = Pod{}
|
|
} else {
|
|
yyv3575 := &yyv3573[yyj3573]
|
|
yyv3575.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3573 := 0
|
|
for ; !r.CheckBreak(); yyj3573++ {
|
|
|
|
if yyj3573 >= len(yyv3573) {
|
|
yyv3573 = append(yyv3573, Pod{}) // var yyz3573 Pod
|
|
yyc3573 = true
|
|
}
|
|
yyh3573.ElemContainerState(yyj3573)
|
|
if yyj3573 < len(yyv3573) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3573[yyj3573] = Pod{}
|
|
} else {
|
|
yyv3576 := &yyv3573[yyj3573]
|
|
yyv3576.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3573 < len(yyv3573) {
|
|
yyv3573 = yyv3573[:yyj3573]
|
|
yyc3573 = true
|
|
} else if yyj3573 == 0 && yyv3573 == nil {
|
|
yyv3573 = []Pod{}
|
|
yyc3573 = true
|
|
}
|
|
}
|
|
yyh3573.End()
|
|
if yyc3573 {
|
|
*v = yyv3573
|
|
}
|
|
}
|
|
|
|
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 _, yyv3577 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3578 := &yyv3577
|
|
yy3578.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
|
|
|
|
yyv3579 := *v
|
|
yyh3579, yyl3579 := z.DecSliceHelperStart()
|
|
var yyc3579 bool
|
|
if yyl3579 == 0 {
|
|
if yyv3579 == nil {
|
|
yyv3579 = []Volume{}
|
|
yyc3579 = true
|
|
} else if len(yyv3579) != 0 {
|
|
yyv3579 = yyv3579[:0]
|
|
yyc3579 = true
|
|
}
|
|
} else if yyl3579 > 0 {
|
|
var yyrr3579, yyrl3579 int
|
|
var yyrt3579 bool
|
|
if yyl3579 > cap(yyv3579) {
|
|
|
|
yyrg3579 := len(yyv3579) > 0
|
|
yyv23579 := yyv3579
|
|
yyrl3579, yyrt3579 = z.DecInferLen(yyl3579, z.DecBasicHandle().MaxInitLen, 144)
|
|
if yyrt3579 {
|
|
if yyrl3579 <= cap(yyv3579) {
|
|
yyv3579 = yyv3579[:yyrl3579]
|
|
} else {
|
|
yyv3579 = make([]Volume, yyrl3579)
|
|
}
|
|
} else {
|
|
yyv3579 = make([]Volume, yyrl3579)
|
|
}
|
|
yyc3579 = true
|
|
yyrr3579 = len(yyv3579)
|
|
if yyrg3579 {
|
|
copy(yyv3579, yyv23579)
|
|
}
|
|
} else if yyl3579 != len(yyv3579) {
|
|
yyv3579 = yyv3579[:yyl3579]
|
|
yyc3579 = true
|
|
}
|
|
yyj3579 := 0
|
|
for ; yyj3579 < yyrr3579; yyj3579++ {
|
|
yyh3579.ElemContainerState(yyj3579)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3579[yyj3579] = Volume{}
|
|
} else {
|
|
yyv3580 := &yyv3579[yyj3579]
|
|
yyv3580.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3579 {
|
|
for ; yyj3579 < yyl3579; yyj3579++ {
|
|
yyv3579 = append(yyv3579, Volume{})
|
|
yyh3579.ElemContainerState(yyj3579)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3579[yyj3579] = Volume{}
|
|
} else {
|
|
yyv3581 := &yyv3579[yyj3579]
|
|
yyv3581.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3579 := 0
|
|
for ; !r.CheckBreak(); yyj3579++ {
|
|
|
|
if yyj3579 >= len(yyv3579) {
|
|
yyv3579 = append(yyv3579, Volume{}) // var yyz3579 Volume
|
|
yyc3579 = true
|
|
}
|
|
yyh3579.ElemContainerState(yyj3579)
|
|
if yyj3579 < len(yyv3579) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3579[yyj3579] = Volume{}
|
|
} else {
|
|
yyv3582 := &yyv3579[yyj3579]
|
|
yyv3582.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3579 < len(yyv3579) {
|
|
yyv3579 = yyv3579[:yyj3579]
|
|
yyc3579 = true
|
|
} else if yyj3579 == 0 && yyv3579 == nil {
|
|
yyv3579 = []Volume{}
|
|
yyc3579 = true
|
|
}
|
|
}
|
|
yyh3579.End()
|
|
if yyc3579 {
|
|
*v = yyv3579
|
|
}
|
|
}
|
|
|
|
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 _, yyv3583 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3584 := &yyv3583
|
|
yy3584.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
|
|
|
|
yyv3585 := *v
|
|
yyh3585, yyl3585 := z.DecSliceHelperStart()
|
|
var yyc3585 bool
|
|
if yyl3585 == 0 {
|
|
if yyv3585 == nil {
|
|
yyv3585 = []Container{}
|
|
yyc3585 = true
|
|
} else if len(yyv3585) != 0 {
|
|
yyv3585 = yyv3585[:0]
|
|
yyc3585 = true
|
|
}
|
|
} else if yyl3585 > 0 {
|
|
var yyrr3585, yyrl3585 int
|
|
var yyrt3585 bool
|
|
if yyl3585 > cap(yyv3585) {
|
|
|
|
yyrg3585 := len(yyv3585) > 0
|
|
yyv23585 := yyv3585
|
|
yyrl3585, yyrt3585 = z.DecInferLen(yyl3585, z.DecBasicHandle().MaxInitLen, 256)
|
|
if yyrt3585 {
|
|
if yyrl3585 <= cap(yyv3585) {
|
|
yyv3585 = yyv3585[:yyrl3585]
|
|
} else {
|
|
yyv3585 = make([]Container, yyrl3585)
|
|
}
|
|
} else {
|
|
yyv3585 = make([]Container, yyrl3585)
|
|
}
|
|
yyc3585 = true
|
|
yyrr3585 = len(yyv3585)
|
|
if yyrg3585 {
|
|
copy(yyv3585, yyv23585)
|
|
}
|
|
} else if yyl3585 != len(yyv3585) {
|
|
yyv3585 = yyv3585[:yyl3585]
|
|
yyc3585 = true
|
|
}
|
|
yyj3585 := 0
|
|
for ; yyj3585 < yyrr3585; yyj3585++ {
|
|
yyh3585.ElemContainerState(yyj3585)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3585[yyj3585] = Container{}
|
|
} else {
|
|
yyv3586 := &yyv3585[yyj3585]
|
|
yyv3586.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3585 {
|
|
for ; yyj3585 < yyl3585; yyj3585++ {
|
|
yyv3585 = append(yyv3585, Container{})
|
|
yyh3585.ElemContainerState(yyj3585)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3585[yyj3585] = Container{}
|
|
} else {
|
|
yyv3587 := &yyv3585[yyj3585]
|
|
yyv3587.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3585 := 0
|
|
for ; !r.CheckBreak(); yyj3585++ {
|
|
|
|
if yyj3585 >= len(yyv3585) {
|
|
yyv3585 = append(yyv3585, Container{}) // var yyz3585 Container
|
|
yyc3585 = true
|
|
}
|
|
yyh3585.ElemContainerState(yyj3585)
|
|
if yyj3585 < len(yyv3585) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3585[yyj3585] = Container{}
|
|
} else {
|
|
yyv3588 := &yyv3585[yyj3585]
|
|
yyv3588.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3585 < len(yyv3585) {
|
|
yyv3585 = yyv3585[:yyj3585]
|
|
yyc3585 = true
|
|
} else if yyj3585 == 0 && yyv3585 == nil {
|
|
yyv3585 = []Container{}
|
|
yyc3585 = true
|
|
}
|
|
}
|
|
yyh3585.End()
|
|
if yyc3585 {
|
|
*v = yyv3585
|
|
}
|
|
}
|
|
|
|
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 _, yyv3589 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3590 := &yyv3589
|
|
yy3590.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
|
|
|
|
yyv3591 := *v
|
|
yyh3591, yyl3591 := z.DecSliceHelperStart()
|
|
var yyc3591 bool
|
|
if yyl3591 == 0 {
|
|
if yyv3591 == nil {
|
|
yyv3591 = []LocalObjectReference{}
|
|
yyc3591 = true
|
|
} else if len(yyv3591) != 0 {
|
|
yyv3591 = yyv3591[:0]
|
|
yyc3591 = true
|
|
}
|
|
} else if yyl3591 > 0 {
|
|
var yyrr3591, yyrl3591 int
|
|
var yyrt3591 bool
|
|
if yyl3591 > cap(yyv3591) {
|
|
|
|
yyrg3591 := len(yyv3591) > 0
|
|
yyv23591 := yyv3591
|
|
yyrl3591, yyrt3591 = z.DecInferLen(yyl3591, z.DecBasicHandle().MaxInitLen, 16)
|
|
if yyrt3591 {
|
|
if yyrl3591 <= cap(yyv3591) {
|
|
yyv3591 = yyv3591[:yyrl3591]
|
|
} else {
|
|
yyv3591 = make([]LocalObjectReference, yyrl3591)
|
|
}
|
|
} else {
|
|
yyv3591 = make([]LocalObjectReference, yyrl3591)
|
|
}
|
|
yyc3591 = true
|
|
yyrr3591 = len(yyv3591)
|
|
if yyrg3591 {
|
|
copy(yyv3591, yyv23591)
|
|
}
|
|
} else if yyl3591 != len(yyv3591) {
|
|
yyv3591 = yyv3591[:yyl3591]
|
|
yyc3591 = true
|
|
}
|
|
yyj3591 := 0
|
|
for ; yyj3591 < yyrr3591; yyj3591++ {
|
|
yyh3591.ElemContainerState(yyj3591)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3591[yyj3591] = LocalObjectReference{}
|
|
} else {
|
|
yyv3592 := &yyv3591[yyj3591]
|
|
yyv3592.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3591 {
|
|
for ; yyj3591 < yyl3591; yyj3591++ {
|
|
yyv3591 = append(yyv3591, LocalObjectReference{})
|
|
yyh3591.ElemContainerState(yyj3591)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3591[yyj3591] = LocalObjectReference{}
|
|
} else {
|
|
yyv3593 := &yyv3591[yyj3591]
|
|
yyv3593.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3591 := 0
|
|
for ; !r.CheckBreak(); yyj3591++ {
|
|
|
|
if yyj3591 >= len(yyv3591) {
|
|
yyv3591 = append(yyv3591, LocalObjectReference{}) // var yyz3591 LocalObjectReference
|
|
yyc3591 = true
|
|
}
|
|
yyh3591.ElemContainerState(yyj3591)
|
|
if yyj3591 < len(yyv3591) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3591[yyj3591] = LocalObjectReference{}
|
|
} else {
|
|
yyv3594 := &yyv3591[yyj3591]
|
|
yyv3594.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3591 < len(yyv3591) {
|
|
yyv3591 = yyv3591[:yyj3591]
|
|
yyc3591 = true
|
|
} else if yyj3591 == 0 && yyv3591 == nil {
|
|
yyv3591 = []LocalObjectReference{}
|
|
yyc3591 = true
|
|
}
|
|
}
|
|
yyh3591.End()
|
|
if yyc3591 {
|
|
*v = yyv3591
|
|
}
|
|
}
|
|
|
|
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 _, yyv3595 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3596 := &yyv3595
|
|
yy3596.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
|
|
|
|
yyv3597 := *v
|
|
yyh3597, yyl3597 := z.DecSliceHelperStart()
|
|
var yyc3597 bool
|
|
if yyl3597 == 0 {
|
|
if yyv3597 == nil {
|
|
yyv3597 = []PodCondition{}
|
|
yyc3597 = true
|
|
} else if len(yyv3597) != 0 {
|
|
yyv3597 = yyv3597[:0]
|
|
yyc3597 = true
|
|
}
|
|
} else if yyl3597 > 0 {
|
|
var yyrr3597, yyrl3597 int
|
|
var yyrt3597 bool
|
|
if yyl3597 > cap(yyv3597) {
|
|
|
|
yyrg3597 := len(yyv3597) > 0
|
|
yyv23597 := yyv3597
|
|
yyrl3597, yyrt3597 = z.DecInferLen(yyl3597, z.DecBasicHandle().MaxInitLen, 112)
|
|
if yyrt3597 {
|
|
if yyrl3597 <= cap(yyv3597) {
|
|
yyv3597 = yyv3597[:yyrl3597]
|
|
} else {
|
|
yyv3597 = make([]PodCondition, yyrl3597)
|
|
}
|
|
} else {
|
|
yyv3597 = make([]PodCondition, yyrl3597)
|
|
}
|
|
yyc3597 = true
|
|
yyrr3597 = len(yyv3597)
|
|
if yyrg3597 {
|
|
copy(yyv3597, yyv23597)
|
|
}
|
|
} else if yyl3597 != len(yyv3597) {
|
|
yyv3597 = yyv3597[:yyl3597]
|
|
yyc3597 = true
|
|
}
|
|
yyj3597 := 0
|
|
for ; yyj3597 < yyrr3597; yyj3597++ {
|
|
yyh3597.ElemContainerState(yyj3597)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3597[yyj3597] = PodCondition{}
|
|
} else {
|
|
yyv3598 := &yyv3597[yyj3597]
|
|
yyv3598.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3597 {
|
|
for ; yyj3597 < yyl3597; yyj3597++ {
|
|
yyv3597 = append(yyv3597, PodCondition{})
|
|
yyh3597.ElemContainerState(yyj3597)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3597[yyj3597] = PodCondition{}
|
|
} else {
|
|
yyv3599 := &yyv3597[yyj3597]
|
|
yyv3599.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3597 := 0
|
|
for ; !r.CheckBreak(); yyj3597++ {
|
|
|
|
if yyj3597 >= len(yyv3597) {
|
|
yyv3597 = append(yyv3597, PodCondition{}) // var yyz3597 PodCondition
|
|
yyc3597 = true
|
|
}
|
|
yyh3597.ElemContainerState(yyj3597)
|
|
if yyj3597 < len(yyv3597) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3597[yyj3597] = PodCondition{}
|
|
} else {
|
|
yyv3600 := &yyv3597[yyj3597]
|
|
yyv3600.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3597 < len(yyv3597) {
|
|
yyv3597 = yyv3597[:yyj3597]
|
|
yyc3597 = true
|
|
} else if yyj3597 == 0 && yyv3597 == nil {
|
|
yyv3597 = []PodCondition{}
|
|
yyc3597 = true
|
|
}
|
|
}
|
|
yyh3597.End()
|
|
if yyc3597 {
|
|
*v = yyv3597
|
|
}
|
|
}
|
|
|
|
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 _, yyv3601 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3602 := &yyv3601
|
|
yy3602.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
|
|
|
|
yyv3603 := *v
|
|
yyh3603, yyl3603 := z.DecSliceHelperStart()
|
|
var yyc3603 bool
|
|
if yyl3603 == 0 {
|
|
if yyv3603 == nil {
|
|
yyv3603 = []ContainerStatus{}
|
|
yyc3603 = true
|
|
} else if len(yyv3603) != 0 {
|
|
yyv3603 = yyv3603[:0]
|
|
yyc3603 = true
|
|
}
|
|
} else if yyl3603 > 0 {
|
|
var yyrr3603, yyrl3603 int
|
|
var yyrt3603 bool
|
|
if yyl3603 > cap(yyv3603) {
|
|
|
|
yyrg3603 := len(yyv3603) > 0
|
|
yyv23603 := yyv3603
|
|
yyrl3603, yyrt3603 = z.DecInferLen(yyl3603, z.DecBasicHandle().MaxInitLen, 128)
|
|
if yyrt3603 {
|
|
if yyrl3603 <= cap(yyv3603) {
|
|
yyv3603 = yyv3603[:yyrl3603]
|
|
} else {
|
|
yyv3603 = make([]ContainerStatus, yyrl3603)
|
|
}
|
|
} else {
|
|
yyv3603 = make([]ContainerStatus, yyrl3603)
|
|
}
|
|
yyc3603 = true
|
|
yyrr3603 = len(yyv3603)
|
|
if yyrg3603 {
|
|
copy(yyv3603, yyv23603)
|
|
}
|
|
} else if yyl3603 != len(yyv3603) {
|
|
yyv3603 = yyv3603[:yyl3603]
|
|
yyc3603 = true
|
|
}
|
|
yyj3603 := 0
|
|
for ; yyj3603 < yyrr3603; yyj3603++ {
|
|
yyh3603.ElemContainerState(yyj3603)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3603[yyj3603] = ContainerStatus{}
|
|
} else {
|
|
yyv3604 := &yyv3603[yyj3603]
|
|
yyv3604.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3603 {
|
|
for ; yyj3603 < yyl3603; yyj3603++ {
|
|
yyv3603 = append(yyv3603, ContainerStatus{})
|
|
yyh3603.ElemContainerState(yyj3603)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3603[yyj3603] = ContainerStatus{}
|
|
} else {
|
|
yyv3605 := &yyv3603[yyj3603]
|
|
yyv3605.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3603 := 0
|
|
for ; !r.CheckBreak(); yyj3603++ {
|
|
|
|
if yyj3603 >= len(yyv3603) {
|
|
yyv3603 = append(yyv3603, ContainerStatus{}) // var yyz3603 ContainerStatus
|
|
yyc3603 = true
|
|
}
|
|
yyh3603.ElemContainerState(yyj3603)
|
|
if yyj3603 < len(yyv3603) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3603[yyj3603] = ContainerStatus{}
|
|
} else {
|
|
yyv3606 := &yyv3603[yyj3603]
|
|
yyv3606.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3603 < len(yyv3603) {
|
|
yyv3603 = yyv3603[:yyj3603]
|
|
yyc3603 = true
|
|
} else if yyj3603 == 0 && yyv3603 == nil {
|
|
yyv3603 = []ContainerStatus{}
|
|
yyc3603 = true
|
|
}
|
|
}
|
|
yyh3603.End()
|
|
if yyc3603 {
|
|
*v = yyv3603
|
|
}
|
|
}
|
|
|
|
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 _, yyv3607 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3608 := &yyv3607
|
|
yy3608.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
|
|
|
|
yyv3609 := *v
|
|
yyh3609, yyl3609 := z.DecSliceHelperStart()
|
|
var yyc3609 bool
|
|
if yyl3609 == 0 {
|
|
if yyv3609 == nil {
|
|
yyv3609 = []PodTemplate{}
|
|
yyc3609 = true
|
|
} else if len(yyv3609) != 0 {
|
|
yyv3609 = yyv3609[:0]
|
|
yyc3609 = true
|
|
}
|
|
} else if yyl3609 > 0 {
|
|
var yyrr3609, yyrl3609 int
|
|
var yyrt3609 bool
|
|
if yyl3609 > cap(yyv3609) {
|
|
|
|
yyrg3609 := len(yyv3609) > 0
|
|
yyv23609 := yyv3609
|
|
yyrl3609, yyrt3609 = z.DecInferLen(yyl3609, z.DecBasicHandle().MaxInitLen, 520)
|
|
if yyrt3609 {
|
|
if yyrl3609 <= cap(yyv3609) {
|
|
yyv3609 = yyv3609[:yyrl3609]
|
|
} else {
|
|
yyv3609 = make([]PodTemplate, yyrl3609)
|
|
}
|
|
} else {
|
|
yyv3609 = make([]PodTemplate, yyrl3609)
|
|
}
|
|
yyc3609 = true
|
|
yyrr3609 = len(yyv3609)
|
|
if yyrg3609 {
|
|
copy(yyv3609, yyv23609)
|
|
}
|
|
} else if yyl3609 != len(yyv3609) {
|
|
yyv3609 = yyv3609[:yyl3609]
|
|
yyc3609 = true
|
|
}
|
|
yyj3609 := 0
|
|
for ; yyj3609 < yyrr3609; yyj3609++ {
|
|
yyh3609.ElemContainerState(yyj3609)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3609[yyj3609] = PodTemplate{}
|
|
} else {
|
|
yyv3610 := &yyv3609[yyj3609]
|
|
yyv3610.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3609 {
|
|
for ; yyj3609 < yyl3609; yyj3609++ {
|
|
yyv3609 = append(yyv3609, PodTemplate{})
|
|
yyh3609.ElemContainerState(yyj3609)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3609[yyj3609] = PodTemplate{}
|
|
} else {
|
|
yyv3611 := &yyv3609[yyj3609]
|
|
yyv3611.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3609 := 0
|
|
for ; !r.CheckBreak(); yyj3609++ {
|
|
|
|
if yyj3609 >= len(yyv3609) {
|
|
yyv3609 = append(yyv3609, PodTemplate{}) // var yyz3609 PodTemplate
|
|
yyc3609 = true
|
|
}
|
|
yyh3609.ElemContainerState(yyj3609)
|
|
if yyj3609 < len(yyv3609) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3609[yyj3609] = PodTemplate{}
|
|
} else {
|
|
yyv3612 := &yyv3609[yyj3609]
|
|
yyv3612.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3609 < len(yyv3609) {
|
|
yyv3609 = yyv3609[:yyj3609]
|
|
yyc3609 = true
|
|
} else if yyj3609 == 0 && yyv3609 == nil {
|
|
yyv3609 = []PodTemplate{}
|
|
yyc3609 = true
|
|
}
|
|
}
|
|
yyh3609.End()
|
|
if yyc3609 {
|
|
*v = yyv3609
|
|
}
|
|
}
|
|
|
|
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 _, yyv3613 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3614 := &yyv3613
|
|
yy3614.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
|
|
|
|
yyv3615 := *v
|
|
yyh3615, yyl3615 := z.DecSliceHelperStart()
|
|
var yyc3615 bool
|
|
if yyl3615 == 0 {
|
|
if yyv3615 == nil {
|
|
yyv3615 = []ReplicationController{}
|
|
yyc3615 = true
|
|
} else if len(yyv3615) != 0 {
|
|
yyv3615 = yyv3615[:0]
|
|
yyc3615 = true
|
|
}
|
|
} else if yyl3615 > 0 {
|
|
var yyrr3615, yyrl3615 int
|
|
var yyrt3615 bool
|
|
if yyl3615 > cap(yyv3615) {
|
|
|
|
yyrg3615 := len(yyv3615) > 0
|
|
yyv23615 := yyv3615
|
|
yyrl3615, yyrt3615 = z.DecInferLen(yyl3615, z.DecBasicHandle().MaxInitLen, 232)
|
|
if yyrt3615 {
|
|
if yyrl3615 <= cap(yyv3615) {
|
|
yyv3615 = yyv3615[:yyrl3615]
|
|
} else {
|
|
yyv3615 = make([]ReplicationController, yyrl3615)
|
|
}
|
|
} else {
|
|
yyv3615 = make([]ReplicationController, yyrl3615)
|
|
}
|
|
yyc3615 = true
|
|
yyrr3615 = len(yyv3615)
|
|
if yyrg3615 {
|
|
copy(yyv3615, yyv23615)
|
|
}
|
|
} else if yyl3615 != len(yyv3615) {
|
|
yyv3615 = yyv3615[:yyl3615]
|
|
yyc3615 = true
|
|
}
|
|
yyj3615 := 0
|
|
for ; yyj3615 < yyrr3615; yyj3615++ {
|
|
yyh3615.ElemContainerState(yyj3615)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3615[yyj3615] = ReplicationController{}
|
|
} else {
|
|
yyv3616 := &yyv3615[yyj3615]
|
|
yyv3616.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3615 {
|
|
for ; yyj3615 < yyl3615; yyj3615++ {
|
|
yyv3615 = append(yyv3615, ReplicationController{})
|
|
yyh3615.ElemContainerState(yyj3615)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3615[yyj3615] = ReplicationController{}
|
|
} else {
|
|
yyv3617 := &yyv3615[yyj3615]
|
|
yyv3617.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3615 := 0
|
|
for ; !r.CheckBreak(); yyj3615++ {
|
|
|
|
if yyj3615 >= len(yyv3615) {
|
|
yyv3615 = append(yyv3615, ReplicationController{}) // var yyz3615 ReplicationController
|
|
yyc3615 = true
|
|
}
|
|
yyh3615.ElemContainerState(yyj3615)
|
|
if yyj3615 < len(yyv3615) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3615[yyj3615] = ReplicationController{}
|
|
} else {
|
|
yyv3618 := &yyv3615[yyj3615]
|
|
yyv3618.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3615 < len(yyv3615) {
|
|
yyv3615 = yyv3615[:yyj3615]
|
|
yyc3615 = true
|
|
} else if yyj3615 == 0 && yyv3615 == nil {
|
|
yyv3615 = []ReplicationController{}
|
|
yyc3615 = true
|
|
}
|
|
}
|
|
yyh3615.End()
|
|
if yyc3615 {
|
|
*v = yyv3615
|
|
}
|
|
}
|
|
|
|
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 _, yyv3619 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3620 := &yyv3619
|
|
yy3620.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
|
|
|
|
yyv3621 := *v
|
|
yyh3621, yyl3621 := z.DecSliceHelperStart()
|
|
var yyc3621 bool
|
|
if yyl3621 == 0 {
|
|
if yyv3621 == nil {
|
|
yyv3621 = []Service{}
|
|
yyc3621 = true
|
|
} else if len(yyv3621) != 0 {
|
|
yyv3621 = yyv3621[:0]
|
|
yyc3621 = true
|
|
}
|
|
} else if yyl3621 > 0 {
|
|
var yyrr3621, yyrl3621 int
|
|
var yyrt3621 bool
|
|
if yyl3621 > cap(yyv3621) {
|
|
|
|
yyrg3621 := len(yyv3621) > 0
|
|
yyv23621 := yyv3621
|
|
yyrl3621, yyrt3621 = z.DecInferLen(yyl3621, z.DecBasicHandle().MaxInitLen, 336)
|
|
if yyrt3621 {
|
|
if yyrl3621 <= cap(yyv3621) {
|
|
yyv3621 = yyv3621[:yyrl3621]
|
|
} else {
|
|
yyv3621 = make([]Service, yyrl3621)
|
|
}
|
|
} else {
|
|
yyv3621 = make([]Service, yyrl3621)
|
|
}
|
|
yyc3621 = true
|
|
yyrr3621 = len(yyv3621)
|
|
if yyrg3621 {
|
|
copy(yyv3621, yyv23621)
|
|
}
|
|
} else if yyl3621 != len(yyv3621) {
|
|
yyv3621 = yyv3621[:yyl3621]
|
|
yyc3621 = true
|
|
}
|
|
yyj3621 := 0
|
|
for ; yyj3621 < yyrr3621; yyj3621++ {
|
|
yyh3621.ElemContainerState(yyj3621)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3621[yyj3621] = Service{}
|
|
} else {
|
|
yyv3622 := &yyv3621[yyj3621]
|
|
yyv3622.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3621 {
|
|
for ; yyj3621 < yyl3621; yyj3621++ {
|
|
yyv3621 = append(yyv3621, Service{})
|
|
yyh3621.ElemContainerState(yyj3621)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3621[yyj3621] = Service{}
|
|
} else {
|
|
yyv3623 := &yyv3621[yyj3621]
|
|
yyv3623.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3621 := 0
|
|
for ; !r.CheckBreak(); yyj3621++ {
|
|
|
|
if yyj3621 >= len(yyv3621) {
|
|
yyv3621 = append(yyv3621, Service{}) // var yyz3621 Service
|
|
yyc3621 = true
|
|
}
|
|
yyh3621.ElemContainerState(yyj3621)
|
|
if yyj3621 < len(yyv3621) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3621[yyj3621] = Service{}
|
|
} else {
|
|
yyv3624 := &yyv3621[yyj3621]
|
|
yyv3624.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3621 < len(yyv3621) {
|
|
yyv3621 = yyv3621[:yyj3621]
|
|
yyc3621 = true
|
|
} else if yyj3621 == 0 && yyv3621 == nil {
|
|
yyv3621 = []Service{}
|
|
yyc3621 = true
|
|
}
|
|
}
|
|
yyh3621.End()
|
|
if yyc3621 {
|
|
*v = yyv3621
|
|
}
|
|
}
|
|
|
|
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 _, yyv3625 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3626 := &yyv3625
|
|
yy3626.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
|
|
|
|
yyv3627 := *v
|
|
yyh3627, yyl3627 := z.DecSliceHelperStart()
|
|
var yyc3627 bool
|
|
if yyl3627 == 0 {
|
|
if yyv3627 == nil {
|
|
yyv3627 = []LoadBalancerIngress{}
|
|
yyc3627 = true
|
|
} else if len(yyv3627) != 0 {
|
|
yyv3627 = yyv3627[:0]
|
|
yyc3627 = true
|
|
}
|
|
} else if yyl3627 > 0 {
|
|
var yyrr3627, yyrl3627 int
|
|
var yyrt3627 bool
|
|
if yyl3627 > cap(yyv3627) {
|
|
|
|
yyrg3627 := len(yyv3627) > 0
|
|
yyv23627 := yyv3627
|
|
yyrl3627, yyrt3627 = z.DecInferLen(yyl3627, z.DecBasicHandle().MaxInitLen, 32)
|
|
if yyrt3627 {
|
|
if yyrl3627 <= cap(yyv3627) {
|
|
yyv3627 = yyv3627[:yyrl3627]
|
|
} else {
|
|
yyv3627 = make([]LoadBalancerIngress, yyrl3627)
|
|
}
|
|
} else {
|
|
yyv3627 = make([]LoadBalancerIngress, yyrl3627)
|
|
}
|
|
yyc3627 = true
|
|
yyrr3627 = len(yyv3627)
|
|
if yyrg3627 {
|
|
copy(yyv3627, yyv23627)
|
|
}
|
|
} else if yyl3627 != len(yyv3627) {
|
|
yyv3627 = yyv3627[:yyl3627]
|
|
yyc3627 = true
|
|
}
|
|
yyj3627 := 0
|
|
for ; yyj3627 < yyrr3627; yyj3627++ {
|
|
yyh3627.ElemContainerState(yyj3627)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3627[yyj3627] = LoadBalancerIngress{}
|
|
} else {
|
|
yyv3628 := &yyv3627[yyj3627]
|
|
yyv3628.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3627 {
|
|
for ; yyj3627 < yyl3627; yyj3627++ {
|
|
yyv3627 = append(yyv3627, LoadBalancerIngress{})
|
|
yyh3627.ElemContainerState(yyj3627)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3627[yyj3627] = LoadBalancerIngress{}
|
|
} else {
|
|
yyv3629 := &yyv3627[yyj3627]
|
|
yyv3629.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3627 := 0
|
|
for ; !r.CheckBreak(); yyj3627++ {
|
|
|
|
if yyj3627 >= len(yyv3627) {
|
|
yyv3627 = append(yyv3627, LoadBalancerIngress{}) // var yyz3627 LoadBalancerIngress
|
|
yyc3627 = true
|
|
}
|
|
yyh3627.ElemContainerState(yyj3627)
|
|
if yyj3627 < len(yyv3627) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3627[yyj3627] = LoadBalancerIngress{}
|
|
} else {
|
|
yyv3630 := &yyv3627[yyj3627]
|
|
yyv3630.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3627 < len(yyv3627) {
|
|
yyv3627 = yyv3627[:yyj3627]
|
|
yyc3627 = true
|
|
} else if yyj3627 == 0 && yyv3627 == nil {
|
|
yyv3627 = []LoadBalancerIngress{}
|
|
yyc3627 = true
|
|
}
|
|
}
|
|
yyh3627.End()
|
|
if yyc3627 {
|
|
*v = yyv3627
|
|
}
|
|
}
|
|
|
|
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 _, yyv3631 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3632 := &yyv3631
|
|
yy3632.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
|
|
|
|
yyv3633 := *v
|
|
yyh3633, yyl3633 := z.DecSliceHelperStart()
|
|
var yyc3633 bool
|
|
if yyl3633 == 0 {
|
|
if yyv3633 == nil {
|
|
yyv3633 = []ServicePort{}
|
|
yyc3633 = true
|
|
} else if len(yyv3633) != 0 {
|
|
yyv3633 = yyv3633[:0]
|
|
yyc3633 = true
|
|
}
|
|
} else if yyl3633 > 0 {
|
|
var yyrr3633, yyrl3633 int
|
|
var yyrt3633 bool
|
|
if yyl3633 > cap(yyv3633) {
|
|
|
|
yyrg3633 := len(yyv3633) > 0
|
|
yyv23633 := yyv3633
|
|
yyrl3633, yyrt3633 = z.DecInferLen(yyl3633, z.DecBasicHandle().MaxInitLen, 80)
|
|
if yyrt3633 {
|
|
if yyrl3633 <= cap(yyv3633) {
|
|
yyv3633 = yyv3633[:yyrl3633]
|
|
} else {
|
|
yyv3633 = make([]ServicePort, yyrl3633)
|
|
}
|
|
} else {
|
|
yyv3633 = make([]ServicePort, yyrl3633)
|
|
}
|
|
yyc3633 = true
|
|
yyrr3633 = len(yyv3633)
|
|
if yyrg3633 {
|
|
copy(yyv3633, yyv23633)
|
|
}
|
|
} else if yyl3633 != len(yyv3633) {
|
|
yyv3633 = yyv3633[:yyl3633]
|
|
yyc3633 = true
|
|
}
|
|
yyj3633 := 0
|
|
for ; yyj3633 < yyrr3633; yyj3633++ {
|
|
yyh3633.ElemContainerState(yyj3633)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3633[yyj3633] = ServicePort{}
|
|
} else {
|
|
yyv3634 := &yyv3633[yyj3633]
|
|
yyv3634.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3633 {
|
|
for ; yyj3633 < yyl3633; yyj3633++ {
|
|
yyv3633 = append(yyv3633, ServicePort{})
|
|
yyh3633.ElemContainerState(yyj3633)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3633[yyj3633] = ServicePort{}
|
|
} else {
|
|
yyv3635 := &yyv3633[yyj3633]
|
|
yyv3635.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3633 := 0
|
|
for ; !r.CheckBreak(); yyj3633++ {
|
|
|
|
if yyj3633 >= len(yyv3633) {
|
|
yyv3633 = append(yyv3633, ServicePort{}) // var yyz3633 ServicePort
|
|
yyc3633 = true
|
|
}
|
|
yyh3633.ElemContainerState(yyj3633)
|
|
if yyj3633 < len(yyv3633) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3633[yyj3633] = ServicePort{}
|
|
} else {
|
|
yyv3636 := &yyv3633[yyj3633]
|
|
yyv3636.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3633 < len(yyv3633) {
|
|
yyv3633 = yyv3633[:yyj3633]
|
|
yyc3633 = true
|
|
} else if yyj3633 == 0 && yyv3633 == nil {
|
|
yyv3633 = []ServicePort{}
|
|
yyc3633 = true
|
|
}
|
|
}
|
|
yyh3633.End()
|
|
if yyc3633 {
|
|
*v = yyv3633
|
|
}
|
|
}
|
|
|
|
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 _, yyv3637 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3638 := &yyv3637
|
|
yy3638.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
|
|
|
|
yyv3639 := *v
|
|
yyh3639, yyl3639 := z.DecSliceHelperStart()
|
|
var yyc3639 bool
|
|
if yyl3639 == 0 {
|
|
if yyv3639 == nil {
|
|
yyv3639 = []ObjectReference{}
|
|
yyc3639 = true
|
|
} else if len(yyv3639) != 0 {
|
|
yyv3639 = yyv3639[:0]
|
|
yyc3639 = true
|
|
}
|
|
} else if yyl3639 > 0 {
|
|
var yyrr3639, yyrl3639 int
|
|
var yyrt3639 bool
|
|
if yyl3639 > cap(yyv3639) {
|
|
|
|
yyrg3639 := len(yyv3639) > 0
|
|
yyv23639 := yyv3639
|
|
yyrl3639, yyrt3639 = z.DecInferLen(yyl3639, z.DecBasicHandle().MaxInitLen, 112)
|
|
if yyrt3639 {
|
|
if yyrl3639 <= cap(yyv3639) {
|
|
yyv3639 = yyv3639[:yyrl3639]
|
|
} else {
|
|
yyv3639 = make([]ObjectReference, yyrl3639)
|
|
}
|
|
} else {
|
|
yyv3639 = make([]ObjectReference, yyrl3639)
|
|
}
|
|
yyc3639 = true
|
|
yyrr3639 = len(yyv3639)
|
|
if yyrg3639 {
|
|
copy(yyv3639, yyv23639)
|
|
}
|
|
} else if yyl3639 != len(yyv3639) {
|
|
yyv3639 = yyv3639[:yyl3639]
|
|
yyc3639 = true
|
|
}
|
|
yyj3639 := 0
|
|
for ; yyj3639 < yyrr3639; yyj3639++ {
|
|
yyh3639.ElemContainerState(yyj3639)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3639[yyj3639] = ObjectReference{}
|
|
} else {
|
|
yyv3640 := &yyv3639[yyj3639]
|
|
yyv3640.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3639 {
|
|
for ; yyj3639 < yyl3639; yyj3639++ {
|
|
yyv3639 = append(yyv3639, ObjectReference{})
|
|
yyh3639.ElemContainerState(yyj3639)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3639[yyj3639] = ObjectReference{}
|
|
} else {
|
|
yyv3641 := &yyv3639[yyj3639]
|
|
yyv3641.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3639 := 0
|
|
for ; !r.CheckBreak(); yyj3639++ {
|
|
|
|
if yyj3639 >= len(yyv3639) {
|
|
yyv3639 = append(yyv3639, ObjectReference{}) // var yyz3639 ObjectReference
|
|
yyc3639 = true
|
|
}
|
|
yyh3639.ElemContainerState(yyj3639)
|
|
if yyj3639 < len(yyv3639) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3639[yyj3639] = ObjectReference{}
|
|
} else {
|
|
yyv3642 := &yyv3639[yyj3639]
|
|
yyv3642.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3639 < len(yyv3639) {
|
|
yyv3639 = yyv3639[:yyj3639]
|
|
yyc3639 = true
|
|
} else if yyj3639 == 0 && yyv3639 == nil {
|
|
yyv3639 = []ObjectReference{}
|
|
yyc3639 = true
|
|
}
|
|
}
|
|
yyh3639.End()
|
|
if yyc3639 {
|
|
*v = yyv3639
|
|
}
|
|
}
|
|
|
|
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 _, yyv3643 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3644 := &yyv3643
|
|
yy3644.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
|
|
|
|
yyv3645 := *v
|
|
yyh3645, yyl3645 := z.DecSliceHelperStart()
|
|
var yyc3645 bool
|
|
if yyl3645 == 0 {
|
|
if yyv3645 == nil {
|
|
yyv3645 = []ServiceAccount{}
|
|
yyc3645 = true
|
|
} else if len(yyv3645) != 0 {
|
|
yyv3645 = yyv3645[:0]
|
|
yyc3645 = true
|
|
}
|
|
} else if yyl3645 > 0 {
|
|
var yyrr3645, yyrl3645 int
|
|
var yyrt3645 bool
|
|
if yyl3645 > cap(yyv3645) {
|
|
|
|
yyrg3645 := len(yyv3645) > 0
|
|
yyv23645 := yyv3645
|
|
yyrl3645, yyrt3645 = z.DecInferLen(yyl3645, z.DecBasicHandle().MaxInitLen, 240)
|
|
if yyrt3645 {
|
|
if yyrl3645 <= cap(yyv3645) {
|
|
yyv3645 = yyv3645[:yyrl3645]
|
|
} else {
|
|
yyv3645 = make([]ServiceAccount, yyrl3645)
|
|
}
|
|
} else {
|
|
yyv3645 = make([]ServiceAccount, yyrl3645)
|
|
}
|
|
yyc3645 = true
|
|
yyrr3645 = len(yyv3645)
|
|
if yyrg3645 {
|
|
copy(yyv3645, yyv23645)
|
|
}
|
|
} else if yyl3645 != len(yyv3645) {
|
|
yyv3645 = yyv3645[:yyl3645]
|
|
yyc3645 = true
|
|
}
|
|
yyj3645 := 0
|
|
for ; yyj3645 < yyrr3645; yyj3645++ {
|
|
yyh3645.ElemContainerState(yyj3645)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3645[yyj3645] = ServiceAccount{}
|
|
} else {
|
|
yyv3646 := &yyv3645[yyj3645]
|
|
yyv3646.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3645 {
|
|
for ; yyj3645 < yyl3645; yyj3645++ {
|
|
yyv3645 = append(yyv3645, ServiceAccount{})
|
|
yyh3645.ElemContainerState(yyj3645)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3645[yyj3645] = ServiceAccount{}
|
|
} else {
|
|
yyv3647 := &yyv3645[yyj3645]
|
|
yyv3647.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3645 := 0
|
|
for ; !r.CheckBreak(); yyj3645++ {
|
|
|
|
if yyj3645 >= len(yyv3645) {
|
|
yyv3645 = append(yyv3645, ServiceAccount{}) // var yyz3645 ServiceAccount
|
|
yyc3645 = true
|
|
}
|
|
yyh3645.ElemContainerState(yyj3645)
|
|
if yyj3645 < len(yyv3645) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3645[yyj3645] = ServiceAccount{}
|
|
} else {
|
|
yyv3648 := &yyv3645[yyj3645]
|
|
yyv3648.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3645 < len(yyv3645) {
|
|
yyv3645 = yyv3645[:yyj3645]
|
|
yyc3645 = true
|
|
} else if yyj3645 == 0 && yyv3645 == nil {
|
|
yyv3645 = []ServiceAccount{}
|
|
yyc3645 = true
|
|
}
|
|
}
|
|
yyh3645.End()
|
|
if yyc3645 {
|
|
*v = yyv3645
|
|
}
|
|
}
|
|
|
|
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 _, yyv3649 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3650 := &yyv3649
|
|
yy3650.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
|
|
|
|
yyv3651 := *v
|
|
yyh3651, yyl3651 := z.DecSliceHelperStart()
|
|
var yyc3651 bool
|
|
if yyl3651 == 0 {
|
|
if yyv3651 == nil {
|
|
yyv3651 = []EndpointSubset{}
|
|
yyc3651 = true
|
|
} else if len(yyv3651) != 0 {
|
|
yyv3651 = yyv3651[:0]
|
|
yyc3651 = true
|
|
}
|
|
} else if yyl3651 > 0 {
|
|
var yyrr3651, yyrl3651 int
|
|
var yyrt3651 bool
|
|
if yyl3651 > cap(yyv3651) {
|
|
|
|
yyrg3651 := len(yyv3651) > 0
|
|
yyv23651 := yyv3651
|
|
yyrl3651, yyrt3651 = z.DecInferLen(yyl3651, z.DecBasicHandle().MaxInitLen, 72)
|
|
if yyrt3651 {
|
|
if yyrl3651 <= cap(yyv3651) {
|
|
yyv3651 = yyv3651[:yyrl3651]
|
|
} else {
|
|
yyv3651 = make([]EndpointSubset, yyrl3651)
|
|
}
|
|
} else {
|
|
yyv3651 = make([]EndpointSubset, yyrl3651)
|
|
}
|
|
yyc3651 = true
|
|
yyrr3651 = len(yyv3651)
|
|
if yyrg3651 {
|
|
copy(yyv3651, yyv23651)
|
|
}
|
|
} else if yyl3651 != len(yyv3651) {
|
|
yyv3651 = yyv3651[:yyl3651]
|
|
yyc3651 = true
|
|
}
|
|
yyj3651 := 0
|
|
for ; yyj3651 < yyrr3651; yyj3651++ {
|
|
yyh3651.ElemContainerState(yyj3651)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3651[yyj3651] = EndpointSubset{}
|
|
} else {
|
|
yyv3652 := &yyv3651[yyj3651]
|
|
yyv3652.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3651 {
|
|
for ; yyj3651 < yyl3651; yyj3651++ {
|
|
yyv3651 = append(yyv3651, EndpointSubset{})
|
|
yyh3651.ElemContainerState(yyj3651)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3651[yyj3651] = EndpointSubset{}
|
|
} else {
|
|
yyv3653 := &yyv3651[yyj3651]
|
|
yyv3653.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3651 := 0
|
|
for ; !r.CheckBreak(); yyj3651++ {
|
|
|
|
if yyj3651 >= len(yyv3651) {
|
|
yyv3651 = append(yyv3651, EndpointSubset{}) // var yyz3651 EndpointSubset
|
|
yyc3651 = true
|
|
}
|
|
yyh3651.ElemContainerState(yyj3651)
|
|
if yyj3651 < len(yyv3651) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3651[yyj3651] = EndpointSubset{}
|
|
} else {
|
|
yyv3654 := &yyv3651[yyj3651]
|
|
yyv3654.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3651 < len(yyv3651) {
|
|
yyv3651 = yyv3651[:yyj3651]
|
|
yyc3651 = true
|
|
} else if yyj3651 == 0 && yyv3651 == nil {
|
|
yyv3651 = []EndpointSubset{}
|
|
yyc3651 = true
|
|
}
|
|
}
|
|
yyh3651.End()
|
|
if yyc3651 {
|
|
*v = yyv3651
|
|
}
|
|
}
|
|
|
|
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 _, yyv3655 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3656 := &yyv3655
|
|
yy3656.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
|
|
|
|
yyv3657 := *v
|
|
yyh3657, yyl3657 := z.DecSliceHelperStart()
|
|
var yyc3657 bool
|
|
if yyl3657 == 0 {
|
|
if yyv3657 == nil {
|
|
yyv3657 = []EndpointAddress{}
|
|
yyc3657 = true
|
|
} else if len(yyv3657) != 0 {
|
|
yyv3657 = yyv3657[:0]
|
|
yyc3657 = true
|
|
}
|
|
} else if yyl3657 > 0 {
|
|
var yyrr3657, yyrl3657 int
|
|
var yyrt3657 bool
|
|
if yyl3657 > cap(yyv3657) {
|
|
|
|
yyrg3657 := len(yyv3657) > 0
|
|
yyv23657 := yyv3657
|
|
yyrl3657, yyrt3657 = z.DecInferLen(yyl3657, z.DecBasicHandle().MaxInitLen, 24)
|
|
if yyrt3657 {
|
|
if yyrl3657 <= cap(yyv3657) {
|
|
yyv3657 = yyv3657[:yyrl3657]
|
|
} else {
|
|
yyv3657 = make([]EndpointAddress, yyrl3657)
|
|
}
|
|
} else {
|
|
yyv3657 = make([]EndpointAddress, yyrl3657)
|
|
}
|
|
yyc3657 = true
|
|
yyrr3657 = len(yyv3657)
|
|
if yyrg3657 {
|
|
copy(yyv3657, yyv23657)
|
|
}
|
|
} else if yyl3657 != len(yyv3657) {
|
|
yyv3657 = yyv3657[:yyl3657]
|
|
yyc3657 = true
|
|
}
|
|
yyj3657 := 0
|
|
for ; yyj3657 < yyrr3657; yyj3657++ {
|
|
yyh3657.ElemContainerState(yyj3657)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3657[yyj3657] = EndpointAddress{}
|
|
} else {
|
|
yyv3658 := &yyv3657[yyj3657]
|
|
yyv3658.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3657 {
|
|
for ; yyj3657 < yyl3657; yyj3657++ {
|
|
yyv3657 = append(yyv3657, EndpointAddress{})
|
|
yyh3657.ElemContainerState(yyj3657)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3657[yyj3657] = EndpointAddress{}
|
|
} else {
|
|
yyv3659 := &yyv3657[yyj3657]
|
|
yyv3659.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3657 := 0
|
|
for ; !r.CheckBreak(); yyj3657++ {
|
|
|
|
if yyj3657 >= len(yyv3657) {
|
|
yyv3657 = append(yyv3657, EndpointAddress{}) // var yyz3657 EndpointAddress
|
|
yyc3657 = true
|
|
}
|
|
yyh3657.ElemContainerState(yyj3657)
|
|
if yyj3657 < len(yyv3657) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3657[yyj3657] = EndpointAddress{}
|
|
} else {
|
|
yyv3660 := &yyv3657[yyj3657]
|
|
yyv3660.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3657 < len(yyv3657) {
|
|
yyv3657 = yyv3657[:yyj3657]
|
|
yyc3657 = true
|
|
} else if yyj3657 == 0 && yyv3657 == nil {
|
|
yyv3657 = []EndpointAddress{}
|
|
yyc3657 = true
|
|
}
|
|
}
|
|
yyh3657.End()
|
|
if yyc3657 {
|
|
*v = yyv3657
|
|
}
|
|
}
|
|
|
|
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 _, yyv3661 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3662 := &yyv3661
|
|
yy3662.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
|
|
|
|
yyv3663 := *v
|
|
yyh3663, yyl3663 := z.DecSliceHelperStart()
|
|
var yyc3663 bool
|
|
if yyl3663 == 0 {
|
|
if yyv3663 == nil {
|
|
yyv3663 = []EndpointPort{}
|
|
yyc3663 = true
|
|
} else if len(yyv3663) != 0 {
|
|
yyv3663 = yyv3663[:0]
|
|
yyc3663 = true
|
|
}
|
|
} else if yyl3663 > 0 {
|
|
var yyrr3663, yyrl3663 int
|
|
var yyrt3663 bool
|
|
if yyl3663 > cap(yyv3663) {
|
|
|
|
yyrg3663 := len(yyv3663) > 0
|
|
yyv23663 := yyv3663
|
|
yyrl3663, yyrt3663 = z.DecInferLen(yyl3663, z.DecBasicHandle().MaxInitLen, 40)
|
|
if yyrt3663 {
|
|
if yyrl3663 <= cap(yyv3663) {
|
|
yyv3663 = yyv3663[:yyrl3663]
|
|
} else {
|
|
yyv3663 = make([]EndpointPort, yyrl3663)
|
|
}
|
|
} else {
|
|
yyv3663 = make([]EndpointPort, yyrl3663)
|
|
}
|
|
yyc3663 = true
|
|
yyrr3663 = len(yyv3663)
|
|
if yyrg3663 {
|
|
copy(yyv3663, yyv23663)
|
|
}
|
|
} else if yyl3663 != len(yyv3663) {
|
|
yyv3663 = yyv3663[:yyl3663]
|
|
yyc3663 = true
|
|
}
|
|
yyj3663 := 0
|
|
for ; yyj3663 < yyrr3663; yyj3663++ {
|
|
yyh3663.ElemContainerState(yyj3663)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3663[yyj3663] = EndpointPort{}
|
|
} else {
|
|
yyv3664 := &yyv3663[yyj3663]
|
|
yyv3664.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3663 {
|
|
for ; yyj3663 < yyl3663; yyj3663++ {
|
|
yyv3663 = append(yyv3663, EndpointPort{})
|
|
yyh3663.ElemContainerState(yyj3663)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3663[yyj3663] = EndpointPort{}
|
|
} else {
|
|
yyv3665 := &yyv3663[yyj3663]
|
|
yyv3665.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3663 := 0
|
|
for ; !r.CheckBreak(); yyj3663++ {
|
|
|
|
if yyj3663 >= len(yyv3663) {
|
|
yyv3663 = append(yyv3663, EndpointPort{}) // var yyz3663 EndpointPort
|
|
yyc3663 = true
|
|
}
|
|
yyh3663.ElemContainerState(yyj3663)
|
|
if yyj3663 < len(yyv3663) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3663[yyj3663] = EndpointPort{}
|
|
} else {
|
|
yyv3666 := &yyv3663[yyj3663]
|
|
yyv3666.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3663 < len(yyv3663) {
|
|
yyv3663 = yyv3663[:yyj3663]
|
|
yyc3663 = true
|
|
} else if yyj3663 == 0 && yyv3663 == nil {
|
|
yyv3663 = []EndpointPort{}
|
|
yyc3663 = true
|
|
}
|
|
}
|
|
yyh3663.End()
|
|
if yyc3663 {
|
|
*v = yyv3663
|
|
}
|
|
}
|
|
|
|
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 _, yyv3667 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3668 := &yyv3667
|
|
yy3668.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
|
|
|
|
yyv3669 := *v
|
|
yyh3669, yyl3669 := z.DecSliceHelperStart()
|
|
var yyc3669 bool
|
|
if yyl3669 == 0 {
|
|
if yyv3669 == nil {
|
|
yyv3669 = []Endpoints{}
|
|
yyc3669 = true
|
|
} else if len(yyv3669) != 0 {
|
|
yyv3669 = yyv3669[:0]
|
|
yyc3669 = true
|
|
}
|
|
} else if yyl3669 > 0 {
|
|
var yyrr3669, yyrl3669 int
|
|
var yyrt3669 bool
|
|
if yyl3669 > cap(yyv3669) {
|
|
|
|
yyrg3669 := len(yyv3669) > 0
|
|
yyv23669 := yyv3669
|
|
yyrl3669, yyrt3669 = z.DecInferLen(yyl3669, z.DecBasicHandle().MaxInitLen, 216)
|
|
if yyrt3669 {
|
|
if yyrl3669 <= cap(yyv3669) {
|
|
yyv3669 = yyv3669[:yyrl3669]
|
|
} else {
|
|
yyv3669 = make([]Endpoints, yyrl3669)
|
|
}
|
|
} else {
|
|
yyv3669 = make([]Endpoints, yyrl3669)
|
|
}
|
|
yyc3669 = true
|
|
yyrr3669 = len(yyv3669)
|
|
if yyrg3669 {
|
|
copy(yyv3669, yyv23669)
|
|
}
|
|
} else if yyl3669 != len(yyv3669) {
|
|
yyv3669 = yyv3669[:yyl3669]
|
|
yyc3669 = true
|
|
}
|
|
yyj3669 := 0
|
|
for ; yyj3669 < yyrr3669; yyj3669++ {
|
|
yyh3669.ElemContainerState(yyj3669)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3669[yyj3669] = Endpoints{}
|
|
} else {
|
|
yyv3670 := &yyv3669[yyj3669]
|
|
yyv3670.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3669 {
|
|
for ; yyj3669 < yyl3669; yyj3669++ {
|
|
yyv3669 = append(yyv3669, Endpoints{})
|
|
yyh3669.ElemContainerState(yyj3669)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3669[yyj3669] = Endpoints{}
|
|
} else {
|
|
yyv3671 := &yyv3669[yyj3669]
|
|
yyv3671.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3669 := 0
|
|
for ; !r.CheckBreak(); yyj3669++ {
|
|
|
|
if yyj3669 >= len(yyv3669) {
|
|
yyv3669 = append(yyv3669, Endpoints{}) // var yyz3669 Endpoints
|
|
yyc3669 = true
|
|
}
|
|
yyh3669.ElemContainerState(yyj3669)
|
|
if yyj3669 < len(yyv3669) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3669[yyj3669] = Endpoints{}
|
|
} else {
|
|
yyv3672 := &yyv3669[yyj3669]
|
|
yyv3672.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3669 < len(yyv3669) {
|
|
yyv3669 = yyv3669[:yyj3669]
|
|
yyc3669 = true
|
|
} else if yyj3669 == 0 && yyv3669 == nil {
|
|
yyv3669 = []Endpoints{}
|
|
yyc3669 = true
|
|
}
|
|
}
|
|
yyh3669.End()
|
|
if yyc3669 {
|
|
*v = yyv3669
|
|
}
|
|
}
|
|
|
|
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 _, yyv3673 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3674 := &yyv3673
|
|
yy3674.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
|
|
|
|
yyv3675 := *v
|
|
yyh3675, yyl3675 := z.DecSliceHelperStart()
|
|
var yyc3675 bool
|
|
if yyl3675 == 0 {
|
|
if yyv3675 == nil {
|
|
yyv3675 = []NodeCondition{}
|
|
yyc3675 = true
|
|
} else if len(yyv3675) != 0 {
|
|
yyv3675 = yyv3675[:0]
|
|
yyc3675 = true
|
|
}
|
|
} else if yyl3675 > 0 {
|
|
var yyrr3675, yyrl3675 int
|
|
var yyrt3675 bool
|
|
if yyl3675 > cap(yyv3675) {
|
|
|
|
yyrg3675 := len(yyv3675) > 0
|
|
yyv23675 := yyv3675
|
|
yyrl3675, yyrt3675 = z.DecInferLen(yyl3675, z.DecBasicHandle().MaxInitLen, 112)
|
|
if yyrt3675 {
|
|
if yyrl3675 <= cap(yyv3675) {
|
|
yyv3675 = yyv3675[:yyrl3675]
|
|
} else {
|
|
yyv3675 = make([]NodeCondition, yyrl3675)
|
|
}
|
|
} else {
|
|
yyv3675 = make([]NodeCondition, yyrl3675)
|
|
}
|
|
yyc3675 = true
|
|
yyrr3675 = len(yyv3675)
|
|
if yyrg3675 {
|
|
copy(yyv3675, yyv23675)
|
|
}
|
|
} else if yyl3675 != len(yyv3675) {
|
|
yyv3675 = yyv3675[:yyl3675]
|
|
yyc3675 = true
|
|
}
|
|
yyj3675 := 0
|
|
for ; yyj3675 < yyrr3675; yyj3675++ {
|
|
yyh3675.ElemContainerState(yyj3675)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3675[yyj3675] = NodeCondition{}
|
|
} else {
|
|
yyv3676 := &yyv3675[yyj3675]
|
|
yyv3676.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3675 {
|
|
for ; yyj3675 < yyl3675; yyj3675++ {
|
|
yyv3675 = append(yyv3675, NodeCondition{})
|
|
yyh3675.ElemContainerState(yyj3675)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3675[yyj3675] = NodeCondition{}
|
|
} else {
|
|
yyv3677 := &yyv3675[yyj3675]
|
|
yyv3677.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3675 := 0
|
|
for ; !r.CheckBreak(); yyj3675++ {
|
|
|
|
if yyj3675 >= len(yyv3675) {
|
|
yyv3675 = append(yyv3675, NodeCondition{}) // var yyz3675 NodeCondition
|
|
yyc3675 = true
|
|
}
|
|
yyh3675.ElemContainerState(yyj3675)
|
|
if yyj3675 < len(yyv3675) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3675[yyj3675] = NodeCondition{}
|
|
} else {
|
|
yyv3678 := &yyv3675[yyj3675]
|
|
yyv3678.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3675 < len(yyv3675) {
|
|
yyv3675 = yyv3675[:yyj3675]
|
|
yyc3675 = true
|
|
} else if yyj3675 == 0 && yyv3675 == nil {
|
|
yyv3675 = []NodeCondition{}
|
|
yyc3675 = true
|
|
}
|
|
}
|
|
yyh3675.End()
|
|
if yyc3675 {
|
|
*v = yyv3675
|
|
}
|
|
}
|
|
|
|
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 _, yyv3679 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3680 := &yyv3679
|
|
yy3680.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
|
|
|
|
yyv3681 := *v
|
|
yyh3681, yyl3681 := z.DecSliceHelperStart()
|
|
var yyc3681 bool
|
|
if yyl3681 == 0 {
|
|
if yyv3681 == nil {
|
|
yyv3681 = []NodeAddress{}
|
|
yyc3681 = true
|
|
} else if len(yyv3681) != 0 {
|
|
yyv3681 = yyv3681[:0]
|
|
yyc3681 = true
|
|
}
|
|
} else if yyl3681 > 0 {
|
|
var yyrr3681, yyrl3681 int
|
|
var yyrt3681 bool
|
|
if yyl3681 > cap(yyv3681) {
|
|
|
|
yyrg3681 := len(yyv3681) > 0
|
|
yyv23681 := yyv3681
|
|
yyrl3681, yyrt3681 = z.DecInferLen(yyl3681, z.DecBasicHandle().MaxInitLen, 32)
|
|
if yyrt3681 {
|
|
if yyrl3681 <= cap(yyv3681) {
|
|
yyv3681 = yyv3681[:yyrl3681]
|
|
} else {
|
|
yyv3681 = make([]NodeAddress, yyrl3681)
|
|
}
|
|
} else {
|
|
yyv3681 = make([]NodeAddress, yyrl3681)
|
|
}
|
|
yyc3681 = true
|
|
yyrr3681 = len(yyv3681)
|
|
if yyrg3681 {
|
|
copy(yyv3681, yyv23681)
|
|
}
|
|
} else if yyl3681 != len(yyv3681) {
|
|
yyv3681 = yyv3681[:yyl3681]
|
|
yyc3681 = true
|
|
}
|
|
yyj3681 := 0
|
|
for ; yyj3681 < yyrr3681; yyj3681++ {
|
|
yyh3681.ElemContainerState(yyj3681)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3681[yyj3681] = NodeAddress{}
|
|
} else {
|
|
yyv3682 := &yyv3681[yyj3681]
|
|
yyv3682.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3681 {
|
|
for ; yyj3681 < yyl3681; yyj3681++ {
|
|
yyv3681 = append(yyv3681, NodeAddress{})
|
|
yyh3681.ElemContainerState(yyj3681)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3681[yyj3681] = NodeAddress{}
|
|
} else {
|
|
yyv3683 := &yyv3681[yyj3681]
|
|
yyv3683.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3681 := 0
|
|
for ; !r.CheckBreak(); yyj3681++ {
|
|
|
|
if yyj3681 >= len(yyv3681) {
|
|
yyv3681 = append(yyv3681, NodeAddress{}) // var yyz3681 NodeAddress
|
|
yyc3681 = true
|
|
}
|
|
yyh3681.ElemContainerState(yyj3681)
|
|
if yyj3681 < len(yyv3681) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3681[yyj3681] = NodeAddress{}
|
|
} else {
|
|
yyv3684 := &yyv3681[yyj3681]
|
|
yyv3684.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3681 < len(yyv3681) {
|
|
yyv3681 = yyv3681[:yyj3681]
|
|
yyc3681 = true
|
|
} else if yyj3681 == 0 && yyv3681 == nil {
|
|
yyv3681 = []NodeAddress{}
|
|
yyc3681 = true
|
|
}
|
|
}
|
|
yyh3681.End()
|
|
if yyc3681 {
|
|
*v = yyv3681
|
|
}
|
|
}
|
|
|
|
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 yyk3685, yyv3685 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
yyk3685.CodecEncodeSelf(e)
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3686 := &yyv3685
|
|
yym3687 := z.EncBinary()
|
|
_ = yym3687
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3686) {
|
|
} else if !yym3687 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy3686)
|
|
} else {
|
|
z.EncFallback(yy3686)
|
|
}
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decResourceList(v *ResourceList, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv3688 := *v
|
|
yyl3688 := r.ReadMapStart()
|
|
yybh3688 := z.DecBasicHandle()
|
|
if yyv3688 == nil {
|
|
yyrl3688, _ := z.DecInferLen(yyl3688, yybh3688.MaxInitLen, 40)
|
|
yyv3688 = make(map[ResourceName]pkg3_resource.Quantity, yyrl3688)
|
|
*v = yyv3688
|
|
}
|
|
var yymk3688 ResourceName
|
|
var yymv3688 pkg3_resource.Quantity
|
|
var yymg3688 bool
|
|
if yybh3688.MapValueReset {
|
|
yymg3688 = true
|
|
}
|
|
if yyl3688 > 0 {
|
|
for yyj3688 := 0; yyj3688 < yyl3688; yyj3688++ {
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
if r.TryDecodeAsNil() {
|
|
yymk3688 = ""
|
|
} else {
|
|
yymk3688 = ResourceName(r.DecodeString())
|
|
}
|
|
|
|
if yymg3688 {
|
|
yymv3688 = yyv3688[yymk3688]
|
|
} else {
|
|
yymv3688 = pkg3_resource.Quantity{}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
if r.TryDecodeAsNil() {
|
|
yymv3688 = pkg3_resource.Quantity{}
|
|
} else {
|
|
yyv3690 := &yymv3688
|
|
yym3691 := z.DecBinary()
|
|
_ = yym3691
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3690) {
|
|
} else if !yym3691 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv3690)
|
|
} else {
|
|
z.DecFallback(yyv3690, false)
|
|
}
|
|
}
|
|
|
|
if yyv3688 != nil {
|
|
yyv3688[yymk3688] = yymv3688
|
|
}
|
|
}
|
|
} else if yyl3688 < 0 {
|
|
for yyj3688 := 0; !r.CheckBreak(); yyj3688++ {
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
if r.TryDecodeAsNil() {
|
|
yymk3688 = ""
|
|
} else {
|
|
yymk3688 = ResourceName(r.DecodeString())
|
|
}
|
|
|
|
if yymg3688 {
|
|
yymv3688 = yyv3688[yymk3688]
|
|
} else {
|
|
yymv3688 = pkg3_resource.Quantity{}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
if r.TryDecodeAsNil() {
|
|
yymv3688 = pkg3_resource.Quantity{}
|
|
} else {
|
|
yyv3693 := &yymv3688
|
|
yym3694 := z.DecBinary()
|
|
_ = yym3694
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3693) {
|
|
} else if !yym3694 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv3693)
|
|
} else {
|
|
z.DecFallback(yyv3693, false)
|
|
}
|
|
}
|
|
|
|
if yyv3688 != nil {
|
|
yyv3688[yymk3688] = yymv3688
|
|
}
|
|
}
|
|
} // 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 _, yyv3695 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3696 := &yyv3695
|
|
yy3696.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
|
|
|
|
yyv3697 := *v
|
|
yyh3697, yyl3697 := z.DecSliceHelperStart()
|
|
var yyc3697 bool
|
|
if yyl3697 == 0 {
|
|
if yyv3697 == nil {
|
|
yyv3697 = []Node{}
|
|
yyc3697 = true
|
|
} else if len(yyv3697) != 0 {
|
|
yyv3697 = yyv3697[:0]
|
|
yyc3697 = true
|
|
}
|
|
} else if yyl3697 > 0 {
|
|
var yyrr3697, yyrl3697 int
|
|
var yyrt3697 bool
|
|
if yyl3697 > cap(yyv3697) {
|
|
|
|
yyrg3697 := len(yyv3697) > 0
|
|
yyv23697 := yyv3697
|
|
yyrl3697, yyrt3697 = z.DecInferLen(yyl3697, z.DecBasicHandle().MaxInitLen, 464)
|
|
if yyrt3697 {
|
|
if yyrl3697 <= cap(yyv3697) {
|
|
yyv3697 = yyv3697[:yyrl3697]
|
|
} else {
|
|
yyv3697 = make([]Node, yyrl3697)
|
|
}
|
|
} else {
|
|
yyv3697 = make([]Node, yyrl3697)
|
|
}
|
|
yyc3697 = true
|
|
yyrr3697 = len(yyv3697)
|
|
if yyrg3697 {
|
|
copy(yyv3697, yyv23697)
|
|
}
|
|
} else if yyl3697 != len(yyv3697) {
|
|
yyv3697 = yyv3697[:yyl3697]
|
|
yyc3697 = true
|
|
}
|
|
yyj3697 := 0
|
|
for ; yyj3697 < yyrr3697; yyj3697++ {
|
|
yyh3697.ElemContainerState(yyj3697)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3697[yyj3697] = Node{}
|
|
} else {
|
|
yyv3698 := &yyv3697[yyj3697]
|
|
yyv3698.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3697 {
|
|
for ; yyj3697 < yyl3697; yyj3697++ {
|
|
yyv3697 = append(yyv3697, Node{})
|
|
yyh3697.ElemContainerState(yyj3697)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3697[yyj3697] = Node{}
|
|
} else {
|
|
yyv3699 := &yyv3697[yyj3697]
|
|
yyv3699.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3697 := 0
|
|
for ; !r.CheckBreak(); yyj3697++ {
|
|
|
|
if yyj3697 >= len(yyv3697) {
|
|
yyv3697 = append(yyv3697, Node{}) // var yyz3697 Node
|
|
yyc3697 = true
|
|
}
|
|
yyh3697.ElemContainerState(yyj3697)
|
|
if yyj3697 < len(yyv3697) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3697[yyj3697] = Node{}
|
|
} else {
|
|
yyv3700 := &yyv3697[yyj3697]
|
|
yyv3700.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3697 < len(yyv3697) {
|
|
yyv3697 = yyv3697[:yyj3697]
|
|
yyc3697 = true
|
|
} else if yyj3697 == 0 && yyv3697 == nil {
|
|
yyv3697 = []Node{}
|
|
yyc3697 = true
|
|
}
|
|
}
|
|
yyh3697.End()
|
|
if yyc3697 {
|
|
*v = yyv3697
|
|
}
|
|
}
|
|
|
|
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 _, yyv3701 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yyv3701.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
|
|
|
|
yyv3702 := *v
|
|
yyh3702, yyl3702 := z.DecSliceHelperStart()
|
|
var yyc3702 bool
|
|
if yyl3702 == 0 {
|
|
if yyv3702 == nil {
|
|
yyv3702 = []FinalizerName{}
|
|
yyc3702 = true
|
|
} else if len(yyv3702) != 0 {
|
|
yyv3702 = yyv3702[:0]
|
|
yyc3702 = true
|
|
}
|
|
} else if yyl3702 > 0 {
|
|
var yyrr3702, yyrl3702 int
|
|
var yyrt3702 bool
|
|
if yyl3702 > cap(yyv3702) {
|
|
|
|
yyrl3702, yyrt3702 = z.DecInferLen(yyl3702, z.DecBasicHandle().MaxInitLen, 16)
|
|
if yyrt3702 {
|
|
if yyrl3702 <= cap(yyv3702) {
|
|
yyv3702 = yyv3702[:yyrl3702]
|
|
} else {
|
|
yyv3702 = make([]FinalizerName, yyrl3702)
|
|
}
|
|
} else {
|
|
yyv3702 = make([]FinalizerName, yyrl3702)
|
|
}
|
|
yyc3702 = true
|
|
yyrr3702 = len(yyv3702)
|
|
} else if yyl3702 != len(yyv3702) {
|
|
yyv3702 = yyv3702[:yyl3702]
|
|
yyc3702 = true
|
|
}
|
|
yyj3702 := 0
|
|
for ; yyj3702 < yyrr3702; yyj3702++ {
|
|
yyh3702.ElemContainerState(yyj3702)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3702[yyj3702] = ""
|
|
} else {
|
|
yyv3702[yyj3702] = FinalizerName(r.DecodeString())
|
|
}
|
|
|
|
}
|
|
if yyrt3702 {
|
|
for ; yyj3702 < yyl3702; yyj3702++ {
|
|
yyv3702 = append(yyv3702, "")
|
|
yyh3702.ElemContainerState(yyj3702)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3702[yyj3702] = ""
|
|
} else {
|
|
yyv3702[yyj3702] = FinalizerName(r.DecodeString())
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3702 := 0
|
|
for ; !r.CheckBreak(); yyj3702++ {
|
|
|
|
if yyj3702 >= len(yyv3702) {
|
|
yyv3702 = append(yyv3702, "") // var yyz3702 FinalizerName
|
|
yyc3702 = true
|
|
}
|
|
yyh3702.ElemContainerState(yyj3702)
|
|
if yyj3702 < len(yyv3702) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3702[yyj3702] = ""
|
|
} else {
|
|
yyv3702[yyj3702] = FinalizerName(r.DecodeString())
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3702 < len(yyv3702) {
|
|
yyv3702 = yyv3702[:yyj3702]
|
|
yyc3702 = true
|
|
} else if yyj3702 == 0 && yyv3702 == nil {
|
|
yyv3702 = []FinalizerName{}
|
|
yyc3702 = true
|
|
}
|
|
}
|
|
yyh3702.End()
|
|
if yyc3702 {
|
|
*v = yyv3702
|
|
}
|
|
}
|
|
|
|
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 _, yyv3706 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3707 := &yyv3706
|
|
yy3707.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
|
|
|
|
yyv3708 := *v
|
|
yyh3708, yyl3708 := z.DecSliceHelperStart()
|
|
var yyc3708 bool
|
|
if yyl3708 == 0 {
|
|
if yyv3708 == nil {
|
|
yyv3708 = []Namespace{}
|
|
yyc3708 = true
|
|
} else if len(yyv3708) != 0 {
|
|
yyv3708 = yyv3708[:0]
|
|
yyc3708 = true
|
|
}
|
|
} else if yyl3708 > 0 {
|
|
var yyrr3708, yyrl3708 int
|
|
var yyrt3708 bool
|
|
if yyl3708 > cap(yyv3708) {
|
|
|
|
yyrg3708 := len(yyv3708) > 0
|
|
yyv23708 := yyv3708
|
|
yyrl3708, yyrt3708 = z.DecInferLen(yyl3708, z.DecBasicHandle().MaxInitLen, 232)
|
|
if yyrt3708 {
|
|
if yyrl3708 <= cap(yyv3708) {
|
|
yyv3708 = yyv3708[:yyrl3708]
|
|
} else {
|
|
yyv3708 = make([]Namespace, yyrl3708)
|
|
}
|
|
} else {
|
|
yyv3708 = make([]Namespace, yyrl3708)
|
|
}
|
|
yyc3708 = true
|
|
yyrr3708 = len(yyv3708)
|
|
if yyrg3708 {
|
|
copy(yyv3708, yyv23708)
|
|
}
|
|
} else if yyl3708 != len(yyv3708) {
|
|
yyv3708 = yyv3708[:yyl3708]
|
|
yyc3708 = true
|
|
}
|
|
yyj3708 := 0
|
|
for ; yyj3708 < yyrr3708; yyj3708++ {
|
|
yyh3708.ElemContainerState(yyj3708)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3708[yyj3708] = Namespace{}
|
|
} else {
|
|
yyv3709 := &yyv3708[yyj3708]
|
|
yyv3709.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3708 {
|
|
for ; yyj3708 < yyl3708; yyj3708++ {
|
|
yyv3708 = append(yyv3708, Namespace{})
|
|
yyh3708.ElemContainerState(yyj3708)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3708[yyj3708] = Namespace{}
|
|
} else {
|
|
yyv3710 := &yyv3708[yyj3708]
|
|
yyv3710.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3708 := 0
|
|
for ; !r.CheckBreak(); yyj3708++ {
|
|
|
|
if yyj3708 >= len(yyv3708) {
|
|
yyv3708 = append(yyv3708, Namespace{}) // var yyz3708 Namespace
|
|
yyc3708 = true
|
|
}
|
|
yyh3708.ElemContainerState(yyj3708)
|
|
if yyj3708 < len(yyv3708) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3708[yyj3708] = Namespace{}
|
|
} else {
|
|
yyv3711 := &yyv3708[yyj3708]
|
|
yyv3711.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3708 < len(yyv3708) {
|
|
yyv3708 = yyv3708[:yyj3708]
|
|
yyc3708 = true
|
|
} else if yyj3708 == 0 && yyv3708 == nil {
|
|
yyv3708 = []Namespace{}
|
|
yyc3708 = true
|
|
}
|
|
}
|
|
yyh3708.End()
|
|
if yyc3708 {
|
|
*v = yyv3708
|
|
}
|
|
}
|
|
|
|
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 _, yyv3712 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3713 := &yyv3712
|
|
yy3713.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
|
|
|
|
yyv3714 := *v
|
|
yyh3714, yyl3714 := z.DecSliceHelperStart()
|
|
var yyc3714 bool
|
|
if yyl3714 == 0 {
|
|
if yyv3714 == nil {
|
|
yyv3714 = []Event{}
|
|
yyc3714 = true
|
|
} else if len(yyv3714) != 0 {
|
|
yyv3714 = yyv3714[:0]
|
|
yyc3714 = true
|
|
}
|
|
} else if yyl3714 > 0 {
|
|
var yyrr3714, yyrl3714 int
|
|
var yyrt3714 bool
|
|
if yyl3714 > cap(yyv3714) {
|
|
|
|
yyrg3714 := len(yyv3714) > 0
|
|
yyv23714 := yyv3714
|
|
yyrl3714, yyrt3714 = z.DecInferLen(yyl3714, z.DecBasicHandle().MaxInitLen, 440)
|
|
if yyrt3714 {
|
|
if yyrl3714 <= cap(yyv3714) {
|
|
yyv3714 = yyv3714[:yyrl3714]
|
|
} else {
|
|
yyv3714 = make([]Event, yyrl3714)
|
|
}
|
|
} else {
|
|
yyv3714 = make([]Event, yyrl3714)
|
|
}
|
|
yyc3714 = true
|
|
yyrr3714 = len(yyv3714)
|
|
if yyrg3714 {
|
|
copy(yyv3714, yyv23714)
|
|
}
|
|
} else if yyl3714 != len(yyv3714) {
|
|
yyv3714 = yyv3714[:yyl3714]
|
|
yyc3714 = true
|
|
}
|
|
yyj3714 := 0
|
|
for ; yyj3714 < yyrr3714; yyj3714++ {
|
|
yyh3714.ElemContainerState(yyj3714)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3714[yyj3714] = Event{}
|
|
} else {
|
|
yyv3715 := &yyv3714[yyj3714]
|
|
yyv3715.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3714 {
|
|
for ; yyj3714 < yyl3714; yyj3714++ {
|
|
yyv3714 = append(yyv3714, Event{})
|
|
yyh3714.ElemContainerState(yyj3714)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3714[yyj3714] = Event{}
|
|
} else {
|
|
yyv3716 := &yyv3714[yyj3714]
|
|
yyv3716.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3714 := 0
|
|
for ; !r.CheckBreak(); yyj3714++ {
|
|
|
|
if yyj3714 >= len(yyv3714) {
|
|
yyv3714 = append(yyv3714, Event{}) // var yyz3714 Event
|
|
yyc3714 = true
|
|
}
|
|
yyh3714.ElemContainerState(yyj3714)
|
|
if yyj3714 < len(yyv3714) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3714[yyj3714] = Event{}
|
|
} else {
|
|
yyv3717 := &yyv3714[yyj3714]
|
|
yyv3717.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3714 < len(yyv3714) {
|
|
yyv3714 = yyv3714[:yyj3714]
|
|
yyc3714 = true
|
|
} else if yyj3714 == 0 && yyv3714 == nil {
|
|
yyv3714 = []Event{}
|
|
yyc3714 = true
|
|
}
|
|
}
|
|
yyh3714.End()
|
|
if yyc3714 {
|
|
*v = yyv3714
|
|
}
|
|
}
|
|
|
|
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 _, yyv3718 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyv3718 == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3719 := z.EncBinary()
|
|
_ = yym3719
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yyv3718) {
|
|
} else {
|
|
z.EncFallback(yyv3718)
|
|
}
|
|
}
|
|
}
|
|
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
|
|
|
|
yyv3720 := *v
|
|
yyh3720, yyl3720 := z.DecSliceHelperStart()
|
|
var yyc3720 bool
|
|
if yyl3720 == 0 {
|
|
if yyv3720 == nil {
|
|
yyv3720 = []pkg8_runtime.Object{}
|
|
yyc3720 = true
|
|
} else if len(yyv3720) != 0 {
|
|
yyv3720 = yyv3720[:0]
|
|
yyc3720 = true
|
|
}
|
|
} else if yyl3720 > 0 {
|
|
var yyrr3720, yyrl3720 int
|
|
var yyrt3720 bool
|
|
if yyl3720 > cap(yyv3720) {
|
|
|
|
yyrg3720 := len(yyv3720) > 0
|
|
yyv23720 := yyv3720
|
|
yyrl3720, yyrt3720 = z.DecInferLen(yyl3720, z.DecBasicHandle().MaxInitLen, 16)
|
|
if yyrt3720 {
|
|
if yyrl3720 <= cap(yyv3720) {
|
|
yyv3720 = yyv3720[:yyrl3720]
|
|
} else {
|
|
yyv3720 = make([]pkg8_runtime.Object, yyrl3720)
|
|
}
|
|
} else {
|
|
yyv3720 = make([]pkg8_runtime.Object, yyrl3720)
|
|
}
|
|
yyc3720 = true
|
|
yyrr3720 = len(yyv3720)
|
|
if yyrg3720 {
|
|
copy(yyv3720, yyv23720)
|
|
}
|
|
} else if yyl3720 != len(yyv3720) {
|
|
yyv3720 = yyv3720[:yyl3720]
|
|
yyc3720 = true
|
|
}
|
|
yyj3720 := 0
|
|
for ; yyj3720 < yyrr3720; yyj3720++ {
|
|
yyh3720.ElemContainerState(yyj3720)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3720[yyj3720] = nil
|
|
} else {
|
|
yyv3721 := &yyv3720[yyj3720]
|
|
yym3722 := z.DecBinary()
|
|
_ = yym3722
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3721) {
|
|
} else {
|
|
z.DecFallback(yyv3721, true)
|
|
}
|
|
}
|
|
|
|
}
|
|
if yyrt3720 {
|
|
for ; yyj3720 < yyl3720; yyj3720++ {
|
|
yyv3720 = append(yyv3720, nil)
|
|
yyh3720.ElemContainerState(yyj3720)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3720[yyj3720] = nil
|
|
} else {
|
|
yyv3723 := &yyv3720[yyj3720]
|
|
yym3724 := z.DecBinary()
|
|
_ = yym3724
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3723) {
|
|
} else {
|
|
z.DecFallback(yyv3723, true)
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3720 := 0
|
|
for ; !r.CheckBreak(); yyj3720++ {
|
|
|
|
if yyj3720 >= len(yyv3720) {
|
|
yyv3720 = append(yyv3720, nil) // var yyz3720 pkg8_runtime.Object
|
|
yyc3720 = true
|
|
}
|
|
yyh3720.ElemContainerState(yyj3720)
|
|
if yyj3720 < len(yyv3720) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3720[yyj3720] = nil
|
|
} else {
|
|
yyv3725 := &yyv3720[yyj3720]
|
|
yym3726 := z.DecBinary()
|
|
_ = yym3726
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3725) {
|
|
} else {
|
|
z.DecFallback(yyv3725, true)
|
|
}
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3720 < len(yyv3720) {
|
|
yyv3720 = yyv3720[:yyj3720]
|
|
yyc3720 = true
|
|
} else if yyj3720 == 0 && yyv3720 == nil {
|
|
yyv3720 = []pkg8_runtime.Object{}
|
|
yyc3720 = true
|
|
}
|
|
}
|
|
yyh3720.End()
|
|
if yyc3720 {
|
|
*v = yyv3720
|
|
}
|
|
}
|
|
|
|
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 _, yyv3727 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3728 := &yyv3727
|
|
yy3728.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
|
|
|
|
yyv3729 := *v
|
|
yyh3729, yyl3729 := z.DecSliceHelperStart()
|
|
var yyc3729 bool
|
|
if yyl3729 == 0 {
|
|
if yyv3729 == nil {
|
|
yyv3729 = []LimitRangeItem{}
|
|
yyc3729 = true
|
|
} else if len(yyv3729) != 0 {
|
|
yyv3729 = yyv3729[:0]
|
|
yyc3729 = true
|
|
}
|
|
} else if yyl3729 > 0 {
|
|
var yyrr3729, yyrl3729 int
|
|
var yyrt3729 bool
|
|
if yyl3729 > cap(yyv3729) {
|
|
|
|
yyrg3729 := len(yyv3729) > 0
|
|
yyv23729 := yyv3729
|
|
yyrl3729, yyrt3729 = z.DecInferLen(yyl3729, z.DecBasicHandle().MaxInitLen, 56)
|
|
if yyrt3729 {
|
|
if yyrl3729 <= cap(yyv3729) {
|
|
yyv3729 = yyv3729[:yyrl3729]
|
|
} else {
|
|
yyv3729 = make([]LimitRangeItem, yyrl3729)
|
|
}
|
|
} else {
|
|
yyv3729 = make([]LimitRangeItem, yyrl3729)
|
|
}
|
|
yyc3729 = true
|
|
yyrr3729 = len(yyv3729)
|
|
if yyrg3729 {
|
|
copy(yyv3729, yyv23729)
|
|
}
|
|
} else if yyl3729 != len(yyv3729) {
|
|
yyv3729 = yyv3729[:yyl3729]
|
|
yyc3729 = true
|
|
}
|
|
yyj3729 := 0
|
|
for ; yyj3729 < yyrr3729; yyj3729++ {
|
|
yyh3729.ElemContainerState(yyj3729)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3729[yyj3729] = LimitRangeItem{}
|
|
} else {
|
|
yyv3730 := &yyv3729[yyj3729]
|
|
yyv3730.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3729 {
|
|
for ; yyj3729 < yyl3729; yyj3729++ {
|
|
yyv3729 = append(yyv3729, LimitRangeItem{})
|
|
yyh3729.ElemContainerState(yyj3729)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3729[yyj3729] = LimitRangeItem{}
|
|
} else {
|
|
yyv3731 := &yyv3729[yyj3729]
|
|
yyv3731.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3729 := 0
|
|
for ; !r.CheckBreak(); yyj3729++ {
|
|
|
|
if yyj3729 >= len(yyv3729) {
|
|
yyv3729 = append(yyv3729, LimitRangeItem{}) // var yyz3729 LimitRangeItem
|
|
yyc3729 = true
|
|
}
|
|
yyh3729.ElemContainerState(yyj3729)
|
|
if yyj3729 < len(yyv3729) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3729[yyj3729] = LimitRangeItem{}
|
|
} else {
|
|
yyv3732 := &yyv3729[yyj3729]
|
|
yyv3732.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3729 < len(yyv3729) {
|
|
yyv3729 = yyv3729[:yyj3729]
|
|
yyc3729 = true
|
|
} else if yyj3729 == 0 && yyv3729 == nil {
|
|
yyv3729 = []LimitRangeItem{}
|
|
yyc3729 = true
|
|
}
|
|
}
|
|
yyh3729.End()
|
|
if yyc3729 {
|
|
*v = yyv3729
|
|
}
|
|
}
|
|
|
|
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 _, yyv3733 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3734 := &yyv3733
|
|
yy3734.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
|
|
|
|
yyv3735 := *v
|
|
yyh3735, yyl3735 := z.DecSliceHelperStart()
|
|
var yyc3735 bool
|
|
if yyl3735 == 0 {
|
|
if yyv3735 == nil {
|
|
yyv3735 = []LimitRange{}
|
|
yyc3735 = true
|
|
} else if len(yyv3735) != 0 {
|
|
yyv3735 = yyv3735[:0]
|
|
yyc3735 = true
|
|
}
|
|
} else if yyl3735 > 0 {
|
|
var yyrr3735, yyrl3735 int
|
|
var yyrt3735 bool
|
|
if yyl3735 > cap(yyv3735) {
|
|
|
|
yyrg3735 := len(yyv3735) > 0
|
|
yyv23735 := yyv3735
|
|
yyrl3735, yyrt3735 = z.DecInferLen(yyl3735, z.DecBasicHandle().MaxInitLen, 216)
|
|
if yyrt3735 {
|
|
if yyrl3735 <= cap(yyv3735) {
|
|
yyv3735 = yyv3735[:yyrl3735]
|
|
} else {
|
|
yyv3735 = make([]LimitRange, yyrl3735)
|
|
}
|
|
} else {
|
|
yyv3735 = make([]LimitRange, yyrl3735)
|
|
}
|
|
yyc3735 = true
|
|
yyrr3735 = len(yyv3735)
|
|
if yyrg3735 {
|
|
copy(yyv3735, yyv23735)
|
|
}
|
|
} else if yyl3735 != len(yyv3735) {
|
|
yyv3735 = yyv3735[:yyl3735]
|
|
yyc3735 = true
|
|
}
|
|
yyj3735 := 0
|
|
for ; yyj3735 < yyrr3735; yyj3735++ {
|
|
yyh3735.ElemContainerState(yyj3735)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3735[yyj3735] = LimitRange{}
|
|
} else {
|
|
yyv3736 := &yyv3735[yyj3735]
|
|
yyv3736.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3735 {
|
|
for ; yyj3735 < yyl3735; yyj3735++ {
|
|
yyv3735 = append(yyv3735, LimitRange{})
|
|
yyh3735.ElemContainerState(yyj3735)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3735[yyj3735] = LimitRange{}
|
|
} else {
|
|
yyv3737 := &yyv3735[yyj3735]
|
|
yyv3737.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3735 := 0
|
|
for ; !r.CheckBreak(); yyj3735++ {
|
|
|
|
if yyj3735 >= len(yyv3735) {
|
|
yyv3735 = append(yyv3735, LimitRange{}) // var yyz3735 LimitRange
|
|
yyc3735 = true
|
|
}
|
|
yyh3735.ElemContainerState(yyj3735)
|
|
if yyj3735 < len(yyv3735) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3735[yyj3735] = LimitRange{}
|
|
} else {
|
|
yyv3738 := &yyv3735[yyj3735]
|
|
yyv3738.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3735 < len(yyv3735) {
|
|
yyv3735 = yyv3735[:yyj3735]
|
|
yyc3735 = true
|
|
} else if yyj3735 == 0 && yyv3735 == nil {
|
|
yyv3735 = []LimitRange{}
|
|
yyc3735 = true
|
|
}
|
|
}
|
|
yyh3735.End()
|
|
if yyc3735 {
|
|
*v = yyv3735
|
|
}
|
|
}
|
|
|
|
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 _, yyv3739 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3740 := &yyv3739
|
|
yy3740.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
|
|
|
|
yyv3741 := *v
|
|
yyh3741, yyl3741 := z.DecSliceHelperStart()
|
|
var yyc3741 bool
|
|
if yyl3741 == 0 {
|
|
if yyv3741 == nil {
|
|
yyv3741 = []ResourceQuota{}
|
|
yyc3741 = true
|
|
} else if len(yyv3741) != 0 {
|
|
yyv3741 = yyv3741[:0]
|
|
yyc3741 = true
|
|
}
|
|
} else if yyl3741 > 0 {
|
|
var yyrr3741, yyrl3741 int
|
|
var yyrt3741 bool
|
|
if yyl3741 > cap(yyv3741) {
|
|
|
|
yyrg3741 := len(yyv3741) > 0
|
|
yyv23741 := yyv3741
|
|
yyrl3741, yyrt3741 = z.DecInferLen(yyl3741, z.DecBasicHandle().MaxInitLen, 216)
|
|
if yyrt3741 {
|
|
if yyrl3741 <= cap(yyv3741) {
|
|
yyv3741 = yyv3741[:yyrl3741]
|
|
} else {
|
|
yyv3741 = make([]ResourceQuota, yyrl3741)
|
|
}
|
|
} else {
|
|
yyv3741 = make([]ResourceQuota, yyrl3741)
|
|
}
|
|
yyc3741 = true
|
|
yyrr3741 = len(yyv3741)
|
|
if yyrg3741 {
|
|
copy(yyv3741, yyv23741)
|
|
}
|
|
} else if yyl3741 != len(yyv3741) {
|
|
yyv3741 = yyv3741[:yyl3741]
|
|
yyc3741 = true
|
|
}
|
|
yyj3741 := 0
|
|
for ; yyj3741 < yyrr3741; yyj3741++ {
|
|
yyh3741.ElemContainerState(yyj3741)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3741[yyj3741] = ResourceQuota{}
|
|
} else {
|
|
yyv3742 := &yyv3741[yyj3741]
|
|
yyv3742.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3741 {
|
|
for ; yyj3741 < yyl3741; yyj3741++ {
|
|
yyv3741 = append(yyv3741, ResourceQuota{})
|
|
yyh3741.ElemContainerState(yyj3741)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3741[yyj3741] = ResourceQuota{}
|
|
} else {
|
|
yyv3743 := &yyv3741[yyj3741]
|
|
yyv3743.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3741 := 0
|
|
for ; !r.CheckBreak(); yyj3741++ {
|
|
|
|
if yyj3741 >= len(yyv3741) {
|
|
yyv3741 = append(yyv3741, ResourceQuota{}) // var yyz3741 ResourceQuota
|
|
yyc3741 = true
|
|
}
|
|
yyh3741.ElemContainerState(yyj3741)
|
|
if yyj3741 < len(yyv3741) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3741[yyj3741] = ResourceQuota{}
|
|
} else {
|
|
yyv3744 := &yyv3741[yyj3741]
|
|
yyv3744.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3741 < len(yyv3741) {
|
|
yyv3741 = yyv3741[:yyj3741]
|
|
yyc3741 = true
|
|
} else if yyj3741 == 0 && yyv3741 == nil {
|
|
yyv3741 = []ResourceQuota{}
|
|
yyc3741 = true
|
|
}
|
|
}
|
|
yyh3741.End()
|
|
if yyc3741 {
|
|
*v = yyv3741
|
|
}
|
|
}
|
|
|
|
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 yyk3745, yyv3745 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
yym3746 := z.EncBinary()
|
|
_ = yym3746
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(yyk3745))
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyv3745 == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3747 := z.EncBinary()
|
|
_ = yym3747
|
|
if false {
|
|
} else {
|
|
r.EncodeStringBytes(codecSelferC_RAW1234, []byte(yyv3745))
|
|
}
|
|
}
|
|
}
|
|
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
|
|
|
|
yyv3748 := *v
|
|
yyl3748 := r.ReadMapStart()
|
|
yybh3748 := z.DecBasicHandle()
|
|
if yyv3748 == nil {
|
|
yyrl3748, _ := z.DecInferLen(yyl3748, yybh3748.MaxInitLen, 40)
|
|
yyv3748 = make(map[string][]uint8, yyrl3748)
|
|
*v = yyv3748
|
|
}
|
|
var yymk3748 string
|
|
var yymv3748 []uint8
|
|
var yymg3748 bool
|
|
if yybh3748.MapValueReset {
|
|
yymg3748 = true
|
|
}
|
|
if yyl3748 > 0 {
|
|
for yyj3748 := 0; yyj3748 < yyl3748; yyj3748++ {
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
if r.TryDecodeAsNil() {
|
|
yymk3748 = ""
|
|
} else {
|
|
yymk3748 = string(r.DecodeString())
|
|
}
|
|
|
|
if yymg3748 {
|
|
yymv3748 = yyv3748[yymk3748]
|
|
} else {
|
|
yymv3748 = nil
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
if r.TryDecodeAsNil() {
|
|
yymv3748 = nil
|
|
} else {
|
|
yyv3750 := &yymv3748
|
|
yym3751 := z.DecBinary()
|
|
_ = yym3751
|
|
if false {
|
|
} else {
|
|
*yyv3750 = r.DecodeBytes(*(*[]byte)(yyv3750), false, false)
|
|
}
|
|
}
|
|
|
|
if yyv3748 != nil {
|
|
yyv3748[yymk3748] = yymv3748
|
|
}
|
|
}
|
|
} else if yyl3748 < 0 {
|
|
for yyj3748 := 0; !r.CheckBreak(); yyj3748++ {
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
if r.TryDecodeAsNil() {
|
|
yymk3748 = ""
|
|
} else {
|
|
yymk3748 = string(r.DecodeString())
|
|
}
|
|
|
|
if yymg3748 {
|
|
yymv3748 = yyv3748[yymk3748]
|
|
} else {
|
|
yymv3748 = nil
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
if r.TryDecodeAsNil() {
|
|
yymv3748 = nil
|
|
} else {
|
|
yyv3753 := &yymv3748
|
|
yym3754 := z.DecBinary()
|
|
_ = yym3754
|
|
if false {
|
|
} else {
|
|
*yyv3753 = r.DecodeBytes(*(*[]byte)(yyv3753), false, false)
|
|
}
|
|
}
|
|
|
|
if yyv3748 != nil {
|
|
yyv3748[yymk3748] = yymv3748
|
|
}
|
|
}
|
|
} // 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 _, yyv3755 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3756 := &yyv3755
|
|
yy3756.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
|
|
|
|
yyv3757 := *v
|
|
yyh3757, yyl3757 := z.DecSliceHelperStart()
|
|
var yyc3757 bool
|
|
if yyl3757 == 0 {
|
|
if yyv3757 == nil {
|
|
yyv3757 = []Secret{}
|
|
yyc3757 = true
|
|
} else if len(yyv3757) != 0 {
|
|
yyv3757 = yyv3757[:0]
|
|
yyc3757 = true
|
|
}
|
|
} else if yyl3757 > 0 {
|
|
var yyrr3757, yyrl3757 int
|
|
var yyrt3757 bool
|
|
if yyl3757 > cap(yyv3757) {
|
|
|
|
yyrg3757 := len(yyv3757) > 0
|
|
yyv23757 := yyv3757
|
|
yyrl3757, yyrt3757 = z.DecInferLen(yyl3757, z.DecBasicHandle().MaxInitLen, 216)
|
|
if yyrt3757 {
|
|
if yyrl3757 <= cap(yyv3757) {
|
|
yyv3757 = yyv3757[:yyrl3757]
|
|
} else {
|
|
yyv3757 = make([]Secret, yyrl3757)
|
|
}
|
|
} else {
|
|
yyv3757 = make([]Secret, yyrl3757)
|
|
}
|
|
yyc3757 = true
|
|
yyrr3757 = len(yyv3757)
|
|
if yyrg3757 {
|
|
copy(yyv3757, yyv23757)
|
|
}
|
|
} else if yyl3757 != len(yyv3757) {
|
|
yyv3757 = yyv3757[:yyl3757]
|
|
yyc3757 = true
|
|
}
|
|
yyj3757 := 0
|
|
for ; yyj3757 < yyrr3757; yyj3757++ {
|
|
yyh3757.ElemContainerState(yyj3757)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3757[yyj3757] = Secret{}
|
|
} else {
|
|
yyv3758 := &yyv3757[yyj3757]
|
|
yyv3758.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3757 {
|
|
for ; yyj3757 < yyl3757; yyj3757++ {
|
|
yyv3757 = append(yyv3757, Secret{})
|
|
yyh3757.ElemContainerState(yyj3757)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3757[yyj3757] = Secret{}
|
|
} else {
|
|
yyv3759 := &yyv3757[yyj3757]
|
|
yyv3759.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3757 := 0
|
|
for ; !r.CheckBreak(); yyj3757++ {
|
|
|
|
if yyj3757 >= len(yyv3757) {
|
|
yyv3757 = append(yyv3757, Secret{}) // var yyz3757 Secret
|
|
yyc3757 = true
|
|
}
|
|
yyh3757.ElemContainerState(yyj3757)
|
|
if yyj3757 < len(yyv3757) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3757[yyj3757] = Secret{}
|
|
} else {
|
|
yyv3760 := &yyv3757[yyj3757]
|
|
yyv3760.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3757 < len(yyv3757) {
|
|
yyv3757 = yyv3757[:yyj3757]
|
|
yyc3757 = true
|
|
} else if yyj3757 == 0 && yyv3757 == nil {
|
|
yyv3757 = []Secret{}
|
|
yyc3757 = true
|
|
}
|
|
}
|
|
yyh3757.End()
|
|
if yyc3757 {
|
|
*v = yyv3757
|
|
}
|
|
}
|
|
|
|
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 _, yyv3761 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3762 := &yyv3761
|
|
yy3762.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
|
|
|
|
yyv3763 := *v
|
|
yyh3763, yyl3763 := z.DecSliceHelperStart()
|
|
var yyc3763 bool
|
|
if yyl3763 == 0 {
|
|
if yyv3763 == nil {
|
|
yyv3763 = []ComponentCondition{}
|
|
yyc3763 = true
|
|
} else if len(yyv3763) != 0 {
|
|
yyv3763 = yyv3763[:0]
|
|
yyc3763 = true
|
|
}
|
|
} else if yyl3763 > 0 {
|
|
var yyrr3763, yyrl3763 int
|
|
var yyrt3763 bool
|
|
if yyl3763 > cap(yyv3763) {
|
|
|
|
yyrg3763 := len(yyv3763) > 0
|
|
yyv23763 := yyv3763
|
|
yyrl3763, yyrt3763 = z.DecInferLen(yyl3763, z.DecBasicHandle().MaxInitLen, 64)
|
|
if yyrt3763 {
|
|
if yyrl3763 <= cap(yyv3763) {
|
|
yyv3763 = yyv3763[:yyrl3763]
|
|
} else {
|
|
yyv3763 = make([]ComponentCondition, yyrl3763)
|
|
}
|
|
} else {
|
|
yyv3763 = make([]ComponentCondition, yyrl3763)
|
|
}
|
|
yyc3763 = true
|
|
yyrr3763 = len(yyv3763)
|
|
if yyrg3763 {
|
|
copy(yyv3763, yyv23763)
|
|
}
|
|
} else if yyl3763 != len(yyv3763) {
|
|
yyv3763 = yyv3763[:yyl3763]
|
|
yyc3763 = true
|
|
}
|
|
yyj3763 := 0
|
|
for ; yyj3763 < yyrr3763; yyj3763++ {
|
|
yyh3763.ElemContainerState(yyj3763)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3763[yyj3763] = ComponentCondition{}
|
|
} else {
|
|
yyv3764 := &yyv3763[yyj3763]
|
|
yyv3764.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3763 {
|
|
for ; yyj3763 < yyl3763; yyj3763++ {
|
|
yyv3763 = append(yyv3763, ComponentCondition{})
|
|
yyh3763.ElemContainerState(yyj3763)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3763[yyj3763] = ComponentCondition{}
|
|
} else {
|
|
yyv3765 := &yyv3763[yyj3763]
|
|
yyv3765.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3763 := 0
|
|
for ; !r.CheckBreak(); yyj3763++ {
|
|
|
|
if yyj3763 >= len(yyv3763) {
|
|
yyv3763 = append(yyv3763, ComponentCondition{}) // var yyz3763 ComponentCondition
|
|
yyc3763 = true
|
|
}
|
|
yyh3763.ElemContainerState(yyj3763)
|
|
if yyj3763 < len(yyv3763) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3763[yyj3763] = ComponentCondition{}
|
|
} else {
|
|
yyv3766 := &yyv3763[yyj3763]
|
|
yyv3766.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3763 < len(yyv3763) {
|
|
yyv3763 = yyv3763[:yyj3763]
|
|
yyc3763 = true
|
|
} else if yyj3763 == 0 && yyv3763 == nil {
|
|
yyv3763 = []ComponentCondition{}
|
|
yyc3763 = true
|
|
}
|
|
}
|
|
yyh3763.End()
|
|
if yyc3763 {
|
|
*v = yyv3763
|
|
}
|
|
}
|
|
|
|
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 _, yyv3767 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3768 := &yyv3767
|
|
yy3768.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
|
|
|
|
yyv3769 := *v
|
|
yyh3769, yyl3769 := z.DecSliceHelperStart()
|
|
var yyc3769 bool
|
|
if yyl3769 == 0 {
|
|
if yyv3769 == nil {
|
|
yyv3769 = []ComponentStatus{}
|
|
yyc3769 = true
|
|
} else if len(yyv3769) != 0 {
|
|
yyv3769 = yyv3769[:0]
|
|
yyc3769 = true
|
|
}
|
|
} else if yyl3769 > 0 {
|
|
var yyrr3769, yyrl3769 int
|
|
var yyrt3769 bool
|
|
if yyl3769 > cap(yyv3769) {
|
|
|
|
yyrg3769 := len(yyv3769) > 0
|
|
yyv23769 := yyv3769
|
|
yyrl3769, yyrt3769 = z.DecInferLen(yyl3769, z.DecBasicHandle().MaxInitLen, 216)
|
|
if yyrt3769 {
|
|
if yyrl3769 <= cap(yyv3769) {
|
|
yyv3769 = yyv3769[:yyrl3769]
|
|
} else {
|
|
yyv3769 = make([]ComponentStatus, yyrl3769)
|
|
}
|
|
} else {
|
|
yyv3769 = make([]ComponentStatus, yyrl3769)
|
|
}
|
|
yyc3769 = true
|
|
yyrr3769 = len(yyv3769)
|
|
if yyrg3769 {
|
|
copy(yyv3769, yyv23769)
|
|
}
|
|
} else if yyl3769 != len(yyv3769) {
|
|
yyv3769 = yyv3769[:yyl3769]
|
|
yyc3769 = true
|
|
}
|
|
yyj3769 := 0
|
|
for ; yyj3769 < yyrr3769; yyj3769++ {
|
|
yyh3769.ElemContainerState(yyj3769)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3769[yyj3769] = ComponentStatus{}
|
|
} else {
|
|
yyv3770 := &yyv3769[yyj3769]
|
|
yyv3770.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt3769 {
|
|
for ; yyj3769 < yyl3769; yyj3769++ {
|
|
yyv3769 = append(yyv3769, ComponentStatus{})
|
|
yyh3769.ElemContainerState(yyj3769)
|
|
if r.TryDecodeAsNil() {
|
|
yyv3769[yyj3769] = ComponentStatus{}
|
|
} else {
|
|
yyv3771 := &yyv3769[yyj3769]
|
|
yyv3771.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj3769 := 0
|
|
for ; !r.CheckBreak(); yyj3769++ {
|
|
|
|
if yyj3769 >= len(yyv3769) {
|
|
yyv3769 = append(yyv3769, ComponentStatus{}) // var yyz3769 ComponentStatus
|
|
yyc3769 = true
|
|
}
|
|
yyh3769.ElemContainerState(yyj3769)
|
|
if yyj3769 < len(yyv3769) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv3769[yyj3769] = ComponentStatus{}
|
|
} else {
|
|
yyv3772 := &yyv3769[yyj3769]
|
|
yyv3772.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj3769 < len(yyv3769) {
|
|
yyv3769 = yyv3769[:yyj3769]
|
|
yyc3769 = true
|
|
} else if yyj3769 == 0 && yyv3769 == nil {
|
|
yyv3769 = []ComponentStatus{}
|
|
yyc3769 = true
|
|
}
|
|
}
|
|
yyh3769.End()
|
|
if yyc3769 {
|
|
*v = yyv3769
|
|
}
|
|
}
|