mirror of https://github.com/k3s-io/k3s
61425 lines
1.4 MiB
61425 lines
1.4 MiB
/*
|
|
Copyright 2016 The Kubernetes Authors.
|
|
|
|
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"
|
|
pkg6_fields "k8s.io/kubernetes/pkg/fields"
|
|
pkg5_labels "k8s.io/kubernetes/pkg/labels"
|
|
pkg7_runtime "k8s.io/kubernetes/pkg/runtime"
|
|
pkg1_types "k8s.io/kubernetes/pkg/types"
|
|
pkg4_intstr "k8s.io/kubernetes/pkg/util/intstr"
|
|
"reflect"
|
|
"runtime"
|
|
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 pkg6_fields.Selector
|
|
var v3 pkg5_labels.Selector
|
|
var v4 pkg7_runtime.Object
|
|
var v5 pkg1_types.UID
|
|
var v6 pkg4_intstr.IntOrString
|
|
var v7 time.Time
|
|
_, _, _, _, _, _, _, _ = v0, v1, v2, v3, v4, v5, v6, v7
|
|
}
|
|
}
|
|
|
|
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 [14]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
|
|
yyq2[12] = len(x.OwnerReferences) != 0
|
|
yyq2[13] = len(x.Finalizers) != 0
|
|
var yynn2 int
|
|
if yyr2 || yy2arr2 {
|
|
r.EncodeArrayStart(14)
|
|
} 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_containerArrayElem1234)
|
|
if yyq2[12] {
|
|
if x.OwnerReferences == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym44 := z.EncBinary()
|
|
_ = yym44
|
|
if false {
|
|
} else {
|
|
h.encSliceOwnerReference(([]OwnerReference)(x.OwnerReferences), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2[12] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("ownerReferences"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.OwnerReferences == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym45 := z.EncBinary()
|
|
_ = yym45
|
|
if false {
|
|
} else {
|
|
h.encSliceOwnerReference(([]OwnerReference)(x.OwnerReferences), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr2 || yy2arr2 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2[13] {
|
|
if x.Finalizers == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym47 := z.EncBinary()
|
|
_ = yym47
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.Finalizers, false, e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2[13] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("finalizers"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Finalizers == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym48 := z.EncBinary()
|
|
_ = yym48
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.Finalizers, 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
|
|
yym49 := z.DecBinary()
|
|
_ = yym49
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct50 := r.ContainerType()
|
|
if yyct50 == codecSelferValueTypeMap1234 {
|
|
yyl50 := r.ReadMapStart()
|
|
if yyl50 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl50, d)
|
|
}
|
|
} else if yyct50 == codecSelferValueTypeArray1234 {
|
|
yyl50 := r.ReadArrayStart()
|
|
if yyl50 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl50, 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 yys51Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys51Slc
|
|
var yyhl51 bool = l >= 0
|
|
for yyj51 := 0; ; yyj51++ {
|
|
if yyhl51 {
|
|
if yyj51 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys51Slc = r.DecodeBytes(yys51Slc, true, true)
|
|
yys51 := string(yys51Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys51 {
|
|
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 {
|
|
yyv59 := &x.CreationTimestamp
|
|
yym60 := z.DecBinary()
|
|
_ = yym60
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv59) {
|
|
} else if yym60 {
|
|
z.DecBinaryUnmarshal(yyv59)
|
|
} else if !yym60 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv59)
|
|
} else {
|
|
z.DecFallback(yyv59, false)
|
|
}
|
|
}
|
|
case "deletionTimestamp":
|
|
if r.TryDecodeAsNil() {
|
|
if x.DeletionTimestamp != nil {
|
|
x.DeletionTimestamp = nil
|
|
}
|
|
} else {
|
|
if x.DeletionTimestamp == nil {
|
|
x.DeletionTimestamp = new(pkg2_unversioned.Time)
|
|
}
|
|
yym62 := z.DecBinary()
|
|
_ = yym62
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) {
|
|
} else if yym62 {
|
|
z.DecBinaryUnmarshal(x.DeletionTimestamp)
|
|
} else if !yym62 && 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)
|
|
}
|
|
yym64 := z.DecBinary()
|
|
_ = yym64
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
case "labels":
|
|
if r.TryDecodeAsNil() {
|
|
x.Labels = nil
|
|
} else {
|
|
yyv65 := &x.Labels
|
|
yym66 := z.DecBinary()
|
|
_ = yym66
|
|
if false {
|
|
} else {
|
|
z.F.DecMapStringStringX(yyv65, false, d)
|
|
}
|
|
}
|
|
case "annotations":
|
|
if r.TryDecodeAsNil() {
|
|
x.Annotations = nil
|
|
} else {
|
|
yyv67 := &x.Annotations
|
|
yym68 := z.DecBinary()
|
|
_ = yym68
|
|
if false {
|
|
} else {
|
|
z.F.DecMapStringStringX(yyv67, false, d)
|
|
}
|
|
}
|
|
case "ownerReferences":
|
|
if r.TryDecodeAsNil() {
|
|
x.OwnerReferences = nil
|
|
} else {
|
|
yyv69 := &x.OwnerReferences
|
|
yym70 := z.DecBinary()
|
|
_ = yym70
|
|
if false {
|
|
} else {
|
|
h.decSliceOwnerReference((*[]OwnerReference)(yyv69), d)
|
|
}
|
|
}
|
|
case "finalizers":
|
|
if r.TryDecodeAsNil() {
|
|
x.Finalizers = nil
|
|
} else {
|
|
yyv71 := &x.Finalizers
|
|
yym72 := z.DecBinary()
|
|
_ = yym72
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv71, false, d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys51)
|
|
} // end switch yys51
|
|
} // end for yyj51
|
|
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 yyj73 int
|
|
var yyb73 bool
|
|
var yyhl73 bool = l >= 0
|
|
yyj73++
|
|
if yyhl73 {
|
|
yyb73 = yyj73 > l
|
|
} else {
|
|
yyb73 = r.CheckBreak()
|
|
}
|
|
if yyb73 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
yyj73++
|
|
if yyhl73 {
|
|
yyb73 = yyj73 > l
|
|
} else {
|
|
yyb73 = r.CheckBreak()
|
|
}
|
|
if yyb73 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.GenerateName = ""
|
|
} else {
|
|
x.GenerateName = string(r.DecodeString())
|
|
}
|
|
yyj73++
|
|
if yyhl73 {
|
|
yyb73 = yyj73 > l
|
|
} else {
|
|
yyb73 = r.CheckBreak()
|
|
}
|
|
if yyb73 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Namespace = ""
|
|
} else {
|
|
x.Namespace = string(r.DecodeString())
|
|
}
|
|
yyj73++
|
|
if yyhl73 {
|
|
yyb73 = yyj73 > l
|
|
} else {
|
|
yyb73 = r.CheckBreak()
|
|
}
|
|
if yyb73 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.SelfLink = ""
|
|
} else {
|
|
x.SelfLink = string(r.DecodeString())
|
|
}
|
|
yyj73++
|
|
if yyhl73 {
|
|
yyb73 = yyj73 > l
|
|
} else {
|
|
yyb73 = r.CheckBreak()
|
|
}
|
|
if yyb73 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.UID = ""
|
|
} else {
|
|
x.UID = pkg1_types.UID(r.DecodeString())
|
|
}
|
|
yyj73++
|
|
if yyhl73 {
|
|
yyb73 = yyj73 > l
|
|
} else {
|
|
yyb73 = r.CheckBreak()
|
|
}
|
|
if yyb73 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ResourceVersion = ""
|
|
} else {
|
|
x.ResourceVersion = string(r.DecodeString())
|
|
}
|
|
yyj73++
|
|
if yyhl73 {
|
|
yyb73 = yyj73 > l
|
|
} else {
|
|
yyb73 = r.CheckBreak()
|
|
}
|
|
if yyb73 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Generation = 0
|
|
} else {
|
|
x.Generation = int64(r.DecodeInt(64))
|
|
}
|
|
yyj73++
|
|
if yyhl73 {
|
|
yyb73 = yyj73 > l
|
|
} else {
|
|
yyb73 = r.CheckBreak()
|
|
}
|
|
if yyb73 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.CreationTimestamp = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv81 := &x.CreationTimestamp
|
|
yym82 := z.DecBinary()
|
|
_ = yym82
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv81) {
|
|
} else if yym82 {
|
|
z.DecBinaryUnmarshal(yyv81)
|
|
} else if !yym82 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv81)
|
|
} else {
|
|
z.DecFallback(yyv81, false)
|
|
}
|
|
}
|
|
yyj73++
|
|
if yyhl73 {
|
|
yyb73 = yyj73 > l
|
|
} else {
|
|
yyb73 = r.CheckBreak()
|
|
}
|
|
if yyb73 {
|
|
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)
|
|
}
|
|
yym84 := z.DecBinary()
|
|
_ = yym84
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) {
|
|
} else if yym84 {
|
|
z.DecBinaryUnmarshal(x.DeletionTimestamp)
|
|
} else if !yym84 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(x.DeletionTimestamp)
|
|
} else {
|
|
z.DecFallback(x.DeletionTimestamp, false)
|
|
}
|
|
}
|
|
yyj73++
|
|
if yyhl73 {
|
|
yyb73 = yyj73 > l
|
|
} else {
|
|
yyb73 = r.CheckBreak()
|
|
}
|
|
if yyb73 {
|
|
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)
|
|
}
|
|
yym86 := z.DecBinary()
|
|
_ = yym86
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
yyj73++
|
|
if yyhl73 {
|
|
yyb73 = yyj73 > l
|
|
} else {
|
|
yyb73 = r.CheckBreak()
|
|
}
|
|
if yyb73 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Labels = nil
|
|
} else {
|
|
yyv87 := &x.Labels
|
|
yym88 := z.DecBinary()
|
|
_ = yym88
|
|
if false {
|
|
} else {
|
|
z.F.DecMapStringStringX(yyv87, false, d)
|
|
}
|
|
}
|
|
yyj73++
|
|
if yyhl73 {
|
|
yyb73 = yyj73 > l
|
|
} else {
|
|
yyb73 = r.CheckBreak()
|
|
}
|
|
if yyb73 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Annotations = nil
|
|
} else {
|
|
yyv89 := &x.Annotations
|
|
yym90 := z.DecBinary()
|
|
_ = yym90
|
|
if false {
|
|
} else {
|
|
z.F.DecMapStringStringX(yyv89, false, d)
|
|
}
|
|
}
|
|
yyj73++
|
|
if yyhl73 {
|
|
yyb73 = yyj73 > l
|
|
} else {
|
|
yyb73 = r.CheckBreak()
|
|
}
|
|
if yyb73 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.OwnerReferences = nil
|
|
} else {
|
|
yyv91 := &x.OwnerReferences
|
|
yym92 := z.DecBinary()
|
|
_ = yym92
|
|
if false {
|
|
} else {
|
|
h.decSliceOwnerReference((*[]OwnerReference)(yyv91), d)
|
|
}
|
|
}
|
|
yyj73++
|
|
if yyhl73 {
|
|
yyb73 = yyj73 > l
|
|
} else {
|
|
yyb73 = r.CheckBreak()
|
|
}
|
|
if yyb73 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Finalizers = nil
|
|
} else {
|
|
yyv93 := &x.Finalizers
|
|
yym94 := z.DecBinary()
|
|
_ = yym94
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv93, false, d)
|
|
}
|
|
}
|
|
for {
|
|
yyj73++
|
|
if yyhl73 {
|
|
yyb73 = yyj73 > l
|
|
} else {
|
|
yyb73 = r.CheckBreak()
|
|
}
|
|
if yyb73 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj73-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 {
|
|
yym95 := z.EncBinary()
|
|
_ = yym95
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep96 := !z.EncBinary()
|
|
yy2arr96 := z.EncBasicHandle().StructToArray
|
|
var yyq96 [22]bool
|
|
_, _, _ = yysep96, yyq96, yy2arr96
|
|
const yyr96 bool = false
|
|
yyq96[1] = x.VolumeSource.HostPath != nil && x.HostPath != nil
|
|
yyq96[2] = x.VolumeSource.EmptyDir != nil && x.EmptyDir != nil
|
|
yyq96[3] = x.VolumeSource.GCEPersistentDisk != nil && x.GCEPersistentDisk != nil
|
|
yyq96[4] = x.VolumeSource.AWSElasticBlockStore != nil && x.AWSElasticBlockStore != nil
|
|
yyq96[5] = x.VolumeSource.GitRepo != nil && x.GitRepo != nil
|
|
yyq96[6] = x.VolumeSource.Secret != nil && x.Secret != nil
|
|
yyq96[7] = x.VolumeSource.NFS != nil && x.NFS != nil
|
|
yyq96[8] = x.VolumeSource.ISCSI != nil && x.ISCSI != nil
|
|
yyq96[9] = x.VolumeSource.Glusterfs != nil && x.Glusterfs != nil
|
|
yyq96[10] = x.VolumeSource.PersistentVolumeClaim != nil && x.PersistentVolumeClaim != nil
|
|
yyq96[11] = x.VolumeSource.RBD != nil && x.RBD != nil
|
|
yyq96[12] = x.VolumeSource.Quobyte != nil && x.Quobyte != nil
|
|
yyq96[13] = x.VolumeSource.FlexVolume != nil && x.FlexVolume != nil
|
|
yyq96[14] = x.VolumeSource.Cinder != nil && x.Cinder != nil
|
|
yyq96[15] = x.VolumeSource.CephFS != nil && x.CephFS != nil
|
|
yyq96[16] = x.VolumeSource.Flocker != nil && x.Flocker != nil
|
|
yyq96[17] = x.VolumeSource.DownwardAPI != nil && x.DownwardAPI != nil
|
|
yyq96[18] = x.VolumeSource.FC != nil && x.FC != nil
|
|
yyq96[19] = x.VolumeSource.AzureFile != nil && x.AzureFile != nil
|
|
yyq96[20] = x.VolumeSource.ConfigMap != nil && x.ConfigMap != nil
|
|
yyq96[21] = x.VolumeSource.VsphereVolume != nil && x.VsphereVolume != nil
|
|
var yynn96 int
|
|
if yyr96 || yy2arr96 {
|
|
r.EncodeArrayStart(22)
|
|
} else {
|
|
yynn96 = 1
|
|
for _, b := range yyq96 {
|
|
if b {
|
|
yynn96++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn96)
|
|
yynn96 = 0
|
|
}
|
|
if yyr96 || yy2arr96 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym98 := z.EncBinary()
|
|
_ = yym98
|
|
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)
|
|
yym99 := z.EncBinary()
|
|
_ = yym99
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
}
|
|
var yyn100 bool
|
|
if x.VolumeSource.HostPath == nil {
|
|
yyn100 = true
|
|
goto LABEL100
|
|
}
|
|
LABEL100:
|
|
if yyr96 || yy2arr96 {
|
|
if yyn100 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq96[1] {
|
|
if x.HostPath == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.HostPath.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq96[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("hostPath"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn100 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.HostPath == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.HostPath.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn101 bool
|
|
if x.VolumeSource.EmptyDir == nil {
|
|
yyn101 = true
|
|
goto LABEL101
|
|
}
|
|
LABEL101:
|
|
if yyr96 || yy2arr96 {
|
|
if yyn101 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq96[2] {
|
|
if x.EmptyDir == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.EmptyDir.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq96[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("emptyDir"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn101 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.EmptyDir == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.EmptyDir.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn102 bool
|
|
if x.VolumeSource.GCEPersistentDisk == nil {
|
|
yyn102 = true
|
|
goto LABEL102
|
|
}
|
|
LABEL102:
|
|
if yyr96 || yy2arr96 {
|
|
if yyn102 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq96[3] {
|
|
if x.GCEPersistentDisk == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.GCEPersistentDisk.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq96[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn102 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.GCEPersistentDisk == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.GCEPersistentDisk.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn103 bool
|
|
if x.VolumeSource.AWSElasticBlockStore == nil {
|
|
yyn103 = true
|
|
goto LABEL103
|
|
}
|
|
LABEL103:
|
|
if yyr96 || yy2arr96 {
|
|
if yyn103 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq96[4] {
|
|
if x.AWSElasticBlockStore == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.AWSElasticBlockStore.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq96[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn103 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.AWSElasticBlockStore == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.AWSElasticBlockStore.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn104 bool
|
|
if x.VolumeSource.GitRepo == nil {
|
|
yyn104 = true
|
|
goto LABEL104
|
|
}
|
|
LABEL104:
|
|
if yyr96 || yy2arr96 {
|
|
if yyn104 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq96[5] {
|
|
if x.GitRepo == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.GitRepo.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq96[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("gitRepo"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn104 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.GitRepo == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.GitRepo.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn105 bool
|
|
if x.VolumeSource.Secret == nil {
|
|
yyn105 = true
|
|
goto LABEL105
|
|
}
|
|
LABEL105:
|
|
if yyr96 || yy2arr96 {
|
|
if yyn105 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq96[6] {
|
|
if x.Secret == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Secret.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq96[6] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("secret"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn105 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.Secret == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Secret.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn106 bool
|
|
if x.VolumeSource.NFS == nil {
|
|
yyn106 = true
|
|
goto LABEL106
|
|
}
|
|
LABEL106:
|
|
if yyr96 || yy2arr96 {
|
|
if yyn106 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq96[7] {
|
|
if x.NFS == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.NFS.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq96[7] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("nfs"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn106 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.NFS == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.NFS.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn107 bool
|
|
if x.VolumeSource.ISCSI == nil {
|
|
yyn107 = true
|
|
goto LABEL107
|
|
}
|
|
LABEL107:
|
|
if yyr96 || yy2arr96 {
|
|
if yyn107 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq96[8] {
|
|
if x.ISCSI == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.ISCSI.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq96[8] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("iscsi"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn107 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.ISCSI == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.ISCSI.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn108 bool
|
|
if x.VolumeSource.Glusterfs == nil {
|
|
yyn108 = true
|
|
goto LABEL108
|
|
}
|
|
LABEL108:
|
|
if yyr96 || yy2arr96 {
|
|
if yyn108 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq96[9] {
|
|
if x.Glusterfs == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Glusterfs.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq96[9] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("glusterfs"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn108 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.Glusterfs == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Glusterfs.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn109 bool
|
|
if x.VolumeSource.PersistentVolumeClaim == nil {
|
|
yyn109 = true
|
|
goto LABEL109
|
|
}
|
|
LABEL109:
|
|
if yyr96 || yy2arr96 {
|
|
if yyn109 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq96[10] {
|
|
if x.PersistentVolumeClaim == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.PersistentVolumeClaim.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq96[10] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeClaim"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn109 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.PersistentVolumeClaim == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.PersistentVolumeClaim.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn110 bool
|
|
if x.VolumeSource.RBD == nil {
|
|
yyn110 = true
|
|
goto LABEL110
|
|
}
|
|
LABEL110:
|
|
if yyr96 || yy2arr96 {
|
|
if yyn110 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq96[11] {
|
|
if x.RBD == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.RBD.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq96[11] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("rbd"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn110 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.RBD == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.RBD.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn111 bool
|
|
if x.VolumeSource.Quobyte == nil {
|
|
yyn111 = true
|
|
goto LABEL111
|
|
}
|
|
LABEL111:
|
|
if yyr96 || yy2arr96 {
|
|
if yyn111 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq96[12] {
|
|
if x.Quobyte == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Quobyte.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq96[12] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("quobyte"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn111 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.Quobyte == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Quobyte.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn112 bool
|
|
if x.VolumeSource.FlexVolume == nil {
|
|
yyn112 = true
|
|
goto LABEL112
|
|
}
|
|
LABEL112:
|
|
if yyr96 || yy2arr96 {
|
|
if yyn112 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq96[13] {
|
|
if x.FlexVolume == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.FlexVolume.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq96[13] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("flexVolume"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn112 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.FlexVolume == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.FlexVolume.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn113 bool
|
|
if x.VolumeSource.Cinder == nil {
|
|
yyn113 = true
|
|
goto LABEL113
|
|
}
|
|
LABEL113:
|
|
if yyr96 || yy2arr96 {
|
|
if yyn113 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq96[14] {
|
|
if x.Cinder == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Cinder.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq96[14] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("cinder"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn113 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.Cinder == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Cinder.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn114 bool
|
|
if x.VolumeSource.CephFS == nil {
|
|
yyn114 = true
|
|
goto LABEL114
|
|
}
|
|
LABEL114:
|
|
if yyr96 || yy2arr96 {
|
|
if yyn114 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq96[15] {
|
|
if x.CephFS == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.CephFS.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq96[15] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("cephfs"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn114 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.CephFS == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.CephFS.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn115 bool
|
|
if x.VolumeSource.Flocker == nil {
|
|
yyn115 = true
|
|
goto LABEL115
|
|
}
|
|
LABEL115:
|
|
if yyr96 || yy2arr96 {
|
|
if yyn115 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq96[16] {
|
|
if x.Flocker == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Flocker.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq96[16] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("flocker"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn115 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.Flocker == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Flocker.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn116 bool
|
|
if x.VolumeSource.DownwardAPI == nil {
|
|
yyn116 = true
|
|
goto LABEL116
|
|
}
|
|
LABEL116:
|
|
if yyr96 || yy2arr96 {
|
|
if yyn116 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq96[17] {
|
|
if x.DownwardAPI == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.DownwardAPI.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq96[17] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("downwardAPI"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn116 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.DownwardAPI == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.DownwardAPI.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn117 bool
|
|
if x.VolumeSource.FC == nil {
|
|
yyn117 = true
|
|
goto LABEL117
|
|
}
|
|
LABEL117:
|
|
if yyr96 || yy2arr96 {
|
|
if yyn117 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq96[18] {
|
|
if x.FC == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.FC.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq96[18] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("fc"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn117 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.FC == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.FC.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn118 bool
|
|
if x.VolumeSource.AzureFile == nil {
|
|
yyn118 = true
|
|
goto LABEL118
|
|
}
|
|
LABEL118:
|
|
if yyr96 || yy2arr96 {
|
|
if yyn118 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq96[19] {
|
|
if x.AzureFile == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.AzureFile.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq96[19] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("azureFile"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn118 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.AzureFile == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.AzureFile.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn119 bool
|
|
if x.VolumeSource.ConfigMap == nil {
|
|
yyn119 = true
|
|
goto LABEL119
|
|
}
|
|
LABEL119:
|
|
if yyr96 || yy2arr96 {
|
|
if yyn119 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq96[20] {
|
|
if x.ConfigMap == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.ConfigMap.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq96[20] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("configMap"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn119 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.ConfigMap == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.ConfigMap.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn120 bool
|
|
if x.VolumeSource.VsphereVolume == nil {
|
|
yyn120 = true
|
|
goto LABEL120
|
|
}
|
|
LABEL120:
|
|
if yyr96 || yy2arr96 {
|
|
if yyn120 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq96[21] {
|
|
if x.VsphereVolume == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.VsphereVolume.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq96[21] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn120 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.VsphereVolume == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.VsphereVolume.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr96 || yy2arr96 {
|
|
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
|
|
yym121 := z.DecBinary()
|
|
_ = yym121
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct122 := r.ContainerType()
|
|
if yyct122 == codecSelferValueTypeMap1234 {
|
|
yyl122 := r.ReadMapStart()
|
|
if yyl122 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl122, d)
|
|
}
|
|
} else if yyct122 == codecSelferValueTypeArray1234 {
|
|
yyl122 := r.ReadArrayStart()
|
|
if yyl122 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl122, 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 yys123Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys123Slc
|
|
var yyhl123 bool = l >= 0
|
|
for yyj123 := 0; ; yyj123++ {
|
|
if yyhl123 {
|
|
if yyj123 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys123Slc = r.DecodeBytes(yys123Slc, true, true)
|
|
yys123 := string(yys123Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys123 {
|
|
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 "quobyte":
|
|
if x.VolumeSource.Quobyte == nil {
|
|
x.VolumeSource.Quobyte = new(QuobyteVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.Quobyte != nil {
|
|
x.Quobyte = nil
|
|
}
|
|
} else {
|
|
if x.Quobyte == nil {
|
|
x.Quobyte = new(QuobyteVolumeSource)
|
|
}
|
|
x.Quobyte.CodecDecodeSelf(d)
|
|
}
|
|
case "flexVolume":
|
|
if x.VolumeSource.FlexVolume == nil {
|
|
x.VolumeSource.FlexVolume = new(FlexVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.FlexVolume != nil {
|
|
x.FlexVolume = nil
|
|
}
|
|
} else {
|
|
if x.FlexVolume == nil {
|
|
x.FlexVolume = new(FlexVolumeSource)
|
|
}
|
|
x.FlexVolume.CodecDecodeSelf(d)
|
|
}
|
|
case "cinder":
|
|
if x.VolumeSource.Cinder == nil {
|
|
x.VolumeSource.Cinder = new(CinderVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.Cinder != nil {
|
|
x.Cinder = nil
|
|
}
|
|
} else {
|
|
if x.Cinder == nil {
|
|
x.Cinder = new(CinderVolumeSource)
|
|
}
|
|
x.Cinder.CodecDecodeSelf(d)
|
|
}
|
|
case "cephfs":
|
|
if x.VolumeSource.CephFS == nil {
|
|
x.VolumeSource.CephFS = new(CephFSVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.CephFS != nil {
|
|
x.CephFS = nil
|
|
}
|
|
} else {
|
|
if x.CephFS == nil {
|
|
x.CephFS = new(CephFSVolumeSource)
|
|
}
|
|
x.CephFS.CodecDecodeSelf(d)
|
|
}
|
|
case "flocker":
|
|
if x.VolumeSource.Flocker == nil {
|
|
x.VolumeSource.Flocker = new(FlockerVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.Flocker != nil {
|
|
x.Flocker = nil
|
|
}
|
|
} else {
|
|
if x.Flocker == nil {
|
|
x.Flocker = new(FlockerVolumeSource)
|
|
}
|
|
x.Flocker.CodecDecodeSelf(d)
|
|
}
|
|
case "downwardAPI":
|
|
if x.VolumeSource.DownwardAPI == nil {
|
|
x.VolumeSource.DownwardAPI = new(DownwardAPIVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.DownwardAPI != nil {
|
|
x.DownwardAPI = nil
|
|
}
|
|
} else {
|
|
if x.DownwardAPI == nil {
|
|
x.DownwardAPI = new(DownwardAPIVolumeSource)
|
|
}
|
|
x.DownwardAPI.CodecDecodeSelf(d)
|
|
}
|
|
case "fc":
|
|
if x.VolumeSource.FC == nil {
|
|
x.VolumeSource.FC = new(FCVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.FC != nil {
|
|
x.FC = nil
|
|
}
|
|
} else {
|
|
if x.FC == nil {
|
|
x.FC = new(FCVolumeSource)
|
|
}
|
|
x.FC.CodecDecodeSelf(d)
|
|
}
|
|
case "azureFile":
|
|
if x.VolumeSource.AzureFile == nil {
|
|
x.VolumeSource.AzureFile = new(AzureFileVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.AzureFile != nil {
|
|
x.AzureFile = nil
|
|
}
|
|
} else {
|
|
if x.AzureFile == nil {
|
|
x.AzureFile = new(AzureFileVolumeSource)
|
|
}
|
|
x.AzureFile.CodecDecodeSelf(d)
|
|
}
|
|
case "configMap":
|
|
if x.VolumeSource.ConfigMap == nil {
|
|
x.VolumeSource.ConfigMap = new(ConfigMapVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.ConfigMap != nil {
|
|
x.ConfigMap = nil
|
|
}
|
|
} else {
|
|
if x.ConfigMap == nil {
|
|
x.ConfigMap = new(ConfigMapVolumeSource)
|
|
}
|
|
x.ConfigMap.CodecDecodeSelf(d)
|
|
}
|
|
case "vsphereVolume":
|
|
if x.VolumeSource.VsphereVolume == nil {
|
|
x.VolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.VsphereVolume != nil {
|
|
x.VsphereVolume = nil
|
|
}
|
|
} else {
|
|
if x.VsphereVolume == nil {
|
|
x.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
|
|
}
|
|
x.VsphereVolume.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys123)
|
|
} // end switch yys123
|
|
} // end for yyj123
|
|
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 yyj146 int
|
|
var yyb146 bool
|
|
var yyhl146 bool = l >= 0
|
|
yyj146++
|
|
if yyhl146 {
|
|
yyb146 = yyj146 > l
|
|
} else {
|
|
yyb146 = r.CheckBreak()
|
|
}
|
|
if yyb146 {
|
|
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)
|
|
}
|
|
yyj146++
|
|
if yyhl146 {
|
|
yyb146 = yyj146 > l
|
|
} else {
|
|
yyb146 = r.CheckBreak()
|
|
}
|
|
if yyb146 {
|
|
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)
|
|
}
|
|
yyj146++
|
|
if yyhl146 {
|
|
yyb146 = yyj146 > l
|
|
} else {
|
|
yyb146 = r.CheckBreak()
|
|
}
|
|
if yyb146 {
|
|
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)
|
|
}
|
|
yyj146++
|
|
if yyhl146 {
|
|
yyb146 = yyj146 > l
|
|
} else {
|
|
yyb146 = r.CheckBreak()
|
|
}
|
|
if yyb146 {
|
|
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)
|
|
}
|
|
yyj146++
|
|
if yyhl146 {
|
|
yyb146 = yyj146 > l
|
|
} else {
|
|
yyb146 = r.CheckBreak()
|
|
}
|
|
if yyb146 {
|
|
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)
|
|
}
|
|
yyj146++
|
|
if yyhl146 {
|
|
yyb146 = yyj146 > l
|
|
} else {
|
|
yyb146 = r.CheckBreak()
|
|
}
|
|
if yyb146 {
|
|
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)
|
|
}
|
|
yyj146++
|
|
if yyhl146 {
|
|
yyb146 = yyj146 > l
|
|
} else {
|
|
yyb146 = r.CheckBreak()
|
|
}
|
|
if yyb146 {
|
|
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)
|
|
}
|
|
yyj146++
|
|
if yyhl146 {
|
|
yyb146 = yyj146 > l
|
|
} else {
|
|
yyb146 = r.CheckBreak()
|
|
}
|
|
if yyb146 {
|
|
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)
|
|
}
|
|
yyj146++
|
|
if yyhl146 {
|
|
yyb146 = yyj146 > l
|
|
} else {
|
|
yyb146 = r.CheckBreak()
|
|
}
|
|
if yyb146 {
|
|
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)
|
|
}
|
|
yyj146++
|
|
if yyhl146 {
|
|
yyb146 = yyj146 > l
|
|
} else {
|
|
yyb146 = r.CheckBreak()
|
|
}
|
|
if yyb146 {
|
|
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)
|
|
}
|
|
yyj146++
|
|
if yyhl146 {
|
|
yyb146 = yyj146 > l
|
|
} else {
|
|
yyb146 = r.CheckBreak()
|
|
}
|
|
if yyb146 {
|
|
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)
|
|
}
|
|
yyj146++
|
|
if yyhl146 {
|
|
yyb146 = yyj146 > l
|
|
} else {
|
|
yyb146 = r.CheckBreak()
|
|
}
|
|
if yyb146 {
|
|
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.Quobyte == nil {
|
|
x.VolumeSource.Quobyte = new(QuobyteVolumeSource)
|
|
}
|
|
yyj146++
|
|
if yyhl146 {
|
|
yyb146 = yyj146 > l
|
|
} else {
|
|
yyb146 = r.CheckBreak()
|
|
}
|
|
if yyb146 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.Quobyte != nil {
|
|
x.Quobyte = nil
|
|
}
|
|
} else {
|
|
if x.Quobyte == nil {
|
|
x.Quobyte = new(QuobyteVolumeSource)
|
|
}
|
|
x.Quobyte.CodecDecodeSelf(d)
|
|
}
|
|
if x.VolumeSource.FlexVolume == nil {
|
|
x.VolumeSource.FlexVolume = new(FlexVolumeSource)
|
|
}
|
|
yyj146++
|
|
if yyhl146 {
|
|
yyb146 = yyj146 > l
|
|
} else {
|
|
yyb146 = r.CheckBreak()
|
|
}
|
|
if yyb146 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.FlexVolume != nil {
|
|
x.FlexVolume = nil
|
|
}
|
|
} else {
|
|
if x.FlexVolume == nil {
|
|
x.FlexVolume = new(FlexVolumeSource)
|
|
}
|
|
x.FlexVolume.CodecDecodeSelf(d)
|
|
}
|
|
if x.VolumeSource.Cinder == nil {
|
|
x.VolumeSource.Cinder = new(CinderVolumeSource)
|
|
}
|
|
yyj146++
|
|
if yyhl146 {
|
|
yyb146 = yyj146 > l
|
|
} else {
|
|
yyb146 = r.CheckBreak()
|
|
}
|
|
if yyb146 {
|
|
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)
|
|
}
|
|
yyj146++
|
|
if yyhl146 {
|
|
yyb146 = yyj146 > l
|
|
} else {
|
|
yyb146 = r.CheckBreak()
|
|
}
|
|
if yyb146 {
|
|
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)
|
|
}
|
|
yyj146++
|
|
if yyhl146 {
|
|
yyb146 = yyj146 > l
|
|
} else {
|
|
yyb146 = r.CheckBreak()
|
|
}
|
|
if yyb146 {
|
|
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)
|
|
}
|
|
yyj146++
|
|
if yyhl146 {
|
|
yyb146 = yyj146 > l
|
|
} else {
|
|
yyb146 = r.CheckBreak()
|
|
}
|
|
if yyb146 {
|
|
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)
|
|
}
|
|
yyj146++
|
|
if yyhl146 {
|
|
yyb146 = yyj146 > l
|
|
} else {
|
|
yyb146 = r.CheckBreak()
|
|
}
|
|
if yyb146 {
|
|
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.VolumeSource.AzureFile == nil {
|
|
x.VolumeSource.AzureFile = new(AzureFileVolumeSource)
|
|
}
|
|
yyj146++
|
|
if yyhl146 {
|
|
yyb146 = yyj146 > l
|
|
} else {
|
|
yyb146 = r.CheckBreak()
|
|
}
|
|
if yyb146 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.AzureFile != nil {
|
|
x.AzureFile = nil
|
|
}
|
|
} else {
|
|
if x.AzureFile == nil {
|
|
x.AzureFile = new(AzureFileVolumeSource)
|
|
}
|
|
x.AzureFile.CodecDecodeSelf(d)
|
|
}
|
|
if x.VolumeSource.ConfigMap == nil {
|
|
x.VolumeSource.ConfigMap = new(ConfigMapVolumeSource)
|
|
}
|
|
yyj146++
|
|
if yyhl146 {
|
|
yyb146 = yyj146 > l
|
|
} else {
|
|
yyb146 = r.CheckBreak()
|
|
}
|
|
if yyb146 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.ConfigMap != nil {
|
|
x.ConfigMap = nil
|
|
}
|
|
} else {
|
|
if x.ConfigMap == nil {
|
|
x.ConfigMap = new(ConfigMapVolumeSource)
|
|
}
|
|
x.ConfigMap.CodecDecodeSelf(d)
|
|
}
|
|
if x.VolumeSource.VsphereVolume == nil {
|
|
x.VolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
|
|
}
|
|
yyj146++
|
|
if yyhl146 {
|
|
yyb146 = yyj146 > l
|
|
} else {
|
|
yyb146 = r.CheckBreak()
|
|
}
|
|
if yyb146 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.VsphereVolume != nil {
|
|
x.VsphereVolume = nil
|
|
}
|
|
} else {
|
|
if x.VsphereVolume == nil {
|
|
x.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
|
|
}
|
|
x.VsphereVolume.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj146++
|
|
if yyhl146 {
|
|
yyb146 = yyj146 > l
|
|
} else {
|
|
yyb146 = r.CheckBreak()
|
|
}
|
|
if yyb146 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj146-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 {
|
|
yym169 := z.EncBinary()
|
|
_ = yym169
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep170 := !z.EncBinary()
|
|
yy2arr170 := z.EncBasicHandle().StructToArray
|
|
var yyq170 [21]bool
|
|
_, _, _ = yysep170, yyq170, yy2arr170
|
|
const yyr170 bool = false
|
|
yyq170[0] = x.HostPath != nil
|
|
yyq170[1] = x.EmptyDir != nil
|
|
yyq170[2] = x.GCEPersistentDisk != nil
|
|
yyq170[3] = x.AWSElasticBlockStore != nil
|
|
yyq170[4] = x.GitRepo != nil
|
|
yyq170[5] = x.Secret != nil
|
|
yyq170[6] = x.NFS != nil
|
|
yyq170[7] = x.ISCSI != nil
|
|
yyq170[8] = x.Glusterfs != nil
|
|
yyq170[9] = x.PersistentVolumeClaim != nil
|
|
yyq170[10] = x.RBD != nil
|
|
yyq170[11] = x.Quobyte != nil
|
|
yyq170[12] = x.FlexVolume != nil
|
|
yyq170[13] = x.Cinder != nil
|
|
yyq170[14] = x.CephFS != nil
|
|
yyq170[15] = x.Flocker != nil
|
|
yyq170[16] = x.DownwardAPI != nil
|
|
yyq170[17] = x.FC != nil
|
|
yyq170[18] = x.AzureFile != nil
|
|
yyq170[19] = x.ConfigMap != nil
|
|
yyq170[20] = x.VsphereVolume != nil
|
|
var yynn170 int
|
|
if yyr170 || yy2arr170 {
|
|
r.EncodeArrayStart(21)
|
|
} else {
|
|
yynn170 = 0
|
|
for _, b := range yyq170 {
|
|
if b {
|
|
yynn170++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn170)
|
|
yynn170 = 0
|
|
}
|
|
if yyr170 || yy2arr170 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq170[0] {
|
|
if x.HostPath == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.HostPath.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq170[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 yyr170 || yy2arr170 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq170[1] {
|
|
if x.EmptyDir == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.EmptyDir.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq170[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 yyr170 || yy2arr170 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq170[2] {
|
|
if x.GCEPersistentDisk == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.GCEPersistentDisk.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq170[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 yyr170 || yy2arr170 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq170[3] {
|
|
if x.AWSElasticBlockStore == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.AWSElasticBlockStore.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq170[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 yyr170 || yy2arr170 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq170[4] {
|
|
if x.GitRepo == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.GitRepo.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq170[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 yyr170 || yy2arr170 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq170[5] {
|
|
if x.Secret == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Secret.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq170[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 yyr170 || yy2arr170 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq170[6] {
|
|
if x.NFS == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.NFS.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq170[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 yyr170 || yy2arr170 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq170[7] {
|
|
if x.ISCSI == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.ISCSI.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq170[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 yyr170 || yy2arr170 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq170[8] {
|
|
if x.Glusterfs == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Glusterfs.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq170[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 yyr170 || yy2arr170 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq170[9] {
|
|
if x.PersistentVolumeClaim == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.PersistentVolumeClaim.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq170[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 yyr170 || yy2arr170 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq170[10] {
|
|
if x.RBD == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.RBD.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq170[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 yyr170 || yy2arr170 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq170[11] {
|
|
if x.Quobyte == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Quobyte.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq170[11] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("quobyte"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Quobyte == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Quobyte.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr170 || yy2arr170 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq170[12] {
|
|
if x.FlexVolume == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.FlexVolume.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq170[12] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("flexVolume"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.FlexVolume == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.FlexVolume.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr170 || yy2arr170 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq170[13] {
|
|
if x.Cinder == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Cinder.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq170[13] {
|
|
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 yyr170 || yy2arr170 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq170[14] {
|
|
if x.CephFS == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.CephFS.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq170[14] {
|
|
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 yyr170 || yy2arr170 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq170[15] {
|
|
if x.Flocker == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Flocker.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq170[15] {
|
|
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 yyr170 || yy2arr170 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq170[16] {
|
|
if x.DownwardAPI == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.DownwardAPI.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq170[16] {
|
|
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 yyr170 || yy2arr170 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq170[17] {
|
|
if x.FC == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.FC.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq170[17] {
|
|
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 yyr170 || yy2arr170 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq170[18] {
|
|
if x.AzureFile == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.AzureFile.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq170[18] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("azureFile"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.AzureFile == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.AzureFile.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr170 || yy2arr170 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq170[19] {
|
|
if x.ConfigMap == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.ConfigMap.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq170[19] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("configMap"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.ConfigMap == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.ConfigMap.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr170 || yy2arr170 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq170[20] {
|
|
if x.VsphereVolume == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.VsphereVolume.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq170[20] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.VsphereVolume == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.VsphereVolume.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr170 || yy2arr170 {
|
|
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
|
|
yym192 := z.DecBinary()
|
|
_ = yym192
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct193 := r.ContainerType()
|
|
if yyct193 == codecSelferValueTypeMap1234 {
|
|
yyl193 := r.ReadMapStart()
|
|
if yyl193 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl193, d)
|
|
}
|
|
} else if yyct193 == codecSelferValueTypeArray1234 {
|
|
yyl193 := r.ReadArrayStart()
|
|
if yyl193 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl193, 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 yys194Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys194Slc
|
|
var yyhl194 bool = l >= 0
|
|
for yyj194 := 0; ; yyj194++ {
|
|
if yyhl194 {
|
|
if yyj194 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys194Slc = r.DecodeBytes(yys194Slc, true, true)
|
|
yys194 := string(yys194Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys194 {
|
|
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 "quobyte":
|
|
if r.TryDecodeAsNil() {
|
|
if x.Quobyte != nil {
|
|
x.Quobyte = nil
|
|
}
|
|
} else {
|
|
if x.Quobyte == nil {
|
|
x.Quobyte = new(QuobyteVolumeSource)
|
|
}
|
|
x.Quobyte.CodecDecodeSelf(d)
|
|
}
|
|
case "flexVolume":
|
|
if r.TryDecodeAsNil() {
|
|
if x.FlexVolume != nil {
|
|
x.FlexVolume = nil
|
|
}
|
|
} else {
|
|
if x.FlexVolume == nil {
|
|
x.FlexVolume = new(FlexVolumeSource)
|
|
}
|
|
x.FlexVolume.CodecDecodeSelf(d)
|
|
}
|
|
case "cinder":
|
|
if r.TryDecodeAsNil() {
|
|
if x.Cinder != nil {
|
|
x.Cinder = nil
|
|
}
|
|
} else {
|
|
if x.Cinder == nil {
|
|
x.Cinder = new(CinderVolumeSource)
|
|
}
|
|
x.Cinder.CodecDecodeSelf(d)
|
|
}
|
|
case "cephfs":
|
|
if r.TryDecodeAsNil() {
|
|
if x.CephFS != nil {
|
|
x.CephFS = nil
|
|
}
|
|
} else {
|
|
if x.CephFS == nil {
|
|
x.CephFS = new(CephFSVolumeSource)
|
|
}
|
|
x.CephFS.CodecDecodeSelf(d)
|
|
}
|
|
case "flocker":
|
|
if r.TryDecodeAsNil() {
|
|
if x.Flocker != nil {
|
|
x.Flocker = nil
|
|
}
|
|
} else {
|
|
if x.Flocker == nil {
|
|
x.Flocker = new(FlockerVolumeSource)
|
|
}
|
|
x.Flocker.CodecDecodeSelf(d)
|
|
}
|
|
case "downwardAPI":
|
|
if r.TryDecodeAsNil() {
|
|
if x.DownwardAPI != nil {
|
|
x.DownwardAPI = nil
|
|
}
|
|
} else {
|
|
if x.DownwardAPI == nil {
|
|
x.DownwardAPI = new(DownwardAPIVolumeSource)
|
|
}
|
|
x.DownwardAPI.CodecDecodeSelf(d)
|
|
}
|
|
case "fc":
|
|
if r.TryDecodeAsNil() {
|
|
if x.FC != nil {
|
|
x.FC = nil
|
|
}
|
|
} else {
|
|
if x.FC == nil {
|
|
x.FC = new(FCVolumeSource)
|
|
}
|
|
x.FC.CodecDecodeSelf(d)
|
|
}
|
|
case "azureFile":
|
|
if r.TryDecodeAsNil() {
|
|
if x.AzureFile != nil {
|
|
x.AzureFile = nil
|
|
}
|
|
} else {
|
|
if x.AzureFile == nil {
|
|
x.AzureFile = new(AzureFileVolumeSource)
|
|
}
|
|
x.AzureFile.CodecDecodeSelf(d)
|
|
}
|
|
case "configMap":
|
|
if r.TryDecodeAsNil() {
|
|
if x.ConfigMap != nil {
|
|
x.ConfigMap = nil
|
|
}
|
|
} else {
|
|
if x.ConfigMap == nil {
|
|
x.ConfigMap = new(ConfigMapVolumeSource)
|
|
}
|
|
x.ConfigMap.CodecDecodeSelf(d)
|
|
}
|
|
case "vsphereVolume":
|
|
if r.TryDecodeAsNil() {
|
|
if x.VsphereVolume != nil {
|
|
x.VsphereVolume = nil
|
|
}
|
|
} else {
|
|
if x.VsphereVolume == nil {
|
|
x.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
|
|
}
|
|
x.VsphereVolume.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys194)
|
|
} // end switch yys194
|
|
} // end for yyj194
|
|
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 yyj216 int
|
|
var yyb216 bool
|
|
var yyhl216 bool = l >= 0
|
|
yyj216++
|
|
if yyhl216 {
|
|
yyb216 = yyj216 > l
|
|
} else {
|
|
yyb216 = r.CheckBreak()
|
|
}
|
|
if yyb216 {
|
|
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)
|
|
}
|
|
yyj216++
|
|
if yyhl216 {
|
|
yyb216 = yyj216 > l
|
|
} else {
|
|
yyb216 = r.CheckBreak()
|
|
}
|
|
if yyb216 {
|
|
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)
|
|
}
|
|
yyj216++
|
|
if yyhl216 {
|
|
yyb216 = yyj216 > l
|
|
} else {
|
|
yyb216 = r.CheckBreak()
|
|
}
|
|
if yyb216 {
|
|
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)
|
|
}
|
|
yyj216++
|
|
if yyhl216 {
|
|
yyb216 = yyj216 > l
|
|
} else {
|
|
yyb216 = r.CheckBreak()
|
|
}
|
|
if yyb216 {
|
|
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)
|
|
}
|
|
yyj216++
|
|
if yyhl216 {
|
|
yyb216 = yyj216 > l
|
|
} else {
|
|
yyb216 = r.CheckBreak()
|
|
}
|
|
if yyb216 {
|
|
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)
|
|
}
|
|
yyj216++
|
|
if yyhl216 {
|
|
yyb216 = yyj216 > l
|
|
} else {
|
|
yyb216 = r.CheckBreak()
|
|
}
|
|
if yyb216 {
|
|
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)
|
|
}
|
|
yyj216++
|
|
if yyhl216 {
|
|
yyb216 = yyj216 > l
|
|
} else {
|
|
yyb216 = r.CheckBreak()
|
|
}
|
|
if yyb216 {
|
|
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)
|
|
}
|
|
yyj216++
|
|
if yyhl216 {
|
|
yyb216 = yyj216 > l
|
|
} else {
|
|
yyb216 = r.CheckBreak()
|
|
}
|
|
if yyb216 {
|
|
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)
|
|
}
|
|
yyj216++
|
|
if yyhl216 {
|
|
yyb216 = yyj216 > l
|
|
} else {
|
|
yyb216 = r.CheckBreak()
|
|
}
|
|
if yyb216 {
|
|
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)
|
|
}
|
|
yyj216++
|
|
if yyhl216 {
|
|
yyb216 = yyj216 > l
|
|
} else {
|
|
yyb216 = r.CheckBreak()
|
|
}
|
|
if yyb216 {
|
|
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)
|
|
}
|
|
yyj216++
|
|
if yyhl216 {
|
|
yyb216 = yyj216 > l
|
|
} else {
|
|
yyb216 = r.CheckBreak()
|
|
}
|
|
if yyb216 {
|
|
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)
|
|
}
|
|
yyj216++
|
|
if yyhl216 {
|
|
yyb216 = yyj216 > l
|
|
} else {
|
|
yyb216 = r.CheckBreak()
|
|
}
|
|
if yyb216 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.Quobyte != nil {
|
|
x.Quobyte = nil
|
|
}
|
|
} else {
|
|
if x.Quobyte == nil {
|
|
x.Quobyte = new(QuobyteVolumeSource)
|
|
}
|
|
x.Quobyte.CodecDecodeSelf(d)
|
|
}
|
|
yyj216++
|
|
if yyhl216 {
|
|
yyb216 = yyj216 > l
|
|
} else {
|
|
yyb216 = r.CheckBreak()
|
|
}
|
|
if yyb216 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.FlexVolume != nil {
|
|
x.FlexVolume = nil
|
|
}
|
|
} else {
|
|
if x.FlexVolume == nil {
|
|
x.FlexVolume = new(FlexVolumeSource)
|
|
}
|
|
x.FlexVolume.CodecDecodeSelf(d)
|
|
}
|
|
yyj216++
|
|
if yyhl216 {
|
|
yyb216 = yyj216 > l
|
|
} else {
|
|
yyb216 = r.CheckBreak()
|
|
}
|
|
if yyb216 {
|
|
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)
|
|
}
|
|
yyj216++
|
|
if yyhl216 {
|
|
yyb216 = yyj216 > l
|
|
} else {
|
|
yyb216 = r.CheckBreak()
|
|
}
|
|
if yyb216 {
|
|
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)
|
|
}
|
|
yyj216++
|
|
if yyhl216 {
|
|
yyb216 = yyj216 > l
|
|
} else {
|
|
yyb216 = r.CheckBreak()
|
|
}
|
|
if yyb216 {
|
|
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)
|
|
}
|
|
yyj216++
|
|
if yyhl216 {
|
|
yyb216 = yyj216 > l
|
|
} else {
|
|
yyb216 = r.CheckBreak()
|
|
}
|
|
if yyb216 {
|
|
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)
|
|
}
|
|
yyj216++
|
|
if yyhl216 {
|
|
yyb216 = yyj216 > l
|
|
} else {
|
|
yyb216 = r.CheckBreak()
|
|
}
|
|
if yyb216 {
|
|
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)
|
|
}
|
|
yyj216++
|
|
if yyhl216 {
|
|
yyb216 = yyj216 > l
|
|
} else {
|
|
yyb216 = r.CheckBreak()
|
|
}
|
|
if yyb216 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.AzureFile != nil {
|
|
x.AzureFile = nil
|
|
}
|
|
} else {
|
|
if x.AzureFile == nil {
|
|
x.AzureFile = new(AzureFileVolumeSource)
|
|
}
|
|
x.AzureFile.CodecDecodeSelf(d)
|
|
}
|
|
yyj216++
|
|
if yyhl216 {
|
|
yyb216 = yyj216 > l
|
|
} else {
|
|
yyb216 = r.CheckBreak()
|
|
}
|
|
if yyb216 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.ConfigMap != nil {
|
|
x.ConfigMap = nil
|
|
}
|
|
} else {
|
|
if x.ConfigMap == nil {
|
|
x.ConfigMap = new(ConfigMapVolumeSource)
|
|
}
|
|
x.ConfigMap.CodecDecodeSelf(d)
|
|
}
|
|
yyj216++
|
|
if yyhl216 {
|
|
yyb216 = yyj216 > l
|
|
} else {
|
|
yyb216 = r.CheckBreak()
|
|
}
|
|
if yyb216 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.VsphereVolume != nil {
|
|
x.VsphereVolume = nil
|
|
}
|
|
} else {
|
|
if x.VsphereVolume == nil {
|
|
x.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
|
|
}
|
|
x.VsphereVolume.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj216++
|
|
if yyhl216 {
|
|
yyb216 = yyj216 > l
|
|
} else {
|
|
yyb216 = r.CheckBreak()
|
|
}
|
|
if yyb216 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj216-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 {
|
|
yym238 := z.EncBinary()
|
|
_ = yym238
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep239 := !z.EncBinary()
|
|
yy2arr239 := z.EncBasicHandle().StructToArray
|
|
var yyq239 [15]bool
|
|
_, _, _ = yysep239, yyq239, yy2arr239
|
|
const yyr239 bool = false
|
|
yyq239[0] = x.GCEPersistentDisk != nil
|
|
yyq239[1] = x.AWSElasticBlockStore != nil
|
|
yyq239[2] = x.HostPath != nil
|
|
yyq239[3] = x.Glusterfs != nil
|
|
yyq239[4] = x.NFS != nil
|
|
yyq239[5] = x.RBD != nil
|
|
yyq239[6] = x.Quobyte != nil
|
|
yyq239[7] = x.ISCSI != nil
|
|
yyq239[8] = x.FlexVolume != nil
|
|
yyq239[9] = x.Cinder != nil
|
|
yyq239[10] = x.CephFS != nil
|
|
yyq239[11] = x.FC != nil
|
|
yyq239[12] = x.Flocker != nil
|
|
yyq239[13] = x.AzureFile != nil
|
|
yyq239[14] = x.VsphereVolume != nil
|
|
var yynn239 int
|
|
if yyr239 || yy2arr239 {
|
|
r.EncodeArrayStart(15)
|
|
} else {
|
|
yynn239 = 0
|
|
for _, b := range yyq239 {
|
|
if b {
|
|
yynn239++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn239)
|
|
yynn239 = 0
|
|
}
|
|
if yyr239 || yy2arr239 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq239[0] {
|
|
if x.GCEPersistentDisk == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.GCEPersistentDisk.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq239[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 yyr239 || yy2arr239 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq239[1] {
|
|
if x.AWSElasticBlockStore == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.AWSElasticBlockStore.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq239[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 yyr239 || yy2arr239 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq239[2] {
|
|
if x.HostPath == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.HostPath.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq239[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 yyr239 || yy2arr239 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq239[3] {
|
|
if x.Glusterfs == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Glusterfs.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq239[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 yyr239 || yy2arr239 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq239[4] {
|
|
if x.NFS == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.NFS.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq239[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 yyr239 || yy2arr239 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq239[5] {
|
|
if x.RBD == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.RBD.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq239[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 yyr239 || yy2arr239 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq239[6] {
|
|
if x.Quobyte == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Quobyte.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq239[6] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("quobyte"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Quobyte == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Quobyte.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr239 || yy2arr239 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq239[7] {
|
|
if x.ISCSI == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.ISCSI.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq239[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 yyr239 || yy2arr239 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq239[8] {
|
|
if x.FlexVolume == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.FlexVolume.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq239[8] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("flexVolume"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.FlexVolume == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.FlexVolume.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr239 || yy2arr239 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq239[9] {
|
|
if x.Cinder == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Cinder.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq239[9] {
|
|
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 yyr239 || yy2arr239 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq239[10] {
|
|
if x.CephFS == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.CephFS.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq239[10] {
|
|
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 yyr239 || yy2arr239 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq239[11] {
|
|
if x.FC == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.FC.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq239[11] {
|
|
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 yyr239 || yy2arr239 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq239[12] {
|
|
if x.Flocker == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Flocker.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq239[12] {
|
|
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 yyr239 || yy2arr239 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq239[13] {
|
|
if x.AzureFile == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.AzureFile.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq239[13] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("azureFile"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.AzureFile == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.AzureFile.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr239 || yy2arr239 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq239[14] {
|
|
if x.VsphereVolume == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.VsphereVolume.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq239[14] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.VsphereVolume == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.VsphereVolume.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr239 || yy2arr239 {
|
|
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
|
|
yym255 := z.DecBinary()
|
|
_ = yym255
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct256 := r.ContainerType()
|
|
if yyct256 == codecSelferValueTypeMap1234 {
|
|
yyl256 := r.ReadMapStart()
|
|
if yyl256 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl256, d)
|
|
}
|
|
} else if yyct256 == codecSelferValueTypeArray1234 {
|
|
yyl256 := r.ReadArrayStart()
|
|
if yyl256 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl256, 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 yys257Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys257Slc
|
|
var yyhl257 bool = l >= 0
|
|
for yyj257 := 0; ; yyj257++ {
|
|
if yyhl257 {
|
|
if yyj257 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys257Slc = r.DecodeBytes(yys257Slc, true, true)
|
|
yys257 := string(yys257Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys257 {
|
|
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 "quobyte":
|
|
if r.TryDecodeAsNil() {
|
|
if x.Quobyte != nil {
|
|
x.Quobyte = nil
|
|
}
|
|
} else {
|
|
if x.Quobyte == nil {
|
|
x.Quobyte = new(QuobyteVolumeSource)
|
|
}
|
|
x.Quobyte.CodecDecodeSelf(d)
|
|
}
|
|
case "iscsi":
|
|
if r.TryDecodeAsNil() {
|
|
if x.ISCSI != nil {
|
|
x.ISCSI = nil
|
|
}
|
|
} else {
|
|
if x.ISCSI == nil {
|
|
x.ISCSI = new(ISCSIVolumeSource)
|
|
}
|
|
x.ISCSI.CodecDecodeSelf(d)
|
|
}
|
|
case "flexVolume":
|
|
if r.TryDecodeAsNil() {
|
|
if x.FlexVolume != nil {
|
|
x.FlexVolume = nil
|
|
}
|
|
} else {
|
|
if x.FlexVolume == nil {
|
|
x.FlexVolume = new(FlexVolumeSource)
|
|
}
|
|
x.FlexVolume.CodecDecodeSelf(d)
|
|
}
|
|
case "cinder":
|
|
if r.TryDecodeAsNil() {
|
|
if x.Cinder != nil {
|
|
x.Cinder = nil
|
|
}
|
|
} else {
|
|
if x.Cinder == nil {
|
|
x.Cinder = new(CinderVolumeSource)
|
|
}
|
|
x.Cinder.CodecDecodeSelf(d)
|
|
}
|
|
case "cephfs":
|
|
if r.TryDecodeAsNil() {
|
|
if x.CephFS != nil {
|
|
x.CephFS = nil
|
|
}
|
|
} else {
|
|
if x.CephFS == nil {
|
|
x.CephFS = new(CephFSVolumeSource)
|
|
}
|
|
x.CephFS.CodecDecodeSelf(d)
|
|
}
|
|
case "fc":
|
|
if r.TryDecodeAsNil() {
|
|
if x.FC != nil {
|
|
x.FC = nil
|
|
}
|
|
} else {
|
|
if x.FC == nil {
|
|
x.FC = new(FCVolumeSource)
|
|
}
|
|
x.FC.CodecDecodeSelf(d)
|
|
}
|
|
case "flocker":
|
|
if r.TryDecodeAsNil() {
|
|
if x.Flocker != nil {
|
|
x.Flocker = nil
|
|
}
|
|
} else {
|
|
if x.Flocker == nil {
|
|
x.Flocker = new(FlockerVolumeSource)
|
|
}
|
|
x.Flocker.CodecDecodeSelf(d)
|
|
}
|
|
case "azureFile":
|
|
if r.TryDecodeAsNil() {
|
|
if x.AzureFile != nil {
|
|
x.AzureFile = nil
|
|
}
|
|
} else {
|
|
if x.AzureFile == nil {
|
|
x.AzureFile = new(AzureFileVolumeSource)
|
|
}
|
|
x.AzureFile.CodecDecodeSelf(d)
|
|
}
|
|
case "vsphereVolume":
|
|
if r.TryDecodeAsNil() {
|
|
if x.VsphereVolume != nil {
|
|
x.VsphereVolume = nil
|
|
}
|
|
} else {
|
|
if x.VsphereVolume == nil {
|
|
x.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
|
|
}
|
|
x.VsphereVolume.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys257)
|
|
} // end switch yys257
|
|
} // end for yyj257
|
|
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 yyj273 int
|
|
var yyb273 bool
|
|
var yyhl273 bool = l >= 0
|
|
yyj273++
|
|
if yyhl273 {
|
|
yyb273 = yyj273 > l
|
|
} else {
|
|
yyb273 = r.CheckBreak()
|
|
}
|
|
if yyb273 {
|
|
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)
|
|
}
|
|
yyj273++
|
|
if yyhl273 {
|
|
yyb273 = yyj273 > l
|
|
} else {
|
|
yyb273 = r.CheckBreak()
|
|
}
|
|
if yyb273 {
|
|
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)
|
|
}
|
|
yyj273++
|
|
if yyhl273 {
|
|
yyb273 = yyj273 > l
|
|
} else {
|
|
yyb273 = r.CheckBreak()
|
|
}
|
|
if yyb273 {
|
|
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)
|
|
}
|
|
yyj273++
|
|
if yyhl273 {
|
|
yyb273 = yyj273 > l
|
|
} else {
|
|
yyb273 = r.CheckBreak()
|
|
}
|
|
if yyb273 {
|
|
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)
|
|
}
|
|
yyj273++
|
|
if yyhl273 {
|
|
yyb273 = yyj273 > l
|
|
} else {
|
|
yyb273 = r.CheckBreak()
|
|
}
|
|
if yyb273 {
|
|
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)
|
|
}
|
|
yyj273++
|
|
if yyhl273 {
|
|
yyb273 = yyj273 > l
|
|
} else {
|
|
yyb273 = r.CheckBreak()
|
|
}
|
|
if yyb273 {
|
|
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)
|
|
}
|
|
yyj273++
|
|
if yyhl273 {
|
|
yyb273 = yyj273 > l
|
|
} else {
|
|
yyb273 = r.CheckBreak()
|
|
}
|
|
if yyb273 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.Quobyte != nil {
|
|
x.Quobyte = nil
|
|
}
|
|
} else {
|
|
if x.Quobyte == nil {
|
|
x.Quobyte = new(QuobyteVolumeSource)
|
|
}
|
|
x.Quobyte.CodecDecodeSelf(d)
|
|
}
|
|
yyj273++
|
|
if yyhl273 {
|
|
yyb273 = yyj273 > l
|
|
} else {
|
|
yyb273 = r.CheckBreak()
|
|
}
|
|
if yyb273 {
|
|
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)
|
|
}
|
|
yyj273++
|
|
if yyhl273 {
|
|
yyb273 = yyj273 > l
|
|
} else {
|
|
yyb273 = r.CheckBreak()
|
|
}
|
|
if yyb273 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.FlexVolume != nil {
|
|
x.FlexVolume = nil
|
|
}
|
|
} else {
|
|
if x.FlexVolume == nil {
|
|
x.FlexVolume = new(FlexVolumeSource)
|
|
}
|
|
x.FlexVolume.CodecDecodeSelf(d)
|
|
}
|
|
yyj273++
|
|
if yyhl273 {
|
|
yyb273 = yyj273 > l
|
|
} else {
|
|
yyb273 = r.CheckBreak()
|
|
}
|
|
if yyb273 {
|
|
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)
|
|
}
|
|
yyj273++
|
|
if yyhl273 {
|
|
yyb273 = yyj273 > l
|
|
} else {
|
|
yyb273 = r.CheckBreak()
|
|
}
|
|
if yyb273 {
|
|
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)
|
|
}
|
|
yyj273++
|
|
if yyhl273 {
|
|
yyb273 = yyj273 > l
|
|
} else {
|
|
yyb273 = r.CheckBreak()
|
|
}
|
|
if yyb273 {
|
|
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)
|
|
}
|
|
yyj273++
|
|
if yyhl273 {
|
|
yyb273 = yyj273 > l
|
|
} else {
|
|
yyb273 = r.CheckBreak()
|
|
}
|
|
if yyb273 {
|
|
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)
|
|
}
|
|
yyj273++
|
|
if yyhl273 {
|
|
yyb273 = yyj273 > l
|
|
} else {
|
|
yyb273 = r.CheckBreak()
|
|
}
|
|
if yyb273 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.AzureFile != nil {
|
|
x.AzureFile = nil
|
|
}
|
|
} else {
|
|
if x.AzureFile == nil {
|
|
x.AzureFile = new(AzureFileVolumeSource)
|
|
}
|
|
x.AzureFile.CodecDecodeSelf(d)
|
|
}
|
|
yyj273++
|
|
if yyhl273 {
|
|
yyb273 = yyj273 > l
|
|
} else {
|
|
yyb273 = r.CheckBreak()
|
|
}
|
|
if yyb273 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.VsphereVolume != nil {
|
|
x.VsphereVolume = nil
|
|
}
|
|
} else {
|
|
if x.VsphereVolume == nil {
|
|
x.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
|
|
}
|
|
x.VsphereVolume.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj273++
|
|
if yyhl273 {
|
|
yyb273 = yyj273 > l
|
|
} else {
|
|
yyb273 = r.CheckBreak()
|
|
}
|
|
if yyb273 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj273-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 {
|
|
yym289 := z.EncBinary()
|
|
_ = yym289
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep290 := !z.EncBinary()
|
|
yy2arr290 := z.EncBasicHandle().StructToArray
|
|
var yyq290 [2]bool
|
|
_, _, _ = yysep290, yyq290, yy2arr290
|
|
const yyr290 bool = false
|
|
yyq290[1] = x.ReadOnly != false
|
|
var yynn290 int
|
|
if yyr290 || yy2arr290 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn290 = 1
|
|
for _, b := range yyq290 {
|
|
if b {
|
|
yynn290++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn290)
|
|
yynn290 = 0
|
|
}
|
|
if yyr290 || yy2arr290 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym292 := z.EncBinary()
|
|
_ = yym292
|
|
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)
|
|
yym293 := z.EncBinary()
|
|
_ = yym293
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ClaimName))
|
|
}
|
|
}
|
|
if yyr290 || yy2arr290 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq290[1] {
|
|
yym295 := z.EncBinary()
|
|
_ = yym295
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq290[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym296 := z.EncBinary()
|
|
_ = yym296
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
}
|
|
}
|
|
if yyr290 || yy2arr290 {
|
|
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
|
|
yym297 := z.DecBinary()
|
|
_ = yym297
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct298 := r.ContainerType()
|
|
if yyct298 == codecSelferValueTypeMap1234 {
|
|
yyl298 := r.ReadMapStart()
|
|
if yyl298 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl298, d)
|
|
}
|
|
} else if yyct298 == codecSelferValueTypeArray1234 {
|
|
yyl298 := r.ReadArrayStart()
|
|
if yyl298 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl298, 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 yys299Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys299Slc
|
|
var yyhl299 bool = l >= 0
|
|
for yyj299 := 0; ; yyj299++ {
|
|
if yyhl299 {
|
|
if yyj299 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys299Slc = r.DecodeBytes(yys299Slc, true, true)
|
|
yys299 := string(yys299Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys299 {
|
|
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, yys299)
|
|
} // end switch yys299
|
|
} // end for yyj299
|
|
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 yyj302 int
|
|
var yyb302 bool
|
|
var yyhl302 bool = l >= 0
|
|
yyj302++
|
|
if yyhl302 {
|
|
yyb302 = yyj302 > l
|
|
} else {
|
|
yyb302 = r.CheckBreak()
|
|
}
|
|
if yyb302 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ClaimName = ""
|
|
} else {
|
|
x.ClaimName = string(r.DecodeString())
|
|
}
|
|
yyj302++
|
|
if yyhl302 {
|
|
yyb302 = yyj302 > l
|
|
} else {
|
|
yyb302 = r.CheckBreak()
|
|
}
|
|
if yyb302 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
for {
|
|
yyj302++
|
|
if yyhl302 {
|
|
yyb302 = yyj302 > l
|
|
} else {
|
|
yyb302 = r.CheckBreak()
|
|
}
|
|
if yyb302 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj302-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 {
|
|
yym305 := z.EncBinary()
|
|
_ = yym305
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep306 := !z.EncBinary()
|
|
yy2arr306 := z.EncBasicHandle().StructToArray
|
|
var yyq306 [5]bool
|
|
_, _, _ = yysep306, yyq306, yy2arr306
|
|
const yyr306 bool = false
|
|
yyq306[0] = x.Kind != ""
|
|
yyq306[1] = x.APIVersion != ""
|
|
yyq306[2] = true
|
|
yyq306[3] = true
|
|
yyq306[4] = true
|
|
var yynn306 int
|
|
if yyr306 || yy2arr306 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn306 = 0
|
|
for _, b := range yyq306 {
|
|
if b {
|
|
yynn306++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn306)
|
|
yynn306 = 0
|
|
}
|
|
if yyr306 || yy2arr306 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq306[0] {
|
|
yym308 := z.EncBinary()
|
|
_ = yym308
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq306[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym309 := z.EncBinary()
|
|
_ = yym309
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr306 || yy2arr306 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq306[1] {
|
|
yym311 := z.EncBinary()
|
|
_ = yym311
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq306[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym312 := z.EncBinary()
|
|
_ = yym312
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr306 || yy2arr306 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq306[2] {
|
|
yy314 := &x.ObjectMeta
|
|
yy314.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq306[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy315 := &x.ObjectMeta
|
|
yy315.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr306 || yy2arr306 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq306[3] {
|
|
yy317 := &x.Spec
|
|
yy317.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq306[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("spec"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy318 := &x.Spec
|
|
yy318.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr306 || yy2arr306 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq306[4] {
|
|
yy320 := &x.Status
|
|
yy320.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq306[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("status"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy321 := &x.Status
|
|
yy321.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr306 || yy2arr306 {
|
|
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
|
|
yym322 := z.DecBinary()
|
|
_ = yym322
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct323 := r.ContainerType()
|
|
if yyct323 == codecSelferValueTypeMap1234 {
|
|
yyl323 := r.ReadMapStart()
|
|
if yyl323 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl323, d)
|
|
}
|
|
} else if yyct323 == codecSelferValueTypeArray1234 {
|
|
yyl323 := r.ReadArrayStart()
|
|
if yyl323 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl323, 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 yys324Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys324Slc
|
|
var yyhl324 bool = l >= 0
|
|
for yyj324 := 0; ; yyj324++ {
|
|
if yyhl324 {
|
|
if yyj324 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys324Slc = r.DecodeBytes(yys324Slc, true, true)
|
|
yys324 := string(yys324Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys324 {
|
|
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 {
|
|
yyv327 := &x.ObjectMeta
|
|
yyv327.CodecDecodeSelf(d)
|
|
}
|
|
case "spec":
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = PersistentVolumeSpec{}
|
|
} else {
|
|
yyv328 := &x.Spec
|
|
yyv328.CodecDecodeSelf(d)
|
|
}
|
|
case "status":
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = PersistentVolumeStatus{}
|
|
} else {
|
|
yyv329 := &x.Status
|
|
yyv329.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys324)
|
|
} // end switch yys324
|
|
} // end for yyj324
|
|
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 yyj330 int
|
|
var yyb330 bool
|
|
var yyhl330 bool = l >= 0
|
|
yyj330++
|
|
if yyhl330 {
|
|
yyb330 = yyj330 > l
|
|
} else {
|
|
yyb330 = r.CheckBreak()
|
|
}
|
|
if yyb330 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj330++
|
|
if yyhl330 {
|
|
yyb330 = yyj330 > l
|
|
} else {
|
|
yyb330 = r.CheckBreak()
|
|
}
|
|
if yyb330 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj330++
|
|
if yyhl330 {
|
|
yyb330 = yyj330 > l
|
|
} else {
|
|
yyb330 = r.CheckBreak()
|
|
}
|
|
if yyb330 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv333 := &x.ObjectMeta
|
|
yyv333.CodecDecodeSelf(d)
|
|
}
|
|
yyj330++
|
|
if yyhl330 {
|
|
yyb330 = yyj330 > l
|
|
} else {
|
|
yyb330 = r.CheckBreak()
|
|
}
|
|
if yyb330 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = PersistentVolumeSpec{}
|
|
} else {
|
|
yyv334 := &x.Spec
|
|
yyv334.CodecDecodeSelf(d)
|
|
}
|
|
yyj330++
|
|
if yyhl330 {
|
|
yyb330 = yyj330 > l
|
|
} else {
|
|
yyb330 = r.CheckBreak()
|
|
}
|
|
if yyb330 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = PersistentVolumeStatus{}
|
|
} else {
|
|
yyv335 := &x.Status
|
|
yyv335.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj330++
|
|
if yyhl330 {
|
|
yyb330 = yyj330 > l
|
|
} else {
|
|
yyb330 = r.CheckBreak()
|
|
}
|
|
if yyb330 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj330-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 {
|
|
yym336 := z.EncBinary()
|
|
_ = yym336
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep337 := !z.EncBinary()
|
|
yy2arr337 := z.EncBasicHandle().StructToArray
|
|
var yyq337 [19]bool
|
|
_, _, _ = yysep337, yyq337, yy2arr337
|
|
const yyr337 bool = false
|
|
yyq337[1] = x.PersistentVolumeSource.GCEPersistentDisk != nil && x.GCEPersistentDisk != nil
|
|
yyq337[2] = x.PersistentVolumeSource.AWSElasticBlockStore != nil && x.AWSElasticBlockStore != nil
|
|
yyq337[3] = x.PersistentVolumeSource.HostPath != nil && x.HostPath != nil
|
|
yyq337[4] = x.PersistentVolumeSource.Glusterfs != nil && x.Glusterfs != nil
|
|
yyq337[5] = x.PersistentVolumeSource.NFS != nil && x.NFS != nil
|
|
yyq337[6] = x.PersistentVolumeSource.RBD != nil && x.RBD != nil
|
|
yyq337[7] = x.PersistentVolumeSource.Quobyte != nil && x.Quobyte != nil
|
|
yyq337[8] = x.PersistentVolumeSource.ISCSI != nil && x.ISCSI != nil
|
|
yyq337[9] = x.PersistentVolumeSource.FlexVolume != nil && x.FlexVolume != nil
|
|
yyq337[10] = x.PersistentVolumeSource.Cinder != nil && x.Cinder != nil
|
|
yyq337[11] = x.PersistentVolumeSource.CephFS != nil && x.CephFS != nil
|
|
yyq337[12] = x.PersistentVolumeSource.FC != nil && x.FC != nil
|
|
yyq337[13] = x.PersistentVolumeSource.Flocker != nil && x.Flocker != nil
|
|
yyq337[14] = x.PersistentVolumeSource.AzureFile != nil && x.AzureFile != nil
|
|
yyq337[15] = x.PersistentVolumeSource.VsphereVolume != nil && x.VsphereVolume != nil
|
|
yyq337[16] = len(x.AccessModes) != 0
|
|
yyq337[17] = x.ClaimRef != nil
|
|
yyq337[18] = x.PersistentVolumeReclaimPolicy != ""
|
|
var yynn337 int
|
|
if yyr337 || yy2arr337 {
|
|
r.EncodeArrayStart(19)
|
|
} else {
|
|
yynn337 = 1
|
|
for _, b := range yyq337 {
|
|
if b {
|
|
yynn337++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn337)
|
|
yynn337 = 0
|
|
}
|
|
if yyr337 || yy2arr337 {
|
|
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 yyn339 bool
|
|
if x.PersistentVolumeSource.GCEPersistentDisk == nil {
|
|
yyn339 = true
|
|
goto LABEL339
|
|
}
|
|
LABEL339:
|
|
if yyr337 || yy2arr337 {
|
|
if yyn339 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq337[1] {
|
|
if x.GCEPersistentDisk == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.GCEPersistentDisk.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq337[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn339 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.GCEPersistentDisk == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.GCEPersistentDisk.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn340 bool
|
|
if x.PersistentVolumeSource.AWSElasticBlockStore == nil {
|
|
yyn340 = true
|
|
goto LABEL340
|
|
}
|
|
LABEL340:
|
|
if yyr337 || yy2arr337 {
|
|
if yyn340 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq337[2] {
|
|
if x.AWSElasticBlockStore == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.AWSElasticBlockStore.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq337[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn340 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.AWSElasticBlockStore == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.AWSElasticBlockStore.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn341 bool
|
|
if x.PersistentVolumeSource.HostPath == nil {
|
|
yyn341 = true
|
|
goto LABEL341
|
|
}
|
|
LABEL341:
|
|
if yyr337 || yy2arr337 {
|
|
if yyn341 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq337[3] {
|
|
if x.HostPath == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.HostPath.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq337[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("hostPath"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn341 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.HostPath == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.HostPath.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn342 bool
|
|
if x.PersistentVolumeSource.Glusterfs == nil {
|
|
yyn342 = true
|
|
goto LABEL342
|
|
}
|
|
LABEL342:
|
|
if yyr337 || yy2arr337 {
|
|
if yyn342 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq337[4] {
|
|
if x.Glusterfs == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Glusterfs.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq337[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("glusterfs"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn342 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.Glusterfs == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Glusterfs.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn343 bool
|
|
if x.PersistentVolumeSource.NFS == nil {
|
|
yyn343 = true
|
|
goto LABEL343
|
|
}
|
|
LABEL343:
|
|
if yyr337 || yy2arr337 {
|
|
if yyn343 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq337[5] {
|
|
if x.NFS == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.NFS.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq337[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("nfs"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn343 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.NFS == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.NFS.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn344 bool
|
|
if x.PersistentVolumeSource.RBD == nil {
|
|
yyn344 = true
|
|
goto LABEL344
|
|
}
|
|
LABEL344:
|
|
if yyr337 || yy2arr337 {
|
|
if yyn344 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq337[6] {
|
|
if x.RBD == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.RBD.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq337[6] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("rbd"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn344 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.RBD == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.RBD.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn345 bool
|
|
if x.PersistentVolumeSource.Quobyte == nil {
|
|
yyn345 = true
|
|
goto LABEL345
|
|
}
|
|
LABEL345:
|
|
if yyr337 || yy2arr337 {
|
|
if yyn345 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq337[7] {
|
|
if x.Quobyte == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Quobyte.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq337[7] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("quobyte"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn345 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.Quobyte == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Quobyte.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn346 bool
|
|
if x.PersistentVolumeSource.ISCSI == nil {
|
|
yyn346 = true
|
|
goto LABEL346
|
|
}
|
|
LABEL346:
|
|
if yyr337 || yy2arr337 {
|
|
if yyn346 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq337[8] {
|
|
if x.ISCSI == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.ISCSI.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq337[8] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("iscsi"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn346 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.ISCSI == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.ISCSI.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn347 bool
|
|
if x.PersistentVolumeSource.FlexVolume == nil {
|
|
yyn347 = true
|
|
goto LABEL347
|
|
}
|
|
LABEL347:
|
|
if yyr337 || yy2arr337 {
|
|
if yyn347 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq337[9] {
|
|
if x.FlexVolume == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.FlexVolume.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq337[9] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("flexVolume"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn347 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.FlexVolume == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.FlexVolume.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn348 bool
|
|
if x.PersistentVolumeSource.Cinder == nil {
|
|
yyn348 = true
|
|
goto LABEL348
|
|
}
|
|
LABEL348:
|
|
if yyr337 || yy2arr337 {
|
|
if yyn348 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq337[10] {
|
|
if x.Cinder == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Cinder.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq337[10] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("cinder"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn348 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.Cinder == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Cinder.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn349 bool
|
|
if x.PersistentVolumeSource.CephFS == nil {
|
|
yyn349 = true
|
|
goto LABEL349
|
|
}
|
|
LABEL349:
|
|
if yyr337 || yy2arr337 {
|
|
if yyn349 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq337[11] {
|
|
if x.CephFS == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.CephFS.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq337[11] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("cephfs"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn349 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.CephFS == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.CephFS.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn350 bool
|
|
if x.PersistentVolumeSource.FC == nil {
|
|
yyn350 = true
|
|
goto LABEL350
|
|
}
|
|
LABEL350:
|
|
if yyr337 || yy2arr337 {
|
|
if yyn350 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq337[12] {
|
|
if x.FC == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.FC.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq337[12] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("fc"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn350 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.FC == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.FC.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn351 bool
|
|
if x.PersistentVolumeSource.Flocker == nil {
|
|
yyn351 = true
|
|
goto LABEL351
|
|
}
|
|
LABEL351:
|
|
if yyr337 || yy2arr337 {
|
|
if yyn351 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq337[13] {
|
|
if x.Flocker == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Flocker.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq337[13] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("flocker"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn351 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.Flocker == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Flocker.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn352 bool
|
|
if x.PersistentVolumeSource.AzureFile == nil {
|
|
yyn352 = true
|
|
goto LABEL352
|
|
}
|
|
LABEL352:
|
|
if yyr337 || yy2arr337 {
|
|
if yyn352 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq337[14] {
|
|
if x.AzureFile == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.AzureFile.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq337[14] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("azureFile"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn352 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.AzureFile == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.AzureFile.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn353 bool
|
|
if x.PersistentVolumeSource.VsphereVolume == nil {
|
|
yyn353 = true
|
|
goto LABEL353
|
|
}
|
|
LABEL353:
|
|
if yyr337 || yy2arr337 {
|
|
if yyn353 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq337[15] {
|
|
if x.VsphereVolume == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.VsphereVolume.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq337[15] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn353 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.VsphereVolume == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.VsphereVolume.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr337 || yy2arr337 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq337[16] {
|
|
if x.AccessModes == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym355 := z.EncBinary()
|
|
_ = yym355
|
|
if false {
|
|
} else {
|
|
h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq337[16] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("accessModes"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.AccessModes == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym356 := z.EncBinary()
|
|
_ = yym356
|
|
if false {
|
|
} else {
|
|
h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr337 || yy2arr337 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq337[17] {
|
|
if x.ClaimRef == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.ClaimRef.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq337[17] {
|
|
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 yyr337 || yy2arr337 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq337[18] {
|
|
x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq337[18] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeReclaimPolicy"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr337 || yy2arr337 {
|
|
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
|
|
yym359 := z.DecBinary()
|
|
_ = yym359
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct360 := r.ContainerType()
|
|
if yyct360 == codecSelferValueTypeMap1234 {
|
|
yyl360 := r.ReadMapStart()
|
|
if yyl360 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl360, d)
|
|
}
|
|
} else if yyct360 == codecSelferValueTypeArray1234 {
|
|
yyl360 := r.ReadArrayStart()
|
|
if yyl360 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl360, 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 yys361Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys361Slc
|
|
var yyhl361 bool = l >= 0
|
|
for yyj361 := 0; ; yyj361++ {
|
|
if yyhl361 {
|
|
if yyj361 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys361Slc = r.DecodeBytes(yys361Slc, true, true)
|
|
yys361 := string(yys361Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys361 {
|
|
case "capacity":
|
|
if r.TryDecodeAsNil() {
|
|
x.Capacity = nil
|
|
} else {
|
|
yyv362 := &x.Capacity
|
|
yyv362.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 "quobyte":
|
|
if x.PersistentVolumeSource.Quobyte == nil {
|
|
x.PersistentVolumeSource.Quobyte = new(QuobyteVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.Quobyte != nil {
|
|
x.Quobyte = nil
|
|
}
|
|
} else {
|
|
if x.Quobyte == nil {
|
|
x.Quobyte = new(QuobyteVolumeSource)
|
|
}
|
|
x.Quobyte.CodecDecodeSelf(d)
|
|
}
|
|
case "iscsi":
|
|
if x.PersistentVolumeSource.ISCSI == nil {
|
|
x.PersistentVolumeSource.ISCSI = new(ISCSIVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.ISCSI != nil {
|
|
x.ISCSI = nil
|
|
}
|
|
} else {
|
|
if x.ISCSI == nil {
|
|
x.ISCSI = new(ISCSIVolumeSource)
|
|
}
|
|
x.ISCSI.CodecDecodeSelf(d)
|
|
}
|
|
case "flexVolume":
|
|
if x.PersistentVolumeSource.FlexVolume == nil {
|
|
x.PersistentVolumeSource.FlexVolume = new(FlexVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.FlexVolume != nil {
|
|
x.FlexVolume = nil
|
|
}
|
|
} else {
|
|
if x.FlexVolume == nil {
|
|
x.FlexVolume = new(FlexVolumeSource)
|
|
}
|
|
x.FlexVolume.CodecDecodeSelf(d)
|
|
}
|
|
case "cinder":
|
|
if x.PersistentVolumeSource.Cinder == nil {
|
|
x.PersistentVolumeSource.Cinder = new(CinderVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.Cinder != nil {
|
|
x.Cinder = nil
|
|
}
|
|
} else {
|
|
if x.Cinder == nil {
|
|
x.Cinder = new(CinderVolumeSource)
|
|
}
|
|
x.Cinder.CodecDecodeSelf(d)
|
|
}
|
|
case "cephfs":
|
|
if x.PersistentVolumeSource.CephFS == nil {
|
|
x.PersistentVolumeSource.CephFS = new(CephFSVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.CephFS != nil {
|
|
x.CephFS = nil
|
|
}
|
|
} else {
|
|
if x.CephFS == nil {
|
|
x.CephFS = new(CephFSVolumeSource)
|
|
}
|
|
x.CephFS.CodecDecodeSelf(d)
|
|
}
|
|
case "fc":
|
|
if x.PersistentVolumeSource.FC == nil {
|
|
x.PersistentVolumeSource.FC = new(FCVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.FC != nil {
|
|
x.FC = nil
|
|
}
|
|
} else {
|
|
if x.FC == nil {
|
|
x.FC = new(FCVolumeSource)
|
|
}
|
|
x.FC.CodecDecodeSelf(d)
|
|
}
|
|
case "flocker":
|
|
if x.PersistentVolumeSource.Flocker == nil {
|
|
x.PersistentVolumeSource.Flocker = new(FlockerVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.Flocker != nil {
|
|
x.Flocker = nil
|
|
}
|
|
} else {
|
|
if x.Flocker == nil {
|
|
x.Flocker = new(FlockerVolumeSource)
|
|
}
|
|
x.Flocker.CodecDecodeSelf(d)
|
|
}
|
|
case "azureFile":
|
|
if x.PersistentVolumeSource.AzureFile == nil {
|
|
x.PersistentVolumeSource.AzureFile = new(AzureFileVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.AzureFile != nil {
|
|
x.AzureFile = nil
|
|
}
|
|
} else {
|
|
if x.AzureFile == nil {
|
|
x.AzureFile = new(AzureFileVolumeSource)
|
|
}
|
|
x.AzureFile.CodecDecodeSelf(d)
|
|
}
|
|
case "vsphereVolume":
|
|
if x.PersistentVolumeSource.VsphereVolume == nil {
|
|
x.PersistentVolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
|
|
}
|
|
if r.TryDecodeAsNil() {
|
|
if x.VsphereVolume != nil {
|
|
x.VsphereVolume = nil
|
|
}
|
|
} else {
|
|
if x.VsphereVolume == nil {
|
|
x.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
|
|
}
|
|
x.VsphereVolume.CodecDecodeSelf(d)
|
|
}
|
|
case "accessModes":
|
|
if r.TryDecodeAsNil() {
|
|
x.AccessModes = nil
|
|
} else {
|
|
yyv378 := &x.AccessModes
|
|
yym379 := z.DecBinary()
|
|
_ = yym379
|
|
if false {
|
|
} else {
|
|
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv378), 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, yys361)
|
|
} // end switch yys361
|
|
} // end for yyj361
|
|
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 yyj382 int
|
|
var yyb382 bool
|
|
var yyhl382 bool = l >= 0
|
|
yyj382++
|
|
if yyhl382 {
|
|
yyb382 = yyj382 > l
|
|
} else {
|
|
yyb382 = r.CheckBreak()
|
|
}
|
|
if yyb382 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Capacity = nil
|
|
} else {
|
|
yyv383 := &x.Capacity
|
|
yyv383.CodecDecodeSelf(d)
|
|
}
|
|
if x.PersistentVolumeSource.GCEPersistentDisk == nil {
|
|
x.PersistentVolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
|
|
}
|
|
yyj382++
|
|
if yyhl382 {
|
|
yyb382 = yyj382 > l
|
|
} else {
|
|
yyb382 = r.CheckBreak()
|
|
}
|
|
if yyb382 {
|
|
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)
|
|
}
|
|
yyj382++
|
|
if yyhl382 {
|
|
yyb382 = yyj382 > l
|
|
} else {
|
|
yyb382 = r.CheckBreak()
|
|
}
|
|
if yyb382 {
|
|
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)
|
|
}
|
|
yyj382++
|
|
if yyhl382 {
|
|
yyb382 = yyj382 > l
|
|
} else {
|
|
yyb382 = r.CheckBreak()
|
|
}
|
|
if yyb382 {
|
|
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)
|
|
}
|
|
yyj382++
|
|
if yyhl382 {
|
|
yyb382 = yyj382 > l
|
|
} else {
|
|
yyb382 = r.CheckBreak()
|
|
}
|
|
if yyb382 {
|
|
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)
|
|
}
|
|
yyj382++
|
|
if yyhl382 {
|
|
yyb382 = yyj382 > l
|
|
} else {
|
|
yyb382 = r.CheckBreak()
|
|
}
|
|
if yyb382 {
|
|
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)
|
|
}
|
|
yyj382++
|
|
if yyhl382 {
|
|
yyb382 = yyj382 > l
|
|
} else {
|
|
yyb382 = r.CheckBreak()
|
|
}
|
|
if yyb382 {
|
|
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.Quobyte == nil {
|
|
x.PersistentVolumeSource.Quobyte = new(QuobyteVolumeSource)
|
|
}
|
|
yyj382++
|
|
if yyhl382 {
|
|
yyb382 = yyj382 > l
|
|
} else {
|
|
yyb382 = r.CheckBreak()
|
|
}
|
|
if yyb382 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.Quobyte != nil {
|
|
x.Quobyte = nil
|
|
}
|
|
} else {
|
|
if x.Quobyte == nil {
|
|
x.Quobyte = new(QuobyteVolumeSource)
|
|
}
|
|
x.Quobyte.CodecDecodeSelf(d)
|
|
}
|
|
if x.PersistentVolumeSource.ISCSI == nil {
|
|
x.PersistentVolumeSource.ISCSI = new(ISCSIVolumeSource)
|
|
}
|
|
yyj382++
|
|
if yyhl382 {
|
|
yyb382 = yyj382 > l
|
|
} else {
|
|
yyb382 = r.CheckBreak()
|
|
}
|
|
if yyb382 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.ISCSI != nil {
|
|
x.ISCSI = nil
|
|
}
|
|
} else {
|
|
if x.ISCSI == nil {
|
|
x.ISCSI = new(ISCSIVolumeSource)
|
|
}
|
|
x.ISCSI.CodecDecodeSelf(d)
|
|
}
|
|
if x.PersistentVolumeSource.FlexVolume == nil {
|
|
x.PersistentVolumeSource.FlexVolume = new(FlexVolumeSource)
|
|
}
|
|
yyj382++
|
|
if yyhl382 {
|
|
yyb382 = yyj382 > l
|
|
} else {
|
|
yyb382 = r.CheckBreak()
|
|
}
|
|
if yyb382 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.FlexVolume != nil {
|
|
x.FlexVolume = nil
|
|
}
|
|
} else {
|
|
if x.FlexVolume == nil {
|
|
x.FlexVolume = new(FlexVolumeSource)
|
|
}
|
|
x.FlexVolume.CodecDecodeSelf(d)
|
|
}
|
|
if x.PersistentVolumeSource.Cinder == nil {
|
|
x.PersistentVolumeSource.Cinder = new(CinderVolumeSource)
|
|
}
|
|
yyj382++
|
|
if yyhl382 {
|
|
yyb382 = yyj382 > l
|
|
} else {
|
|
yyb382 = r.CheckBreak()
|
|
}
|
|
if yyb382 {
|
|
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)
|
|
}
|
|
yyj382++
|
|
if yyhl382 {
|
|
yyb382 = yyj382 > l
|
|
} else {
|
|
yyb382 = r.CheckBreak()
|
|
}
|
|
if yyb382 {
|
|
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)
|
|
}
|
|
yyj382++
|
|
if yyhl382 {
|
|
yyb382 = yyj382 > l
|
|
} else {
|
|
yyb382 = r.CheckBreak()
|
|
}
|
|
if yyb382 {
|
|
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)
|
|
}
|
|
yyj382++
|
|
if yyhl382 {
|
|
yyb382 = yyj382 > l
|
|
} else {
|
|
yyb382 = r.CheckBreak()
|
|
}
|
|
if yyb382 {
|
|
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.PersistentVolumeSource.AzureFile == nil {
|
|
x.PersistentVolumeSource.AzureFile = new(AzureFileVolumeSource)
|
|
}
|
|
yyj382++
|
|
if yyhl382 {
|
|
yyb382 = yyj382 > l
|
|
} else {
|
|
yyb382 = r.CheckBreak()
|
|
}
|
|
if yyb382 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.AzureFile != nil {
|
|
x.AzureFile = nil
|
|
}
|
|
} else {
|
|
if x.AzureFile == nil {
|
|
x.AzureFile = new(AzureFileVolumeSource)
|
|
}
|
|
x.AzureFile.CodecDecodeSelf(d)
|
|
}
|
|
if x.PersistentVolumeSource.VsphereVolume == nil {
|
|
x.PersistentVolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
|
|
}
|
|
yyj382++
|
|
if yyhl382 {
|
|
yyb382 = yyj382 > l
|
|
} else {
|
|
yyb382 = r.CheckBreak()
|
|
}
|
|
if yyb382 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.VsphereVolume != nil {
|
|
x.VsphereVolume = nil
|
|
}
|
|
} else {
|
|
if x.VsphereVolume == nil {
|
|
x.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
|
|
}
|
|
x.VsphereVolume.CodecDecodeSelf(d)
|
|
}
|
|
yyj382++
|
|
if yyhl382 {
|
|
yyb382 = yyj382 > l
|
|
} else {
|
|
yyb382 = r.CheckBreak()
|
|
}
|
|
if yyb382 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.AccessModes = nil
|
|
} else {
|
|
yyv399 := &x.AccessModes
|
|
yym400 := z.DecBinary()
|
|
_ = yym400
|
|
if false {
|
|
} else {
|
|
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv399), d)
|
|
}
|
|
}
|
|
yyj382++
|
|
if yyhl382 {
|
|
yyb382 = yyj382 > l
|
|
} else {
|
|
yyb382 = r.CheckBreak()
|
|
}
|
|
if yyb382 {
|
|
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)
|
|
}
|
|
yyj382++
|
|
if yyhl382 {
|
|
yyb382 = yyj382 > l
|
|
} else {
|
|
yyb382 = r.CheckBreak()
|
|
}
|
|
if yyb382 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.PersistentVolumeReclaimPolicy = ""
|
|
} else {
|
|
x.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimPolicy(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj382++
|
|
if yyhl382 {
|
|
yyb382 = yyj382 > l
|
|
} else {
|
|
yyb382 = r.CheckBreak()
|
|
}
|
|
if yyb382 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj382-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x PersistentVolumeReclaimPolicy) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym403 := z.EncBinary()
|
|
_ = yym403
|
|
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
|
|
yym404 := z.DecBinary()
|
|
_ = yym404
|
|
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 {
|
|
yym405 := z.EncBinary()
|
|
_ = yym405
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep406 := !z.EncBinary()
|
|
yy2arr406 := z.EncBasicHandle().StructToArray
|
|
var yyq406 [3]bool
|
|
_, _, _ = yysep406, yyq406, yy2arr406
|
|
const yyr406 bool = false
|
|
yyq406[0] = x.Phase != ""
|
|
yyq406[1] = x.Message != ""
|
|
yyq406[2] = x.Reason != ""
|
|
var yynn406 int
|
|
if yyr406 || yy2arr406 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn406 = 0
|
|
for _, b := range yyq406 {
|
|
if b {
|
|
yynn406++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn406)
|
|
yynn406 = 0
|
|
}
|
|
if yyr406 || yy2arr406 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq406[0] {
|
|
x.Phase.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq406[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("phase"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Phase.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr406 || yy2arr406 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq406[1] {
|
|
yym409 := z.EncBinary()
|
|
_ = yym409
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq406[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("message"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym410 := z.EncBinary()
|
|
_ = yym410
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
}
|
|
}
|
|
if yyr406 || yy2arr406 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq406[2] {
|
|
yym412 := z.EncBinary()
|
|
_ = yym412
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq406[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("reason"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym413 := z.EncBinary()
|
|
_ = yym413
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
|
|
}
|
|
}
|
|
}
|
|
if yyr406 || yy2arr406 {
|
|
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
|
|
yym414 := z.DecBinary()
|
|
_ = yym414
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct415 := r.ContainerType()
|
|
if yyct415 == codecSelferValueTypeMap1234 {
|
|
yyl415 := r.ReadMapStart()
|
|
if yyl415 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl415, d)
|
|
}
|
|
} else if yyct415 == codecSelferValueTypeArray1234 {
|
|
yyl415 := r.ReadArrayStart()
|
|
if yyl415 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl415, 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 yys416Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys416Slc
|
|
var yyhl416 bool = l >= 0
|
|
for yyj416 := 0; ; yyj416++ {
|
|
if yyhl416 {
|
|
if yyj416 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys416Slc = r.DecodeBytes(yys416Slc, true, true)
|
|
yys416 := string(yys416Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys416 {
|
|
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, yys416)
|
|
} // end switch yys416
|
|
} // end for yyj416
|
|
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 yyj420 int
|
|
var yyb420 bool
|
|
var yyhl420 bool = l >= 0
|
|
yyj420++
|
|
if yyhl420 {
|
|
yyb420 = yyj420 > l
|
|
} else {
|
|
yyb420 = r.CheckBreak()
|
|
}
|
|
if yyb420 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Phase = ""
|
|
} else {
|
|
x.Phase = PersistentVolumePhase(r.DecodeString())
|
|
}
|
|
yyj420++
|
|
if yyhl420 {
|
|
yyb420 = yyj420 > l
|
|
} else {
|
|
yyb420 = r.CheckBreak()
|
|
}
|
|
if yyb420 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Message = ""
|
|
} else {
|
|
x.Message = string(r.DecodeString())
|
|
}
|
|
yyj420++
|
|
if yyhl420 {
|
|
yyb420 = yyj420 > l
|
|
} else {
|
|
yyb420 = r.CheckBreak()
|
|
}
|
|
if yyb420 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Reason = ""
|
|
} else {
|
|
x.Reason = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj420++
|
|
if yyhl420 {
|
|
yyb420 = yyj420 > l
|
|
} else {
|
|
yyb420 = r.CheckBreak()
|
|
}
|
|
if yyb420 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj420-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 {
|
|
yym424 := z.EncBinary()
|
|
_ = yym424
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep425 := !z.EncBinary()
|
|
yy2arr425 := z.EncBasicHandle().StructToArray
|
|
var yyq425 [4]bool
|
|
_, _, _ = yysep425, yyq425, yy2arr425
|
|
const yyr425 bool = false
|
|
yyq425[0] = x.Kind != ""
|
|
yyq425[1] = x.APIVersion != ""
|
|
yyq425[2] = true
|
|
var yynn425 int
|
|
if yyr425 || yy2arr425 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn425 = 1
|
|
for _, b := range yyq425 {
|
|
if b {
|
|
yynn425++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn425)
|
|
yynn425 = 0
|
|
}
|
|
if yyr425 || yy2arr425 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq425[0] {
|
|
yym427 := z.EncBinary()
|
|
_ = yym427
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq425[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym428 := z.EncBinary()
|
|
_ = yym428
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr425 || yy2arr425 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq425[1] {
|
|
yym430 := z.EncBinary()
|
|
_ = yym430
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq425[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym431 := z.EncBinary()
|
|
_ = yym431
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr425 || yy2arr425 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq425[2] {
|
|
yy433 := &x.ListMeta
|
|
yym434 := z.EncBinary()
|
|
_ = yym434
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy433) {
|
|
} else {
|
|
z.EncFallback(yy433)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq425[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy435 := &x.ListMeta
|
|
yym436 := z.EncBinary()
|
|
_ = yym436
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy435) {
|
|
} else {
|
|
z.EncFallback(yy435)
|
|
}
|
|
}
|
|
}
|
|
if yyr425 || yy2arr425 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym438 := z.EncBinary()
|
|
_ = yym438
|
|
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 {
|
|
yym439 := z.EncBinary()
|
|
_ = yym439
|
|
if false {
|
|
} else {
|
|
h.encSlicePersistentVolume(([]PersistentVolume)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr425 || yy2arr425 {
|
|
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
|
|
yym440 := z.DecBinary()
|
|
_ = yym440
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct441 := r.ContainerType()
|
|
if yyct441 == codecSelferValueTypeMap1234 {
|
|
yyl441 := r.ReadMapStart()
|
|
if yyl441 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl441, d)
|
|
}
|
|
} else if yyct441 == codecSelferValueTypeArray1234 {
|
|
yyl441 := r.ReadArrayStart()
|
|
if yyl441 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl441, 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 yys442Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys442Slc
|
|
var yyhl442 bool = l >= 0
|
|
for yyj442 := 0; ; yyj442++ {
|
|
if yyhl442 {
|
|
if yyj442 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys442Slc = r.DecodeBytes(yys442Slc, true, true)
|
|
yys442 := string(yys442Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys442 {
|
|
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 {
|
|
yyv445 := &x.ListMeta
|
|
yym446 := z.DecBinary()
|
|
_ = yym446
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv445) {
|
|
} else {
|
|
z.DecFallback(yyv445, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv447 := &x.Items
|
|
yym448 := z.DecBinary()
|
|
_ = yym448
|
|
if false {
|
|
} else {
|
|
h.decSlicePersistentVolume((*[]PersistentVolume)(yyv447), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys442)
|
|
} // end switch yys442
|
|
} // end for yyj442
|
|
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 yyj449 int
|
|
var yyb449 bool
|
|
var yyhl449 bool = l >= 0
|
|
yyj449++
|
|
if yyhl449 {
|
|
yyb449 = yyj449 > l
|
|
} else {
|
|
yyb449 = r.CheckBreak()
|
|
}
|
|
if yyb449 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj449++
|
|
if yyhl449 {
|
|
yyb449 = yyj449 > l
|
|
} else {
|
|
yyb449 = r.CheckBreak()
|
|
}
|
|
if yyb449 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj449++
|
|
if yyhl449 {
|
|
yyb449 = yyj449 > l
|
|
} else {
|
|
yyb449 = r.CheckBreak()
|
|
}
|
|
if yyb449 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv452 := &x.ListMeta
|
|
yym453 := z.DecBinary()
|
|
_ = yym453
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv452) {
|
|
} else {
|
|
z.DecFallback(yyv452, false)
|
|
}
|
|
}
|
|
yyj449++
|
|
if yyhl449 {
|
|
yyb449 = yyj449 > l
|
|
} else {
|
|
yyb449 = r.CheckBreak()
|
|
}
|
|
if yyb449 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv454 := &x.Items
|
|
yym455 := z.DecBinary()
|
|
_ = yym455
|
|
if false {
|
|
} else {
|
|
h.decSlicePersistentVolume((*[]PersistentVolume)(yyv454), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj449++
|
|
if yyhl449 {
|
|
yyb449 = yyj449 > l
|
|
} else {
|
|
yyb449 = r.CheckBreak()
|
|
}
|
|
if yyb449 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj449-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 {
|
|
yym456 := z.EncBinary()
|
|
_ = yym456
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep457 := !z.EncBinary()
|
|
yy2arr457 := z.EncBasicHandle().StructToArray
|
|
var yyq457 [5]bool
|
|
_, _, _ = yysep457, yyq457, yy2arr457
|
|
const yyr457 bool = false
|
|
yyq457[0] = x.Kind != ""
|
|
yyq457[1] = x.APIVersion != ""
|
|
yyq457[2] = true
|
|
yyq457[3] = true
|
|
yyq457[4] = true
|
|
var yynn457 int
|
|
if yyr457 || yy2arr457 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn457 = 0
|
|
for _, b := range yyq457 {
|
|
if b {
|
|
yynn457++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn457)
|
|
yynn457 = 0
|
|
}
|
|
if yyr457 || yy2arr457 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq457[0] {
|
|
yym459 := z.EncBinary()
|
|
_ = yym459
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq457[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym460 := z.EncBinary()
|
|
_ = yym460
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr457 || yy2arr457 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq457[1] {
|
|
yym462 := z.EncBinary()
|
|
_ = yym462
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq457[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym463 := z.EncBinary()
|
|
_ = yym463
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr457 || yy2arr457 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq457[2] {
|
|
yy465 := &x.ObjectMeta
|
|
yy465.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq457[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy466 := &x.ObjectMeta
|
|
yy466.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr457 || yy2arr457 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq457[3] {
|
|
yy468 := &x.Spec
|
|
yy468.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq457[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("spec"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy469 := &x.Spec
|
|
yy469.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr457 || yy2arr457 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq457[4] {
|
|
yy471 := &x.Status
|
|
yy471.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq457[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("status"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy472 := &x.Status
|
|
yy472.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr457 || yy2arr457 {
|
|
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
|
|
yym473 := z.DecBinary()
|
|
_ = yym473
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct474 := r.ContainerType()
|
|
if yyct474 == codecSelferValueTypeMap1234 {
|
|
yyl474 := r.ReadMapStart()
|
|
if yyl474 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl474, d)
|
|
}
|
|
} else if yyct474 == codecSelferValueTypeArray1234 {
|
|
yyl474 := r.ReadArrayStart()
|
|
if yyl474 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl474, 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 yys475Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys475Slc
|
|
var yyhl475 bool = l >= 0
|
|
for yyj475 := 0; ; yyj475++ {
|
|
if yyhl475 {
|
|
if yyj475 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys475Slc = r.DecodeBytes(yys475Slc, true, true)
|
|
yys475 := string(yys475Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys475 {
|
|
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 {
|
|
yyv478 := &x.ObjectMeta
|
|
yyv478.CodecDecodeSelf(d)
|
|
}
|
|
case "spec":
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = PersistentVolumeClaimSpec{}
|
|
} else {
|
|
yyv479 := &x.Spec
|
|
yyv479.CodecDecodeSelf(d)
|
|
}
|
|
case "status":
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = PersistentVolumeClaimStatus{}
|
|
} else {
|
|
yyv480 := &x.Status
|
|
yyv480.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys475)
|
|
} // end switch yys475
|
|
} // end for yyj475
|
|
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 yyj481 int
|
|
var yyb481 bool
|
|
var yyhl481 bool = l >= 0
|
|
yyj481++
|
|
if yyhl481 {
|
|
yyb481 = yyj481 > l
|
|
} else {
|
|
yyb481 = r.CheckBreak()
|
|
}
|
|
if yyb481 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj481++
|
|
if yyhl481 {
|
|
yyb481 = yyj481 > l
|
|
} else {
|
|
yyb481 = r.CheckBreak()
|
|
}
|
|
if yyb481 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj481++
|
|
if yyhl481 {
|
|
yyb481 = yyj481 > l
|
|
} else {
|
|
yyb481 = r.CheckBreak()
|
|
}
|
|
if yyb481 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv484 := &x.ObjectMeta
|
|
yyv484.CodecDecodeSelf(d)
|
|
}
|
|
yyj481++
|
|
if yyhl481 {
|
|
yyb481 = yyj481 > l
|
|
} else {
|
|
yyb481 = r.CheckBreak()
|
|
}
|
|
if yyb481 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = PersistentVolumeClaimSpec{}
|
|
} else {
|
|
yyv485 := &x.Spec
|
|
yyv485.CodecDecodeSelf(d)
|
|
}
|
|
yyj481++
|
|
if yyhl481 {
|
|
yyb481 = yyj481 > l
|
|
} else {
|
|
yyb481 = r.CheckBreak()
|
|
}
|
|
if yyb481 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = PersistentVolumeClaimStatus{}
|
|
} else {
|
|
yyv486 := &x.Status
|
|
yyv486.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj481++
|
|
if yyhl481 {
|
|
yyb481 = yyj481 > l
|
|
} else {
|
|
yyb481 = r.CheckBreak()
|
|
}
|
|
if yyb481 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj481-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *PersistentVolumeClaimList) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym487 := z.EncBinary()
|
|
_ = yym487
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep488 := !z.EncBinary()
|
|
yy2arr488 := z.EncBasicHandle().StructToArray
|
|
var yyq488 [4]bool
|
|
_, _, _ = yysep488, yyq488, yy2arr488
|
|
const yyr488 bool = false
|
|
yyq488[0] = x.Kind != ""
|
|
yyq488[1] = x.APIVersion != ""
|
|
yyq488[2] = true
|
|
var yynn488 int
|
|
if yyr488 || yy2arr488 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn488 = 1
|
|
for _, b := range yyq488 {
|
|
if b {
|
|
yynn488++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn488)
|
|
yynn488 = 0
|
|
}
|
|
if yyr488 || yy2arr488 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq488[0] {
|
|
yym490 := z.EncBinary()
|
|
_ = yym490
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq488[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym491 := z.EncBinary()
|
|
_ = yym491
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr488 || yy2arr488 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq488[1] {
|
|
yym493 := z.EncBinary()
|
|
_ = yym493
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq488[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym494 := z.EncBinary()
|
|
_ = yym494
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr488 || yy2arr488 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq488[2] {
|
|
yy496 := &x.ListMeta
|
|
yym497 := z.EncBinary()
|
|
_ = yym497
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy496) {
|
|
} else {
|
|
z.EncFallback(yy496)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq488[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy498 := &x.ListMeta
|
|
yym499 := z.EncBinary()
|
|
_ = yym499
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy498) {
|
|
} else {
|
|
z.EncFallback(yy498)
|
|
}
|
|
}
|
|
}
|
|
if yyr488 || yy2arr488 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym501 := z.EncBinary()
|
|
_ = yym501
|
|
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 {
|
|
yym502 := z.EncBinary()
|
|
_ = yym502
|
|
if false {
|
|
} else {
|
|
h.encSlicePersistentVolumeClaim(([]PersistentVolumeClaim)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr488 || yy2arr488 {
|
|
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
|
|
yym503 := z.DecBinary()
|
|
_ = yym503
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct504 := r.ContainerType()
|
|
if yyct504 == codecSelferValueTypeMap1234 {
|
|
yyl504 := r.ReadMapStart()
|
|
if yyl504 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl504, d)
|
|
}
|
|
} else if yyct504 == codecSelferValueTypeArray1234 {
|
|
yyl504 := r.ReadArrayStart()
|
|
if yyl504 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl504, 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 yys505Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys505Slc
|
|
var yyhl505 bool = l >= 0
|
|
for yyj505 := 0; ; yyj505++ {
|
|
if yyhl505 {
|
|
if yyj505 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys505Slc = r.DecodeBytes(yys505Slc, true, true)
|
|
yys505 := string(yys505Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys505 {
|
|
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 {
|
|
yyv508 := &x.ListMeta
|
|
yym509 := z.DecBinary()
|
|
_ = yym509
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv508) {
|
|
} else {
|
|
z.DecFallback(yyv508, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv510 := &x.Items
|
|
yym511 := z.DecBinary()
|
|
_ = yym511
|
|
if false {
|
|
} else {
|
|
h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv510), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys505)
|
|
} // end switch yys505
|
|
} // end for yyj505
|
|
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 yyj512 int
|
|
var yyb512 bool
|
|
var yyhl512 bool = l >= 0
|
|
yyj512++
|
|
if yyhl512 {
|
|
yyb512 = yyj512 > l
|
|
} else {
|
|
yyb512 = r.CheckBreak()
|
|
}
|
|
if yyb512 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj512++
|
|
if yyhl512 {
|
|
yyb512 = yyj512 > l
|
|
} else {
|
|
yyb512 = r.CheckBreak()
|
|
}
|
|
if yyb512 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj512++
|
|
if yyhl512 {
|
|
yyb512 = yyj512 > l
|
|
} else {
|
|
yyb512 = r.CheckBreak()
|
|
}
|
|
if yyb512 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv515 := &x.ListMeta
|
|
yym516 := z.DecBinary()
|
|
_ = yym516
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv515) {
|
|
} else {
|
|
z.DecFallback(yyv515, false)
|
|
}
|
|
}
|
|
yyj512++
|
|
if yyhl512 {
|
|
yyb512 = yyj512 > l
|
|
} else {
|
|
yyb512 = r.CheckBreak()
|
|
}
|
|
if yyb512 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv517 := &x.Items
|
|
yym518 := z.DecBinary()
|
|
_ = yym518
|
|
if false {
|
|
} else {
|
|
h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv517), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj512++
|
|
if yyhl512 {
|
|
yyb512 = yyj512 > l
|
|
} else {
|
|
yyb512 = r.CheckBreak()
|
|
}
|
|
if yyb512 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj512-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 {
|
|
yym519 := z.EncBinary()
|
|
_ = yym519
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep520 := !z.EncBinary()
|
|
yy2arr520 := z.EncBasicHandle().StructToArray
|
|
var yyq520 [4]bool
|
|
_, _, _ = yysep520, yyq520, yy2arr520
|
|
const yyr520 bool = false
|
|
yyq520[0] = len(x.AccessModes) != 0
|
|
yyq520[1] = x.Selector != nil
|
|
yyq520[2] = true
|
|
yyq520[3] = x.VolumeName != ""
|
|
var yynn520 int
|
|
if yyr520 || yy2arr520 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn520 = 0
|
|
for _, b := range yyq520 {
|
|
if b {
|
|
yynn520++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn520)
|
|
yynn520 = 0
|
|
}
|
|
if yyr520 || yy2arr520 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq520[0] {
|
|
if x.AccessModes == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym522 := z.EncBinary()
|
|
_ = yym522
|
|
if false {
|
|
} else {
|
|
h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq520[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("accessModes"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.AccessModes == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym523 := z.EncBinary()
|
|
_ = yym523
|
|
if false {
|
|
} else {
|
|
h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr520 || yy2arr520 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq520[1] {
|
|
if x.Selector == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym525 := z.EncBinary()
|
|
_ = yym525
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x.Selector) {
|
|
} else {
|
|
z.EncFallback(x.Selector)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq520[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("selector"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Selector == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym526 := z.EncBinary()
|
|
_ = yym526
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x.Selector) {
|
|
} else {
|
|
z.EncFallback(x.Selector)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr520 || yy2arr520 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq520[2] {
|
|
yy528 := &x.Resources
|
|
yy528.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq520[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("resources"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy529 := &x.Resources
|
|
yy529.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr520 || yy2arr520 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq520[3] {
|
|
yym531 := z.EncBinary()
|
|
_ = yym531
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq520[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("volumeName"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym532 := z.EncBinary()
|
|
_ = yym532
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName))
|
|
}
|
|
}
|
|
}
|
|
if yyr520 || yy2arr520 {
|
|
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
|
|
yym533 := z.DecBinary()
|
|
_ = yym533
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct534 := r.ContainerType()
|
|
if yyct534 == codecSelferValueTypeMap1234 {
|
|
yyl534 := r.ReadMapStart()
|
|
if yyl534 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl534, d)
|
|
}
|
|
} else if yyct534 == codecSelferValueTypeArray1234 {
|
|
yyl534 := r.ReadArrayStart()
|
|
if yyl534 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl534, 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 yys535Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys535Slc
|
|
var yyhl535 bool = l >= 0
|
|
for yyj535 := 0; ; yyj535++ {
|
|
if yyhl535 {
|
|
if yyj535 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys535Slc = r.DecodeBytes(yys535Slc, true, true)
|
|
yys535 := string(yys535Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys535 {
|
|
case "accessModes":
|
|
if r.TryDecodeAsNil() {
|
|
x.AccessModes = nil
|
|
} else {
|
|
yyv536 := &x.AccessModes
|
|
yym537 := z.DecBinary()
|
|
_ = yym537
|
|
if false {
|
|
} else {
|
|
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv536), d)
|
|
}
|
|
}
|
|
case "selector":
|
|
if r.TryDecodeAsNil() {
|
|
if x.Selector != nil {
|
|
x.Selector = nil
|
|
}
|
|
} else {
|
|
if x.Selector == nil {
|
|
x.Selector = new(pkg2_unversioned.LabelSelector)
|
|
}
|
|
yym539 := z.DecBinary()
|
|
_ = yym539
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x.Selector) {
|
|
} else {
|
|
z.DecFallback(x.Selector, false)
|
|
}
|
|
}
|
|
case "resources":
|
|
if r.TryDecodeAsNil() {
|
|
x.Resources = ResourceRequirements{}
|
|
} else {
|
|
yyv540 := &x.Resources
|
|
yyv540.CodecDecodeSelf(d)
|
|
}
|
|
case "volumeName":
|
|
if r.TryDecodeAsNil() {
|
|
x.VolumeName = ""
|
|
} else {
|
|
x.VolumeName = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys535)
|
|
} // end switch yys535
|
|
} // end for yyj535
|
|
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 yyj542 int
|
|
var yyb542 bool
|
|
var yyhl542 bool = l >= 0
|
|
yyj542++
|
|
if yyhl542 {
|
|
yyb542 = yyj542 > l
|
|
} else {
|
|
yyb542 = r.CheckBreak()
|
|
}
|
|
if yyb542 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.AccessModes = nil
|
|
} else {
|
|
yyv543 := &x.AccessModes
|
|
yym544 := z.DecBinary()
|
|
_ = yym544
|
|
if false {
|
|
} else {
|
|
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv543), d)
|
|
}
|
|
}
|
|
yyj542++
|
|
if yyhl542 {
|
|
yyb542 = yyj542 > l
|
|
} else {
|
|
yyb542 = r.CheckBreak()
|
|
}
|
|
if yyb542 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.Selector != nil {
|
|
x.Selector = nil
|
|
}
|
|
} else {
|
|
if x.Selector == nil {
|
|
x.Selector = new(pkg2_unversioned.LabelSelector)
|
|
}
|
|
yym546 := z.DecBinary()
|
|
_ = yym546
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x.Selector) {
|
|
} else {
|
|
z.DecFallback(x.Selector, false)
|
|
}
|
|
}
|
|
yyj542++
|
|
if yyhl542 {
|
|
yyb542 = yyj542 > l
|
|
} else {
|
|
yyb542 = r.CheckBreak()
|
|
}
|
|
if yyb542 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Resources = ResourceRequirements{}
|
|
} else {
|
|
yyv547 := &x.Resources
|
|
yyv547.CodecDecodeSelf(d)
|
|
}
|
|
yyj542++
|
|
if yyhl542 {
|
|
yyb542 = yyj542 > l
|
|
} else {
|
|
yyb542 = r.CheckBreak()
|
|
}
|
|
if yyb542 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.VolumeName = ""
|
|
} else {
|
|
x.VolumeName = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj542++
|
|
if yyhl542 {
|
|
yyb542 = yyj542 > l
|
|
} else {
|
|
yyb542 = r.CheckBreak()
|
|
}
|
|
if yyb542 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj542-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 {
|
|
yym549 := z.EncBinary()
|
|
_ = yym549
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep550 := !z.EncBinary()
|
|
yy2arr550 := z.EncBasicHandle().StructToArray
|
|
var yyq550 [3]bool
|
|
_, _, _ = yysep550, yyq550, yy2arr550
|
|
const yyr550 bool = false
|
|
yyq550[0] = x.Phase != ""
|
|
yyq550[1] = len(x.AccessModes) != 0
|
|
yyq550[2] = len(x.Capacity) != 0
|
|
var yynn550 int
|
|
if yyr550 || yy2arr550 {
|
|
r.EncodeArrayStart(3)
|
|
} 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] {
|
|
x.Phase.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq550[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("phase"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Phase.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr550 || yy2arr550 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq550[1] {
|
|
if x.AccessModes == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym553 := z.EncBinary()
|
|
_ = yym553
|
|
if false {
|
|
} else {
|
|
h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq550[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("accessModes"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.AccessModes == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym554 := z.EncBinary()
|
|
_ = yym554
|
|
if false {
|
|
} else {
|
|
h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr550 || yy2arr550 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq550[2] {
|
|
if x.Capacity == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Capacity.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq550[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 yyr550 || yy2arr550 {
|
|
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
|
|
yym556 := z.DecBinary()
|
|
_ = yym556
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct557 := r.ContainerType()
|
|
if yyct557 == codecSelferValueTypeMap1234 {
|
|
yyl557 := r.ReadMapStart()
|
|
if yyl557 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl557, d)
|
|
}
|
|
} else if yyct557 == codecSelferValueTypeArray1234 {
|
|
yyl557 := r.ReadArrayStart()
|
|
if yyl557 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl557, 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 yys558Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys558Slc
|
|
var yyhl558 bool = l >= 0
|
|
for yyj558 := 0; ; yyj558++ {
|
|
if yyhl558 {
|
|
if yyj558 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys558Slc = r.DecodeBytes(yys558Slc, true, true)
|
|
yys558 := string(yys558Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys558 {
|
|
case "phase":
|
|
if r.TryDecodeAsNil() {
|
|
x.Phase = ""
|
|
} else {
|
|
x.Phase = PersistentVolumeClaimPhase(r.DecodeString())
|
|
}
|
|
case "accessModes":
|
|
if r.TryDecodeAsNil() {
|
|
x.AccessModes = nil
|
|
} else {
|
|
yyv560 := &x.AccessModes
|
|
yym561 := z.DecBinary()
|
|
_ = yym561
|
|
if false {
|
|
} else {
|
|
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv560), d)
|
|
}
|
|
}
|
|
case "capacity":
|
|
if r.TryDecodeAsNil() {
|
|
x.Capacity = nil
|
|
} else {
|
|
yyv562 := &x.Capacity
|
|
yyv562.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys558)
|
|
} // end switch yys558
|
|
} // end for yyj558
|
|
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 yyj563 int
|
|
var yyb563 bool
|
|
var yyhl563 bool = l >= 0
|
|
yyj563++
|
|
if yyhl563 {
|
|
yyb563 = yyj563 > l
|
|
} else {
|
|
yyb563 = r.CheckBreak()
|
|
}
|
|
if yyb563 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Phase = ""
|
|
} else {
|
|
x.Phase = PersistentVolumeClaimPhase(r.DecodeString())
|
|
}
|
|
yyj563++
|
|
if yyhl563 {
|
|
yyb563 = yyj563 > l
|
|
} else {
|
|
yyb563 = r.CheckBreak()
|
|
}
|
|
if yyb563 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.AccessModes = nil
|
|
} else {
|
|
yyv565 := &x.AccessModes
|
|
yym566 := z.DecBinary()
|
|
_ = yym566
|
|
if false {
|
|
} else {
|
|
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv565), d)
|
|
}
|
|
}
|
|
yyj563++
|
|
if yyhl563 {
|
|
yyb563 = yyj563 > l
|
|
} else {
|
|
yyb563 = r.CheckBreak()
|
|
}
|
|
if yyb563 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Capacity = nil
|
|
} else {
|
|
yyv567 := &x.Capacity
|
|
yyv567.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj563++
|
|
if yyhl563 {
|
|
yyb563 = yyj563 > l
|
|
} else {
|
|
yyb563 = r.CheckBreak()
|
|
}
|
|
if yyb563 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj563-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x PersistentVolumeAccessMode) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym568 := z.EncBinary()
|
|
_ = yym568
|
|
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
|
|
yym569 := z.DecBinary()
|
|
_ = yym569
|
|
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
|
|
yym570 := z.EncBinary()
|
|
_ = yym570
|
|
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
|
|
yym571 := z.DecBinary()
|
|
_ = yym571
|
|
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
|
|
yym572 := z.EncBinary()
|
|
_ = yym572
|
|
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
|
|
yym573 := z.DecBinary()
|
|
_ = yym573
|
|
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 {
|
|
yym574 := z.EncBinary()
|
|
_ = yym574
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep575 := !z.EncBinary()
|
|
yy2arr575 := z.EncBasicHandle().StructToArray
|
|
var yyq575 [1]bool
|
|
_, _, _ = yysep575, yyq575, yy2arr575
|
|
const yyr575 bool = false
|
|
var yynn575 int
|
|
if yyr575 || yy2arr575 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn575 = 1
|
|
for _, b := range yyq575 {
|
|
if b {
|
|
yynn575++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn575)
|
|
yynn575 = 0
|
|
}
|
|
if yyr575 || yy2arr575 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym577 := z.EncBinary()
|
|
_ = yym577
|
|
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)
|
|
yym578 := z.EncBinary()
|
|
_ = yym578
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
|
|
}
|
|
}
|
|
if yyr575 || yy2arr575 {
|
|
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
|
|
yym579 := z.DecBinary()
|
|
_ = yym579
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct580 := r.ContainerType()
|
|
if yyct580 == codecSelferValueTypeMap1234 {
|
|
yyl580 := r.ReadMapStart()
|
|
if yyl580 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl580, d)
|
|
}
|
|
} else if yyct580 == codecSelferValueTypeArray1234 {
|
|
yyl580 := r.ReadArrayStart()
|
|
if yyl580 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl580, 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 yys581Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys581Slc
|
|
var yyhl581 bool = l >= 0
|
|
for yyj581 := 0; ; yyj581++ {
|
|
if yyhl581 {
|
|
if yyj581 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys581Slc = r.DecodeBytes(yys581Slc, true, true)
|
|
yys581 := string(yys581Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys581 {
|
|
case "path":
|
|
if r.TryDecodeAsNil() {
|
|
x.Path = ""
|
|
} else {
|
|
x.Path = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys581)
|
|
} // end switch yys581
|
|
} // end for yyj581
|
|
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 yyj583 int
|
|
var yyb583 bool
|
|
var yyhl583 bool = l >= 0
|
|
yyj583++
|
|
if yyhl583 {
|
|
yyb583 = yyj583 > l
|
|
} else {
|
|
yyb583 = r.CheckBreak()
|
|
}
|
|
if yyb583 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Path = ""
|
|
} else {
|
|
x.Path = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj583++
|
|
if yyhl583 {
|
|
yyb583 = yyj583 > l
|
|
} else {
|
|
yyb583 = r.CheckBreak()
|
|
}
|
|
if yyb583 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj583-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 {
|
|
yym585 := z.EncBinary()
|
|
_ = yym585
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep586 := !z.EncBinary()
|
|
yy2arr586 := z.EncBasicHandle().StructToArray
|
|
var yyq586 [1]bool
|
|
_, _, _ = yysep586, yyq586, yy2arr586
|
|
const yyr586 bool = false
|
|
yyq586[0] = x.Medium != ""
|
|
var yynn586 int
|
|
if yyr586 || yy2arr586 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn586 = 0
|
|
for _, b := range yyq586 {
|
|
if b {
|
|
yynn586++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn586)
|
|
yynn586 = 0
|
|
}
|
|
if yyr586 || yy2arr586 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq586[0] {
|
|
x.Medium.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq586[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("medium"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Medium.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr586 || yy2arr586 {
|
|
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
|
|
yym588 := z.DecBinary()
|
|
_ = yym588
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct589 := r.ContainerType()
|
|
if yyct589 == codecSelferValueTypeMap1234 {
|
|
yyl589 := r.ReadMapStart()
|
|
if yyl589 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl589, d)
|
|
}
|
|
} else if yyct589 == codecSelferValueTypeArray1234 {
|
|
yyl589 := r.ReadArrayStart()
|
|
if yyl589 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl589, 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 yys590Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys590Slc
|
|
var yyhl590 bool = l >= 0
|
|
for yyj590 := 0; ; yyj590++ {
|
|
if yyhl590 {
|
|
if yyj590 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys590Slc = r.DecodeBytes(yys590Slc, true, true)
|
|
yys590 := string(yys590Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys590 {
|
|
case "medium":
|
|
if r.TryDecodeAsNil() {
|
|
x.Medium = ""
|
|
} else {
|
|
x.Medium = StorageMedium(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys590)
|
|
} // end switch yys590
|
|
} // end for yyj590
|
|
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 yyj592 int
|
|
var yyb592 bool
|
|
var yyhl592 bool = l >= 0
|
|
yyj592++
|
|
if yyhl592 {
|
|
yyb592 = yyj592 > l
|
|
} else {
|
|
yyb592 = r.CheckBreak()
|
|
}
|
|
if yyb592 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Medium = ""
|
|
} else {
|
|
x.Medium = StorageMedium(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj592++
|
|
if yyhl592 {
|
|
yyb592 = yyj592 > l
|
|
} else {
|
|
yyb592 = r.CheckBreak()
|
|
}
|
|
if yyb592 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj592-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x StorageMedium) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym594 := z.EncBinary()
|
|
_ = yym594
|
|
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
|
|
yym595 := z.DecBinary()
|
|
_ = yym595
|
|
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
|
|
yym596 := z.EncBinary()
|
|
_ = yym596
|
|
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
|
|
yym597 := z.DecBinary()
|
|
_ = yym597
|
|
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 {
|
|
yym598 := z.EncBinary()
|
|
_ = yym598
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep599 := !z.EncBinary()
|
|
yy2arr599 := z.EncBasicHandle().StructToArray
|
|
var yyq599 [4]bool
|
|
_, _, _ = yysep599, yyq599, yy2arr599
|
|
const yyr599 bool = false
|
|
yyq599[1] = x.FSType != ""
|
|
yyq599[2] = x.Partition != 0
|
|
yyq599[3] = x.ReadOnly != false
|
|
var yynn599 int
|
|
if yyr599 || yy2arr599 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn599 = 1
|
|
for _, b := range yyq599 {
|
|
if b {
|
|
yynn599++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn599)
|
|
yynn599 = 0
|
|
}
|
|
if yyr599 || yy2arr599 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym601 := z.EncBinary()
|
|
_ = yym601
|
|
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)
|
|
yym602 := z.EncBinary()
|
|
_ = yym602
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.PDName))
|
|
}
|
|
}
|
|
if yyr599 || yy2arr599 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq599[1] {
|
|
yym604 := z.EncBinary()
|
|
_ = yym604
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq599[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym605 := z.EncBinary()
|
|
_ = yym605
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
|
|
}
|
|
}
|
|
}
|
|
if yyr599 || yy2arr599 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq599[2] {
|
|
yym607 := z.EncBinary()
|
|
_ = yym607
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Partition))
|
|
}
|
|
} else {
|
|
r.EncodeInt(0)
|
|
}
|
|
} else {
|
|
if yyq599[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("partition"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym608 := z.EncBinary()
|
|
_ = yym608
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Partition))
|
|
}
|
|
}
|
|
}
|
|
if yyr599 || yy2arr599 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq599[3] {
|
|
yym610 := z.EncBinary()
|
|
_ = yym610
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq599[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym611 := z.EncBinary()
|
|
_ = yym611
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
}
|
|
}
|
|
if yyr599 || yy2arr599 {
|
|
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
|
|
yym612 := z.DecBinary()
|
|
_ = yym612
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct613 := r.ContainerType()
|
|
if yyct613 == codecSelferValueTypeMap1234 {
|
|
yyl613 := r.ReadMapStart()
|
|
if yyl613 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl613, d)
|
|
}
|
|
} else if yyct613 == codecSelferValueTypeArray1234 {
|
|
yyl613 := r.ReadArrayStart()
|
|
if yyl613 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl613, 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 yys614Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys614Slc
|
|
var yyhl614 bool = l >= 0
|
|
for yyj614 := 0; ; yyj614++ {
|
|
if yyhl614 {
|
|
if yyj614 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys614Slc = r.DecodeBytes(yys614Slc, true, true)
|
|
yys614 := string(yys614Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys614 {
|
|
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 = int32(r.DecodeInt(32))
|
|
}
|
|
case "readOnly":
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys614)
|
|
} // end switch yys614
|
|
} // end for yyj614
|
|
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 yyj619 int
|
|
var yyb619 bool
|
|
var yyhl619 bool = l >= 0
|
|
yyj619++
|
|
if yyhl619 {
|
|
yyb619 = yyj619 > l
|
|
} else {
|
|
yyb619 = r.CheckBreak()
|
|
}
|
|
if yyb619 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.PDName = ""
|
|
} else {
|
|
x.PDName = string(r.DecodeString())
|
|
}
|
|
yyj619++
|
|
if yyhl619 {
|
|
yyb619 = yyj619 > l
|
|
} else {
|
|
yyb619 = r.CheckBreak()
|
|
}
|
|
if yyb619 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.FSType = ""
|
|
} else {
|
|
x.FSType = string(r.DecodeString())
|
|
}
|
|
yyj619++
|
|
if yyhl619 {
|
|
yyb619 = yyj619 > l
|
|
} else {
|
|
yyb619 = r.CheckBreak()
|
|
}
|
|
if yyb619 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Partition = 0
|
|
} else {
|
|
x.Partition = int32(r.DecodeInt(32))
|
|
}
|
|
yyj619++
|
|
if yyhl619 {
|
|
yyb619 = yyj619 > l
|
|
} else {
|
|
yyb619 = r.CheckBreak()
|
|
}
|
|
if yyb619 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
for {
|
|
yyj619++
|
|
if yyhl619 {
|
|
yyb619 = yyj619 > l
|
|
} else {
|
|
yyb619 = r.CheckBreak()
|
|
}
|
|
if yyb619 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj619-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 {
|
|
yym624 := z.EncBinary()
|
|
_ = yym624
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep625 := !z.EncBinary()
|
|
yy2arr625 := z.EncBasicHandle().StructToArray
|
|
var yyq625 [6]bool
|
|
_, _, _ = yysep625, yyq625, yy2arr625
|
|
const yyr625 bool = false
|
|
yyq625[0] = x.TargetPortal != ""
|
|
yyq625[1] = x.IQN != ""
|
|
yyq625[2] = x.Lun != 0
|
|
yyq625[3] = x.ISCSIInterface != ""
|
|
yyq625[4] = x.FSType != ""
|
|
yyq625[5] = x.ReadOnly != false
|
|
var yynn625 int
|
|
if yyr625 || yy2arr625 {
|
|
r.EncodeArrayStart(6)
|
|
} else {
|
|
yynn625 = 0
|
|
for _, b := range yyq625 {
|
|
if b {
|
|
yynn625++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn625)
|
|
yynn625 = 0
|
|
}
|
|
if yyr625 || yy2arr625 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq625[0] {
|
|
yym627 := z.EncBinary()
|
|
_ = yym627
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.TargetPortal))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq625[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("targetPortal"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym628 := z.EncBinary()
|
|
_ = yym628
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.TargetPortal))
|
|
}
|
|
}
|
|
}
|
|
if yyr625 || yy2arr625 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq625[1] {
|
|
yym630 := z.EncBinary()
|
|
_ = yym630
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.IQN))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq625[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("iqn"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym631 := z.EncBinary()
|
|
_ = yym631
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.IQN))
|
|
}
|
|
}
|
|
}
|
|
if yyr625 || yy2arr625 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq625[2] {
|
|
yym633 := z.EncBinary()
|
|
_ = yym633
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Lun))
|
|
}
|
|
} else {
|
|
r.EncodeInt(0)
|
|
}
|
|
} else {
|
|
if yyq625[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("lun"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym634 := z.EncBinary()
|
|
_ = yym634
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Lun))
|
|
}
|
|
}
|
|
}
|
|
if yyr625 || yy2arr625 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq625[3] {
|
|
yym636 := z.EncBinary()
|
|
_ = yym636
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ISCSIInterface))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq625[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("iscsiInterface"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym637 := z.EncBinary()
|
|
_ = yym637
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ISCSIInterface))
|
|
}
|
|
}
|
|
}
|
|
if yyr625 || yy2arr625 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq625[4] {
|
|
yym639 := z.EncBinary()
|
|
_ = yym639
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq625[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym640 := z.EncBinary()
|
|
_ = yym640
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
|
|
}
|
|
}
|
|
}
|
|
if yyr625 || yy2arr625 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq625[5] {
|
|
yym642 := z.EncBinary()
|
|
_ = yym642
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq625[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym643 := z.EncBinary()
|
|
_ = yym643
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
}
|
|
}
|
|
if yyr625 || yy2arr625 {
|
|
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
|
|
yym644 := z.DecBinary()
|
|
_ = yym644
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct645 := r.ContainerType()
|
|
if yyct645 == codecSelferValueTypeMap1234 {
|
|
yyl645 := r.ReadMapStart()
|
|
if yyl645 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl645, d)
|
|
}
|
|
} else if yyct645 == codecSelferValueTypeArray1234 {
|
|
yyl645 := r.ReadArrayStart()
|
|
if yyl645 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl645, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ISCSIVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys646Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys646Slc
|
|
var yyhl646 bool = l >= 0
|
|
for yyj646 := 0; ; yyj646++ {
|
|
if yyhl646 {
|
|
if yyj646 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys646Slc = r.DecodeBytes(yys646Slc, true, true)
|
|
yys646 := string(yys646Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys646 {
|
|
case "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 = int32(r.DecodeInt(32))
|
|
}
|
|
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, yys646)
|
|
} // end switch yys646
|
|
} // end for yyj646
|
|
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 yyj653 int
|
|
var yyb653 bool
|
|
var yyhl653 bool = l >= 0
|
|
yyj653++
|
|
if yyhl653 {
|
|
yyb653 = yyj653 > l
|
|
} else {
|
|
yyb653 = r.CheckBreak()
|
|
}
|
|
if yyb653 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.TargetPortal = ""
|
|
} else {
|
|
x.TargetPortal = string(r.DecodeString())
|
|
}
|
|
yyj653++
|
|
if yyhl653 {
|
|
yyb653 = yyj653 > l
|
|
} else {
|
|
yyb653 = r.CheckBreak()
|
|
}
|
|
if yyb653 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.IQN = ""
|
|
} else {
|
|
x.IQN = string(r.DecodeString())
|
|
}
|
|
yyj653++
|
|
if yyhl653 {
|
|
yyb653 = yyj653 > l
|
|
} else {
|
|
yyb653 = r.CheckBreak()
|
|
}
|
|
if yyb653 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Lun = 0
|
|
} else {
|
|
x.Lun = int32(r.DecodeInt(32))
|
|
}
|
|
yyj653++
|
|
if yyhl653 {
|
|
yyb653 = yyj653 > l
|
|
} else {
|
|
yyb653 = r.CheckBreak()
|
|
}
|
|
if yyb653 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ISCSIInterface = ""
|
|
} else {
|
|
x.ISCSIInterface = string(r.DecodeString())
|
|
}
|
|
yyj653++
|
|
if yyhl653 {
|
|
yyb653 = yyj653 > l
|
|
} else {
|
|
yyb653 = r.CheckBreak()
|
|
}
|
|
if yyb653 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.FSType = ""
|
|
} else {
|
|
x.FSType = string(r.DecodeString())
|
|
}
|
|
yyj653++
|
|
if yyhl653 {
|
|
yyb653 = yyj653 > l
|
|
} else {
|
|
yyb653 = r.CheckBreak()
|
|
}
|
|
if yyb653 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
for {
|
|
yyj653++
|
|
if yyhl653 {
|
|
yyb653 = yyj653 > l
|
|
} else {
|
|
yyb653 = r.CheckBreak()
|
|
}
|
|
if yyb653 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj653-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *FCVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym660 := z.EncBinary()
|
|
_ = yym660
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep661 := !z.EncBinary()
|
|
yy2arr661 := z.EncBasicHandle().StructToArray
|
|
var yyq661 [4]bool
|
|
_, _, _ = yysep661, yyq661, yy2arr661
|
|
const yyr661 bool = false
|
|
yyq661[2] = x.FSType != ""
|
|
yyq661[3] = x.ReadOnly != false
|
|
var yynn661 int
|
|
if yyr661 || yy2arr661 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn661 = 2
|
|
for _, b := range yyq661 {
|
|
if b {
|
|
yynn661++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn661)
|
|
yynn661 = 0
|
|
}
|
|
if yyr661 || yy2arr661 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.TargetWWNs == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym663 := z.EncBinary()
|
|
_ = yym663
|
|
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 {
|
|
yym664 := z.EncBinary()
|
|
_ = yym664
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.TargetWWNs, false, e)
|
|
}
|
|
}
|
|
}
|
|
if yyr661 || yy2arr661 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Lun == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy666 := *x.Lun
|
|
yym667 := z.EncBinary()
|
|
_ = yym667
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy666))
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("lun"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Lun == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy668 := *x.Lun
|
|
yym669 := z.EncBinary()
|
|
_ = yym669
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy668))
|
|
}
|
|
}
|
|
}
|
|
if yyr661 || yy2arr661 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq661[2] {
|
|
yym671 := z.EncBinary()
|
|
_ = yym671
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq661[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym672 := z.EncBinary()
|
|
_ = yym672
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
|
|
}
|
|
}
|
|
}
|
|
if yyr661 || yy2arr661 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq661[3] {
|
|
yym674 := z.EncBinary()
|
|
_ = yym674
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq661[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym675 := z.EncBinary()
|
|
_ = yym675
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
}
|
|
}
|
|
if yyr661 || yy2arr661 {
|
|
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
|
|
yym676 := z.DecBinary()
|
|
_ = yym676
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct677 := r.ContainerType()
|
|
if yyct677 == codecSelferValueTypeMap1234 {
|
|
yyl677 := r.ReadMapStart()
|
|
if yyl677 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl677, d)
|
|
}
|
|
} else if yyct677 == codecSelferValueTypeArray1234 {
|
|
yyl677 := r.ReadArrayStart()
|
|
if yyl677 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl677, 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 yys678Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys678Slc
|
|
var yyhl678 bool = l >= 0
|
|
for yyj678 := 0; ; yyj678++ {
|
|
if yyhl678 {
|
|
if yyj678 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys678Slc = r.DecodeBytes(yys678Slc, true, true)
|
|
yys678 := string(yys678Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys678 {
|
|
case "targetWWNs":
|
|
if r.TryDecodeAsNil() {
|
|
x.TargetWWNs = nil
|
|
} else {
|
|
yyv679 := &x.TargetWWNs
|
|
yym680 := z.DecBinary()
|
|
_ = yym680
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv679, false, d)
|
|
}
|
|
}
|
|
case "lun":
|
|
if r.TryDecodeAsNil() {
|
|
if x.Lun != nil {
|
|
x.Lun = nil
|
|
}
|
|
} else {
|
|
if x.Lun == nil {
|
|
x.Lun = new(int32)
|
|
}
|
|
yym682 := z.DecBinary()
|
|
_ = yym682
|
|
if false {
|
|
} else {
|
|
*((*int32)(x.Lun)) = int32(r.DecodeInt(32))
|
|
}
|
|
}
|
|
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, yys678)
|
|
} // end switch yys678
|
|
} // end for yyj678
|
|
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 yyj685 int
|
|
var yyb685 bool
|
|
var yyhl685 bool = l >= 0
|
|
yyj685++
|
|
if yyhl685 {
|
|
yyb685 = yyj685 > l
|
|
} else {
|
|
yyb685 = r.CheckBreak()
|
|
}
|
|
if yyb685 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.TargetWWNs = nil
|
|
} else {
|
|
yyv686 := &x.TargetWWNs
|
|
yym687 := z.DecBinary()
|
|
_ = yym687
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv686, false, d)
|
|
}
|
|
}
|
|
yyj685++
|
|
if yyhl685 {
|
|
yyb685 = yyj685 > l
|
|
} else {
|
|
yyb685 = r.CheckBreak()
|
|
}
|
|
if yyb685 {
|
|
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(int32)
|
|
}
|
|
yym689 := z.DecBinary()
|
|
_ = yym689
|
|
if false {
|
|
} else {
|
|
*((*int32)(x.Lun)) = int32(r.DecodeInt(32))
|
|
}
|
|
}
|
|
yyj685++
|
|
if yyhl685 {
|
|
yyb685 = yyj685 > l
|
|
} else {
|
|
yyb685 = r.CheckBreak()
|
|
}
|
|
if yyb685 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.FSType = ""
|
|
} else {
|
|
x.FSType = string(r.DecodeString())
|
|
}
|
|
yyj685++
|
|
if yyhl685 {
|
|
yyb685 = yyj685 > l
|
|
} else {
|
|
yyb685 = r.CheckBreak()
|
|
}
|
|
if yyb685 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
for {
|
|
yyj685++
|
|
if yyhl685 {
|
|
yyb685 = yyj685 > l
|
|
} else {
|
|
yyb685 = r.CheckBreak()
|
|
}
|
|
if yyb685 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj685-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *FlexVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym692 := z.EncBinary()
|
|
_ = yym692
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep693 := !z.EncBinary()
|
|
yy2arr693 := z.EncBasicHandle().StructToArray
|
|
var yyq693 [5]bool
|
|
_, _, _ = yysep693, yyq693, yy2arr693
|
|
const yyr693 bool = false
|
|
yyq693[1] = x.FSType != ""
|
|
yyq693[2] = x.SecretRef != nil
|
|
yyq693[3] = x.ReadOnly != false
|
|
yyq693[4] = len(x.Options) != 0
|
|
var yynn693 int
|
|
if yyr693 || yy2arr693 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn693 = 1
|
|
for _, b := range yyq693 {
|
|
if b {
|
|
yynn693++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn693)
|
|
yynn693 = 0
|
|
}
|
|
if yyr693 || yy2arr693 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym695 := z.EncBinary()
|
|
_ = yym695
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Driver))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("driver"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym696 := z.EncBinary()
|
|
_ = yym696
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Driver))
|
|
}
|
|
}
|
|
if yyr693 || yy2arr693 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq693[1] {
|
|
yym698 := z.EncBinary()
|
|
_ = yym698
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq693[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym699 := z.EncBinary()
|
|
_ = yym699
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
|
|
}
|
|
}
|
|
}
|
|
if yyr693 || yy2arr693 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq693[2] {
|
|
if x.SecretRef == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.SecretRef.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq693[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("secretRef"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.SecretRef == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.SecretRef.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr693 || yy2arr693 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq693[3] {
|
|
yym702 := z.EncBinary()
|
|
_ = yym702
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq693[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym703 := z.EncBinary()
|
|
_ = yym703
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
}
|
|
}
|
|
if yyr693 || yy2arr693 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq693[4] {
|
|
if x.Options == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym705 := z.EncBinary()
|
|
_ = yym705
|
|
if false {
|
|
} else {
|
|
z.F.EncMapStringStringV(x.Options, false, e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq693[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("options"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Options == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym706 := z.EncBinary()
|
|
_ = yym706
|
|
if false {
|
|
} else {
|
|
z.F.EncMapStringStringV(x.Options, false, e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr693 || yy2arr693 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *FlexVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
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 *FlexVolumeSource) 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 "driver":
|
|
if r.TryDecodeAsNil() {
|
|
x.Driver = ""
|
|
} else {
|
|
x.Driver = string(r.DecodeString())
|
|
}
|
|
case "fsType":
|
|
if r.TryDecodeAsNil() {
|
|
x.FSType = ""
|
|
} else {
|
|
x.FSType = string(r.DecodeString())
|
|
}
|
|
case "secretRef":
|
|
if r.TryDecodeAsNil() {
|
|
if x.SecretRef != nil {
|
|
x.SecretRef = nil
|
|
}
|
|
} else {
|
|
if x.SecretRef == nil {
|
|
x.SecretRef = new(LocalObjectReference)
|
|
}
|
|
x.SecretRef.CodecDecodeSelf(d)
|
|
}
|
|
case "readOnly":
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
case "options":
|
|
if r.TryDecodeAsNil() {
|
|
x.Options = nil
|
|
} else {
|
|
yyv714 := &x.Options
|
|
yym715 := z.DecBinary()
|
|
_ = yym715
|
|
if false {
|
|
} else {
|
|
z.F.DecMapStringStringX(yyv714, false, d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys709)
|
|
} // end switch yys709
|
|
} // end for yyj709
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *FlexVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj716 int
|
|
var yyb716 bool
|
|
var yyhl716 bool = l >= 0
|
|
yyj716++
|
|
if yyhl716 {
|
|
yyb716 = yyj716 > l
|
|
} else {
|
|
yyb716 = r.CheckBreak()
|
|
}
|
|
if yyb716 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Driver = ""
|
|
} else {
|
|
x.Driver = string(r.DecodeString())
|
|
}
|
|
yyj716++
|
|
if yyhl716 {
|
|
yyb716 = yyj716 > l
|
|
} else {
|
|
yyb716 = r.CheckBreak()
|
|
}
|
|
if yyb716 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.FSType = ""
|
|
} else {
|
|
x.FSType = string(r.DecodeString())
|
|
}
|
|
yyj716++
|
|
if yyhl716 {
|
|
yyb716 = yyj716 > l
|
|
} else {
|
|
yyb716 = r.CheckBreak()
|
|
}
|
|
if yyb716 {
|
|
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)
|
|
}
|
|
yyj716++
|
|
if yyhl716 {
|
|
yyb716 = yyj716 > l
|
|
} else {
|
|
yyb716 = r.CheckBreak()
|
|
}
|
|
if yyb716 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
yyj716++
|
|
if yyhl716 {
|
|
yyb716 = yyj716 > l
|
|
} else {
|
|
yyb716 = r.CheckBreak()
|
|
}
|
|
if yyb716 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Options = nil
|
|
} else {
|
|
yyv721 := &x.Options
|
|
yym722 := z.DecBinary()
|
|
_ = yym722
|
|
if false {
|
|
} else {
|
|
z.F.DecMapStringStringX(yyv721, false, d)
|
|
}
|
|
}
|
|
for {
|
|
yyj716++
|
|
if yyhl716 {
|
|
yyb716 = yyj716 > l
|
|
} else {
|
|
yyb716 = r.CheckBreak()
|
|
}
|
|
if yyb716 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj716-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *AWSElasticBlockStoreVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym723 := z.EncBinary()
|
|
_ = yym723
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep724 := !z.EncBinary()
|
|
yy2arr724 := z.EncBasicHandle().StructToArray
|
|
var yyq724 [4]bool
|
|
_, _, _ = yysep724, yyq724, yy2arr724
|
|
const yyr724 bool = false
|
|
yyq724[1] = x.FSType != ""
|
|
yyq724[2] = x.Partition != 0
|
|
yyq724[3] = x.ReadOnly != false
|
|
var yynn724 int
|
|
if yyr724 || yy2arr724 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn724 = 1
|
|
for _, b := range yyq724 {
|
|
if b {
|
|
yynn724++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn724)
|
|
yynn724 = 0
|
|
}
|
|
if yyr724 || yy2arr724 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym726 := z.EncBinary()
|
|
_ = yym726
|
|
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)
|
|
yym727 := z.EncBinary()
|
|
_ = yym727
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID))
|
|
}
|
|
}
|
|
if yyr724 || yy2arr724 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq724[1] {
|
|
yym729 := z.EncBinary()
|
|
_ = yym729
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq724[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym730 := z.EncBinary()
|
|
_ = yym730
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
|
|
}
|
|
}
|
|
}
|
|
if yyr724 || yy2arr724 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq724[2] {
|
|
yym732 := z.EncBinary()
|
|
_ = yym732
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Partition))
|
|
}
|
|
} else {
|
|
r.EncodeInt(0)
|
|
}
|
|
} else {
|
|
if yyq724[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("partition"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym733 := z.EncBinary()
|
|
_ = yym733
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Partition))
|
|
}
|
|
}
|
|
}
|
|
if yyr724 || yy2arr724 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq724[3] {
|
|
yym735 := z.EncBinary()
|
|
_ = yym735
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq724[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym736 := z.EncBinary()
|
|
_ = yym736
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
}
|
|
}
|
|
if yyr724 || yy2arr724 {
|
|
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
|
|
yym737 := z.DecBinary()
|
|
_ = yym737
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct738 := r.ContainerType()
|
|
if yyct738 == codecSelferValueTypeMap1234 {
|
|
yyl738 := r.ReadMapStart()
|
|
if yyl738 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl738, d)
|
|
}
|
|
} else if yyct738 == codecSelferValueTypeArray1234 {
|
|
yyl738 := r.ReadArrayStart()
|
|
if yyl738 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl738, 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 yys739Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys739Slc
|
|
var yyhl739 bool = l >= 0
|
|
for yyj739 := 0; ; yyj739++ {
|
|
if yyhl739 {
|
|
if yyj739 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys739Slc = r.DecodeBytes(yys739Slc, true, true)
|
|
yys739 := string(yys739Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys739 {
|
|
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 = int32(r.DecodeInt(32))
|
|
}
|
|
case "readOnly":
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys739)
|
|
} // end switch yys739
|
|
} // end for yyj739
|
|
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 yyj744 int
|
|
var yyb744 bool
|
|
var yyhl744 bool = l >= 0
|
|
yyj744++
|
|
if yyhl744 {
|
|
yyb744 = yyj744 > l
|
|
} else {
|
|
yyb744 = r.CheckBreak()
|
|
}
|
|
if yyb744 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.VolumeID = ""
|
|
} else {
|
|
x.VolumeID = string(r.DecodeString())
|
|
}
|
|
yyj744++
|
|
if yyhl744 {
|
|
yyb744 = yyj744 > l
|
|
} else {
|
|
yyb744 = r.CheckBreak()
|
|
}
|
|
if yyb744 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.FSType = ""
|
|
} else {
|
|
x.FSType = string(r.DecodeString())
|
|
}
|
|
yyj744++
|
|
if yyhl744 {
|
|
yyb744 = yyj744 > l
|
|
} else {
|
|
yyb744 = r.CheckBreak()
|
|
}
|
|
if yyb744 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Partition = 0
|
|
} else {
|
|
x.Partition = int32(r.DecodeInt(32))
|
|
}
|
|
yyj744++
|
|
if yyhl744 {
|
|
yyb744 = yyj744 > l
|
|
} else {
|
|
yyb744 = r.CheckBreak()
|
|
}
|
|
if yyb744 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
for {
|
|
yyj744++
|
|
if yyhl744 {
|
|
yyb744 = yyj744 > l
|
|
} else {
|
|
yyb744 = r.CheckBreak()
|
|
}
|
|
if yyb744 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj744-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 {
|
|
yym749 := z.EncBinary()
|
|
_ = yym749
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep750 := !z.EncBinary()
|
|
yy2arr750 := z.EncBasicHandle().StructToArray
|
|
var yyq750 [3]bool
|
|
_, _, _ = yysep750, yyq750, yy2arr750
|
|
const yyr750 bool = false
|
|
yyq750[1] = x.Revision != ""
|
|
yyq750[2] = x.Directory != ""
|
|
var yynn750 int
|
|
if yyr750 || yy2arr750 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn750 = 1
|
|
for _, b := range yyq750 {
|
|
if b {
|
|
yynn750++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn750)
|
|
yynn750 = 0
|
|
}
|
|
if yyr750 || yy2arr750 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym752 := z.EncBinary()
|
|
_ = yym752
|
|
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)
|
|
yym753 := z.EncBinary()
|
|
_ = yym753
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Repository))
|
|
}
|
|
}
|
|
if yyr750 || yy2arr750 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq750[1] {
|
|
yym755 := z.EncBinary()
|
|
_ = yym755
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Revision))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq750[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("revision"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym756 := z.EncBinary()
|
|
_ = yym756
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Revision))
|
|
}
|
|
}
|
|
}
|
|
if yyr750 || yy2arr750 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq750[2] {
|
|
yym758 := z.EncBinary()
|
|
_ = yym758
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Directory))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq750[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("directory"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym759 := z.EncBinary()
|
|
_ = yym759
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Directory))
|
|
}
|
|
}
|
|
}
|
|
if yyr750 || yy2arr750 {
|
|
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
|
|
yym760 := z.DecBinary()
|
|
_ = yym760
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct761 := r.ContainerType()
|
|
if yyct761 == codecSelferValueTypeMap1234 {
|
|
yyl761 := r.ReadMapStart()
|
|
if yyl761 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl761, d)
|
|
}
|
|
} else if yyct761 == codecSelferValueTypeArray1234 {
|
|
yyl761 := r.ReadArrayStart()
|
|
if yyl761 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl761, 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 yys762Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys762Slc
|
|
var yyhl762 bool = l >= 0
|
|
for yyj762 := 0; ; yyj762++ {
|
|
if yyhl762 {
|
|
if yyj762 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys762Slc = r.DecodeBytes(yys762Slc, true, true)
|
|
yys762 := string(yys762Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys762 {
|
|
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, yys762)
|
|
} // end switch yys762
|
|
} // end for yyj762
|
|
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 yyj766 int
|
|
var yyb766 bool
|
|
var yyhl766 bool = l >= 0
|
|
yyj766++
|
|
if yyhl766 {
|
|
yyb766 = yyj766 > l
|
|
} else {
|
|
yyb766 = r.CheckBreak()
|
|
}
|
|
if yyb766 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Repository = ""
|
|
} else {
|
|
x.Repository = string(r.DecodeString())
|
|
}
|
|
yyj766++
|
|
if yyhl766 {
|
|
yyb766 = yyj766 > l
|
|
} else {
|
|
yyb766 = r.CheckBreak()
|
|
}
|
|
if yyb766 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Revision = ""
|
|
} else {
|
|
x.Revision = string(r.DecodeString())
|
|
}
|
|
yyj766++
|
|
if yyhl766 {
|
|
yyb766 = yyj766 > l
|
|
} else {
|
|
yyb766 = r.CheckBreak()
|
|
}
|
|
if yyb766 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Directory = ""
|
|
} else {
|
|
x.Directory = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj766++
|
|
if yyhl766 {
|
|
yyb766 = yyj766 > l
|
|
} else {
|
|
yyb766 = r.CheckBreak()
|
|
}
|
|
if yyb766 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj766-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 {
|
|
yym770 := z.EncBinary()
|
|
_ = yym770
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep771 := !z.EncBinary()
|
|
yy2arr771 := z.EncBasicHandle().StructToArray
|
|
var yyq771 [3]bool
|
|
_, _, _ = yysep771, yyq771, yy2arr771
|
|
const yyr771 bool = false
|
|
yyq771[0] = x.SecretName != ""
|
|
yyq771[1] = len(x.Items) != 0
|
|
yyq771[2] = x.DefaultMode != nil
|
|
var yynn771 int
|
|
if yyr771 || yy2arr771 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn771 = 0
|
|
for _, b := range yyq771 {
|
|
if b {
|
|
yynn771++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn771)
|
|
yynn771 = 0
|
|
}
|
|
if yyr771 || yy2arr771 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq771[0] {
|
|
yym773 := z.EncBinary()
|
|
_ = yym773
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.SecretName))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq771[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("secretName"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym774 := z.EncBinary()
|
|
_ = yym774
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.SecretName))
|
|
}
|
|
}
|
|
}
|
|
if yyr771 || yy2arr771 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq771[1] {
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym776 := z.EncBinary()
|
|
_ = yym776
|
|
if false {
|
|
} else {
|
|
h.encSliceKeyToPath(([]KeyToPath)(x.Items), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq771[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("items"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym777 := z.EncBinary()
|
|
_ = yym777
|
|
if false {
|
|
} else {
|
|
h.encSliceKeyToPath(([]KeyToPath)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr771 || yy2arr771 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq771[2] {
|
|
if x.DefaultMode == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy779 := *x.DefaultMode
|
|
yym780 := z.EncBinary()
|
|
_ = yym780
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy779))
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq771[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("defaultMode"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.DefaultMode == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy781 := *x.DefaultMode
|
|
yym782 := z.EncBinary()
|
|
_ = yym782
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy781))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr771 || yy2arr771 {
|
|
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
|
|
yym783 := z.DecBinary()
|
|
_ = yym783
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct784 := r.ContainerType()
|
|
if yyct784 == codecSelferValueTypeMap1234 {
|
|
yyl784 := r.ReadMapStart()
|
|
if yyl784 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl784, d)
|
|
}
|
|
} else if yyct784 == codecSelferValueTypeArray1234 {
|
|
yyl784 := r.ReadArrayStart()
|
|
if yyl784 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl784, 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 yys785Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys785Slc
|
|
var yyhl785 bool = l >= 0
|
|
for yyj785 := 0; ; yyj785++ {
|
|
if yyhl785 {
|
|
if yyj785 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys785Slc = r.DecodeBytes(yys785Slc, true, true)
|
|
yys785 := string(yys785Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys785 {
|
|
case "secretName":
|
|
if r.TryDecodeAsNil() {
|
|
x.SecretName = ""
|
|
} else {
|
|
x.SecretName = string(r.DecodeString())
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv787 := &x.Items
|
|
yym788 := z.DecBinary()
|
|
_ = yym788
|
|
if false {
|
|
} else {
|
|
h.decSliceKeyToPath((*[]KeyToPath)(yyv787), d)
|
|
}
|
|
}
|
|
case "defaultMode":
|
|
if r.TryDecodeAsNil() {
|
|
if x.DefaultMode != nil {
|
|
x.DefaultMode = nil
|
|
}
|
|
} else {
|
|
if x.DefaultMode == nil {
|
|
x.DefaultMode = new(int32)
|
|
}
|
|
yym790 := z.DecBinary()
|
|
_ = yym790
|
|
if false {
|
|
} else {
|
|
*((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32))
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys785)
|
|
} // end switch yys785
|
|
} // end for yyj785
|
|
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 yyj791 int
|
|
var yyb791 bool
|
|
var yyhl791 bool = l >= 0
|
|
yyj791++
|
|
if yyhl791 {
|
|
yyb791 = yyj791 > l
|
|
} else {
|
|
yyb791 = r.CheckBreak()
|
|
}
|
|
if yyb791 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.SecretName = ""
|
|
} else {
|
|
x.SecretName = string(r.DecodeString())
|
|
}
|
|
yyj791++
|
|
if yyhl791 {
|
|
yyb791 = yyj791 > l
|
|
} else {
|
|
yyb791 = r.CheckBreak()
|
|
}
|
|
if yyb791 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv793 := &x.Items
|
|
yym794 := z.DecBinary()
|
|
_ = yym794
|
|
if false {
|
|
} else {
|
|
h.decSliceKeyToPath((*[]KeyToPath)(yyv793), d)
|
|
}
|
|
}
|
|
yyj791++
|
|
if yyhl791 {
|
|
yyb791 = yyj791 > l
|
|
} else {
|
|
yyb791 = r.CheckBreak()
|
|
}
|
|
if yyb791 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.DefaultMode != nil {
|
|
x.DefaultMode = nil
|
|
}
|
|
} else {
|
|
if x.DefaultMode == nil {
|
|
x.DefaultMode = new(int32)
|
|
}
|
|
yym796 := z.DecBinary()
|
|
_ = yym796
|
|
if false {
|
|
} else {
|
|
*((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32))
|
|
}
|
|
}
|
|
for {
|
|
yyj791++
|
|
if yyhl791 {
|
|
yyb791 = yyj791 > l
|
|
} else {
|
|
yyb791 = r.CheckBreak()
|
|
}
|
|
if yyb791 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj791-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 {
|
|
yym797 := z.EncBinary()
|
|
_ = yym797
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep798 := !z.EncBinary()
|
|
yy2arr798 := z.EncBasicHandle().StructToArray
|
|
var yyq798 [3]bool
|
|
_, _, _ = yysep798, yyq798, yy2arr798
|
|
const yyr798 bool = false
|
|
yyq798[2] = x.ReadOnly != false
|
|
var yynn798 int
|
|
if yyr798 || yy2arr798 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn798 = 2
|
|
for _, b := range yyq798 {
|
|
if b {
|
|
yynn798++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn798)
|
|
yynn798 = 0
|
|
}
|
|
if yyr798 || yy2arr798 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym800 := z.EncBinary()
|
|
_ = yym800
|
|
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)
|
|
yym801 := z.EncBinary()
|
|
_ = yym801
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Server))
|
|
}
|
|
}
|
|
if yyr798 || yy2arr798 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym803 := z.EncBinary()
|
|
_ = yym803
|
|
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)
|
|
yym804 := z.EncBinary()
|
|
_ = yym804
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
|
|
}
|
|
}
|
|
if yyr798 || yy2arr798 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq798[2] {
|
|
yym806 := z.EncBinary()
|
|
_ = yym806
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq798[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym807 := z.EncBinary()
|
|
_ = yym807
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
}
|
|
}
|
|
if yyr798 || yy2arr798 {
|
|
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
|
|
yym808 := z.DecBinary()
|
|
_ = yym808
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct809 := r.ContainerType()
|
|
if yyct809 == codecSelferValueTypeMap1234 {
|
|
yyl809 := r.ReadMapStart()
|
|
if yyl809 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl809, d)
|
|
}
|
|
} else if yyct809 == codecSelferValueTypeArray1234 {
|
|
yyl809 := r.ReadArrayStart()
|
|
if yyl809 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl809, 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 yys810Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys810Slc
|
|
var yyhl810 bool = l >= 0
|
|
for yyj810 := 0; ; yyj810++ {
|
|
if yyhl810 {
|
|
if yyj810 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys810Slc = r.DecodeBytes(yys810Slc, true, true)
|
|
yys810 := string(yys810Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys810 {
|
|
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, yys810)
|
|
} // end switch yys810
|
|
} // end for yyj810
|
|
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 yyj814 int
|
|
var yyb814 bool
|
|
var yyhl814 bool = l >= 0
|
|
yyj814++
|
|
if yyhl814 {
|
|
yyb814 = yyj814 > l
|
|
} else {
|
|
yyb814 = r.CheckBreak()
|
|
}
|
|
if yyb814 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Server = ""
|
|
} else {
|
|
x.Server = string(r.DecodeString())
|
|
}
|
|
yyj814++
|
|
if yyhl814 {
|
|
yyb814 = yyj814 > l
|
|
} else {
|
|
yyb814 = r.CheckBreak()
|
|
}
|
|
if yyb814 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Path = ""
|
|
} else {
|
|
x.Path = string(r.DecodeString())
|
|
}
|
|
yyj814++
|
|
if yyhl814 {
|
|
yyb814 = yyj814 > l
|
|
} else {
|
|
yyb814 = r.CheckBreak()
|
|
}
|
|
if yyb814 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
for {
|
|
yyj814++
|
|
if yyhl814 {
|
|
yyb814 = yyj814 > l
|
|
} else {
|
|
yyb814 = r.CheckBreak()
|
|
}
|
|
if yyb814 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj814-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *QuobyteVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym818 := z.EncBinary()
|
|
_ = yym818
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep819 := !z.EncBinary()
|
|
yy2arr819 := z.EncBasicHandle().StructToArray
|
|
var yyq819 [5]bool
|
|
_, _, _ = yysep819, yyq819, yy2arr819
|
|
const yyr819 bool = false
|
|
yyq819[2] = x.ReadOnly != false
|
|
yyq819[3] = x.User != ""
|
|
yyq819[4] = x.Group != ""
|
|
var yynn819 int
|
|
if yyr819 || yy2arr819 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn819 = 2
|
|
for _, b := range yyq819 {
|
|
if b {
|
|
yynn819++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn819)
|
|
yynn819 = 0
|
|
}
|
|
if yyr819 || yy2arr819 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym821 := z.EncBinary()
|
|
_ = yym821
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Registry))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("registry"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym822 := z.EncBinary()
|
|
_ = yym822
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Registry))
|
|
}
|
|
}
|
|
if yyr819 || yy2arr819 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym824 := z.EncBinary()
|
|
_ = yym824
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Volume))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("volume"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym825 := z.EncBinary()
|
|
_ = yym825
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Volume))
|
|
}
|
|
}
|
|
if yyr819 || yy2arr819 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq819[2] {
|
|
yym827 := z.EncBinary()
|
|
_ = yym827
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq819[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym828 := z.EncBinary()
|
|
_ = yym828
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
}
|
|
}
|
|
if yyr819 || yy2arr819 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq819[3] {
|
|
yym830 := z.EncBinary()
|
|
_ = yym830
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.User))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq819[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("user"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym831 := z.EncBinary()
|
|
_ = yym831
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.User))
|
|
}
|
|
}
|
|
}
|
|
if yyr819 || yy2arr819 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq819[4] {
|
|
yym833 := z.EncBinary()
|
|
_ = yym833
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Group))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq819[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("group"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym834 := z.EncBinary()
|
|
_ = yym834
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Group))
|
|
}
|
|
}
|
|
}
|
|
if yyr819 || yy2arr819 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *QuobyteVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym835 := z.DecBinary()
|
|
_ = yym835
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct836 := r.ContainerType()
|
|
if yyct836 == codecSelferValueTypeMap1234 {
|
|
yyl836 := r.ReadMapStart()
|
|
if yyl836 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl836, d)
|
|
}
|
|
} else if yyct836 == codecSelferValueTypeArray1234 {
|
|
yyl836 := r.ReadArrayStart()
|
|
if yyl836 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl836, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *QuobyteVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys837Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys837Slc
|
|
var yyhl837 bool = l >= 0
|
|
for yyj837 := 0; ; yyj837++ {
|
|
if yyhl837 {
|
|
if yyj837 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys837Slc = r.DecodeBytes(yys837Slc, true, true)
|
|
yys837 := string(yys837Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys837 {
|
|
case "registry":
|
|
if r.TryDecodeAsNil() {
|
|
x.Registry = ""
|
|
} else {
|
|
x.Registry = string(r.DecodeString())
|
|
}
|
|
case "volume":
|
|
if r.TryDecodeAsNil() {
|
|
x.Volume = ""
|
|
} else {
|
|
x.Volume = string(r.DecodeString())
|
|
}
|
|
case "readOnly":
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
case "user":
|
|
if r.TryDecodeAsNil() {
|
|
x.User = ""
|
|
} else {
|
|
x.User = string(r.DecodeString())
|
|
}
|
|
case "group":
|
|
if r.TryDecodeAsNil() {
|
|
x.Group = ""
|
|
} else {
|
|
x.Group = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys837)
|
|
} // end switch yys837
|
|
} // end for yyj837
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *QuobyteVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj843 int
|
|
var yyb843 bool
|
|
var yyhl843 bool = l >= 0
|
|
yyj843++
|
|
if yyhl843 {
|
|
yyb843 = yyj843 > l
|
|
} else {
|
|
yyb843 = r.CheckBreak()
|
|
}
|
|
if yyb843 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Registry = ""
|
|
} else {
|
|
x.Registry = string(r.DecodeString())
|
|
}
|
|
yyj843++
|
|
if yyhl843 {
|
|
yyb843 = yyj843 > l
|
|
} else {
|
|
yyb843 = r.CheckBreak()
|
|
}
|
|
if yyb843 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Volume = ""
|
|
} else {
|
|
x.Volume = string(r.DecodeString())
|
|
}
|
|
yyj843++
|
|
if yyhl843 {
|
|
yyb843 = yyj843 > l
|
|
} else {
|
|
yyb843 = r.CheckBreak()
|
|
}
|
|
if yyb843 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
yyj843++
|
|
if yyhl843 {
|
|
yyb843 = yyj843 > l
|
|
} else {
|
|
yyb843 = r.CheckBreak()
|
|
}
|
|
if yyb843 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.User = ""
|
|
} else {
|
|
x.User = string(r.DecodeString())
|
|
}
|
|
yyj843++
|
|
if yyhl843 {
|
|
yyb843 = yyj843 > l
|
|
} else {
|
|
yyb843 = r.CheckBreak()
|
|
}
|
|
if yyb843 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Group = ""
|
|
} else {
|
|
x.Group = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj843++
|
|
if yyhl843 {
|
|
yyb843 = yyj843 > l
|
|
} else {
|
|
yyb843 = r.CheckBreak()
|
|
}
|
|
if yyb843 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj843-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 {
|
|
yym849 := z.EncBinary()
|
|
_ = yym849
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep850 := !z.EncBinary()
|
|
yy2arr850 := z.EncBasicHandle().StructToArray
|
|
var yyq850 [3]bool
|
|
_, _, _ = yysep850, yyq850, yy2arr850
|
|
const yyr850 bool = false
|
|
yyq850[2] = x.ReadOnly != false
|
|
var yynn850 int
|
|
if yyr850 || yy2arr850 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn850 = 2
|
|
for _, b := range yyq850 {
|
|
if b {
|
|
yynn850++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn850)
|
|
yynn850 = 0
|
|
}
|
|
if yyr850 || yy2arr850 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym852 := z.EncBinary()
|
|
_ = yym852
|
|
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)
|
|
yym853 := z.EncBinary()
|
|
_ = yym853
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.EndpointsName))
|
|
}
|
|
}
|
|
if yyr850 || yy2arr850 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym855 := z.EncBinary()
|
|
_ = yym855
|
|
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)
|
|
yym856 := z.EncBinary()
|
|
_ = yym856
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
|
|
}
|
|
}
|
|
if yyr850 || yy2arr850 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq850[2] {
|
|
yym858 := z.EncBinary()
|
|
_ = yym858
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq850[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym859 := z.EncBinary()
|
|
_ = yym859
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
}
|
|
}
|
|
if yyr850 || yy2arr850 {
|
|
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
|
|
yym860 := z.DecBinary()
|
|
_ = yym860
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct861 := r.ContainerType()
|
|
if yyct861 == codecSelferValueTypeMap1234 {
|
|
yyl861 := r.ReadMapStart()
|
|
if yyl861 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl861, d)
|
|
}
|
|
} else if yyct861 == codecSelferValueTypeArray1234 {
|
|
yyl861 := r.ReadArrayStart()
|
|
if yyl861 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl861, 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 yys862Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys862Slc
|
|
var yyhl862 bool = l >= 0
|
|
for yyj862 := 0; ; yyj862++ {
|
|
if yyhl862 {
|
|
if yyj862 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys862Slc = r.DecodeBytes(yys862Slc, true, true)
|
|
yys862 := string(yys862Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys862 {
|
|
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, yys862)
|
|
} // end switch yys862
|
|
} // end for yyj862
|
|
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 yyj866 int
|
|
var yyb866 bool
|
|
var yyhl866 bool = l >= 0
|
|
yyj866++
|
|
if yyhl866 {
|
|
yyb866 = yyj866 > l
|
|
} else {
|
|
yyb866 = r.CheckBreak()
|
|
}
|
|
if yyb866 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.EndpointsName = ""
|
|
} else {
|
|
x.EndpointsName = string(r.DecodeString())
|
|
}
|
|
yyj866++
|
|
if yyhl866 {
|
|
yyb866 = yyj866 > l
|
|
} else {
|
|
yyb866 = r.CheckBreak()
|
|
}
|
|
if yyb866 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Path = ""
|
|
} else {
|
|
x.Path = string(r.DecodeString())
|
|
}
|
|
yyj866++
|
|
if yyhl866 {
|
|
yyb866 = yyj866 > l
|
|
} else {
|
|
yyb866 = r.CheckBreak()
|
|
}
|
|
if yyb866 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
for {
|
|
yyj866++
|
|
if yyhl866 {
|
|
yyb866 = yyj866 > l
|
|
} else {
|
|
yyb866 = r.CheckBreak()
|
|
}
|
|
if yyb866 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj866-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 {
|
|
yym870 := z.EncBinary()
|
|
_ = yym870
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep871 := !z.EncBinary()
|
|
yy2arr871 := z.EncBasicHandle().StructToArray
|
|
var yyq871 [8]bool
|
|
_, _, _ = yysep871, yyq871, yy2arr871
|
|
const yyr871 bool = false
|
|
yyq871[2] = x.FSType != ""
|
|
yyq871[3] = x.RBDPool != ""
|
|
yyq871[4] = x.RadosUser != ""
|
|
yyq871[5] = x.Keyring != ""
|
|
yyq871[6] = x.SecretRef != nil
|
|
yyq871[7] = x.ReadOnly != false
|
|
var yynn871 int
|
|
if yyr871 || yy2arr871 {
|
|
r.EncodeArrayStart(8)
|
|
} else {
|
|
yynn871 = 2
|
|
for _, b := range yyq871 {
|
|
if b {
|
|
yynn871++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn871)
|
|
yynn871 = 0
|
|
}
|
|
if yyr871 || yy2arr871 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.CephMonitors == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym873 := z.EncBinary()
|
|
_ = yym873
|
|
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 {
|
|
yym874 := z.EncBinary()
|
|
_ = yym874
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.CephMonitors, false, e)
|
|
}
|
|
}
|
|
}
|
|
if yyr871 || yy2arr871 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym876 := z.EncBinary()
|
|
_ = yym876
|
|
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)
|
|
yym877 := z.EncBinary()
|
|
_ = yym877
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.RBDImage))
|
|
}
|
|
}
|
|
if yyr871 || yy2arr871 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq871[2] {
|
|
yym879 := z.EncBinary()
|
|
_ = yym879
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq871[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym880 := z.EncBinary()
|
|
_ = yym880
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
|
|
}
|
|
}
|
|
}
|
|
if yyr871 || yy2arr871 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq871[3] {
|
|
yym882 := z.EncBinary()
|
|
_ = yym882
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.RBDPool))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq871[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("pool"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym883 := z.EncBinary()
|
|
_ = yym883
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.RBDPool))
|
|
}
|
|
}
|
|
}
|
|
if yyr871 || yy2arr871 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq871[4] {
|
|
yym885 := z.EncBinary()
|
|
_ = yym885
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.RadosUser))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq871[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("user"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym886 := z.EncBinary()
|
|
_ = yym886
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.RadosUser))
|
|
}
|
|
}
|
|
}
|
|
if yyr871 || yy2arr871 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq871[5] {
|
|
yym888 := z.EncBinary()
|
|
_ = yym888
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Keyring))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq871[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("keyring"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym889 := z.EncBinary()
|
|
_ = yym889
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Keyring))
|
|
}
|
|
}
|
|
}
|
|
if yyr871 || yy2arr871 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq871[6] {
|
|
if x.SecretRef == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.SecretRef.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq871[6] {
|
|
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 yyr871 || yy2arr871 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq871[7] {
|
|
yym892 := z.EncBinary()
|
|
_ = yym892
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq871[7] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym893 := z.EncBinary()
|
|
_ = yym893
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
}
|
|
}
|
|
if yyr871 || yy2arr871 {
|
|
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
|
|
yym894 := z.DecBinary()
|
|
_ = yym894
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct895 := r.ContainerType()
|
|
if yyct895 == codecSelferValueTypeMap1234 {
|
|
yyl895 := r.ReadMapStart()
|
|
if yyl895 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl895, d)
|
|
}
|
|
} else if yyct895 == codecSelferValueTypeArray1234 {
|
|
yyl895 := r.ReadArrayStart()
|
|
if yyl895 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl895, 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 yys896Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys896Slc
|
|
var yyhl896 bool = l >= 0
|
|
for yyj896 := 0; ; yyj896++ {
|
|
if yyhl896 {
|
|
if yyj896 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys896Slc = r.DecodeBytes(yys896Slc, true, true)
|
|
yys896 := string(yys896Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys896 {
|
|
case "monitors":
|
|
if r.TryDecodeAsNil() {
|
|
x.CephMonitors = nil
|
|
} else {
|
|
yyv897 := &x.CephMonitors
|
|
yym898 := z.DecBinary()
|
|
_ = yym898
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv897, 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, yys896)
|
|
} // end switch yys896
|
|
} // end for yyj896
|
|
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 yyj906 int
|
|
var yyb906 bool
|
|
var yyhl906 bool = l >= 0
|
|
yyj906++
|
|
if yyhl906 {
|
|
yyb906 = yyj906 > l
|
|
} else {
|
|
yyb906 = r.CheckBreak()
|
|
}
|
|
if yyb906 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.CephMonitors = nil
|
|
} else {
|
|
yyv907 := &x.CephMonitors
|
|
yym908 := z.DecBinary()
|
|
_ = yym908
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv907, false, d)
|
|
}
|
|
}
|
|
yyj906++
|
|
if yyhl906 {
|
|
yyb906 = yyj906 > l
|
|
} else {
|
|
yyb906 = r.CheckBreak()
|
|
}
|
|
if yyb906 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.RBDImage = ""
|
|
} else {
|
|
x.RBDImage = string(r.DecodeString())
|
|
}
|
|
yyj906++
|
|
if yyhl906 {
|
|
yyb906 = yyj906 > l
|
|
} else {
|
|
yyb906 = r.CheckBreak()
|
|
}
|
|
if yyb906 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.FSType = ""
|
|
} else {
|
|
x.FSType = string(r.DecodeString())
|
|
}
|
|
yyj906++
|
|
if yyhl906 {
|
|
yyb906 = yyj906 > l
|
|
} else {
|
|
yyb906 = r.CheckBreak()
|
|
}
|
|
if yyb906 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.RBDPool = ""
|
|
} else {
|
|
x.RBDPool = string(r.DecodeString())
|
|
}
|
|
yyj906++
|
|
if yyhl906 {
|
|
yyb906 = yyj906 > l
|
|
} else {
|
|
yyb906 = r.CheckBreak()
|
|
}
|
|
if yyb906 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.RadosUser = ""
|
|
} else {
|
|
x.RadosUser = string(r.DecodeString())
|
|
}
|
|
yyj906++
|
|
if yyhl906 {
|
|
yyb906 = yyj906 > l
|
|
} else {
|
|
yyb906 = r.CheckBreak()
|
|
}
|
|
if yyb906 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Keyring = ""
|
|
} else {
|
|
x.Keyring = string(r.DecodeString())
|
|
}
|
|
yyj906++
|
|
if yyhl906 {
|
|
yyb906 = yyj906 > l
|
|
} else {
|
|
yyb906 = r.CheckBreak()
|
|
}
|
|
if yyb906 {
|
|
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)
|
|
}
|
|
yyj906++
|
|
if yyhl906 {
|
|
yyb906 = yyj906 > l
|
|
} else {
|
|
yyb906 = r.CheckBreak()
|
|
}
|
|
if yyb906 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
for {
|
|
yyj906++
|
|
if yyhl906 {
|
|
yyb906 = yyj906 > l
|
|
} else {
|
|
yyb906 = r.CheckBreak()
|
|
}
|
|
if yyb906 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj906-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 {
|
|
yym916 := z.EncBinary()
|
|
_ = yym916
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep917 := !z.EncBinary()
|
|
yy2arr917 := z.EncBasicHandle().StructToArray
|
|
var yyq917 [3]bool
|
|
_, _, _ = yysep917, yyq917, yy2arr917
|
|
const yyr917 bool = false
|
|
yyq917[1] = x.FSType != ""
|
|
yyq917[2] = x.ReadOnly != false
|
|
var yynn917 int
|
|
if yyr917 || yy2arr917 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn917 = 1
|
|
for _, b := range yyq917 {
|
|
if b {
|
|
yynn917++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn917)
|
|
yynn917 = 0
|
|
}
|
|
if yyr917 || yy2arr917 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym919 := z.EncBinary()
|
|
_ = yym919
|
|
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)
|
|
yym920 := z.EncBinary()
|
|
_ = yym920
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID))
|
|
}
|
|
}
|
|
if yyr917 || yy2arr917 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq917[1] {
|
|
yym922 := z.EncBinary()
|
|
_ = yym922
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq917[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym923 := z.EncBinary()
|
|
_ = yym923
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
|
|
}
|
|
}
|
|
}
|
|
if yyr917 || yy2arr917 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq917[2] {
|
|
yym925 := z.EncBinary()
|
|
_ = yym925
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq917[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym926 := z.EncBinary()
|
|
_ = yym926
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
}
|
|
}
|
|
if yyr917 || yy2arr917 {
|
|
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
|
|
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 *CinderVolumeSource) 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 "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, yys929)
|
|
} // end switch yys929
|
|
} // end for yyj929
|
|
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 yyj933 int
|
|
var yyb933 bool
|
|
var yyhl933 bool = l >= 0
|
|
yyj933++
|
|
if yyhl933 {
|
|
yyb933 = yyj933 > l
|
|
} else {
|
|
yyb933 = r.CheckBreak()
|
|
}
|
|
if yyb933 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.VolumeID = ""
|
|
} else {
|
|
x.VolumeID = string(r.DecodeString())
|
|
}
|
|
yyj933++
|
|
if yyhl933 {
|
|
yyb933 = yyj933 > l
|
|
} else {
|
|
yyb933 = r.CheckBreak()
|
|
}
|
|
if yyb933 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.FSType = ""
|
|
} else {
|
|
x.FSType = string(r.DecodeString())
|
|
}
|
|
yyj933++
|
|
if yyhl933 {
|
|
yyb933 = yyj933 > l
|
|
} else {
|
|
yyb933 = r.CheckBreak()
|
|
}
|
|
if yyb933 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
for {
|
|
yyj933++
|
|
if yyhl933 {
|
|
yyb933 = yyj933 > l
|
|
} else {
|
|
yyb933 = r.CheckBreak()
|
|
}
|
|
if yyb933 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj933-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 {
|
|
yym937 := z.EncBinary()
|
|
_ = yym937
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep938 := !z.EncBinary()
|
|
yy2arr938 := z.EncBasicHandle().StructToArray
|
|
var yyq938 [6]bool
|
|
_, _, _ = yysep938, yyq938, yy2arr938
|
|
const yyr938 bool = false
|
|
yyq938[1] = x.Path != ""
|
|
yyq938[2] = x.User != ""
|
|
yyq938[3] = x.SecretFile != ""
|
|
yyq938[4] = x.SecretRef != nil
|
|
yyq938[5] = x.ReadOnly != false
|
|
var yynn938 int
|
|
if yyr938 || yy2arr938 {
|
|
r.EncodeArrayStart(6)
|
|
} else {
|
|
yynn938 = 1
|
|
for _, b := range yyq938 {
|
|
if b {
|
|
yynn938++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn938)
|
|
yynn938 = 0
|
|
}
|
|
if yyr938 || yy2arr938 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Monitors == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym940 := z.EncBinary()
|
|
_ = yym940
|
|
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 {
|
|
yym941 := z.EncBinary()
|
|
_ = yym941
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.Monitors, false, e)
|
|
}
|
|
}
|
|
}
|
|
if yyr938 || yy2arr938 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq938[1] {
|
|
yym943 := z.EncBinary()
|
|
_ = yym943
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq938[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("path"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym944 := z.EncBinary()
|
|
_ = yym944
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
|
|
}
|
|
}
|
|
}
|
|
if yyr938 || yy2arr938 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq938[2] {
|
|
yym946 := z.EncBinary()
|
|
_ = yym946
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.User))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq938[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("user"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym947 := z.EncBinary()
|
|
_ = yym947
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.User))
|
|
}
|
|
}
|
|
}
|
|
if yyr938 || yy2arr938 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq938[3] {
|
|
yym949 := z.EncBinary()
|
|
_ = yym949
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq938[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("secretFile"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym950 := z.EncBinary()
|
|
_ = yym950
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile))
|
|
}
|
|
}
|
|
}
|
|
if yyr938 || yy2arr938 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq938[4] {
|
|
if x.SecretRef == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.SecretRef.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq938[4] {
|
|
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 yyr938 || yy2arr938 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq938[5] {
|
|
yym953 := z.EncBinary()
|
|
_ = yym953
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq938[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym954 := z.EncBinary()
|
|
_ = yym954
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
}
|
|
}
|
|
if yyr938 || yy2arr938 {
|
|
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
|
|
yym955 := z.DecBinary()
|
|
_ = yym955
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct956 := r.ContainerType()
|
|
if yyct956 == codecSelferValueTypeMap1234 {
|
|
yyl956 := r.ReadMapStart()
|
|
if yyl956 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl956, d)
|
|
}
|
|
} else if yyct956 == codecSelferValueTypeArray1234 {
|
|
yyl956 := r.ReadArrayStart()
|
|
if yyl956 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl956, 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 yys957Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys957Slc
|
|
var yyhl957 bool = l >= 0
|
|
for yyj957 := 0; ; yyj957++ {
|
|
if yyhl957 {
|
|
if yyj957 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys957Slc = r.DecodeBytes(yys957Slc, true, true)
|
|
yys957 := string(yys957Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys957 {
|
|
case "monitors":
|
|
if r.TryDecodeAsNil() {
|
|
x.Monitors = nil
|
|
} else {
|
|
yyv958 := &x.Monitors
|
|
yym959 := z.DecBinary()
|
|
_ = yym959
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv958, false, d)
|
|
}
|
|
}
|
|
case "path":
|
|
if r.TryDecodeAsNil() {
|
|
x.Path = ""
|
|
} else {
|
|
x.Path = string(r.DecodeString())
|
|
}
|
|
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, yys957)
|
|
} // end switch yys957
|
|
} // end for yyj957
|
|
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 yyj965 int
|
|
var yyb965 bool
|
|
var yyhl965 bool = l >= 0
|
|
yyj965++
|
|
if yyhl965 {
|
|
yyb965 = yyj965 > l
|
|
} else {
|
|
yyb965 = r.CheckBreak()
|
|
}
|
|
if yyb965 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Monitors = nil
|
|
} else {
|
|
yyv966 := &x.Monitors
|
|
yym967 := z.DecBinary()
|
|
_ = yym967
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv966, false, d)
|
|
}
|
|
}
|
|
yyj965++
|
|
if yyhl965 {
|
|
yyb965 = yyj965 > l
|
|
} else {
|
|
yyb965 = r.CheckBreak()
|
|
}
|
|
if yyb965 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Path = ""
|
|
} else {
|
|
x.Path = string(r.DecodeString())
|
|
}
|
|
yyj965++
|
|
if yyhl965 {
|
|
yyb965 = yyj965 > l
|
|
} else {
|
|
yyb965 = r.CheckBreak()
|
|
}
|
|
if yyb965 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.User = ""
|
|
} else {
|
|
x.User = string(r.DecodeString())
|
|
}
|
|
yyj965++
|
|
if yyhl965 {
|
|
yyb965 = yyj965 > l
|
|
} else {
|
|
yyb965 = r.CheckBreak()
|
|
}
|
|
if yyb965 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.SecretFile = ""
|
|
} else {
|
|
x.SecretFile = string(r.DecodeString())
|
|
}
|
|
yyj965++
|
|
if yyhl965 {
|
|
yyb965 = yyj965 > l
|
|
} else {
|
|
yyb965 = r.CheckBreak()
|
|
}
|
|
if yyb965 {
|
|
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)
|
|
}
|
|
yyj965++
|
|
if yyhl965 {
|
|
yyb965 = yyj965 > l
|
|
} else {
|
|
yyb965 = r.CheckBreak()
|
|
}
|
|
if yyb965 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
for {
|
|
yyj965++
|
|
if yyhl965 {
|
|
yyb965 = yyj965 > l
|
|
} else {
|
|
yyb965 = r.CheckBreak()
|
|
}
|
|
if yyb965 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj965-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 {
|
|
yym973 := z.EncBinary()
|
|
_ = yym973
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep974 := !z.EncBinary()
|
|
yy2arr974 := z.EncBasicHandle().StructToArray
|
|
var yyq974 [1]bool
|
|
_, _, _ = yysep974, yyq974, yy2arr974
|
|
const yyr974 bool = false
|
|
var yynn974 int
|
|
if yyr974 || yy2arr974 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn974 = 1
|
|
for _, b := range yyq974 {
|
|
if b {
|
|
yynn974++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn974)
|
|
yynn974 = 0
|
|
}
|
|
if yyr974 || yy2arr974 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym976 := z.EncBinary()
|
|
_ = yym976
|
|
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)
|
|
yym977 := z.EncBinary()
|
|
_ = yym977
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.DatasetName))
|
|
}
|
|
}
|
|
if yyr974 || yy2arr974 {
|
|
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
|
|
yym978 := z.DecBinary()
|
|
_ = yym978
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct979 := r.ContainerType()
|
|
if yyct979 == codecSelferValueTypeMap1234 {
|
|
yyl979 := r.ReadMapStart()
|
|
if yyl979 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl979, d)
|
|
}
|
|
} else if yyct979 == codecSelferValueTypeArray1234 {
|
|
yyl979 := r.ReadArrayStart()
|
|
if yyl979 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl979, 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 yys980Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys980Slc
|
|
var yyhl980 bool = l >= 0
|
|
for yyj980 := 0; ; yyj980++ {
|
|
if yyhl980 {
|
|
if yyj980 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys980Slc = r.DecodeBytes(yys980Slc, true, true)
|
|
yys980 := string(yys980Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys980 {
|
|
case "datasetName":
|
|
if r.TryDecodeAsNil() {
|
|
x.DatasetName = ""
|
|
} else {
|
|
x.DatasetName = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys980)
|
|
} // end switch yys980
|
|
} // end for yyj980
|
|
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 yyj982 int
|
|
var yyb982 bool
|
|
var yyhl982 bool = l >= 0
|
|
yyj982++
|
|
if yyhl982 {
|
|
yyb982 = yyj982 > l
|
|
} else {
|
|
yyb982 = r.CheckBreak()
|
|
}
|
|
if yyb982 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.DatasetName = ""
|
|
} else {
|
|
x.DatasetName = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj982++
|
|
if yyhl982 {
|
|
yyb982 = yyj982 > l
|
|
} else {
|
|
yyb982 = r.CheckBreak()
|
|
}
|
|
if yyb982 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj982-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 {
|
|
yym984 := z.EncBinary()
|
|
_ = yym984
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep985 := !z.EncBinary()
|
|
yy2arr985 := z.EncBasicHandle().StructToArray
|
|
var yyq985 [2]bool
|
|
_, _, _ = yysep985, yyq985, yy2arr985
|
|
const yyr985 bool = false
|
|
yyq985[0] = len(x.Items) != 0
|
|
yyq985[1] = x.DefaultMode != nil
|
|
var yynn985 int
|
|
if yyr985 || yy2arr985 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn985 = 0
|
|
for _, b := range yyq985 {
|
|
if b {
|
|
yynn985++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn985)
|
|
yynn985 = 0
|
|
}
|
|
if yyr985 || yy2arr985 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq985[0] {
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym987 := z.EncBinary()
|
|
_ = yym987
|
|
if false {
|
|
} else {
|
|
h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq985[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("items"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym988 := z.EncBinary()
|
|
_ = yym988
|
|
if false {
|
|
} else {
|
|
h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr985 || yy2arr985 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq985[1] {
|
|
if x.DefaultMode == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy990 := *x.DefaultMode
|
|
yym991 := z.EncBinary()
|
|
_ = yym991
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy990))
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq985[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("defaultMode"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.DefaultMode == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy992 := *x.DefaultMode
|
|
yym993 := z.EncBinary()
|
|
_ = yym993
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy992))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr985 || yy2arr985 {
|
|
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
|
|
yym994 := z.DecBinary()
|
|
_ = yym994
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct995 := r.ContainerType()
|
|
if yyct995 == codecSelferValueTypeMap1234 {
|
|
yyl995 := r.ReadMapStart()
|
|
if yyl995 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl995, d)
|
|
}
|
|
} else if yyct995 == codecSelferValueTypeArray1234 {
|
|
yyl995 := r.ReadArrayStart()
|
|
if yyl995 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl995, 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 yys996Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys996Slc
|
|
var yyhl996 bool = l >= 0
|
|
for yyj996 := 0; ; yyj996++ {
|
|
if yyhl996 {
|
|
if yyj996 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys996Slc = r.DecodeBytes(yys996Slc, true, true)
|
|
yys996 := string(yys996Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys996 {
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv997 := &x.Items
|
|
yym998 := z.DecBinary()
|
|
_ = yym998
|
|
if false {
|
|
} else {
|
|
h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv997), d)
|
|
}
|
|
}
|
|
case "defaultMode":
|
|
if r.TryDecodeAsNil() {
|
|
if x.DefaultMode != nil {
|
|
x.DefaultMode = nil
|
|
}
|
|
} else {
|
|
if x.DefaultMode == nil {
|
|
x.DefaultMode = new(int32)
|
|
}
|
|
yym1000 := z.DecBinary()
|
|
_ = yym1000
|
|
if false {
|
|
} else {
|
|
*((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32))
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys996)
|
|
} // end switch yys996
|
|
} // end for yyj996
|
|
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 yyj1001 int
|
|
var yyb1001 bool
|
|
var yyhl1001 bool = l >= 0
|
|
yyj1001++
|
|
if yyhl1001 {
|
|
yyb1001 = yyj1001 > l
|
|
} else {
|
|
yyb1001 = r.CheckBreak()
|
|
}
|
|
if yyb1001 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv1002 := &x.Items
|
|
yym1003 := z.DecBinary()
|
|
_ = yym1003
|
|
if false {
|
|
} else {
|
|
h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv1002), d)
|
|
}
|
|
}
|
|
yyj1001++
|
|
if yyhl1001 {
|
|
yyb1001 = yyj1001 > l
|
|
} else {
|
|
yyb1001 = r.CheckBreak()
|
|
}
|
|
if yyb1001 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.DefaultMode != nil {
|
|
x.DefaultMode = nil
|
|
}
|
|
} else {
|
|
if x.DefaultMode == nil {
|
|
x.DefaultMode = new(int32)
|
|
}
|
|
yym1005 := z.DecBinary()
|
|
_ = yym1005
|
|
if false {
|
|
} else {
|
|
*((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32))
|
|
}
|
|
}
|
|
for {
|
|
yyj1001++
|
|
if yyhl1001 {
|
|
yyb1001 = yyj1001 > l
|
|
} else {
|
|
yyb1001 = r.CheckBreak()
|
|
}
|
|
if yyb1001 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1001-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 {
|
|
yym1006 := z.EncBinary()
|
|
_ = yym1006
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1007 := !z.EncBinary()
|
|
yy2arr1007 := z.EncBasicHandle().StructToArray
|
|
var yyq1007 [4]bool
|
|
_, _, _ = yysep1007, yyq1007, yy2arr1007
|
|
const yyr1007 bool = false
|
|
yyq1007[1] = x.FieldRef != nil
|
|
yyq1007[2] = x.ResourceFieldRef != nil
|
|
yyq1007[3] = x.Mode != nil
|
|
var yynn1007 int
|
|
if yyr1007 || yy2arr1007 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn1007 = 1
|
|
for _, b := range yyq1007 {
|
|
if b {
|
|
yynn1007++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1007)
|
|
yynn1007 = 0
|
|
}
|
|
if yyr1007 || yy2arr1007 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1009 := z.EncBinary()
|
|
_ = yym1009
|
|
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)
|
|
yym1010 := z.EncBinary()
|
|
_ = yym1010
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
|
|
}
|
|
}
|
|
if yyr1007 || yy2arr1007 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1007[1] {
|
|
if x.FieldRef == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.FieldRef.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1007[1] {
|
|
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 yyr1007 || yy2arr1007 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1007[2] {
|
|
if x.ResourceFieldRef == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.ResourceFieldRef.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1007[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("resourceFieldRef"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.ResourceFieldRef == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.ResourceFieldRef.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1007 || yy2arr1007 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1007[3] {
|
|
if x.Mode == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy1014 := *x.Mode
|
|
yym1015 := z.EncBinary()
|
|
_ = yym1015
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy1014))
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1007[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("mode"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Mode == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy1016 := *x.Mode
|
|
yym1017 := z.EncBinary()
|
|
_ = yym1017
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy1016))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1007 || yy2arr1007 {
|
|
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
|
|
yym1018 := z.DecBinary()
|
|
_ = yym1018
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1019 := r.ContainerType()
|
|
if yyct1019 == codecSelferValueTypeMap1234 {
|
|
yyl1019 := r.ReadMapStart()
|
|
if yyl1019 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1019, d)
|
|
}
|
|
} else if yyct1019 == codecSelferValueTypeArray1234 {
|
|
yyl1019 := r.ReadArrayStart()
|
|
if yyl1019 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1019, 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 yys1020Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1020Slc
|
|
var yyhl1020 bool = l >= 0
|
|
for yyj1020 := 0; ; yyj1020++ {
|
|
if yyhl1020 {
|
|
if yyj1020 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1020Slc = r.DecodeBytes(yys1020Slc, true, true)
|
|
yys1020 := string(yys1020Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1020 {
|
|
case "path":
|
|
if r.TryDecodeAsNil() {
|
|
x.Path = ""
|
|
} else {
|
|
x.Path = string(r.DecodeString())
|
|
}
|
|
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)
|
|
}
|
|
case "resourceFieldRef":
|
|
if r.TryDecodeAsNil() {
|
|
if x.ResourceFieldRef != nil {
|
|
x.ResourceFieldRef = nil
|
|
}
|
|
} else {
|
|
if x.ResourceFieldRef == nil {
|
|
x.ResourceFieldRef = new(ResourceFieldSelector)
|
|
}
|
|
x.ResourceFieldRef.CodecDecodeSelf(d)
|
|
}
|
|
case "mode":
|
|
if r.TryDecodeAsNil() {
|
|
if x.Mode != nil {
|
|
x.Mode = nil
|
|
}
|
|
} else {
|
|
if x.Mode == nil {
|
|
x.Mode = new(int32)
|
|
}
|
|
yym1025 := z.DecBinary()
|
|
_ = yym1025
|
|
if false {
|
|
} else {
|
|
*((*int32)(x.Mode)) = int32(r.DecodeInt(32))
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1020)
|
|
} // end switch yys1020
|
|
} // end for yyj1020
|
|
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 yyj1026 int
|
|
var yyb1026 bool
|
|
var yyhl1026 bool = l >= 0
|
|
yyj1026++
|
|
if yyhl1026 {
|
|
yyb1026 = yyj1026 > l
|
|
} else {
|
|
yyb1026 = r.CheckBreak()
|
|
}
|
|
if yyb1026 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Path = ""
|
|
} else {
|
|
x.Path = string(r.DecodeString())
|
|
}
|
|
yyj1026++
|
|
if yyhl1026 {
|
|
yyb1026 = yyj1026 > l
|
|
} else {
|
|
yyb1026 = r.CheckBreak()
|
|
}
|
|
if yyb1026 {
|
|
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)
|
|
}
|
|
yyj1026++
|
|
if yyhl1026 {
|
|
yyb1026 = yyj1026 > l
|
|
} else {
|
|
yyb1026 = r.CheckBreak()
|
|
}
|
|
if yyb1026 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.ResourceFieldRef != nil {
|
|
x.ResourceFieldRef = nil
|
|
}
|
|
} else {
|
|
if x.ResourceFieldRef == nil {
|
|
x.ResourceFieldRef = new(ResourceFieldSelector)
|
|
}
|
|
x.ResourceFieldRef.CodecDecodeSelf(d)
|
|
}
|
|
yyj1026++
|
|
if yyhl1026 {
|
|
yyb1026 = yyj1026 > l
|
|
} else {
|
|
yyb1026 = r.CheckBreak()
|
|
}
|
|
if yyb1026 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.Mode != nil {
|
|
x.Mode = nil
|
|
}
|
|
} else {
|
|
if x.Mode == nil {
|
|
x.Mode = new(int32)
|
|
}
|
|
yym1031 := z.DecBinary()
|
|
_ = yym1031
|
|
if false {
|
|
} else {
|
|
*((*int32)(x.Mode)) = int32(r.DecodeInt(32))
|
|
}
|
|
}
|
|
for {
|
|
yyj1026++
|
|
if yyhl1026 {
|
|
yyb1026 = yyj1026 > l
|
|
} else {
|
|
yyb1026 = r.CheckBreak()
|
|
}
|
|
if yyb1026 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1026-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *AzureFileVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1032 := z.EncBinary()
|
|
_ = yym1032
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1033 := !z.EncBinary()
|
|
yy2arr1033 := z.EncBasicHandle().StructToArray
|
|
var yyq1033 [3]bool
|
|
_, _, _ = yysep1033, yyq1033, yy2arr1033
|
|
const yyr1033 bool = false
|
|
yyq1033[2] = x.ReadOnly != false
|
|
var yynn1033 int
|
|
if yyr1033 || yy2arr1033 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn1033 = 2
|
|
for _, b := range yyq1033 {
|
|
if b {
|
|
yynn1033++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1033)
|
|
yynn1033 = 0
|
|
}
|
|
if yyr1033 || yy2arr1033 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1035 := z.EncBinary()
|
|
_ = yym1035
|
|
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)
|
|
yym1036 := z.EncBinary()
|
|
_ = yym1036
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.SecretName))
|
|
}
|
|
}
|
|
if yyr1033 || yy2arr1033 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1038 := z.EncBinary()
|
|
_ = yym1038
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ShareName))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("shareName"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1039 := z.EncBinary()
|
|
_ = yym1039
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ShareName))
|
|
}
|
|
}
|
|
if yyr1033 || yy2arr1033 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1033[2] {
|
|
yym1041 := z.EncBinary()
|
|
_ = yym1041
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq1033[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1042 := z.EncBinary()
|
|
_ = yym1042
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
}
|
|
}
|
|
if yyr1033 || yy2arr1033 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *AzureFileVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1043 := z.DecBinary()
|
|
_ = yym1043
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1044 := r.ContainerType()
|
|
if yyct1044 == codecSelferValueTypeMap1234 {
|
|
yyl1044 := r.ReadMapStart()
|
|
if yyl1044 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1044, d)
|
|
}
|
|
} else if yyct1044 == codecSelferValueTypeArray1234 {
|
|
yyl1044 := r.ReadArrayStart()
|
|
if yyl1044 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1044, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *AzureFileVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1045Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1045Slc
|
|
var yyhl1045 bool = l >= 0
|
|
for yyj1045 := 0; ; yyj1045++ {
|
|
if yyhl1045 {
|
|
if yyj1045 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1045Slc = r.DecodeBytes(yys1045Slc, true, true)
|
|
yys1045 := string(yys1045Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1045 {
|
|
case "secretName":
|
|
if r.TryDecodeAsNil() {
|
|
x.SecretName = ""
|
|
} else {
|
|
x.SecretName = string(r.DecodeString())
|
|
}
|
|
case "shareName":
|
|
if r.TryDecodeAsNil() {
|
|
x.ShareName = ""
|
|
} else {
|
|
x.ShareName = string(r.DecodeString())
|
|
}
|
|
case "readOnly":
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1045)
|
|
} // end switch yys1045
|
|
} // end for yyj1045
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *AzureFileVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1049 int
|
|
var yyb1049 bool
|
|
var yyhl1049 bool = l >= 0
|
|
yyj1049++
|
|
if yyhl1049 {
|
|
yyb1049 = yyj1049 > l
|
|
} else {
|
|
yyb1049 = r.CheckBreak()
|
|
}
|
|
if yyb1049 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.SecretName = ""
|
|
} else {
|
|
x.SecretName = string(r.DecodeString())
|
|
}
|
|
yyj1049++
|
|
if yyhl1049 {
|
|
yyb1049 = yyj1049 > l
|
|
} else {
|
|
yyb1049 = r.CheckBreak()
|
|
}
|
|
if yyb1049 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ShareName = ""
|
|
} else {
|
|
x.ShareName = string(r.DecodeString())
|
|
}
|
|
yyj1049++
|
|
if yyhl1049 {
|
|
yyb1049 = yyj1049 > l
|
|
} else {
|
|
yyb1049 = r.CheckBreak()
|
|
}
|
|
if yyb1049 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
for {
|
|
yyj1049++
|
|
if yyhl1049 {
|
|
yyb1049 = yyj1049 > l
|
|
} else {
|
|
yyb1049 = r.CheckBreak()
|
|
}
|
|
if yyb1049 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1049-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *VsphereVirtualDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1053 := z.EncBinary()
|
|
_ = yym1053
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1054 := !z.EncBinary()
|
|
yy2arr1054 := z.EncBasicHandle().StructToArray
|
|
var yyq1054 [2]bool
|
|
_, _, _ = yysep1054, yyq1054, yy2arr1054
|
|
const yyr1054 bool = false
|
|
yyq1054[1] = x.FSType != ""
|
|
var yynn1054 int
|
|
if yyr1054 || yy2arr1054 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn1054 = 1
|
|
for _, b := range yyq1054 {
|
|
if b {
|
|
yynn1054++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1054)
|
|
yynn1054 = 0
|
|
}
|
|
if yyr1054 || yy2arr1054 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1056 := z.EncBinary()
|
|
_ = yym1056
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.VolumePath))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("volumePath"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1057 := z.EncBinary()
|
|
_ = yym1057
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.VolumePath))
|
|
}
|
|
}
|
|
if yyr1054 || yy2arr1054 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1054[1] {
|
|
yym1059 := z.EncBinary()
|
|
_ = yym1059
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1054[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1060 := z.EncBinary()
|
|
_ = yym1060
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
|
|
}
|
|
}
|
|
}
|
|
if yyr1054 || yy2arr1054 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *VsphereVirtualDiskVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1061 := z.DecBinary()
|
|
_ = yym1061
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1062 := r.ContainerType()
|
|
if yyct1062 == codecSelferValueTypeMap1234 {
|
|
yyl1062 := r.ReadMapStart()
|
|
if yyl1062 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1062, d)
|
|
}
|
|
} else if yyct1062 == codecSelferValueTypeArray1234 {
|
|
yyl1062 := r.ReadArrayStart()
|
|
if yyl1062 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1062, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *VsphereVirtualDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1063Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1063Slc
|
|
var yyhl1063 bool = l >= 0
|
|
for yyj1063 := 0; ; yyj1063++ {
|
|
if yyhl1063 {
|
|
if yyj1063 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1063Slc = r.DecodeBytes(yys1063Slc, true, true)
|
|
yys1063 := string(yys1063Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1063 {
|
|
case "volumePath":
|
|
if r.TryDecodeAsNil() {
|
|
x.VolumePath = ""
|
|
} else {
|
|
x.VolumePath = string(r.DecodeString())
|
|
}
|
|
case "fsType":
|
|
if r.TryDecodeAsNil() {
|
|
x.FSType = ""
|
|
} else {
|
|
x.FSType = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1063)
|
|
} // end switch yys1063
|
|
} // end for yyj1063
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *VsphereVirtualDiskVolumeSource) 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.VolumePath = ""
|
|
} else {
|
|
x.VolumePath = string(r.DecodeString())
|
|
}
|
|
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.FSType = ""
|
|
} else {
|
|
x.FSType = string(r.DecodeString())
|
|
}
|
|
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 *ConfigMapVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1069 := z.EncBinary()
|
|
_ = yym1069
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1070 := !z.EncBinary()
|
|
yy2arr1070 := z.EncBasicHandle().StructToArray
|
|
var yyq1070 [3]bool
|
|
_, _, _ = yysep1070, yyq1070, yy2arr1070
|
|
const yyr1070 bool = false
|
|
yyq1070[1] = len(x.Items) != 0
|
|
yyq1070[2] = x.DefaultMode != nil
|
|
var yynn1070 int
|
|
if yyr1070 || yy2arr1070 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn1070 = 1
|
|
for _, b := range yyq1070 {
|
|
if b {
|
|
yynn1070++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1070)
|
|
yynn1070 = 0
|
|
}
|
|
if yyr1070 || yy2arr1070 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1072 := z.EncBinary()
|
|
_ = yym1072
|
|
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)
|
|
yym1073 := z.EncBinary()
|
|
_ = yym1073
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
}
|
|
if yyr1070 || yy2arr1070 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1070[1] {
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1075 := z.EncBinary()
|
|
_ = yym1075
|
|
if false {
|
|
} else {
|
|
h.encSliceKeyToPath(([]KeyToPath)(x.Items), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1070[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("items"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1076 := z.EncBinary()
|
|
_ = yym1076
|
|
if false {
|
|
} else {
|
|
h.encSliceKeyToPath(([]KeyToPath)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1070 || yy2arr1070 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1070[2] {
|
|
if x.DefaultMode == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy1078 := *x.DefaultMode
|
|
yym1079 := z.EncBinary()
|
|
_ = yym1079
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy1078))
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1070[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("defaultMode"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.DefaultMode == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy1080 := *x.DefaultMode
|
|
yym1081 := z.EncBinary()
|
|
_ = yym1081
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy1080))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1070 || yy2arr1070 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ConfigMapVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1082 := z.DecBinary()
|
|
_ = yym1082
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1083 := r.ContainerType()
|
|
if yyct1083 == codecSelferValueTypeMap1234 {
|
|
yyl1083 := r.ReadMapStart()
|
|
if yyl1083 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1083, d)
|
|
}
|
|
} else if yyct1083 == codecSelferValueTypeArray1234 {
|
|
yyl1083 := r.ReadArrayStart()
|
|
if yyl1083 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1083, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ConfigMapVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1084Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1084Slc
|
|
var yyhl1084 bool = l >= 0
|
|
for yyj1084 := 0; ; yyj1084++ {
|
|
if yyhl1084 {
|
|
if yyj1084 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1084Slc = r.DecodeBytes(yys1084Slc, true, true)
|
|
yys1084 := string(yys1084Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1084 {
|
|
case "Name":
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv1086 := &x.Items
|
|
yym1087 := z.DecBinary()
|
|
_ = yym1087
|
|
if false {
|
|
} else {
|
|
h.decSliceKeyToPath((*[]KeyToPath)(yyv1086), d)
|
|
}
|
|
}
|
|
case "defaultMode":
|
|
if r.TryDecodeAsNil() {
|
|
if x.DefaultMode != nil {
|
|
x.DefaultMode = nil
|
|
}
|
|
} else {
|
|
if x.DefaultMode == nil {
|
|
x.DefaultMode = new(int32)
|
|
}
|
|
yym1089 := z.DecBinary()
|
|
_ = yym1089
|
|
if false {
|
|
} else {
|
|
*((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32))
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1084)
|
|
} // end switch yys1084
|
|
} // end for yyj1084
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *ConfigMapVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1090 int
|
|
var yyb1090 bool
|
|
var yyhl1090 bool = l >= 0
|
|
yyj1090++
|
|
if yyhl1090 {
|
|
yyb1090 = yyj1090 > l
|
|
} else {
|
|
yyb1090 = r.CheckBreak()
|
|
}
|
|
if yyb1090 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
yyj1090++
|
|
if yyhl1090 {
|
|
yyb1090 = yyj1090 > l
|
|
} else {
|
|
yyb1090 = r.CheckBreak()
|
|
}
|
|
if yyb1090 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv1092 := &x.Items
|
|
yym1093 := z.DecBinary()
|
|
_ = yym1093
|
|
if false {
|
|
} else {
|
|
h.decSliceKeyToPath((*[]KeyToPath)(yyv1092), d)
|
|
}
|
|
}
|
|
yyj1090++
|
|
if yyhl1090 {
|
|
yyb1090 = yyj1090 > l
|
|
} else {
|
|
yyb1090 = r.CheckBreak()
|
|
}
|
|
if yyb1090 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.DefaultMode != nil {
|
|
x.DefaultMode = nil
|
|
}
|
|
} else {
|
|
if x.DefaultMode == nil {
|
|
x.DefaultMode = new(int32)
|
|
}
|
|
yym1095 := z.DecBinary()
|
|
_ = yym1095
|
|
if false {
|
|
} else {
|
|
*((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32))
|
|
}
|
|
}
|
|
for {
|
|
yyj1090++
|
|
if yyhl1090 {
|
|
yyb1090 = yyj1090 > l
|
|
} else {
|
|
yyb1090 = r.CheckBreak()
|
|
}
|
|
if yyb1090 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1090-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *KeyToPath) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1096 := z.EncBinary()
|
|
_ = yym1096
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1097 := !z.EncBinary()
|
|
yy2arr1097 := z.EncBasicHandle().StructToArray
|
|
var yyq1097 [3]bool
|
|
_, _, _ = yysep1097, yyq1097, yy2arr1097
|
|
const yyr1097 bool = false
|
|
yyq1097[2] = x.Mode != nil
|
|
var yynn1097 int
|
|
if yyr1097 || yy2arr1097 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn1097 = 2
|
|
for _, b := range yyq1097 {
|
|
if b {
|
|
yynn1097++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1097)
|
|
yynn1097 = 0
|
|
}
|
|
if yyr1097 || yy2arr1097 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1099 := z.EncBinary()
|
|
_ = yym1099
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Key))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("key"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1100 := z.EncBinary()
|
|
_ = yym1100
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Key))
|
|
}
|
|
}
|
|
if yyr1097 || yy2arr1097 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1102 := z.EncBinary()
|
|
_ = yym1102
|
|
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)
|
|
yym1103 := z.EncBinary()
|
|
_ = yym1103
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
|
|
}
|
|
}
|
|
if yyr1097 || yy2arr1097 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1097[2] {
|
|
if x.Mode == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy1105 := *x.Mode
|
|
yym1106 := z.EncBinary()
|
|
_ = yym1106
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy1105))
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1097[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("mode"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Mode == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy1107 := *x.Mode
|
|
yym1108 := z.EncBinary()
|
|
_ = yym1108
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy1107))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1097 || yy2arr1097 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *KeyToPath) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1109 := z.DecBinary()
|
|
_ = yym1109
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1110 := r.ContainerType()
|
|
if yyct1110 == codecSelferValueTypeMap1234 {
|
|
yyl1110 := r.ReadMapStart()
|
|
if yyl1110 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1110, d)
|
|
}
|
|
} else if yyct1110 == codecSelferValueTypeArray1234 {
|
|
yyl1110 := r.ReadArrayStart()
|
|
if yyl1110 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1110, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *KeyToPath) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1111Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1111Slc
|
|
var yyhl1111 bool = l >= 0
|
|
for yyj1111 := 0; ; yyj1111++ {
|
|
if yyhl1111 {
|
|
if yyj1111 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1111Slc = r.DecodeBytes(yys1111Slc, true, true)
|
|
yys1111 := string(yys1111Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1111 {
|
|
case "key":
|
|
if r.TryDecodeAsNil() {
|
|
x.Key = ""
|
|
} else {
|
|
x.Key = string(r.DecodeString())
|
|
}
|
|
case "path":
|
|
if r.TryDecodeAsNil() {
|
|
x.Path = ""
|
|
} else {
|
|
x.Path = string(r.DecodeString())
|
|
}
|
|
case "mode":
|
|
if r.TryDecodeAsNil() {
|
|
if x.Mode != nil {
|
|
x.Mode = nil
|
|
}
|
|
} else {
|
|
if x.Mode == nil {
|
|
x.Mode = new(int32)
|
|
}
|
|
yym1115 := z.DecBinary()
|
|
_ = yym1115
|
|
if false {
|
|
} else {
|
|
*((*int32)(x.Mode)) = int32(r.DecodeInt(32))
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1111)
|
|
} // end switch yys1111
|
|
} // end for yyj1111
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *KeyToPath) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1116 int
|
|
var yyb1116 bool
|
|
var yyhl1116 bool = l >= 0
|
|
yyj1116++
|
|
if yyhl1116 {
|
|
yyb1116 = yyj1116 > l
|
|
} else {
|
|
yyb1116 = r.CheckBreak()
|
|
}
|
|
if yyb1116 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Key = ""
|
|
} else {
|
|
x.Key = string(r.DecodeString())
|
|
}
|
|
yyj1116++
|
|
if yyhl1116 {
|
|
yyb1116 = yyj1116 > l
|
|
} else {
|
|
yyb1116 = r.CheckBreak()
|
|
}
|
|
if yyb1116 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Path = ""
|
|
} else {
|
|
x.Path = string(r.DecodeString())
|
|
}
|
|
yyj1116++
|
|
if yyhl1116 {
|
|
yyb1116 = yyj1116 > l
|
|
} else {
|
|
yyb1116 = r.CheckBreak()
|
|
}
|
|
if yyb1116 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.Mode != nil {
|
|
x.Mode = nil
|
|
}
|
|
} else {
|
|
if x.Mode == nil {
|
|
x.Mode = new(int32)
|
|
}
|
|
yym1120 := z.DecBinary()
|
|
_ = yym1120
|
|
if false {
|
|
} else {
|
|
*((*int32)(x.Mode)) = int32(r.DecodeInt(32))
|
|
}
|
|
}
|
|
for {
|
|
yyj1116++
|
|
if yyhl1116 {
|
|
yyb1116 = yyj1116 > l
|
|
} else {
|
|
yyb1116 = r.CheckBreak()
|
|
}
|
|
if yyb1116 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1116-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 {
|
|
yym1121 := z.EncBinary()
|
|
_ = yym1121
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1122 := !z.EncBinary()
|
|
yy2arr1122 := z.EncBasicHandle().StructToArray
|
|
var yyq1122 [5]bool
|
|
_, _, _ = yysep1122, yyq1122, yy2arr1122
|
|
const yyr1122 bool = false
|
|
yyq1122[0] = x.Name != ""
|
|
yyq1122[1] = x.HostPort != 0
|
|
yyq1122[3] = x.Protocol != ""
|
|
yyq1122[4] = x.HostIP != ""
|
|
var yynn1122 int
|
|
if yyr1122 || yy2arr1122 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn1122 = 1
|
|
for _, b := range yyq1122 {
|
|
if b {
|
|
yynn1122++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1122)
|
|
yynn1122 = 0
|
|
}
|
|
if yyr1122 || yy2arr1122 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1122[0] {
|
|
yym1124 := z.EncBinary()
|
|
_ = yym1124
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1122[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("name"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1125 := z.EncBinary()
|
|
_ = yym1125
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
}
|
|
}
|
|
if yyr1122 || yy2arr1122 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1122[1] {
|
|
yym1127 := z.EncBinary()
|
|
_ = yym1127
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.HostPort))
|
|
}
|
|
} else {
|
|
r.EncodeInt(0)
|
|
}
|
|
} else {
|
|
if yyq1122[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("hostPort"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1128 := z.EncBinary()
|
|
_ = yym1128
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.HostPort))
|
|
}
|
|
}
|
|
}
|
|
if yyr1122 || yy2arr1122 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1130 := z.EncBinary()
|
|
_ = yym1130
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.ContainerPort))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("containerPort"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1131 := z.EncBinary()
|
|
_ = yym1131
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.ContainerPort))
|
|
}
|
|
}
|
|
if yyr1122 || yy2arr1122 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1122[3] {
|
|
x.Protocol.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1122[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("protocol"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Protocol.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1122 || yy2arr1122 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1122[4] {
|
|
yym1134 := z.EncBinary()
|
|
_ = yym1134
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.HostIP))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1122[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("hostIP"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1135 := z.EncBinary()
|
|
_ = yym1135
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.HostIP))
|
|
}
|
|
}
|
|
}
|
|
if yyr1122 || yy2arr1122 {
|
|
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
|
|
yym1136 := z.DecBinary()
|
|
_ = yym1136
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1137 := r.ContainerType()
|
|
if yyct1137 == codecSelferValueTypeMap1234 {
|
|
yyl1137 := r.ReadMapStart()
|
|
if yyl1137 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1137, d)
|
|
}
|
|
} else if yyct1137 == codecSelferValueTypeArray1234 {
|
|
yyl1137 := r.ReadArrayStart()
|
|
if yyl1137 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1137, 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 yys1138Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1138Slc
|
|
var yyhl1138 bool = l >= 0
|
|
for yyj1138 := 0; ; yyj1138++ {
|
|
if yyhl1138 {
|
|
if yyj1138 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1138Slc = r.DecodeBytes(yys1138Slc, true, true)
|
|
yys1138 := string(yys1138Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1138 {
|
|
case "name":
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
case "hostPort":
|
|
if r.TryDecodeAsNil() {
|
|
x.HostPort = 0
|
|
} else {
|
|
x.HostPort = int32(r.DecodeInt(32))
|
|
}
|
|
case "containerPort":
|
|
if r.TryDecodeAsNil() {
|
|
x.ContainerPort = 0
|
|
} else {
|
|
x.ContainerPort = int32(r.DecodeInt(32))
|
|
}
|
|
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, yys1138)
|
|
} // end switch yys1138
|
|
} // end for yyj1138
|
|
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 yyj1144 int
|
|
var yyb1144 bool
|
|
var yyhl1144 bool = l >= 0
|
|
yyj1144++
|
|
if yyhl1144 {
|
|
yyb1144 = yyj1144 > l
|
|
} else {
|
|
yyb1144 = r.CheckBreak()
|
|
}
|
|
if yyb1144 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
yyj1144++
|
|
if yyhl1144 {
|
|
yyb1144 = yyj1144 > l
|
|
} else {
|
|
yyb1144 = r.CheckBreak()
|
|
}
|
|
if yyb1144 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.HostPort = 0
|
|
} else {
|
|
x.HostPort = int32(r.DecodeInt(32))
|
|
}
|
|
yyj1144++
|
|
if yyhl1144 {
|
|
yyb1144 = yyj1144 > l
|
|
} else {
|
|
yyb1144 = r.CheckBreak()
|
|
}
|
|
if yyb1144 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ContainerPort = 0
|
|
} else {
|
|
x.ContainerPort = int32(r.DecodeInt(32))
|
|
}
|
|
yyj1144++
|
|
if yyhl1144 {
|
|
yyb1144 = yyj1144 > l
|
|
} else {
|
|
yyb1144 = r.CheckBreak()
|
|
}
|
|
if yyb1144 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Protocol = ""
|
|
} else {
|
|
x.Protocol = Protocol(r.DecodeString())
|
|
}
|
|
yyj1144++
|
|
if yyhl1144 {
|
|
yyb1144 = yyj1144 > l
|
|
} else {
|
|
yyb1144 = r.CheckBreak()
|
|
}
|
|
if yyb1144 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.HostIP = ""
|
|
} else {
|
|
x.HostIP = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj1144++
|
|
if yyhl1144 {
|
|
yyb1144 = yyj1144 > l
|
|
} else {
|
|
yyb1144 = r.CheckBreak()
|
|
}
|
|
if yyb1144 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1144-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 {
|
|
yym1150 := z.EncBinary()
|
|
_ = yym1150
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1151 := !z.EncBinary()
|
|
yy2arr1151 := z.EncBasicHandle().StructToArray
|
|
var yyq1151 [4]bool
|
|
_, _, _ = yysep1151, yyq1151, yy2arr1151
|
|
const yyr1151 bool = false
|
|
yyq1151[1] = x.ReadOnly != false
|
|
yyq1151[3] = x.SubPath != ""
|
|
var yynn1151 int
|
|
if yyr1151 || yy2arr1151 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn1151 = 2
|
|
for _, b := range yyq1151 {
|
|
if b {
|
|
yynn1151++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1151)
|
|
yynn1151 = 0
|
|
}
|
|
if yyr1151 || yy2arr1151 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1153 := z.EncBinary()
|
|
_ = yym1153
|
|
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)
|
|
yym1154 := z.EncBinary()
|
|
_ = yym1154
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
}
|
|
if yyr1151 || yy2arr1151 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1151[1] {
|
|
yym1156 := z.EncBinary()
|
|
_ = yym1156
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq1151[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1157 := z.EncBinary()
|
|
_ = yym1157
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.ReadOnly))
|
|
}
|
|
}
|
|
}
|
|
if yyr1151 || yy2arr1151 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1159 := z.EncBinary()
|
|
_ = yym1159
|
|
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)
|
|
yym1160 := z.EncBinary()
|
|
_ = yym1160
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.MountPath))
|
|
}
|
|
}
|
|
if yyr1151 || yy2arr1151 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1151[3] {
|
|
yym1162 := z.EncBinary()
|
|
_ = yym1162
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.SubPath))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1151[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("subPath"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1163 := z.EncBinary()
|
|
_ = yym1163
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.SubPath))
|
|
}
|
|
}
|
|
}
|
|
if yyr1151 || yy2arr1151 {
|
|
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
|
|
yym1164 := z.DecBinary()
|
|
_ = yym1164
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1165 := r.ContainerType()
|
|
if yyct1165 == codecSelferValueTypeMap1234 {
|
|
yyl1165 := r.ReadMapStart()
|
|
if yyl1165 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1165, d)
|
|
}
|
|
} else if yyct1165 == codecSelferValueTypeArray1234 {
|
|
yyl1165 := r.ReadArrayStart()
|
|
if yyl1165 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1165, 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 yys1166Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1166Slc
|
|
var yyhl1166 bool = l >= 0
|
|
for yyj1166 := 0; ; yyj1166++ {
|
|
if yyhl1166 {
|
|
if yyj1166 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1166Slc = r.DecodeBytes(yys1166Slc, true, true)
|
|
yys1166 := string(yys1166Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1166 {
|
|
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())
|
|
}
|
|
case "subPath":
|
|
if r.TryDecodeAsNil() {
|
|
x.SubPath = ""
|
|
} else {
|
|
x.SubPath = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1166)
|
|
} // end switch yys1166
|
|
} // end for yyj1166
|
|
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 yyj1171 int
|
|
var yyb1171 bool
|
|
var yyhl1171 bool = l >= 0
|
|
yyj1171++
|
|
if yyhl1171 {
|
|
yyb1171 = yyj1171 > l
|
|
} else {
|
|
yyb1171 = r.CheckBreak()
|
|
}
|
|
if yyb1171 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
yyj1171++
|
|
if yyhl1171 {
|
|
yyb1171 = yyj1171 > l
|
|
} else {
|
|
yyb1171 = r.CheckBreak()
|
|
}
|
|
if yyb1171 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ReadOnly = false
|
|
} else {
|
|
x.ReadOnly = bool(r.DecodeBool())
|
|
}
|
|
yyj1171++
|
|
if yyhl1171 {
|
|
yyb1171 = yyj1171 > l
|
|
} else {
|
|
yyb1171 = r.CheckBreak()
|
|
}
|
|
if yyb1171 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.MountPath = ""
|
|
} else {
|
|
x.MountPath = string(r.DecodeString())
|
|
}
|
|
yyj1171++
|
|
if yyhl1171 {
|
|
yyb1171 = yyj1171 > l
|
|
} else {
|
|
yyb1171 = r.CheckBreak()
|
|
}
|
|
if yyb1171 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.SubPath = ""
|
|
} else {
|
|
x.SubPath = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj1171++
|
|
if yyhl1171 {
|
|
yyb1171 = yyj1171 > l
|
|
} else {
|
|
yyb1171 = r.CheckBreak()
|
|
}
|
|
if yyb1171 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1171-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 {
|
|
yym1176 := z.EncBinary()
|
|
_ = yym1176
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1177 := !z.EncBinary()
|
|
yy2arr1177 := z.EncBasicHandle().StructToArray
|
|
var yyq1177 [3]bool
|
|
_, _, _ = yysep1177, yyq1177, yy2arr1177
|
|
const yyr1177 bool = false
|
|
yyq1177[1] = x.Value != ""
|
|
yyq1177[2] = x.ValueFrom != nil
|
|
var yynn1177 int
|
|
if yyr1177 || yy2arr1177 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn1177 = 1
|
|
for _, b := range yyq1177 {
|
|
if b {
|
|
yynn1177++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1177)
|
|
yynn1177 = 0
|
|
}
|
|
if yyr1177 || yy2arr1177 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1179 := z.EncBinary()
|
|
_ = yym1179
|
|
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)
|
|
yym1180 := z.EncBinary()
|
|
_ = yym1180
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
}
|
|
if yyr1177 || yy2arr1177 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1177[1] {
|
|
yym1182 := z.EncBinary()
|
|
_ = yym1182
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Value))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1177[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("value"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1183 := z.EncBinary()
|
|
_ = yym1183
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Value))
|
|
}
|
|
}
|
|
}
|
|
if yyr1177 || yy2arr1177 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1177[2] {
|
|
if x.ValueFrom == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.ValueFrom.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1177[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 yyr1177 || yy2arr1177 {
|
|
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
|
|
yym1185 := z.DecBinary()
|
|
_ = yym1185
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1186 := r.ContainerType()
|
|
if yyct1186 == codecSelferValueTypeMap1234 {
|
|
yyl1186 := r.ReadMapStart()
|
|
if yyl1186 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1186, d)
|
|
}
|
|
} else if yyct1186 == codecSelferValueTypeArray1234 {
|
|
yyl1186 := r.ReadArrayStart()
|
|
if yyl1186 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1186, 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 yys1187Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1187Slc
|
|
var yyhl1187 bool = l >= 0
|
|
for yyj1187 := 0; ; yyj1187++ {
|
|
if yyhl1187 {
|
|
if yyj1187 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1187Slc = r.DecodeBytes(yys1187Slc, true, true)
|
|
yys1187 := string(yys1187Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1187 {
|
|
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, yys1187)
|
|
} // end switch yys1187
|
|
} // end for yyj1187
|
|
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 yyj1191 int
|
|
var yyb1191 bool
|
|
var yyhl1191 bool = l >= 0
|
|
yyj1191++
|
|
if yyhl1191 {
|
|
yyb1191 = yyj1191 > l
|
|
} else {
|
|
yyb1191 = r.CheckBreak()
|
|
}
|
|
if yyb1191 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
yyj1191++
|
|
if yyhl1191 {
|
|
yyb1191 = yyj1191 > l
|
|
} else {
|
|
yyb1191 = r.CheckBreak()
|
|
}
|
|
if yyb1191 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Value = ""
|
|
} else {
|
|
x.Value = string(r.DecodeString())
|
|
}
|
|
yyj1191++
|
|
if yyhl1191 {
|
|
yyb1191 = yyj1191 > l
|
|
} else {
|
|
yyb1191 = r.CheckBreak()
|
|
}
|
|
if yyb1191 {
|
|
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 {
|
|
yyj1191++
|
|
if yyhl1191 {
|
|
yyb1191 = yyj1191 > l
|
|
} else {
|
|
yyb1191 = r.CheckBreak()
|
|
}
|
|
if yyb1191 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1191-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 {
|
|
yym1195 := z.EncBinary()
|
|
_ = yym1195
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1196 := !z.EncBinary()
|
|
yy2arr1196 := z.EncBasicHandle().StructToArray
|
|
var yyq1196 [4]bool
|
|
_, _, _ = yysep1196, yyq1196, yy2arr1196
|
|
const yyr1196 bool = false
|
|
yyq1196[0] = x.FieldRef != nil
|
|
yyq1196[1] = x.ResourceFieldRef != nil
|
|
yyq1196[2] = x.ConfigMapKeyRef != nil
|
|
yyq1196[3] = x.SecretKeyRef != nil
|
|
var yynn1196 int
|
|
if yyr1196 || yy2arr1196 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn1196 = 0
|
|
for _, b := range yyq1196 {
|
|
if b {
|
|
yynn1196++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1196)
|
|
yynn1196 = 0
|
|
}
|
|
if yyr1196 || yy2arr1196 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1196[0] {
|
|
if x.FieldRef == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.FieldRef.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1196[0] {
|
|
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 yyr1196 || yy2arr1196 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1196[1] {
|
|
if x.ResourceFieldRef == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.ResourceFieldRef.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1196[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("resourceFieldRef"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.ResourceFieldRef == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.ResourceFieldRef.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1196 || yy2arr1196 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1196[2] {
|
|
if x.ConfigMapKeyRef == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.ConfigMapKeyRef.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1196[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("configMapKeyRef"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.ConfigMapKeyRef == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.ConfigMapKeyRef.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1196 || yy2arr1196 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1196[3] {
|
|
if x.SecretKeyRef == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.SecretKeyRef.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1196[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("secretKeyRef"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.SecretKeyRef == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.SecretKeyRef.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1196 || yy2arr1196 {
|
|
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
|
|
yym1201 := z.DecBinary()
|
|
_ = yym1201
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1202 := r.ContainerType()
|
|
if yyct1202 == codecSelferValueTypeMap1234 {
|
|
yyl1202 := r.ReadMapStart()
|
|
if yyl1202 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1202, d)
|
|
}
|
|
} else if yyct1202 == codecSelferValueTypeArray1234 {
|
|
yyl1202 := r.ReadArrayStart()
|
|
if yyl1202 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1202, 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 yys1203Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1203Slc
|
|
var yyhl1203 bool = l >= 0
|
|
for yyj1203 := 0; ; yyj1203++ {
|
|
if yyhl1203 {
|
|
if yyj1203 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1203Slc = r.DecodeBytes(yys1203Slc, true, true)
|
|
yys1203 := string(yys1203Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1203 {
|
|
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)
|
|
}
|
|
case "resourceFieldRef":
|
|
if r.TryDecodeAsNil() {
|
|
if x.ResourceFieldRef != nil {
|
|
x.ResourceFieldRef = nil
|
|
}
|
|
} else {
|
|
if x.ResourceFieldRef == nil {
|
|
x.ResourceFieldRef = new(ResourceFieldSelector)
|
|
}
|
|
x.ResourceFieldRef.CodecDecodeSelf(d)
|
|
}
|
|
case "configMapKeyRef":
|
|
if r.TryDecodeAsNil() {
|
|
if x.ConfigMapKeyRef != nil {
|
|
x.ConfigMapKeyRef = nil
|
|
}
|
|
} else {
|
|
if x.ConfigMapKeyRef == nil {
|
|
x.ConfigMapKeyRef = new(ConfigMapKeySelector)
|
|
}
|
|
x.ConfigMapKeyRef.CodecDecodeSelf(d)
|
|
}
|
|
case "secretKeyRef":
|
|
if r.TryDecodeAsNil() {
|
|
if x.SecretKeyRef != nil {
|
|
x.SecretKeyRef = nil
|
|
}
|
|
} else {
|
|
if x.SecretKeyRef == nil {
|
|
x.SecretKeyRef = new(SecretKeySelector)
|
|
}
|
|
x.SecretKeyRef.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1203)
|
|
} // end switch yys1203
|
|
} // end for yyj1203
|
|
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 yyj1208 int
|
|
var yyb1208 bool
|
|
var yyhl1208 bool = l >= 0
|
|
yyj1208++
|
|
if yyhl1208 {
|
|
yyb1208 = yyj1208 > l
|
|
} else {
|
|
yyb1208 = r.CheckBreak()
|
|
}
|
|
if yyb1208 {
|
|
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)
|
|
}
|
|
yyj1208++
|
|
if yyhl1208 {
|
|
yyb1208 = yyj1208 > l
|
|
} else {
|
|
yyb1208 = r.CheckBreak()
|
|
}
|
|
if yyb1208 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.ResourceFieldRef != nil {
|
|
x.ResourceFieldRef = nil
|
|
}
|
|
} else {
|
|
if x.ResourceFieldRef == nil {
|
|
x.ResourceFieldRef = new(ResourceFieldSelector)
|
|
}
|
|
x.ResourceFieldRef.CodecDecodeSelf(d)
|
|
}
|
|
yyj1208++
|
|
if yyhl1208 {
|
|
yyb1208 = yyj1208 > l
|
|
} else {
|
|
yyb1208 = r.CheckBreak()
|
|
}
|
|
if yyb1208 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.ConfigMapKeyRef != nil {
|
|
x.ConfigMapKeyRef = nil
|
|
}
|
|
} else {
|
|
if x.ConfigMapKeyRef == nil {
|
|
x.ConfigMapKeyRef = new(ConfigMapKeySelector)
|
|
}
|
|
x.ConfigMapKeyRef.CodecDecodeSelf(d)
|
|
}
|
|
yyj1208++
|
|
if yyhl1208 {
|
|
yyb1208 = yyj1208 > l
|
|
} else {
|
|
yyb1208 = r.CheckBreak()
|
|
}
|
|
if yyb1208 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.SecretKeyRef != nil {
|
|
x.SecretKeyRef = nil
|
|
}
|
|
} else {
|
|
if x.SecretKeyRef == nil {
|
|
x.SecretKeyRef = new(SecretKeySelector)
|
|
}
|
|
x.SecretKeyRef.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj1208++
|
|
if yyhl1208 {
|
|
yyb1208 = yyj1208 > l
|
|
} else {
|
|
yyb1208 = r.CheckBreak()
|
|
}
|
|
if yyb1208 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1208-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 {
|
|
yym1213 := z.EncBinary()
|
|
_ = yym1213
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1214 := !z.EncBinary()
|
|
yy2arr1214 := z.EncBasicHandle().StructToArray
|
|
var yyq1214 [2]bool
|
|
_, _, _ = yysep1214, yyq1214, yy2arr1214
|
|
const yyr1214 bool = false
|
|
var yynn1214 int
|
|
if yyr1214 || yy2arr1214 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn1214 = 2
|
|
for _, b := range yyq1214 {
|
|
if b {
|
|
yynn1214++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1214)
|
|
yynn1214 = 0
|
|
}
|
|
if yyr1214 || yy2arr1214 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1216 := z.EncBinary()
|
|
_ = yym1216
|
|
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)
|
|
yym1217 := z.EncBinary()
|
|
_ = yym1217
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
if yyr1214 || yy2arr1214 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1219 := z.EncBinary()
|
|
_ = yym1219
|
|
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)
|
|
yym1220 := z.EncBinary()
|
|
_ = yym1220
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath))
|
|
}
|
|
}
|
|
if yyr1214 || yy2arr1214 {
|
|
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
|
|
yym1221 := z.DecBinary()
|
|
_ = yym1221
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1222 := r.ContainerType()
|
|
if yyct1222 == codecSelferValueTypeMap1234 {
|
|
yyl1222 := r.ReadMapStart()
|
|
if yyl1222 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1222, d)
|
|
}
|
|
} else if yyct1222 == codecSelferValueTypeArray1234 {
|
|
yyl1222 := r.ReadArrayStart()
|
|
if yyl1222 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1222, 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 yys1223Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1223Slc
|
|
var yyhl1223 bool = l >= 0
|
|
for yyj1223 := 0; ; yyj1223++ {
|
|
if yyhl1223 {
|
|
if yyj1223 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1223Slc = r.DecodeBytes(yys1223Slc, true, true)
|
|
yys1223 := string(yys1223Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1223 {
|
|
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, yys1223)
|
|
} // end switch yys1223
|
|
} // end for yyj1223
|
|
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 yyj1226 int
|
|
var yyb1226 bool
|
|
var yyhl1226 bool = l >= 0
|
|
yyj1226++
|
|
if yyhl1226 {
|
|
yyb1226 = yyj1226 > l
|
|
} else {
|
|
yyb1226 = r.CheckBreak()
|
|
}
|
|
if yyb1226 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj1226++
|
|
if yyhl1226 {
|
|
yyb1226 = yyj1226 > l
|
|
} else {
|
|
yyb1226 = r.CheckBreak()
|
|
}
|
|
if yyb1226 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.FieldPath = ""
|
|
} else {
|
|
x.FieldPath = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj1226++
|
|
if yyhl1226 {
|
|
yyb1226 = yyj1226 > l
|
|
} else {
|
|
yyb1226 = r.CheckBreak()
|
|
}
|
|
if yyb1226 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1226-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *ResourceFieldSelector) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1229 := z.EncBinary()
|
|
_ = yym1229
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1230 := !z.EncBinary()
|
|
yy2arr1230 := z.EncBasicHandle().StructToArray
|
|
var yyq1230 [3]bool
|
|
_, _, _ = yysep1230, yyq1230, yy2arr1230
|
|
const yyr1230 bool = false
|
|
yyq1230[0] = x.ContainerName != ""
|
|
yyq1230[2] = true
|
|
var yynn1230 int
|
|
if yyr1230 || yy2arr1230 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn1230 = 1
|
|
for _, b := range yyq1230 {
|
|
if b {
|
|
yynn1230++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1230)
|
|
yynn1230 = 0
|
|
}
|
|
if yyr1230 || yy2arr1230 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1230[0] {
|
|
yym1232 := z.EncBinary()
|
|
_ = yym1232
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerName))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1230[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("containerName"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1233 := z.EncBinary()
|
|
_ = yym1233
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerName))
|
|
}
|
|
}
|
|
}
|
|
if yyr1230 || yy2arr1230 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1235 := z.EncBinary()
|
|
_ = yym1235
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Resource))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("resource"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1236 := z.EncBinary()
|
|
_ = yym1236
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Resource))
|
|
}
|
|
}
|
|
if yyr1230 || yy2arr1230 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1230[2] {
|
|
yy1238 := &x.Divisor
|
|
yym1239 := z.EncBinary()
|
|
_ = yym1239
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1238) {
|
|
} else if !yym1239 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy1238)
|
|
} else {
|
|
z.EncFallback(yy1238)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1230[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("divisor"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1240 := &x.Divisor
|
|
yym1241 := z.EncBinary()
|
|
_ = yym1241
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1240) {
|
|
} else if !yym1241 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy1240)
|
|
} else {
|
|
z.EncFallback(yy1240)
|
|
}
|
|
}
|
|
}
|
|
if yyr1230 || yy2arr1230 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ResourceFieldSelector) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1242 := z.DecBinary()
|
|
_ = yym1242
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1243 := r.ContainerType()
|
|
if yyct1243 == codecSelferValueTypeMap1234 {
|
|
yyl1243 := r.ReadMapStart()
|
|
if yyl1243 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1243, d)
|
|
}
|
|
} else if yyct1243 == codecSelferValueTypeArray1234 {
|
|
yyl1243 := r.ReadArrayStart()
|
|
if yyl1243 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1243, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ResourceFieldSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1244Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1244Slc
|
|
var yyhl1244 bool = l >= 0
|
|
for yyj1244 := 0; ; yyj1244++ {
|
|
if yyhl1244 {
|
|
if yyj1244 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1244Slc = r.DecodeBytes(yys1244Slc, true, true)
|
|
yys1244 := string(yys1244Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1244 {
|
|
case "containerName":
|
|
if r.TryDecodeAsNil() {
|
|
x.ContainerName = ""
|
|
} else {
|
|
x.ContainerName = string(r.DecodeString())
|
|
}
|
|
case "resource":
|
|
if r.TryDecodeAsNil() {
|
|
x.Resource = ""
|
|
} else {
|
|
x.Resource = string(r.DecodeString())
|
|
}
|
|
case "divisor":
|
|
if r.TryDecodeAsNil() {
|
|
x.Divisor = pkg3_resource.Quantity{}
|
|
} else {
|
|
yyv1247 := &x.Divisor
|
|
yym1248 := z.DecBinary()
|
|
_ = yym1248
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1247) {
|
|
} else if !yym1248 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv1247)
|
|
} else {
|
|
z.DecFallback(yyv1247, false)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1244)
|
|
} // end switch yys1244
|
|
} // end for yyj1244
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *ResourceFieldSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1249 int
|
|
var yyb1249 bool
|
|
var yyhl1249 bool = l >= 0
|
|
yyj1249++
|
|
if yyhl1249 {
|
|
yyb1249 = yyj1249 > l
|
|
} else {
|
|
yyb1249 = r.CheckBreak()
|
|
}
|
|
if yyb1249 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ContainerName = ""
|
|
} else {
|
|
x.ContainerName = string(r.DecodeString())
|
|
}
|
|
yyj1249++
|
|
if yyhl1249 {
|
|
yyb1249 = yyj1249 > l
|
|
} else {
|
|
yyb1249 = r.CheckBreak()
|
|
}
|
|
if yyb1249 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Resource = ""
|
|
} else {
|
|
x.Resource = string(r.DecodeString())
|
|
}
|
|
yyj1249++
|
|
if yyhl1249 {
|
|
yyb1249 = yyj1249 > l
|
|
} else {
|
|
yyb1249 = r.CheckBreak()
|
|
}
|
|
if yyb1249 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Divisor = pkg3_resource.Quantity{}
|
|
} else {
|
|
yyv1252 := &x.Divisor
|
|
yym1253 := z.DecBinary()
|
|
_ = yym1253
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1252) {
|
|
} else if !yym1253 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv1252)
|
|
} else {
|
|
z.DecFallback(yyv1252, false)
|
|
}
|
|
}
|
|
for {
|
|
yyj1249++
|
|
if yyhl1249 {
|
|
yyb1249 = yyj1249 > l
|
|
} else {
|
|
yyb1249 = r.CheckBreak()
|
|
}
|
|
if yyb1249 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1249-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *ConfigMapKeySelector) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1254 := z.EncBinary()
|
|
_ = yym1254
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1255 := !z.EncBinary()
|
|
yy2arr1255 := z.EncBasicHandle().StructToArray
|
|
var yyq1255 [2]bool
|
|
_, _, _ = yysep1255, yyq1255, yy2arr1255
|
|
const yyr1255 bool = false
|
|
var yynn1255 int
|
|
if yyr1255 || yy2arr1255 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn1255 = 2
|
|
for _, b := range yyq1255 {
|
|
if b {
|
|
yynn1255++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1255)
|
|
yynn1255 = 0
|
|
}
|
|
if yyr1255 || yy2arr1255 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1257 := z.EncBinary()
|
|
_ = yym1257
|
|
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)
|
|
yym1258 := z.EncBinary()
|
|
_ = yym1258
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
}
|
|
if yyr1255 || yy2arr1255 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1260 := z.EncBinary()
|
|
_ = yym1260
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Key))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("key"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1261 := z.EncBinary()
|
|
_ = yym1261
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Key))
|
|
}
|
|
}
|
|
if yyr1255 || yy2arr1255 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ConfigMapKeySelector) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1262 := z.DecBinary()
|
|
_ = yym1262
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1263 := r.ContainerType()
|
|
if yyct1263 == codecSelferValueTypeMap1234 {
|
|
yyl1263 := r.ReadMapStart()
|
|
if yyl1263 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1263, d)
|
|
}
|
|
} else if yyct1263 == codecSelferValueTypeArray1234 {
|
|
yyl1263 := r.ReadArrayStart()
|
|
if yyl1263 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1263, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ConfigMapKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1264Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1264Slc
|
|
var yyhl1264 bool = l >= 0
|
|
for yyj1264 := 0; ; yyj1264++ {
|
|
if yyhl1264 {
|
|
if yyj1264 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1264Slc = r.DecodeBytes(yys1264Slc, true, true)
|
|
yys1264 := string(yys1264Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1264 {
|
|
case "Name":
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
case "key":
|
|
if r.TryDecodeAsNil() {
|
|
x.Key = ""
|
|
} else {
|
|
x.Key = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1264)
|
|
} // end switch yys1264
|
|
} // end for yyj1264
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *ConfigMapKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1267 int
|
|
var yyb1267 bool
|
|
var yyhl1267 bool = l >= 0
|
|
yyj1267++
|
|
if yyhl1267 {
|
|
yyb1267 = yyj1267 > l
|
|
} else {
|
|
yyb1267 = r.CheckBreak()
|
|
}
|
|
if yyb1267 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
yyj1267++
|
|
if yyhl1267 {
|
|
yyb1267 = yyj1267 > l
|
|
} else {
|
|
yyb1267 = r.CheckBreak()
|
|
}
|
|
if yyb1267 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Key = ""
|
|
} else {
|
|
x.Key = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj1267++
|
|
if yyhl1267 {
|
|
yyb1267 = yyj1267 > l
|
|
} else {
|
|
yyb1267 = r.CheckBreak()
|
|
}
|
|
if yyb1267 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1267-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *SecretKeySelector) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1270 := z.EncBinary()
|
|
_ = yym1270
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1271 := !z.EncBinary()
|
|
yy2arr1271 := z.EncBasicHandle().StructToArray
|
|
var yyq1271 [2]bool
|
|
_, _, _ = yysep1271, yyq1271, yy2arr1271
|
|
const yyr1271 bool = false
|
|
var yynn1271 int
|
|
if yyr1271 || yy2arr1271 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn1271 = 2
|
|
for _, b := range yyq1271 {
|
|
if b {
|
|
yynn1271++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1271)
|
|
yynn1271 = 0
|
|
}
|
|
if yyr1271 || yy2arr1271 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1273 := z.EncBinary()
|
|
_ = yym1273
|
|
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)
|
|
yym1274 := z.EncBinary()
|
|
_ = yym1274
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
}
|
|
if yyr1271 || yy2arr1271 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1276 := z.EncBinary()
|
|
_ = yym1276
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Key))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("key"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1277 := z.EncBinary()
|
|
_ = yym1277
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Key))
|
|
}
|
|
}
|
|
if yyr1271 || yy2arr1271 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *SecretKeySelector) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1278 := z.DecBinary()
|
|
_ = yym1278
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1279 := r.ContainerType()
|
|
if yyct1279 == codecSelferValueTypeMap1234 {
|
|
yyl1279 := r.ReadMapStart()
|
|
if yyl1279 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1279, d)
|
|
}
|
|
} else if yyct1279 == codecSelferValueTypeArray1234 {
|
|
yyl1279 := r.ReadArrayStart()
|
|
if yyl1279 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1279, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *SecretKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1280Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1280Slc
|
|
var yyhl1280 bool = l >= 0
|
|
for yyj1280 := 0; ; yyj1280++ {
|
|
if yyhl1280 {
|
|
if yyj1280 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1280Slc = r.DecodeBytes(yys1280Slc, true, true)
|
|
yys1280 := string(yys1280Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1280 {
|
|
case "Name":
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
case "key":
|
|
if r.TryDecodeAsNil() {
|
|
x.Key = ""
|
|
} else {
|
|
x.Key = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1280)
|
|
} // end switch yys1280
|
|
} // end for yyj1280
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *SecretKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1283 int
|
|
var yyb1283 bool
|
|
var yyhl1283 bool = l >= 0
|
|
yyj1283++
|
|
if yyhl1283 {
|
|
yyb1283 = yyj1283 > l
|
|
} else {
|
|
yyb1283 = r.CheckBreak()
|
|
}
|
|
if yyb1283 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
yyj1283++
|
|
if yyhl1283 {
|
|
yyb1283 = yyj1283 > l
|
|
} else {
|
|
yyb1283 = r.CheckBreak()
|
|
}
|
|
if yyb1283 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Key = ""
|
|
} else {
|
|
x.Key = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj1283++
|
|
if yyhl1283 {
|
|
yyb1283 = yyj1283 > l
|
|
} else {
|
|
yyb1283 = r.CheckBreak()
|
|
}
|
|
if yyb1283 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1283-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *HTTPHeader) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1286 := z.EncBinary()
|
|
_ = yym1286
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1287 := !z.EncBinary()
|
|
yy2arr1287 := z.EncBasicHandle().StructToArray
|
|
var yyq1287 [2]bool
|
|
_, _, _ = yysep1287, yyq1287, yy2arr1287
|
|
const yyr1287 bool = false
|
|
var yynn1287 int
|
|
if yyr1287 || yy2arr1287 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn1287 = 2
|
|
for _, b := range yyq1287 {
|
|
if b {
|
|
yynn1287++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1287)
|
|
yynn1287 = 0
|
|
}
|
|
if yyr1287 || yy2arr1287 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1289 := z.EncBinary()
|
|
_ = yym1289
|
|
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)
|
|
yym1290 := z.EncBinary()
|
|
_ = yym1290
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
}
|
|
if yyr1287 || yy2arr1287 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1292 := z.EncBinary()
|
|
_ = yym1292
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Value))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("value"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1293 := z.EncBinary()
|
|
_ = yym1293
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Value))
|
|
}
|
|
}
|
|
if yyr1287 || yy2arr1287 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *HTTPHeader) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1294 := z.DecBinary()
|
|
_ = yym1294
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1295 := r.ContainerType()
|
|
if yyct1295 == codecSelferValueTypeMap1234 {
|
|
yyl1295 := r.ReadMapStart()
|
|
if yyl1295 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1295, d)
|
|
}
|
|
} else if yyct1295 == codecSelferValueTypeArray1234 {
|
|
yyl1295 := r.ReadArrayStart()
|
|
if yyl1295 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1295, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *HTTPHeader) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1296Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1296Slc
|
|
var yyhl1296 bool = l >= 0
|
|
for yyj1296 := 0; ; yyj1296++ {
|
|
if yyhl1296 {
|
|
if yyj1296 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1296Slc = r.DecodeBytes(yys1296Slc, true, true)
|
|
yys1296 := string(yys1296Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1296 {
|
|
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())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1296)
|
|
} // end switch yys1296
|
|
} // end for yyj1296
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *HTTPHeader) 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() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
yyj1299++
|
|
if yyhl1299 {
|
|
yyb1299 = yyj1299 > l
|
|
} else {
|
|
yyb1299 = r.CheckBreak()
|
|
}
|
|
if yyb1299 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Value = ""
|
|
} else {
|
|
x.Value = string(r.DecodeString())
|
|
}
|
|
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 *HTTPGetAction) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1302 := z.EncBinary()
|
|
_ = yym1302
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1303 := !z.EncBinary()
|
|
yy2arr1303 := z.EncBasicHandle().StructToArray
|
|
var yyq1303 [5]bool
|
|
_, _, _ = yysep1303, yyq1303, yy2arr1303
|
|
const yyr1303 bool = false
|
|
yyq1303[0] = x.Path != ""
|
|
yyq1303[1] = true
|
|
yyq1303[2] = x.Host != ""
|
|
yyq1303[3] = x.Scheme != ""
|
|
yyq1303[4] = len(x.HTTPHeaders) != 0
|
|
var yynn1303 int
|
|
if yyr1303 || yy2arr1303 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn1303 = 0
|
|
for _, b := range yyq1303 {
|
|
if b {
|
|
yynn1303++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1303)
|
|
yynn1303 = 0
|
|
}
|
|
if yyr1303 || yy2arr1303 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1303[0] {
|
|
yym1305 := z.EncBinary()
|
|
_ = yym1305
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1303[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("path"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1306 := z.EncBinary()
|
|
_ = yym1306
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
|
|
}
|
|
}
|
|
}
|
|
if yyr1303 || yy2arr1303 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1303[1] {
|
|
yy1308 := &x.Port
|
|
yym1309 := z.EncBinary()
|
|
_ = yym1309
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1308) {
|
|
} else if !yym1309 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy1308)
|
|
} else {
|
|
z.EncFallback(yy1308)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1303[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("port"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1310 := &x.Port
|
|
yym1311 := z.EncBinary()
|
|
_ = yym1311
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1310) {
|
|
} else if !yym1311 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy1310)
|
|
} else {
|
|
z.EncFallback(yy1310)
|
|
}
|
|
}
|
|
}
|
|
if yyr1303 || yy2arr1303 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1303[2] {
|
|
yym1313 := z.EncBinary()
|
|
_ = yym1313
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Host))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1303[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("host"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1314 := z.EncBinary()
|
|
_ = yym1314
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Host))
|
|
}
|
|
}
|
|
}
|
|
if yyr1303 || yy2arr1303 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1303[3] {
|
|
x.Scheme.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1303[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("scheme"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Scheme.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1303 || yy2arr1303 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1303[4] {
|
|
if x.HTTPHeaders == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1317 := z.EncBinary()
|
|
_ = yym1317
|
|
if false {
|
|
} else {
|
|
h.encSliceHTTPHeader(([]HTTPHeader)(x.HTTPHeaders), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1303[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("httpHeaders"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.HTTPHeaders == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1318 := z.EncBinary()
|
|
_ = yym1318
|
|
if false {
|
|
} else {
|
|
h.encSliceHTTPHeader(([]HTTPHeader)(x.HTTPHeaders), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1303 || yy2arr1303 {
|
|
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
|
|
yym1319 := z.DecBinary()
|
|
_ = yym1319
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1320 := r.ContainerType()
|
|
if yyct1320 == codecSelferValueTypeMap1234 {
|
|
yyl1320 := r.ReadMapStart()
|
|
if yyl1320 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1320, d)
|
|
}
|
|
} else if yyct1320 == codecSelferValueTypeArray1234 {
|
|
yyl1320 := r.ReadArrayStart()
|
|
if yyl1320 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1320, 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 yys1321Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1321Slc
|
|
var yyhl1321 bool = l >= 0
|
|
for yyj1321 := 0; ; yyj1321++ {
|
|
if yyhl1321 {
|
|
if yyj1321 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1321Slc = r.DecodeBytes(yys1321Slc, true, true)
|
|
yys1321 := string(yys1321Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1321 {
|
|
case "path":
|
|
if r.TryDecodeAsNil() {
|
|
x.Path = ""
|
|
} else {
|
|
x.Path = string(r.DecodeString())
|
|
}
|
|
case "port":
|
|
if r.TryDecodeAsNil() {
|
|
x.Port = pkg4_intstr.IntOrString{}
|
|
} else {
|
|
yyv1323 := &x.Port
|
|
yym1324 := z.DecBinary()
|
|
_ = yym1324
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1323) {
|
|
} else if !yym1324 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv1323)
|
|
} else {
|
|
z.DecFallback(yyv1323, 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())
|
|
}
|
|
case "httpHeaders":
|
|
if r.TryDecodeAsNil() {
|
|
x.HTTPHeaders = nil
|
|
} else {
|
|
yyv1327 := &x.HTTPHeaders
|
|
yym1328 := z.DecBinary()
|
|
_ = yym1328
|
|
if false {
|
|
} else {
|
|
h.decSliceHTTPHeader((*[]HTTPHeader)(yyv1327), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1321)
|
|
} // end switch yys1321
|
|
} // end for yyj1321
|
|
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 yyj1329 int
|
|
var yyb1329 bool
|
|
var yyhl1329 bool = l >= 0
|
|
yyj1329++
|
|
if yyhl1329 {
|
|
yyb1329 = yyj1329 > l
|
|
} else {
|
|
yyb1329 = r.CheckBreak()
|
|
}
|
|
if yyb1329 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Path = ""
|
|
} else {
|
|
x.Path = string(r.DecodeString())
|
|
}
|
|
yyj1329++
|
|
if yyhl1329 {
|
|
yyb1329 = yyj1329 > l
|
|
} else {
|
|
yyb1329 = r.CheckBreak()
|
|
}
|
|
if yyb1329 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Port = pkg4_intstr.IntOrString{}
|
|
} else {
|
|
yyv1331 := &x.Port
|
|
yym1332 := z.DecBinary()
|
|
_ = yym1332
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1331) {
|
|
} else if !yym1332 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv1331)
|
|
} else {
|
|
z.DecFallback(yyv1331, false)
|
|
}
|
|
}
|
|
yyj1329++
|
|
if yyhl1329 {
|
|
yyb1329 = yyj1329 > l
|
|
} else {
|
|
yyb1329 = r.CheckBreak()
|
|
}
|
|
if yyb1329 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Host = ""
|
|
} else {
|
|
x.Host = string(r.DecodeString())
|
|
}
|
|
yyj1329++
|
|
if yyhl1329 {
|
|
yyb1329 = yyj1329 > l
|
|
} else {
|
|
yyb1329 = r.CheckBreak()
|
|
}
|
|
if yyb1329 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Scheme = ""
|
|
} else {
|
|
x.Scheme = URIScheme(r.DecodeString())
|
|
}
|
|
yyj1329++
|
|
if yyhl1329 {
|
|
yyb1329 = yyj1329 > l
|
|
} else {
|
|
yyb1329 = r.CheckBreak()
|
|
}
|
|
if yyb1329 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.HTTPHeaders = nil
|
|
} else {
|
|
yyv1335 := &x.HTTPHeaders
|
|
yym1336 := z.DecBinary()
|
|
_ = yym1336
|
|
if false {
|
|
} else {
|
|
h.decSliceHTTPHeader((*[]HTTPHeader)(yyv1335), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj1329++
|
|
if yyhl1329 {
|
|
yyb1329 = yyj1329 > l
|
|
} else {
|
|
yyb1329 = r.CheckBreak()
|
|
}
|
|
if yyb1329 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1329-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x URIScheme) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym1337 := z.EncBinary()
|
|
_ = yym1337
|
|
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
|
|
yym1338 := z.DecBinary()
|
|
_ = yym1338
|
|
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 {
|
|
yym1339 := z.EncBinary()
|
|
_ = yym1339
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1340 := !z.EncBinary()
|
|
yy2arr1340 := z.EncBasicHandle().StructToArray
|
|
var yyq1340 [1]bool
|
|
_, _, _ = yysep1340, yyq1340, yy2arr1340
|
|
const yyr1340 bool = false
|
|
yyq1340[0] = true
|
|
var yynn1340 int
|
|
if yyr1340 || yy2arr1340 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn1340 = 0
|
|
for _, b := range yyq1340 {
|
|
if b {
|
|
yynn1340++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1340)
|
|
yynn1340 = 0
|
|
}
|
|
if yyr1340 || yy2arr1340 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1340[0] {
|
|
yy1342 := &x.Port
|
|
yym1343 := z.EncBinary()
|
|
_ = yym1343
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1342) {
|
|
} else if !yym1343 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy1342)
|
|
} else {
|
|
z.EncFallback(yy1342)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1340[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("port"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1344 := &x.Port
|
|
yym1345 := z.EncBinary()
|
|
_ = yym1345
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1344) {
|
|
} else if !yym1345 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy1344)
|
|
} else {
|
|
z.EncFallback(yy1344)
|
|
}
|
|
}
|
|
}
|
|
if yyr1340 || yy2arr1340 {
|
|
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
|
|
yym1346 := z.DecBinary()
|
|
_ = yym1346
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1347 := r.ContainerType()
|
|
if yyct1347 == codecSelferValueTypeMap1234 {
|
|
yyl1347 := r.ReadMapStart()
|
|
if yyl1347 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1347, d)
|
|
}
|
|
} else if yyct1347 == codecSelferValueTypeArray1234 {
|
|
yyl1347 := r.ReadArrayStart()
|
|
if yyl1347 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1347, 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 yys1348Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1348Slc
|
|
var yyhl1348 bool = l >= 0
|
|
for yyj1348 := 0; ; yyj1348++ {
|
|
if yyhl1348 {
|
|
if yyj1348 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1348Slc = r.DecodeBytes(yys1348Slc, true, true)
|
|
yys1348 := string(yys1348Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1348 {
|
|
case "port":
|
|
if r.TryDecodeAsNil() {
|
|
x.Port = pkg4_intstr.IntOrString{}
|
|
} else {
|
|
yyv1349 := &x.Port
|
|
yym1350 := z.DecBinary()
|
|
_ = yym1350
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1349) {
|
|
} else if !yym1350 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv1349)
|
|
} else {
|
|
z.DecFallback(yyv1349, false)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1348)
|
|
} // end switch yys1348
|
|
} // end for yyj1348
|
|
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 yyj1351 int
|
|
var yyb1351 bool
|
|
var yyhl1351 bool = l >= 0
|
|
yyj1351++
|
|
if yyhl1351 {
|
|
yyb1351 = yyj1351 > l
|
|
} else {
|
|
yyb1351 = r.CheckBreak()
|
|
}
|
|
if yyb1351 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Port = pkg4_intstr.IntOrString{}
|
|
} else {
|
|
yyv1352 := &x.Port
|
|
yym1353 := z.DecBinary()
|
|
_ = yym1353
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1352) {
|
|
} else if !yym1353 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv1352)
|
|
} else {
|
|
z.DecFallback(yyv1352, false)
|
|
}
|
|
}
|
|
for {
|
|
yyj1351++
|
|
if yyhl1351 {
|
|
yyb1351 = yyj1351 > l
|
|
} else {
|
|
yyb1351 = r.CheckBreak()
|
|
}
|
|
if yyb1351 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1351-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 {
|
|
yym1354 := z.EncBinary()
|
|
_ = yym1354
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1355 := !z.EncBinary()
|
|
yy2arr1355 := z.EncBasicHandle().StructToArray
|
|
var yyq1355 [1]bool
|
|
_, _, _ = yysep1355, yyq1355, yy2arr1355
|
|
const yyr1355 bool = false
|
|
yyq1355[0] = len(x.Command) != 0
|
|
var yynn1355 int
|
|
if yyr1355 || yy2arr1355 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn1355 = 0
|
|
for _, b := range yyq1355 {
|
|
if b {
|
|
yynn1355++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1355)
|
|
yynn1355 = 0
|
|
}
|
|
if yyr1355 || yy2arr1355 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1355[0] {
|
|
if x.Command == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1357 := z.EncBinary()
|
|
_ = yym1357
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.Command, false, e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1355[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("command"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Command == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1358 := z.EncBinary()
|
|
_ = yym1358
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.Command, false, e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1355 || yy2arr1355 {
|
|
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
|
|
yym1359 := z.DecBinary()
|
|
_ = yym1359
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1360 := r.ContainerType()
|
|
if yyct1360 == codecSelferValueTypeMap1234 {
|
|
yyl1360 := r.ReadMapStart()
|
|
if yyl1360 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1360, d)
|
|
}
|
|
} else if yyct1360 == codecSelferValueTypeArray1234 {
|
|
yyl1360 := r.ReadArrayStart()
|
|
if yyl1360 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1360, 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 yys1361Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1361Slc
|
|
var yyhl1361 bool = l >= 0
|
|
for yyj1361 := 0; ; yyj1361++ {
|
|
if yyhl1361 {
|
|
if yyj1361 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1361Slc = r.DecodeBytes(yys1361Slc, true, true)
|
|
yys1361 := string(yys1361Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1361 {
|
|
case "command":
|
|
if r.TryDecodeAsNil() {
|
|
x.Command = nil
|
|
} else {
|
|
yyv1362 := &x.Command
|
|
yym1363 := z.DecBinary()
|
|
_ = yym1363
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv1362, false, d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1361)
|
|
} // end switch yys1361
|
|
} // end for yyj1361
|
|
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 yyj1364 int
|
|
var yyb1364 bool
|
|
var yyhl1364 bool = l >= 0
|
|
yyj1364++
|
|
if yyhl1364 {
|
|
yyb1364 = yyj1364 > l
|
|
} else {
|
|
yyb1364 = r.CheckBreak()
|
|
}
|
|
if yyb1364 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Command = nil
|
|
} else {
|
|
yyv1365 := &x.Command
|
|
yym1366 := z.DecBinary()
|
|
_ = yym1366
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv1365, false, d)
|
|
}
|
|
}
|
|
for {
|
|
yyj1364++
|
|
if yyhl1364 {
|
|
yyb1364 = yyj1364 > l
|
|
} else {
|
|
yyb1364 = r.CheckBreak()
|
|
}
|
|
if yyb1364 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1364-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 {
|
|
yym1367 := z.EncBinary()
|
|
_ = yym1367
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1368 := !z.EncBinary()
|
|
yy2arr1368 := z.EncBasicHandle().StructToArray
|
|
var yyq1368 [8]bool
|
|
_, _, _ = yysep1368, yyq1368, yy2arr1368
|
|
const yyr1368 bool = false
|
|
yyq1368[0] = x.Handler.Exec != nil && x.Exec != nil
|
|
yyq1368[1] = x.Handler.HTTPGet != nil && x.HTTPGet != nil
|
|
yyq1368[2] = x.Handler.TCPSocket != nil && x.TCPSocket != nil
|
|
yyq1368[3] = x.InitialDelaySeconds != 0
|
|
yyq1368[4] = x.TimeoutSeconds != 0
|
|
yyq1368[5] = x.PeriodSeconds != 0
|
|
yyq1368[6] = x.SuccessThreshold != 0
|
|
yyq1368[7] = x.FailureThreshold != 0
|
|
var yynn1368 int
|
|
if yyr1368 || yy2arr1368 {
|
|
r.EncodeArrayStart(8)
|
|
} else {
|
|
yynn1368 = 0
|
|
for _, b := range yyq1368 {
|
|
if b {
|
|
yynn1368++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1368)
|
|
yynn1368 = 0
|
|
}
|
|
var yyn1369 bool
|
|
if x.Handler.Exec == nil {
|
|
yyn1369 = true
|
|
goto LABEL1369
|
|
}
|
|
LABEL1369:
|
|
if yyr1368 || yy2arr1368 {
|
|
if yyn1369 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1368[0] {
|
|
if x.Exec == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Exec.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq1368[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("exec"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn1369 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.Exec == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Exec.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn1370 bool
|
|
if x.Handler.HTTPGet == nil {
|
|
yyn1370 = true
|
|
goto LABEL1370
|
|
}
|
|
LABEL1370:
|
|
if yyr1368 || yy2arr1368 {
|
|
if yyn1370 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1368[1] {
|
|
if x.HTTPGet == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.HTTPGet.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq1368[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("httpGet"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn1370 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.HTTPGet == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.HTTPGet.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var yyn1371 bool
|
|
if x.Handler.TCPSocket == nil {
|
|
yyn1371 = true
|
|
goto LABEL1371
|
|
}
|
|
LABEL1371:
|
|
if yyr1368 || yy2arr1368 {
|
|
if yyn1371 {
|
|
r.EncodeNil()
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1368[2] {
|
|
if x.TCPSocket == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.TCPSocket.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
}
|
|
} else {
|
|
if yyq1368[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("tcpSocket"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyn1371 {
|
|
r.EncodeNil()
|
|
} else {
|
|
if x.TCPSocket == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.TCPSocket.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1368 || yy2arr1368 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1368[3] {
|
|
yym1373 := z.EncBinary()
|
|
_ = yym1373
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.InitialDelaySeconds))
|
|
}
|
|
} else {
|
|
r.EncodeInt(0)
|
|
}
|
|
} else {
|
|
if yyq1368[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("initialDelaySeconds"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1374 := z.EncBinary()
|
|
_ = yym1374
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.InitialDelaySeconds))
|
|
}
|
|
}
|
|
}
|
|
if yyr1368 || yy2arr1368 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1368[4] {
|
|
yym1376 := z.EncBinary()
|
|
_ = yym1376
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.TimeoutSeconds))
|
|
}
|
|
} else {
|
|
r.EncodeInt(0)
|
|
}
|
|
} else {
|
|
if yyq1368[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("timeoutSeconds"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1377 := z.EncBinary()
|
|
_ = yym1377
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.TimeoutSeconds))
|
|
}
|
|
}
|
|
}
|
|
if yyr1368 || yy2arr1368 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1368[5] {
|
|
yym1379 := z.EncBinary()
|
|
_ = yym1379
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.PeriodSeconds))
|
|
}
|
|
} else {
|
|
r.EncodeInt(0)
|
|
}
|
|
} else {
|
|
if yyq1368[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("periodSeconds"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1380 := z.EncBinary()
|
|
_ = yym1380
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.PeriodSeconds))
|
|
}
|
|
}
|
|
}
|
|
if yyr1368 || yy2arr1368 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1368[6] {
|
|
yym1382 := z.EncBinary()
|
|
_ = yym1382
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.SuccessThreshold))
|
|
}
|
|
} else {
|
|
r.EncodeInt(0)
|
|
}
|
|
} else {
|
|
if yyq1368[6] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("successThreshold"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1383 := z.EncBinary()
|
|
_ = yym1383
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.SuccessThreshold))
|
|
}
|
|
}
|
|
}
|
|
if yyr1368 || yy2arr1368 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1368[7] {
|
|
yym1385 := z.EncBinary()
|
|
_ = yym1385
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.FailureThreshold))
|
|
}
|
|
} else {
|
|
r.EncodeInt(0)
|
|
}
|
|
} else {
|
|
if yyq1368[7] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("failureThreshold"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1386 := z.EncBinary()
|
|
_ = yym1386
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.FailureThreshold))
|
|
}
|
|
}
|
|
}
|
|
if yyr1368 || yy2arr1368 {
|
|
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
|
|
yym1387 := z.DecBinary()
|
|
_ = yym1387
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1388 := r.ContainerType()
|
|
if yyct1388 == codecSelferValueTypeMap1234 {
|
|
yyl1388 := r.ReadMapStart()
|
|
if yyl1388 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1388, d)
|
|
}
|
|
} else if yyct1388 == codecSelferValueTypeArray1234 {
|
|
yyl1388 := r.ReadArrayStart()
|
|
if yyl1388 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1388, 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 yys1389Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1389Slc
|
|
var yyhl1389 bool = l >= 0
|
|
for yyj1389 := 0; ; yyj1389++ {
|
|
if yyhl1389 {
|
|
if yyj1389 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1389Slc = r.DecodeBytes(yys1389Slc, true, true)
|
|
yys1389 := string(yys1389Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1389 {
|
|
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 = int32(r.DecodeInt(32))
|
|
}
|
|
case "timeoutSeconds":
|
|
if r.TryDecodeAsNil() {
|
|
x.TimeoutSeconds = 0
|
|
} else {
|
|
x.TimeoutSeconds = int32(r.DecodeInt(32))
|
|
}
|
|
case "periodSeconds":
|
|
if r.TryDecodeAsNil() {
|
|
x.PeriodSeconds = 0
|
|
} else {
|
|
x.PeriodSeconds = int32(r.DecodeInt(32))
|
|
}
|
|
case "successThreshold":
|
|
if r.TryDecodeAsNil() {
|
|
x.SuccessThreshold = 0
|
|
} else {
|
|
x.SuccessThreshold = int32(r.DecodeInt(32))
|
|
}
|
|
case "failureThreshold":
|
|
if r.TryDecodeAsNil() {
|
|
x.FailureThreshold = 0
|
|
} else {
|
|
x.FailureThreshold = int32(r.DecodeInt(32))
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1389)
|
|
} // end switch yys1389
|
|
} // end for yyj1389
|
|
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 yyj1398 int
|
|
var yyb1398 bool
|
|
var yyhl1398 bool = l >= 0
|
|
if x.Handler.Exec == nil {
|
|
x.Handler.Exec = new(ExecAction)
|
|
}
|
|
yyj1398++
|
|
if yyhl1398 {
|
|
yyb1398 = yyj1398 > l
|
|
} else {
|
|
yyb1398 = r.CheckBreak()
|
|
}
|
|
if yyb1398 {
|
|
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)
|
|
}
|
|
yyj1398++
|
|
if yyhl1398 {
|
|
yyb1398 = yyj1398 > l
|
|
} else {
|
|
yyb1398 = r.CheckBreak()
|
|
}
|
|
if yyb1398 {
|
|
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)
|
|
}
|
|
yyj1398++
|
|
if yyhl1398 {
|
|
yyb1398 = yyj1398 > l
|
|
} else {
|
|
yyb1398 = r.CheckBreak()
|
|
}
|
|
if yyb1398 {
|
|
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)
|
|
}
|
|
yyj1398++
|
|
if yyhl1398 {
|
|
yyb1398 = yyj1398 > l
|
|
} else {
|
|
yyb1398 = r.CheckBreak()
|
|
}
|
|
if yyb1398 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.InitialDelaySeconds = 0
|
|
} else {
|
|
x.InitialDelaySeconds = int32(r.DecodeInt(32))
|
|
}
|
|
yyj1398++
|
|
if yyhl1398 {
|
|
yyb1398 = yyj1398 > l
|
|
} else {
|
|
yyb1398 = r.CheckBreak()
|
|
}
|
|
if yyb1398 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.TimeoutSeconds = 0
|
|
} else {
|
|
x.TimeoutSeconds = int32(r.DecodeInt(32))
|
|
}
|
|
yyj1398++
|
|
if yyhl1398 {
|
|
yyb1398 = yyj1398 > l
|
|
} else {
|
|
yyb1398 = r.CheckBreak()
|
|
}
|
|
if yyb1398 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.PeriodSeconds = 0
|
|
} else {
|
|
x.PeriodSeconds = int32(r.DecodeInt(32))
|
|
}
|
|
yyj1398++
|
|
if yyhl1398 {
|
|
yyb1398 = yyj1398 > l
|
|
} else {
|
|
yyb1398 = r.CheckBreak()
|
|
}
|
|
if yyb1398 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.SuccessThreshold = 0
|
|
} else {
|
|
x.SuccessThreshold = int32(r.DecodeInt(32))
|
|
}
|
|
yyj1398++
|
|
if yyhl1398 {
|
|
yyb1398 = yyj1398 > l
|
|
} else {
|
|
yyb1398 = r.CheckBreak()
|
|
}
|
|
if yyb1398 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.FailureThreshold = 0
|
|
} else {
|
|
x.FailureThreshold = int32(r.DecodeInt(32))
|
|
}
|
|
for {
|
|
yyj1398++
|
|
if yyhl1398 {
|
|
yyb1398 = yyj1398 > l
|
|
} else {
|
|
yyb1398 = r.CheckBreak()
|
|
}
|
|
if yyb1398 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1398-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x PullPolicy) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym1407 := z.EncBinary()
|
|
_ = yym1407
|
|
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
|
|
yym1408 := z.DecBinary()
|
|
_ = yym1408
|
|
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
|
|
yym1409 := z.EncBinary()
|
|
_ = yym1409
|
|
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
|
|
yym1410 := z.DecBinary()
|
|
_ = yym1410
|
|
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 {
|
|
yym1411 := z.EncBinary()
|
|
_ = yym1411
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1412 := !z.EncBinary()
|
|
yy2arr1412 := z.EncBasicHandle().StructToArray
|
|
var yyq1412 [2]bool
|
|
_, _, _ = yysep1412, yyq1412, yy2arr1412
|
|
const yyr1412 bool = false
|
|
yyq1412[0] = len(x.Add) != 0
|
|
yyq1412[1] = len(x.Drop) != 0
|
|
var yynn1412 int
|
|
if yyr1412 || yy2arr1412 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn1412 = 0
|
|
for _, b := range yyq1412 {
|
|
if b {
|
|
yynn1412++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1412)
|
|
yynn1412 = 0
|
|
}
|
|
if yyr1412 || yy2arr1412 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1412[0] {
|
|
if x.Add == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1414 := z.EncBinary()
|
|
_ = yym1414
|
|
if false {
|
|
} else {
|
|
h.encSliceCapability(([]Capability)(x.Add), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1412[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("add"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Add == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1415 := z.EncBinary()
|
|
_ = yym1415
|
|
if false {
|
|
} else {
|
|
h.encSliceCapability(([]Capability)(x.Add), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1412 || yy2arr1412 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1412[1] {
|
|
if x.Drop == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1417 := z.EncBinary()
|
|
_ = yym1417
|
|
if false {
|
|
} else {
|
|
h.encSliceCapability(([]Capability)(x.Drop), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1412[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("drop"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Drop == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1418 := z.EncBinary()
|
|
_ = yym1418
|
|
if false {
|
|
} else {
|
|
h.encSliceCapability(([]Capability)(x.Drop), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1412 || yy2arr1412 {
|
|
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
|
|
yym1419 := z.DecBinary()
|
|
_ = yym1419
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1420 := r.ContainerType()
|
|
if yyct1420 == codecSelferValueTypeMap1234 {
|
|
yyl1420 := r.ReadMapStart()
|
|
if yyl1420 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1420, d)
|
|
}
|
|
} else if yyct1420 == codecSelferValueTypeArray1234 {
|
|
yyl1420 := r.ReadArrayStart()
|
|
if yyl1420 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1420, 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 yys1421Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1421Slc
|
|
var yyhl1421 bool = l >= 0
|
|
for yyj1421 := 0; ; yyj1421++ {
|
|
if yyhl1421 {
|
|
if yyj1421 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1421Slc = r.DecodeBytes(yys1421Slc, true, true)
|
|
yys1421 := string(yys1421Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1421 {
|
|
case "add":
|
|
if r.TryDecodeAsNil() {
|
|
x.Add = nil
|
|
} else {
|
|
yyv1422 := &x.Add
|
|
yym1423 := z.DecBinary()
|
|
_ = yym1423
|
|
if false {
|
|
} else {
|
|
h.decSliceCapability((*[]Capability)(yyv1422), d)
|
|
}
|
|
}
|
|
case "drop":
|
|
if r.TryDecodeAsNil() {
|
|
x.Drop = nil
|
|
} else {
|
|
yyv1424 := &x.Drop
|
|
yym1425 := z.DecBinary()
|
|
_ = yym1425
|
|
if false {
|
|
} else {
|
|
h.decSliceCapability((*[]Capability)(yyv1424), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1421)
|
|
} // end switch yys1421
|
|
} // end for yyj1421
|
|
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 yyj1426 int
|
|
var yyb1426 bool
|
|
var yyhl1426 bool = l >= 0
|
|
yyj1426++
|
|
if yyhl1426 {
|
|
yyb1426 = yyj1426 > l
|
|
} else {
|
|
yyb1426 = r.CheckBreak()
|
|
}
|
|
if yyb1426 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Add = nil
|
|
} else {
|
|
yyv1427 := &x.Add
|
|
yym1428 := z.DecBinary()
|
|
_ = yym1428
|
|
if false {
|
|
} else {
|
|
h.decSliceCapability((*[]Capability)(yyv1427), d)
|
|
}
|
|
}
|
|
yyj1426++
|
|
if yyhl1426 {
|
|
yyb1426 = yyj1426 > l
|
|
} else {
|
|
yyb1426 = r.CheckBreak()
|
|
}
|
|
if yyb1426 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Drop = nil
|
|
} else {
|
|
yyv1429 := &x.Drop
|
|
yym1430 := z.DecBinary()
|
|
_ = yym1430
|
|
if false {
|
|
} else {
|
|
h.decSliceCapability((*[]Capability)(yyv1429), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj1426++
|
|
if yyhl1426 {
|
|
yyb1426 = yyj1426 > l
|
|
} else {
|
|
yyb1426 = r.CheckBreak()
|
|
}
|
|
if yyb1426 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1426-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 {
|
|
yym1431 := z.EncBinary()
|
|
_ = yym1431
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1432 := !z.EncBinary()
|
|
yy2arr1432 := z.EncBasicHandle().StructToArray
|
|
var yyq1432 [2]bool
|
|
_, _, _ = yysep1432, yyq1432, yy2arr1432
|
|
const yyr1432 bool = false
|
|
yyq1432[0] = len(x.Limits) != 0
|
|
yyq1432[1] = len(x.Requests) != 0
|
|
var yynn1432 int
|
|
if yyr1432 || yy2arr1432 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn1432 = 0
|
|
for _, b := range yyq1432 {
|
|
if b {
|
|
yynn1432++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1432)
|
|
yynn1432 = 0
|
|
}
|
|
if yyr1432 || yy2arr1432 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1432[0] {
|
|
if x.Limits == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Limits.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1432[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 yyr1432 || yy2arr1432 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1432[1] {
|
|
if x.Requests == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Requests.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1432[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 yyr1432 || yy2arr1432 {
|
|
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
|
|
yym1435 := z.DecBinary()
|
|
_ = yym1435
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1436 := r.ContainerType()
|
|
if yyct1436 == codecSelferValueTypeMap1234 {
|
|
yyl1436 := r.ReadMapStart()
|
|
if yyl1436 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1436, d)
|
|
}
|
|
} else if yyct1436 == codecSelferValueTypeArray1234 {
|
|
yyl1436 := r.ReadArrayStart()
|
|
if yyl1436 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1436, 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 yys1437Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1437Slc
|
|
var yyhl1437 bool = l >= 0
|
|
for yyj1437 := 0; ; yyj1437++ {
|
|
if yyhl1437 {
|
|
if yyj1437 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1437Slc = r.DecodeBytes(yys1437Slc, true, true)
|
|
yys1437 := string(yys1437Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1437 {
|
|
case "limits":
|
|
if r.TryDecodeAsNil() {
|
|
x.Limits = nil
|
|
} else {
|
|
yyv1438 := &x.Limits
|
|
yyv1438.CodecDecodeSelf(d)
|
|
}
|
|
case "requests":
|
|
if r.TryDecodeAsNil() {
|
|
x.Requests = nil
|
|
} else {
|
|
yyv1439 := &x.Requests
|
|
yyv1439.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1437)
|
|
} // end switch yys1437
|
|
} // end for yyj1437
|
|
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 yyj1440 int
|
|
var yyb1440 bool
|
|
var yyhl1440 bool = l >= 0
|
|
yyj1440++
|
|
if yyhl1440 {
|
|
yyb1440 = yyj1440 > l
|
|
} else {
|
|
yyb1440 = r.CheckBreak()
|
|
}
|
|
if yyb1440 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Limits = nil
|
|
} else {
|
|
yyv1441 := &x.Limits
|
|
yyv1441.CodecDecodeSelf(d)
|
|
}
|
|
yyj1440++
|
|
if yyhl1440 {
|
|
yyb1440 = yyj1440 > l
|
|
} else {
|
|
yyb1440 = r.CheckBreak()
|
|
}
|
|
if yyb1440 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Requests = nil
|
|
} else {
|
|
yyv1442 := &x.Requests
|
|
yyv1442.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj1440++
|
|
if yyhl1440 {
|
|
yyb1440 = yyj1440 > l
|
|
} else {
|
|
yyb1440 = r.CheckBreak()
|
|
}
|
|
if yyb1440 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1440-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 {
|
|
yym1443 := z.EncBinary()
|
|
_ = yym1443
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1444 := !z.EncBinary()
|
|
yy2arr1444 := z.EncBasicHandle().StructToArray
|
|
var yyq1444 [18]bool
|
|
_, _, _ = yysep1444, yyq1444, yy2arr1444
|
|
const yyr1444 bool = false
|
|
yyq1444[2] = len(x.Command) != 0
|
|
yyq1444[3] = len(x.Args) != 0
|
|
yyq1444[4] = x.WorkingDir != ""
|
|
yyq1444[5] = len(x.Ports) != 0
|
|
yyq1444[6] = len(x.Env) != 0
|
|
yyq1444[7] = true
|
|
yyq1444[8] = len(x.VolumeMounts) != 0
|
|
yyq1444[9] = x.LivenessProbe != nil
|
|
yyq1444[10] = x.ReadinessProbe != nil
|
|
yyq1444[11] = x.Lifecycle != nil
|
|
yyq1444[12] = x.TerminationMessagePath != ""
|
|
yyq1444[14] = x.SecurityContext != nil
|
|
yyq1444[15] = x.Stdin != false
|
|
yyq1444[16] = x.StdinOnce != false
|
|
yyq1444[17] = x.TTY != false
|
|
var yynn1444 int
|
|
if yyr1444 || yy2arr1444 {
|
|
r.EncodeArrayStart(18)
|
|
} else {
|
|
yynn1444 = 3
|
|
for _, b := range yyq1444 {
|
|
if b {
|
|
yynn1444++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1444)
|
|
yynn1444 = 0
|
|
}
|
|
if yyr1444 || yy2arr1444 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1446 := z.EncBinary()
|
|
_ = yym1446
|
|
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)
|
|
yym1447 := z.EncBinary()
|
|
_ = yym1447
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
}
|
|
if yyr1444 || yy2arr1444 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1449 := z.EncBinary()
|
|
_ = yym1449
|
|
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)
|
|
yym1450 := z.EncBinary()
|
|
_ = yym1450
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Image))
|
|
}
|
|
}
|
|
if yyr1444 || yy2arr1444 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1444[2] {
|
|
if x.Command == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1452 := z.EncBinary()
|
|
_ = yym1452
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.Command, false, e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1444[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("command"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Command == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1453 := z.EncBinary()
|
|
_ = yym1453
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.Command, false, e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1444 || yy2arr1444 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1444[3] {
|
|
if x.Args == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1455 := z.EncBinary()
|
|
_ = yym1455
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.Args, false, e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1444[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("args"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Args == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1456 := z.EncBinary()
|
|
_ = yym1456
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.Args, false, e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1444 || yy2arr1444 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1444[4] {
|
|
yym1458 := z.EncBinary()
|
|
_ = yym1458
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1444[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("workingDir"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1459 := z.EncBinary()
|
|
_ = yym1459
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir))
|
|
}
|
|
}
|
|
}
|
|
if yyr1444 || yy2arr1444 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1444[5] {
|
|
if x.Ports == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1461 := z.EncBinary()
|
|
_ = yym1461
|
|
if false {
|
|
} else {
|
|
h.encSliceContainerPort(([]ContainerPort)(x.Ports), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1444[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("ports"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Ports == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1462 := z.EncBinary()
|
|
_ = yym1462
|
|
if false {
|
|
} else {
|
|
h.encSliceContainerPort(([]ContainerPort)(x.Ports), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1444 || yy2arr1444 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1444[6] {
|
|
if x.Env == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1464 := z.EncBinary()
|
|
_ = yym1464
|
|
if false {
|
|
} else {
|
|
h.encSliceEnvVar(([]EnvVar)(x.Env), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1444[6] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("env"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Env == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1465 := z.EncBinary()
|
|
_ = yym1465
|
|
if false {
|
|
} else {
|
|
h.encSliceEnvVar(([]EnvVar)(x.Env), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1444 || yy2arr1444 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1444[7] {
|
|
yy1467 := &x.Resources
|
|
yy1467.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1444[7] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("resources"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1468 := &x.Resources
|
|
yy1468.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1444 || yy2arr1444 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1444[8] {
|
|
if x.VolumeMounts == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1470 := z.EncBinary()
|
|
_ = yym1470
|
|
if false {
|
|
} else {
|
|
h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1444[8] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("volumeMounts"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.VolumeMounts == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1471 := z.EncBinary()
|
|
_ = yym1471
|
|
if false {
|
|
} else {
|
|
h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1444 || yy2arr1444 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1444[9] {
|
|
if x.LivenessProbe == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.LivenessProbe.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1444[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 yyr1444 || yy2arr1444 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1444[10] {
|
|
if x.ReadinessProbe == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.ReadinessProbe.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1444[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 yyr1444 || yy2arr1444 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1444[11] {
|
|
if x.Lifecycle == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Lifecycle.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1444[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 yyr1444 || yy2arr1444 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1444[12] {
|
|
yym1476 := z.EncBinary()
|
|
_ = yym1476
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1444[12] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("terminationMessagePath"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1477 := z.EncBinary()
|
|
_ = yym1477
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath))
|
|
}
|
|
}
|
|
}
|
|
if yyr1444 || yy2arr1444 {
|
|
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 yyr1444 || yy2arr1444 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1444[14] {
|
|
if x.SecurityContext == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.SecurityContext.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1444[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 yyr1444 || yy2arr1444 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1444[15] {
|
|
yym1481 := z.EncBinary()
|
|
_ = yym1481
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Stdin))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq1444[15] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("stdin"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1482 := z.EncBinary()
|
|
_ = yym1482
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Stdin))
|
|
}
|
|
}
|
|
}
|
|
if yyr1444 || yy2arr1444 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1444[16] {
|
|
yym1484 := z.EncBinary()
|
|
_ = yym1484
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.StdinOnce))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq1444[16] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("stdinOnce"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1485 := z.EncBinary()
|
|
_ = yym1485
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.StdinOnce))
|
|
}
|
|
}
|
|
}
|
|
if yyr1444 || yy2arr1444 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1444[17] {
|
|
yym1487 := z.EncBinary()
|
|
_ = yym1487
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.TTY))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq1444[17] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("tty"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1488 := z.EncBinary()
|
|
_ = yym1488
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.TTY))
|
|
}
|
|
}
|
|
}
|
|
if yyr1444 || yy2arr1444 {
|
|
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
|
|
yym1489 := z.DecBinary()
|
|
_ = yym1489
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1490 := r.ContainerType()
|
|
if yyct1490 == codecSelferValueTypeMap1234 {
|
|
yyl1490 := r.ReadMapStart()
|
|
if yyl1490 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1490, d)
|
|
}
|
|
} else if yyct1490 == codecSelferValueTypeArray1234 {
|
|
yyl1490 := r.ReadArrayStart()
|
|
if yyl1490 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1490, 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 yys1491Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1491Slc
|
|
var yyhl1491 bool = l >= 0
|
|
for yyj1491 := 0; ; yyj1491++ {
|
|
if yyhl1491 {
|
|
if yyj1491 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1491Slc = r.DecodeBytes(yys1491Slc, true, true)
|
|
yys1491 := string(yys1491Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1491 {
|
|
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 {
|
|
yyv1494 := &x.Command
|
|
yym1495 := z.DecBinary()
|
|
_ = yym1495
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv1494, false, d)
|
|
}
|
|
}
|
|
case "args":
|
|
if r.TryDecodeAsNil() {
|
|
x.Args = nil
|
|
} else {
|
|
yyv1496 := &x.Args
|
|
yym1497 := z.DecBinary()
|
|
_ = yym1497
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv1496, false, d)
|
|
}
|
|
}
|
|
case "workingDir":
|
|
if r.TryDecodeAsNil() {
|
|
x.WorkingDir = ""
|
|
} else {
|
|
x.WorkingDir = string(r.DecodeString())
|
|
}
|
|
case "ports":
|
|
if r.TryDecodeAsNil() {
|
|
x.Ports = nil
|
|
} else {
|
|
yyv1499 := &x.Ports
|
|
yym1500 := z.DecBinary()
|
|
_ = yym1500
|
|
if false {
|
|
} else {
|
|
h.decSliceContainerPort((*[]ContainerPort)(yyv1499), d)
|
|
}
|
|
}
|
|
case "env":
|
|
if r.TryDecodeAsNil() {
|
|
x.Env = nil
|
|
} else {
|
|
yyv1501 := &x.Env
|
|
yym1502 := z.DecBinary()
|
|
_ = yym1502
|
|
if false {
|
|
} else {
|
|
h.decSliceEnvVar((*[]EnvVar)(yyv1501), d)
|
|
}
|
|
}
|
|
case "resources":
|
|
if r.TryDecodeAsNil() {
|
|
x.Resources = ResourceRequirements{}
|
|
} else {
|
|
yyv1503 := &x.Resources
|
|
yyv1503.CodecDecodeSelf(d)
|
|
}
|
|
case "volumeMounts":
|
|
if r.TryDecodeAsNil() {
|
|
x.VolumeMounts = nil
|
|
} else {
|
|
yyv1504 := &x.VolumeMounts
|
|
yym1505 := z.DecBinary()
|
|
_ = yym1505
|
|
if false {
|
|
} else {
|
|
h.decSliceVolumeMount((*[]VolumeMount)(yyv1504), 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, yys1491)
|
|
} // end switch yys1491
|
|
} // end for yyj1491
|
|
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 yyj1515 int
|
|
var yyb1515 bool
|
|
var yyhl1515 bool = l >= 0
|
|
yyj1515++
|
|
if yyhl1515 {
|
|
yyb1515 = yyj1515 > l
|
|
} else {
|
|
yyb1515 = r.CheckBreak()
|
|
}
|
|
if yyb1515 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
yyj1515++
|
|
if yyhl1515 {
|
|
yyb1515 = yyj1515 > l
|
|
} else {
|
|
yyb1515 = r.CheckBreak()
|
|
}
|
|
if yyb1515 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Image = ""
|
|
} else {
|
|
x.Image = string(r.DecodeString())
|
|
}
|
|
yyj1515++
|
|
if yyhl1515 {
|
|
yyb1515 = yyj1515 > l
|
|
} else {
|
|
yyb1515 = r.CheckBreak()
|
|
}
|
|
if yyb1515 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Command = nil
|
|
} else {
|
|
yyv1518 := &x.Command
|
|
yym1519 := z.DecBinary()
|
|
_ = yym1519
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv1518, false, d)
|
|
}
|
|
}
|
|
yyj1515++
|
|
if yyhl1515 {
|
|
yyb1515 = yyj1515 > l
|
|
} else {
|
|
yyb1515 = r.CheckBreak()
|
|
}
|
|
if yyb1515 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Args = nil
|
|
} else {
|
|
yyv1520 := &x.Args
|
|
yym1521 := z.DecBinary()
|
|
_ = yym1521
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv1520, false, d)
|
|
}
|
|
}
|
|
yyj1515++
|
|
if yyhl1515 {
|
|
yyb1515 = yyj1515 > l
|
|
} else {
|
|
yyb1515 = r.CheckBreak()
|
|
}
|
|
if yyb1515 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.WorkingDir = ""
|
|
} else {
|
|
x.WorkingDir = string(r.DecodeString())
|
|
}
|
|
yyj1515++
|
|
if yyhl1515 {
|
|
yyb1515 = yyj1515 > l
|
|
} else {
|
|
yyb1515 = r.CheckBreak()
|
|
}
|
|
if yyb1515 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Ports = nil
|
|
} else {
|
|
yyv1523 := &x.Ports
|
|
yym1524 := z.DecBinary()
|
|
_ = yym1524
|
|
if false {
|
|
} else {
|
|
h.decSliceContainerPort((*[]ContainerPort)(yyv1523), d)
|
|
}
|
|
}
|
|
yyj1515++
|
|
if yyhl1515 {
|
|
yyb1515 = yyj1515 > l
|
|
} else {
|
|
yyb1515 = r.CheckBreak()
|
|
}
|
|
if yyb1515 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Env = nil
|
|
} else {
|
|
yyv1525 := &x.Env
|
|
yym1526 := z.DecBinary()
|
|
_ = yym1526
|
|
if false {
|
|
} else {
|
|
h.decSliceEnvVar((*[]EnvVar)(yyv1525), d)
|
|
}
|
|
}
|
|
yyj1515++
|
|
if yyhl1515 {
|
|
yyb1515 = yyj1515 > l
|
|
} else {
|
|
yyb1515 = r.CheckBreak()
|
|
}
|
|
if yyb1515 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Resources = ResourceRequirements{}
|
|
} else {
|
|
yyv1527 := &x.Resources
|
|
yyv1527.CodecDecodeSelf(d)
|
|
}
|
|
yyj1515++
|
|
if yyhl1515 {
|
|
yyb1515 = yyj1515 > l
|
|
} else {
|
|
yyb1515 = r.CheckBreak()
|
|
}
|
|
if yyb1515 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.VolumeMounts = nil
|
|
} else {
|
|
yyv1528 := &x.VolumeMounts
|
|
yym1529 := z.DecBinary()
|
|
_ = yym1529
|
|
if false {
|
|
} else {
|
|
h.decSliceVolumeMount((*[]VolumeMount)(yyv1528), d)
|
|
}
|
|
}
|
|
yyj1515++
|
|
if yyhl1515 {
|
|
yyb1515 = yyj1515 > l
|
|
} else {
|
|
yyb1515 = r.CheckBreak()
|
|
}
|
|
if yyb1515 {
|
|
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)
|
|
}
|
|
yyj1515++
|
|
if yyhl1515 {
|
|
yyb1515 = yyj1515 > l
|
|
} else {
|
|
yyb1515 = r.CheckBreak()
|
|
}
|
|
if yyb1515 {
|
|
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)
|
|
}
|
|
yyj1515++
|
|
if yyhl1515 {
|
|
yyb1515 = yyj1515 > l
|
|
} else {
|
|
yyb1515 = r.CheckBreak()
|
|
}
|
|
if yyb1515 {
|
|
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)
|
|
}
|
|
yyj1515++
|
|
if yyhl1515 {
|
|
yyb1515 = yyj1515 > l
|
|
} else {
|
|
yyb1515 = r.CheckBreak()
|
|
}
|
|
if yyb1515 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.TerminationMessagePath = ""
|
|
} else {
|
|
x.TerminationMessagePath = string(r.DecodeString())
|
|
}
|
|
yyj1515++
|
|
if yyhl1515 {
|
|
yyb1515 = yyj1515 > l
|
|
} else {
|
|
yyb1515 = r.CheckBreak()
|
|
}
|
|
if yyb1515 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ImagePullPolicy = ""
|
|
} else {
|
|
x.ImagePullPolicy = PullPolicy(r.DecodeString())
|
|
}
|
|
yyj1515++
|
|
if yyhl1515 {
|
|
yyb1515 = yyj1515 > l
|
|
} else {
|
|
yyb1515 = r.CheckBreak()
|
|
}
|
|
if yyb1515 {
|
|
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)
|
|
}
|
|
yyj1515++
|
|
if yyhl1515 {
|
|
yyb1515 = yyj1515 > l
|
|
} else {
|
|
yyb1515 = r.CheckBreak()
|
|
}
|
|
if yyb1515 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Stdin = false
|
|
} else {
|
|
x.Stdin = bool(r.DecodeBool())
|
|
}
|
|
yyj1515++
|
|
if yyhl1515 {
|
|
yyb1515 = yyj1515 > l
|
|
} else {
|
|
yyb1515 = r.CheckBreak()
|
|
}
|
|
if yyb1515 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.StdinOnce = false
|
|
} else {
|
|
x.StdinOnce = bool(r.DecodeBool())
|
|
}
|
|
yyj1515++
|
|
if yyhl1515 {
|
|
yyb1515 = yyj1515 > l
|
|
} else {
|
|
yyb1515 = r.CheckBreak()
|
|
}
|
|
if yyb1515 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.TTY = false
|
|
} else {
|
|
x.TTY = bool(r.DecodeBool())
|
|
}
|
|
for {
|
|
yyj1515++
|
|
if yyhl1515 {
|
|
yyb1515 = yyj1515 > l
|
|
} else {
|
|
yyb1515 = r.CheckBreak()
|
|
}
|
|
if yyb1515 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1515-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 {
|
|
yym1539 := z.EncBinary()
|
|
_ = yym1539
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1540 := !z.EncBinary()
|
|
yy2arr1540 := z.EncBasicHandle().StructToArray
|
|
var yyq1540 [3]bool
|
|
_, _, _ = yysep1540, yyq1540, yy2arr1540
|
|
const yyr1540 bool = false
|
|
yyq1540[0] = x.Exec != nil
|
|
yyq1540[1] = x.HTTPGet != nil
|
|
yyq1540[2] = x.TCPSocket != nil
|
|
var yynn1540 int
|
|
if yyr1540 || yy2arr1540 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn1540 = 0
|
|
for _, b := range yyq1540 {
|
|
if b {
|
|
yynn1540++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1540)
|
|
yynn1540 = 0
|
|
}
|
|
if yyr1540 || yy2arr1540 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1540[0] {
|
|
if x.Exec == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Exec.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1540[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 yyr1540 || yy2arr1540 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1540[1] {
|
|
if x.HTTPGet == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.HTTPGet.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1540[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 yyr1540 || yy2arr1540 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1540[2] {
|
|
if x.TCPSocket == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.TCPSocket.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1540[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 yyr1540 || yy2arr1540 {
|
|
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
|
|
yym1544 := z.DecBinary()
|
|
_ = yym1544
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1545 := r.ContainerType()
|
|
if yyct1545 == codecSelferValueTypeMap1234 {
|
|
yyl1545 := r.ReadMapStart()
|
|
if yyl1545 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1545, d)
|
|
}
|
|
} else if yyct1545 == codecSelferValueTypeArray1234 {
|
|
yyl1545 := r.ReadArrayStart()
|
|
if yyl1545 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1545, 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 yys1546Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1546Slc
|
|
var yyhl1546 bool = l >= 0
|
|
for yyj1546 := 0; ; yyj1546++ {
|
|
if yyhl1546 {
|
|
if yyj1546 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1546Slc = r.DecodeBytes(yys1546Slc, true, true)
|
|
yys1546 := string(yys1546Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1546 {
|
|
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, yys1546)
|
|
} // end switch yys1546
|
|
} // end for yyj1546
|
|
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 yyj1550 int
|
|
var yyb1550 bool
|
|
var yyhl1550 bool = l >= 0
|
|
yyj1550++
|
|
if yyhl1550 {
|
|
yyb1550 = yyj1550 > l
|
|
} else {
|
|
yyb1550 = r.CheckBreak()
|
|
}
|
|
if yyb1550 {
|
|
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)
|
|
}
|
|
yyj1550++
|
|
if yyhl1550 {
|
|
yyb1550 = yyj1550 > l
|
|
} else {
|
|
yyb1550 = r.CheckBreak()
|
|
}
|
|
if yyb1550 {
|
|
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)
|
|
}
|
|
yyj1550++
|
|
if yyhl1550 {
|
|
yyb1550 = yyj1550 > l
|
|
} else {
|
|
yyb1550 = r.CheckBreak()
|
|
}
|
|
if yyb1550 {
|
|
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 {
|
|
yyj1550++
|
|
if yyhl1550 {
|
|
yyb1550 = yyj1550 > l
|
|
} else {
|
|
yyb1550 = r.CheckBreak()
|
|
}
|
|
if yyb1550 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1550-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 {
|
|
yym1554 := z.EncBinary()
|
|
_ = yym1554
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1555 := !z.EncBinary()
|
|
yy2arr1555 := z.EncBasicHandle().StructToArray
|
|
var yyq1555 [2]bool
|
|
_, _, _ = yysep1555, yyq1555, yy2arr1555
|
|
const yyr1555 bool = false
|
|
yyq1555[0] = x.PostStart != nil
|
|
yyq1555[1] = x.PreStop != nil
|
|
var yynn1555 int
|
|
if yyr1555 || yy2arr1555 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn1555 = 0
|
|
for _, b := range yyq1555 {
|
|
if b {
|
|
yynn1555++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1555)
|
|
yynn1555 = 0
|
|
}
|
|
if yyr1555 || yy2arr1555 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1555[0] {
|
|
if x.PostStart == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.PostStart.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1555[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 yyr1555 || yy2arr1555 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1555[1] {
|
|
if x.PreStop == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.PreStop.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1555[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 yyr1555 || yy2arr1555 {
|
|
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
|
|
yym1558 := z.DecBinary()
|
|
_ = yym1558
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1559 := r.ContainerType()
|
|
if yyct1559 == codecSelferValueTypeMap1234 {
|
|
yyl1559 := r.ReadMapStart()
|
|
if yyl1559 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1559, d)
|
|
}
|
|
} else if yyct1559 == codecSelferValueTypeArray1234 {
|
|
yyl1559 := r.ReadArrayStart()
|
|
if yyl1559 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1559, 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 yys1560Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1560Slc
|
|
var yyhl1560 bool = l >= 0
|
|
for yyj1560 := 0; ; yyj1560++ {
|
|
if yyhl1560 {
|
|
if yyj1560 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1560Slc = r.DecodeBytes(yys1560Slc, true, true)
|
|
yys1560 := string(yys1560Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1560 {
|
|
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, yys1560)
|
|
} // end switch yys1560
|
|
} // end for yyj1560
|
|
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 yyj1563 int
|
|
var yyb1563 bool
|
|
var yyhl1563 bool = l >= 0
|
|
yyj1563++
|
|
if yyhl1563 {
|
|
yyb1563 = yyj1563 > l
|
|
} else {
|
|
yyb1563 = r.CheckBreak()
|
|
}
|
|
if yyb1563 {
|
|
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)
|
|
}
|
|
yyj1563++
|
|
if yyhl1563 {
|
|
yyb1563 = yyj1563 > l
|
|
} else {
|
|
yyb1563 = r.CheckBreak()
|
|
}
|
|
if yyb1563 {
|
|
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 {
|
|
yyj1563++
|
|
if yyhl1563 {
|
|
yyb1563 = yyj1563 > l
|
|
} else {
|
|
yyb1563 = r.CheckBreak()
|
|
}
|
|
if yyb1563 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1563-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x ConditionStatus) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym1566 := z.EncBinary()
|
|
_ = yym1566
|
|
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
|
|
yym1567 := z.DecBinary()
|
|
_ = yym1567
|
|
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 {
|
|
yym1568 := z.EncBinary()
|
|
_ = yym1568
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1569 := !z.EncBinary()
|
|
yy2arr1569 := z.EncBasicHandle().StructToArray
|
|
var yyq1569 [2]bool
|
|
_, _, _ = yysep1569, yyq1569, yy2arr1569
|
|
const yyr1569 bool = false
|
|
yyq1569[0] = x.Reason != ""
|
|
yyq1569[1] = x.Message != ""
|
|
var yynn1569 int
|
|
if yyr1569 || yy2arr1569 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn1569 = 0
|
|
for _, b := range yyq1569 {
|
|
if b {
|
|
yynn1569++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1569)
|
|
yynn1569 = 0
|
|
}
|
|
if yyr1569 || yy2arr1569 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1569[0] {
|
|
yym1571 := z.EncBinary()
|
|
_ = yym1571
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1569[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("reason"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1572 := z.EncBinary()
|
|
_ = yym1572
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
|
|
}
|
|
}
|
|
}
|
|
if yyr1569 || yy2arr1569 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1569[1] {
|
|
yym1574 := z.EncBinary()
|
|
_ = yym1574
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1569[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("message"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1575 := z.EncBinary()
|
|
_ = yym1575
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
}
|
|
}
|
|
if yyr1569 || yy2arr1569 {
|
|
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
|
|
yym1576 := z.DecBinary()
|
|
_ = yym1576
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1577 := r.ContainerType()
|
|
if yyct1577 == codecSelferValueTypeMap1234 {
|
|
yyl1577 := r.ReadMapStart()
|
|
if yyl1577 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1577, d)
|
|
}
|
|
} else if yyct1577 == codecSelferValueTypeArray1234 {
|
|
yyl1577 := r.ReadArrayStart()
|
|
if yyl1577 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1577, 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 yys1578Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1578Slc
|
|
var yyhl1578 bool = l >= 0
|
|
for yyj1578 := 0; ; yyj1578++ {
|
|
if yyhl1578 {
|
|
if yyj1578 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1578Slc = r.DecodeBytes(yys1578Slc, true, true)
|
|
yys1578 := string(yys1578Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1578 {
|
|
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, yys1578)
|
|
} // end switch yys1578
|
|
} // end for yyj1578
|
|
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 yyj1581 int
|
|
var yyb1581 bool
|
|
var yyhl1581 bool = l >= 0
|
|
yyj1581++
|
|
if yyhl1581 {
|
|
yyb1581 = yyj1581 > l
|
|
} else {
|
|
yyb1581 = r.CheckBreak()
|
|
}
|
|
if yyb1581 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Reason = ""
|
|
} else {
|
|
x.Reason = string(r.DecodeString())
|
|
}
|
|
yyj1581++
|
|
if yyhl1581 {
|
|
yyb1581 = yyj1581 > l
|
|
} else {
|
|
yyb1581 = r.CheckBreak()
|
|
}
|
|
if yyb1581 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Message = ""
|
|
} else {
|
|
x.Message = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj1581++
|
|
if yyhl1581 {
|
|
yyb1581 = yyj1581 > l
|
|
} else {
|
|
yyb1581 = r.CheckBreak()
|
|
}
|
|
if yyb1581 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1581-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 {
|
|
yym1584 := z.EncBinary()
|
|
_ = yym1584
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1585 := !z.EncBinary()
|
|
yy2arr1585 := z.EncBasicHandle().StructToArray
|
|
var yyq1585 [1]bool
|
|
_, _, _ = yysep1585, yyq1585, yy2arr1585
|
|
const yyr1585 bool = false
|
|
yyq1585[0] = true
|
|
var yynn1585 int
|
|
if yyr1585 || yy2arr1585 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn1585 = 0
|
|
for _, b := range yyq1585 {
|
|
if b {
|
|
yynn1585++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1585)
|
|
yynn1585 = 0
|
|
}
|
|
if yyr1585 || yy2arr1585 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1585[0] {
|
|
yy1587 := &x.StartedAt
|
|
yym1588 := z.EncBinary()
|
|
_ = yym1588
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1587) {
|
|
} else if yym1588 {
|
|
z.EncBinaryMarshal(yy1587)
|
|
} else if !yym1588 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy1587)
|
|
} else {
|
|
z.EncFallback(yy1587)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1585[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("startedAt"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1589 := &x.StartedAt
|
|
yym1590 := z.EncBinary()
|
|
_ = yym1590
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1589) {
|
|
} else if yym1590 {
|
|
z.EncBinaryMarshal(yy1589)
|
|
} else if !yym1590 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy1589)
|
|
} else {
|
|
z.EncFallback(yy1589)
|
|
}
|
|
}
|
|
}
|
|
if yyr1585 || yy2arr1585 {
|
|
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
|
|
yym1591 := z.DecBinary()
|
|
_ = yym1591
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1592 := r.ContainerType()
|
|
if yyct1592 == codecSelferValueTypeMap1234 {
|
|
yyl1592 := r.ReadMapStart()
|
|
if yyl1592 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1592, d)
|
|
}
|
|
} else if yyct1592 == codecSelferValueTypeArray1234 {
|
|
yyl1592 := r.ReadArrayStart()
|
|
if yyl1592 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1592, 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 yys1593Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1593Slc
|
|
var yyhl1593 bool = l >= 0
|
|
for yyj1593 := 0; ; yyj1593++ {
|
|
if yyhl1593 {
|
|
if yyj1593 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1593Slc = r.DecodeBytes(yys1593Slc, true, true)
|
|
yys1593 := string(yys1593Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1593 {
|
|
case "startedAt":
|
|
if r.TryDecodeAsNil() {
|
|
x.StartedAt = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv1594 := &x.StartedAt
|
|
yym1595 := z.DecBinary()
|
|
_ = yym1595
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1594) {
|
|
} else if yym1595 {
|
|
z.DecBinaryUnmarshal(yyv1594)
|
|
} else if !yym1595 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv1594)
|
|
} else {
|
|
z.DecFallback(yyv1594, false)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1593)
|
|
} // end switch yys1593
|
|
} // end for yyj1593
|
|
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 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.StartedAt = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv1597 := &x.StartedAt
|
|
yym1598 := z.DecBinary()
|
|
_ = yym1598
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1597) {
|
|
} else if yym1598 {
|
|
z.DecBinaryUnmarshal(yyv1597)
|
|
} else if !yym1598 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv1597)
|
|
} else {
|
|
z.DecFallback(yyv1597, false)
|
|
}
|
|
}
|
|
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 *ContainerStateTerminated) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1599 := z.EncBinary()
|
|
_ = yym1599
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1600 := !z.EncBinary()
|
|
yy2arr1600 := z.EncBasicHandle().StructToArray
|
|
var yyq1600 [7]bool
|
|
_, _, _ = yysep1600, yyq1600, yy2arr1600
|
|
const yyr1600 bool = false
|
|
yyq1600[1] = x.Signal != 0
|
|
yyq1600[2] = x.Reason != ""
|
|
yyq1600[3] = x.Message != ""
|
|
yyq1600[4] = true
|
|
yyq1600[5] = true
|
|
yyq1600[6] = x.ContainerID != ""
|
|
var yynn1600 int
|
|
if yyr1600 || yy2arr1600 {
|
|
r.EncodeArrayStart(7)
|
|
} else {
|
|
yynn1600 = 1
|
|
for _, b := range yyq1600 {
|
|
if b {
|
|
yynn1600++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1600)
|
|
yynn1600 = 0
|
|
}
|
|
if yyr1600 || yy2arr1600 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1602 := z.EncBinary()
|
|
_ = yym1602
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.ExitCode))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("exitCode"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1603 := z.EncBinary()
|
|
_ = yym1603
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.ExitCode))
|
|
}
|
|
}
|
|
if yyr1600 || yy2arr1600 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1600[1] {
|
|
yym1605 := z.EncBinary()
|
|
_ = yym1605
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Signal))
|
|
}
|
|
} else {
|
|
r.EncodeInt(0)
|
|
}
|
|
} else {
|
|
if yyq1600[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("signal"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1606 := z.EncBinary()
|
|
_ = yym1606
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Signal))
|
|
}
|
|
}
|
|
}
|
|
if yyr1600 || yy2arr1600 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1600[2] {
|
|
yym1608 := z.EncBinary()
|
|
_ = yym1608
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1600[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("reason"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1609 := z.EncBinary()
|
|
_ = yym1609
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
|
|
}
|
|
}
|
|
}
|
|
if yyr1600 || yy2arr1600 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1600[3] {
|
|
yym1611 := z.EncBinary()
|
|
_ = yym1611
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1600[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("message"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1612 := z.EncBinary()
|
|
_ = yym1612
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
}
|
|
}
|
|
if yyr1600 || yy2arr1600 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1600[4] {
|
|
yy1614 := &x.StartedAt
|
|
yym1615 := z.EncBinary()
|
|
_ = yym1615
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1614) {
|
|
} else if yym1615 {
|
|
z.EncBinaryMarshal(yy1614)
|
|
} else if !yym1615 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy1614)
|
|
} else {
|
|
z.EncFallback(yy1614)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1600[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("startedAt"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1616 := &x.StartedAt
|
|
yym1617 := z.EncBinary()
|
|
_ = yym1617
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1616) {
|
|
} else if yym1617 {
|
|
z.EncBinaryMarshal(yy1616)
|
|
} else if !yym1617 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy1616)
|
|
} else {
|
|
z.EncFallback(yy1616)
|
|
}
|
|
}
|
|
}
|
|
if yyr1600 || yy2arr1600 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1600[5] {
|
|
yy1619 := &x.FinishedAt
|
|
yym1620 := z.EncBinary()
|
|
_ = yym1620
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1619) {
|
|
} else if yym1620 {
|
|
z.EncBinaryMarshal(yy1619)
|
|
} else if !yym1620 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy1619)
|
|
} else {
|
|
z.EncFallback(yy1619)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1600[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("finishedAt"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1621 := &x.FinishedAt
|
|
yym1622 := z.EncBinary()
|
|
_ = yym1622
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1621) {
|
|
} else if yym1622 {
|
|
z.EncBinaryMarshal(yy1621)
|
|
} else if !yym1622 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy1621)
|
|
} else {
|
|
z.EncFallback(yy1621)
|
|
}
|
|
}
|
|
}
|
|
if yyr1600 || yy2arr1600 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1600[6] {
|
|
yym1624 := z.EncBinary()
|
|
_ = yym1624
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1600[6] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("containerID"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1625 := z.EncBinary()
|
|
_ = yym1625
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID))
|
|
}
|
|
}
|
|
}
|
|
if yyr1600 || yy2arr1600 {
|
|
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
|
|
yym1626 := z.DecBinary()
|
|
_ = yym1626
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1627 := r.ContainerType()
|
|
if yyct1627 == codecSelferValueTypeMap1234 {
|
|
yyl1627 := r.ReadMapStart()
|
|
if yyl1627 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1627, d)
|
|
}
|
|
} else if yyct1627 == codecSelferValueTypeArray1234 {
|
|
yyl1627 := r.ReadArrayStart()
|
|
if yyl1627 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1627, 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 yys1628Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1628Slc
|
|
var yyhl1628 bool = l >= 0
|
|
for yyj1628 := 0; ; yyj1628++ {
|
|
if yyhl1628 {
|
|
if yyj1628 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1628Slc = r.DecodeBytes(yys1628Slc, true, true)
|
|
yys1628 := string(yys1628Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1628 {
|
|
case "exitCode":
|
|
if r.TryDecodeAsNil() {
|
|
x.ExitCode = 0
|
|
} else {
|
|
x.ExitCode = int32(r.DecodeInt(32))
|
|
}
|
|
case "signal":
|
|
if r.TryDecodeAsNil() {
|
|
x.Signal = 0
|
|
} else {
|
|
x.Signal = int32(r.DecodeInt(32))
|
|
}
|
|
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 {
|
|
yyv1633 := &x.StartedAt
|
|
yym1634 := z.DecBinary()
|
|
_ = yym1634
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1633) {
|
|
} else if yym1634 {
|
|
z.DecBinaryUnmarshal(yyv1633)
|
|
} else if !yym1634 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv1633)
|
|
} else {
|
|
z.DecFallback(yyv1633, false)
|
|
}
|
|
}
|
|
case "finishedAt":
|
|
if r.TryDecodeAsNil() {
|
|
x.FinishedAt = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv1635 := &x.FinishedAt
|
|
yym1636 := z.DecBinary()
|
|
_ = yym1636
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1635) {
|
|
} else if yym1636 {
|
|
z.DecBinaryUnmarshal(yyv1635)
|
|
} else if !yym1636 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv1635)
|
|
} else {
|
|
z.DecFallback(yyv1635, false)
|
|
}
|
|
}
|
|
case "containerID":
|
|
if r.TryDecodeAsNil() {
|
|
x.ContainerID = ""
|
|
} else {
|
|
x.ContainerID = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1628)
|
|
} // end switch yys1628
|
|
} // end for yyj1628
|
|
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 yyj1638 int
|
|
var yyb1638 bool
|
|
var yyhl1638 bool = l >= 0
|
|
yyj1638++
|
|
if yyhl1638 {
|
|
yyb1638 = yyj1638 > l
|
|
} else {
|
|
yyb1638 = r.CheckBreak()
|
|
}
|
|
if yyb1638 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ExitCode = 0
|
|
} else {
|
|
x.ExitCode = int32(r.DecodeInt(32))
|
|
}
|
|
yyj1638++
|
|
if yyhl1638 {
|
|
yyb1638 = yyj1638 > l
|
|
} else {
|
|
yyb1638 = r.CheckBreak()
|
|
}
|
|
if yyb1638 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Signal = 0
|
|
} else {
|
|
x.Signal = int32(r.DecodeInt(32))
|
|
}
|
|
yyj1638++
|
|
if yyhl1638 {
|
|
yyb1638 = yyj1638 > l
|
|
} else {
|
|
yyb1638 = r.CheckBreak()
|
|
}
|
|
if yyb1638 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Reason = ""
|
|
} else {
|
|
x.Reason = string(r.DecodeString())
|
|
}
|
|
yyj1638++
|
|
if yyhl1638 {
|
|
yyb1638 = yyj1638 > l
|
|
} else {
|
|
yyb1638 = r.CheckBreak()
|
|
}
|
|
if yyb1638 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Message = ""
|
|
} else {
|
|
x.Message = string(r.DecodeString())
|
|
}
|
|
yyj1638++
|
|
if yyhl1638 {
|
|
yyb1638 = yyj1638 > l
|
|
} else {
|
|
yyb1638 = r.CheckBreak()
|
|
}
|
|
if yyb1638 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.StartedAt = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv1643 := &x.StartedAt
|
|
yym1644 := z.DecBinary()
|
|
_ = yym1644
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1643) {
|
|
} else if yym1644 {
|
|
z.DecBinaryUnmarshal(yyv1643)
|
|
} else if !yym1644 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv1643)
|
|
} else {
|
|
z.DecFallback(yyv1643, false)
|
|
}
|
|
}
|
|
yyj1638++
|
|
if yyhl1638 {
|
|
yyb1638 = yyj1638 > l
|
|
} else {
|
|
yyb1638 = r.CheckBreak()
|
|
}
|
|
if yyb1638 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.FinishedAt = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv1645 := &x.FinishedAt
|
|
yym1646 := z.DecBinary()
|
|
_ = yym1646
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1645) {
|
|
} else if yym1646 {
|
|
z.DecBinaryUnmarshal(yyv1645)
|
|
} else if !yym1646 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv1645)
|
|
} else {
|
|
z.DecFallback(yyv1645, false)
|
|
}
|
|
}
|
|
yyj1638++
|
|
if yyhl1638 {
|
|
yyb1638 = yyj1638 > l
|
|
} else {
|
|
yyb1638 = r.CheckBreak()
|
|
}
|
|
if yyb1638 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ContainerID = ""
|
|
} else {
|
|
x.ContainerID = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj1638++
|
|
if yyhl1638 {
|
|
yyb1638 = yyj1638 > l
|
|
} else {
|
|
yyb1638 = r.CheckBreak()
|
|
}
|
|
if yyb1638 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1638-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 {
|
|
yym1648 := z.EncBinary()
|
|
_ = yym1648
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1649 := !z.EncBinary()
|
|
yy2arr1649 := z.EncBasicHandle().StructToArray
|
|
var yyq1649 [3]bool
|
|
_, _, _ = yysep1649, yyq1649, yy2arr1649
|
|
const yyr1649 bool = false
|
|
yyq1649[0] = x.Waiting != nil
|
|
yyq1649[1] = x.Running != nil
|
|
yyq1649[2] = x.Terminated != nil
|
|
var yynn1649 int
|
|
if yyr1649 || yy2arr1649 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn1649 = 0
|
|
for _, b := range yyq1649 {
|
|
if b {
|
|
yynn1649++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1649)
|
|
yynn1649 = 0
|
|
}
|
|
if yyr1649 || yy2arr1649 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1649[0] {
|
|
if x.Waiting == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Waiting.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1649[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 yyr1649 || yy2arr1649 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1649[1] {
|
|
if x.Running == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Running.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1649[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 yyr1649 || yy2arr1649 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1649[2] {
|
|
if x.Terminated == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Terminated.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1649[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 yyr1649 || yy2arr1649 {
|
|
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
|
|
yym1653 := z.DecBinary()
|
|
_ = yym1653
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1654 := r.ContainerType()
|
|
if yyct1654 == codecSelferValueTypeMap1234 {
|
|
yyl1654 := r.ReadMapStart()
|
|
if yyl1654 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1654, d)
|
|
}
|
|
} else if yyct1654 == codecSelferValueTypeArray1234 {
|
|
yyl1654 := r.ReadArrayStart()
|
|
if yyl1654 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1654, 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 yys1655Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1655Slc
|
|
var yyhl1655 bool = l >= 0
|
|
for yyj1655 := 0; ; yyj1655++ {
|
|
if yyhl1655 {
|
|
if yyj1655 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1655Slc = r.DecodeBytes(yys1655Slc, true, true)
|
|
yys1655 := string(yys1655Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1655 {
|
|
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, yys1655)
|
|
} // end switch yys1655
|
|
} // end for yyj1655
|
|
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 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() {
|
|
if x.Waiting != nil {
|
|
x.Waiting = nil
|
|
}
|
|
} else {
|
|
if x.Waiting == nil {
|
|
x.Waiting = new(ContainerStateWaiting)
|
|
}
|
|
x.Waiting.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() {
|
|
if x.Running != nil {
|
|
x.Running = nil
|
|
}
|
|
} else {
|
|
if x.Running == nil {
|
|
x.Running = new(ContainerStateRunning)
|
|
}
|
|
x.Running.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() {
|
|
if x.Terminated != nil {
|
|
x.Terminated = nil
|
|
}
|
|
} else {
|
|
if x.Terminated == nil {
|
|
x.Terminated = new(ContainerStateTerminated)
|
|
}
|
|
x.Terminated.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 *ContainerStatus) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1663 := z.EncBinary()
|
|
_ = yym1663
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1664 := !z.EncBinary()
|
|
yy2arr1664 := z.EncBasicHandle().StructToArray
|
|
var yyq1664 [8]bool
|
|
_, _, _ = yysep1664, yyq1664, yy2arr1664
|
|
const yyr1664 bool = false
|
|
yyq1664[1] = true
|
|
yyq1664[2] = true
|
|
yyq1664[7] = x.ContainerID != ""
|
|
var yynn1664 int
|
|
if yyr1664 || yy2arr1664 {
|
|
r.EncodeArrayStart(8)
|
|
} else {
|
|
yynn1664 = 5
|
|
for _, b := range yyq1664 {
|
|
if b {
|
|
yynn1664++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1664)
|
|
yynn1664 = 0
|
|
}
|
|
if yyr1664 || yy2arr1664 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1666 := z.EncBinary()
|
|
_ = yym1666
|
|
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)
|
|
yym1667 := z.EncBinary()
|
|
_ = yym1667
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
}
|
|
if yyr1664 || yy2arr1664 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1664[1] {
|
|
yy1669 := &x.State
|
|
yy1669.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1664[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("state"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1670 := &x.State
|
|
yy1670.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1664 || yy2arr1664 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1664[2] {
|
|
yy1672 := &x.LastTerminationState
|
|
yy1672.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1664[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("lastState"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1673 := &x.LastTerminationState
|
|
yy1673.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1664 || yy2arr1664 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1675 := z.EncBinary()
|
|
_ = yym1675
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Ready))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("ready"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1676 := z.EncBinary()
|
|
_ = yym1676
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Ready))
|
|
}
|
|
}
|
|
if yyr1664 || yy2arr1664 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1678 := z.EncBinary()
|
|
_ = yym1678
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.RestartCount))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("restartCount"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1679 := z.EncBinary()
|
|
_ = yym1679
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.RestartCount))
|
|
}
|
|
}
|
|
if yyr1664 || yy2arr1664 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1681 := z.EncBinary()
|
|
_ = yym1681
|
|
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)
|
|
yym1682 := z.EncBinary()
|
|
_ = yym1682
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Image))
|
|
}
|
|
}
|
|
if yyr1664 || yy2arr1664 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1684 := z.EncBinary()
|
|
_ = yym1684
|
|
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)
|
|
yym1685 := z.EncBinary()
|
|
_ = yym1685
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ImageID))
|
|
}
|
|
}
|
|
if yyr1664 || yy2arr1664 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1664[7] {
|
|
yym1687 := z.EncBinary()
|
|
_ = yym1687
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1664[7] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("containerID"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1688 := z.EncBinary()
|
|
_ = yym1688
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID))
|
|
}
|
|
}
|
|
}
|
|
if yyr1664 || yy2arr1664 {
|
|
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
|
|
yym1689 := z.DecBinary()
|
|
_ = yym1689
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1690 := r.ContainerType()
|
|
if yyct1690 == codecSelferValueTypeMap1234 {
|
|
yyl1690 := r.ReadMapStart()
|
|
if yyl1690 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1690, d)
|
|
}
|
|
} else if yyct1690 == codecSelferValueTypeArray1234 {
|
|
yyl1690 := r.ReadArrayStart()
|
|
if yyl1690 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1690, 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 yys1691Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1691Slc
|
|
var yyhl1691 bool = l >= 0
|
|
for yyj1691 := 0; ; yyj1691++ {
|
|
if yyhl1691 {
|
|
if yyj1691 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1691Slc = r.DecodeBytes(yys1691Slc, true, true)
|
|
yys1691 := string(yys1691Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1691 {
|
|
case "name":
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
case "state":
|
|
if r.TryDecodeAsNil() {
|
|
x.State = ContainerState{}
|
|
} else {
|
|
yyv1693 := &x.State
|
|
yyv1693.CodecDecodeSelf(d)
|
|
}
|
|
case "lastState":
|
|
if r.TryDecodeAsNil() {
|
|
x.LastTerminationState = ContainerState{}
|
|
} else {
|
|
yyv1694 := &x.LastTerminationState
|
|
yyv1694.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 = int32(r.DecodeInt(32))
|
|
}
|
|
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, yys1691)
|
|
} // end switch yys1691
|
|
} // end for yyj1691
|
|
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 yyj1700 int
|
|
var yyb1700 bool
|
|
var yyhl1700 bool = l >= 0
|
|
yyj1700++
|
|
if yyhl1700 {
|
|
yyb1700 = yyj1700 > l
|
|
} else {
|
|
yyb1700 = r.CheckBreak()
|
|
}
|
|
if yyb1700 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
yyj1700++
|
|
if yyhl1700 {
|
|
yyb1700 = yyj1700 > l
|
|
} else {
|
|
yyb1700 = r.CheckBreak()
|
|
}
|
|
if yyb1700 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.State = ContainerState{}
|
|
} else {
|
|
yyv1702 := &x.State
|
|
yyv1702.CodecDecodeSelf(d)
|
|
}
|
|
yyj1700++
|
|
if yyhl1700 {
|
|
yyb1700 = yyj1700 > l
|
|
} else {
|
|
yyb1700 = r.CheckBreak()
|
|
}
|
|
if yyb1700 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.LastTerminationState = ContainerState{}
|
|
} else {
|
|
yyv1703 := &x.LastTerminationState
|
|
yyv1703.CodecDecodeSelf(d)
|
|
}
|
|
yyj1700++
|
|
if yyhl1700 {
|
|
yyb1700 = yyj1700 > l
|
|
} else {
|
|
yyb1700 = r.CheckBreak()
|
|
}
|
|
if yyb1700 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Ready = false
|
|
} else {
|
|
x.Ready = bool(r.DecodeBool())
|
|
}
|
|
yyj1700++
|
|
if yyhl1700 {
|
|
yyb1700 = yyj1700 > l
|
|
} else {
|
|
yyb1700 = r.CheckBreak()
|
|
}
|
|
if yyb1700 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.RestartCount = 0
|
|
} else {
|
|
x.RestartCount = int32(r.DecodeInt(32))
|
|
}
|
|
yyj1700++
|
|
if yyhl1700 {
|
|
yyb1700 = yyj1700 > l
|
|
} else {
|
|
yyb1700 = r.CheckBreak()
|
|
}
|
|
if yyb1700 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Image = ""
|
|
} else {
|
|
x.Image = string(r.DecodeString())
|
|
}
|
|
yyj1700++
|
|
if yyhl1700 {
|
|
yyb1700 = yyj1700 > l
|
|
} else {
|
|
yyb1700 = r.CheckBreak()
|
|
}
|
|
if yyb1700 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ImageID = ""
|
|
} else {
|
|
x.ImageID = string(r.DecodeString())
|
|
}
|
|
yyj1700++
|
|
if yyhl1700 {
|
|
yyb1700 = yyj1700 > l
|
|
} else {
|
|
yyb1700 = r.CheckBreak()
|
|
}
|
|
if yyb1700 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ContainerID = ""
|
|
} else {
|
|
x.ContainerID = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj1700++
|
|
if yyhl1700 {
|
|
yyb1700 = yyj1700 > l
|
|
} else {
|
|
yyb1700 = r.CheckBreak()
|
|
}
|
|
if yyb1700 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1700-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x PodPhase) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym1709 := z.EncBinary()
|
|
_ = yym1709
|
|
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
|
|
yym1710 := z.DecBinary()
|
|
_ = yym1710
|
|
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
|
|
yym1711 := z.EncBinary()
|
|
_ = yym1711
|
|
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
|
|
yym1712 := z.DecBinary()
|
|
_ = yym1712
|
|
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 {
|
|
yym1713 := z.EncBinary()
|
|
_ = yym1713
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1714 := !z.EncBinary()
|
|
yy2arr1714 := z.EncBasicHandle().StructToArray
|
|
var yyq1714 [6]bool
|
|
_, _, _ = yysep1714, yyq1714, yy2arr1714
|
|
const yyr1714 bool = false
|
|
yyq1714[2] = true
|
|
yyq1714[3] = true
|
|
yyq1714[4] = x.Reason != ""
|
|
yyq1714[5] = x.Message != ""
|
|
var yynn1714 int
|
|
if yyr1714 || yy2arr1714 {
|
|
r.EncodeArrayStart(6)
|
|
} else {
|
|
yynn1714 = 2
|
|
for _, b := range yyq1714 {
|
|
if b {
|
|
yynn1714++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1714)
|
|
yynn1714 = 0
|
|
}
|
|
if yyr1714 || yy2arr1714 {
|
|
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 yyr1714 || yy2arr1714 {
|
|
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 yyr1714 || yy2arr1714 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1714[2] {
|
|
yy1718 := &x.LastProbeTime
|
|
yym1719 := z.EncBinary()
|
|
_ = yym1719
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1718) {
|
|
} else if yym1719 {
|
|
z.EncBinaryMarshal(yy1718)
|
|
} else if !yym1719 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy1718)
|
|
} else {
|
|
z.EncFallback(yy1718)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1714[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("lastProbeTime"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1720 := &x.LastProbeTime
|
|
yym1721 := z.EncBinary()
|
|
_ = yym1721
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1720) {
|
|
} else if yym1721 {
|
|
z.EncBinaryMarshal(yy1720)
|
|
} else if !yym1721 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy1720)
|
|
} else {
|
|
z.EncFallback(yy1720)
|
|
}
|
|
}
|
|
}
|
|
if yyr1714 || yy2arr1714 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1714[3] {
|
|
yy1723 := &x.LastTransitionTime
|
|
yym1724 := z.EncBinary()
|
|
_ = yym1724
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1723) {
|
|
} else if yym1724 {
|
|
z.EncBinaryMarshal(yy1723)
|
|
} else if !yym1724 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy1723)
|
|
} else {
|
|
z.EncFallback(yy1723)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1714[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1725 := &x.LastTransitionTime
|
|
yym1726 := z.EncBinary()
|
|
_ = yym1726
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1725) {
|
|
} else if yym1726 {
|
|
z.EncBinaryMarshal(yy1725)
|
|
} else if !yym1726 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy1725)
|
|
} else {
|
|
z.EncFallback(yy1725)
|
|
}
|
|
}
|
|
}
|
|
if yyr1714 || yy2arr1714 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1714[4] {
|
|
yym1728 := z.EncBinary()
|
|
_ = yym1728
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1714[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("reason"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1729 := z.EncBinary()
|
|
_ = yym1729
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
|
|
}
|
|
}
|
|
}
|
|
if yyr1714 || yy2arr1714 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1714[5] {
|
|
yym1731 := z.EncBinary()
|
|
_ = yym1731
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1714[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("message"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1732 := z.EncBinary()
|
|
_ = yym1732
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
}
|
|
}
|
|
if yyr1714 || yy2arr1714 {
|
|
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
|
|
yym1733 := z.DecBinary()
|
|
_ = yym1733
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1734 := r.ContainerType()
|
|
if yyct1734 == codecSelferValueTypeMap1234 {
|
|
yyl1734 := r.ReadMapStart()
|
|
if yyl1734 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1734, d)
|
|
}
|
|
} else if yyct1734 == codecSelferValueTypeArray1234 {
|
|
yyl1734 := r.ReadArrayStart()
|
|
if yyl1734 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1734, 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 yys1735Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1735Slc
|
|
var yyhl1735 bool = l >= 0
|
|
for yyj1735 := 0; ; yyj1735++ {
|
|
if yyhl1735 {
|
|
if yyj1735 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1735Slc = r.DecodeBytes(yys1735Slc, true, true)
|
|
yys1735 := string(yys1735Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1735 {
|
|
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 {
|
|
yyv1738 := &x.LastProbeTime
|
|
yym1739 := z.DecBinary()
|
|
_ = yym1739
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1738) {
|
|
} else if yym1739 {
|
|
z.DecBinaryUnmarshal(yyv1738)
|
|
} else if !yym1739 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv1738)
|
|
} else {
|
|
z.DecFallback(yyv1738, false)
|
|
}
|
|
}
|
|
case "lastTransitionTime":
|
|
if r.TryDecodeAsNil() {
|
|
x.LastTransitionTime = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv1740 := &x.LastTransitionTime
|
|
yym1741 := z.DecBinary()
|
|
_ = yym1741
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1740) {
|
|
} else if yym1741 {
|
|
z.DecBinaryUnmarshal(yyv1740)
|
|
} else if !yym1741 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv1740)
|
|
} else {
|
|
z.DecFallback(yyv1740, 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, yys1735)
|
|
} // end switch yys1735
|
|
} // end for yyj1735
|
|
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 yyj1744 int
|
|
var yyb1744 bool
|
|
var yyhl1744 bool = l >= 0
|
|
yyj1744++
|
|
if yyhl1744 {
|
|
yyb1744 = yyj1744 > l
|
|
} else {
|
|
yyb1744 = r.CheckBreak()
|
|
}
|
|
if yyb1744 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Type = ""
|
|
} else {
|
|
x.Type = PodConditionType(r.DecodeString())
|
|
}
|
|
yyj1744++
|
|
if yyhl1744 {
|
|
yyb1744 = yyj1744 > l
|
|
} else {
|
|
yyb1744 = r.CheckBreak()
|
|
}
|
|
if yyb1744 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = ""
|
|
} else {
|
|
x.Status = ConditionStatus(r.DecodeString())
|
|
}
|
|
yyj1744++
|
|
if yyhl1744 {
|
|
yyb1744 = yyj1744 > l
|
|
} else {
|
|
yyb1744 = r.CheckBreak()
|
|
}
|
|
if yyb1744 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.LastProbeTime = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv1747 := &x.LastProbeTime
|
|
yym1748 := z.DecBinary()
|
|
_ = yym1748
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1747) {
|
|
} else if yym1748 {
|
|
z.DecBinaryUnmarshal(yyv1747)
|
|
} else if !yym1748 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv1747)
|
|
} else {
|
|
z.DecFallback(yyv1747, false)
|
|
}
|
|
}
|
|
yyj1744++
|
|
if yyhl1744 {
|
|
yyb1744 = yyj1744 > l
|
|
} else {
|
|
yyb1744 = r.CheckBreak()
|
|
}
|
|
if yyb1744 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.LastTransitionTime = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv1749 := &x.LastTransitionTime
|
|
yym1750 := z.DecBinary()
|
|
_ = yym1750
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1749) {
|
|
} else if yym1750 {
|
|
z.DecBinaryUnmarshal(yyv1749)
|
|
} else if !yym1750 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv1749)
|
|
} else {
|
|
z.DecFallback(yyv1749, false)
|
|
}
|
|
}
|
|
yyj1744++
|
|
if yyhl1744 {
|
|
yyb1744 = yyj1744 > l
|
|
} else {
|
|
yyb1744 = r.CheckBreak()
|
|
}
|
|
if yyb1744 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Reason = ""
|
|
} else {
|
|
x.Reason = string(r.DecodeString())
|
|
}
|
|
yyj1744++
|
|
if yyhl1744 {
|
|
yyb1744 = yyj1744 > l
|
|
} else {
|
|
yyb1744 = r.CheckBreak()
|
|
}
|
|
if yyb1744 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Message = ""
|
|
} else {
|
|
x.Message = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj1744++
|
|
if yyhl1744 {
|
|
yyb1744 = yyj1744 > l
|
|
} else {
|
|
yyb1744 = r.CheckBreak()
|
|
}
|
|
if yyb1744 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1744-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x RestartPolicy) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym1753 := z.EncBinary()
|
|
_ = yym1753
|
|
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
|
|
yym1754 := z.DecBinary()
|
|
_ = yym1754
|
|
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 {
|
|
yym1755 := z.EncBinary()
|
|
_ = yym1755
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1756 := !z.EncBinary()
|
|
yy2arr1756 := z.EncBasicHandle().StructToArray
|
|
var yyq1756 [4]bool
|
|
_, _, _ = yysep1756, yyq1756, yy2arr1756
|
|
const yyr1756 bool = false
|
|
yyq1756[0] = x.Kind != ""
|
|
yyq1756[1] = x.APIVersion != ""
|
|
yyq1756[2] = true
|
|
var yynn1756 int
|
|
if yyr1756 || yy2arr1756 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn1756 = 1
|
|
for _, b := range yyq1756 {
|
|
if b {
|
|
yynn1756++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1756)
|
|
yynn1756 = 0
|
|
}
|
|
if yyr1756 || yy2arr1756 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1756[0] {
|
|
yym1758 := z.EncBinary()
|
|
_ = yym1758
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1756[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1759 := z.EncBinary()
|
|
_ = yym1759
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr1756 || yy2arr1756 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1756[1] {
|
|
yym1761 := z.EncBinary()
|
|
_ = yym1761
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1756[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1762 := z.EncBinary()
|
|
_ = yym1762
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr1756 || yy2arr1756 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1756[2] {
|
|
yy1764 := &x.ListMeta
|
|
yym1765 := z.EncBinary()
|
|
_ = yym1765
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1764) {
|
|
} else {
|
|
z.EncFallback(yy1764)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1756[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1766 := &x.ListMeta
|
|
yym1767 := z.EncBinary()
|
|
_ = yym1767
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy1766) {
|
|
} else {
|
|
z.EncFallback(yy1766)
|
|
}
|
|
}
|
|
}
|
|
if yyr1756 || yy2arr1756 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1769 := z.EncBinary()
|
|
_ = yym1769
|
|
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 {
|
|
yym1770 := z.EncBinary()
|
|
_ = yym1770
|
|
if false {
|
|
} else {
|
|
h.encSlicePod(([]Pod)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1756 || yy2arr1756 {
|
|
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
|
|
yym1771 := z.DecBinary()
|
|
_ = yym1771
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1772 := r.ContainerType()
|
|
if yyct1772 == codecSelferValueTypeMap1234 {
|
|
yyl1772 := r.ReadMapStart()
|
|
if yyl1772 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1772, d)
|
|
}
|
|
} else if yyct1772 == codecSelferValueTypeArray1234 {
|
|
yyl1772 := r.ReadArrayStart()
|
|
if yyl1772 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1772, 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 yys1773Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1773Slc
|
|
var yyhl1773 bool = l >= 0
|
|
for yyj1773 := 0; ; yyj1773++ {
|
|
if yyhl1773 {
|
|
if yyj1773 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1773Slc = r.DecodeBytes(yys1773Slc, true, true)
|
|
yys1773 := string(yys1773Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1773 {
|
|
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 {
|
|
yyv1776 := &x.ListMeta
|
|
yym1777 := z.DecBinary()
|
|
_ = yym1777
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1776) {
|
|
} else {
|
|
z.DecFallback(yyv1776, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv1778 := &x.Items
|
|
yym1779 := z.DecBinary()
|
|
_ = yym1779
|
|
if false {
|
|
} else {
|
|
h.decSlicePod((*[]Pod)(yyv1778), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1773)
|
|
} // end switch yys1773
|
|
} // end for yyj1773
|
|
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 yyj1780 int
|
|
var yyb1780 bool
|
|
var yyhl1780 bool = l >= 0
|
|
yyj1780++
|
|
if yyhl1780 {
|
|
yyb1780 = yyj1780 > l
|
|
} else {
|
|
yyb1780 = r.CheckBreak()
|
|
}
|
|
if yyb1780 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj1780++
|
|
if yyhl1780 {
|
|
yyb1780 = yyj1780 > l
|
|
} else {
|
|
yyb1780 = r.CheckBreak()
|
|
}
|
|
if yyb1780 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj1780++
|
|
if yyhl1780 {
|
|
yyb1780 = yyj1780 > l
|
|
} else {
|
|
yyb1780 = r.CheckBreak()
|
|
}
|
|
if yyb1780 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv1783 := &x.ListMeta
|
|
yym1784 := z.DecBinary()
|
|
_ = yym1784
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv1783) {
|
|
} else {
|
|
z.DecFallback(yyv1783, false)
|
|
}
|
|
}
|
|
yyj1780++
|
|
if yyhl1780 {
|
|
yyb1780 = yyj1780 > l
|
|
} else {
|
|
yyb1780 = r.CheckBreak()
|
|
}
|
|
if yyb1780 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv1785 := &x.Items
|
|
yym1786 := z.DecBinary()
|
|
_ = yym1786
|
|
if false {
|
|
} else {
|
|
h.decSlicePod((*[]Pod)(yyv1785), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj1780++
|
|
if yyhl1780 {
|
|
yyb1780 = yyj1780 > l
|
|
} else {
|
|
yyb1780 = r.CheckBreak()
|
|
}
|
|
if yyb1780 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1780-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x DNSPolicy) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym1787 := z.EncBinary()
|
|
_ = yym1787
|
|
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
|
|
yym1788 := z.DecBinary()
|
|
_ = yym1788
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
*((*string)(x)) = r.DecodeString()
|
|
}
|
|
}
|
|
|
|
func (x *NodeSelector) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1789 := z.EncBinary()
|
|
_ = yym1789
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1790 := !z.EncBinary()
|
|
yy2arr1790 := z.EncBasicHandle().StructToArray
|
|
var yyq1790 [1]bool
|
|
_, _, _ = yysep1790, yyq1790, yy2arr1790
|
|
const yyr1790 bool = false
|
|
var yynn1790 int
|
|
if yyr1790 || yy2arr1790 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn1790 = 1
|
|
for _, b := range yyq1790 {
|
|
if b {
|
|
yynn1790++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1790)
|
|
yynn1790 = 0
|
|
}
|
|
if yyr1790 || yy2arr1790 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.NodeSelectorTerms == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1792 := z.EncBinary()
|
|
_ = yym1792
|
|
if false {
|
|
} else {
|
|
h.encSliceNodeSelectorTerm(([]NodeSelectorTerm)(x.NodeSelectorTerms), e)
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("nodeSelectorTerms"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.NodeSelectorTerms == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1793 := z.EncBinary()
|
|
_ = yym1793
|
|
if false {
|
|
} else {
|
|
h.encSliceNodeSelectorTerm(([]NodeSelectorTerm)(x.NodeSelectorTerms), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1790 || yy2arr1790 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *NodeSelector) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1794 := z.DecBinary()
|
|
_ = yym1794
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1795 := r.ContainerType()
|
|
if yyct1795 == codecSelferValueTypeMap1234 {
|
|
yyl1795 := r.ReadMapStart()
|
|
if yyl1795 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1795, d)
|
|
}
|
|
} else if yyct1795 == codecSelferValueTypeArray1234 {
|
|
yyl1795 := r.ReadArrayStart()
|
|
if yyl1795 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1795, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *NodeSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1796Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1796Slc
|
|
var yyhl1796 bool = l >= 0
|
|
for yyj1796 := 0; ; yyj1796++ {
|
|
if yyhl1796 {
|
|
if yyj1796 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1796Slc = r.DecodeBytes(yys1796Slc, true, true)
|
|
yys1796 := string(yys1796Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1796 {
|
|
case "nodeSelectorTerms":
|
|
if r.TryDecodeAsNil() {
|
|
x.NodeSelectorTerms = nil
|
|
} else {
|
|
yyv1797 := &x.NodeSelectorTerms
|
|
yym1798 := z.DecBinary()
|
|
_ = yym1798
|
|
if false {
|
|
} else {
|
|
h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1797), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1796)
|
|
} // end switch yys1796
|
|
} // end for yyj1796
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *NodeSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1799 int
|
|
var yyb1799 bool
|
|
var yyhl1799 bool = l >= 0
|
|
yyj1799++
|
|
if yyhl1799 {
|
|
yyb1799 = yyj1799 > l
|
|
} else {
|
|
yyb1799 = r.CheckBreak()
|
|
}
|
|
if yyb1799 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.NodeSelectorTerms = nil
|
|
} else {
|
|
yyv1800 := &x.NodeSelectorTerms
|
|
yym1801 := z.DecBinary()
|
|
_ = yym1801
|
|
if false {
|
|
} else {
|
|
h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1800), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj1799++
|
|
if yyhl1799 {
|
|
yyb1799 = yyj1799 > l
|
|
} else {
|
|
yyb1799 = r.CheckBreak()
|
|
}
|
|
if yyb1799 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1799-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *NodeSelectorTerm) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1802 := z.EncBinary()
|
|
_ = yym1802
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1803 := !z.EncBinary()
|
|
yy2arr1803 := z.EncBasicHandle().StructToArray
|
|
var yyq1803 [1]bool
|
|
_, _, _ = yysep1803, yyq1803, yy2arr1803
|
|
const yyr1803 bool = false
|
|
var yynn1803 int
|
|
if yyr1803 || yy2arr1803 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn1803 = 1
|
|
for _, b := range yyq1803 {
|
|
if b {
|
|
yynn1803++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1803)
|
|
yynn1803 = 0
|
|
}
|
|
if yyr1803 || yy2arr1803 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.MatchExpressions == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1805 := z.EncBinary()
|
|
_ = yym1805
|
|
if false {
|
|
} else {
|
|
h.encSliceNodeSelectorRequirement(([]NodeSelectorRequirement)(x.MatchExpressions), e)
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("matchExpressions"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.MatchExpressions == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1806 := z.EncBinary()
|
|
_ = yym1806
|
|
if false {
|
|
} else {
|
|
h.encSliceNodeSelectorRequirement(([]NodeSelectorRequirement)(x.MatchExpressions), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1803 || yy2arr1803 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *NodeSelectorTerm) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1807 := z.DecBinary()
|
|
_ = yym1807
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1808 := r.ContainerType()
|
|
if yyct1808 == codecSelferValueTypeMap1234 {
|
|
yyl1808 := r.ReadMapStart()
|
|
if yyl1808 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1808, d)
|
|
}
|
|
} else if yyct1808 == codecSelferValueTypeArray1234 {
|
|
yyl1808 := r.ReadArrayStart()
|
|
if yyl1808 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1808, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *NodeSelectorTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1809Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1809Slc
|
|
var yyhl1809 bool = l >= 0
|
|
for yyj1809 := 0; ; yyj1809++ {
|
|
if yyhl1809 {
|
|
if yyj1809 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1809Slc = r.DecodeBytes(yys1809Slc, true, true)
|
|
yys1809 := string(yys1809Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1809 {
|
|
case "matchExpressions":
|
|
if r.TryDecodeAsNil() {
|
|
x.MatchExpressions = nil
|
|
} else {
|
|
yyv1810 := &x.MatchExpressions
|
|
yym1811 := z.DecBinary()
|
|
_ = yym1811
|
|
if false {
|
|
} else {
|
|
h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1810), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1809)
|
|
} // end switch yys1809
|
|
} // end for yyj1809
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *NodeSelectorTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1812 int
|
|
var yyb1812 bool
|
|
var yyhl1812 bool = l >= 0
|
|
yyj1812++
|
|
if yyhl1812 {
|
|
yyb1812 = yyj1812 > l
|
|
} else {
|
|
yyb1812 = r.CheckBreak()
|
|
}
|
|
if yyb1812 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.MatchExpressions = nil
|
|
} else {
|
|
yyv1813 := &x.MatchExpressions
|
|
yym1814 := z.DecBinary()
|
|
_ = yym1814
|
|
if false {
|
|
} else {
|
|
h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1813), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj1812++
|
|
if yyhl1812 {
|
|
yyb1812 = yyj1812 > l
|
|
} else {
|
|
yyb1812 = r.CheckBreak()
|
|
}
|
|
if yyb1812 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1812-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *NodeSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1815 := z.EncBinary()
|
|
_ = yym1815
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1816 := !z.EncBinary()
|
|
yy2arr1816 := z.EncBasicHandle().StructToArray
|
|
var yyq1816 [3]bool
|
|
_, _, _ = yysep1816, yyq1816, yy2arr1816
|
|
const yyr1816 bool = false
|
|
yyq1816[2] = len(x.Values) != 0
|
|
var yynn1816 int
|
|
if yyr1816 || yy2arr1816 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn1816 = 2
|
|
for _, b := range yyq1816 {
|
|
if b {
|
|
yynn1816++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1816)
|
|
yynn1816 = 0
|
|
}
|
|
if yyr1816 || yy2arr1816 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1818 := z.EncBinary()
|
|
_ = yym1818
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Key))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("key"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1819 := z.EncBinary()
|
|
_ = yym1819
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Key))
|
|
}
|
|
}
|
|
if yyr1816 || yy2arr1816 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
x.Operator.CodecEncodeSelf(e)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("operator"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Operator.CodecEncodeSelf(e)
|
|
}
|
|
if yyr1816 || yy2arr1816 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1816[2] {
|
|
if x.Values == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1822 := z.EncBinary()
|
|
_ = yym1822
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.Values, false, e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1816[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("values"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Values == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1823 := z.EncBinary()
|
|
_ = yym1823
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.Values, false, e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1816 || yy2arr1816 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *NodeSelectorRequirement) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1824 := z.DecBinary()
|
|
_ = yym1824
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1825 := r.ContainerType()
|
|
if yyct1825 == codecSelferValueTypeMap1234 {
|
|
yyl1825 := r.ReadMapStart()
|
|
if yyl1825 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1825, d)
|
|
}
|
|
} else if yyct1825 == codecSelferValueTypeArray1234 {
|
|
yyl1825 := r.ReadArrayStart()
|
|
if yyl1825 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1825, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *NodeSelectorRequirement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1826Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1826Slc
|
|
var yyhl1826 bool = l >= 0
|
|
for yyj1826 := 0; ; yyj1826++ {
|
|
if yyhl1826 {
|
|
if yyj1826 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1826Slc = r.DecodeBytes(yys1826Slc, true, true)
|
|
yys1826 := string(yys1826Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1826 {
|
|
case "key":
|
|
if r.TryDecodeAsNil() {
|
|
x.Key = ""
|
|
} else {
|
|
x.Key = string(r.DecodeString())
|
|
}
|
|
case "operator":
|
|
if r.TryDecodeAsNil() {
|
|
x.Operator = ""
|
|
} else {
|
|
x.Operator = NodeSelectorOperator(r.DecodeString())
|
|
}
|
|
case "values":
|
|
if r.TryDecodeAsNil() {
|
|
x.Values = nil
|
|
} else {
|
|
yyv1829 := &x.Values
|
|
yym1830 := z.DecBinary()
|
|
_ = yym1830
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv1829, false, d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1826)
|
|
} // end switch yys1826
|
|
} // end for yyj1826
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *NodeSelectorRequirement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1831 int
|
|
var yyb1831 bool
|
|
var yyhl1831 bool = l >= 0
|
|
yyj1831++
|
|
if yyhl1831 {
|
|
yyb1831 = yyj1831 > l
|
|
} else {
|
|
yyb1831 = r.CheckBreak()
|
|
}
|
|
if yyb1831 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Key = ""
|
|
} else {
|
|
x.Key = string(r.DecodeString())
|
|
}
|
|
yyj1831++
|
|
if yyhl1831 {
|
|
yyb1831 = yyj1831 > l
|
|
} else {
|
|
yyb1831 = r.CheckBreak()
|
|
}
|
|
if yyb1831 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Operator = ""
|
|
} else {
|
|
x.Operator = NodeSelectorOperator(r.DecodeString())
|
|
}
|
|
yyj1831++
|
|
if yyhl1831 {
|
|
yyb1831 = yyj1831 > l
|
|
} else {
|
|
yyb1831 = r.CheckBreak()
|
|
}
|
|
if yyb1831 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Values = nil
|
|
} else {
|
|
yyv1834 := &x.Values
|
|
yym1835 := z.DecBinary()
|
|
_ = yym1835
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv1834, false, d)
|
|
}
|
|
}
|
|
for {
|
|
yyj1831++
|
|
if yyhl1831 {
|
|
yyb1831 = yyj1831 > l
|
|
} else {
|
|
yyb1831 = r.CheckBreak()
|
|
}
|
|
if yyb1831 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1831-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x NodeSelectorOperator) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym1836 := z.EncBinary()
|
|
_ = yym1836
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x))
|
|
}
|
|
}
|
|
|
|
func (x *NodeSelectorOperator) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1837 := z.DecBinary()
|
|
_ = yym1837
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
*((*string)(x)) = r.DecodeString()
|
|
}
|
|
}
|
|
|
|
func (x *Affinity) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1838 := z.EncBinary()
|
|
_ = yym1838
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1839 := !z.EncBinary()
|
|
yy2arr1839 := z.EncBasicHandle().StructToArray
|
|
var yyq1839 [3]bool
|
|
_, _, _ = yysep1839, yyq1839, yy2arr1839
|
|
const yyr1839 bool = false
|
|
yyq1839[0] = x.NodeAffinity != nil
|
|
yyq1839[1] = x.PodAffinity != nil
|
|
yyq1839[2] = x.PodAntiAffinity != nil
|
|
var yynn1839 int
|
|
if yyr1839 || yy2arr1839 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn1839 = 0
|
|
for _, b := range yyq1839 {
|
|
if b {
|
|
yynn1839++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1839)
|
|
yynn1839 = 0
|
|
}
|
|
if yyr1839 || yy2arr1839 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1839[0] {
|
|
if x.NodeAffinity == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.NodeAffinity.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1839[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("nodeAffinity"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.NodeAffinity == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.NodeAffinity.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1839 || yy2arr1839 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1839[1] {
|
|
if x.PodAffinity == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.PodAffinity.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1839[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("podAffinity"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.PodAffinity == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.PodAffinity.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1839 || yy2arr1839 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1839[2] {
|
|
if x.PodAntiAffinity == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.PodAntiAffinity.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1839[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("podAntiAffinity"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.PodAntiAffinity == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.PodAntiAffinity.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1839 || yy2arr1839 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *Affinity) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1843 := z.DecBinary()
|
|
_ = yym1843
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1844 := r.ContainerType()
|
|
if yyct1844 == codecSelferValueTypeMap1234 {
|
|
yyl1844 := r.ReadMapStart()
|
|
if yyl1844 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1844, d)
|
|
}
|
|
} else if yyct1844 == codecSelferValueTypeArray1234 {
|
|
yyl1844 := r.ReadArrayStart()
|
|
if yyl1844 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1844, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *Affinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1845Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1845Slc
|
|
var yyhl1845 bool = l >= 0
|
|
for yyj1845 := 0; ; yyj1845++ {
|
|
if yyhl1845 {
|
|
if yyj1845 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1845Slc = r.DecodeBytes(yys1845Slc, true, true)
|
|
yys1845 := string(yys1845Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1845 {
|
|
case "nodeAffinity":
|
|
if r.TryDecodeAsNil() {
|
|
if x.NodeAffinity != nil {
|
|
x.NodeAffinity = nil
|
|
}
|
|
} else {
|
|
if x.NodeAffinity == nil {
|
|
x.NodeAffinity = new(NodeAffinity)
|
|
}
|
|
x.NodeAffinity.CodecDecodeSelf(d)
|
|
}
|
|
case "podAffinity":
|
|
if r.TryDecodeAsNil() {
|
|
if x.PodAffinity != nil {
|
|
x.PodAffinity = nil
|
|
}
|
|
} else {
|
|
if x.PodAffinity == nil {
|
|
x.PodAffinity = new(PodAffinity)
|
|
}
|
|
x.PodAffinity.CodecDecodeSelf(d)
|
|
}
|
|
case "podAntiAffinity":
|
|
if r.TryDecodeAsNil() {
|
|
if x.PodAntiAffinity != nil {
|
|
x.PodAntiAffinity = nil
|
|
}
|
|
} else {
|
|
if x.PodAntiAffinity == nil {
|
|
x.PodAntiAffinity = new(PodAntiAffinity)
|
|
}
|
|
x.PodAntiAffinity.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1845)
|
|
} // end switch yys1845
|
|
} // end for yyj1845
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *Affinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1849 int
|
|
var yyb1849 bool
|
|
var yyhl1849 bool = l >= 0
|
|
yyj1849++
|
|
if yyhl1849 {
|
|
yyb1849 = yyj1849 > l
|
|
} else {
|
|
yyb1849 = r.CheckBreak()
|
|
}
|
|
if yyb1849 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.NodeAffinity != nil {
|
|
x.NodeAffinity = nil
|
|
}
|
|
} else {
|
|
if x.NodeAffinity == nil {
|
|
x.NodeAffinity = new(NodeAffinity)
|
|
}
|
|
x.NodeAffinity.CodecDecodeSelf(d)
|
|
}
|
|
yyj1849++
|
|
if yyhl1849 {
|
|
yyb1849 = yyj1849 > l
|
|
} else {
|
|
yyb1849 = r.CheckBreak()
|
|
}
|
|
if yyb1849 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.PodAffinity != nil {
|
|
x.PodAffinity = nil
|
|
}
|
|
} else {
|
|
if x.PodAffinity == nil {
|
|
x.PodAffinity = new(PodAffinity)
|
|
}
|
|
x.PodAffinity.CodecDecodeSelf(d)
|
|
}
|
|
yyj1849++
|
|
if yyhl1849 {
|
|
yyb1849 = yyj1849 > l
|
|
} else {
|
|
yyb1849 = r.CheckBreak()
|
|
}
|
|
if yyb1849 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.PodAntiAffinity != nil {
|
|
x.PodAntiAffinity = nil
|
|
}
|
|
} else {
|
|
if x.PodAntiAffinity == nil {
|
|
x.PodAntiAffinity = new(PodAntiAffinity)
|
|
}
|
|
x.PodAntiAffinity.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj1849++
|
|
if yyhl1849 {
|
|
yyb1849 = yyj1849 > l
|
|
} else {
|
|
yyb1849 = r.CheckBreak()
|
|
}
|
|
if yyb1849 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1849-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *PodAffinity) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1853 := z.EncBinary()
|
|
_ = yym1853
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1854 := !z.EncBinary()
|
|
yy2arr1854 := z.EncBasicHandle().StructToArray
|
|
var yyq1854 [2]bool
|
|
_, _, _ = yysep1854, yyq1854, yy2arr1854
|
|
const yyr1854 bool = false
|
|
yyq1854[0] = len(x.RequiredDuringSchedulingIgnoredDuringExecution) != 0
|
|
yyq1854[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0
|
|
var yynn1854 int
|
|
if yyr1854 || yy2arr1854 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn1854 = 0
|
|
for _, b := range yyq1854 {
|
|
if b {
|
|
yynn1854++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1854)
|
|
yynn1854 = 0
|
|
}
|
|
if yyr1854 || yy2arr1854 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1854[0] {
|
|
if x.RequiredDuringSchedulingIgnoredDuringExecution == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1856 := z.EncBinary()
|
|
_ = yym1856
|
|
if false {
|
|
} else {
|
|
h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1854[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("requiredDuringSchedulingIgnoredDuringExecution"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.RequiredDuringSchedulingIgnoredDuringExecution == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1857 := z.EncBinary()
|
|
_ = yym1857
|
|
if false {
|
|
} else {
|
|
h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1854 || yy2arr1854 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1854[1] {
|
|
if x.PreferredDuringSchedulingIgnoredDuringExecution == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1859 := z.EncBinary()
|
|
_ = yym1859
|
|
if false {
|
|
} else {
|
|
h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1854[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("preferredDuringSchedulingIgnoredDuringExecution"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.PreferredDuringSchedulingIgnoredDuringExecution == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1860 := z.EncBinary()
|
|
_ = yym1860
|
|
if false {
|
|
} else {
|
|
h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1854 || yy2arr1854 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PodAffinity) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1861 := z.DecBinary()
|
|
_ = yym1861
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1862 := r.ContainerType()
|
|
if yyct1862 == codecSelferValueTypeMap1234 {
|
|
yyl1862 := r.ReadMapStart()
|
|
if yyl1862 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1862, d)
|
|
}
|
|
} else if yyct1862 == codecSelferValueTypeArray1234 {
|
|
yyl1862 := r.ReadArrayStart()
|
|
if yyl1862 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1862, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PodAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1863Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1863Slc
|
|
var yyhl1863 bool = l >= 0
|
|
for yyj1863 := 0; ; yyj1863++ {
|
|
if yyhl1863 {
|
|
if yyj1863 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1863Slc = r.DecodeBytes(yys1863Slc, true, true)
|
|
yys1863 := string(yys1863Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1863 {
|
|
case "requiredDuringSchedulingIgnoredDuringExecution":
|
|
if r.TryDecodeAsNil() {
|
|
x.RequiredDuringSchedulingIgnoredDuringExecution = nil
|
|
} else {
|
|
yyv1864 := &x.RequiredDuringSchedulingIgnoredDuringExecution
|
|
yym1865 := z.DecBinary()
|
|
_ = yym1865
|
|
if false {
|
|
} else {
|
|
h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1864), d)
|
|
}
|
|
}
|
|
case "preferredDuringSchedulingIgnoredDuringExecution":
|
|
if r.TryDecodeAsNil() {
|
|
x.PreferredDuringSchedulingIgnoredDuringExecution = nil
|
|
} else {
|
|
yyv1866 := &x.PreferredDuringSchedulingIgnoredDuringExecution
|
|
yym1867 := z.DecBinary()
|
|
_ = yym1867
|
|
if false {
|
|
} else {
|
|
h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1866), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1863)
|
|
} // end switch yys1863
|
|
} // end for yyj1863
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *PodAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1868 int
|
|
var yyb1868 bool
|
|
var yyhl1868 bool = l >= 0
|
|
yyj1868++
|
|
if yyhl1868 {
|
|
yyb1868 = yyj1868 > l
|
|
} else {
|
|
yyb1868 = r.CheckBreak()
|
|
}
|
|
if yyb1868 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.RequiredDuringSchedulingIgnoredDuringExecution = nil
|
|
} else {
|
|
yyv1869 := &x.RequiredDuringSchedulingIgnoredDuringExecution
|
|
yym1870 := z.DecBinary()
|
|
_ = yym1870
|
|
if false {
|
|
} else {
|
|
h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1869), d)
|
|
}
|
|
}
|
|
yyj1868++
|
|
if yyhl1868 {
|
|
yyb1868 = yyj1868 > l
|
|
} else {
|
|
yyb1868 = r.CheckBreak()
|
|
}
|
|
if yyb1868 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.PreferredDuringSchedulingIgnoredDuringExecution = nil
|
|
} else {
|
|
yyv1871 := &x.PreferredDuringSchedulingIgnoredDuringExecution
|
|
yym1872 := z.DecBinary()
|
|
_ = yym1872
|
|
if false {
|
|
} else {
|
|
h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1871), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj1868++
|
|
if yyhl1868 {
|
|
yyb1868 = yyj1868 > l
|
|
} else {
|
|
yyb1868 = r.CheckBreak()
|
|
}
|
|
if yyb1868 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1868-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *PodAntiAffinity) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1873 := z.EncBinary()
|
|
_ = yym1873
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1874 := !z.EncBinary()
|
|
yy2arr1874 := z.EncBasicHandle().StructToArray
|
|
var yyq1874 [2]bool
|
|
_, _, _ = yysep1874, yyq1874, yy2arr1874
|
|
const yyr1874 bool = false
|
|
yyq1874[0] = len(x.RequiredDuringSchedulingIgnoredDuringExecution) != 0
|
|
yyq1874[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0
|
|
var yynn1874 int
|
|
if yyr1874 || yy2arr1874 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn1874 = 0
|
|
for _, b := range yyq1874 {
|
|
if b {
|
|
yynn1874++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1874)
|
|
yynn1874 = 0
|
|
}
|
|
if yyr1874 || yy2arr1874 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1874[0] {
|
|
if x.RequiredDuringSchedulingIgnoredDuringExecution == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1876 := z.EncBinary()
|
|
_ = yym1876
|
|
if false {
|
|
} else {
|
|
h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1874[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("requiredDuringSchedulingIgnoredDuringExecution"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.RequiredDuringSchedulingIgnoredDuringExecution == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1877 := z.EncBinary()
|
|
_ = yym1877
|
|
if false {
|
|
} else {
|
|
h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1874 || yy2arr1874 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1874[1] {
|
|
if x.PreferredDuringSchedulingIgnoredDuringExecution == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1879 := z.EncBinary()
|
|
_ = yym1879
|
|
if false {
|
|
} else {
|
|
h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1874[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("preferredDuringSchedulingIgnoredDuringExecution"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.PreferredDuringSchedulingIgnoredDuringExecution == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1880 := z.EncBinary()
|
|
_ = yym1880
|
|
if false {
|
|
} else {
|
|
h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1874 || yy2arr1874 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PodAntiAffinity) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1881 := z.DecBinary()
|
|
_ = yym1881
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1882 := r.ContainerType()
|
|
if yyct1882 == codecSelferValueTypeMap1234 {
|
|
yyl1882 := r.ReadMapStart()
|
|
if yyl1882 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1882, d)
|
|
}
|
|
} else if yyct1882 == codecSelferValueTypeArray1234 {
|
|
yyl1882 := r.ReadArrayStart()
|
|
if yyl1882 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1882, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PodAntiAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1883Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1883Slc
|
|
var yyhl1883 bool = l >= 0
|
|
for yyj1883 := 0; ; yyj1883++ {
|
|
if yyhl1883 {
|
|
if yyj1883 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1883Slc = r.DecodeBytes(yys1883Slc, true, true)
|
|
yys1883 := string(yys1883Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1883 {
|
|
case "requiredDuringSchedulingIgnoredDuringExecution":
|
|
if r.TryDecodeAsNil() {
|
|
x.RequiredDuringSchedulingIgnoredDuringExecution = nil
|
|
} else {
|
|
yyv1884 := &x.RequiredDuringSchedulingIgnoredDuringExecution
|
|
yym1885 := z.DecBinary()
|
|
_ = yym1885
|
|
if false {
|
|
} else {
|
|
h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1884), d)
|
|
}
|
|
}
|
|
case "preferredDuringSchedulingIgnoredDuringExecution":
|
|
if r.TryDecodeAsNil() {
|
|
x.PreferredDuringSchedulingIgnoredDuringExecution = nil
|
|
} else {
|
|
yyv1886 := &x.PreferredDuringSchedulingIgnoredDuringExecution
|
|
yym1887 := z.DecBinary()
|
|
_ = yym1887
|
|
if false {
|
|
} else {
|
|
h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1886), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1883)
|
|
} // end switch yys1883
|
|
} // end for yyj1883
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *PodAntiAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1888 int
|
|
var yyb1888 bool
|
|
var yyhl1888 bool = l >= 0
|
|
yyj1888++
|
|
if yyhl1888 {
|
|
yyb1888 = yyj1888 > l
|
|
} else {
|
|
yyb1888 = r.CheckBreak()
|
|
}
|
|
if yyb1888 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.RequiredDuringSchedulingIgnoredDuringExecution = nil
|
|
} else {
|
|
yyv1889 := &x.RequiredDuringSchedulingIgnoredDuringExecution
|
|
yym1890 := z.DecBinary()
|
|
_ = yym1890
|
|
if false {
|
|
} else {
|
|
h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1889), d)
|
|
}
|
|
}
|
|
yyj1888++
|
|
if yyhl1888 {
|
|
yyb1888 = yyj1888 > l
|
|
} else {
|
|
yyb1888 = r.CheckBreak()
|
|
}
|
|
if yyb1888 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.PreferredDuringSchedulingIgnoredDuringExecution = nil
|
|
} else {
|
|
yyv1891 := &x.PreferredDuringSchedulingIgnoredDuringExecution
|
|
yym1892 := z.DecBinary()
|
|
_ = yym1892
|
|
if false {
|
|
} else {
|
|
h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1891), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj1888++
|
|
if yyhl1888 {
|
|
yyb1888 = yyj1888 > l
|
|
} else {
|
|
yyb1888 = r.CheckBreak()
|
|
}
|
|
if yyb1888 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1888-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *WeightedPodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1893 := z.EncBinary()
|
|
_ = yym1893
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1894 := !z.EncBinary()
|
|
yy2arr1894 := z.EncBasicHandle().StructToArray
|
|
var yyq1894 [2]bool
|
|
_, _, _ = yysep1894, yyq1894, yy2arr1894
|
|
const yyr1894 bool = false
|
|
var yynn1894 int
|
|
if yyr1894 || yy2arr1894 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn1894 = 2
|
|
for _, b := range yyq1894 {
|
|
if b {
|
|
yynn1894++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1894)
|
|
yynn1894 = 0
|
|
}
|
|
if yyr1894 || yy2arr1894 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1896 := z.EncBinary()
|
|
_ = yym1896
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Weight))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("weight"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1897 := z.EncBinary()
|
|
_ = yym1897
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Weight))
|
|
}
|
|
}
|
|
if yyr1894 || yy2arr1894 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy1899 := &x.PodAffinityTerm
|
|
yy1899.CodecEncodeSelf(e)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("podAffinityTerm"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1900 := &x.PodAffinityTerm
|
|
yy1900.CodecEncodeSelf(e)
|
|
}
|
|
if yyr1894 || yy2arr1894 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *WeightedPodAffinityTerm) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1901 := z.DecBinary()
|
|
_ = yym1901
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1902 := r.ContainerType()
|
|
if yyct1902 == codecSelferValueTypeMap1234 {
|
|
yyl1902 := r.ReadMapStart()
|
|
if yyl1902 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1902, d)
|
|
}
|
|
} else if yyct1902 == codecSelferValueTypeArray1234 {
|
|
yyl1902 := r.ReadArrayStart()
|
|
if yyl1902 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1902, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *WeightedPodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1903Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1903Slc
|
|
var yyhl1903 bool = l >= 0
|
|
for yyj1903 := 0; ; yyj1903++ {
|
|
if yyhl1903 {
|
|
if yyj1903 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1903Slc = r.DecodeBytes(yys1903Slc, true, true)
|
|
yys1903 := string(yys1903Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1903 {
|
|
case "weight":
|
|
if r.TryDecodeAsNil() {
|
|
x.Weight = 0
|
|
} else {
|
|
x.Weight = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
case "podAffinityTerm":
|
|
if r.TryDecodeAsNil() {
|
|
x.PodAffinityTerm = PodAffinityTerm{}
|
|
} else {
|
|
yyv1905 := &x.PodAffinityTerm
|
|
yyv1905.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1903)
|
|
} // end switch yys1903
|
|
} // end for yyj1903
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *WeightedPodAffinityTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1906 int
|
|
var yyb1906 bool
|
|
var yyhl1906 bool = l >= 0
|
|
yyj1906++
|
|
if yyhl1906 {
|
|
yyb1906 = yyj1906 > l
|
|
} else {
|
|
yyb1906 = r.CheckBreak()
|
|
}
|
|
if yyb1906 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Weight = 0
|
|
} else {
|
|
x.Weight = int(r.DecodeInt(codecSelferBitsize1234))
|
|
}
|
|
yyj1906++
|
|
if yyhl1906 {
|
|
yyb1906 = yyj1906 > l
|
|
} else {
|
|
yyb1906 = r.CheckBreak()
|
|
}
|
|
if yyb1906 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.PodAffinityTerm = PodAffinityTerm{}
|
|
} else {
|
|
yyv1908 := &x.PodAffinityTerm
|
|
yyv1908.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj1906++
|
|
if yyhl1906 {
|
|
yyb1906 = yyj1906 > l
|
|
} else {
|
|
yyb1906 = r.CheckBreak()
|
|
}
|
|
if yyb1906 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1906-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *PodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1909 := z.EncBinary()
|
|
_ = yym1909
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1910 := !z.EncBinary()
|
|
yy2arr1910 := z.EncBasicHandle().StructToArray
|
|
var yyq1910 [3]bool
|
|
_, _, _ = yysep1910, yyq1910, yy2arr1910
|
|
const yyr1910 bool = false
|
|
yyq1910[0] = x.LabelSelector != nil
|
|
yyq1910[2] = x.TopologyKey != ""
|
|
var yynn1910 int
|
|
if yyr1910 || yy2arr1910 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn1910 = 1
|
|
for _, b := range yyq1910 {
|
|
if b {
|
|
yynn1910++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1910)
|
|
yynn1910 = 0
|
|
}
|
|
if yyr1910 || yy2arr1910 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1910[0] {
|
|
if x.LabelSelector == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1912 := z.EncBinary()
|
|
_ = yym1912
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x.LabelSelector) {
|
|
} else {
|
|
z.EncFallback(x.LabelSelector)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1910[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("labelSelector"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.LabelSelector == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1913 := z.EncBinary()
|
|
_ = yym1913
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x.LabelSelector) {
|
|
} else {
|
|
z.EncFallback(x.LabelSelector)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1910 || yy2arr1910 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Namespaces == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1915 := z.EncBinary()
|
|
_ = yym1915
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.Namespaces, false, e)
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("namespaces"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Namespaces == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1916 := z.EncBinary()
|
|
_ = yym1916
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.Namespaces, false, e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1910 || yy2arr1910 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1910[2] {
|
|
yym1918 := z.EncBinary()
|
|
_ = yym1918
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.TopologyKey))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1910[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("topologyKey"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1919 := z.EncBinary()
|
|
_ = yym1919
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.TopologyKey))
|
|
}
|
|
}
|
|
}
|
|
if yyr1910 || yy2arr1910 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PodAffinityTerm) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1920 := z.DecBinary()
|
|
_ = yym1920
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1921 := r.ContainerType()
|
|
if yyct1921 == codecSelferValueTypeMap1234 {
|
|
yyl1921 := r.ReadMapStart()
|
|
if yyl1921 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1921, d)
|
|
}
|
|
} else if yyct1921 == codecSelferValueTypeArray1234 {
|
|
yyl1921 := r.ReadArrayStart()
|
|
if yyl1921 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1921, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1922Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1922Slc
|
|
var yyhl1922 bool = l >= 0
|
|
for yyj1922 := 0; ; yyj1922++ {
|
|
if yyhl1922 {
|
|
if yyj1922 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1922Slc = r.DecodeBytes(yys1922Slc, true, true)
|
|
yys1922 := string(yys1922Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1922 {
|
|
case "labelSelector":
|
|
if r.TryDecodeAsNil() {
|
|
if x.LabelSelector != nil {
|
|
x.LabelSelector = nil
|
|
}
|
|
} else {
|
|
if x.LabelSelector == nil {
|
|
x.LabelSelector = new(pkg2_unversioned.LabelSelector)
|
|
}
|
|
yym1924 := z.DecBinary()
|
|
_ = yym1924
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x.LabelSelector) {
|
|
} else {
|
|
z.DecFallback(x.LabelSelector, false)
|
|
}
|
|
}
|
|
case "namespaces":
|
|
if r.TryDecodeAsNil() {
|
|
x.Namespaces = nil
|
|
} else {
|
|
yyv1925 := &x.Namespaces
|
|
yym1926 := z.DecBinary()
|
|
_ = yym1926
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv1925, false, d)
|
|
}
|
|
}
|
|
case "topologyKey":
|
|
if r.TryDecodeAsNil() {
|
|
x.TopologyKey = ""
|
|
} else {
|
|
x.TopologyKey = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1922)
|
|
} // end switch yys1922
|
|
} // end for yyj1922
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *PodAffinityTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1928 int
|
|
var yyb1928 bool
|
|
var yyhl1928 bool = l >= 0
|
|
yyj1928++
|
|
if yyhl1928 {
|
|
yyb1928 = yyj1928 > l
|
|
} else {
|
|
yyb1928 = r.CheckBreak()
|
|
}
|
|
if yyb1928 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.LabelSelector != nil {
|
|
x.LabelSelector = nil
|
|
}
|
|
} else {
|
|
if x.LabelSelector == nil {
|
|
x.LabelSelector = new(pkg2_unversioned.LabelSelector)
|
|
}
|
|
yym1930 := z.DecBinary()
|
|
_ = yym1930
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x.LabelSelector) {
|
|
} else {
|
|
z.DecFallback(x.LabelSelector, false)
|
|
}
|
|
}
|
|
yyj1928++
|
|
if yyhl1928 {
|
|
yyb1928 = yyj1928 > l
|
|
} else {
|
|
yyb1928 = r.CheckBreak()
|
|
}
|
|
if yyb1928 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Namespaces = nil
|
|
} else {
|
|
yyv1931 := &x.Namespaces
|
|
yym1932 := z.DecBinary()
|
|
_ = yym1932
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv1931, false, d)
|
|
}
|
|
}
|
|
yyj1928++
|
|
if yyhl1928 {
|
|
yyb1928 = yyj1928 > l
|
|
} else {
|
|
yyb1928 = r.CheckBreak()
|
|
}
|
|
if yyb1928 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.TopologyKey = ""
|
|
} else {
|
|
x.TopologyKey = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj1928++
|
|
if yyhl1928 {
|
|
yyb1928 = yyj1928 > l
|
|
} else {
|
|
yyb1928 = r.CheckBreak()
|
|
}
|
|
if yyb1928 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1928-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *NodeAffinity) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1934 := z.EncBinary()
|
|
_ = yym1934
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1935 := !z.EncBinary()
|
|
yy2arr1935 := z.EncBasicHandle().StructToArray
|
|
var yyq1935 [2]bool
|
|
_, _, _ = yysep1935, yyq1935, yy2arr1935
|
|
const yyr1935 bool = false
|
|
yyq1935[0] = x.RequiredDuringSchedulingIgnoredDuringExecution != nil
|
|
yyq1935[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0
|
|
var yynn1935 int
|
|
if yyr1935 || yy2arr1935 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn1935 = 0
|
|
for _, b := range yyq1935 {
|
|
if b {
|
|
yynn1935++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1935)
|
|
yynn1935 = 0
|
|
}
|
|
if yyr1935 || yy2arr1935 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1935[0] {
|
|
if x.RequiredDuringSchedulingIgnoredDuringExecution == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.RequiredDuringSchedulingIgnoredDuringExecution.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1935[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("requiredDuringSchedulingIgnoredDuringExecution"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.RequiredDuringSchedulingIgnoredDuringExecution == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.RequiredDuringSchedulingIgnoredDuringExecution.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr1935 || yy2arr1935 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1935[1] {
|
|
if x.PreferredDuringSchedulingIgnoredDuringExecution == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1938 := z.EncBinary()
|
|
_ = yym1938
|
|
if false {
|
|
} else {
|
|
h.encSlicePreferredSchedulingTerm(([]PreferredSchedulingTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq1935[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("preferredDuringSchedulingIgnoredDuringExecution"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.PreferredDuringSchedulingIgnoredDuringExecution == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1939 := z.EncBinary()
|
|
_ = yym1939
|
|
if false {
|
|
} else {
|
|
h.encSlicePreferredSchedulingTerm(([]PreferredSchedulingTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr1935 || yy2arr1935 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *NodeAffinity) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1940 := z.DecBinary()
|
|
_ = yym1940
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1941 := r.ContainerType()
|
|
if yyct1941 == codecSelferValueTypeMap1234 {
|
|
yyl1941 := r.ReadMapStart()
|
|
if yyl1941 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1941, d)
|
|
}
|
|
} else if yyct1941 == codecSelferValueTypeArray1234 {
|
|
yyl1941 := r.ReadArrayStart()
|
|
if yyl1941 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1941, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *NodeAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1942Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1942Slc
|
|
var yyhl1942 bool = l >= 0
|
|
for yyj1942 := 0; ; yyj1942++ {
|
|
if yyhl1942 {
|
|
if yyj1942 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1942Slc = r.DecodeBytes(yys1942Slc, true, true)
|
|
yys1942 := string(yys1942Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1942 {
|
|
case "requiredDuringSchedulingIgnoredDuringExecution":
|
|
if r.TryDecodeAsNil() {
|
|
if x.RequiredDuringSchedulingIgnoredDuringExecution != nil {
|
|
x.RequiredDuringSchedulingIgnoredDuringExecution = nil
|
|
}
|
|
} else {
|
|
if x.RequiredDuringSchedulingIgnoredDuringExecution == nil {
|
|
x.RequiredDuringSchedulingIgnoredDuringExecution = new(NodeSelector)
|
|
}
|
|
x.RequiredDuringSchedulingIgnoredDuringExecution.CodecDecodeSelf(d)
|
|
}
|
|
case "preferredDuringSchedulingIgnoredDuringExecution":
|
|
if r.TryDecodeAsNil() {
|
|
x.PreferredDuringSchedulingIgnoredDuringExecution = nil
|
|
} else {
|
|
yyv1944 := &x.PreferredDuringSchedulingIgnoredDuringExecution
|
|
yym1945 := z.DecBinary()
|
|
_ = yym1945
|
|
if false {
|
|
} else {
|
|
h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv1944), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1942)
|
|
} // end switch yys1942
|
|
} // end for yyj1942
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *NodeAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1946 int
|
|
var yyb1946 bool
|
|
var yyhl1946 bool = l >= 0
|
|
yyj1946++
|
|
if yyhl1946 {
|
|
yyb1946 = yyj1946 > l
|
|
} else {
|
|
yyb1946 = r.CheckBreak()
|
|
}
|
|
if yyb1946 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.RequiredDuringSchedulingIgnoredDuringExecution != nil {
|
|
x.RequiredDuringSchedulingIgnoredDuringExecution = nil
|
|
}
|
|
} else {
|
|
if x.RequiredDuringSchedulingIgnoredDuringExecution == nil {
|
|
x.RequiredDuringSchedulingIgnoredDuringExecution = new(NodeSelector)
|
|
}
|
|
x.RequiredDuringSchedulingIgnoredDuringExecution.CodecDecodeSelf(d)
|
|
}
|
|
yyj1946++
|
|
if yyhl1946 {
|
|
yyb1946 = yyj1946 > l
|
|
} else {
|
|
yyb1946 = r.CheckBreak()
|
|
}
|
|
if yyb1946 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.PreferredDuringSchedulingIgnoredDuringExecution = nil
|
|
} else {
|
|
yyv1948 := &x.PreferredDuringSchedulingIgnoredDuringExecution
|
|
yym1949 := z.DecBinary()
|
|
_ = yym1949
|
|
if false {
|
|
} else {
|
|
h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv1948), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj1946++
|
|
if yyhl1946 {
|
|
yyb1946 = yyj1946 > l
|
|
} else {
|
|
yyb1946 = r.CheckBreak()
|
|
}
|
|
if yyb1946 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1946-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *PreferredSchedulingTerm) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1950 := z.EncBinary()
|
|
_ = yym1950
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1951 := !z.EncBinary()
|
|
yy2arr1951 := z.EncBasicHandle().StructToArray
|
|
var yyq1951 [2]bool
|
|
_, _, _ = yysep1951, yyq1951, yy2arr1951
|
|
const yyr1951 bool = false
|
|
var yynn1951 int
|
|
if yyr1951 || yy2arr1951 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn1951 = 2
|
|
for _, b := range yyq1951 {
|
|
if b {
|
|
yynn1951++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1951)
|
|
yynn1951 = 0
|
|
}
|
|
if yyr1951 || yy2arr1951 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1953 := z.EncBinary()
|
|
_ = yym1953
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Weight))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("weight"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1954 := z.EncBinary()
|
|
_ = yym1954
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Weight))
|
|
}
|
|
}
|
|
if yyr1951 || yy2arr1951 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy1956 := &x.Preference
|
|
yy1956.CodecEncodeSelf(e)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("preference"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy1957 := &x.Preference
|
|
yy1957.CodecEncodeSelf(e)
|
|
}
|
|
if yyr1951 || yy2arr1951 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PreferredSchedulingTerm) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1958 := z.DecBinary()
|
|
_ = yym1958
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1959 := r.ContainerType()
|
|
if yyct1959 == codecSelferValueTypeMap1234 {
|
|
yyl1959 := r.ReadMapStart()
|
|
if yyl1959 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1959, d)
|
|
}
|
|
} else if yyct1959 == codecSelferValueTypeArray1234 {
|
|
yyl1959 := r.ReadArrayStart()
|
|
if yyl1959 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1959, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PreferredSchedulingTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1960Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1960Slc
|
|
var yyhl1960 bool = l >= 0
|
|
for yyj1960 := 0; ; yyj1960++ {
|
|
if yyhl1960 {
|
|
if yyj1960 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1960Slc = r.DecodeBytes(yys1960Slc, true, true)
|
|
yys1960 := string(yys1960Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1960 {
|
|
case "weight":
|
|
if r.TryDecodeAsNil() {
|
|
x.Weight = 0
|
|
} else {
|
|
x.Weight = int32(r.DecodeInt(32))
|
|
}
|
|
case "preference":
|
|
if r.TryDecodeAsNil() {
|
|
x.Preference = NodeSelectorTerm{}
|
|
} else {
|
|
yyv1962 := &x.Preference
|
|
yyv1962.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1960)
|
|
} // end switch yys1960
|
|
} // end for yyj1960
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *PreferredSchedulingTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1963 int
|
|
var yyb1963 bool
|
|
var yyhl1963 bool = l >= 0
|
|
yyj1963++
|
|
if yyhl1963 {
|
|
yyb1963 = yyj1963 > l
|
|
} else {
|
|
yyb1963 = r.CheckBreak()
|
|
}
|
|
if yyb1963 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Weight = 0
|
|
} else {
|
|
x.Weight = int32(r.DecodeInt(32))
|
|
}
|
|
yyj1963++
|
|
if yyhl1963 {
|
|
yyb1963 = yyj1963 > l
|
|
} else {
|
|
yyb1963 = r.CheckBreak()
|
|
}
|
|
if yyb1963 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Preference = NodeSelectorTerm{}
|
|
} else {
|
|
yyv1965 := &x.Preference
|
|
yyv1965.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj1963++
|
|
if yyhl1963 {
|
|
yyb1963 = yyj1963 > l
|
|
} else {
|
|
yyb1963 = r.CheckBreak()
|
|
}
|
|
if yyb1963 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1963-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *Taint) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1966 := z.EncBinary()
|
|
_ = yym1966
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1967 := !z.EncBinary()
|
|
yy2arr1967 := z.EncBasicHandle().StructToArray
|
|
var yyq1967 [3]bool
|
|
_, _, _ = yysep1967, yyq1967, yy2arr1967
|
|
const yyr1967 bool = false
|
|
yyq1967[1] = x.Value != ""
|
|
var yynn1967 int
|
|
if yyr1967 || yy2arr1967 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn1967 = 2
|
|
for _, b := range yyq1967 {
|
|
if b {
|
|
yynn1967++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1967)
|
|
yynn1967 = 0
|
|
}
|
|
if yyr1967 || yy2arr1967 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym1969 := z.EncBinary()
|
|
_ = yym1969
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Key))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("key"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1970 := z.EncBinary()
|
|
_ = yym1970
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Key))
|
|
}
|
|
}
|
|
if yyr1967 || yy2arr1967 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1967[1] {
|
|
yym1972 := z.EncBinary()
|
|
_ = yym1972
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Value))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1967[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("value"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1973 := z.EncBinary()
|
|
_ = yym1973
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Value))
|
|
}
|
|
}
|
|
}
|
|
if yyr1967 || yy2arr1967 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
x.Effect.CodecEncodeSelf(e)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("effect"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Effect.CodecEncodeSelf(e)
|
|
}
|
|
if yyr1967 || yy2arr1967 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *Taint) 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 *Taint) 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 "key":
|
|
if r.TryDecodeAsNil() {
|
|
x.Key = ""
|
|
} else {
|
|
x.Key = string(r.DecodeString())
|
|
}
|
|
case "value":
|
|
if r.TryDecodeAsNil() {
|
|
x.Value = ""
|
|
} else {
|
|
x.Value = string(r.DecodeString())
|
|
}
|
|
case "effect":
|
|
if r.TryDecodeAsNil() {
|
|
x.Effect = ""
|
|
} else {
|
|
x.Effect = TaintEffect(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1977)
|
|
} // end switch yys1977
|
|
} // end for yyj1977
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *Taint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj1981 int
|
|
var yyb1981 bool
|
|
var yyhl1981 bool = l >= 0
|
|
yyj1981++
|
|
if yyhl1981 {
|
|
yyb1981 = yyj1981 > l
|
|
} else {
|
|
yyb1981 = r.CheckBreak()
|
|
}
|
|
if yyb1981 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Key = ""
|
|
} else {
|
|
x.Key = string(r.DecodeString())
|
|
}
|
|
yyj1981++
|
|
if yyhl1981 {
|
|
yyb1981 = yyj1981 > l
|
|
} else {
|
|
yyb1981 = r.CheckBreak()
|
|
}
|
|
if yyb1981 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Value = ""
|
|
} else {
|
|
x.Value = string(r.DecodeString())
|
|
}
|
|
yyj1981++
|
|
if yyhl1981 {
|
|
yyb1981 = yyj1981 > l
|
|
} else {
|
|
yyb1981 = r.CheckBreak()
|
|
}
|
|
if yyb1981 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Effect = ""
|
|
} else {
|
|
x.Effect = TaintEffect(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj1981++
|
|
if yyhl1981 {
|
|
yyb1981 = yyj1981 > l
|
|
} else {
|
|
yyb1981 = r.CheckBreak()
|
|
}
|
|
if yyb1981 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj1981-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x TaintEffect) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym1985 := z.EncBinary()
|
|
_ = yym1985
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x))
|
|
}
|
|
}
|
|
|
|
func (x *TaintEffect) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1986 := z.DecBinary()
|
|
_ = yym1986
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
*((*string)(x)) = r.DecodeString()
|
|
}
|
|
}
|
|
|
|
func (x *Toleration) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym1987 := z.EncBinary()
|
|
_ = yym1987
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep1988 := !z.EncBinary()
|
|
yy2arr1988 := z.EncBasicHandle().StructToArray
|
|
var yyq1988 [4]bool
|
|
_, _, _ = yysep1988, yyq1988, yy2arr1988
|
|
const yyr1988 bool = false
|
|
yyq1988[0] = x.Key != ""
|
|
yyq1988[1] = x.Operator != ""
|
|
yyq1988[2] = x.Value != ""
|
|
yyq1988[3] = x.Effect != ""
|
|
var yynn1988 int
|
|
if yyr1988 || yy2arr1988 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn1988 = 0
|
|
for _, b := range yyq1988 {
|
|
if b {
|
|
yynn1988++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn1988)
|
|
yynn1988 = 0
|
|
}
|
|
if yyr1988 || yy2arr1988 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1988[0] {
|
|
yym1990 := z.EncBinary()
|
|
_ = yym1990
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Key))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1988[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("key"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1991 := z.EncBinary()
|
|
_ = yym1991
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Key))
|
|
}
|
|
}
|
|
}
|
|
if yyr1988 || yy2arr1988 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1988[1] {
|
|
x.Operator.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1988[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("operator"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Operator.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1988 || yy2arr1988 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1988[2] {
|
|
yym1994 := z.EncBinary()
|
|
_ = yym1994
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Value))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1988[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("value"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym1995 := z.EncBinary()
|
|
_ = yym1995
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Value))
|
|
}
|
|
}
|
|
}
|
|
if yyr1988 || yy2arr1988 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq1988[3] {
|
|
x.Effect.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq1988[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("effect"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Effect.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr1988 || yy2arr1988 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *Toleration) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym1997 := z.DecBinary()
|
|
_ = yym1997
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct1998 := r.ContainerType()
|
|
if yyct1998 == codecSelferValueTypeMap1234 {
|
|
yyl1998 := r.ReadMapStart()
|
|
if yyl1998 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl1998, d)
|
|
}
|
|
} else if yyct1998 == codecSelferValueTypeArray1234 {
|
|
yyl1998 := r.ReadArrayStart()
|
|
if yyl1998 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl1998, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *Toleration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys1999Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys1999Slc
|
|
var yyhl1999 bool = l >= 0
|
|
for yyj1999 := 0; ; yyj1999++ {
|
|
if yyhl1999 {
|
|
if yyj1999 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys1999Slc = r.DecodeBytes(yys1999Slc, true, true)
|
|
yys1999 := string(yys1999Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys1999 {
|
|
case "key":
|
|
if r.TryDecodeAsNil() {
|
|
x.Key = ""
|
|
} else {
|
|
x.Key = string(r.DecodeString())
|
|
}
|
|
case "operator":
|
|
if r.TryDecodeAsNil() {
|
|
x.Operator = ""
|
|
} else {
|
|
x.Operator = TolerationOperator(r.DecodeString())
|
|
}
|
|
case "value":
|
|
if r.TryDecodeAsNil() {
|
|
x.Value = ""
|
|
} else {
|
|
x.Value = string(r.DecodeString())
|
|
}
|
|
case "effect":
|
|
if r.TryDecodeAsNil() {
|
|
x.Effect = ""
|
|
} else {
|
|
x.Effect = TaintEffect(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys1999)
|
|
} // end switch yys1999
|
|
} // end for yyj1999
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *Toleration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj2004 int
|
|
var yyb2004 bool
|
|
var yyhl2004 bool = l >= 0
|
|
yyj2004++
|
|
if yyhl2004 {
|
|
yyb2004 = yyj2004 > l
|
|
} else {
|
|
yyb2004 = r.CheckBreak()
|
|
}
|
|
if yyb2004 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Key = ""
|
|
} else {
|
|
x.Key = string(r.DecodeString())
|
|
}
|
|
yyj2004++
|
|
if yyhl2004 {
|
|
yyb2004 = yyj2004 > l
|
|
} else {
|
|
yyb2004 = r.CheckBreak()
|
|
}
|
|
if yyb2004 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Operator = ""
|
|
} else {
|
|
x.Operator = TolerationOperator(r.DecodeString())
|
|
}
|
|
yyj2004++
|
|
if yyhl2004 {
|
|
yyb2004 = yyj2004 > l
|
|
} else {
|
|
yyb2004 = r.CheckBreak()
|
|
}
|
|
if yyb2004 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Value = ""
|
|
} else {
|
|
x.Value = string(r.DecodeString())
|
|
}
|
|
yyj2004++
|
|
if yyhl2004 {
|
|
yyb2004 = yyj2004 > l
|
|
} else {
|
|
yyb2004 = r.CheckBreak()
|
|
}
|
|
if yyb2004 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Effect = ""
|
|
} else {
|
|
x.Effect = TaintEffect(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj2004++
|
|
if yyhl2004 {
|
|
yyb2004 = yyj2004 > l
|
|
} else {
|
|
yyb2004 = r.CheckBreak()
|
|
}
|
|
if yyb2004 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2004-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x TolerationOperator) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym2009 := z.EncBinary()
|
|
_ = yym2009
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x))
|
|
}
|
|
}
|
|
|
|
func (x *TolerationOperator) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym2010 := z.DecBinary()
|
|
_ = yym2010
|
|
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 {
|
|
yym2011 := z.EncBinary()
|
|
_ = yym2011
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2012 := !z.EncBinary()
|
|
yy2arr2012 := z.EncBasicHandle().StructToArray
|
|
var yyq2012 [13]bool
|
|
_, _, _ = yysep2012, yyq2012, yy2arr2012
|
|
const yyr2012 bool = false
|
|
yyq2012[2] = x.RestartPolicy != ""
|
|
yyq2012[3] = x.TerminationGracePeriodSeconds != nil
|
|
yyq2012[4] = x.ActiveDeadlineSeconds != nil
|
|
yyq2012[5] = x.DNSPolicy != ""
|
|
yyq2012[6] = len(x.NodeSelector) != 0
|
|
yyq2012[8] = x.NodeName != ""
|
|
yyq2012[9] = x.SecurityContext != nil
|
|
yyq2012[10] = len(x.ImagePullSecrets) != 0
|
|
yyq2012[11] = x.Hostname != ""
|
|
yyq2012[12] = x.Subdomain != ""
|
|
var yynn2012 int
|
|
if yyr2012 || yy2arr2012 {
|
|
r.EncodeArrayStart(13)
|
|
} else {
|
|
yynn2012 = 3
|
|
for _, b := range yyq2012 {
|
|
if b {
|
|
yynn2012++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2012)
|
|
yynn2012 = 0
|
|
}
|
|
if yyr2012 || yy2arr2012 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Volumes == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2014 := z.EncBinary()
|
|
_ = yym2014
|
|
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 {
|
|
yym2015 := z.EncBinary()
|
|
_ = yym2015
|
|
if false {
|
|
} else {
|
|
h.encSliceVolume(([]Volume)(x.Volumes), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr2012 || yy2arr2012 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Containers == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2017 := z.EncBinary()
|
|
_ = yym2017
|
|
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 {
|
|
yym2018 := z.EncBinary()
|
|
_ = yym2018
|
|
if false {
|
|
} else {
|
|
h.encSliceContainer(([]Container)(x.Containers), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr2012 || yy2arr2012 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2012[2] {
|
|
x.RestartPolicy.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2012[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("restartPolicy"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.RestartPolicy.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2012 || yy2arr2012 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2012[3] {
|
|
if x.TerminationGracePeriodSeconds == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy2021 := *x.TerminationGracePeriodSeconds
|
|
yym2022 := z.EncBinary()
|
|
_ = yym2022
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy2021))
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2012[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("terminationGracePeriodSeconds"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.TerminationGracePeriodSeconds == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy2023 := *x.TerminationGracePeriodSeconds
|
|
yym2024 := z.EncBinary()
|
|
_ = yym2024
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy2023))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr2012 || yy2arr2012 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2012[4] {
|
|
if x.ActiveDeadlineSeconds == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy2026 := *x.ActiveDeadlineSeconds
|
|
yym2027 := z.EncBinary()
|
|
_ = yym2027
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy2026))
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2012[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("activeDeadlineSeconds"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.ActiveDeadlineSeconds == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy2028 := *x.ActiveDeadlineSeconds
|
|
yym2029 := z.EncBinary()
|
|
_ = yym2029
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy2028))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr2012 || yy2arr2012 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2012[5] {
|
|
x.DNSPolicy.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2012[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("dnsPolicy"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.DNSPolicy.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2012 || yy2arr2012 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2012[6] {
|
|
if x.NodeSelector == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2032 := z.EncBinary()
|
|
_ = yym2032
|
|
if false {
|
|
} else {
|
|
z.F.EncMapStringStringV(x.NodeSelector, false, e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2012[6] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("nodeSelector"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.NodeSelector == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2033 := z.EncBinary()
|
|
_ = yym2033
|
|
if false {
|
|
} else {
|
|
z.F.EncMapStringStringV(x.NodeSelector, false, e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr2012 || yy2arr2012 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2035 := z.EncBinary()
|
|
_ = yym2035
|
|
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)
|
|
yym2036 := z.EncBinary()
|
|
_ = yym2036
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountName))
|
|
}
|
|
}
|
|
if yyr2012 || yy2arr2012 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2012[8] {
|
|
yym2038 := z.EncBinary()
|
|
_ = yym2038
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.NodeName))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2012[8] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("nodeName"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2039 := z.EncBinary()
|
|
_ = yym2039
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.NodeName))
|
|
}
|
|
}
|
|
}
|
|
if yyr2012 || yy2arr2012 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2012[9] {
|
|
if x.SecurityContext == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.SecurityContext.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2012[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 yyr2012 || yy2arr2012 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2012[10] {
|
|
if x.ImagePullSecrets == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2042 := z.EncBinary()
|
|
_ = yym2042
|
|
if false {
|
|
} else {
|
|
h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2012[10] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.ImagePullSecrets == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2043 := z.EncBinary()
|
|
_ = yym2043
|
|
if false {
|
|
} else {
|
|
h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr2012 || yy2arr2012 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2012[11] {
|
|
yym2045 := z.EncBinary()
|
|
_ = yym2045
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Hostname))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2012[11] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("hostname"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2046 := z.EncBinary()
|
|
_ = yym2046
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Hostname))
|
|
}
|
|
}
|
|
}
|
|
if yyr2012 || yy2arr2012 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2012[12] {
|
|
yym2048 := z.EncBinary()
|
|
_ = yym2048
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Subdomain))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2012[12] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("subdomain"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2049 := z.EncBinary()
|
|
_ = yym2049
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Subdomain))
|
|
}
|
|
}
|
|
}
|
|
if yyr2012 || yy2arr2012 {
|
|
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
|
|
yym2050 := z.DecBinary()
|
|
_ = yym2050
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2051 := r.ContainerType()
|
|
if yyct2051 == codecSelferValueTypeMap1234 {
|
|
yyl2051 := r.ReadMapStart()
|
|
if yyl2051 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2051, d)
|
|
}
|
|
} else if yyct2051 == codecSelferValueTypeArray1234 {
|
|
yyl2051 := r.ReadArrayStart()
|
|
if yyl2051 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2051, 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 yys2052Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2052Slc
|
|
var yyhl2052 bool = l >= 0
|
|
for yyj2052 := 0; ; yyj2052++ {
|
|
if yyhl2052 {
|
|
if yyj2052 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2052Slc = r.DecodeBytes(yys2052Slc, true, true)
|
|
yys2052 := string(yys2052Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2052 {
|
|
case "volumes":
|
|
if r.TryDecodeAsNil() {
|
|
x.Volumes = nil
|
|
} else {
|
|
yyv2053 := &x.Volumes
|
|
yym2054 := z.DecBinary()
|
|
_ = yym2054
|
|
if false {
|
|
} else {
|
|
h.decSliceVolume((*[]Volume)(yyv2053), d)
|
|
}
|
|
}
|
|
case "containers":
|
|
if r.TryDecodeAsNil() {
|
|
x.Containers = nil
|
|
} else {
|
|
yyv2055 := &x.Containers
|
|
yym2056 := z.DecBinary()
|
|
_ = yym2056
|
|
if false {
|
|
} else {
|
|
h.decSliceContainer((*[]Container)(yyv2055), 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)
|
|
}
|
|
yym2059 := z.DecBinary()
|
|
_ = yym2059
|
|
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)
|
|
}
|
|
yym2061 := z.DecBinary()
|
|
_ = yym2061
|
|
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 {
|
|
yyv2063 := &x.NodeSelector
|
|
yym2064 := z.DecBinary()
|
|
_ = yym2064
|
|
if false {
|
|
} else {
|
|
z.F.DecMapStringStringX(yyv2063, 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 {
|
|
yyv2068 := &x.ImagePullSecrets
|
|
yym2069 := z.DecBinary()
|
|
_ = yym2069
|
|
if false {
|
|
} else {
|
|
h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2068), d)
|
|
}
|
|
}
|
|
case "hostname":
|
|
if r.TryDecodeAsNil() {
|
|
x.Hostname = ""
|
|
} else {
|
|
x.Hostname = string(r.DecodeString())
|
|
}
|
|
case "subdomain":
|
|
if r.TryDecodeAsNil() {
|
|
x.Subdomain = ""
|
|
} else {
|
|
x.Subdomain = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2052)
|
|
} // end switch yys2052
|
|
} // end for yyj2052
|
|
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 yyj2072 int
|
|
var yyb2072 bool
|
|
var yyhl2072 bool = l >= 0
|
|
yyj2072++
|
|
if yyhl2072 {
|
|
yyb2072 = yyj2072 > l
|
|
} else {
|
|
yyb2072 = r.CheckBreak()
|
|
}
|
|
if yyb2072 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Volumes = nil
|
|
} else {
|
|
yyv2073 := &x.Volumes
|
|
yym2074 := z.DecBinary()
|
|
_ = yym2074
|
|
if false {
|
|
} else {
|
|
h.decSliceVolume((*[]Volume)(yyv2073), d)
|
|
}
|
|
}
|
|
yyj2072++
|
|
if yyhl2072 {
|
|
yyb2072 = yyj2072 > l
|
|
} else {
|
|
yyb2072 = r.CheckBreak()
|
|
}
|
|
if yyb2072 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Containers = nil
|
|
} else {
|
|
yyv2075 := &x.Containers
|
|
yym2076 := z.DecBinary()
|
|
_ = yym2076
|
|
if false {
|
|
} else {
|
|
h.decSliceContainer((*[]Container)(yyv2075), d)
|
|
}
|
|
}
|
|
yyj2072++
|
|
if yyhl2072 {
|
|
yyb2072 = yyj2072 > l
|
|
} else {
|
|
yyb2072 = r.CheckBreak()
|
|
}
|
|
if yyb2072 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.RestartPolicy = ""
|
|
} else {
|
|
x.RestartPolicy = RestartPolicy(r.DecodeString())
|
|
}
|
|
yyj2072++
|
|
if yyhl2072 {
|
|
yyb2072 = yyj2072 > l
|
|
} else {
|
|
yyb2072 = r.CheckBreak()
|
|
}
|
|
if yyb2072 {
|
|
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)
|
|
}
|
|
yym2079 := z.DecBinary()
|
|
_ = yym2079
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.TerminationGracePeriodSeconds)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
yyj2072++
|
|
if yyhl2072 {
|
|
yyb2072 = yyj2072 > l
|
|
} else {
|
|
yyb2072 = r.CheckBreak()
|
|
}
|
|
if yyb2072 {
|
|
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)
|
|
}
|
|
yym2081 := z.DecBinary()
|
|
_ = yym2081
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
yyj2072++
|
|
if yyhl2072 {
|
|
yyb2072 = yyj2072 > l
|
|
} else {
|
|
yyb2072 = r.CheckBreak()
|
|
}
|
|
if yyb2072 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.DNSPolicy = ""
|
|
} else {
|
|
x.DNSPolicy = DNSPolicy(r.DecodeString())
|
|
}
|
|
yyj2072++
|
|
if yyhl2072 {
|
|
yyb2072 = yyj2072 > l
|
|
} else {
|
|
yyb2072 = r.CheckBreak()
|
|
}
|
|
if yyb2072 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.NodeSelector = nil
|
|
} else {
|
|
yyv2083 := &x.NodeSelector
|
|
yym2084 := z.DecBinary()
|
|
_ = yym2084
|
|
if false {
|
|
} else {
|
|
z.F.DecMapStringStringX(yyv2083, false, d)
|
|
}
|
|
}
|
|
yyj2072++
|
|
if yyhl2072 {
|
|
yyb2072 = yyj2072 > l
|
|
} else {
|
|
yyb2072 = r.CheckBreak()
|
|
}
|
|
if yyb2072 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ServiceAccountName = ""
|
|
} else {
|
|
x.ServiceAccountName = string(r.DecodeString())
|
|
}
|
|
yyj2072++
|
|
if yyhl2072 {
|
|
yyb2072 = yyj2072 > l
|
|
} else {
|
|
yyb2072 = r.CheckBreak()
|
|
}
|
|
if yyb2072 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.NodeName = ""
|
|
} else {
|
|
x.NodeName = string(r.DecodeString())
|
|
}
|
|
yyj2072++
|
|
if yyhl2072 {
|
|
yyb2072 = yyj2072 > l
|
|
} else {
|
|
yyb2072 = r.CheckBreak()
|
|
}
|
|
if yyb2072 {
|
|
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)
|
|
}
|
|
yyj2072++
|
|
if yyhl2072 {
|
|
yyb2072 = yyj2072 > l
|
|
} else {
|
|
yyb2072 = r.CheckBreak()
|
|
}
|
|
if yyb2072 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ImagePullSecrets = nil
|
|
} else {
|
|
yyv2088 := &x.ImagePullSecrets
|
|
yym2089 := z.DecBinary()
|
|
_ = yym2089
|
|
if false {
|
|
} else {
|
|
h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2088), d)
|
|
}
|
|
}
|
|
yyj2072++
|
|
if yyhl2072 {
|
|
yyb2072 = yyj2072 > l
|
|
} else {
|
|
yyb2072 = r.CheckBreak()
|
|
}
|
|
if yyb2072 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Hostname = ""
|
|
} else {
|
|
x.Hostname = string(r.DecodeString())
|
|
}
|
|
yyj2072++
|
|
if yyhl2072 {
|
|
yyb2072 = yyj2072 > l
|
|
} else {
|
|
yyb2072 = r.CheckBreak()
|
|
}
|
|
if yyb2072 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Subdomain = ""
|
|
} else {
|
|
x.Subdomain = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj2072++
|
|
if yyhl2072 {
|
|
yyb2072 = yyj2072 > l
|
|
} else {
|
|
yyb2072 = r.CheckBreak()
|
|
}
|
|
if yyb2072 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2072-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 {
|
|
yym2092 := z.EncBinary()
|
|
_ = yym2092
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2093 := !z.EncBinary()
|
|
yy2arr2093 := z.EncBasicHandle().StructToArray
|
|
var yyq2093 [8]bool
|
|
_, _, _ = yysep2093, yyq2093, yy2arr2093
|
|
const yyr2093 bool = false
|
|
yyq2093[0] = x.HostNetwork != false
|
|
yyq2093[1] = x.HostPID != false
|
|
yyq2093[2] = x.HostIPC != false
|
|
yyq2093[3] = x.SELinuxOptions != nil
|
|
yyq2093[4] = x.RunAsUser != nil
|
|
yyq2093[5] = x.RunAsNonRoot != nil
|
|
yyq2093[6] = len(x.SupplementalGroups) != 0
|
|
yyq2093[7] = x.FSGroup != nil
|
|
var yynn2093 int
|
|
if yyr2093 || yy2arr2093 {
|
|
r.EncodeArrayStart(8)
|
|
} else {
|
|
yynn2093 = 0
|
|
for _, b := range yyq2093 {
|
|
if b {
|
|
yynn2093++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2093)
|
|
yynn2093 = 0
|
|
}
|
|
if yyr2093 || yy2arr2093 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2093[0] {
|
|
yym2095 := z.EncBinary()
|
|
_ = yym2095
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.HostNetwork))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq2093[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("hostNetwork"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2096 := z.EncBinary()
|
|
_ = yym2096
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.HostNetwork))
|
|
}
|
|
}
|
|
}
|
|
if yyr2093 || yy2arr2093 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2093[1] {
|
|
yym2098 := z.EncBinary()
|
|
_ = yym2098
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.HostPID))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq2093[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("hostPID"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2099 := z.EncBinary()
|
|
_ = yym2099
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.HostPID))
|
|
}
|
|
}
|
|
}
|
|
if yyr2093 || yy2arr2093 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2093[2] {
|
|
yym2101 := z.EncBinary()
|
|
_ = yym2101
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.HostIPC))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq2093[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("hostIPC"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2102 := z.EncBinary()
|
|
_ = yym2102
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.HostIPC))
|
|
}
|
|
}
|
|
}
|
|
if yyr2093 || yy2arr2093 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2093[3] {
|
|
if x.SELinuxOptions == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.SELinuxOptions.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2093[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 yyr2093 || yy2arr2093 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2093[4] {
|
|
if x.RunAsUser == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy2105 := *x.RunAsUser
|
|
yym2106 := z.EncBinary()
|
|
_ = yym2106
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy2105))
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2093[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("runAsUser"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.RunAsUser == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy2107 := *x.RunAsUser
|
|
yym2108 := z.EncBinary()
|
|
_ = yym2108
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy2107))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr2093 || yy2arr2093 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2093[5] {
|
|
if x.RunAsNonRoot == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy2110 := *x.RunAsNonRoot
|
|
yym2111 := z.EncBinary()
|
|
_ = yym2111
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(yy2110))
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2093[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.RunAsNonRoot == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy2112 := *x.RunAsNonRoot
|
|
yym2113 := z.EncBinary()
|
|
_ = yym2113
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(yy2112))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr2093 || yy2arr2093 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2093[6] {
|
|
if x.SupplementalGroups == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2115 := z.EncBinary()
|
|
_ = yym2115
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceInt64V(x.SupplementalGroups, false, e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2093[6] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("supplementalGroups"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.SupplementalGroups == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2116 := z.EncBinary()
|
|
_ = yym2116
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceInt64V(x.SupplementalGroups, false, e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr2093 || yy2arr2093 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2093[7] {
|
|
if x.FSGroup == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy2118 := *x.FSGroup
|
|
yym2119 := z.EncBinary()
|
|
_ = yym2119
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy2118))
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2093[7] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("fsGroup"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.FSGroup == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy2120 := *x.FSGroup
|
|
yym2121 := z.EncBinary()
|
|
_ = yym2121
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy2120))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr2093 || yy2arr2093 {
|
|
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
|
|
yym2122 := z.DecBinary()
|
|
_ = yym2122
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2123 := r.ContainerType()
|
|
if yyct2123 == codecSelferValueTypeMap1234 {
|
|
yyl2123 := r.ReadMapStart()
|
|
if yyl2123 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2123, d)
|
|
}
|
|
} else if yyct2123 == codecSelferValueTypeArray1234 {
|
|
yyl2123 := r.ReadArrayStart()
|
|
if yyl2123 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2123, 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 yys2124Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2124Slc
|
|
var yyhl2124 bool = l >= 0
|
|
for yyj2124 := 0; ; yyj2124++ {
|
|
if yyhl2124 {
|
|
if yyj2124 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2124Slc = r.DecodeBytes(yys2124Slc, true, true)
|
|
yys2124 := string(yys2124Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2124 {
|
|
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)
|
|
}
|
|
yym2130 := z.DecBinary()
|
|
_ = yym2130
|
|
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)
|
|
}
|
|
yym2132 := z.DecBinary()
|
|
_ = yym2132
|
|
if false {
|
|
} else {
|
|
*((*bool)(x.RunAsNonRoot)) = r.DecodeBool()
|
|
}
|
|
}
|
|
case "supplementalGroups":
|
|
if r.TryDecodeAsNil() {
|
|
x.SupplementalGroups = nil
|
|
} else {
|
|
yyv2133 := &x.SupplementalGroups
|
|
yym2134 := z.DecBinary()
|
|
_ = yym2134
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceInt64X(yyv2133, false, d)
|
|
}
|
|
}
|
|
case "fsGroup":
|
|
if r.TryDecodeAsNil() {
|
|
if x.FSGroup != nil {
|
|
x.FSGroup = nil
|
|
}
|
|
} else {
|
|
if x.FSGroup == nil {
|
|
x.FSGroup = new(int64)
|
|
}
|
|
yym2136 := z.DecBinary()
|
|
_ = yym2136
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.FSGroup)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2124)
|
|
} // end switch yys2124
|
|
} // end for yyj2124
|
|
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 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.HostNetwork = false
|
|
} else {
|
|
x.HostNetwork = bool(r.DecodeBool())
|
|
}
|
|
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.HostPID = false
|
|
} else {
|
|
x.HostPID = bool(r.DecodeBool())
|
|
}
|
|
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.HostIPC = false
|
|
} else {
|
|
x.HostIPC = bool(r.DecodeBool())
|
|
}
|
|
yyj2137++
|
|
if yyhl2137 {
|
|
yyb2137 = yyj2137 > l
|
|
} else {
|
|
yyb2137 = r.CheckBreak()
|
|
}
|
|
if yyb2137 {
|
|
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)
|
|
}
|
|
yyj2137++
|
|
if yyhl2137 {
|
|
yyb2137 = yyj2137 > l
|
|
} else {
|
|
yyb2137 = r.CheckBreak()
|
|
}
|
|
if yyb2137 {
|
|
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)
|
|
}
|
|
yym2143 := z.DecBinary()
|
|
_ = yym2143
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
yyj2137++
|
|
if yyhl2137 {
|
|
yyb2137 = yyj2137 > l
|
|
} else {
|
|
yyb2137 = r.CheckBreak()
|
|
}
|
|
if yyb2137 {
|
|
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)
|
|
}
|
|
yym2145 := z.DecBinary()
|
|
_ = yym2145
|
|
if false {
|
|
} else {
|
|
*((*bool)(x.RunAsNonRoot)) = r.DecodeBool()
|
|
}
|
|
}
|
|
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.SupplementalGroups = nil
|
|
} else {
|
|
yyv2146 := &x.SupplementalGroups
|
|
yym2147 := z.DecBinary()
|
|
_ = yym2147
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceInt64X(yyv2146, false, 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() {
|
|
if x.FSGroup != nil {
|
|
x.FSGroup = nil
|
|
}
|
|
} else {
|
|
if x.FSGroup == nil {
|
|
x.FSGroup = new(int64)
|
|
}
|
|
yym2149 := z.DecBinary()
|
|
_ = yym2149
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.FSGroup)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
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 *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2150 := z.EncBinary()
|
|
_ = yym2150
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2151 := !z.EncBinary()
|
|
yy2arr2151 := z.EncBasicHandle().StructToArray
|
|
var yyq2151 [8]bool
|
|
_, _, _ = yysep2151, yyq2151, yy2arr2151
|
|
const yyr2151 bool = false
|
|
yyq2151[0] = x.Phase != ""
|
|
yyq2151[1] = len(x.Conditions) != 0
|
|
yyq2151[2] = x.Message != ""
|
|
yyq2151[3] = x.Reason != ""
|
|
yyq2151[4] = x.HostIP != ""
|
|
yyq2151[5] = x.PodIP != ""
|
|
yyq2151[6] = x.StartTime != nil
|
|
yyq2151[7] = len(x.ContainerStatuses) != 0
|
|
var yynn2151 int
|
|
if yyr2151 || yy2arr2151 {
|
|
r.EncodeArrayStart(8)
|
|
} else {
|
|
yynn2151 = 0
|
|
for _, b := range yyq2151 {
|
|
if b {
|
|
yynn2151++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2151)
|
|
yynn2151 = 0
|
|
}
|
|
if yyr2151 || yy2arr2151 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2151[0] {
|
|
x.Phase.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2151[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("phase"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Phase.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2151 || yy2arr2151 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2151[1] {
|
|
if x.Conditions == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2154 := z.EncBinary()
|
|
_ = yym2154
|
|
if false {
|
|
} else {
|
|
h.encSlicePodCondition(([]PodCondition)(x.Conditions), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2151[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("conditions"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Conditions == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2155 := z.EncBinary()
|
|
_ = yym2155
|
|
if false {
|
|
} else {
|
|
h.encSlicePodCondition(([]PodCondition)(x.Conditions), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr2151 || yy2arr2151 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2151[2] {
|
|
yym2157 := z.EncBinary()
|
|
_ = yym2157
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2151[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("message"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2158 := z.EncBinary()
|
|
_ = yym2158
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
}
|
|
}
|
|
if yyr2151 || yy2arr2151 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2151[3] {
|
|
yym2160 := z.EncBinary()
|
|
_ = yym2160
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2151[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("reason"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2161 := z.EncBinary()
|
|
_ = yym2161
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
|
|
}
|
|
}
|
|
}
|
|
if yyr2151 || yy2arr2151 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2151[4] {
|
|
yym2163 := z.EncBinary()
|
|
_ = yym2163
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.HostIP))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2151[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("hostIP"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2164 := z.EncBinary()
|
|
_ = yym2164
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.HostIP))
|
|
}
|
|
}
|
|
}
|
|
if yyr2151 || yy2arr2151 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2151[5] {
|
|
yym2166 := z.EncBinary()
|
|
_ = yym2166
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.PodIP))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2151[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("podIP"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2167 := z.EncBinary()
|
|
_ = yym2167
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.PodIP))
|
|
}
|
|
}
|
|
}
|
|
if yyr2151 || yy2arr2151 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2151[6] {
|
|
if x.StartTime == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2169 := z.EncBinary()
|
|
_ = yym2169
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x.StartTime) {
|
|
} else if yym2169 {
|
|
z.EncBinaryMarshal(x.StartTime)
|
|
} else if !yym2169 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(x.StartTime)
|
|
} else {
|
|
z.EncFallback(x.StartTime)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2151[6] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("startTime"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.StartTime == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2170 := z.EncBinary()
|
|
_ = yym2170
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x.StartTime) {
|
|
} else if yym2170 {
|
|
z.EncBinaryMarshal(x.StartTime)
|
|
} else if !yym2170 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(x.StartTime)
|
|
} else {
|
|
z.EncFallback(x.StartTime)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr2151 || yy2arr2151 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2151[7] {
|
|
if x.ContainerStatuses == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2172 := z.EncBinary()
|
|
_ = yym2172
|
|
if false {
|
|
} else {
|
|
h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2151[7] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("containerStatuses"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.ContainerStatuses == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2173 := z.EncBinary()
|
|
_ = yym2173
|
|
if false {
|
|
} else {
|
|
h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr2151 || yy2arr2151 {
|
|
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
|
|
yym2174 := z.DecBinary()
|
|
_ = yym2174
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2175 := r.ContainerType()
|
|
if yyct2175 == codecSelferValueTypeMap1234 {
|
|
yyl2175 := r.ReadMapStart()
|
|
if yyl2175 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2175, d)
|
|
}
|
|
} else if yyct2175 == codecSelferValueTypeArray1234 {
|
|
yyl2175 := r.ReadArrayStart()
|
|
if yyl2175 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2175, 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 yys2176Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2176Slc
|
|
var yyhl2176 bool = l >= 0
|
|
for yyj2176 := 0; ; yyj2176++ {
|
|
if yyhl2176 {
|
|
if yyj2176 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2176Slc = r.DecodeBytes(yys2176Slc, true, true)
|
|
yys2176 := string(yys2176Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2176 {
|
|
case "phase":
|
|
if r.TryDecodeAsNil() {
|
|
x.Phase = ""
|
|
} else {
|
|
x.Phase = PodPhase(r.DecodeString())
|
|
}
|
|
case "conditions":
|
|
if r.TryDecodeAsNil() {
|
|
x.Conditions = nil
|
|
} else {
|
|
yyv2178 := &x.Conditions
|
|
yym2179 := z.DecBinary()
|
|
_ = yym2179
|
|
if false {
|
|
} else {
|
|
h.decSlicePodCondition((*[]PodCondition)(yyv2178), 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)
|
|
}
|
|
yym2185 := z.DecBinary()
|
|
_ = yym2185
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x.StartTime) {
|
|
} else if yym2185 {
|
|
z.DecBinaryUnmarshal(x.StartTime)
|
|
} else if !yym2185 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(x.StartTime)
|
|
} else {
|
|
z.DecFallback(x.StartTime, false)
|
|
}
|
|
}
|
|
case "containerStatuses":
|
|
if r.TryDecodeAsNil() {
|
|
x.ContainerStatuses = nil
|
|
} else {
|
|
yyv2186 := &x.ContainerStatuses
|
|
yym2187 := z.DecBinary()
|
|
_ = yym2187
|
|
if false {
|
|
} else {
|
|
h.decSliceContainerStatus((*[]ContainerStatus)(yyv2186), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2176)
|
|
} // end switch yys2176
|
|
} // end for yyj2176
|
|
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 yyj2188 int
|
|
var yyb2188 bool
|
|
var yyhl2188 bool = l >= 0
|
|
yyj2188++
|
|
if yyhl2188 {
|
|
yyb2188 = yyj2188 > l
|
|
} else {
|
|
yyb2188 = r.CheckBreak()
|
|
}
|
|
if yyb2188 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Phase = ""
|
|
} else {
|
|
x.Phase = PodPhase(r.DecodeString())
|
|
}
|
|
yyj2188++
|
|
if yyhl2188 {
|
|
yyb2188 = yyj2188 > l
|
|
} else {
|
|
yyb2188 = r.CheckBreak()
|
|
}
|
|
if yyb2188 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Conditions = nil
|
|
} else {
|
|
yyv2190 := &x.Conditions
|
|
yym2191 := z.DecBinary()
|
|
_ = yym2191
|
|
if false {
|
|
} else {
|
|
h.decSlicePodCondition((*[]PodCondition)(yyv2190), d)
|
|
}
|
|
}
|
|
yyj2188++
|
|
if yyhl2188 {
|
|
yyb2188 = yyj2188 > l
|
|
} else {
|
|
yyb2188 = r.CheckBreak()
|
|
}
|
|
if yyb2188 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Message = ""
|
|
} else {
|
|
x.Message = string(r.DecodeString())
|
|
}
|
|
yyj2188++
|
|
if yyhl2188 {
|
|
yyb2188 = yyj2188 > l
|
|
} else {
|
|
yyb2188 = r.CheckBreak()
|
|
}
|
|
if yyb2188 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Reason = ""
|
|
} else {
|
|
x.Reason = string(r.DecodeString())
|
|
}
|
|
yyj2188++
|
|
if yyhl2188 {
|
|
yyb2188 = yyj2188 > l
|
|
} else {
|
|
yyb2188 = r.CheckBreak()
|
|
}
|
|
if yyb2188 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.HostIP = ""
|
|
} else {
|
|
x.HostIP = string(r.DecodeString())
|
|
}
|
|
yyj2188++
|
|
if yyhl2188 {
|
|
yyb2188 = yyj2188 > l
|
|
} else {
|
|
yyb2188 = r.CheckBreak()
|
|
}
|
|
if yyb2188 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.PodIP = ""
|
|
} else {
|
|
x.PodIP = string(r.DecodeString())
|
|
}
|
|
yyj2188++
|
|
if yyhl2188 {
|
|
yyb2188 = yyj2188 > l
|
|
} else {
|
|
yyb2188 = r.CheckBreak()
|
|
}
|
|
if yyb2188 {
|
|
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)
|
|
}
|
|
yym2197 := z.DecBinary()
|
|
_ = yym2197
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x.StartTime) {
|
|
} else if yym2197 {
|
|
z.DecBinaryUnmarshal(x.StartTime)
|
|
} else if !yym2197 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(x.StartTime)
|
|
} else {
|
|
z.DecFallback(x.StartTime, false)
|
|
}
|
|
}
|
|
yyj2188++
|
|
if yyhl2188 {
|
|
yyb2188 = yyj2188 > l
|
|
} else {
|
|
yyb2188 = r.CheckBreak()
|
|
}
|
|
if yyb2188 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ContainerStatuses = nil
|
|
} else {
|
|
yyv2198 := &x.ContainerStatuses
|
|
yym2199 := z.DecBinary()
|
|
_ = yym2199
|
|
if false {
|
|
} else {
|
|
h.decSliceContainerStatus((*[]ContainerStatus)(yyv2198), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj2188++
|
|
if yyhl2188 {
|
|
yyb2188 = yyj2188 > l
|
|
} else {
|
|
yyb2188 = r.CheckBreak()
|
|
}
|
|
if yyb2188 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2188-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 {
|
|
yym2200 := z.EncBinary()
|
|
_ = yym2200
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2201 := !z.EncBinary()
|
|
yy2arr2201 := z.EncBasicHandle().StructToArray
|
|
var yyq2201 [4]bool
|
|
_, _, _ = yysep2201, yyq2201, yy2arr2201
|
|
const yyr2201 bool = false
|
|
yyq2201[0] = x.Kind != ""
|
|
yyq2201[1] = x.APIVersion != ""
|
|
yyq2201[2] = true
|
|
yyq2201[3] = true
|
|
var yynn2201 int
|
|
if yyr2201 || yy2arr2201 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn2201 = 0
|
|
for _, b := range yyq2201 {
|
|
if b {
|
|
yynn2201++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2201)
|
|
yynn2201 = 0
|
|
}
|
|
if yyr2201 || yy2arr2201 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2201[0] {
|
|
yym2203 := z.EncBinary()
|
|
_ = yym2203
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2201[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2204 := z.EncBinary()
|
|
_ = yym2204
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2201 || yy2arr2201 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2201[1] {
|
|
yym2206 := z.EncBinary()
|
|
_ = yym2206
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2201[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2207 := z.EncBinary()
|
|
_ = yym2207
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2201 || yy2arr2201 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2201[2] {
|
|
yy2209 := &x.ObjectMeta
|
|
yy2209.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2201[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2210 := &x.ObjectMeta
|
|
yy2210.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2201 || yy2arr2201 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2201[3] {
|
|
yy2212 := &x.Status
|
|
yy2212.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2201[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("status"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2213 := &x.Status
|
|
yy2213.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2201 || yy2arr2201 {
|
|
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
|
|
yym2214 := z.DecBinary()
|
|
_ = yym2214
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2215 := r.ContainerType()
|
|
if yyct2215 == codecSelferValueTypeMap1234 {
|
|
yyl2215 := r.ReadMapStart()
|
|
if yyl2215 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2215, d)
|
|
}
|
|
} else if yyct2215 == codecSelferValueTypeArray1234 {
|
|
yyl2215 := r.ReadArrayStart()
|
|
if yyl2215 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2215, 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 yys2216Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2216Slc
|
|
var yyhl2216 bool = l >= 0
|
|
for yyj2216 := 0; ; yyj2216++ {
|
|
if yyhl2216 {
|
|
if yyj2216 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2216Slc = r.DecodeBytes(yys2216Slc, true, true)
|
|
yys2216 := string(yys2216Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2216 {
|
|
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 {
|
|
yyv2219 := &x.ObjectMeta
|
|
yyv2219.CodecDecodeSelf(d)
|
|
}
|
|
case "status":
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = PodStatus{}
|
|
} else {
|
|
yyv2220 := &x.Status
|
|
yyv2220.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2216)
|
|
} // end switch yys2216
|
|
} // end for yyj2216
|
|
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 yyj2221 int
|
|
var yyb2221 bool
|
|
var yyhl2221 bool = l >= 0
|
|
yyj2221++
|
|
if yyhl2221 {
|
|
yyb2221 = yyj2221 > l
|
|
} else {
|
|
yyb2221 = r.CheckBreak()
|
|
}
|
|
if yyb2221 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2221++
|
|
if yyhl2221 {
|
|
yyb2221 = yyj2221 > l
|
|
} else {
|
|
yyb2221 = r.CheckBreak()
|
|
}
|
|
if yyb2221 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2221++
|
|
if yyhl2221 {
|
|
yyb2221 = yyj2221 > l
|
|
} else {
|
|
yyb2221 = r.CheckBreak()
|
|
}
|
|
if yyb2221 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv2224 := &x.ObjectMeta
|
|
yyv2224.CodecDecodeSelf(d)
|
|
}
|
|
yyj2221++
|
|
if yyhl2221 {
|
|
yyb2221 = yyj2221 > l
|
|
} else {
|
|
yyb2221 = r.CheckBreak()
|
|
}
|
|
if yyb2221 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = PodStatus{}
|
|
} else {
|
|
yyv2225 := &x.Status
|
|
yyv2225.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj2221++
|
|
if yyhl2221 {
|
|
yyb2221 = yyj2221 > l
|
|
} else {
|
|
yyb2221 = r.CheckBreak()
|
|
}
|
|
if yyb2221 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2221-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 {
|
|
yym2226 := z.EncBinary()
|
|
_ = yym2226
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2227 := !z.EncBinary()
|
|
yy2arr2227 := z.EncBasicHandle().StructToArray
|
|
var yyq2227 [5]bool
|
|
_, _, _ = yysep2227, yyq2227, yy2arr2227
|
|
const yyr2227 bool = false
|
|
yyq2227[0] = x.Kind != ""
|
|
yyq2227[1] = x.APIVersion != ""
|
|
yyq2227[2] = true
|
|
yyq2227[3] = true
|
|
yyq2227[4] = true
|
|
var yynn2227 int
|
|
if yyr2227 || yy2arr2227 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn2227 = 0
|
|
for _, b := range yyq2227 {
|
|
if b {
|
|
yynn2227++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2227)
|
|
yynn2227 = 0
|
|
}
|
|
if yyr2227 || yy2arr2227 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2227[0] {
|
|
yym2229 := z.EncBinary()
|
|
_ = yym2229
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2227[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2230 := z.EncBinary()
|
|
_ = yym2230
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2227 || yy2arr2227 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2227[1] {
|
|
yym2232 := z.EncBinary()
|
|
_ = yym2232
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2227[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2233 := z.EncBinary()
|
|
_ = yym2233
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2227 || yy2arr2227 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2227[2] {
|
|
yy2235 := &x.ObjectMeta
|
|
yy2235.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2227[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2236 := &x.ObjectMeta
|
|
yy2236.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2227 || yy2arr2227 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2227[3] {
|
|
yy2238 := &x.Spec
|
|
yy2238.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2227[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("spec"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2239 := &x.Spec
|
|
yy2239.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2227 || yy2arr2227 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2227[4] {
|
|
yy2241 := &x.Status
|
|
yy2241.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2227[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("status"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2242 := &x.Status
|
|
yy2242.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2227 || yy2arr2227 {
|
|
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
|
|
yym2243 := z.DecBinary()
|
|
_ = yym2243
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2244 := r.ContainerType()
|
|
if yyct2244 == codecSelferValueTypeMap1234 {
|
|
yyl2244 := r.ReadMapStart()
|
|
if yyl2244 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2244, d)
|
|
}
|
|
} else if yyct2244 == codecSelferValueTypeArray1234 {
|
|
yyl2244 := r.ReadArrayStart()
|
|
if yyl2244 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2244, 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 yys2245Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2245Slc
|
|
var yyhl2245 bool = l >= 0
|
|
for yyj2245 := 0; ; yyj2245++ {
|
|
if yyhl2245 {
|
|
if yyj2245 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2245Slc = r.DecodeBytes(yys2245Slc, true, true)
|
|
yys2245 := string(yys2245Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2245 {
|
|
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 {
|
|
yyv2248 := &x.ObjectMeta
|
|
yyv2248.CodecDecodeSelf(d)
|
|
}
|
|
case "spec":
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = PodSpec{}
|
|
} else {
|
|
yyv2249 := &x.Spec
|
|
yyv2249.CodecDecodeSelf(d)
|
|
}
|
|
case "status":
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = PodStatus{}
|
|
} else {
|
|
yyv2250 := &x.Status
|
|
yyv2250.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2245)
|
|
} // end switch yys2245
|
|
} // end for yyj2245
|
|
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 yyj2251 int
|
|
var yyb2251 bool
|
|
var yyhl2251 bool = l >= 0
|
|
yyj2251++
|
|
if yyhl2251 {
|
|
yyb2251 = yyj2251 > l
|
|
} else {
|
|
yyb2251 = r.CheckBreak()
|
|
}
|
|
if yyb2251 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2251++
|
|
if yyhl2251 {
|
|
yyb2251 = yyj2251 > l
|
|
} else {
|
|
yyb2251 = r.CheckBreak()
|
|
}
|
|
if yyb2251 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2251++
|
|
if yyhl2251 {
|
|
yyb2251 = yyj2251 > l
|
|
} else {
|
|
yyb2251 = r.CheckBreak()
|
|
}
|
|
if yyb2251 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv2254 := &x.ObjectMeta
|
|
yyv2254.CodecDecodeSelf(d)
|
|
}
|
|
yyj2251++
|
|
if yyhl2251 {
|
|
yyb2251 = yyj2251 > l
|
|
} else {
|
|
yyb2251 = r.CheckBreak()
|
|
}
|
|
if yyb2251 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = PodSpec{}
|
|
} else {
|
|
yyv2255 := &x.Spec
|
|
yyv2255.CodecDecodeSelf(d)
|
|
}
|
|
yyj2251++
|
|
if yyhl2251 {
|
|
yyb2251 = yyj2251 > l
|
|
} else {
|
|
yyb2251 = r.CheckBreak()
|
|
}
|
|
if yyb2251 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = PodStatus{}
|
|
} else {
|
|
yyv2256 := &x.Status
|
|
yyv2256.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj2251++
|
|
if yyhl2251 {
|
|
yyb2251 = yyj2251 > l
|
|
} else {
|
|
yyb2251 = r.CheckBreak()
|
|
}
|
|
if yyb2251 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2251-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 {
|
|
yym2257 := z.EncBinary()
|
|
_ = yym2257
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2258 := !z.EncBinary()
|
|
yy2arr2258 := z.EncBasicHandle().StructToArray
|
|
var yyq2258 [2]bool
|
|
_, _, _ = yysep2258, yyq2258, yy2arr2258
|
|
const yyr2258 bool = false
|
|
yyq2258[0] = true
|
|
yyq2258[1] = true
|
|
var yynn2258 int
|
|
if yyr2258 || yy2arr2258 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn2258 = 0
|
|
for _, b := range yyq2258 {
|
|
if b {
|
|
yynn2258++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2258)
|
|
yynn2258 = 0
|
|
}
|
|
if yyr2258 || yy2arr2258 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2258[0] {
|
|
yy2260 := &x.ObjectMeta
|
|
yy2260.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2258[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2261 := &x.ObjectMeta
|
|
yy2261.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2258 || yy2arr2258 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2258[1] {
|
|
yy2263 := &x.Spec
|
|
yy2263.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2258[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("spec"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2264 := &x.Spec
|
|
yy2264.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2258 || yy2arr2258 {
|
|
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
|
|
yym2265 := z.DecBinary()
|
|
_ = yym2265
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2266 := r.ContainerType()
|
|
if yyct2266 == codecSelferValueTypeMap1234 {
|
|
yyl2266 := r.ReadMapStart()
|
|
if yyl2266 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2266, d)
|
|
}
|
|
} else if yyct2266 == codecSelferValueTypeArray1234 {
|
|
yyl2266 := r.ReadArrayStart()
|
|
if yyl2266 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2266, 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 yys2267Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2267Slc
|
|
var yyhl2267 bool = l >= 0
|
|
for yyj2267 := 0; ; yyj2267++ {
|
|
if yyhl2267 {
|
|
if yyj2267 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2267Slc = r.DecodeBytes(yys2267Slc, true, true)
|
|
yys2267 := string(yys2267Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2267 {
|
|
case "metadata":
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv2268 := &x.ObjectMeta
|
|
yyv2268.CodecDecodeSelf(d)
|
|
}
|
|
case "spec":
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = PodSpec{}
|
|
} else {
|
|
yyv2269 := &x.Spec
|
|
yyv2269.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2267)
|
|
} // end switch yys2267
|
|
} // end for yyj2267
|
|
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 yyj2270 int
|
|
var yyb2270 bool
|
|
var yyhl2270 bool = l >= 0
|
|
yyj2270++
|
|
if yyhl2270 {
|
|
yyb2270 = yyj2270 > l
|
|
} else {
|
|
yyb2270 = r.CheckBreak()
|
|
}
|
|
if yyb2270 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv2271 := &x.ObjectMeta
|
|
yyv2271.CodecDecodeSelf(d)
|
|
}
|
|
yyj2270++
|
|
if yyhl2270 {
|
|
yyb2270 = yyj2270 > l
|
|
} else {
|
|
yyb2270 = r.CheckBreak()
|
|
}
|
|
if yyb2270 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = PodSpec{}
|
|
} else {
|
|
yyv2272 := &x.Spec
|
|
yyv2272.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj2270++
|
|
if yyhl2270 {
|
|
yyb2270 = yyj2270 > l
|
|
} else {
|
|
yyb2270 = r.CheckBreak()
|
|
}
|
|
if yyb2270 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2270-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 {
|
|
yym2273 := z.EncBinary()
|
|
_ = yym2273
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2274 := !z.EncBinary()
|
|
yy2arr2274 := z.EncBasicHandle().StructToArray
|
|
var yyq2274 [4]bool
|
|
_, _, _ = yysep2274, yyq2274, yy2arr2274
|
|
const yyr2274 bool = false
|
|
yyq2274[0] = x.Kind != ""
|
|
yyq2274[1] = x.APIVersion != ""
|
|
yyq2274[2] = true
|
|
yyq2274[3] = true
|
|
var yynn2274 int
|
|
if yyr2274 || yy2arr2274 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn2274 = 0
|
|
for _, b := range yyq2274 {
|
|
if b {
|
|
yynn2274++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2274)
|
|
yynn2274 = 0
|
|
}
|
|
if yyr2274 || yy2arr2274 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2274[0] {
|
|
yym2276 := z.EncBinary()
|
|
_ = yym2276
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2274[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2277 := z.EncBinary()
|
|
_ = yym2277
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2274 || yy2arr2274 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2274[1] {
|
|
yym2279 := z.EncBinary()
|
|
_ = yym2279
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2274[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2280 := z.EncBinary()
|
|
_ = yym2280
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2274 || yy2arr2274 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2274[2] {
|
|
yy2282 := &x.ObjectMeta
|
|
yy2282.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2274[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2283 := &x.ObjectMeta
|
|
yy2283.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2274 || yy2arr2274 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2274[3] {
|
|
yy2285 := &x.Template
|
|
yy2285.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2274[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("template"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2286 := &x.Template
|
|
yy2286.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2274 || yy2arr2274 {
|
|
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
|
|
yym2287 := z.DecBinary()
|
|
_ = yym2287
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2288 := r.ContainerType()
|
|
if yyct2288 == codecSelferValueTypeMap1234 {
|
|
yyl2288 := r.ReadMapStart()
|
|
if yyl2288 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2288, d)
|
|
}
|
|
} else if yyct2288 == codecSelferValueTypeArray1234 {
|
|
yyl2288 := r.ReadArrayStart()
|
|
if yyl2288 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2288, 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 yys2289Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2289Slc
|
|
var yyhl2289 bool = l >= 0
|
|
for yyj2289 := 0; ; yyj2289++ {
|
|
if yyhl2289 {
|
|
if yyj2289 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2289Slc = r.DecodeBytes(yys2289Slc, true, true)
|
|
yys2289 := string(yys2289Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2289 {
|
|
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 {
|
|
yyv2292 := &x.ObjectMeta
|
|
yyv2292.CodecDecodeSelf(d)
|
|
}
|
|
case "template":
|
|
if r.TryDecodeAsNil() {
|
|
x.Template = PodTemplateSpec{}
|
|
} else {
|
|
yyv2293 := &x.Template
|
|
yyv2293.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2289)
|
|
} // end switch yys2289
|
|
} // end for yyj2289
|
|
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 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.Kind = ""
|
|
} else {
|
|
x.Kind = 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.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = 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.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv2297 := &x.ObjectMeta
|
|
yyv2297.CodecDecodeSelf(d)
|
|
}
|
|
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.Template = PodTemplateSpec{}
|
|
} else {
|
|
yyv2298 := &x.Template
|
|
yyv2298.CodecDecodeSelf(d)
|
|
}
|
|
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 *PodTemplateList) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2299 := z.EncBinary()
|
|
_ = yym2299
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2300 := !z.EncBinary()
|
|
yy2arr2300 := z.EncBasicHandle().StructToArray
|
|
var yyq2300 [4]bool
|
|
_, _, _ = yysep2300, yyq2300, yy2arr2300
|
|
const yyr2300 bool = false
|
|
yyq2300[0] = x.Kind != ""
|
|
yyq2300[1] = x.APIVersion != ""
|
|
yyq2300[2] = true
|
|
var yynn2300 int
|
|
if yyr2300 || yy2arr2300 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn2300 = 1
|
|
for _, b := range yyq2300 {
|
|
if b {
|
|
yynn2300++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2300)
|
|
yynn2300 = 0
|
|
}
|
|
if yyr2300 || yy2arr2300 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2300[0] {
|
|
yym2302 := z.EncBinary()
|
|
_ = yym2302
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2300[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2303 := z.EncBinary()
|
|
_ = yym2303
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2300 || yy2arr2300 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2300[1] {
|
|
yym2305 := z.EncBinary()
|
|
_ = yym2305
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2300[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2306 := z.EncBinary()
|
|
_ = yym2306
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2300 || yy2arr2300 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2300[2] {
|
|
yy2308 := &x.ListMeta
|
|
yym2309 := z.EncBinary()
|
|
_ = yym2309
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy2308) {
|
|
} else {
|
|
z.EncFallback(yy2308)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2300[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2310 := &x.ListMeta
|
|
yym2311 := z.EncBinary()
|
|
_ = yym2311
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy2310) {
|
|
} else {
|
|
z.EncFallback(yy2310)
|
|
}
|
|
}
|
|
}
|
|
if yyr2300 || yy2arr2300 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2313 := z.EncBinary()
|
|
_ = yym2313
|
|
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 {
|
|
yym2314 := z.EncBinary()
|
|
_ = yym2314
|
|
if false {
|
|
} else {
|
|
h.encSlicePodTemplate(([]PodTemplate)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr2300 || yy2arr2300 {
|
|
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
|
|
yym2315 := z.DecBinary()
|
|
_ = yym2315
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2316 := r.ContainerType()
|
|
if yyct2316 == codecSelferValueTypeMap1234 {
|
|
yyl2316 := r.ReadMapStart()
|
|
if yyl2316 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2316, d)
|
|
}
|
|
} else if yyct2316 == codecSelferValueTypeArray1234 {
|
|
yyl2316 := r.ReadArrayStart()
|
|
if yyl2316 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2316, 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 yys2317Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2317Slc
|
|
var yyhl2317 bool = l >= 0
|
|
for yyj2317 := 0; ; yyj2317++ {
|
|
if yyhl2317 {
|
|
if yyj2317 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2317Slc = r.DecodeBytes(yys2317Slc, true, true)
|
|
yys2317 := string(yys2317Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2317 {
|
|
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 {
|
|
yyv2320 := &x.ListMeta
|
|
yym2321 := z.DecBinary()
|
|
_ = yym2321
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2320) {
|
|
} else {
|
|
z.DecFallback(yyv2320, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv2322 := &x.Items
|
|
yym2323 := z.DecBinary()
|
|
_ = yym2323
|
|
if false {
|
|
} else {
|
|
h.decSlicePodTemplate((*[]PodTemplate)(yyv2322), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2317)
|
|
} // end switch yys2317
|
|
} // end for yyj2317
|
|
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 yyj2324 int
|
|
var yyb2324 bool
|
|
var yyhl2324 bool = l >= 0
|
|
yyj2324++
|
|
if yyhl2324 {
|
|
yyb2324 = yyj2324 > l
|
|
} else {
|
|
yyb2324 = r.CheckBreak()
|
|
}
|
|
if yyb2324 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2324++
|
|
if yyhl2324 {
|
|
yyb2324 = yyj2324 > l
|
|
} else {
|
|
yyb2324 = r.CheckBreak()
|
|
}
|
|
if yyb2324 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2324++
|
|
if yyhl2324 {
|
|
yyb2324 = yyj2324 > l
|
|
} else {
|
|
yyb2324 = r.CheckBreak()
|
|
}
|
|
if yyb2324 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv2327 := &x.ListMeta
|
|
yym2328 := z.DecBinary()
|
|
_ = yym2328
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2327) {
|
|
} else {
|
|
z.DecFallback(yyv2327, false)
|
|
}
|
|
}
|
|
yyj2324++
|
|
if yyhl2324 {
|
|
yyb2324 = yyj2324 > l
|
|
} else {
|
|
yyb2324 = r.CheckBreak()
|
|
}
|
|
if yyb2324 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv2329 := &x.Items
|
|
yym2330 := z.DecBinary()
|
|
_ = yym2330
|
|
if false {
|
|
} else {
|
|
h.decSlicePodTemplate((*[]PodTemplate)(yyv2329), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj2324++
|
|
if yyhl2324 {
|
|
yyb2324 = yyj2324 > l
|
|
} else {
|
|
yyb2324 = r.CheckBreak()
|
|
}
|
|
if yyb2324 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2324-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 {
|
|
yym2331 := z.EncBinary()
|
|
_ = yym2331
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2332 := !z.EncBinary()
|
|
yy2arr2332 := z.EncBasicHandle().StructToArray
|
|
var yyq2332 [3]bool
|
|
_, _, _ = yysep2332, yyq2332, yy2arr2332
|
|
const yyr2332 bool = false
|
|
yyq2332[2] = x.Template != nil
|
|
var yynn2332 int
|
|
if yyr2332 || yy2arr2332 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn2332 = 2
|
|
for _, b := range yyq2332 {
|
|
if b {
|
|
yynn2332++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2332)
|
|
yynn2332 = 0
|
|
}
|
|
if yyr2332 || yy2arr2332 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2334 := z.EncBinary()
|
|
_ = yym2334
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Replicas))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("replicas"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2335 := z.EncBinary()
|
|
_ = yym2335
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Replicas))
|
|
}
|
|
}
|
|
if yyr2332 || yy2arr2332 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Selector == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2337 := z.EncBinary()
|
|
_ = yym2337
|
|
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 {
|
|
yym2338 := z.EncBinary()
|
|
_ = yym2338
|
|
if false {
|
|
} else {
|
|
z.F.EncMapStringStringV(x.Selector, false, e)
|
|
}
|
|
}
|
|
}
|
|
if yyr2332 || yy2arr2332 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2332[2] {
|
|
if x.Template == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Template.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2332[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 yyr2332 || yy2arr2332 {
|
|
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
|
|
yym2340 := z.DecBinary()
|
|
_ = yym2340
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2341 := r.ContainerType()
|
|
if yyct2341 == codecSelferValueTypeMap1234 {
|
|
yyl2341 := r.ReadMapStart()
|
|
if yyl2341 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2341, d)
|
|
}
|
|
} else if yyct2341 == codecSelferValueTypeArray1234 {
|
|
yyl2341 := r.ReadArrayStart()
|
|
if yyl2341 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2341, 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 yys2342Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2342Slc
|
|
var yyhl2342 bool = l >= 0
|
|
for yyj2342 := 0; ; yyj2342++ {
|
|
if yyhl2342 {
|
|
if yyj2342 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2342Slc = r.DecodeBytes(yys2342Slc, true, true)
|
|
yys2342 := string(yys2342Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2342 {
|
|
case "replicas":
|
|
if r.TryDecodeAsNil() {
|
|
x.Replicas = 0
|
|
} else {
|
|
x.Replicas = int32(r.DecodeInt(32))
|
|
}
|
|
case "selector":
|
|
if r.TryDecodeAsNil() {
|
|
x.Selector = nil
|
|
} else {
|
|
yyv2344 := &x.Selector
|
|
yym2345 := z.DecBinary()
|
|
_ = yym2345
|
|
if false {
|
|
} else {
|
|
z.F.DecMapStringStringX(yyv2344, 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, yys2342)
|
|
} // end switch yys2342
|
|
} // end for yyj2342
|
|
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 yyj2347 int
|
|
var yyb2347 bool
|
|
var yyhl2347 bool = l >= 0
|
|
yyj2347++
|
|
if yyhl2347 {
|
|
yyb2347 = yyj2347 > l
|
|
} else {
|
|
yyb2347 = r.CheckBreak()
|
|
}
|
|
if yyb2347 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Replicas = 0
|
|
} else {
|
|
x.Replicas = int32(r.DecodeInt(32))
|
|
}
|
|
yyj2347++
|
|
if yyhl2347 {
|
|
yyb2347 = yyj2347 > l
|
|
} else {
|
|
yyb2347 = r.CheckBreak()
|
|
}
|
|
if yyb2347 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Selector = nil
|
|
} else {
|
|
yyv2349 := &x.Selector
|
|
yym2350 := z.DecBinary()
|
|
_ = yym2350
|
|
if false {
|
|
} else {
|
|
z.F.DecMapStringStringX(yyv2349, false, d)
|
|
}
|
|
}
|
|
yyj2347++
|
|
if yyhl2347 {
|
|
yyb2347 = yyj2347 > l
|
|
} else {
|
|
yyb2347 = r.CheckBreak()
|
|
}
|
|
if yyb2347 {
|
|
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 {
|
|
yyj2347++
|
|
if yyhl2347 {
|
|
yyb2347 = yyj2347 > l
|
|
} else {
|
|
yyb2347 = r.CheckBreak()
|
|
}
|
|
if yyb2347 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2347-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 {
|
|
yym2352 := z.EncBinary()
|
|
_ = yym2352
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2353 := !z.EncBinary()
|
|
yy2arr2353 := z.EncBasicHandle().StructToArray
|
|
var yyq2353 [3]bool
|
|
_, _, _ = yysep2353, yyq2353, yy2arr2353
|
|
const yyr2353 bool = false
|
|
yyq2353[1] = x.FullyLabeledReplicas != 0
|
|
yyq2353[2] = x.ObservedGeneration != 0
|
|
var yynn2353 int
|
|
if yyr2353 || yy2arr2353 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn2353 = 1
|
|
for _, b := range yyq2353 {
|
|
if b {
|
|
yynn2353++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2353)
|
|
yynn2353 = 0
|
|
}
|
|
if yyr2353 || yy2arr2353 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2355 := z.EncBinary()
|
|
_ = yym2355
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Replicas))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("replicas"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2356 := z.EncBinary()
|
|
_ = yym2356
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Replicas))
|
|
}
|
|
}
|
|
if yyr2353 || yy2arr2353 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2353[1] {
|
|
yym2358 := z.EncBinary()
|
|
_ = yym2358
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.FullyLabeledReplicas))
|
|
}
|
|
} else {
|
|
r.EncodeInt(0)
|
|
}
|
|
} else {
|
|
if yyq2353[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("fullyLabeledReplicas"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2359 := z.EncBinary()
|
|
_ = yym2359
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.FullyLabeledReplicas))
|
|
}
|
|
}
|
|
}
|
|
if yyr2353 || yy2arr2353 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2353[2] {
|
|
yym2361 := z.EncBinary()
|
|
_ = yym2361
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.ObservedGeneration))
|
|
}
|
|
} else {
|
|
r.EncodeInt(0)
|
|
}
|
|
} else {
|
|
if yyq2353[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("observedGeneration"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2362 := z.EncBinary()
|
|
_ = yym2362
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.ObservedGeneration))
|
|
}
|
|
}
|
|
}
|
|
if yyr2353 || yy2arr2353 {
|
|
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
|
|
yym2363 := z.DecBinary()
|
|
_ = yym2363
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2364 := r.ContainerType()
|
|
if yyct2364 == codecSelferValueTypeMap1234 {
|
|
yyl2364 := r.ReadMapStart()
|
|
if yyl2364 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2364, d)
|
|
}
|
|
} else if yyct2364 == codecSelferValueTypeArray1234 {
|
|
yyl2364 := r.ReadArrayStart()
|
|
if yyl2364 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2364, 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 yys2365Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2365Slc
|
|
var yyhl2365 bool = l >= 0
|
|
for yyj2365 := 0; ; yyj2365++ {
|
|
if yyhl2365 {
|
|
if yyj2365 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2365Slc = r.DecodeBytes(yys2365Slc, true, true)
|
|
yys2365 := string(yys2365Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2365 {
|
|
case "replicas":
|
|
if r.TryDecodeAsNil() {
|
|
x.Replicas = 0
|
|
} else {
|
|
x.Replicas = int32(r.DecodeInt(32))
|
|
}
|
|
case "fullyLabeledReplicas":
|
|
if r.TryDecodeAsNil() {
|
|
x.FullyLabeledReplicas = 0
|
|
} else {
|
|
x.FullyLabeledReplicas = int32(r.DecodeInt(32))
|
|
}
|
|
case "observedGeneration":
|
|
if r.TryDecodeAsNil() {
|
|
x.ObservedGeneration = 0
|
|
} else {
|
|
x.ObservedGeneration = int64(r.DecodeInt(64))
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2365)
|
|
} // end switch yys2365
|
|
} // end for yyj2365
|
|
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 yyj2369 int
|
|
var yyb2369 bool
|
|
var yyhl2369 bool = l >= 0
|
|
yyj2369++
|
|
if yyhl2369 {
|
|
yyb2369 = yyj2369 > l
|
|
} else {
|
|
yyb2369 = r.CheckBreak()
|
|
}
|
|
if yyb2369 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Replicas = 0
|
|
} else {
|
|
x.Replicas = int32(r.DecodeInt(32))
|
|
}
|
|
yyj2369++
|
|
if yyhl2369 {
|
|
yyb2369 = yyj2369 > l
|
|
} else {
|
|
yyb2369 = r.CheckBreak()
|
|
}
|
|
if yyb2369 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.FullyLabeledReplicas = 0
|
|
} else {
|
|
x.FullyLabeledReplicas = int32(r.DecodeInt(32))
|
|
}
|
|
yyj2369++
|
|
if yyhl2369 {
|
|
yyb2369 = yyj2369 > l
|
|
} else {
|
|
yyb2369 = r.CheckBreak()
|
|
}
|
|
if yyb2369 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObservedGeneration = 0
|
|
} else {
|
|
x.ObservedGeneration = int64(r.DecodeInt(64))
|
|
}
|
|
for {
|
|
yyj2369++
|
|
if yyhl2369 {
|
|
yyb2369 = yyj2369 > l
|
|
} else {
|
|
yyb2369 = r.CheckBreak()
|
|
}
|
|
if yyb2369 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2369-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 {
|
|
yym2373 := z.EncBinary()
|
|
_ = yym2373
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2374 := !z.EncBinary()
|
|
yy2arr2374 := z.EncBasicHandle().StructToArray
|
|
var yyq2374 [5]bool
|
|
_, _, _ = yysep2374, yyq2374, yy2arr2374
|
|
const yyr2374 bool = false
|
|
yyq2374[0] = x.Kind != ""
|
|
yyq2374[1] = x.APIVersion != ""
|
|
yyq2374[2] = true
|
|
yyq2374[3] = true
|
|
yyq2374[4] = true
|
|
var yynn2374 int
|
|
if yyr2374 || yy2arr2374 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn2374 = 0
|
|
for _, b := range yyq2374 {
|
|
if b {
|
|
yynn2374++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2374)
|
|
yynn2374 = 0
|
|
}
|
|
if yyr2374 || yy2arr2374 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2374[0] {
|
|
yym2376 := z.EncBinary()
|
|
_ = yym2376
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2374[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2377 := z.EncBinary()
|
|
_ = yym2377
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2374 || yy2arr2374 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2374[1] {
|
|
yym2379 := z.EncBinary()
|
|
_ = yym2379
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2374[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2380 := z.EncBinary()
|
|
_ = yym2380
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2374 || yy2arr2374 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2374[2] {
|
|
yy2382 := &x.ObjectMeta
|
|
yy2382.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2374[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2383 := &x.ObjectMeta
|
|
yy2383.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2374 || yy2arr2374 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2374[3] {
|
|
yy2385 := &x.Spec
|
|
yy2385.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2374[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("spec"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2386 := &x.Spec
|
|
yy2386.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2374 || yy2arr2374 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2374[4] {
|
|
yy2388 := &x.Status
|
|
yy2388.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2374[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("status"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2389 := &x.Status
|
|
yy2389.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2374 || yy2arr2374 {
|
|
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
|
|
yym2390 := z.DecBinary()
|
|
_ = yym2390
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2391 := r.ContainerType()
|
|
if yyct2391 == codecSelferValueTypeMap1234 {
|
|
yyl2391 := r.ReadMapStart()
|
|
if yyl2391 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2391, d)
|
|
}
|
|
} else if yyct2391 == codecSelferValueTypeArray1234 {
|
|
yyl2391 := r.ReadArrayStart()
|
|
if yyl2391 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2391, 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 yys2392Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2392Slc
|
|
var yyhl2392 bool = l >= 0
|
|
for yyj2392 := 0; ; yyj2392++ {
|
|
if yyhl2392 {
|
|
if yyj2392 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2392Slc = r.DecodeBytes(yys2392Slc, true, true)
|
|
yys2392 := string(yys2392Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2392 {
|
|
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 {
|
|
yyv2395 := &x.ObjectMeta
|
|
yyv2395.CodecDecodeSelf(d)
|
|
}
|
|
case "spec":
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = ReplicationControllerSpec{}
|
|
} else {
|
|
yyv2396 := &x.Spec
|
|
yyv2396.CodecDecodeSelf(d)
|
|
}
|
|
case "status":
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = ReplicationControllerStatus{}
|
|
} else {
|
|
yyv2397 := &x.Status
|
|
yyv2397.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2392)
|
|
} // end switch yys2392
|
|
} // end for yyj2392
|
|
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 yyj2398 int
|
|
var yyb2398 bool
|
|
var yyhl2398 bool = l >= 0
|
|
yyj2398++
|
|
if yyhl2398 {
|
|
yyb2398 = yyj2398 > l
|
|
} else {
|
|
yyb2398 = r.CheckBreak()
|
|
}
|
|
if yyb2398 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2398++
|
|
if yyhl2398 {
|
|
yyb2398 = yyj2398 > l
|
|
} else {
|
|
yyb2398 = r.CheckBreak()
|
|
}
|
|
if yyb2398 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2398++
|
|
if yyhl2398 {
|
|
yyb2398 = yyj2398 > l
|
|
} else {
|
|
yyb2398 = r.CheckBreak()
|
|
}
|
|
if yyb2398 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv2401 := &x.ObjectMeta
|
|
yyv2401.CodecDecodeSelf(d)
|
|
}
|
|
yyj2398++
|
|
if yyhl2398 {
|
|
yyb2398 = yyj2398 > l
|
|
} else {
|
|
yyb2398 = r.CheckBreak()
|
|
}
|
|
if yyb2398 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = ReplicationControllerSpec{}
|
|
} else {
|
|
yyv2402 := &x.Spec
|
|
yyv2402.CodecDecodeSelf(d)
|
|
}
|
|
yyj2398++
|
|
if yyhl2398 {
|
|
yyb2398 = yyj2398 > l
|
|
} else {
|
|
yyb2398 = r.CheckBreak()
|
|
}
|
|
if yyb2398 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = ReplicationControllerStatus{}
|
|
} else {
|
|
yyv2403 := &x.Status
|
|
yyv2403.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj2398++
|
|
if yyhl2398 {
|
|
yyb2398 = yyj2398 > l
|
|
} else {
|
|
yyb2398 = r.CheckBreak()
|
|
}
|
|
if yyb2398 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2398-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 {
|
|
yym2404 := z.EncBinary()
|
|
_ = yym2404
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2405 := !z.EncBinary()
|
|
yy2arr2405 := z.EncBasicHandle().StructToArray
|
|
var yyq2405 [4]bool
|
|
_, _, _ = yysep2405, yyq2405, yy2arr2405
|
|
const yyr2405 bool = false
|
|
yyq2405[0] = x.Kind != ""
|
|
yyq2405[1] = x.APIVersion != ""
|
|
yyq2405[2] = true
|
|
var yynn2405 int
|
|
if yyr2405 || yy2arr2405 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn2405 = 1
|
|
for _, b := range yyq2405 {
|
|
if b {
|
|
yynn2405++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2405)
|
|
yynn2405 = 0
|
|
}
|
|
if yyr2405 || yy2arr2405 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2405[0] {
|
|
yym2407 := z.EncBinary()
|
|
_ = yym2407
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2405[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2408 := z.EncBinary()
|
|
_ = yym2408
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2405 || yy2arr2405 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2405[1] {
|
|
yym2410 := z.EncBinary()
|
|
_ = yym2410
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2405[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2411 := z.EncBinary()
|
|
_ = yym2411
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2405 || yy2arr2405 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2405[2] {
|
|
yy2413 := &x.ListMeta
|
|
yym2414 := z.EncBinary()
|
|
_ = yym2414
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy2413) {
|
|
} else {
|
|
z.EncFallback(yy2413)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2405[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2415 := &x.ListMeta
|
|
yym2416 := z.EncBinary()
|
|
_ = yym2416
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy2415) {
|
|
} else {
|
|
z.EncFallback(yy2415)
|
|
}
|
|
}
|
|
}
|
|
if yyr2405 || yy2arr2405 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2418 := z.EncBinary()
|
|
_ = yym2418
|
|
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 {
|
|
yym2419 := z.EncBinary()
|
|
_ = yym2419
|
|
if false {
|
|
} else {
|
|
h.encSliceReplicationController(([]ReplicationController)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr2405 || yy2arr2405 {
|
|
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
|
|
yym2420 := z.DecBinary()
|
|
_ = yym2420
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2421 := r.ContainerType()
|
|
if yyct2421 == codecSelferValueTypeMap1234 {
|
|
yyl2421 := r.ReadMapStart()
|
|
if yyl2421 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2421, d)
|
|
}
|
|
} else if yyct2421 == codecSelferValueTypeArray1234 {
|
|
yyl2421 := r.ReadArrayStart()
|
|
if yyl2421 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2421, 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 yys2422Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2422Slc
|
|
var yyhl2422 bool = l >= 0
|
|
for yyj2422 := 0; ; yyj2422++ {
|
|
if yyhl2422 {
|
|
if yyj2422 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2422Slc = r.DecodeBytes(yys2422Slc, true, true)
|
|
yys2422 := string(yys2422Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2422 {
|
|
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 {
|
|
yyv2425 := &x.ListMeta
|
|
yym2426 := z.DecBinary()
|
|
_ = yym2426
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2425) {
|
|
} else {
|
|
z.DecFallback(yyv2425, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv2427 := &x.Items
|
|
yym2428 := z.DecBinary()
|
|
_ = yym2428
|
|
if false {
|
|
} else {
|
|
h.decSliceReplicationController((*[]ReplicationController)(yyv2427), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2422)
|
|
} // end switch yys2422
|
|
} // end for yyj2422
|
|
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 yyj2429 int
|
|
var yyb2429 bool
|
|
var yyhl2429 bool = l >= 0
|
|
yyj2429++
|
|
if yyhl2429 {
|
|
yyb2429 = yyj2429 > l
|
|
} else {
|
|
yyb2429 = r.CheckBreak()
|
|
}
|
|
if yyb2429 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2429++
|
|
if yyhl2429 {
|
|
yyb2429 = yyj2429 > l
|
|
} else {
|
|
yyb2429 = r.CheckBreak()
|
|
}
|
|
if yyb2429 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2429++
|
|
if yyhl2429 {
|
|
yyb2429 = yyj2429 > l
|
|
} else {
|
|
yyb2429 = r.CheckBreak()
|
|
}
|
|
if yyb2429 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv2432 := &x.ListMeta
|
|
yym2433 := z.DecBinary()
|
|
_ = yym2433
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2432) {
|
|
} else {
|
|
z.DecFallback(yyv2432, false)
|
|
}
|
|
}
|
|
yyj2429++
|
|
if yyhl2429 {
|
|
yyb2429 = yyj2429 > l
|
|
} else {
|
|
yyb2429 = r.CheckBreak()
|
|
}
|
|
if yyb2429 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv2434 := &x.Items
|
|
yym2435 := z.DecBinary()
|
|
_ = yym2435
|
|
if false {
|
|
} else {
|
|
h.decSliceReplicationController((*[]ReplicationController)(yyv2434), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj2429++
|
|
if yyhl2429 {
|
|
yyb2429 = yyj2429 > l
|
|
} else {
|
|
yyb2429 = r.CheckBreak()
|
|
}
|
|
if yyb2429 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2429-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 {
|
|
yym2436 := z.EncBinary()
|
|
_ = yym2436
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2437 := !z.EncBinary()
|
|
yy2arr2437 := z.EncBasicHandle().StructToArray
|
|
var yyq2437 [4]bool
|
|
_, _, _ = yysep2437, yyq2437, yy2arr2437
|
|
const yyr2437 bool = false
|
|
yyq2437[0] = x.Kind != ""
|
|
yyq2437[1] = x.APIVersion != ""
|
|
yyq2437[2] = true
|
|
var yynn2437 int
|
|
if yyr2437 || yy2arr2437 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn2437 = 1
|
|
for _, b := range yyq2437 {
|
|
if b {
|
|
yynn2437++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2437)
|
|
yynn2437 = 0
|
|
}
|
|
if yyr2437 || yy2arr2437 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2437[0] {
|
|
yym2439 := z.EncBinary()
|
|
_ = yym2439
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2437[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2440 := z.EncBinary()
|
|
_ = yym2440
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2437 || yy2arr2437 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2437[1] {
|
|
yym2442 := z.EncBinary()
|
|
_ = yym2442
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2437[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2443 := z.EncBinary()
|
|
_ = yym2443
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2437 || yy2arr2437 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2437[2] {
|
|
yy2445 := &x.ListMeta
|
|
yym2446 := z.EncBinary()
|
|
_ = yym2446
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy2445) {
|
|
} else {
|
|
z.EncFallback(yy2445)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2437[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2447 := &x.ListMeta
|
|
yym2448 := z.EncBinary()
|
|
_ = yym2448
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy2447) {
|
|
} else {
|
|
z.EncFallback(yy2447)
|
|
}
|
|
}
|
|
}
|
|
if yyr2437 || yy2arr2437 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2450 := z.EncBinary()
|
|
_ = yym2450
|
|
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 {
|
|
yym2451 := z.EncBinary()
|
|
_ = yym2451
|
|
if false {
|
|
} else {
|
|
h.encSliceService(([]Service)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr2437 || yy2arr2437 {
|
|
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
|
|
yym2452 := z.DecBinary()
|
|
_ = yym2452
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2453 := r.ContainerType()
|
|
if yyct2453 == codecSelferValueTypeMap1234 {
|
|
yyl2453 := r.ReadMapStart()
|
|
if yyl2453 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2453, d)
|
|
}
|
|
} else if yyct2453 == codecSelferValueTypeArray1234 {
|
|
yyl2453 := r.ReadArrayStart()
|
|
if yyl2453 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2453, 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 yys2454Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2454Slc
|
|
var yyhl2454 bool = l >= 0
|
|
for yyj2454 := 0; ; yyj2454++ {
|
|
if yyhl2454 {
|
|
if yyj2454 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2454Slc = r.DecodeBytes(yys2454Slc, true, true)
|
|
yys2454 := string(yys2454Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2454 {
|
|
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 {
|
|
yyv2457 := &x.ListMeta
|
|
yym2458 := z.DecBinary()
|
|
_ = yym2458
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2457) {
|
|
} else {
|
|
z.DecFallback(yyv2457, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv2459 := &x.Items
|
|
yym2460 := z.DecBinary()
|
|
_ = yym2460
|
|
if false {
|
|
} else {
|
|
h.decSliceService((*[]Service)(yyv2459), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2454)
|
|
} // end switch yys2454
|
|
} // end for yyj2454
|
|
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 yyj2461 int
|
|
var yyb2461 bool
|
|
var yyhl2461 bool = l >= 0
|
|
yyj2461++
|
|
if yyhl2461 {
|
|
yyb2461 = yyj2461 > l
|
|
} else {
|
|
yyb2461 = r.CheckBreak()
|
|
}
|
|
if yyb2461 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2461++
|
|
if yyhl2461 {
|
|
yyb2461 = yyj2461 > l
|
|
} else {
|
|
yyb2461 = r.CheckBreak()
|
|
}
|
|
if yyb2461 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2461++
|
|
if yyhl2461 {
|
|
yyb2461 = yyj2461 > l
|
|
} else {
|
|
yyb2461 = r.CheckBreak()
|
|
}
|
|
if yyb2461 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv2464 := &x.ListMeta
|
|
yym2465 := z.DecBinary()
|
|
_ = yym2465
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2464) {
|
|
} else {
|
|
z.DecFallback(yyv2464, false)
|
|
}
|
|
}
|
|
yyj2461++
|
|
if yyhl2461 {
|
|
yyb2461 = yyj2461 > l
|
|
} else {
|
|
yyb2461 = r.CheckBreak()
|
|
}
|
|
if yyb2461 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv2466 := &x.Items
|
|
yym2467 := z.DecBinary()
|
|
_ = yym2467
|
|
if false {
|
|
} else {
|
|
h.decSliceService((*[]Service)(yyv2466), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj2461++
|
|
if yyhl2461 {
|
|
yyb2461 = yyj2461 > l
|
|
} else {
|
|
yyb2461 = r.CheckBreak()
|
|
}
|
|
if yyb2461 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2461-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x ServiceAffinity) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym2468 := z.EncBinary()
|
|
_ = yym2468
|
|
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
|
|
yym2469 := z.DecBinary()
|
|
_ = yym2469
|
|
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
|
|
yym2470 := z.EncBinary()
|
|
_ = yym2470
|
|
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
|
|
yym2471 := z.DecBinary()
|
|
_ = yym2471
|
|
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 {
|
|
yym2472 := z.EncBinary()
|
|
_ = yym2472
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2473 := !z.EncBinary()
|
|
yy2arr2473 := z.EncBasicHandle().StructToArray
|
|
var yyq2473 [1]bool
|
|
_, _, _ = yysep2473, yyq2473, yy2arr2473
|
|
const yyr2473 bool = false
|
|
yyq2473[0] = true
|
|
var yynn2473 int
|
|
if yyr2473 || yy2arr2473 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn2473 = 0
|
|
for _, b := range yyq2473 {
|
|
if b {
|
|
yynn2473++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2473)
|
|
yynn2473 = 0
|
|
}
|
|
if yyr2473 || yy2arr2473 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2473[0] {
|
|
yy2475 := &x.LoadBalancer
|
|
yy2475.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2473[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("loadBalancer"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2476 := &x.LoadBalancer
|
|
yy2476.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2473 || yy2arr2473 {
|
|
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
|
|
yym2477 := z.DecBinary()
|
|
_ = yym2477
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2478 := r.ContainerType()
|
|
if yyct2478 == codecSelferValueTypeMap1234 {
|
|
yyl2478 := r.ReadMapStart()
|
|
if yyl2478 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2478, d)
|
|
}
|
|
} else if yyct2478 == codecSelferValueTypeArray1234 {
|
|
yyl2478 := r.ReadArrayStart()
|
|
if yyl2478 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2478, 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 yys2479Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2479Slc
|
|
var yyhl2479 bool = l >= 0
|
|
for yyj2479 := 0; ; yyj2479++ {
|
|
if yyhl2479 {
|
|
if yyj2479 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2479Slc = r.DecodeBytes(yys2479Slc, true, true)
|
|
yys2479 := string(yys2479Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2479 {
|
|
case "loadBalancer":
|
|
if r.TryDecodeAsNil() {
|
|
x.LoadBalancer = LoadBalancerStatus{}
|
|
} else {
|
|
yyv2480 := &x.LoadBalancer
|
|
yyv2480.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2479)
|
|
} // end switch yys2479
|
|
} // end for yyj2479
|
|
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 yyj2481 int
|
|
var yyb2481 bool
|
|
var yyhl2481 bool = l >= 0
|
|
yyj2481++
|
|
if yyhl2481 {
|
|
yyb2481 = yyj2481 > l
|
|
} else {
|
|
yyb2481 = r.CheckBreak()
|
|
}
|
|
if yyb2481 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.LoadBalancer = LoadBalancerStatus{}
|
|
} else {
|
|
yyv2482 := &x.LoadBalancer
|
|
yyv2482.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj2481++
|
|
if yyhl2481 {
|
|
yyb2481 = yyj2481 > l
|
|
} else {
|
|
yyb2481 = r.CheckBreak()
|
|
}
|
|
if yyb2481 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2481-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 {
|
|
yym2483 := z.EncBinary()
|
|
_ = yym2483
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2484 := !z.EncBinary()
|
|
yy2arr2484 := z.EncBasicHandle().StructToArray
|
|
var yyq2484 [1]bool
|
|
_, _, _ = yysep2484, yyq2484, yy2arr2484
|
|
const yyr2484 bool = false
|
|
yyq2484[0] = len(x.Ingress) != 0
|
|
var yynn2484 int
|
|
if yyr2484 || yy2arr2484 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn2484 = 0
|
|
for _, b := range yyq2484 {
|
|
if b {
|
|
yynn2484++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2484)
|
|
yynn2484 = 0
|
|
}
|
|
if yyr2484 || yy2arr2484 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2484[0] {
|
|
if x.Ingress == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2486 := z.EncBinary()
|
|
_ = yym2486
|
|
if false {
|
|
} else {
|
|
h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2484[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("ingress"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Ingress == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2487 := z.EncBinary()
|
|
_ = yym2487
|
|
if false {
|
|
} else {
|
|
h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr2484 || yy2arr2484 {
|
|
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
|
|
yym2488 := z.DecBinary()
|
|
_ = yym2488
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2489 := r.ContainerType()
|
|
if yyct2489 == codecSelferValueTypeMap1234 {
|
|
yyl2489 := r.ReadMapStart()
|
|
if yyl2489 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2489, d)
|
|
}
|
|
} else if yyct2489 == codecSelferValueTypeArray1234 {
|
|
yyl2489 := r.ReadArrayStart()
|
|
if yyl2489 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2489, 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 yys2490Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2490Slc
|
|
var yyhl2490 bool = l >= 0
|
|
for yyj2490 := 0; ; yyj2490++ {
|
|
if yyhl2490 {
|
|
if yyj2490 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2490Slc = r.DecodeBytes(yys2490Slc, true, true)
|
|
yys2490 := string(yys2490Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2490 {
|
|
case "ingress":
|
|
if r.TryDecodeAsNil() {
|
|
x.Ingress = nil
|
|
} else {
|
|
yyv2491 := &x.Ingress
|
|
yym2492 := z.DecBinary()
|
|
_ = yym2492
|
|
if false {
|
|
} else {
|
|
h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2491), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2490)
|
|
} // end switch yys2490
|
|
} // end for yyj2490
|
|
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 yyj2493 int
|
|
var yyb2493 bool
|
|
var yyhl2493 bool = l >= 0
|
|
yyj2493++
|
|
if yyhl2493 {
|
|
yyb2493 = yyj2493 > l
|
|
} else {
|
|
yyb2493 = r.CheckBreak()
|
|
}
|
|
if yyb2493 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Ingress = nil
|
|
} else {
|
|
yyv2494 := &x.Ingress
|
|
yym2495 := z.DecBinary()
|
|
_ = yym2495
|
|
if false {
|
|
} else {
|
|
h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2494), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj2493++
|
|
if yyhl2493 {
|
|
yyb2493 = yyj2493 > l
|
|
} else {
|
|
yyb2493 = r.CheckBreak()
|
|
}
|
|
if yyb2493 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2493-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 {
|
|
yym2496 := z.EncBinary()
|
|
_ = yym2496
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2497 := !z.EncBinary()
|
|
yy2arr2497 := z.EncBasicHandle().StructToArray
|
|
var yyq2497 [2]bool
|
|
_, _, _ = yysep2497, yyq2497, yy2arr2497
|
|
const yyr2497 bool = false
|
|
yyq2497[0] = x.IP != ""
|
|
yyq2497[1] = x.Hostname != ""
|
|
var yynn2497 int
|
|
if yyr2497 || yy2arr2497 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn2497 = 0
|
|
for _, b := range yyq2497 {
|
|
if b {
|
|
yynn2497++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2497)
|
|
yynn2497 = 0
|
|
}
|
|
if yyr2497 || yy2arr2497 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2497[0] {
|
|
yym2499 := z.EncBinary()
|
|
_ = yym2499
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.IP))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2497[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("ip"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2500 := z.EncBinary()
|
|
_ = yym2500
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.IP))
|
|
}
|
|
}
|
|
}
|
|
if yyr2497 || yy2arr2497 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2497[1] {
|
|
yym2502 := z.EncBinary()
|
|
_ = yym2502
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Hostname))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2497[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("hostname"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2503 := z.EncBinary()
|
|
_ = yym2503
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Hostname))
|
|
}
|
|
}
|
|
}
|
|
if yyr2497 || yy2arr2497 {
|
|
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
|
|
yym2504 := z.DecBinary()
|
|
_ = yym2504
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2505 := r.ContainerType()
|
|
if yyct2505 == codecSelferValueTypeMap1234 {
|
|
yyl2505 := r.ReadMapStart()
|
|
if yyl2505 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2505, d)
|
|
}
|
|
} else if yyct2505 == codecSelferValueTypeArray1234 {
|
|
yyl2505 := r.ReadArrayStart()
|
|
if yyl2505 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2505, 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 yys2506Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2506Slc
|
|
var yyhl2506 bool = l >= 0
|
|
for yyj2506 := 0; ; yyj2506++ {
|
|
if yyhl2506 {
|
|
if yyj2506 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2506Slc = r.DecodeBytes(yys2506Slc, true, true)
|
|
yys2506 := string(yys2506Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2506 {
|
|
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, yys2506)
|
|
} // end switch yys2506
|
|
} // end for yyj2506
|
|
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 yyj2509 int
|
|
var yyb2509 bool
|
|
var yyhl2509 bool = l >= 0
|
|
yyj2509++
|
|
if yyhl2509 {
|
|
yyb2509 = yyj2509 > l
|
|
} else {
|
|
yyb2509 = r.CheckBreak()
|
|
}
|
|
if yyb2509 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.IP = ""
|
|
} else {
|
|
x.IP = string(r.DecodeString())
|
|
}
|
|
yyj2509++
|
|
if yyhl2509 {
|
|
yyb2509 = yyj2509 > l
|
|
} else {
|
|
yyb2509 = r.CheckBreak()
|
|
}
|
|
if yyb2509 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Hostname = ""
|
|
} else {
|
|
x.Hostname = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj2509++
|
|
if yyhl2509 {
|
|
yyb2509 = yyj2509 > l
|
|
} else {
|
|
yyb2509 = r.CheckBreak()
|
|
}
|
|
if yyb2509 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2509-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 {
|
|
yym2512 := z.EncBinary()
|
|
_ = yym2512
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2513 := !z.EncBinary()
|
|
yy2arr2513 := z.EncBasicHandle().StructToArray
|
|
var yyq2513 [9]bool
|
|
_, _, _ = yysep2513, yyq2513, yy2arr2513
|
|
const yyr2513 bool = false
|
|
yyq2513[0] = x.Type != ""
|
|
yyq2513[3] = x.ClusterIP != ""
|
|
yyq2513[5] = len(x.ExternalIPs) != 0
|
|
yyq2513[6] = x.LoadBalancerIP != ""
|
|
yyq2513[7] = x.SessionAffinity != ""
|
|
yyq2513[8] = len(x.LoadBalancerSourceRanges) != 0
|
|
var yynn2513 int
|
|
if yyr2513 || yy2arr2513 {
|
|
r.EncodeArrayStart(9)
|
|
} else {
|
|
yynn2513 = 3
|
|
for _, b := range yyq2513 {
|
|
if b {
|
|
yynn2513++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2513)
|
|
yynn2513 = 0
|
|
}
|
|
if yyr2513 || yy2arr2513 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2513[0] {
|
|
x.Type.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2513[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("type"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Type.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2513 || yy2arr2513 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Ports == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2516 := z.EncBinary()
|
|
_ = yym2516
|
|
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 {
|
|
yym2517 := z.EncBinary()
|
|
_ = yym2517
|
|
if false {
|
|
} else {
|
|
h.encSliceServicePort(([]ServicePort)(x.Ports), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr2513 || yy2arr2513 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Selector == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2519 := z.EncBinary()
|
|
_ = yym2519
|
|
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 {
|
|
yym2520 := z.EncBinary()
|
|
_ = yym2520
|
|
if false {
|
|
} else {
|
|
z.F.EncMapStringStringV(x.Selector, false, e)
|
|
}
|
|
}
|
|
}
|
|
if yyr2513 || yy2arr2513 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2513[3] {
|
|
yym2522 := z.EncBinary()
|
|
_ = yym2522
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2513[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("clusterIP"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2523 := z.EncBinary()
|
|
_ = yym2523
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP))
|
|
}
|
|
}
|
|
}
|
|
if yyr2513 || yy2arr2513 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2525 := z.EncBinary()
|
|
_ = yym2525
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ExternalName))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("ExternalName"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2526 := z.EncBinary()
|
|
_ = yym2526
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ExternalName))
|
|
}
|
|
}
|
|
if yyr2513 || yy2arr2513 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2513[5] {
|
|
if x.ExternalIPs == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2528 := z.EncBinary()
|
|
_ = yym2528
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.ExternalIPs, false, e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2513[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("externalIPs"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.ExternalIPs == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2529 := z.EncBinary()
|
|
_ = yym2529
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.ExternalIPs, false, e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr2513 || yy2arr2513 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2513[6] {
|
|
yym2531 := z.EncBinary()
|
|
_ = yym2531
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2513[6] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("loadBalancerIP"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2532 := z.EncBinary()
|
|
_ = yym2532
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP))
|
|
}
|
|
}
|
|
}
|
|
if yyr2513 || yy2arr2513 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2513[7] {
|
|
x.SessionAffinity.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2513[7] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("sessionAffinity"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.SessionAffinity.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2513 || yy2arr2513 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2513[8] {
|
|
if x.LoadBalancerSourceRanges == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2535 := z.EncBinary()
|
|
_ = yym2535
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.LoadBalancerSourceRanges, false, e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2513[8] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("loadBalancerSourceRanges"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.LoadBalancerSourceRanges == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2536 := z.EncBinary()
|
|
_ = yym2536
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.LoadBalancerSourceRanges, false, e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr2513 || yy2arr2513 {
|
|
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
|
|
yym2537 := z.DecBinary()
|
|
_ = yym2537
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2538 := r.ContainerType()
|
|
if yyct2538 == codecSelferValueTypeMap1234 {
|
|
yyl2538 := r.ReadMapStart()
|
|
if yyl2538 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2538, d)
|
|
}
|
|
} else if yyct2538 == codecSelferValueTypeArray1234 {
|
|
yyl2538 := r.ReadArrayStart()
|
|
if yyl2538 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2538, 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 yys2539Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2539Slc
|
|
var yyhl2539 bool = l >= 0
|
|
for yyj2539 := 0; ; yyj2539++ {
|
|
if yyhl2539 {
|
|
if yyj2539 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2539Slc = r.DecodeBytes(yys2539Slc, true, true)
|
|
yys2539 := string(yys2539Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2539 {
|
|
case "type":
|
|
if r.TryDecodeAsNil() {
|
|
x.Type = ""
|
|
} else {
|
|
x.Type = ServiceType(r.DecodeString())
|
|
}
|
|
case "ports":
|
|
if r.TryDecodeAsNil() {
|
|
x.Ports = nil
|
|
} else {
|
|
yyv2541 := &x.Ports
|
|
yym2542 := z.DecBinary()
|
|
_ = yym2542
|
|
if false {
|
|
} else {
|
|
h.decSliceServicePort((*[]ServicePort)(yyv2541), d)
|
|
}
|
|
}
|
|
case "selector":
|
|
if r.TryDecodeAsNil() {
|
|
x.Selector = nil
|
|
} else {
|
|
yyv2543 := &x.Selector
|
|
yym2544 := z.DecBinary()
|
|
_ = yym2544
|
|
if false {
|
|
} else {
|
|
z.F.DecMapStringStringX(yyv2543, false, d)
|
|
}
|
|
}
|
|
case "clusterIP":
|
|
if r.TryDecodeAsNil() {
|
|
x.ClusterIP = ""
|
|
} else {
|
|
x.ClusterIP = string(r.DecodeString())
|
|
}
|
|
case "ExternalName":
|
|
if r.TryDecodeAsNil() {
|
|
x.ExternalName = ""
|
|
} else {
|
|
x.ExternalName = string(r.DecodeString())
|
|
}
|
|
case "externalIPs":
|
|
if r.TryDecodeAsNil() {
|
|
x.ExternalIPs = nil
|
|
} else {
|
|
yyv2547 := &x.ExternalIPs
|
|
yym2548 := z.DecBinary()
|
|
_ = yym2548
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv2547, 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())
|
|
}
|
|
case "loadBalancerSourceRanges":
|
|
if r.TryDecodeAsNil() {
|
|
x.LoadBalancerSourceRanges = nil
|
|
} else {
|
|
yyv2551 := &x.LoadBalancerSourceRanges
|
|
yym2552 := z.DecBinary()
|
|
_ = yym2552
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv2551, false, d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2539)
|
|
} // end switch yys2539
|
|
} // end for yyj2539
|
|
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 yyj2553 int
|
|
var yyb2553 bool
|
|
var yyhl2553 bool = l >= 0
|
|
yyj2553++
|
|
if yyhl2553 {
|
|
yyb2553 = yyj2553 > l
|
|
} else {
|
|
yyb2553 = r.CheckBreak()
|
|
}
|
|
if yyb2553 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Type = ""
|
|
} else {
|
|
x.Type = ServiceType(r.DecodeString())
|
|
}
|
|
yyj2553++
|
|
if yyhl2553 {
|
|
yyb2553 = yyj2553 > l
|
|
} else {
|
|
yyb2553 = r.CheckBreak()
|
|
}
|
|
if yyb2553 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Ports = nil
|
|
} else {
|
|
yyv2555 := &x.Ports
|
|
yym2556 := z.DecBinary()
|
|
_ = yym2556
|
|
if false {
|
|
} else {
|
|
h.decSliceServicePort((*[]ServicePort)(yyv2555), d)
|
|
}
|
|
}
|
|
yyj2553++
|
|
if yyhl2553 {
|
|
yyb2553 = yyj2553 > l
|
|
} else {
|
|
yyb2553 = r.CheckBreak()
|
|
}
|
|
if yyb2553 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Selector = nil
|
|
} else {
|
|
yyv2557 := &x.Selector
|
|
yym2558 := z.DecBinary()
|
|
_ = yym2558
|
|
if false {
|
|
} else {
|
|
z.F.DecMapStringStringX(yyv2557, false, d)
|
|
}
|
|
}
|
|
yyj2553++
|
|
if yyhl2553 {
|
|
yyb2553 = yyj2553 > l
|
|
} else {
|
|
yyb2553 = r.CheckBreak()
|
|
}
|
|
if yyb2553 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ClusterIP = ""
|
|
} else {
|
|
x.ClusterIP = string(r.DecodeString())
|
|
}
|
|
yyj2553++
|
|
if yyhl2553 {
|
|
yyb2553 = yyj2553 > l
|
|
} else {
|
|
yyb2553 = r.CheckBreak()
|
|
}
|
|
if yyb2553 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ExternalName = ""
|
|
} else {
|
|
x.ExternalName = string(r.DecodeString())
|
|
}
|
|
yyj2553++
|
|
if yyhl2553 {
|
|
yyb2553 = yyj2553 > l
|
|
} else {
|
|
yyb2553 = r.CheckBreak()
|
|
}
|
|
if yyb2553 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ExternalIPs = nil
|
|
} else {
|
|
yyv2561 := &x.ExternalIPs
|
|
yym2562 := z.DecBinary()
|
|
_ = yym2562
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv2561, false, d)
|
|
}
|
|
}
|
|
yyj2553++
|
|
if yyhl2553 {
|
|
yyb2553 = yyj2553 > l
|
|
} else {
|
|
yyb2553 = r.CheckBreak()
|
|
}
|
|
if yyb2553 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.LoadBalancerIP = ""
|
|
} else {
|
|
x.LoadBalancerIP = string(r.DecodeString())
|
|
}
|
|
yyj2553++
|
|
if yyhl2553 {
|
|
yyb2553 = yyj2553 > l
|
|
} else {
|
|
yyb2553 = r.CheckBreak()
|
|
}
|
|
if yyb2553 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.SessionAffinity = ""
|
|
} else {
|
|
x.SessionAffinity = ServiceAffinity(r.DecodeString())
|
|
}
|
|
yyj2553++
|
|
if yyhl2553 {
|
|
yyb2553 = yyj2553 > l
|
|
} else {
|
|
yyb2553 = r.CheckBreak()
|
|
}
|
|
if yyb2553 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.LoadBalancerSourceRanges = nil
|
|
} else {
|
|
yyv2565 := &x.LoadBalancerSourceRanges
|
|
yym2566 := z.DecBinary()
|
|
_ = yym2566
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv2565, false, d)
|
|
}
|
|
}
|
|
for {
|
|
yyj2553++
|
|
if yyhl2553 {
|
|
yyb2553 = yyj2553 > l
|
|
} else {
|
|
yyb2553 = r.CheckBreak()
|
|
}
|
|
if yyb2553 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2553-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 {
|
|
yym2567 := z.EncBinary()
|
|
_ = yym2567
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2568 := !z.EncBinary()
|
|
yy2arr2568 := z.EncBasicHandle().StructToArray
|
|
var yyq2568 [5]bool
|
|
_, _, _ = yysep2568, yyq2568, yy2arr2568
|
|
const yyr2568 bool = false
|
|
var yynn2568 int
|
|
if yyr2568 || yy2arr2568 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn2568 = 5
|
|
for _, b := range yyq2568 {
|
|
if b {
|
|
yynn2568++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2568)
|
|
yynn2568 = 0
|
|
}
|
|
if yyr2568 || yy2arr2568 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2570 := z.EncBinary()
|
|
_ = yym2570
|
|
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)
|
|
yym2571 := z.EncBinary()
|
|
_ = yym2571
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
}
|
|
if yyr2568 || yy2arr2568 {
|
|
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 yyr2568 || yy2arr2568 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2574 := z.EncBinary()
|
|
_ = yym2574
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Port))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("port"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2575 := z.EncBinary()
|
|
_ = yym2575
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Port))
|
|
}
|
|
}
|
|
if yyr2568 || yy2arr2568 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy2577 := &x.TargetPort
|
|
yym2578 := z.EncBinary()
|
|
_ = yym2578
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy2577) {
|
|
} else if !yym2578 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy2577)
|
|
} else {
|
|
z.EncFallback(yy2577)
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("targetPort"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2579 := &x.TargetPort
|
|
yym2580 := z.EncBinary()
|
|
_ = yym2580
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy2579) {
|
|
} else if !yym2580 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy2579)
|
|
} else {
|
|
z.EncFallback(yy2579)
|
|
}
|
|
}
|
|
if yyr2568 || yy2arr2568 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2582 := z.EncBinary()
|
|
_ = yym2582
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.NodePort))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("nodePort"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2583 := z.EncBinary()
|
|
_ = yym2583
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.NodePort))
|
|
}
|
|
}
|
|
if yyr2568 || yy2arr2568 {
|
|
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
|
|
yym2584 := z.DecBinary()
|
|
_ = yym2584
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2585 := r.ContainerType()
|
|
if yyct2585 == codecSelferValueTypeMap1234 {
|
|
yyl2585 := r.ReadMapStart()
|
|
if yyl2585 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2585, d)
|
|
}
|
|
} else if yyct2585 == codecSelferValueTypeArray1234 {
|
|
yyl2585 := r.ReadArrayStart()
|
|
if yyl2585 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2585, 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 yys2586Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2586Slc
|
|
var yyhl2586 bool = l >= 0
|
|
for yyj2586 := 0; ; yyj2586++ {
|
|
if yyhl2586 {
|
|
if yyj2586 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2586Slc = r.DecodeBytes(yys2586Slc, true, true)
|
|
yys2586 := string(yys2586Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2586 {
|
|
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 = int32(r.DecodeInt(32))
|
|
}
|
|
case "targetPort":
|
|
if r.TryDecodeAsNil() {
|
|
x.TargetPort = pkg4_intstr.IntOrString{}
|
|
} else {
|
|
yyv2590 := &x.TargetPort
|
|
yym2591 := z.DecBinary()
|
|
_ = yym2591
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2590) {
|
|
} else if !yym2591 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv2590)
|
|
} else {
|
|
z.DecFallback(yyv2590, false)
|
|
}
|
|
}
|
|
case "nodePort":
|
|
if r.TryDecodeAsNil() {
|
|
x.NodePort = 0
|
|
} else {
|
|
x.NodePort = int32(r.DecodeInt(32))
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2586)
|
|
} // end switch yys2586
|
|
} // end for yyj2586
|
|
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 yyj2593 int
|
|
var yyb2593 bool
|
|
var yyhl2593 bool = l >= 0
|
|
yyj2593++
|
|
if yyhl2593 {
|
|
yyb2593 = yyj2593 > l
|
|
} else {
|
|
yyb2593 = r.CheckBreak()
|
|
}
|
|
if yyb2593 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
yyj2593++
|
|
if yyhl2593 {
|
|
yyb2593 = yyj2593 > l
|
|
} else {
|
|
yyb2593 = r.CheckBreak()
|
|
}
|
|
if yyb2593 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Protocol = ""
|
|
} else {
|
|
x.Protocol = Protocol(r.DecodeString())
|
|
}
|
|
yyj2593++
|
|
if yyhl2593 {
|
|
yyb2593 = yyj2593 > l
|
|
} else {
|
|
yyb2593 = r.CheckBreak()
|
|
}
|
|
if yyb2593 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Port = 0
|
|
} else {
|
|
x.Port = int32(r.DecodeInt(32))
|
|
}
|
|
yyj2593++
|
|
if yyhl2593 {
|
|
yyb2593 = yyj2593 > l
|
|
} else {
|
|
yyb2593 = r.CheckBreak()
|
|
}
|
|
if yyb2593 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.TargetPort = pkg4_intstr.IntOrString{}
|
|
} else {
|
|
yyv2597 := &x.TargetPort
|
|
yym2598 := z.DecBinary()
|
|
_ = yym2598
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2597) {
|
|
} else if !yym2598 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv2597)
|
|
} else {
|
|
z.DecFallback(yyv2597, false)
|
|
}
|
|
}
|
|
yyj2593++
|
|
if yyhl2593 {
|
|
yyb2593 = yyj2593 > l
|
|
} else {
|
|
yyb2593 = r.CheckBreak()
|
|
}
|
|
if yyb2593 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.NodePort = 0
|
|
} else {
|
|
x.NodePort = int32(r.DecodeInt(32))
|
|
}
|
|
for {
|
|
yyj2593++
|
|
if yyhl2593 {
|
|
yyb2593 = yyj2593 > l
|
|
} else {
|
|
yyb2593 = r.CheckBreak()
|
|
}
|
|
if yyb2593 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2593-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 {
|
|
yym2600 := z.EncBinary()
|
|
_ = yym2600
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2601 := !z.EncBinary()
|
|
yy2arr2601 := z.EncBasicHandle().StructToArray
|
|
var yyq2601 [5]bool
|
|
_, _, _ = yysep2601, yyq2601, yy2arr2601
|
|
const yyr2601 bool = false
|
|
yyq2601[0] = x.Kind != ""
|
|
yyq2601[1] = x.APIVersion != ""
|
|
yyq2601[2] = true
|
|
yyq2601[3] = true
|
|
yyq2601[4] = true
|
|
var yynn2601 int
|
|
if yyr2601 || yy2arr2601 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn2601 = 0
|
|
for _, b := range yyq2601 {
|
|
if b {
|
|
yynn2601++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2601)
|
|
yynn2601 = 0
|
|
}
|
|
if yyr2601 || yy2arr2601 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2601[0] {
|
|
yym2603 := z.EncBinary()
|
|
_ = yym2603
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2601[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2604 := z.EncBinary()
|
|
_ = yym2604
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2601 || yy2arr2601 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2601[1] {
|
|
yym2606 := z.EncBinary()
|
|
_ = yym2606
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2601[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2607 := z.EncBinary()
|
|
_ = yym2607
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2601 || yy2arr2601 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2601[2] {
|
|
yy2609 := &x.ObjectMeta
|
|
yy2609.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2601[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2610 := &x.ObjectMeta
|
|
yy2610.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2601 || yy2arr2601 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2601[3] {
|
|
yy2612 := &x.Spec
|
|
yy2612.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2601[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("spec"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2613 := &x.Spec
|
|
yy2613.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2601 || yy2arr2601 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2601[4] {
|
|
yy2615 := &x.Status
|
|
yy2615.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2601[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("status"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2616 := &x.Status
|
|
yy2616.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2601 || yy2arr2601 {
|
|
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
|
|
yym2617 := z.DecBinary()
|
|
_ = yym2617
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2618 := r.ContainerType()
|
|
if yyct2618 == codecSelferValueTypeMap1234 {
|
|
yyl2618 := r.ReadMapStart()
|
|
if yyl2618 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2618, d)
|
|
}
|
|
} else if yyct2618 == codecSelferValueTypeArray1234 {
|
|
yyl2618 := r.ReadArrayStart()
|
|
if yyl2618 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2618, 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 yys2619Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2619Slc
|
|
var yyhl2619 bool = l >= 0
|
|
for yyj2619 := 0; ; yyj2619++ {
|
|
if yyhl2619 {
|
|
if yyj2619 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2619Slc = r.DecodeBytes(yys2619Slc, true, true)
|
|
yys2619 := string(yys2619Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2619 {
|
|
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 {
|
|
yyv2622 := &x.ObjectMeta
|
|
yyv2622.CodecDecodeSelf(d)
|
|
}
|
|
case "spec":
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = ServiceSpec{}
|
|
} else {
|
|
yyv2623 := &x.Spec
|
|
yyv2623.CodecDecodeSelf(d)
|
|
}
|
|
case "status":
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = ServiceStatus{}
|
|
} else {
|
|
yyv2624 := &x.Status
|
|
yyv2624.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2619)
|
|
} // end switch yys2619
|
|
} // end for yyj2619
|
|
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 yyj2625 int
|
|
var yyb2625 bool
|
|
var yyhl2625 bool = l >= 0
|
|
yyj2625++
|
|
if yyhl2625 {
|
|
yyb2625 = yyj2625 > l
|
|
} else {
|
|
yyb2625 = r.CheckBreak()
|
|
}
|
|
if yyb2625 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2625++
|
|
if yyhl2625 {
|
|
yyb2625 = yyj2625 > l
|
|
} else {
|
|
yyb2625 = r.CheckBreak()
|
|
}
|
|
if yyb2625 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2625++
|
|
if yyhl2625 {
|
|
yyb2625 = yyj2625 > l
|
|
} else {
|
|
yyb2625 = r.CheckBreak()
|
|
}
|
|
if yyb2625 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv2628 := &x.ObjectMeta
|
|
yyv2628.CodecDecodeSelf(d)
|
|
}
|
|
yyj2625++
|
|
if yyhl2625 {
|
|
yyb2625 = yyj2625 > l
|
|
} else {
|
|
yyb2625 = r.CheckBreak()
|
|
}
|
|
if yyb2625 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = ServiceSpec{}
|
|
} else {
|
|
yyv2629 := &x.Spec
|
|
yyv2629.CodecDecodeSelf(d)
|
|
}
|
|
yyj2625++
|
|
if yyhl2625 {
|
|
yyb2625 = yyj2625 > l
|
|
} else {
|
|
yyb2625 = r.CheckBreak()
|
|
}
|
|
if yyb2625 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = ServiceStatus{}
|
|
} else {
|
|
yyv2630 := &x.Status
|
|
yyv2630.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj2625++
|
|
if yyhl2625 {
|
|
yyb2625 = yyj2625 > l
|
|
} else {
|
|
yyb2625 = r.CheckBreak()
|
|
}
|
|
if yyb2625 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2625-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 {
|
|
yym2631 := z.EncBinary()
|
|
_ = yym2631
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2632 := !z.EncBinary()
|
|
yy2arr2632 := z.EncBasicHandle().StructToArray
|
|
var yyq2632 [5]bool
|
|
_, _, _ = yysep2632, yyq2632, yy2arr2632
|
|
const yyr2632 bool = false
|
|
yyq2632[0] = x.Kind != ""
|
|
yyq2632[1] = x.APIVersion != ""
|
|
yyq2632[2] = true
|
|
yyq2632[4] = len(x.ImagePullSecrets) != 0
|
|
var yynn2632 int
|
|
if yyr2632 || yy2arr2632 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn2632 = 1
|
|
for _, b := range yyq2632 {
|
|
if b {
|
|
yynn2632++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2632)
|
|
yynn2632 = 0
|
|
}
|
|
if yyr2632 || yy2arr2632 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2632[0] {
|
|
yym2634 := z.EncBinary()
|
|
_ = yym2634
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2632[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2635 := z.EncBinary()
|
|
_ = yym2635
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2632 || yy2arr2632 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2632[1] {
|
|
yym2637 := z.EncBinary()
|
|
_ = yym2637
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2632[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2638 := z.EncBinary()
|
|
_ = yym2638
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2632 || yy2arr2632 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2632[2] {
|
|
yy2640 := &x.ObjectMeta
|
|
yy2640.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2632[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2641 := &x.ObjectMeta
|
|
yy2641.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2632 || yy2arr2632 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Secrets == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2643 := z.EncBinary()
|
|
_ = yym2643
|
|
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 {
|
|
yym2644 := z.EncBinary()
|
|
_ = yym2644
|
|
if false {
|
|
} else {
|
|
h.encSliceObjectReference(([]ObjectReference)(x.Secrets), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr2632 || yy2arr2632 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2632[4] {
|
|
if x.ImagePullSecrets == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2646 := z.EncBinary()
|
|
_ = yym2646
|
|
if false {
|
|
} else {
|
|
h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2632[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.ImagePullSecrets == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2647 := z.EncBinary()
|
|
_ = yym2647
|
|
if false {
|
|
} else {
|
|
h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr2632 || yy2arr2632 {
|
|
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
|
|
yym2648 := z.DecBinary()
|
|
_ = yym2648
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2649 := r.ContainerType()
|
|
if yyct2649 == codecSelferValueTypeMap1234 {
|
|
yyl2649 := r.ReadMapStart()
|
|
if yyl2649 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2649, d)
|
|
}
|
|
} else if yyct2649 == codecSelferValueTypeArray1234 {
|
|
yyl2649 := r.ReadArrayStart()
|
|
if yyl2649 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2649, 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 yys2650Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2650Slc
|
|
var yyhl2650 bool = l >= 0
|
|
for yyj2650 := 0; ; yyj2650++ {
|
|
if yyhl2650 {
|
|
if yyj2650 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2650Slc = r.DecodeBytes(yys2650Slc, true, true)
|
|
yys2650 := string(yys2650Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2650 {
|
|
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 {
|
|
yyv2653 := &x.ObjectMeta
|
|
yyv2653.CodecDecodeSelf(d)
|
|
}
|
|
case "secrets":
|
|
if r.TryDecodeAsNil() {
|
|
x.Secrets = nil
|
|
} else {
|
|
yyv2654 := &x.Secrets
|
|
yym2655 := z.DecBinary()
|
|
_ = yym2655
|
|
if false {
|
|
} else {
|
|
h.decSliceObjectReference((*[]ObjectReference)(yyv2654), d)
|
|
}
|
|
}
|
|
case "imagePullSecrets":
|
|
if r.TryDecodeAsNil() {
|
|
x.ImagePullSecrets = nil
|
|
} else {
|
|
yyv2656 := &x.ImagePullSecrets
|
|
yym2657 := z.DecBinary()
|
|
_ = yym2657
|
|
if false {
|
|
} else {
|
|
h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2656), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2650)
|
|
} // end switch yys2650
|
|
} // end for yyj2650
|
|
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 yyj2658 int
|
|
var yyb2658 bool
|
|
var yyhl2658 bool = l >= 0
|
|
yyj2658++
|
|
if yyhl2658 {
|
|
yyb2658 = yyj2658 > l
|
|
} else {
|
|
yyb2658 = r.CheckBreak()
|
|
}
|
|
if yyb2658 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2658++
|
|
if yyhl2658 {
|
|
yyb2658 = yyj2658 > l
|
|
} else {
|
|
yyb2658 = r.CheckBreak()
|
|
}
|
|
if yyb2658 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2658++
|
|
if yyhl2658 {
|
|
yyb2658 = yyj2658 > l
|
|
} else {
|
|
yyb2658 = r.CheckBreak()
|
|
}
|
|
if yyb2658 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv2661 := &x.ObjectMeta
|
|
yyv2661.CodecDecodeSelf(d)
|
|
}
|
|
yyj2658++
|
|
if yyhl2658 {
|
|
yyb2658 = yyj2658 > l
|
|
} else {
|
|
yyb2658 = r.CheckBreak()
|
|
}
|
|
if yyb2658 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Secrets = nil
|
|
} else {
|
|
yyv2662 := &x.Secrets
|
|
yym2663 := z.DecBinary()
|
|
_ = yym2663
|
|
if false {
|
|
} else {
|
|
h.decSliceObjectReference((*[]ObjectReference)(yyv2662), d)
|
|
}
|
|
}
|
|
yyj2658++
|
|
if yyhl2658 {
|
|
yyb2658 = yyj2658 > l
|
|
} else {
|
|
yyb2658 = r.CheckBreak()
|
|
}
|
|
if yyb2658 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ImagePullSecrets = nil
|
|
} else {
|
|
yyv2664 := &x.ImagePullSecrets
|
|
yym2665 := z.DecBinary()
|
|
_ = yym2665
|
|
if false {
|
|
} else {
|
|
h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2664), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj2658++
|
|
if yyhl2658 {
|
|
yyb2658 = yyj2658 > l
|
|
} else {
|
|
yyb2658 = r.CheckBreak()
|
|
}
|
|
if yyb2658 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2658-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 {
|
|
yym2666 := z.EncBinary()
|
|
_ = yym2666
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2667 := !z.EncBinary()
|
|
yy2arr2667 := z.EncBasicHandle().StructToArray
|
|
var yyq2667 [4]bool
|
|
_, _, _ = yysep2667, yyq2667, yy2arr2667
|
|
const yyr2667 bool = false
|
|
yyq2667[0] = x.Kind != ""
|
|
yyq2667[1] = x.APIVersion != ""
|
|
yyq2667[2] = true
|
|
var yynn2667 int
|
|
if yyr2667 || yy2arr2667 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn2667 = 1
|
|
for _, b := range yyq2667 {
|
|
if b {
|
|
yynn2667++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2667)
|
|
yynn2667 = 0
|
|
}
|
|
if yyr2667 || yy2arr2667 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2667[0] {
|
|
yym2669 := z.EncBinary()
|
|
_ = yym2669
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2667[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2670 := z.EncBinary()
|
|
_ = yym2670
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2667 || yy2arr2667 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2667[1] {
|
|
yym2672 := z.EncBinary()
|
|
_ = yym2672
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2667[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2673 := z.EncBinary()
|
|
_ = yym2673
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2667 || yy2arr2667 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2667[2] {
|
|
yy2675 := &x.ListMeta
|
|
yym2676 := z.EncBinary()
|
|
_ = yym2676
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy2675) {
|
|
} else {
|
|
z.EncFallback(yy2675)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2667[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2677 := &x.ListMeta
|
|
yym2678 := z.EncBinary()
|
|
_ = yym2678
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy2677) {
|
|
} else {
|
|
z.EncFallback(yy2677)
|
|
}
|
|
}
|
|
}
|
|
if yyr2667 || yy2arr2667 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2680 := z.EncBinary()
|
|
_ = yym2680
|
|
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 {
|
|
yym2681 := z.EncBinary()
|
|
_ = yym2681
|
|
if false {
|
|
} else {
|
|
h.encSliceServiceAccount(([]ServiceAccount)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr2667 || yy2arr2667 {
|
|
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
|
|
yym2682 := z.DecBinary()
|
|
_ = yym2682
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2683 := r.ContainerType()
|
|
if yyct2683 == codecSelferValueTypeMap1234 {
|
|
yyl2683 := r.ReadMapStart()
|
|
if yyl2683 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2683, d)
|
|
}
|
|
} else if yyct2683 == codecSelferValueTypeArray1234 {
|
|
yyl2683 := r.ReadArrayStart()
|
|
if yyl2683 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2683, 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 yys2684Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2684Slc
|
|
var yyhl2684 bool = l >= 0
|
|
for yyj2684 := 0; ; yyj2684++ {
|
|
if yyhl2684 {
|
|
if yyj2684 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2684Slc = r.DecodeBytes(yys2684Slc, true, true)
|
|
yys2684 := string(yys2684Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2684 {
|
|
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 {
|
|
yyv2687 := &x.ListMeta
|
|
yym2688 := z.DecBinary()
|
|
_ = yym2688
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2687) {
|
|
} else {
|
|
z.DecFallback(yyv2687, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv2689 := &x.Items
|
|
yym2690 := z.DecBinary()
|
|
_ = yym2690
|
|
if false {
|
|
} else {
|
|
h.decSliceServiceAccount((*[]ServiceAccount)(yyv2689), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2684)
|
|
} // end switch yys2684
|
|
} // end for yyj2684
|
|
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 yyj2691 int
|
|
var yyb2691 bool
|
|
var yyhl2691 bool = l >= 0
|
|
yyj2691++
|
|
if yyhl2691 {
|
|
yyb2691 = yyj2691 > l
|
|
} else {
|
|
yyb2691 = r.CheckBreak()
|
|
}
|
|
if yyb2691 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2691++
|
|
if yyhl2691 {
|
|
yyb2691 = yyj2691 > l
|
|
} else {
|
|
yyb2691 = r.CheckBreak()
|
|
}
|
|
if yyb2691 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2691++
|
|
if yyhl2691 {
|
|
yyb2691 = yyj2691 > l
|
|
} else {
|
|
yyb2691 = r.CheckBreak()
|
|
}
|
|
if yyb2691 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv2694 := &x.ListMeta
|
|
yym2695 := z.DecBinary()
|
|
_ = yym2695
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2694) {
|
|
} else {
|
|
z.DecFallback(yyv2694, false)
|
|
}
|
|
}
|
|
yyj2691++
|
|
if yyhl2691 {
|
|
yyb2691 = yyj2691 > l
|
|
} else {
|
|
yyb2691 = r.CheckBreak()
|
|
}
|
|
if yyb2691 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv2696 := &x.Items
|
|
yym2697 := z.DecBinary()
|
|
_ = yym2697
|
|
if false {
|
|
} else {
|
|
h.decSliceServiceAccount((*[]ServiceAccount)(yyv2696), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj2691++
|
|
if yyhl2691 {
|
|
yyb2691 = yyj2691 > l
|
|
} else {
|
|
yyb2691 = r.CheckBreak()
|
|
}
|
|
if yyb2691 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2691-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 {
|
|
yym2698 := z.EncBinary()
|
|
_ = yym2698
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2699 := !z.EncBinary()
|
|
yy2arr2699 := z.EncBasicHandle().StructToArray
|
|
var yyq2699 [4]bool
|
|
_, _, _ = yysep2699, yyq2699, yy2arr2699
|
|
const yyr2699 bool = false
|
|
yyq2699[0] = x.Kind != ""
|
|
yyq2699[1] = x.APIVersion != ""
|
|
yyq2699[2] = true
|
|
var yynn2699 int
|
|
if yyr2699 || yy2arr2699 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn2699 = 1
|
|
for _, b := range yyq2699 {
|
|
if b {
|
|
yynn2699++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2699)
|
|
yynn2699 = 0
|
|
}
|
|
if yyr2699 || yy2arr2699 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2699[0] {
|
|
yym2701 := z.EncBinary()
|
|
_ = yym2701
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2699[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2702 := z.EncBinary()
|
|
_ = yym2702
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2699 || yy2arr2699 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2699[1] {
|
|
yym2704 := z.EncBinary()
|
|
_ = yym2704
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2699[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2705 := z.EncBinary()
|
|
_ = yym2705
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2699 || yy2arr2699 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2699[2] {
|
|
yy2707 := &x.ObjectMeta
|
|
yy2707.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2699[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2708 := &x.ObjectMeta
|
|
yy2708.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2699 || yy2arr2699 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Subsets == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2710 := z.EncBinary()
|
|
_ = yym2710
|
|
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 {
|
|
yym2711 := z.EncBinary()
|
|
_ = yym2711
|
|
if false {
|
|
} else {
|
|
h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr2699 || yy2arr2699 {
|
|
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
|
|
yym2712 := z.DecBinary()
|
|
_ = yym2712
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2713 := r.ContainerType()
|
|
if yyct2713 == codecSelferValueTypeMap1234 {
|
|
yyl2713 := r.ReadMapStart()
|
|
if yyl2713 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2713, d)
|
|
}
|
|
} else if yyct2713 == codecSelferValueTypeArray1234 {
|
|
yyl2713 := r.ReadArrayStart()
|
|
if yyl2713 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2713, 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 yys2714Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2714Slc
|
|
var yyhl2714 bool = l >= 0
|
|
for yyj2714 := 0; ; yyj2714++ {
|
|
if yyhl2714 {
|
|
if yyj2714 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2714Slc = r.DecodeBytes(yys2714Slc, true, true)
|
|
yys2714 := string(yys2714Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2714 {
|
|
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 {
|
|
yyv2717 := &x.ObjectMeta
|
|
yyv2717.CodecDecodeSelf(d)
|
|
}
|
|
case "Subsets":
|
|
if r.TryDecodeAsNil() {
|
|
x.Subsets = nil
|
|
} else {
|
|
yyv2718 := &x.Subsets
|
|
yym2719 := z.DecBinary()
|
|
_ = yym2719
|
|
if false {
|
|
} else {
|
|
h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2718), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2714)
|
|
} // end switch yys2714
|
|
} // end for yyj2714
|
|
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 yyj2720 int
|
|
var yyb2720 bool
|
|
var yyhl2720 bool = l >= 0
|
|
yyj2720++
|
|
if yyhl2720 {
|
|
yyb2720 = yyj2720 > l
|
|
} else {
|
|
yyb2720 = r.CheckBreak()
|
|
}
|
|
if yyb2720 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2720++
|
|
if yyhl2720 {
|
|
yyb2720 = yyj2720 > l
|
|
} else {
|
|
yyb2720 = r.CheckBreak()
|
|
}
|
|
if yyb2720 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2720++
|
|
if yyhl2720 {
|
|
yyb2720 = yyj2720 > l
|
|
} else {
|
|
yyb2720 = r.CheckBreak()
|
|
}
|
|
if yyb2720 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv2723 := &x.ObjectMeta
|
|
yyv2723.CodecDecodeSelf(d)
|
|
}
|
|
yyj2720++
|
|
if yyhl2720 {
|
|
yyb2720 = yyj2720 > l
|
|
} else {
|
|
yyb2720 = r.CheckBreak()
|
|
}
|
|
if yyb2720 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Subsets = nil
|
|
} else {
|
|
yyv2724 := &x.Subsets
|
|
yym2725 := z.DecBinary()
|
|
_ = yym2725
|
|
if false {
|
|
} else {
|
|
h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2724), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj2720++
|
|
if yyhl2720 {
|
|
yyb2720 = yyj2720 > l
|
|
} else {
|
|
yyb2720 = r.CheckBreak()
|
|
}
|
|
if yyb2720 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2720-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 {
|
|
yym2726 := z.EncBinary()
|
|
_ = yym2726
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2727 := !z.EncBinary()
|
|
yy2arr2727 := z.EncBasicHandle().StructToArray
|
|
var yyq2727 [3]bool
|
|
_, _, _ = yysep2727, yyq2727, yy2arr2727
|
|
const yyr2727 bool = false
|
|
var yynn2727 int
|
|
if yyr2727 || yy2arr2727 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn2727 = 3
|
|
for _, b := range yyq2727 {
|
|
if b {
|
|
yynn2727++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2727)
|
|
yynn2727 = 0
|
|
}
|
|
if yyr2727 || yy2arr2727 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Addresses == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2729 := z.EncBinary()
|
|
_ = yym2729
|
|
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 {
|
|
yym2730 := z.EncBinary()
|
|
_ = yym2730
|
|
if false {
|
|
} else {
|
|
h.encSliceEndpointAddress(([]EndpointAddress)(x.Addresses), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr2727 || yy2arr2727 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.NotReadyAddresses == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2732 := z.EncBinary()
|
|
_ = yym2732
|
|
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 {
|
|
yym2733 := z.EncBinary()
|
|
_ = yym2733
|
|
if false {
|
|
} else {
|
|
h.encSliceEndpointAddress(([]EndpointAddress)(x.NotReadyAddresses), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr2727 || yy2arr2727 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Ports == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2735 := z.EncBinary()
|
|
_ = yym2735
|
|
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 {
|
|
yym2736 := z.EncBinary()
|
|
_ = yym2736
|
|
if false {
|
|
} else {
|
|
h.encSliceEndpointPort(([]EndpointPort)(x.Ports), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr2727 || yy2arr2727 {
|
|
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
|
|
yym2737 := z.DecBinary()
|
|
_ = yym2737
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2738 := r.ContainerType()
|
|
if yyct2738 == codecSelferValueTypeMap1234 {
|
|
yyl2738 := r.ReadMapStart()
|
|
if yyl2738 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2738, d)
|
|
}
|
|
} else if yyct2738 == codecSelferValueTypeArray1234 {
|
|
yyl2738 := r.ReadArrayStart()
|
|
if yyl2738 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2738, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *EndpointSubset) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys2739Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2739Slc
|
|
var yyhl2739 bool = l >= 0
|
|
for yyj2739 := 0; ; yyj2739++ {
|
|
if yyhl2739 {
|
|
if yyj2739 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2739Slc = r.DecodeBytes(yys2739Slc, true, true)
|
|
yys2739 := string(yys2739Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2739 {
|
|
case "Addresses":
|
|
if r.TryDecodeAsNil() {
|
|
x.Addresses = nil
|
|
} else {
|
|
yyv2740 := &x.Addresses
|
|
yym2741 := z.DecBinary()
|
|
_ = yym2741
|
|
if false {
|
|
} else {
|
|
h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2740), d)
|
|
}
|
|
}
|
|
case "NotReadyAddresses":
|
|
if r.TryDecodeAsNil() {
|
|
x.NotReadyAddresses = nil
|
|
} else {
|
|
yyv2742 := &x.NotReadyAddresses
|
|
yym2743 := z.DecBinary()
|
|
_ = yym2743
|
|
if false {
|
|
} else {
|
|
h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2742), d)
|
|
}
|
|
}
|
|
case "Ports":
|
|
if r.TryDecodeAsNil() {
|
|
x.Ports = nil
|
|
} else {
|
|
yyv2744 := &x.Ports
|
|
yym2745 := z.DecBinary()
|
|
_ = yym2745
|
|
if false {
|
|
} else {
|
|
h.decSliceEndpointPort((*[]EndpointPort)(yyv2744), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2739)
|
|
} // end switch yys2739
|
|
} // end for yyj2739
|
|
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 yyj2746 int
|
|
var yyb2746 bool
|
|
var yyhl2746 bool = l >= 0
|
|
yyj2746++
|
|
if yyhl2746 {
|
|
yyb2746 = yyj2746 > l
|
|
} else {
|
|
yyb2746 = r.CheckBreak()
|
|
}
|
|
if yyb2746 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Addresses = nil
|
|
} else {
|
|
yyv2747 := &x.Addresses
|
|
yym2748 := z.DecBinary()
|
|
_ = yym2748
|
|
if false {
|
|
} else {
|
|
h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2747), d)
|
|
}
|
|
}
|
|
yyj2746++
|
|
if yyhl2746 {
|
|
yyb2746 = yyj2746 > l
|
|
} else {
|
|
yyb2746 = r.CheckBreak()
|
|
}
|
|
if yyb2746 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.NotReadyAddresses = nil
|
|
} else {
|
|
yyv2749 := &x.NotReadyAddresses
|
|
yym2750 := z.DecBinary()
|
|
_ = yym2750
|
|
if false {
|
|
} else {
|
|
h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2749), d)
|
|
}
|
|
}
|
|
yyj2746++
|
|
if yyhl2746 {
|
|
yyb2746 = yyj2746 > l
|
|
} else {
|
|
yyb2746 = r.CheckBreak()
|
|
}
|
|
if yyb2746 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Ports = nil
|
|
} else {
|
|
yyv2751 := &x.Ports
|
|
yym2752 := z.DecBinary()
|
|
_ = yym2752
|
|
if false {
|
|
} else {
|
|
h.decSliceEndpointPort((*[]EndpointPort)(yyv2751), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj2746++
|
|
if yyhl2746 {
|
|
yyb2746 = yyj2746 > l
|
|
} else {
|
|
yyb2746 = r.CheckBreak()
|
|
}
|
|
if yyb2746 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2746-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 {
|
|
yym2753 := z.EncBinary()
|
|
_ = yym2753
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2754 := !z.EncBinary()
|
|
yy2arr2754 := z.EncBasicHandle().StructToArray
|
|
var yyq2754 [4]bool
|
|
_, _, _ = yysep2754, yyq2754, yy2arr2754
|
|
const yyr2754 bool = false
|
|
yyq2754[1] = x.Hostname != ""
|
|
yyq2754[2] = x.NodeName != nil
|
|
var yynn2754 int
|
|
if yyr2754 || yy2arr2754 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn2754 = 2
|
|
for _, b := range yyq2754 {
|
|
if b {
|
|
yynn2754++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2754)
|
|
yynn2754 = 0
|
|
}
|
|
if yyr2754 || yy2arr2754 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2756 := z.EncBinary()
|
|
_ = yym2756
|
|
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)
|
|
yym2757 := z.EncBinary()
|
|
_ = yym2757
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.IP))
|
|
}
|
|
}
|
|
if yyr2754 || yy2arr2754 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2754[1] {
|
|
yym2759 := z.EncBinary()
|
|
_ = yym2759
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Hostname))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2754[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("hostname"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2760 := z.EncBinary()
|
|
_ = yym2760
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Hostname))
|
|
}
|
|
}
|
|
}
|
|
if yyr2754 || yy2arr2754 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2754[2] {
|
|
if x.NodeName == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy2762 := *x.NodeName
|
|
yym2763 := z.EncBinary()
|
|
_ = yym2763
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(yy2762))
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2754[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("nodeName"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.NodeName == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy2764 := *x.NodeName
|
|
yym2765 := z.EncBinary()
|
|
_ = yym2765
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(yy2764))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr2754 || yy2arr2754 {
|
|
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 yyr2754 || yy2arr2754 {
|
|
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
|
|
yym2767 := z.DecBinary()
|
|
_ = yym2767
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2768 := r.ContainerType()
|
|
if yyct2768 == codecSelferValueTypeMap1234 {
|
|
yyl2768 := r.ReadMapStart()
|
|
if yyl2768 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2768, d)
|
|
}
|
|
} else if yyct2768 == codecSelferValueTypeArray1234 {
|
|
yyl2768 := r.ReadArrayStart()
|
|
if yyl2768 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2768, 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 yys2769Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2769Slc
|
|
var yyhl2769 bool = l >= 0
|
|
for yyj2769 := 0; ; yyj2769++ {
|
|
if yyhl2769 {
|
|
if yyj2769 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2769Slc = r.DecodeBytes(yys2769Slc, true, true)
|
|
yys2769 := string(yys2769Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2769 {
|
|
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())
|
|
}
|
|
case "nodeName":
|
|
if r.TryDecodeAsNil() {
|
|
if x.NodeName != nil {
|
|
x.NodeName = nil
|
|
}
|
|
} else {
|
|
if x.NodeName == nil {
|
|
x.NodeName = new(string)
|
|
}
|
|
yym2773 := z.DecBinary()
|
|
_ = yym2773
|
|
if false {
|
|
} else {
|
|
*((*string)(x.NodeName)) = 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, yys2769)
|
|
} // end switch yys2769
|
|
} // end for yyj2769
|
|
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 yyj2775 int
|
|
var yyb2775 bool
|
|
var yyhl2775 bool = l >= 0
|
|
yyj2775++
|
|
if yyhl2775 {
|
|
yyb2775 = yyj2775 > l
|
|
} else {
|
|
yyb2775 = r.CheckBreak()
|
|
}
|
|
if yyb2775 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.IP = ""
|
|
} else {
|
|
x.IP = string(r.DecodeString())
|
|
}
|
|
yyj2775++
|
|
if yyhl2775 {
|
|
yyb2775 = yyj2775 > l
|
|
} else {
|
|
yyb2775 = r.CheckBreak()
|
|
}
|
|
if yyb2775 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Hostname = ""
|
|
} else {
|
|
x.Hostname = string(r.DecodeString())
|
|
}
|
|
yyj2775++
|
|
if yyhl2775 {
|
|
yyb2775 = yyj2775 > l
|
|
} else {
|
|
yyb2775 = r.CheckBreak()
|
|
}
|
|
if yyb2775 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.NodeName != nil {
|
|
x.NodeName = nil
|
|
}
|
|
} else {
|
|
if x.NodeName == nil {
|
|
x.NodeName = new(string)
|
|
}
|
|
yym2779 := z.DecBinary()
|
|
_ = yym2779
|
|
if false {
|
|
} else {
|
|
*((*string)(x.NodeName)) = r.DecodeString()
|
|
}
|
|
}
|
|
yyj2775++
|
|
if yyhl2775 {
|
|
yyb2775 = yyj2775 > l
|
|
} else {
|
|
yyb2775 = r.CheckBreak()
|
|
}
|
|
if yyb2775 {
|
|
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 {
|
|
yyj2775++
|
|
if yyhl2775 {
|
|
yyb2775 = yyj2775 > l
|
|
} else {
|
|
yyb2775 = r.CheckBreak()
|
|
}
|
|
if yyb2775 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2775-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 {
|
|
yym2781 := z.EncBinary()
|
|
_ = yym2781
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2782 := !z.EncBinary()
|
|
yy2arr2782 := z.EncBasicHandle().StructToArray
|
|
var yyq2782 [3]bool
|
|
_, _, _ = yysep2782, yyq2782, yy2arr2782
|
|
const yyr2782 bool = false
|
|
var yynn2782 int
|
|
if yyr2782 || yy2arr2782 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn2782 = 3
|
|
for _, b := range yyq2782 {
|
|
if b {
|
|
yynn2782++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2782)
|
|
yynn2782 = 0
|
|
}
|
|
if yyr2782 || yy2arr2782 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2784 := z.EncBinary()
|
|
_ = yym2784
|
|
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)
|
|
yym2785 := z.EncBinary()
|
|
_ = yym2785
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
}
|
|
if yyr2782 || yy2arr2782 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2787 := z.EncBinary()
|
|
_ = yym2787
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Port))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("Port"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2788 := z.EncBinary()
|
|
_ = yym2788
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Port))
|
|
}
|
|
}
|
|
if yyr2782 || yy2arr2782 {
|
|
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 yyr2782 || yy2arr2782 {
|
|
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
|
|
yym2790 := z.DecBinary()
|
|
_ = yym2790
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2791 := r.ContainerType()
|
|
if yyct2791 == codecSelferValueTypeMap1234 {
|
|
yyl2791 := r.ReadMapStart()
|
|
if yyl2791 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2791, d)
|
|
}
|
|
} else if yyct2791 == codecSelferValueTypeArray1234 {
|
|
yyl2791 := r.ReadArrayStart()
|
|
if yyl2791 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2791, 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 yys2792Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2792Slc
|
|
var yyhl2792 bool = l >= 0
|
|
for yyj2792 := 0; ; yyj2792++ {
|
|
if yyhl2792 {
|
|
if yyj2792 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2792Slc = r.DecodeBytes(yys2792Slc, true, true)
|
|
yys2792 := string(yys2792Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2792 {
|
|
case "Name":
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
case "Port":
|
|
if r.TryDecodeAsNil() {
|
|
x.Port = 0
|
|
} else {
|
|
x.Port = int32(r.DecodeInt(32))
|
|
}
|
|
case "Protocol":
|
|
if r.TryDecodeAsNil() {
|
|
x.Protocol = ""
|
|
} else {
|
|
x.Protocol = Protocol(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2792)
|
|
} // end switch yys2792
|
|
} // end for yyj2792
|
|
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 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.Name = ""
|
|
} else {
|
|
x.Name = 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.Port = 0
|
|
} else {
|
|
x.Port = int32(r.DecodeInt(32))
|
|
}
|
|
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.Protocol = ""
|
|
} else {
|
|
x.Protocol = Protocol(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 *EndpointsList) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2800 := z.EncBinary()
|
|
_ = yym2800
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2801 := !z.EncBinary()
|
|
yy2arr2801 := z.EncBasicHandle().StructToArray
|
|
var yyq2801 [4]bool
|
|
_, _, _ = yysep2801, yyq2801, yy2arr2801
|
|
const yyr2801 bool = false
|
|
yyq2801[0] = x.Kind != ""
|
|
yyq2801[1] = x.APIVersion != ""
|
|
yyq2801[2] = true
|
|
var yynn2801 int
|
|
if yyr2801 || yy2arr2801 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn2801 = 1
|
|
for _, b := range yyq2801 {
|
|
if b {
|
|
yynn2801++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2801)
|
|
yynn2801 = 0
|
|
}
|
|
if yyr2801 || yy2arr2801 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2801[0] {
|
|
yym2803 := z.EncBinary()
|
|
_ = yym2803
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2801[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2804 := z.EncBinary()
|
|
_ = yym2804
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr2801 || yy2arr2801 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2801[1] {
|
|
yym2806 := z.EncBinary()
|
|
_ = yym2806
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2801[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2807 := z.EncBinary()
|
|
_ = yym2807
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr2801 || yy2arr2801 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2801[2] {
|
|
yy2809 := &x.ListMeta
|
|
yym2810 := z.EncBinary()
|
|
_ = yym2810
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy2809) {
|
|
} else {
|
|
z.EncFallback(yy2809)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2801[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2811 := &x.ListMeta
|
|
yym2812 := z.EncBinary()
|
|
_ = yym2812
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy2811) {
|
|
} else {
|
|
z.EncFallback(yy2811)
|
|
}
|
|
}
|
|
}
|
|
if yyr2801 || yy2arr2801 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2814 := z.EncBinary()
|
|
_ = yym2814
|
|
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 {
|
|
yym2815 := z.EncBinary()
|
|
_ = yym2815
|
|
if false {
|
|
} else {
|
|
h.encSliceEndpoints(([]Endpoints)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr2801 || yy2arr2801 {
|
|
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
|
|
yym2816 := z.DecBinary()
|
|
_ = yym2816
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2817 := r.ContainerType()
|
|
if yyct2817 == codecSelferValueTypeMap1234 {
|
|
yyl2817 := r.ReadMapStart()
|
|
if yyl2817 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2817, d)
|
|
}
|
|
} else if yyct2817 == codecSelferValueTypeArray1234 {
|
|
yyl2817 := r.ReadArrayStart()
|
|
if yyl2817 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2817, 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 yys2818Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2818Slc
|
|
var yyhl2818 bool = l >= 0
|
|
for yyj2818 := 0; ; yyj2818++ {
|
|
if yyhl2818 {
|
|
if yyj2818 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2818Slc = r.DecodeBytes(yys2818Slc, true, true)
|
|
yys2818 := string(yys2818Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2818 {
|
|
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 {
|
|
yyv2821 := &x.ListMeta
|
|
yym2822 := z.DecBinary()
|
|
_ = yym2822
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2821) {
|
|
} else {
|
|
z.DecFallback(yyv2821, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv2823 := &x.Items
|
|
yym2824 := z.DecBinary()
|
|
_ = yym2824
|
|
if false {
|
|
} else {
|
|
h.decSliceEndpoints((*[]Endpoints)(yyv2823), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2818)
|
|
} // end switch yys2818
|
|
} // end for yyj2818
|
|
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 yyj2825 int
|
|
var yyb2825 bool
|
|
var yyhl2825 bool = l >= 0
|
|
yyj2825++
|
|
if yyhl2825 {
|
|
yyb2825 = yyj2825 > l
|
|
} else {
|
|
yyb2825 = r.CheckBreak()
|
|
}
|
|
if yyb2825 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj2825++
|
|
if yyhl2825 {
|
|
yyb2825 = yyj2825 > l
|
|
} else {
|
|
yyb2825 = r.CheckBreak()
|
|
}
|
|
if yyb2825 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj2825++
|
|
if yyhl2825 {
|
|
yyb2825 = yyj2825 > l
|
|
} else {
|
|
yyb2825 = r.CheckBreak()
|
|
}
|
|
if yyb2825 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv2828 := &x.ListMeta
|
|
yym2829 := z.DecBinary()
|
|
_ = yym2829
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv2828) {
|
|
} else {
|
|
z.DecFallback(yyv2828, false)
|
|
}
|
|
}
|
|
yyj2825++
|
|
if yyhl2825 {
|
|
yyb2825 = yyj2825 > l
|
|
} else {
|
|
yyb2825 = r.CheckBreak()
|
|
}
|
|
if yyb2825 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv2830 := &x.Items
|
|
yym2831 := z.DecBinary()
|
|
_ = yym2831
|
|
if false {
|
|
} else {
|
|
h.decSliceEndpoints((*[]Endpoints)(yyv2830), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj2825++
|
|
if yyhl2825 {
|
|
yyb2825 = yyj2825 > l
|
|
} else {
|
|
yyb2825 = r.CheckBreak()
|
|
}
|
|
if yyb2825 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2825-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 {
|
|
yym2832 := z.EncBinary()
|
|
_ = yym2832
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2833 := !z.EncBinary()
|
|
yy2arr2833 := z.EncBasicHandle().StructToArray
|
|
var yyq2833 [4]bool
|
|
_, _, _ = yysep2833, yyq2833, yy2arr2833
|
|
const yyr2833 bool = false
|
|
yyq2833[0] = x.PodCIDR != ""
|
|
yyq2833[1] = x.ExternalID != ""
|
|
yyq2833[2] = x.ProviderID != ""
|
|
yyq2833[3] = x.Unschedulable != false
|
|
var yynn2833 int
|
|
if yyr2833 || yy2arr2833 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn2833 = 0
|
|
for _, b := range yyq2833 {
|
|
if b {
|
|
yynn2833++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2833)
|
|
yynn2833 = 0
|
|
}
|
|
if yyr2833 || yy2arr2833 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2833[0] {
|
|
yym2835 := z.EncBinary()
|
|
_ = yym2835
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2833[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("podCIDR"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2836 := z.EncBinary()
|
|
_ = yym2836
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR))
|
|
}
|
|
}
|
|
}
|
|
if yyr2833 || yy2arr2833 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2833[1] {
|
|
yym2838 := z.EncBinary()
|
|
_ = yym2838
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2833[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("externalID"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2839 := z.EncBinary()
|
|
_ = yym2839
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID))
|
|
}
|
|
}
|
|
}
|
|
if yyr2833 || yy2arr2833 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2833[2] {
|
|
yym2841 := z.EncBinary()
|
|
_ = yym2841
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2833[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("providerID"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2842 := z.EncBinary()
|
|
_ = yym2842
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID))
|
|
}
|
|
}
|
|
}
|
|
if yyr2833 || yy2arr2833 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2833[3] {
|
|
yym2844 := z.EncBinary()
|
|
_ = yym2844
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Unschedulable))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq2833[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("unschedulable"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2845 := z.EncBinary()
|
|
_ = yym2845
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Unschedulable))
|
|
}
|
|
}
|
|
}
|
|
if yyr2833 || yy2arr2833 {
|
|
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
|
|
yym2846 := z.DecBinary()
|
|
_ = yym2846
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2847 := r.ContainerType()
|
|
if yyct2847 == codecSelferValueTypeMap1234 {
|
|
yyl2847 := r.ReadMapStart()
|
|
if yyl2847 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2847, d)
|
|
}
|
|
} else if yyct2847 == codecSelferValueTypeArray1234 {
|
|
yyl2847 := r.ReadArrayStart()
|
|
if yyl2847 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2847, 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 yys2848Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2848Slc
|
|
var yyhl2848 bool = l >= 0
|
|
for yyj2848 := 0; ; yyj2848++ {
|
|
if yyhl2848 {
|
|
if yyj2848 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2848Slc = r.DecodeBytes(yys2848Slc, true, true)
|
|
yys2848 := string(yys2848Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2848 {
|
|
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, yys2848)
|
|
} // end switch yys2848
|
|
} // end for yyj2848
|
|
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 yyj2853 int
|
|
var yyb2853 bool
|
|
var yyhl2853 bool = l >= 0
|
|
yyj2853++
|
|
if yyhl2853 {
|
|
yyb2853 = yyj2853 > l
|
|
} else {
|
|
yyb2853 = r.CheckBreak()
|
|
}
|
|
if yyb2853 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.PodCIDR = ""
|
|
} else {
|
|
x.PodCIDR = string(r.DecodeString())
|
|
}
|
|
yyj2853++
|
|
if yyhl2853 {
|
|
yyb2853 = yyj2853 > l
|
|
} else {
|
|
yyb2853 = r.CheckBreak()
|
|
}
|
|
if yyb2853 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ExternalID = ""
|
|
} else {
|
|
x.ExternalID = string(r.DecodeString())
|
|
}
|
|
yyj2853++
|
|
if yyhl2853 {
|
|
yyb2853 = yyj2853 > l
|
|
} else {
|
|
yyb2853 = r.CheckBreak()
|
|
}
|
|
if yyb2853 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ProviderID = ""
|
|
} else {
|
|
x.ProviderID = string(r.DecodeString())
|
|
}
|
|
yyj2853++
|
|
if yyhl2853 {
|
|
yyb2853 = yyj2853 > l
|
|
} else {
|
|
yyb2853 = r.CheckBreak()
|
|
}
|
|
if yyb2853 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Unschedulable = false
|
|
} else {
|
|
x.Unschedulable = bool(r.DecodeBool())
|
|
}
|
|
for {
|
|
yyj2853++
|
|
if yyhl2853 {
|
|
yyb2853 = yyj2853 > l
|
|
} else {
|
|
yyb2853 = r.CheckBreak()
|
|
}
|
|
if yyb2853 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2853-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 {
|
|
yym2858 := z.EncBinary()
|
|
_ = yym2858
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2859 := !z.EncBinary()
|
|
yy2arr2859 := z.EncBasicHandle().StructToArray
|
|
var yyq2859 [1]bool
|
|
_, _, _ = yysep2859, yyq2859, yy2arr2859
|
|
const yyr2859 bool = false
|
|
var yynn2859 int
|
|
if yyr2859 || yy2arr2859 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn2859 = 1
|
|
for _, b := range yyq2859 {
|
|
if b {
|
|
yynn2859++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2859)
|
|
yynn2859 = 0
|
|
}
|
|
if yyr2859 || yy2arr2859 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2861 := z.EncBinary()
|
|
_ = yym2861
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Port))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("Port"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2862 := z.EncBinary()
|
|
_ = yym2862
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Port))
|
|
}
|
|
}
|
|
if yyr2859 || yy2arr2859 {
|
|
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
|
|
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 *DaemonEndpoint) 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 "Port":
|
|
if r.TryDecodeAsNil() {
|
|
x.Port = 0
|
|
} else {
|
|
x.Port = int32(r.DecodeInt(32))
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2865)
|
|
} // end switch yys2865
|
|
} // end for yyj2865
|
|
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 yyj2867 int
|
|
var yyb2867 bool
|
|
var yyhl2867 bool = l >= 0
|
|
yyj2867++
|
|
if yyhl2867 {
|
|
yyb2867 = yyj2867 > l
|
|
} else {
|
|
yyb2867 = r.CheckBreak()
|
|
}
|
|
if yyb2867 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Port = 0
|
|
} else {
|
|
x.Port = int32(r.DecodeInt(32))
|
|
}
|
|
for {
|
|
yyj2867++
|
|
if yyhl2867 {
|
|
yyb2867 = yyj2867 > l
|
|
} else {
|
|
yyb2867 = r.CheckBreak()
|
|
}
|
|
if yyb2867 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2867-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 {
|
|
yym2869 := z.EncBinary()
|
|
_ = yym2869
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2870 := !z.EncBinary()
|
|
yy2arr2870 := z.EncBasicHandle().StructToArray
|
|
var yyq2870 [1]bool
|
|
_, _, _ = yysep2870, yyq2870, yy2arr2870
|
|
const yyr2870 bool = false
|
|
yyq2870[0] = true
|
|
var yynn2870 int
|
|
if yyr2870 || yy2arr2870 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn2870 = 0
|
|
for _, b := range yyq2870 {
|
|
if b {
|
|
yynn2870++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2870)
|
|
yynn2870 = 0
|
|
}
|
|
if yyr2870 || yy2arr2870 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2870[0] {
|
|
yy2872 := &x.KubeletEndpoint
|
|
yy2872.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2870[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kubeletEndpoint"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2873 := &x.KubeletEndpoint
|
|
yy2873.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2870 || yy2arr2870 {
|
|
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
|
|
yym2874 := z.DecBinary()
|
|
_ = yym2874
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2875 := r.ContainerType()
|
|
if yyct2875 == codecSelferValueTypeMap1234 {
|
|
yyl2875 := r.ReadMapStart()
|
|
if yyl2875 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2875, d)
|
|
}
|
|
} else if yyct2875 == codecSelferValueTypeArray1234 {
|
|
yyl2875 := r.ReadArrayStart()
|
|
if yyl2875 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2875, 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 yys2876Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2876Slc
|
|
var yyhl2876 bool = l >= 0
|
|
for yyj2876 := 0; ; yyj2876++ {
|
|
if yyhl2876 {
|
|
if yyj2876 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2876Slc = r.DecodeBytes(yys2876Slc, true, true)
|
|
yys2876 := string(yys2876Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2876 {
|
|
case "kubeletEndpoint":
|
|
if r.TryDecodeAsNil() {
|
|
x.KubeletEndpoint = DaemonEndpoint{}
|
|
} else {
|
|
yyv2877 := &x.KubeletEndpoint
|
|
yyv2877.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2876)
|
|
} // end switch yys2876
|
|
} // end for yyj2876
|
|
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 yyj2878 int
|
|
var yyb2878 bool
|
|
var yyhl2878 bool = l >= 0
|
|
yyj2878++
|
|
if yyhl2878 {
|
|
yyb2878 = yyj2878 > l
|
|
} else {
|
|
yyb2878 = r.CheckBreak()
|
|
}
|
|
if yyb2878 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.KubeletEndpoint = DaemonEndpoint{}
|
|
} else {
|
|
yyv2879 := &x.KubeletEndpoint
|
|
yyv2879.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj2878++
|
|
if yyhl2878 {
|
|
yyb2878 = yyj2878 > l
|
|
} else {
|
|
yyb2878 = r.CheckBreak()
|
|
}
|
|
if yyb2878 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2878-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 {
|
|
yym2880 := z.EncBinary()
|
|
_ = yym2880
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2881 := !z.EncBinary()
|
|
yy2arr2881 := z.EncBasicHandle().StructToArray
|
|
var yyq2881 [10]bool
|
|
_, _, _ = yysep2881, yyq2881, yy2arr2881
|
|
const yyr2881 bool = false
|
|
var yynn2881 int
|
|
if yyr2881 || yy2arr2881 {
|
|
r.EncodeArrayStart(10)
|
|
} else {
|
|
yynn2881 = 10
|
|
for _, b := range yyq2881 {
|
|
if b {
|
|
yynn2881++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2881)
|
|
yynn2881 = 0
|
|
}
|
|
if yyr2881 || yy2arr2881 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2883 := z.EncBinary()
|
|
_ = yym2883
|
|
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)
|
|
yym2884 := z.EncBinary()
|
|
_ = yym2884
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.MachineID))
|
|
}
|
|
}
|
|
if yyr2881 || yy2arr2881 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2886 := z.EncBinary()
|
|
_ = yym2886
|
|
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)
|
|
yym2887 := z.EncBinary()
|
|
_ = yym2887
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.SystemUUID))
|
|
}
|
|
}
|
|
if yyr2881 || yy2arr2881 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2889 := z.EncBinary()
|
|
_ = yym2889
|
|
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)
|
|
yym2890 := z.EncBinary()
|
|
_ = yym2890
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.BootID))
|
|
}
|
|
}
|
|
if yyr2881 || yy2arr2881 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2892 := z.EncBinary()
|
|
_ = yym2892
|
|
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)
|
|
yym2893 := z.EncBinary()
|
|
_ = yym2893
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.KernelVersion))
|
|
}
|
|
}
|
|
if yyr2881 || yy2arr2881 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2895 := z.EncBinary()
|
|
_ = yym2895
|
|
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)
|
|
yym2896 := z.EncBinary()
|
|
_ = yym2896
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.OSImage))
|
|
}
|
|
}
|
|
if yyr2881 || yy2arr2881 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2898 := z.EncBinary()
|
|
_ = yym2898
|
|
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)
|
|
yym2899 := z.EncBinary()
|
|
_ = yym2899
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntimeVersion))
|
|
}
|
|
}
|
|
if yyr2881 || yy2arr2881 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2901 := z.EncBinary()
|
|
_ = yym2901
|
|
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)
|
|
yym2902 := z.EncBinary()
|
|
_ = yym2902
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.KubeletVersion))
|
|
}
|
|
}
|
|
if yyr2881 || yy2arr2881 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2904 := z.EncBinary()
|
|
_ = yym2904
|
|
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)
|
|
yym2905 := z.EncBinary()
|
|
_ = yym2905
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.KubeProxyVersion))
|
|
}
|
|
}
|
|
if yyr2881 || yy2arr2881 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2907 := z.EncBinary()
|
|
_ = yym2907
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.OperatingSystem))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("operatingSystem"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2908 := z.EncBinary()
|
|
_ = yym2908
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.OperatingSystem))
|
|
}
|
|
}
|
|
if yyr2881 || yy2arr2881 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym2910 := z.EncBinary()
|
|
_ = yym2910
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Architecture))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("architecture"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym2911 := z.EncBinary()
|
|
_ = yym2911
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Architecture))
|
|
}
|
|
}
|
|
if yyr2881 || yy2arr2881 {
|
|
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
|
|
yym2912 := z.DecBinary()
|
|
_ = yym2912
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2913 := r.ContainerType()
|
|
if yyct2913 == codecSelferValueTypeMap1234 {
|
|
yyl2913 := r.ReadMapStart()
|
|
if yyl2913 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2913, d)
|
|
}
|
|
} else if yyct2913 == codecSelferValueTypeArray1234 {
|
|
yyl2913 := r.ReadArrayStart()
|
|
if yyl2913 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2913, 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 yys2914Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2914Slc
|
|
var yyhl2914 bool = l >= 0
|
|
for yyj2914 := 0; ; yyj2914++ {
|
|
if yyhl2914 {
|
|
if yyj2914 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2914Slc = r.DecodeBytes(yys2914Slc, true, true)
|
|
yys2914 := string(yys2914Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2914 {
|
|
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())
|
|
}
|
|
case "operatingSystem":
|
|
if r.TryDecodeAsNil() {
|
|
x.OperatingSystem = ""
|
|
} else {
|
|
x.OperatingSystem = string(r.DecodeString())
|
|
}
|
|
case "architecture":
|
|
if r.TryDecodeAsNil() {
|
|
x.Architecture = ""
|
|
} else {
|
|
x.Architecture = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2914)
|
|
} // end switch yys2914
|
|
} // end for yyj2914
|
|
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 yyj2925 int
|
|
var yyb2925 bool
|
|
var yyhl2925 bool = l >= 0
|
|
yyj2925++
|
|
if yyhl2925 {
|
|
yyb2925 = yyj2925 > l
|
|
} else {
|
|
yyb2925 = r.CheckBreak()
|
|
}
|
|
if yyb2925 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.MachineID = ""
|
|
} else {
|
|
x.MachineID = string(r.DecodeString())
|
|
}
|
|
yyj2925++
|
|
if yyhl2925 {
|
|
yyb2925 = yyj2925 > l
|
|
} else {
|
|
yyb2925 = r.CheckBreak()
|
|
}
|
|
if yyb2925 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.SystemUUID = ""
|
|
} else {
|
|
x.SystemUUID = string(r.DecodeString())
|
|
}
|
|
yyj2925++
|
|
if yyhl2925 {
|
|
yyb2925 = yyj2925 > l
|
|
} else {
|
|
yyb2925 = r.CheckBreak()
|
|
}
|
|
if yyb2925 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.BootID = ""
|
|
} else {
|
|
x.BootID = string(r.DecodeString())
|
|
}
|
|
yyj2925++
|
|
if yyhl2925 {
|
|
yyb2925 = yyj2925 > l
|
|
} else {
|
|
yyb2925 = r.CheckBreak()
|
|
}
|
|
if yyb2925 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.KernelVersion = ""
|
|
} else {
|
|
x.KernelVersion = string(r.DecodeString())
|
|
}
|
|
yyj2925++
|
|
if yyhl2925 {
|
|
yyb2925 = yyj2925 > l
|
|
} else {
|
|
yyb2925 = r.CheckBreak()
|
|
}
|
|
if yyb2925 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.OSImage = ""
|
|
} else {
|
|
x.OSImage = string(r.DecodeString())
|
|
}
|
|
yyj2925++
|
|
if yyhl2925 {
|
|
yyb2925 = yyj2925 > l
|
|
} else {
|
|
yyb2925 = r.CheckBreak()
|
|
}
|
|
if yyb2925 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ContainerRuntimeVersion = ""
|
|
} else {
|
|
x.ContainerRuntimeVersion = string(r.DecodeString())
|
|
}
|
|
yyj2925++
|
|
if yyhl2925 {
|
|
yyb2925 = yyj2925 > l
|
|
} else {
|
|
yyb2925 = r.CheckBreak()
|
|
}
|
|
if yyb2925 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.KubeletVersion = ""
|
|
} else {
|
|
x.KubeletVersion = string(r.DecodeString())
|
|
}
|
|
yyj2925++
|
|
if yyhl2925 {
|
|
yyb2925 = yyj2925 > l
|
|
} else {
|
|
yyb2925 = r.CheckBreak()
|
|
}
|
|
if yyb2925 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.KubeProxyVersion = ""
|
|
} else {
|
|
x.KubeProxyVersion = string(r.DecodeString())
|
|
}
|
|
yyj2925++
|
|
if yyhl2925 {
|
|
yyb2925 = yyj2925 > l
|
|
} else {
|
|
yyb2925 = r.CheckBreak()
|
|
}
|
|
if yyb2925 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.OperatingSystem = ""
|
|
} else {
|
|
x.OperatingSystem = string(r.DecodeString())
|
|
}
|
|
yyj2925++
|
|
if yyhl2925 {
|
|
yyb2925 = yyj2925 > l
|
|
} else {
|
|
yyb2925 = r.CheckBreak()
|
|
}
|
|
if yyb2925 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Architecture = ""
|
|
} else {
|
|
x.Architecture = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj2925++
|
|
if yyhl2925 {
|
|
yyb2925 = yyj2925 > l
|
|
} else {
|
|
yyb2925 = r.CheckBreak()
|
|
}
|
|
if yyb2925 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2925-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 {
|
|
yym2936 := z.EncBinary()
|
|
_ = yym2936
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2937 := !z.EncBinary()
|
|
yy2arr2937 := z.EncBasicHandle().StructToArray
|
|
var yyq2937 [10]bool
|
|
_, _, _ = yysep2937, yyq2937, yy2arr2937
|
|
const yyr2937 bool = false
|
|
yyq2937[0] = len(x.Capacity) != 0
|
|
yyq2937[1] = len(x.Allocatable) != 0
|
|
yyq2937[2] = x.Phase != ""
|
|
yyq2937[3] = len(x.Conditions) != 0
|
|
yyq2937[4] = len(x.Addresses) != 0
|
|
yyq2937[5] = true
|
|
yyq2937[6] = true
|
|
yyq2937[7] = len(x.Images) != 0
|
|
yyq2937[8] = len(x.VolumesInUse) != 0
|
|
yyq2937[9] = len(x.VolumesAttached) != 0
|
|
var yynn2937 int
|
|
if yyr2937 || yy2arr2937 {
|
|
r.EncodeArrayStart(10)
|
|
} else {
|
|
yynn2937 = 0
|
|
for _, b := range yyq2937 {
|
|
if b {
|
|
yynn2937++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2937)
|
|
yynn2937 = 0
|
|
}
|
|
if yyr2937 || yy2arr2937 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2937[0] {
|
|
if x.Capacity == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Capacity.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2937[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 yyr2937 || yy2arr2937 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2937[1] {
|
|
if x.Allocatable == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Allocatable.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2937[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 yyr2937 || yy2arr2937 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2937[2] {
|
|
x.Phase.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq2937[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("phase"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Phase.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2937 || yy2arr2937 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2937[3] {
|
|
if x.Conditions == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2942 := z.EncBinary()
|
|
_ = yym2942
|
|
if false {
|
|
} else {
|
|
h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2937[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("conditions"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Conditions == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2943 := z.EncBinary()
|
|
_ = yym2943
|
|
if false {
|
|
} else {
|
|
h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr2937 || yy2arr2937 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2937[4] {
|
|
if x.Addresses == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2945 := z.EncBinary()
|
|
_ = yym2945
|
|
if false {
|
|
} else {
|
|
h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2937[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("addresses"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Addresses == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2946 := z.EncBinary()
|
|
_ = yym2946
|
|
if false {
|
|
} else {
|
|
h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr2937 || yy2arr2937 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2937[5] {
|
|
yy2948 := &x.DaemonEndpoints
|
|
yy2948.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2937[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("daemonEndpoints"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2949 := &x.DaemonEndpoints
|
|
yy2949.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2937 || yy2arr2937 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2937[6] {
|
|
yy2951 := &x.NodeInfo
|
|
yy2951.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2937[6] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("nodeInfo"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy2952 := &x.NodeInfo
|
|
yy2952.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr2937 || yy2arr2937 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2937[7] {
|
|
if x.Images == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2954 := z.EncBinary()
|
|
_ = yym2954
|
|
if false {
|
|
} else {
|
|
h.encSliceContainerImage(([]ContainerImage)(x.Images), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2937[7] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("images"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Images == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2955 := z.EncBinary()
|
|
_ = yym2955
|
|
if false {
|
|
} else {
|
|
h.encSliceContainerImage(([]ContainerImage)(x.Images), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr2937 || yy2arr2937 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2937[8] {
|
|
if x.VolumesInUse == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2957 := z.EncBinary()
|
|
_ = yym2957
|
|
if false {
|
|
} else {
|
|
h.encSliceUniqueVolumeName(([]UniqueVolumeName)(x.VolumesInUse), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2937[8] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("volumesInUse"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.VolumesInUse == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2958 := z.EncBinary()
|
|
_ = yym2958
|
|
if false {
|
|
} else {
|
|
h.encSliceUniqueVolumeName(([]UniqueVolumeName)(x.VolumesInUse), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr2937 || yy2arr2937 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq2937[9] {
|
|
if x.VolumesAttached == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2960 := z.EncBinary()
|
|
_ = yym2960
|
|
if false {
|
|
} else {
|
|
h.encSliceAttachedVolume(([]AttachedVolume)(x.VolumesAttached), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq2937[9] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("volumesAttached"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.VolumesAttached == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2961 := z.EncBinary()
|
|
_ = yym2961
|
|
if false {
|
|
} else {
|
|
h.encSliceAttachedVolume(([]AttachedVolume)(x.VolumesAttached), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr2937 || yy2arr2937 {
|
|
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
|
|
yym2962 := z.DecBinary()
|
|
_ = yym2962
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct2963 := r.ContainerType()
|
|
if yyct2963 == codecSelferValueTypeMap1234 {
|
|
yyl2963 := r.ReadMapStart()
|
|
if yyl2963 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl2963, d)
|
|
}
|
|
} else if yyct2963 == codecSelferValueTypeArray1234 {
|
|
yyl2963 := r.ReadArrayStart()
|
|
if yyl2963 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl2963, 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 yys2964Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys2964Slc
|
|
var yyhl2964 bool = l >= 0
|
|
for yyj2964 := 0; ; yyj2964++ {
|
|
if yyhl2964 {
|
|
if yyj2964 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys2964Slc = r.DecodeBytes(yys2964Slc, true, true)
|
|
yys2964 := string(yys2964Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys2964 {
|
|
case "capacity":
|
|
if r.TryDecodeAsNil() {
|
|
x.Capacity = nil
|
|
} else {
|
|
yyv2965 := &x.Capacity
|
|
yyv2965.CodecDecodeSelf(d)
|
|
}
|
|
case "allocatable":
|
|
if r.TryDecodeAsNil() {
|
|
x.Allocatable = nil
|
|
} else {
|
|
yyv2966 := &x.Allocatable
|
|
yyv2966.CodecDecodeSelf(d)
|
|
}
|
|
case "phase":
|
|
if r.TryDecodeAsNil() {
|
|
x.Phase = ""
|
|
} else {
|
|
x.Phase = NodePhase(r.DecodeString())
|
|
}
|
|
case "conditions":
|
|
if r.TryDecodeAsNil() {
|
|
x.Conditions = nil
|
|
} else {
|
|
yyv2968 := &x.Conditions
|
|
yym2969 := z.DecBinary()
|
|
_ = yym2969
|
|
if false {
|
|
} else {
|
|
h.decSliceNodeCondition((*[]NodeCondition)(yyv2968), d)
|
|
}
|
|
}
|
|
case "addresses":
|
|
if r.TryDecodeAsNil() {
|
|
x.Addresses = nil
|
|
} else {
|
|
yyv2970 := &x.Addresses
|
|
yym2971 := z.DecBinary()
|
|
_ = yym2971
|
|
if false {
|
|
} else {
|
|
h.decSliceNodeAddress((*[]NodeAddress)(yyv2970), d)
|
|
}
|
|
}
|
|
case "daemonEndpoints":
|
|
if r.TryDecodeAsNil() {
|
|
x.DaemonEndpoints = NodeDaemonEndpoints{}
|
|
} else {
|
|
yyv2972 := &x.DaemonEndpoints
|
|
yyv2972.CodecDecodeSelf(d)
|
|
}
|
|
case "nodeInfo":
|
|
if r.TryDecodeAsNil() {
|
|
x.NodeInfo = NodeSystemInfo{}
|
|
} else {
|
|
yyv2973 := &x.NodeInfo
|
|
yyv2973.CodecDecodeSelf(d)
|
|
}
|
|
case "images":
|
|
if r.TryDecodeAsNil() {
|
|
x.Images = nil
|
|
} else {
|
|
yyv2974 := &x.Images
|
|
yym2975 := z.DecBinary()
|
|
_ = yym2975
|
|
if false {
|
|
} else {
|
|
h.decSliceContainerImage((*[]ContainerImage)(yyv2974), d)
|
|
}
|
|
}
|
|
case "volumesInUse":
|
|
if r.TryDecodeAsNil() {
|
|
x.VolumesInUse = nil
|
|
} else {
|
|
yyv2976 := &x.VolumesInUse
|
|
yym2977 := z.DecBinary()
|
|
_ = yym2977
|
|
if false {
|
|
} else {
|
|
h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv2976), d)
|
|
}
|
|
}
|
|
case "volumesAttached":
|
|
if r.TryDecodeAsNil() {
|
|
x.VolumesAttached = nil
|
|
} else {
|
|
yyv2978 := &x.VolumesAttached
|
|
yym2979 := z.DecBinary()
|
|
_ = yym2979
|
|
if false {
|
|
} else {
|
|
h.decSliceAttachedVolume((*[]AttachedVolume)(yyv2978), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys2964)
|
|
} // end switch yys2964
|
|
} // end for yyj2964
|
|
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 yyj2980 int
|
|
var yyb2980 bool
|
|
var yyhl2980 bool = l >= 0
|
|
yyj2980++
|
|
if yyhl2980 {
|
|
yyb2980 = yyj2980 > l
|
|
} else {
|
|
yyb2980 = r.CheckBreak()
|
|
}
|
|
if yyb2980 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Capacity = nil
|
|
} else {
|
|
yyv2981 := &x.Capacity
|
|
yyv2981.CodecDecodeSelf(d)
|
|
}
|
|
yyj2980++
|
|
if yyhl2980 {
|
|
yyb2980 = yyj2980 > l
|
|
} else {
|
|
yyb2980 = r.CheckBreak()
|
|
}
|
|
if yyb2980 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Allocatable = nil
|
|
} else {
|
|
yyv2982 := &x.Allocatable
|
|
yyv2982.CodecDecodeSelf(d)
|
|
}
|
|
yyj2980++
|
|
if yyhl2980 {
|
|
yyb2980 = yyj2980 > l
|
|
} else {
|
|
yyb2980 = r.CheckBreak()
|
|
}
|
|
if yyb2980 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Phase = ""
|
|
} else {
|
|
x.Phase = NodePhase(r.DecodeString())
|
|
}
|
|
yyj2980++
|
|
if yyhl2980 {
|
|
yyb2980 = yyj2980 > l
|
|
} else {
|
|
yyb2980 = r.CheckBreak()
|
|
}
|
|
if yyb2980 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Conditions = nil
|
|
} else {
|
|
yyv2984 := &x.Conditions
|
|
yym2985 := z.DecBinary()
|
|
_ = yym2985
|
|
if false {
|
|
} else {
|
|
h.decSliceNodeCondition((*[]NodeCondition)(yyv2984), d)
|
|
}
|
|
}
|
|
yyj2980++
|
|
if yyhl2980 {
|
|
yyb2980 = yyj2980 > l
|
|
} else {
|
|
yyb2980 = r.CheckBreak()
|
|
}
|
|
if yyb2980 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Addresses = nil
|
|
} else {
|
|
yyv2986 := &x.Addresses
|
|
yym2987 := z.DecBinary()
|
|
_ = yym2987
|
|
if false {
|
|
} else {
|
|
h.decSliceNodeAddress((*[]NodeAddress)(yyv2986), d)
|
|
}
|
|
}
|
|
yyj2980++
|
|
if yyhl2980 {
|
|
yyb2980 = yyj2980 > l
|
|
} else {
|
|
yyb2980 = r.CheckBreak()
|
|
}
|
|
if yyb2980 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.DaemonEndpoints = NodeDaemonEndpoints{}
|
|
} else {
|
|
yyv2988 := &x.DaemonEndpoints
|
|
yyv2988.CodecDecodeSelf(d)
|
|
}
|
|
yyj2980++
|
|
if yyhl2980 {
|
|
yyb2980 = yyj2980 > l
|
|
} else {
|
|
yyb2980 = r.CheckBreak()
|
|
}
|
|
if yyb2980 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.NodeInfo = NodeSystemInfo{}
|
|
} else {
|
|
yyv2989 := &x.NodeInfo
|
|
yyv2989.CodecDecodeSelf(d)
|
|
}
|
|
yyj2980++
|
|
if yyhl2980 {
|
|
yyb2980 = yyj2980 > l
|
|
} else {
|
|
yyb2980 = r.CheckBreak()
|
|
}
|
|
if yyb2980 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Images = nil
|
|
} else {
|
|
yyv2990 := &x.Images
|
|
yym2991 := z.DecBinary()
|
|
_ = yym2991
|
|
if false {
|
|
} else {
|
|
h.decSliceContainerImage((*[]ContainerImage)(yyv2990), d)
|
|
}
|
|
}
|
|
yyj2980++
|
|
if yyhl2980 {
|
|
yyb2980 = yyj2980 > l
|
|
} else {
|
|
yyb2980 = r.CheckBreak()
|
|
}
|
|
if yyb2980 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.VolumesInUse = nil
|
|
} else {
|
|
yyv2992 := &x.VolumesInUse
|
|
yym2993 := z.DecBinary()
|
|
_ = yym2993
|
|
if false {
|
|
} else {
|
|
h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv2992), d)
|
|
}
|
|
}
|
|
yyj2980++
|
|
if yyhl2980 {
|
|
yyb2980 = yyj2980 > l
|
|
} else {
|
|
yyb2980 = r.CheckBreak()
|
|
}
|
|
if yyb2980 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.VolumesAttached = nil
|
|
} else {
|
|
yyv2994 := &x.VolumesAttached
|
|
yym2995 := z.DecBinary()
|
|
_ = yym2995
|
|
if false {
|
|
} else {
|
|
h.decSliceAttachedVolume((*[]AttachedVolume)(yyv2994), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj2980++
|
|
if yyhl2980 {
|
|
yyb2980 = yyj2980 > l
|
|
} else {
|
|
yyb2980 = r.CheckBreak()
|
|
}
|
|
if yyb2980 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj2980-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x UniqueVolumeName) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym2996 := z.EncBinary()
|
|
_ = yym2996
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x))
|
|
}
|
|
}
|
|
|
|
func (x *UniqueVolumeName) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym2997 := z.DecBinary()
|
|
_ = yym2997
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
*((*string)(x)) = r.DecodeString()
|
|
}
|
|
}
|
|
|
|
func (x *AttachedVolume) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym2998 := z.EncBinary()
|
|
_ = yym2998
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep2999 := !z.EncBinary()
|
|
yy2arr2999 := z.EncBasicHandle().StructToArray
|
|
var yyq2999 [2]bool
|
|
_, _, _ = yysep2999, yyq2999, yy2arr2999
|
|
const yyr2999 bool = false
|
|
var yynn2999 int
|
|
if yyr2999 || yy2arr2999 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn2999 = 2
|
|
for _, b := range yyq2999 {
|
|
if b {
|
|
yynn2999++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn2999)
|
|
yynn2999 = 0
|
|
}
|
|
if yyr2999 || yy2arr2999 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
x.Name.CodecEncodeSelf(e)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("name"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Name.CodecEncodeSelf(e)
|
|
}
|
|
if yyr2999 || yy2arr2999 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym3002 := z.EncBinary()
|
|
_ = yym3002
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.DevicePath))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("devicePath"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3003 := z.EncBinary()
|
|
_ = yym3003
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.DevicePath))
|
|
}
|
|
}
|
|
if yyr2999 || yy2arr2999 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *AttachedVolume) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym3004 := z.DecBinary()
|
|
_ = yym3004
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3005 := r.ContainerType()
|
|
if yyct3005 == codecSelferValueTypeMap1234 {
|
|
yyl3005 := r.ReadMapStart()
|
|
if yyl3005 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3005, d)
|
|
}
|
|
} else if yyct3005 == codecSelferValueTypeArray1234 {
|
|
yyl3005 := r.ReadArrayStart()
|
|
if yyl3005 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3005, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *AttachedVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys3006Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3006Slc
|
|
var yyhl3006 bool = l >= 0
|
|
for yyj3006 := 0; ; yyj3006++ {
|
|
if yyhl3006 {
|
|
if yyj3006 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3006Slc = r.DecodeBytes(yys3006Slc, true, true)
|
|
yys3006 := string(yys3006Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3006 {
|
|
case "name":
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = UniqueVolumeName(r.DecodeString())
|
|
}
|
|
case "devicePath":
|
|
if r.TryDecodeAsNil() {
|
|
x.DevicePath = ""
|
|
} else {
|
|
x.DevicePath = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3006)
|
|
} // end switch yys3006
|
|
} // end for yyj3006
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *AttachedVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj3009 int
|
|
var yyb3009 bool
|
|
var yyhl3009 bool = l >= 0
|
|
yyj3009++
|
|
if yyhl3009 {
|
|
yyb3009 = yyj3009 > l
|
|
} else {
|
|
yyb3009 = r.CheckBreak()
|
|
}
|
|
if yyb3009 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = UniqueVolumeName(r.DecodeString())
|
|
}
|
|
yyj3009++
|
|
if yyhl3009 {
|
|
yyb3009 = yyj3009 > l
|
|
} else {
|
|
yyb3009 = r.CheckBreak()
|
|
}
|
|
if yyb3009 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.DevicePath = ""
|
|
} else {
|
|
x.DevicePath = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj3009++
|
|
if yyhl3009 {
|
|
yyb3009 = yyj3009 > l
|
|
} else {
|
|
yyb3009 = r.CheckBreak()
|
|
}
|
|
if yyb3009 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3009-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *AvoidPods) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3012 := z.EncBinary()
|
|
_ = yym3012
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3013 := !z.EncBinary()
|
|
yy2arr3013 := z.EncBasicHandle().StructToArray
|
|
var yyq3013 [1]bool
|
|
_, _, _ = yysep3013, yyq3013, yy2arr3013
|
|
const yyr3013 bool = false
|
|
yyq3013[0] = len(x.PreferAvoidPods) != 0
|
|
var yynn3013 int
|
|
if yyr3013 || yy2arr3013 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn3013 = 0
|
|
for _, b := range yyq3013 {
|
|
if b {
|
|
yynn3013++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3013)
|
|
yynn3013 = 0
|
|
}
|
|
if yyr3013 || yy2arr3013 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3013[0] {
|
|
if x.PreferAvoidPods == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3015 := z.EncBinary()
|
|
_ = yym3015
|
|
if false {
|
|
} else {
|
|
h.encSlicePreferAvoidPodsEntry(([]PreferAvoidPodsEntry)(x.PreferAvoidPods), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3013[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("preferAvoidPods"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.PreferAvoidPods == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3016 := z.EncBinary()
|
|
_ = yym3016
|
|
if false {
|
|
} else {
|
|
h.encSlicePreferAvoidPodsEntry(([]PreferAvoidPodsEntry)(x.PreferAvoidPods), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr3013 || yy2arr3013 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *AvoidPods) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym3017 := z.DecBinary()
|
|
_ = yym3017
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3018 := r.ContainerType()
|
|
if yyct3018 == codecSelferValueTypeMap1234 {
|
|
yyl3018 := r.ReadMapStart()
|
|
if yyl3018 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3018, d)
|
|
}
|
|
} else if yyct3018 == codecSelferValueTypeArray1234 {
|
|
yyl3018 := r.ReadArrayStart()
|
|
if yyl3018 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3018, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *AvoidPods) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys3019Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3019Slc
|
|
var yyhl3019 bool = l >= 0
|
|
for yyj3019 := 0; ; yyj3019++ {
|
|
if yyhl3019 {
|
|
if yyj3019 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3019Slc = r.DecodeBytes(yys3019Slc, true, true)
|
|
yys3019 := string(yys3019Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3019 {
|
|
case "preferAvoidPods":
|
|
if r.TryDecodeAsNil() {
|
|
x.PreferAvoidPods = nil
|
|
} else {
|
|
yyv3020 := &x.PreferAvoidPods
|
|
yym3021 := z.DecBinary()
|
|
_ = yym3021
|
|
if false {
|
|
} else {
|
|
h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv3020), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3019)
|
|
} // end switch yys3019
|
|
} // end for yyj3019
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *AvoidPods) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj3022 int
|
|
var yyb3022 bool
|
|
var yyhl3022 bool = l >= 0
|
|
yyj3022++
|
|
if yyhl3022 {
|
|
yyb3022 = yyj3022 > l
|
|
} else {
|
|
yyb3022 = r.CheckBreak()
|
|
}
|
|
if yyb3022 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.PreferAvoidPods = nil
|
|
} else {
|
|
yyv3023 := &x.PreferAvoidPods
|
|
yym3024 := z.DecBinary()
|
|
_ = yym3024
|
|
if false {
|
|
} else {
|
|
h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv3023), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj3022++
|
|
if yyhl3022 {
|
|
yyb3022 = yyj3022 > l
|
|
} else {
|
|
yyb3022 = r.CheckBreak()
|
|
}
|
|
if yyb3022 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3022-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *PreferAvoidPodsEntry) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3025 := z.EncBinary()
|
|
_ = yym3025
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3026 := !z.EncBinary()
|
|
yy2arr3026 := z.EncBasicHandle().StructToArray
|
|
var yyq3026 [4]bool
|
|
_, _, _ = yysep3026, yyq3026, yy2arr3026
|
|
const yyr3026 bool = false
|
|
yyq3026[1] = true
|
|
yyq3026[2] = x.Reason != ""
|
|
yyq3026[3] = x.Message != ""
|
|
var yynn3026 int
|
|
if yyr3026 || yy2arr3026 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn3026 = 1
|
|
for _, b := range yyq3026 {
|
|
if b {
|
|
yynn3026++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3026)
|
|
yynn3026 = 0
|
|
}
|
|
if yyr3026 || yy2arr3026 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3028 := &x.PodSignature
|
|
yy3028.CodecEncodeSelf(e)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("podSignature"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3029 := &x.PodSignature
|
|
yy3029.CodecEncodeSelf(e)
|
|
}
|
|
if yyr3026 || yy2arr3026 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3026[1] {
|
|
yy3031 := &x.EvictionTime
|
|
yym3032 := z.EncBinary()
|
|
_ = yym3032
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3031) {
|
|
} else if yym3032 {
|
|
z.EncBinaryMarshal(yy3031)
|
|
} else if !yym3032 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy3031)
|
|
} else {
|
|
z.EncFallback(yy3031)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3026[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("evictionTime"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3033 := &x.EvictionTime
|
|
yym3034 := z.EncBinary()
|
|
_ = yym3034
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3033) {
|
|
} else if yym3034 {
|
|
z.EncBinaryMarshal(yy3033)
|
|
} else if !yym3034 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy3033)
|
|
} else {
|
|
z.EncFallback(yy3033)
|
|
}
|
|
}
|
|
}
|
|
if yyr3026 || yy2arr3026 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3026[2] {
|
|
yym3036 := z.EncBinary()
|
|
_ = yym3036
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3026[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("reason"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3037 := z.EncBinary()
|
|
_ = yym3037
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
|
|
}
|
|
}
|
|
}
|
|
if yyr3026 || yy2arr3026 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3026[3] {
|
|
yym3039 := z.EncBinary()
|
|
_ = yym3039
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3026[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("message"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3040 := z.EncBinary()
|
|
_ = yym3040
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
}
|
|
}
|
|
if yyr3026 || yy2arr3026 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PreferAvoidPodsEntry) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym3041 := z.DecBinary()
|
|
_ = yym3041
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3042 := r.ContainerType()
|
|
if yyct3042 == codecSelferValueTypeMap1234 {
|
|
yyl3042 := r.ReadMapStart()
|
|
if yyl3042 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3042, d)
|
|
}
|
|
} else if yyct3042 == codecSelferValueTypeArray1234 {
|
|
yyl3042 := r.ReadArrayStart()
|
|
if yyl3042 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3042, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PreferAvoidPodsEntry) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys3043Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3043Slc
|
|
var yyhl3043 bool = l >= 0
|
|
for yyj3043 := 0; ; yyj3043++ {
|
|
if yyhl3043 {
|
|
if yyj3043 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3043Slc = r.DecodeBytes(yys3043Slc, true, true)
|
|
yys3043 := string(yys3043Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3043 {
|
|
case "podSignature":
|
|
if r.TryDecodeAsNil() {
|
|
x.PodSignature = PodSignature{}
|
|
} else {
|
|
yyv3044 := &x.PodSignature
|
|
yyv3044.CodecDecodeSelf(d)
|
|
}
|
|
case "evictionTime":
|
|
if r.TryDecodeAsNil() {
|
|
x.EvictionTime = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv3045 := &x.EvictionTime
|
|
yym3046 := z.DecBinary()
|
|
_ = yym3046
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3045) {
|
|
} else if yym3046 {
|
|
z.DecBinaryUnmarshal(yyv3045)
|
|
} else if !yym3046 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv3045)
|
|
} else {
|
|
z.DecFallback(yyv3045, 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, yys3043)
|
|
} // end switch yys3043
|
|
} // end for yyj3043
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *PreferAvoidPodsEntry) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj3049 int
|
|
var yyb3049 bool
|
|
var yyhl3049 bool = l >= 0
|
|
yyj3049++
|
|
if yyhl3049 {
|
|
yyb3049 = yyj3049 > l
|
|
} else {
|
|
yyb3049 = r.CheckBreak()
|
|
}
|
|
if yyb3049 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.PodSignature = PodSignature{}
|
|
} else {
|
|
yyv3050 := &x.PodSignature
|
|
yyv3050.CodecDecodeSelf(d)
|
|
}
|
|
yyj3049++
|
|
if yyhl3049 {
|
|
yyb3049 = yyj3049 > l
|
|
} else {
|
|
yyb3049 = r.CheckBreak()
|
|
}
|
|
if yyb3049 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.EvictionTime = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv3051 := &x.EvictionTime
|
|
yym3052 := z.DecBinary()
|
|
_ = yym3052
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3051) {
|
|
} else if yym3052 {
|
|
z.DecBinaryUnmarshal(yyv3051)
|
|
} else if !yym3052 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv3051)
|
|
} else {
|
|
z.DecFallback(yyv3051, false)
|
|
}
|
|
}
|
|
yyj3049++
|
|
if yyhl3049 {
|
|
yyb3049 = yyj3049 > l
|
|
} else {
|
|
yyb3049 = r.CheckBreak()
|
|
}
|
|
if yyb3049 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Reason = ""
|
|
} else {
|
|
x.Reason = string(r.DecodeString())
|
|
}
|
|
yyj3049++
|
|
if yyhl3049 {
|
|
yyb3049 = yyj3049 > l
|
|
} else {
|
|
yyb3049 = r.CheckBreak()
|
|
}
|
|
if yyb3049 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Message = ""
|
|
} else {
|
|
x.Message = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj3049++
|
|
if yyhl3049 {
|
|
yyb3049 = yyj3049 > l
|
|
} else {
|
|
yyb3049 = r.CheckBreak()
|
|
}
|
|
if yyb3049 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3049-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *PodSignature) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3055 := z.EncBinary()
|
|
_ = yym3055
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3056 := !z.EncBinary()
|
|
yy2arr3056 := z.EncBasicHandle().StructToArray
|
|
var yyq3056 [1]bool
|
|
_, _, _ = yysep3056, yyq3056, yy2arr3056
|
|
const yyr3056 bool = false
|
|
yyq3056[0] = x.PodController != nil
|
|
var yynn3056 int
|
|
if yyr3056 || yy2arr3056 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn3056 = 0
|
|
for _, b := range yyq3056 {
|
|
if b {
|
|
yynn3056++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3056)
|
|
yynn3056 = 0
|
|
}
|
|
if yyr3056 || yy2arr3056 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3056[0] {
|
|
if x.PodController == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.PodController.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3056[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("podController"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.PodController == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.PodController.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr3056 || yy2arr3056 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PodSignature) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym3058 := z.DecBinary()
|
|
_ = yym3058
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3059 := r.ContainerType()
|
|
if yyct3059 == codecSelferValueTypeMap1234 {
|
|
yyl3059 := r.ReadMapStart()
|
|
if yyl3059 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3059, d)
|
|
}
|
|
} else if yyct3059 == codecSelferValueTypeArray1234 {
|
|
yyl3059 := r.ReadArrayStart()
|
|
if yyl3059 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3059, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *PodSignature) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys3060Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3060Slc
|
|
var yyhl3060 bool = l >= 0
|
|
for yyj3060 := 0; ; yyj3060++ {
|
|
if yyhl3060 {
|
|
if yyj3060 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3060Slc = r.DecodeBytes(yys3060Slc, true, true)
|
|
yys3060 := string(yys3060Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3060 {
|
|
case "podController":
|
|
if r.TryDecodeAsNil() {
|
|
if x.PodController != nil {
|
|
x.PodController = nil
|
|
}
|
|
} else {
|
|
if x.PodController == nil {
|
|
x.PodController = new(OwnerReference)
|
|
}
|
|
x.PodController.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3060)
|
|
} // end switch yys3060
|
|
} // end for yyj3060
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *PodSignature) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj3062 int
|
|
var yyb3062 bool
|
|
var yyhl3062 bool = l >= 0
|
|
yyj3062++
|
|
if yyhl3062 {
|
|
yyb3062 = yyj3062 > l
|
|
} else {
|
|
yyb3062 = r.CheckBreak()
|
|
}
|
|
if yyb3062 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.PodController != nil {
|
|
x.PodController = nil
|
|
}
|
|
} else {
|
|
if x.PodController == nil {
|
|
x.PodController = new(OwnerReference)
|
|
}
|
|
x.PodController.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj3062++
|
|
if yyhl3062 {
|
|
yyb3062 = yyj3062 > l
|
|
} else {
|
|
yyb3062 = r.CheckBreak()
|
|
}
|
|
if yyb3062 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3062-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *ContainerImage) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3064 := z.EncBinary()
|
|
_ = yym3064
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3065 := !z.EncBinary()
|
|
yy2arr3065 := z.EncBasicHandle().StructToArray
|
|
var yyq3065 [2]bool
|
|
_, _, _ = yysep3065, yyq3065, yy2arr3065
|
|
const yyr3065 bool = false
|
|
yyq3065[1] = x.SizeBytes != 0
|
|
var yynn3065 int
|
|
if yyr3065 || yy2arr3065 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn3065 = 1
|
|
for _, b := range yyq3065 {
|
|
if b {
|
|
yynn3065++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3065)
|
|
yynn3065 = 0
|
|
}
|
|
if yyr3065 || yy2arr3065 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Names == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3067 := z.EncBinary()
|
|
_ = yym3067
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.Names, false, e)
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("names"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Names == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3068 := z.EncBinary()
|
|
_ = yym3068
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.Names, false, e)
|
|
}
|
|
}
|
|
}
|
|
if yyr3065 || yy2arr3065 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3065[1] {
|
|
yym3070 := z.EncBinary()
|
|
_ = yym3070
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.SizeBytes))
|
|
}
|
|
} else {
|
|
r.EncodeInt(0)
|
|
}
|
|
} else {
|
|
if yyq3065[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("sizeBytes"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3071 := z.EncBinary()
|
|
_ = yym3071
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.SizeBytes))
|
|
}
|
|
}
|
|
}
|
|
if yyr3065 || yy2arr3065 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ContainerImage) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym3072 := z.DecBinary()
|
|
_ = yym3072
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3073 := r.ContainerType()
|
|
if yyct3073 == codecSelferValueTypeMap1234 {
|
|
yyl3073 := r.ReadMapStart()
|
|
if yyl3073 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3073, d)
|
|
}
|
|
} else if yyct3073 == codecSelferValueTypeArray1234 {
|
|
yyl3073 := r.ReadArrayStart()
|
|
if yyl3073 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3073, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ContainerImage) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys3074Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3074Slc
|
|
var yyhl3074 bool = l >= 0
|
|
for yyj3074 := 0; ; yyj3074++ {
|
|
if yyhl3074 {
|
|
if yyj3074 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3074Slc = r.DecodeBytes(yys3074Slc, true, true)
|
|
yys3074 := string(yys3074Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3074 {
|
|
case "names":
|
|
if r.TryDecodeAsNil() {
|
|
x.Names = nil
|
|
} else {
|
|
yyv3075 := &x.Names
|
|
yym3076 := z.DecBinary()
|
|
_ = yym3076
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv3075, false, d)
|
|
}
|
|
}
|
|
case "sizeBytes":
|
|
if r.TryDecodeAsNil() {
|
|
x.SizeBytes = 0
|
|
} else {
|
|
x.SizeBytes = int64(r.DecodeInt(64))
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3074)
|
|
} // end switch yys3074
|
|
} // end for yyj3074
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *ContainerImage) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj3078 int
|
|
var yyb3078 bool
|
|
var yyhl3078 bool = l >= 0
|
|
yyj3078++
|
|
if yyhl3078 {
|
|
yyb3078 = yyj3078 > l
|
|
} else {
|
|
yyb3078 = r.CheckBreak()
|
|
}
|
|
if yyb3078 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Names = nil
|
|
} else {
|
|
yyv3079 := &x.Names
|
|
yym3080 := z.DecBinary()
|
|
_ = yym3080
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv3079, false, d)
|
|
}
|
|
}
|
|
yyj3078++
|
|
if yyhl3078 {
|
|
yyb3078 = yyj3078 > l
|
|
} else {
|
|
yyb3078 = r.CheckBreak()
|
|
}
|
|
if yyb3078 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.SizeBytes = 0
|
|
} else {
|
|
x.SizeBytes = int64(r.DecodeInt(64))
|
|
}
|
|
for {
|
|
yyj3078++
|
|
if yyhl3078 {
|
|
yyb3078 = yyj3078 > l
|
|
} else {
|
|
yyb3078 = r.CheckBreak()
|
|
}
|
|
if yyb3078 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3078-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x NodePhase) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym3082 := z.EncBinary()
|
|
_ = yym3082
|
|
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
|
|
yym3083 := z.DecBinary()
|
|
_ = yym3083
|
|
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
|
|
yym3084 := z.EncBinary()
|
|
_ = yym3084
|
|
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
|
|
yym3085 := z.DecBinary()
|
|
_ = yym3085
|
|
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 {
|
|
yym3086 := z.EncBinary()
|
|
_ = yym3086
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3087 := !z.EncBinary()
|
|
yy2arr3087 := z.EncBasicHandle().StructToArray
|
|
var yyq3087 [6]bool
|
|
_, _, _ = yysep3087, yyq3087, yy2arr3087
|
|
const yyr3087 bool = false
|
|
yyq3087[2] = true
|
|
yyq3087[3] = true
|
|
yyq3087[4] = x.Reason != ""
|
|
yyq3087[5] = x.Message != ""
|
|
var yynn3087 int
|
|
if yyr3087 || yy2arr3087 {
|
|
r.EncodeArrayStart(6)
|
|
} else {
|
|
yynn3087 = 2
|
|
for _, b := range yyq3087 {
|
|
if b {
|
|
yynn3087++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3087)
|
|
yynn3087 = 0
|
|
}
|
|
if yyr3087 || yy2arr3087 {
|
|
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 yyr3087 || yy2arr3087 {
|
|
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 yyr3087 || yy2arr3087 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3087[2] {
|
|
yy3091 := &x.LastHeartbeatTime
|
|
yym3092 := z.EncBinary()
|
|
_ = yym3092
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3091) {
|
|
} else if yym3092 {
|
|
z.EncBinaryMarshal(yy3091)
|
|
} else if !yym3092 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy3091)
|
|
} else {
|
|
z.EncFallback(yy3091)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3087[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("lastHeartbeatTime"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3093 := &x.LastHeartbeatTime
|
|
yym3094 := z.EncBinary()
|
|
_ = yym3094
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3093) {
|
|
} else if yym3094 {
|
|
z.EncBinaryMarshal(yy3093)
|
|
} else if !yym3094 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy3093)
|
|
} else {
|
|
z.EncFallback(yy3093)
|
|
}
|
|
}
|
|
}
|
|
if yyr3087 || yy2arr3087 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3087[3] {
|
|
yy3096 := &x.LastTransitionTime
|
|
yym3097 := z.EncBinary()
|
|
_ = yym3097
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3096) {
|
|
} else if yym3097 {
|
|
z.EncBinaryMarshal(yy3096)
|
|
} else if !yym3097 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy3096)
|
|
} else {
|
|
z.EncFallback(yy3096)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3087[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3098 := &x.LastTransitionTime
|
|
yym3099 := z.EncBinary()
|
|
_ = yym3099
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3098) {
|
|
} else if yym3099 {
|
|
z.EncBinaryMarshal(yy3098)
|
|
} else if !yym3099 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy3098)
|
|
} else {
|
|
z.EncFallback(yy3098)
|
|
}
|
|
}
|
|
}
|
|
if yyr3087 || yy2arr3087 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3087[4] {
|
|
yym3101 := z.EncBinary()
|
|
_ = yym3101
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3087[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("reason"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3102 := z.EncBinary()
|
|
_ = yym3102
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
|
|
}
|
|
}
|
|
}
|
|
if yyr3087 || yy2arr3087 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3087[5] {
|
|
yym3104 := z.EncBinary()
|
|
_ = yym3104
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3087[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("message"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3105 := z.EncBinary()
|
|
_ = yym3105
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
}
|
|
}
|
|
if yyr3087 || yy2arr3087 {
|
|
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
|
|
yym3106 := z.DecBinary()
|
|
_ = yym3106
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3107 := r.ContainerType()
|
|
if yyct3107 == codecSelferValueTypeMap1234 {
|
|
yyl3107 := r.ReadMapStart()
|
|
if yyl3107 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3107, d)
|
|
}
|
|
} else if yyct3107 == codecSelferValueTypeArray1234 {
|
|
yyl3107 := r.ReadArrayStart()
|
|
if yyl3107 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3107, 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 yys3108Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3108Slc
|
|
var yyhl3108 bool = l >= 0
|
|
for yyj3108 := 0; ; yyj3108++ {
|
|
if yyhl3108 {
|
|
if yyj3108 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3108Slc = r.DecodeBytes(yys3108Slc, true, true)
|
|
yys3108 := string(yys3108Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3108 {
|
|
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 {
|
|
yyv3111 := &x.LastHeartbeatTime
|
|
yym3112 := z.DecBinary()
|
|
_ = yym3112
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3111) {
|
|
} else if yym3112 {
|
|
z.DecBinaryUnmarshal(yyv3111)
|
|
} else if !yym3112 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv3111)
|
|
} else {
|
|
z.DecFallback(yyv3111, false)
|
|
}
|
|
}
|
|
case "lastTransitionTime":
|
|
if r.TryDecodeAsNil() {
|
|
x.LastTransitionTime = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv3113 := &x.LastTransitionTime
|
|
yym3114 := z.DecBinary()
|
|
_ = yym3114
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3113) {
|
|
} else if yym3114 {
|
|
z.DecBinaryUnmarshal(yyv3113)
|
|
} else if !yym3114 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv3113)
|
|
} else {
|
|
z.DecFallback(yyv3113, 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, yys3108)
|
|
} // end switch yys3108
|
|
} // end for yyj3108
|
|
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 yyj3117 int
|
|
var yyb3117 bool
|
|
var yyhl3117 bool = l >= 0
|
|
yyj3117++
|
|
if yyhl3117 {
|
|
yyb3117 = yyj3117 > l
|
|
} else {
|
|
yyb3117 = r.CheckBreak()
|
|
}
|
|
if yyb3117 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Type = ""
|
|
} else {
|
|
x.Type = NodeConditionType(r.DecodeString())
|
|
}
|
|
yyj3117++
|
|
if yyhl3117 {
|
|
yyb3117 = yyj3117 > l
|
|
} else {
|
|
yyb3117 = r.CheckBreak()
|
|
}
|
|
if yyb3117 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = ""
|
|
} else {
|
|
x.Status = ConditionStatus(r.DecodeString())
|
|
}
|
|
yyj3117++
|
|
if yyhl3117 {
|
|
yyb3117 = yyj3117 > l
|
|
} else {
|
|
yyb3117 = r.CheckBreak()
|
|
}
|
|
if yyb3117 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.LastHeartbeatTime = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv3120 := &x.LastHeartbeatTime
|
|
yym3121 := z.DecBinary()
|
|
_ = yym3121
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3120) {
|
|
} else if yym3121 {
|
|
z.DecBinaryUnmarshal(yyv3120)
|
|
} else if !yym3121 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv3120)
|
|
} else {
|
|
z.DecFallback(yyv3120, false)
|
|
}
|
|
}
|
|
yyj3117++
|
|
if yyhl3117 {
|
|
yyb3117 = yyj3117 > l
|
|
} else {
|
|
yyb3117 = r.CheckBreak()
|
|
}
|
|
if yyb3117 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.LastTransitionTime = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv3122 := &x.LastTransitionTime
|
|
yym3123 := z.DecBinary()
|
|
_ = yym3123
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3122) {
|
|
} else if yym3123 {
|
|
z.DecBinaryUnmarshal(yyv3122)
|
|
} else if !yym3123 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv3122)
|
|
} else {
|
|
z.DecFallback(yyv3122, false)
|
|
}
|
|
}
|
|
yyj3117++
|
|
if yyhl3117 {
|
|
yyb3117 = yyj3117 > l
|
|
} else {
|
|
yyb3117 = r.CheckBreak()
|
|
}
|
|
if yyb3117 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Reason = ""
|
|
} else {
|
|
x.Reason = string(r.DecodeString())
|
|
}
|
|
yyj3117++
|
|
if yyhl3117 {
|
|
yyb3117 = yyj3117 > l
|
|
} else {
|
|
yyb3117 = r.CheckBreak()
|
|
}
|
|
if yyb3117 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Message = ""
|
|
} else {
|
|
x.Message = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj3117++
|
|
if yyhl3117 {
|
|
yyb3117 = yyj3117 > l
|
|
} else {
|
|
yyb3117 = r.CheckBreak()
|
|
}
|
|
if yyb3117 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3117-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x NodeAddressType) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym3126 := z.EncBinary()
|
|
_ = yym3126
|
|
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
|
|
yym3127 := z.DecBinary()
|
|
_ = yym3127
|
|
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 {
|
|
yym3128 := z.EncBinary()
|
|
_ = yym3128
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3129 := !z.EncBinary()
|
|
yy2arr3129 := z.EncBasicHandle().StructToArray
|
|
var yyq3129 [2]bool
|
|
_, _, _ = yysep3129, yyq3129, yy2arr3129
|
|
const yyr3129 bool = false
|
|
var yynn3129 int
|
|
if yyr3129 || yy2arr3129 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn3129 = 2
|
|
for _, b := range yyq3129 {
|
|
if b {
|
|
yynn3129++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3129)
|
|
yynn3129 = 0
|
|
}
|
|
if yyr3129 || yy2arr3129 {
|
|
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 yyr3129 || yy2arr3129 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym3132 := z.EncBinary()
|
|
_ = yym3132
|
|
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)
|
|
yym3133 := z.EncBinary()
|
|
_ = yym3133
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Address))
|
|
}
|
|
}
|
|
if yyr3129 || yy2arr3129 {
|
|
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
|
|
yym3134 := z.DecBinary()
|
|
_ = yym3134
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3135 := r.ContainerType()
|
|
if yyct3135 == codecSelferValueTypeMap1234 {
|
|
yyl3135 := r.ReadMapStart()
|
|
if yyl3135 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3135, d)
|
|
}
|
|
} else if yyct3135 == codecSelferValueTypeArray1234 {
|
|
yyl3135 := r.ReadArrayStart()
|
|
if yyl3135 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3135, 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 yys3136Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3136Slc
|
|
var yyhl3136 bool = l >= 0
|
|
for yyj3136 := 0; ; yyj3136++ {
|
|
if yyhl3136 {
|
|
if yyj3136 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3136Slc = r.DecodeBytes(yys3136Slc, true, true)
|
|
yys3136 := string(yys3136Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3136 {
|
|
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, yys3136)
|
|
} // end switch yys3136
|
|
} // end for yyj3136
|
|
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 yyj3139 int
|
|
var yyb3139 bool
|
|
var yyhl3139 bool = l >= 0
|
|
yyj3139++
|
|
if yyhl3139 {
|
|
yyb3139 = yyj3139 > l
|
|
} else {
|
|
yyb3139 = r.CheckBreak()
|
|
}
|
|
if yyb3139 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Type = ""
|
|
} else {
|
|
x.Type = NodeAddressType(r.DecodeString())
|
|
}
|
|
yyj3139++
|
|
if yyhl3139 {
|
|
yyb3139 = yyj3139 > l
|
|
} else {
|
|
yyb3139 = r.CheckBreak()
|
|
}
|
|
if yyb3139 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Address = ""
|
|
} else {
|
|
x.Address = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj3139++
|
|
if yyhl3139 {
|
|
yyb3139 = yyj3139 > l
|
|
} else {
|
|
yyb3139 = r.CheckBreak()
|
|
}
|
|
if yyb3139 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3139-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 {
|
|
yym3142 := z.EncBinary()
|
|
_ = yym3142
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3143 := !z.EncBinary()
|
|
yy2arr3143 := z.EncBasicHandle().StructToArray
|
|
var yyq3143 [1]bool
|
|
_, _, _ = yysep3143, yyq3143, yy2arr3143
|
|
const yyr3143 bool = false
|
|
yyq3143[0] = len(x.Capacity) != 0
|
|
var yynn3143 int
|
|
if yyr3143 || yy2arr3143 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn3143 = 0
|
|
for _, b := range yyq3143 {
|
|
if b {
|
|
yynn3143++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3143)
|
|
yynn3143 = 0
|
|
}
|
|
if yyr3143 || yy2arr3143 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3143[0] {
|
|
if x.Capacity == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Capacity.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3143[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 yyr3143 || yy2arr3143 {
|
|
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
|
|
yym3145 := z.DecBinary()
|
|
_ = yym3145
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3146 := r.ContainerType()
|
|
if yyct3146 == codecSelferValueTypeMap1234 {
|
|
yyl3146 := r.ReadMapStart()
|
|
if yyl3146 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3146, d)
|
|
}
|
|
} else if yyct3146 == codecSelferValueTypeArray1234 {
|
|
yyl3146 := r.ReadArrayStart()
|
|
if yyl3146 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3146, 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 yys3147Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3147Slc
|
|
var yyhl3147 bool = l >= 0
|
|
for yyj3147 := 0; ; yyj3147++ {
|
|
if yyhl3147 {
|
|
if yyj3147 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3147Slc = r.DecodeBytes(yys3147Slc, true, true)
|
|
yys3147 := string(yys3147Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3147 {
|
|
case "capacity":
|
|
if r.TryDecodeAsNil() {
|
|
x.Capacity = nil
|
|
} else {
|
|
yyv3148 := &x.Capacity
|
|
yyv3148.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3147)
|
|
} // end switch yys3147
|
|
} // end for yyj3147
|
|
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 yyj3149 int
|
|
var yyb3149 bool
|
|
var yyhl3149 bool = l >= 0
|
|
yyj3149++
|
|
if yyhl3149 {
|
|
yyb3149 = yyj3149 > l
|
|
} else {
|
|
yyb3149 = r.CheckBreak()
|
|
}
|
|
if yyb3149 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Capacity = nil
|
|
} else {
|
|
yyv3150 := &x.Capacity
|
|
yyv3150.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj3149++
|
|
if yyhl3149 {
|
|
yyb3149 = yyj3149 > l
|
|
} else {
|
|
yyb3149 = r.CheckBreak()
|
|
}
|
|
if yyb3149 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3149-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x ResourceName) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym3151 := z.EncBinary()
|
|
_ = yym3151
|
|
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
|
|
yym3152 := z.DecBinary()
|
|
_ = yym3152
|
|
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 {
|
|
yym3153 := z.EncBinary()
|
|
_ = yym3153
|
|
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
|
|
yym3154 := z.DecBinary()
|
|
_ = yym3154
|
|
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 {
|
|
yym3155 := z.EncBinary()
|
|
_ = yym3155
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3156 := !z.EncBinary()
|
|
yy2arr3156 := z.EncBasicHandle().StructToArray
|
|
var yyq3156 [5]bool
|
|
_, _, _ = yysep3156, yyq3156, yy2arr3156
|
|
const yyr3156 bool = false
|
|
yyq3156[0] = x.Kind != ""
|
|
yyq3156[1] = x.APIVersion != ""
|
|
yyq3156[2] = true
|
|
yyq3156[3] = true
|
|
yyq3156[4] = true
|
|
var yynn3156 int
|
|
if yyr3156 || yy2arr3156 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn3156 = 0
|
|
for _, b := range yyq3156 {
|
|
if b {
|
|
yynn3156++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3156)
|
|
yynn3156 = 0
|
|
}
|
|
if yyr3156 || yy2arr3156 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3156[0] {
|
|
yym3158 := z.EncBinary()
|
|
_ = yym3158
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3156[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3159 := z.EncBinary()
|
|
_ = yym3159
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr3156 || yy2arr3156 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3156[1] {
|
|
yym3161 := z.EncBinary()
|
|
_ = yym3161
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3156[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3162 := z.EncBinary()
|
|
_ = yym3162
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr3156 || yy2arr3156 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3156[2] {
|
|
yy3164 := &x.ObjectMeta
|
|
yy3164.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3156[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3165 := &x.ObjectMeta
|
|
yy3165.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr3156 || yy2arr3156 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3156[3] {
|
|
yy3167 := &x.Spec
|
|
yy3167.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3156[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("spec"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3168 := &x.Spec
|
|
yy3168.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr3156 || yy2arr3156 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3156[4] {
|
|
yy3170 := &x.Status
|
|
yy3170.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3156[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("status"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3171 := &x.Status
|
|
yy3171.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr3156 || yy2arr3156 {
|
|
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
|
|
yym3172 := z.DecBinary()
|
|
_ = yym3172
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3173 := r.ContainerType()
|
|
if yyct3173 == codecSelferValueTypeMap1234 {
|
|
yyl3173 := r.ReadMapStart()
|
|
if yyl3173 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3173, d)
|
|
}
|
|
} else if yyct3173 == codecSelferValueTypeArray1234 {
|
|
yyl3173 := r.ReadArrayStart()
|
|
if yyl3173 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3173, 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 yys3174Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3174Slc
|
|
var yyhl3174 bool = l >= 0
|
|
for yyj3174 := 0; ; yyj3174++ {
|
|
if yyhl3174 {
|
|
if yyj3174 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3174Slc = r.DecodeBytes(yys3174Slc, true, true)
|
|
yys3174 := string(yys3174Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3174 {
|
|
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 {
|
|
yyv3177 := &x.ObjectMeta
|
|
yyv3177.CodecDecodeSelf(d)
|
|
}
|
|
case "spec":
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = NodeSpec{}
|
|
} else {
|
|
yyv3178 := &x.Spec
|
|
yyv3178.CodecDecodeSelf(d)
|
|
}
|
|
case "status":
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = NodeStatus{}
|
|
} else {
|
|
yyv3179 := &x.Status
|
|
yyv3179.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3174)
|
|
} // end switch yys3174
|
|
} // end for yyj3174
|
|
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 yyj3180 int
|
|
var yyb3180 bool
|
|
var yyhl3180 bool = l >= 0
|
|
yyj3180++
|
|
if yyhl3180 {
|
|
yyb3180 = yyj3180 > l
|
|
} else {
|
|
yyb3180 = r.CheckBreak()
|
|
}
|
|
if yyb3180 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj3180++
|
|
if yyhl3180 {
|
|
yyb3180 = yyj3180 > l
|
|
} else {
|
|
yyb3180 = r.CheckBreak()
|
|
}
|
|
if yyb3180 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj3180++
|
|
if yyhl3180 {
|
|
yyb3180 = yyj3180 > l
|
|
} else {
|
|
yyb3180 = r.CheckBreak()
|
|
}
|
|
if yyb3180 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv3183 := &x.ObjectMeta
|
|
yyv3183.CodecDecodeSelf(d)
|
|
}
|
|
yyj3180++
|
|
if yyhl3180 {
|
|
yyb3180 = yyj3180 > l
|
|
} else {
|
|
yyb3180 = r.CheckBreak()
|
|
}
|
|
if yyb3180 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = NodeSpec{}
|
|
} else {
|
|
yyv3184 := &x.Spec
|
|
yyv3184.CodecDecodeSelf(d)
|
|
}
|
|
yyj3180++
|
|
if yyhl3180 {
|
|
yyb3180 = yyj3180 > l
|
|
} else {
|
|
yyb3180 = r.CheckBreak()
|
|
}
|
|
if yyb3180 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = NodeStatus{}
|
|
} else {
|
|
yyv3185 := &x.Status
|
|
yyv3185.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj3180++
|
|
if yyhl3180 {
|
|
yyb3180 = yyj3180 > l
|
|
} else {
|
|
yyb3180 = r.CheckBreak()
|
|
}
|
|
if yyb3180 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3180-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 {
|
|
yym3186 := z.EncBinary()
|
|
_ = yym3186
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3187 := !z.EncBinary()
|
|
yy2arr3187 := z.EncBasicHandle().StructToArray
|
|
var yyq3187 [4]bool
|
|
_, _, _ = yysep3187, yyq3187, yy2arr3187
|
|
const yyr3187 bool = false
|
|
yyq3187[0] = x.Kind != ""
|
|
yyq3187[1] = x.APIVersion != ""
|
|
yyq3187[2] = true
|
|
var yynn3187 int
|
|
if yyr3187 || yy2arr3187 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn3187 = 1
|
|
for _, b := range yyq3187 {
|
|
if b {
|
|
yynn3187++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3187)
|
|
yynn3187 = 0
|
|
}
|
|
if yyr3187 || yy2arr3187 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3187[0] {
|
|
yym3189 := z.EncBinary()
|
|
_ = yym3189
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3187[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3190 := z.EncBinary()
|
|
_ = yym3190
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr3187 || yy2arr3187 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3187[1] {
|
|
yym3192 := z.EncBinary()
|
|
_ = yym3192
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3187[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3193 := z.EncBinary()
|
|
_ = yym3193
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr3187 || yy2arr3187 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3187[2] {
|
|
yy3195 := &x.ListMeta
|
|
yym3196 := z.EncBinary()
|
|
_ = yym3196
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3195) {
|
|
} else {
|
|
z.EncFallback(yy3195)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3187[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3197 := &x.ListMeta
|
|
yym3198 := z.EncBinary()
|
|
_ = yym3198
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3197) {
|
|
} else {
|
|
z.EncFallback(yy3197)
|
|
}
|
|
}
|
|
}
|
|
if yyr3187 || yy2arr3187 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3200 := z.EncBinary()
|
|
_ = yym3200
|
|
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 {
|
|
yym3201 := z.EncBinary()
|
|
_ = yym3201
|
|
if false {
|
|
} else {
|
|
h.encSliceNode(([]Node)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr3187 || yy2arr3187 {
|
|
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
|
|
yym3202 := z.DecBinary()
|
|
_ = yym3202
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3203 := r.ContainerType()
|
|
if yyct3203 == codecSelferValueTypeMap1234 {
|
|
yyl3203 := r.ReadMapStart()
|
|
if yyl3203 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3203, d)
|
|
}
|
|
} else if yyct3203 == codecSelferValueTypeArray1234 {
|
|
yyl3203 := r.ReadArrayStart()
|
|
if yyl3203 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3203, 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 yys3204Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3204Slc
|
|
var yyhl3204 bool = l >= 0
|
|
for yyj3204 := 0; ; yyj3204++ {
|
|
if yyhl3204 {
|
|
if yyj3204 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3204Slc = r.DecodeBytes(yys3204Slc, true, true)
|
|
yys3204 := string(yys3204Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3204 {
|
|
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 {
|
|
yyv3207 := &x.ListMeta
|
|
yym3208 := z.DecBinary()
|
|
_ = yym3208
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3207) {
|
|
} else {
|
|
z.DecFallback(yyv3207, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv3209 := &x.Items
|
|
yym3210 := z.DecBinary()
|
|
_ = yym3210
|
|
if false {
|
|
} else {
|
|
h.decSliceNode((*[]Node)(yyv3209), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3204)
|
|
} // end switch yys3204
|
|
} // end for yyj3204
|
|
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 yyj3211 int
|
|
var yyb3211 bool
|
|
var yyhl3211 bool = l >= 0
|
|
yyj3211++
|
|
if yyhl3211 {
|
|
yyb3211 = yyj3211 > l
|
|
} else {
|
|
yyb3211 = r.CheckBreak()
|
|
}
|
|
if yyb3211 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj3211++
|
|
if yyhl3211 {
|
|
yyb3211 = yyj3211 > l
|
|
} else {
|
|
yyb3211 = r.CheckBreak()
|
|
}
|
|
if yyb3211 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj3211++
|
|
if yyhl3211 {
|
|
yyb3211 = yyj3211 > l
|
|
} else {
|
|
yyb3211 = r.CheckBreak()
|
|
}
|
|
if yyb3211 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv3214 := &x.ListMeta
|
|
yym3215 := z.DecBinary()
|
|
_ = yym3215
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3214) {
|
|
} else {
|
|
z.DecFallback(yyv3214, false)
|
|
}
|
|
}
|
|
yyj3211++
|
|
if yyhl3211 {
|
|
yyb3211 = yyj3211 > l
|
|
} else {
|
|
yyb3211 = r.CheckBreak()
|
|
}
|
|
if yyb3211 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv3216 := &x.Items
|
|
yym3217 := z.DecBinary()
|
|
_ = yym3217
|
|
if false {
|
|
} else {
|
|
h.decSliceNode((*[]Node)(yyv3216), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj3211++
|
|
if yyhl3211 {
|
|
yyb3211 = yyj3211 > l
|
|
} else {
|
|
yyb3211 = r.CheckBreak()
|
|
}
|
|
if yyb3211 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3211-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 {
|
|
yym3218 := z.EncBinary()
|
|
_ = yym3218
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3219 := !z.EncBinary()
|
|
yy2arr3219 := z.EncBasicHandle().StructToArray
|
|
var yyq3219 [1]bool
|
|
_, _, _ = yysep3219, yyq3219, yy2arr3219
|
|
const yyr3219 bool = false
|
|
var yynn3219 int
|
|
if yyr3219 || yy2arr3219 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn3219 = 1
|
|
for _, b := range yyq3219 {
|
|
if b {
|
|
yynn3219++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3219)
|
|
yynn3219 = 0
|
|
}
|
|
if yyr3219 || yy2arr3219 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Finalizers == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3221 := z.EncBinary()
|
|
_ = yym3221
|
|
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 {
|
|
yym3222 := z.EncBinary()
|
|
_ = yym3222
|
|
if false {
|
|
} else {
|
|
h.encSliceFinalizerName(([]FinalizerName)(x.Finalizers), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr3219 || yy2arr3219 {
|
|
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
|
|
yym3223 := z.DecBinary()
|
|
_ = yym3223
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3224 := r.ContainerType()
|
|
if yyct3224 == codecSelferValueTypeMap1234 {
|
|
yyl3224 := r.ReadMapStart()
|
|
if yyl3224 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3224, d)
|
|
}
|
|
} else if yyct3224 == codecSelferValueTypeArray1234 {
|
|
yyl3224 := r.ReadArrayStart()
|
|
if yyl3224 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3224, 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 yys3225Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3225Slc
|
|
var yyhl3225 bool = l >= 0
|
|
for yyj3225 := 0; ; yyj3225++ {
|
|
if yyhl3225 {
|
|
if yyj3225 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3225Slc = r.DecodeBytes(yys3225Slc, true, true)
|
|
yys3225 := string(yys3225Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3225 {
|
|
case "Finalizers":
|
|
if r.TryDecodeAsNil() {
|
|
x.Finalizers = nil
|
|
} else {
|
|
yyv3226 := &x.Finalizers
|
|
yym3227 := z.DecBinary()
|
|
_ = yym3227
|
|
if false {
|
|
} else {
|
|
h.decSliceFinalizerName((*[]FinalizerName)(yyv3226), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3225)
|
|
} // end switch yys3225
|
|
} // end for yyj3225
|
|
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 yyj3228 int
|
|
var yyb3228 bool
|
|
var yyhl3228 bool = l >= 0
|
|
yyj3228++
|
|
if yyhl3228 {
|
|
yyb3228 = yyj3228 > l
|
|
} else {
|
|
yyb3228 = r.CheckBreak()
|
|
}
|
|
if yyb3228 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Finalizers = nil
|
|
} else {
|
|
yyv3229 := &x.Finalizers
|
|
yym3230 := z.DecBinary()
|
|
_ = yym3230
|
|
if false {
|
|
} else {
|
|
h.decSliceFinalizerName((*[]FinalizerName)(yyv3229), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj3228++
|
|
if yyhl3228 {
|
|
yyb3228 = yyj3228 > l
|
|
} else {
|
|
yyb3228 = r.CheckBreak()
|
|
}
|
|
if yyb3228 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3228-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x FinalizerName) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym3231 := z.EncBinary()
|
|
_ = yym3231
|
|
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
|
|
yym3232 := z.DecBinary()
|
|
_ = yym3232
|
|
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 {
|
|
yym3233 := z.EncBinary()
|
|
_ = yym3233
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3234 := !z.EncBinary()
|
|
yy2arr3234 := z.EncBasicHandle().StructToArray
|
|
var yyq3234 [1]bool
|
|
_, _, _ = yysep3234, yyq3234, yy2arr3234
|
|
const yyr3234 bool = false
|
|
yyq3234[0] = x.Phase != ""
|
|
var yynn3234 int
|
|
if yyr3234 || yy2arr3234 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn3234 = 0
|
|
for _, b := range yyq3234 {
|
|
if b {
|
|
yynn3234++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3234)
|
|
yynn3234 = 0
|
|
}
|
|
if yyr3234 || yy2arr3234 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3234[0] {
|
|
x.Phase.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3234[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("phase"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Phase.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr3234 || yy2arr3234 {
|
|
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
|
|
yym3236 := z.DecBinary()
|
|
_ = yym3236
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3237 := r.ContainerType()
|
|
if yyct3237 == codecSelferValueTypeMap1234 {
|
|
yyl3237 := r.ReadMapStart()
|
|
if yyl3237 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3237, d)
|
|
}
|
|
} else if yyct3237 == codecSelferValueTypeArray1234 {
|
|
yyl3237 := r.ReadArrayStart()
|
|
if yyl3237 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3237, 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 yys3238Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3238Slc
|
|
var yyhl3238 bool = l >= 0
|
|
for yyj3238 := 0; ; yyj3238++ {
|
|
if yyhl3238 {
|
|
if yyj3238 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3238Slc = r.DecodeBytes(yys3238Slc, true, true)
|
|
yys3238 := string(yys3238Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3238 {
|
|
case "phase":
|
|
if r.TryDecodeAsNil() {
|
|
x.Phase = ""
|
|
} else {
|
|
x.Phase = NamespacePhase(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3238)
|
|
} // end switch yys3238
|
|
} // end for yyj3238
|
|
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 yyj3240 int
|
|
var yyb3240 bool
|
|
var yyhl3240 bool = l >= 0
|
|
yyj3240++
|
|
if yyhl3240 {
|
|
yyb3240 = yyj3240 > l
|
|
} else {
|
|
yyb3240 = r.CheckBreak()
|
|
}
|
|
if yyb3240 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Phase = ""
|
|
} else {
|
|
x.Phase = NamespacePhase(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj3240++
|
|
if yyhl3240 {
|
|
yyb3240 = yyj3240 > l
|
|
} else {
|
|
yyb3240 = r.CheckBreak()
|
|
}
|
|
if yyb3240 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3240-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x NamespacePhase) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym3242 := z.EncBinary()
|
|
_ = yym3242
|
|
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
|
|
yym3243 := z.DecBinary()
|
|
_ = yym3243
|
|
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 {
|
|
yym3244 := z.EncBinary()
|
|
_ = yym3244
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3245 := !z.EncBinary()
|
|
yy2arr3245 := z.EncBasicHandle().StructToArray
|
|
var yyq3245 [5]bool
|
|
_, _, _ = yysep3245, yyq3245, yy2arr3245
|
|
const yyr3245 bool = false
|
|
yyq3245[0] = x.Kind != ""
|
|
yyq3245[1] = x.APIVersion != ""
|
|
yyq3245[2] = true
|
|
yyq3245[3] = true
|
|
yyq3245[4] = true
|
|
var yynn3245 int
|
|
if yyr3245 || yy2arr3245 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn3245 = 0
|
|
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.ObjectMeta
|
|
yy3253.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3245[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3254 := &x.ObjectMeta
|
|
yy3254.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr3245 || yy2arr3245 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3245[3] {
|
|
yy3256 := &x.Spec
|
|
yy3256.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3245[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("spec"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3257 := &x.Spec
|
|
yy3257.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr3245 || yy2arr3245 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3245[4] {
|
|
yy3259 := &x.Status
|
|
yy3259.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3245[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("status"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3260 := &x.Status
|
|
yy3260.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr3245 || yy2arr3245 {
|
|
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
|
|
yym3261 := z.DecBinary()
|
|
_ = yym3261
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3262 := r.ContainerType()
|
|
if yyct3262 == codecSelferValueTypeMap1234 {
|
|
yyl3262 := r.ReadMapStart()
|
|
if yyl3262 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3262, d)
|
|
}
|
|
} else if yyct3262 == codecSelferValueTypeArray1234 {
|
|
yyl3262 := r.ReadArrayStart()
|
|
if yyl3262 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3262, 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 yys3263Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3263Slc
|
|
var yyhl3263 bool = l >= 0
|
|
for yyj3263 := 0; ; yyj3263++ {
|
|
if yyhl3263 {
|
|
if yyj3263 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3263Slc = r.DecodeBytes(yys3263Slc, true, true)
|
|
yys3263 := string(yys3263Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3263 {
|
|
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 {
|
|
yyv3266 := &x.ObjectMeta
|
|
yyv3266.CodecDecodeSelf(d)
|
|
}
|
|
case "spec":
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = NamespaceSpec{}
|
|
} else {
|
|
yyv3267 := &x.Spec
|
|
yyv3267.CodecDecodeSelf(d)
|
|
}
|
|
case "status":
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = NamespaceStatus{}
|
|
} else {
|
|
yyv3268 := &x.Status
|
|
yyv3268.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3263)
|
|
} // end switch yys3263
|
|
} // end for yyj3263
|
|
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 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.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv3272 := &x.ObjectMeta
|
|
yyv3272.CodecDecodeSelf(d)
|
|
}
|
|
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.Spec = NamespaceSpec{}
|
|
} else {
|
|
yyv3273 := &x.Spec
|
|
yyv3273.CodecDecodeSelf(d)
|
|
}
|
|
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.Status = NamespaceStatus{}
|
|
} else {
|
|
yyv3274 := &x.Status
|
|
yyv3274.CodecDecodeSelf(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 *NamespaceList) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3275 := z.EncBinary()
|
|
_ = yym3275
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3276 := !z.EncBinary()
|
|
yy2arr3276 := z.EncBasicHandle().StructToArray
|
|
var yyq3276 [4]bool
|
|
_, _, _ = yysep3276, yyq3276, yy2arr3276
|
|
const yyr3276 bool = false
|
|
yyq3276[0] = x.Kind != ""
|
|
yyq3276[1] = x.APIVersion != ""
|
|
yyq3276[2] = true
|
|
var yynn3276 int
|
|
if yyr3276 || yy2arr3276 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn3276 = 1
|
|
for _, b := range yyq3276 {
|
|
if b {
|
|
yynn3276++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3276)
|
|
yynn3276 = 0
|
|
}
|
|
if yyr3276 || yy2arr3276 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3276[0] {
|
|
yym3278 := z.EncBinary()
|
|
_ = yym3278
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3276[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3279 := z.EncBinary()
|
|
_ = yym3279
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr3276 || yy2arr3276 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3276[1] {
|
|
yym3281 := z.EncBinary()
|
|
_ = yym3281
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3276[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3282 := z.EncBinary()
|
|
_ = yym3282
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr3276 || yy2arr3276 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3276[2] {
|
|
yy3284 := &x.ListMeta
|
|
yym3285 := z.EncBinary()
|
|
_ = yym3285
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3284) {
|
|
} else {
|
|
z.EncFallback(yy3284)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3276[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3286 := &x.ListMeta
|
|
yym3287 := z.EncBinary()
|
|
_ = yym3287
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3286) {
|
|
} else {
|
|
z.EncFallback(yy3286)
|
|
}
|
|
}
|
|
}
|
|
if yyr3276 || yy2arr3276 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3289 := z.EncBinary()
|
|
_ = yym3289
|
|
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 {
|
|
yym3290 := z.EncBinary()
|
|
_ = yym3290
|
|
if false {
|
|
} else {
|
|
h.encSliceNamespace(([]Namespace)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr3276 || yy2arr3276 {
|
|
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
|
|
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 *NamespaceList) 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.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv3296 := &x.ListMeta
|
|
yym3297 := z.DecBinary()
|
|
_ = yym3297
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3296) {
|
|
} else {
|
|
z.DecFallback(yyv3296, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv3298 := &x.Items
|
|
yym3299 := z.DecBinary()
|
|
_ = yym3299
|
|
if false {
|
|
} else {
|
|
h.decSliceNamespace((*[]Namespace)(yyv3298), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3293)
|
|
} // end switch yys3293
|
|
} // end for yyj3293
|
|
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 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.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv3303 := &x.ListMeta
|
|
yym3304 := z.DecBinary()
|
|
_ = yym3304
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3303) {
|
|
} else {
|
|
z.DecFallback(yyv3303, false)
|
|
}
|
|
}
|
|
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.Items = nil
|
|
} else {
|
|
yyv3305 := &x.Items
|
|
yym3306 := z.DecBinary()
|
|
_ = yym3306
|
|
if false {
|
|
} else {
|
|
h.decSliceNamespace((*[]Namespace)(yyv3305), d)
|
|
}
|
|
}
|
|
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 *Binding) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3307 := z.EncBinary()
|
|
_ = yym3307
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3308 := !z.EncBinary()
|
|
yy2arr3308 := z.EncBasicHandle().StructToArray
|
|
var yyq3308 [4]bool
|
|
_, _, _ = yysep3308, yyq3308, yy2arr3308
|
|
const yyr3308 bool = false
|
|
yyq3308[0] = x.Kind != ""
|
|
yyq3308[1] = x.APIVersion != ""
|
|
yyq3308[2] = true
|
|
var yynn3308 int
|
|
if yyr3308 || yy2arr3308 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn3308 = 1
|
|
for _, b := range yyq3308 {
|
|
if b {
|
|
yynn3308++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3308)
|
|
yynn3308 = 0
|
|
}
|
|
if yyr3308 || yy2arr3308 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3308[0] {
|
|
yym3310 := z.EncBinary()
|
|
_ = yym3310
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3308[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3311 := z.EncBinary()
|
|
_ = yym3311
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr3308 || yy2arr3308 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3308[1] {
|
|
yym3313 := z.EncBinary()
|
|
_ = yym3313
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3308[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3314 := z.EncBinary()
|
|
_ = yym3314
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr3308 || yy2arr3308 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3308[2] {
|
|
yy3316 := &x.ObjectMeta
|
|
yy3316.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3308[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3317 := &x.ObjectMeta
|
|
yy3317.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr3308 || yy2arr3308 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy3319 := &x.Target
|
|
yy3319.CodecEncodeSelf(e)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("target"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3320 := &x.Target
|
|
yy3320.CodecEncodeSelf(e)
|
|
}
|
|
if yyr3308 || yy2arr3308 {
|
|
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
|
|
yym3321 := z.DecBinary()
|
|
_ = yym3321
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3322 := r.ContainerType()
|
|
if yyct3322 == codecSelferValueTypeMap1234 {
|
|
yyl3322 := r.ReadMapStart()
|
|
if yyl3322 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3322, d)
|
|
}
|
|
} else if yyct3322 == codecSelferValueTypeArray1234 {
|
|
yyl3322 := r.ReadArrayStart()
|
|
if yyl3322 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3322, 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 yys3323Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3323Slc
|
|
var yyhl3323 bool = l >= 0
|
|
for yyj3323 := 0; ; yyj3323++ {
|
|
if yyhl3323 {
|
|
if yyj3323 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3323Slc = r.DecodeBytes(yys3323Slc, true, true)
|
|
yys3323 := string(yys3323Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3323 {
|
|
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 {
|
|
yyv3326 := &x.ObjectMeta
|
|
yyv3326.CodecDecodeSelf(d)
|
|
}
|
|
case "target":
|
|
if r.TryDecodeAsNil() {
|
|
x.Target = ObjectReference{}
|
|
} else {
|
|
yyv3327 := &x.Target
|
|
yyv3327.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3323)
|
|
} // end switch yys3323
|
|
} // end for yyj3323
|
|
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 yyj3328 int
|
|
var yyb3328 bool
|
|
var yyhl3328 bool = l >= 0
|
|
yyj3328++
|
|
if yyhl3328 {
|
|
yyb3328 = yyj3328 > l
|
|
} else {
|
|
yyb3328 = r.CheckBreak()
|
|
}
|
|
if yyb3328 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj3328++
|
|
if yyhl3328 {
|
|
yyb3328 = yyj3328 > l
|
|
} else {
|
|
yyb3328 = r.CheckBreak()
|
|
}
|
|
if yyb3328 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj3328++
|
|
if yyhl3328 {
|
|
yyb3328 = yyj3328 > l
|
|
} else {
|
|
yyb3328 = r.CheckBreak()
|
|
}
|
|
if yyb3328 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv3331 := &x.ObjectMeta
|
|
yyv3331.CodecDecodeSelf(d)
|
|
}
|
|
yyj3328++
|
|
if yyhl3328 {
|
|
yyb3328 = yyj3328 > l
|
|
} else {
|
|
yyb3328 = r.CheckBreak()
|
|
}
|
|
if yyb3328 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Target = ObjectReference{}
|
|
} else {
|
|
yyv3332 := &x.Target
|
|
yyv3332.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj3328++
|
|
if yyhl3328 {
|
|
yyb3328 = yyj3328 > l
|
|
} else {
|
|
yyb3328 = r.CheckBreak()
|
|
}
|
|
if yyb3328 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3328-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *Preconditions) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3333 := z.EncBinary()
|
|
_ = yym3333
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3334 := !z.EncBinary()
|
|
yy2arr3334 := z.EncBasicHandle().StructToArray
|
|
var yyq3334 [1]bool
|
|
_, _, _ = yysep3334, yyq3334, yy2arr3334
|
|
const yyr3334 bool = false
|
|
yyq3334[0] = x.UID != nil
|
|
var yynn3334 int
|
|
if yyr3334 || yy2arr3334 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn3334 = 0
|
|
for _, b := range yyq3334 {
|
|
if b {
|
|
yynn3334++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3334)
|
|
yynn3334 = 0
|
|
}
|
|
if yyr3334 || yy2arr3334 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3334[0] {
|
|
if x.UID == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy3336 := *x.UID
|
|
yym3337 := z.EncBinary()
|
|
_ = yym3337
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3336) {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(yy3336))
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3334[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("uid"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.UID == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy3338 := *x.UID
|
|
yym3339 := z.EncBinary()
|
|
_ = yym3339
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3338) {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(yy3338))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr3334 || yy2arr3334 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *Preconditions) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym3340 := z.DecBinary()
|
|
_ = yym3340
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3341 := r.ContainerType()
|
|
if yyct3341 == codecSelferValueTypeMap1234 {
|
|
yyl3341 := r.ReadMapStart()
|
|
if yyl3341 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3341, d)
|
|
}
|
|
} else if yyct3341 == codecSelferValueTypeArray1234 {
|
|
yyl3341 := r.ReadArrayStart()
|
|
if yyl3341 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3341, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *Preconditions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys3342Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3342Slc
|
|
var yyhl3342 bool = l >= 0
|
|
for yyj3342 := 0; ; yyj3342++ {
|
|
if yyhl3342 {
|
|
if yyj3342 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3342Slc = r.DecodeBytes(yys3342Slc, true, true)
|
|
yys3342 := string(yys3342Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3342 {
|
|
case "uid":
|
|
if r.TryDecodeAsNil() {
|
|
if x.UID != nil {
|
|
x.UID = nil
|
|
}
|
|
} else {
|
|
if x.UID == nil {
|
|
x.UID = new(pkg1_types.UID)
|
|
}
|
|
yym3344 := z.DecBinary()
|
|
_ = yym3344
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x.UID) {
|
|
} else {
|
|
*((*string)(x.UID)) = r.DecodeString()
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3342)
|
|
} // end switch yys3342
|
|
} // end for yyj3342
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *Preconditions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj3345 int
|
|
var yyb3345 bool
|
|
var yyhl3345 bool = l >= 0
|
|
yyj3345++
|
|
if yyhl3345 {
|
|
yyb3345 = yyj3345 > l
|
|
} else {
|
|
yyb3345 = r.CheckBreak()
|
|
}
|
|
if yyb3345 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.UID != nil {
|
|
x.UID = nil
|
|
}
|
|
} else {
|
|
if x.UID == nil {
|
|
x.UID = new(pkg1_types.UID)
|
|
}
|
|
yym3347 := z.DecBinary()
|
|
_ = yym3347
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x.UID) {
|
|
} else {
|
|
*((*string)(x.UID)) = r.DecodeString()
|
|
}
|
|
}
|
|
for {
|
|
yyj3345++
|
|
if yyhl3345 {
|
|
yyb3345 = yyj3345 > l
|
|
} else {
|
|
yyb3345 = r.CheckBreak()
|
|
}
|
|
if yyb3345 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3345-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 {
|
|
yym3348 := z.EncBinary()
|
|
_ = yym3348
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3349 := !z.EncBinary()
|
|
yy2arr3349 := z.EncBasicHandle().StructToArray
|
|
var yyq3349 [5]bool
|
|
_, _, _ = yysep3349, yyq3349, yy2arr3349
|
|
const yyr3349 bool = false
|
|
yyq3349[0] = x.Kind != ""
|
|
yyq3349[1] = x.APIVersion != ""
|
|
yyq3349[2] = x.GracePeriodSeconds != nil
|
|
yyq3349[3] = x.Preconditions != nil
|
|
yyq3349[4] = x.OrphanDependents != nil
|
|
var yynn3349 int
|
|
if yyr3349 || yy2arr3349 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn3349 = 0
|
|
for _, b := range yyq3349 {
|
|
if b {
|
|
yynn3349++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3349)
|
|
yynn3349 = 0
|
|
}
|
|
if yyr3349 || yy2arr3349 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3349[0] {
|
|
yym3351 := z.EncBinary()
|
|
_ = yym3351
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3349[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3352 := z.EncBinary()
|
|
_ = yym3352
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr3349 || yy2arr3349 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3349[1] {
|
|
yym3354 := z.EncBinary()
|
|
_ = yym3354
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3349[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3355 := z.EncBinary()
|
|
_ = yym3355
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr3349 || yy2arr3349 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3349[2] {
|
|
if x.GracePeriodSeconds == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy3357 := *x.GracePeriodSeconds
|
|
yym3358 := z.EncBinary()
|
|
_ = yym3358
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy3357))
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3349[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("gracePeriodSeconds"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.GracePeriodSeconds == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy3359 := *x.GracePeriodSeconds
|
|
yym3360 := z.EncBinary()
|
|
_ = yym3360
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy3359))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr3349 || yy2arr3349 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3349[3] {
|
|
if x.Preconditions == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Preconditions.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3349[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("preconditions"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Preconditions == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Preconditions.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
}
|
|
if yyr3349 || yy2arr3349 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3349[4] {
|
|
if x.OrphanDependents == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy3363 := *x.OrphanDependents
|
|
yym3364 := z.EncBinary()
|
|
_ = yym3364
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(yy3363))
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3349[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("orphanDependents"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.OrphanDependents == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy3365 := *x.OrphanDependents
|
|
yym3366 := z.EncBinary()
|
|
_ = yym3366
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(yy3365))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr3349 || yy2arr3349 {
|
|
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
|
|
yym3367 := z.DecBinary()
|
|
_ = yym3367
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3368 := r.ContainerType()
|
|
if yyct3368 == codecSelferValueTypeMap1234 {
|
|
yyl3368 := r.ReadMapStart()
|
|
if yyl3368 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3368, d)
|
|
}
|
|
} else if yyct3368 == codecSelferValueTypeArray1234 {
|
|
yyl3368 := r.ReadArrayStart()
|
|
if yyl3368 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3368, 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 yys3369Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3369Slc
|
|
var yyhl3369 bool = l >= 0
|
|
for yyj3369 := 0; ; yyj3369++ {
|
|
if yyhl3369 {
|
|
if yyj3369 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3369Slc = r.DecodeBytes(yys3369Slc, true, true)
|
|
yys3369 := string(yys3369Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3369 {
|
|
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)
|
|
}
|
|
yym3373 := z.DecBinary()
|
|
_ = yym3373
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
case "preconditions":
|
|
if r.TryDecodeAsNil() {
|
|
if x.Preconditions != nil {
|
|
x.Preconditions = nil
|
|
}
|
|
} else {
|
|
if x.Preconditions == nil {
|
|
x.Preconditions = new(Preconditions)
|
|
}
|
|
x.Preconditions.CodecDecodeSelf(d)
|
|
}
|
|
case "orphanDependents":
|
|
if r.TryDecodeAsNil() {
|
|
if x.OrphanDependents != nil {
|
|
x.OrphanDependents = nil
|
|
}
|
|
} else {
|
|
if x.OrphanDependents == nil {
|
|
x.OrphanDependents = new(bool)
|
|
}
|
|
yym3376 := z.DecBinary()
|
|
_ = yym3376
|
|
if false {
|
|
} else {
|
|
*((*bool)(x.OrphanDependents)) = r.DecodeBool()
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3369)
|
|
} // end switch yys3369
|
|
} // end for yyj3369
|
|
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 yyj3377 int
|
|
var yyb3377 bool
|
|
var yyhl3377 bool = l >= 0
|
|
yyj3377++
|
|
if yyhl3377 {
|
|
yyb3377 = yyj3377 > l
|
|
} else {
|
|
yyb3377 = r.CheckBreak()
|
|
}
|
|
if yyb3377 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj3377++
|
|
if yyhl3377 {
|
|
yyb3377 = yyj3377 > l
|
|
} else {
|
|
yyb3377 = r.CheckBreak()
|
|
}
|
|
if yyb3377 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj3377++
|
|
if yyhl3377 {
|
|
yyb3377 = yyj3377 > l
|
|
} else {
|
|
yyb3377 = r.CheckBreak()
|
|
}
|
|
if yyb3377 {
|
|
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)
|
|
}
|
|
yym3381 := z.DecBinary()
|
|
_ = yym3381
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
yyj3377++
|
|
if yyhl3377 {
|
|
yyb3377 = yyj3377 > l
|
|
} else {
|
|
yyb3377 = r.CheckBreak()
|
|
}
|
|
if yyb3377 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.Preconditions != nil {
|
|
x.Preconditions = nil
|
|
}
|
|
} else {
|
|
if x.Preconditions == nil {
|
|
x.Preconditions = new(Preconditions)
|
|
}
|
|
x.Preconditions.CodecDecodeSelf(d)
|
|
}
|
|
yyj3377++
|
|
if yyhl3377 {
|
|
yyb3377 = yyj3377 > l
|
|
} else {
|
|
yyb3377 = r.CheckBreak()
|
|
}
|
|
if yyb3377 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.OrphanDependents != nil {
|
|
x.OrphanDependents = nil
|
|
}
|
|
} else {
|
|
if x.OrphanDependents == nil {
|
|
x.OrphanDependents = new(bool)
|
|
}
|
|
yym3384 := z.DecBinary()
|
|
_ = yym3384
|
|
if false {
|
|
} else {
|
|
*((*bool)(x.OrphanDependents)) = r.DecodeBool()
|
|
}
|
|
}
|
|
for {
|
|
yyj3377++
|
|
if yyhl3377 {
|
|
yyb3377 = yyj3377 > l
|
|
} else {
|
|
yyb3377 = r.CheckBreak()
|
|
}
|
|
if yyb3377 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3377-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 {
|
|
yym3385 := z.EncBinary()
|
|
_ = yym3385
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3386 := !z.EncBinary()
|
|
yy2arr3386 := z.EncBasicHandle().StructToArray
|
|
var yyq3386 [4]bool
|
|
_, _, _ = yysep3386, yyq3386, yy2arr3386
|
|
const yyr3386 bool = false
|
|
yyq3386[0] = x.Kind != ""
|
|
yyq3386[1] = x.APIVersion != ""
|
|
var yynn3386 int
|
|
if yyr3386 || yy2arr3386 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn3386 = 2
|
|
for _, b := range yyq3386 {
|
|
if b {
|
|
yynn3386++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3386)
|
|
yynn3386 = 0
|
|
}
|
|
if yyr3386 || yy2arr3386 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3386[0] {
|
|
yym3388 := z.EncBinary()
|
|
_ = yym3388
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3386[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3389 := z.EncBinary()
|
|
_ = yym3389
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr3386 || yy2arr3386 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3386[1] {
|
|
yym3391 := z.EncBinary()
|
|
_ = yym3391
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3386[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3392 := z.EncBinary()
|
|
_ = yym3392
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr3386 || yy2arr3386 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym3394 := z.EncBinary()
|
|
_ = yym3394
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Export))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("export"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3395 := z.EncBinary()
|
|
_ = yym3395
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Export))
|
|
}
|
|
}
|
|
if yyr3386 || yy2arr3386 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym3397 := z.EncBinary()
|
|
_ = yym3397
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Exact))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("exact"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3398 := z.EncBinary()
|
|
_ = yym3398
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Exact))
|
|
}
|
|
}
|
|
if yyr3386 || yy2arr3386 {
|
|
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
|
|
yym3399 := z.DecBinary()
|
|
_ = yym3399
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3400 := r.ContainerType()
|
|
if yyct3400 == codecSelferValueTypeMap1234 {
|
|
yyl3400 := r.ReadMapStart()
|
|
if yyl3400 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3400, d)
|
|
}
|
|
} else if yyct3400 == codecSelferValueTypeArray1234 {
|
|
yyl3400 := r.ReadArrayStart()
|
|
if yyl3400 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3400, 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 yys3401Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3401Slc
|
|
var yyhl3401 bool = l >= 0
|
|
for yyj3401 := 0; ; yyj3401++ {
|
|
if yyhl3401 {
|
|
if yyj3401 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3401Slc = r.DecodeBytes(yys3401Slc, true, true)
|
|
yys3401 := string(yys3401Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3401 {
|
|
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, yys3401)
|
|
} // end switch yys3401
|
|
} // end for yyj3401
|
|
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 yyj3406 int
|
|
var yyb3406 bool
|
|
var yyhl3406 bool = l >= 0
|
|
yyj3406++
|
|
if yyhl3406 {
|
|
yyb3406 = yyj3406 > l
|
|
} else {
|
|
yyb3406 = r.CheckBreak()
|
|
}
|
|
if yyb3406 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj3406++
|
|
if yyhl3406 {
|
|
yyb3406 = yyj3406 > l
|
|
} else {
|
|
yyb3406 = r.CheckBreak()
|
|
}
|
|
if yyb3406 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj3406++
|
|
if yyhl3406 {
|
|
yyb3406 = yyj3406 > l
|
|
} else {
|
|
yyb3406 = r.CheckBreak()
|
|
}
|
|
if yyb3406 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Export = false
|
|
} else {
|
|
x.Export = bool(r.DecodeBool())
|
|
}
|
|
yyj3406++
|
|
if yyhl3406 {
|
|
yyb3406 = yyj3406 > l
|
|
} else {
|
|
yyb3406 = r.CheckBreak()
|
|
}
|
|
if yyb3406 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Exact = false
|
|
} else {
|
|
x.Exact = bool(r.DecodeBool())
|
|
}
|
|
for {
|
|
yyj3406++
|
|
if yyhl3406 {
|
|
yyb3406 = yyj3406 > l
|
|
} else {
|
|
yyb3406 = r.CheckBreak()
|
|
}
|
|
if yyb3406 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3406-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 {
|
|
yym3411 := z.EncBinary()
|
|
_ = yym3411
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3412 := !z.EncBinary()
|
|
yy2arr3412 := z.EncBasicHandle().StructToArray
|
|
var yyq3412 [7]bool
|
|
_, _, _ = yysep3412, yyq3412, yy2arr3412
|
|
const yyr3412 bool = false
|
|
yyq3412[0] = x.Kind != ""
|
|
yyq3412[1] = x.APIVersion != ""
|
|
var yynn3412 int
|
|
if yyr3412 || yy2arr3412 {
|
|
r.EncodeArrayStart(7)
|
|
} else {
|
|
yynn3412 = 5
|
|
for _, b := range yyq3412 {
|
|
if b {
|
|
yynn3412++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3412)
|
|
yynn3412 = 0
|
|
}
|
|
if yyr3412 || yy2arr3412 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3412[0] {
|
|
yym3414 := z.EncBinary()
|
|
_ = yym3414
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3412[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3415 := z.EncBinary()
|
|
_ = yym3415
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr3412 || yy2arr3412 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3412[1] {
|
|
yym3417 := z.EncBinary()
|
|
_ = yym3417
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3412[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3418 := z.EncBinary()
|
|
_ = yym3418
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr3412 || yy2arr3412 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.LabelSelector == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3420 := z.EncBinary()
|
|
_ = yym3420
|
|
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 {
|
|
yym3421 := z.EncBinary()
|
|
_ = yym3421
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x.LabelSelector) {
|
|
} else {
|
|
z.EncFallback(x.LabelSelector)
|
|
}
|
|
}
|
|
}
|
|
if yyr3412 || yy2arr3412 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.FieldSelector == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3423 := z.EncBinary()
|
|
_ = yym3423
|
|
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 {
|
|
yym3424 := z.EncBinary()
|
|
_ = yym3424
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x.FieldSelector) {
|
|
} else {
|
|
z.EncFallback(x.FieldSelector)
|
|
}
|
|
}
|
|
}
|
|
if yyr3412 || yy2arr3412 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym3426 := z.EncBinary()
|
|
_ = yym3426
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Watch))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("Watch"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3427 := z.EncBinary()
|
|
_ = yym3427
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Watch))
|
|
}
|
|
}
|
|
if yyr3412 || yy2arr3412 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym3429 := z.EncBinary()
|
|
_ = yym3429
|
|
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)
|
|
yym3430 := z.EncBinary()
|
|
_ = yym3430
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
|
|
}
|
|
}
|
|
if yyr3412 || yy2arr3412 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.TimeoutSeconds == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy3432 := *x.TimeoutSeconds
|
|
yym3433 := z.EncBinary()
|
|
_ = yym3433
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy3432))
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("TimeoutSeconds"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.TimeoutSeconds == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy3434 := *x.TimeoutSeconds
|
|
yym3435 := z.EncBinary()
|
|
_ = yym3435
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy3434))
|
|
}
|
|
}
|
|
}
|
|
if yyr3412 || yy2arr3412 {
|
|
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
|
|
yym3436 := z.DecBinary()
|
|
_ = yym3436
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3437 := r.ContainerType()
|
|
if yyct3437 == codecSelferValueTypeMap1234 {
|
|
yyl3437 := r.ReadMapStart()
|
|
if yyl3437 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3437, d)
|
|
}
|
|
} else if yyct3437 == codecSelferValueTypeArray1234 {
|
|
yyl3437 := r.ReadArrayStart()
|
|
if yyl3437 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3437, 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 yys3438Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3438Slc
|
|
var yyhl3438 bool = l >= 0
|
|
for yyj3438 := 0; ; yyj3438++ {
|
|
if yyhl3438 {
|
|
if yyj3438 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3438Slc = r.DecodeBytes(yys3438Slc, true, true)
|
|
yys3438 := string(yys3438Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3438 {
|
|
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 {
|
|
yyv3441 := &x.LabelSelector
|
|
yym3442 := z.DecBinary()
|
|
_ = yym3442
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3441) {
|
|
} else {
|
|
z.DecFallback(yyv3441, true)
|
|
}
|
|
}
|
|
case "FieldSelector":
|
|
if r.TryDecodeAsNil() {
|
|
x.FieldSelector = nil
|
|
} else {
|
|
yyv3443 := &x.FieldSelector
|
|
yym3444 := z.DecBinary()
|
|
_ = yym3444
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3443) {
|
|
} else {
|
|
z.DecFallback(yyv3443, 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)
|
|
}
|
|
yym3448 := z.DecBinary()
|
|
_ = yym3448
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3438)
|
|
} // end switch yys3438
|
|
} // end for yyj3438
|
|
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 yyj3449 int
|
|
var yyb3449 bool
|
|
var yyhl3449 bool = l >= 0
|
|
yyj3449++
|
|
if yyhl3449 {
|
|
yyb3449 = yyj3449 > l
|
|
} else {
|
|
yyb3449 = r.CheckBreak()
|
|
}
|
|
if yyb3449 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj3449++
|
|
if yyhl3449 {
|
|
yyb3449 = yyj3449 > l
|
|
} else {
|
|
yyb3449 = r.CheckBreak()
|
|
}
|
|
if yyb3449 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj3449++
|
|
if yyhl3449 {
|
|
yyb3449 = yyj3449 > l
|
|
} else {
|
|
yyb3449 = r.CheckBreak()
|
|
}
|
|
if yyb3449 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.LabelSelector = nil
|
|
} else {
|
|
yyv3452 := &x.LabelSelector
|
|
yym3453 := z.DecBinary()
|
|
_ = yym3453
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3452) {
|
|
} else {
|
|
z.DecFallback(yyv3452, true)
|
|
}
|
|
}
|
|
yyj3449++
|
|
if yyhl3449 {
|
|
yyb3449 = yyj3449 > l
|
|
} else {
|
|
yyb3449 = r.CheckBreak()
|
|
}
|
|
if yyb3449 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.FieldSelector = nil
|
|
} else {
|
|
yyv3454 := &x.FieldSelector
|
|
yym3455 := z.DecBinary()
|
|
_ = yym3455
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3454) {
|
|
} else {
|
|
z.DecFallback(yyv3454, true)
|
|
}
|
|
}
|
|
yyj3449++
|
|
if yyhl3449 {
|
|
yyb3449 = yyj3449 > l
|
|
} else {
|
|
yyb3449 = r.CheckBreak()
|
|
}
|
|
if yyb3449 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Watch = false
|
|
} else {
|
|
x.Watch = bool(r.DecodeBool())
|
|
}
|
|
yyj3449++
|
|
if yyhl3449 {
|
|
yyb3449 = yyj3449 > l
|
|
} else {
|
|
yyb3449 = r.CheckBreak()
|
|
}
|
|
if yyb3449 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ResourceVersion = ""
|
|
} else {
|
|
x.ResourceVersion = string(r.DecodeString())
|
|
}
|
|
yyj3449++
|
|
if yyhl3449 {
|
|
yyb3449 = yyj3449 > l
|
|
} else {
|
|
yyb3449 = r.CheckBreak()
|
|
}
|
|
if yyb3449 {
|
|
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)
|
|
}
|
|
yym3459 := z.DecBinary()
|
|
_ = yym3459
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
for {
|
|
yyj3449++
|
|
if yyhl3449 {
|
|
yyb3449 = yyj3449 > l
|
|
} else {
|
|
yyb3449 = r.CheckBreak()
|
|
}
|
|
if yyb3449 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3449-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 {
|
|
yym3460 := z.EncBinary()
|
|
_ = yym3460
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3461 := !z.EncBinary()
|
|
yy2arr3461 := z.EncBasicHandle().StructToArray
|
|
var yyq3461 [10]bool
|
|
_, _, _ = yysep3461, yyq3461, yy2arr3461
|
|
const yyr3461 bool = false
|
|
yyq3461[0] = x.Kind != ""
|
|
yyq3461[1] = x.APIVersion != ""
|
|
var yynn3461 int
|
|
if yyr3461 || yy2arr3461 {
|
|
r.EncodeArrayStart(10)
|
|
} else {
|
|
yynn3461 = 8
|
|
for _, b := range yyq3461 {
|
|
if b {
|
|
yynn3461++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3461)
|
|
yynn3461 = 0
|
|
}
|
|
if yyr3461 || yy2arr3461 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3461[0] {
|
|
yym3463 := z.EncBinary()
|
|
_ = yym3463
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3461[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3464 := z.EncBinary()
|
|
_ = yym3464
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr3461 || yy2arr3461 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3461[1] {
|
|
yym3466 := z.EncBinary()
|
|
_ = yym3466
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3461[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3467 := z.EncBinary()
|
|
_ = yym3467
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr3461 || yy2arr3461 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym3469 := z.EncBinary()
|
|
_ = yym3469
|
|
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)
|
|
yym3470 := z.EncBinary()
|
|
_ = yym3470
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Container))
|
|
}
|
|
}
|
|
if yyr3461 || yy2arr3461 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym3472 := z.EncBinary()
|
|
_ = yym3472
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Follow))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("Follow"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3473 := z.EncBinary()
|
|
_ = yym3473
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Follow))
|
|
}
|
|
}
|
|
if yyr3461 || yy2arr3461 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym3475 := z.EncBinary()
|
|
_ = yym3475
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Previous))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("Previous"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3476 := z.EncBinary()
|
|
_ = yym3476
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Previous))
|
|
}
|
|
}
|
|
if yyr3461 || yy2arr3461 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.SinceSeconds == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy3478 := *x.SinceSeconds
|
|
yym3479 := z.EncBinary()
|
|
_ = yym3479
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy3478))
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("SinceSeconds"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.SinceSeconds == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy3480 := *x.SinceSeconds
|
|
yym3481 := z.EncBinary()
|
|
_ = yym3481
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy3480))
|
|
}
|
|
}
|
|
}
|
|
if yyr3461 || yy2arr3461 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.SinceTime == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3483 := z.EncBinary()
|
|
_ = yym3483
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x.SinceTime) {
|
|
} else if yym3483 {
|
|
z.EncBinaryMarshal(x.SinceTime)
|
|
} else if !yym3483 && 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 {
|
|
yym3484 := z.EncBinary()
|
|
_ = yym3484
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x.SinceTime) {
|
|
} else if yym3484 {
|
|
z.EncBinaryMarshal(x.SinceTime)
|
|
} else if !yym3484 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(x.SinceTime)
|
|
} else {
|
|
z.EncFallback(x.SinceTime)
|
|
}
|
|
}
|
|
}
|
|
if yyr3461 || yy2arr3461 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym3486 := z.EncBinary()
|
|
_ = yym3486
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Timestamps))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("Timestamps"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3487 := z.EncBinary()
|
|
_ = yym3487
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Timestamps))
|
|
}
|
|
}
|
|
if yyr3461 || yy2arr3461 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.TailLines == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy3489 := *x.TailLines
|
|
yym3490 := z.EncBinary()
|
|
_ = yym3490
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy3489))
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("TailLines"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.TailLines == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy3491 := *x.TailLines
|
|
yym3492 := z.EncBinary()
|
|
_ = yym3492
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy3491))
|
|
}
|
|
}
|
|
}
|
|
if yyr3461 || yy2arr3461 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.LimitBytes == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy3494 := *x.LimitBytes
|
|
yym3495 := z.EncBinary()
|
|
_ = yym3495
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy3494))
|
|
}
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("LimitBytes"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.LimitBytes == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy3496 := *x.LimitBytes
|
|
yym3497 := z.EncBinary()
|
|
_ = yym3497
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy3496))
|
|
}
|
|
}
|
|
}
|
|
if yyr3461 || yy2arr3461 {
|
|
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
|
|
yym3498 := z.DecBinary()
|
|
_ = yym3498
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3499 := r.ContainerType()
|
|
if yyct3499 == codecSelferValueTypeMap1234 {
|
|
yyl3499 := r.ReadMapStart()
|
|
if yyl3499 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3499, d)
|
|
}
|
|
} else if yyct3499 == codecSelferValueTypeArray1234 {
|
|
yyl3499 := r.ReadArrayStart()
|
|
if yyl3499 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3499, 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 yys3500Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3500Slc
|
|
var yyhl3500 bool = l >= 0
|
|
for yyj3500 := 0; ; yyj3500++ {
|
|
if yyhl3500 {
|
|
if yyj3500 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3500Slc = r.DecodeBytes(yys3500Slc, true, true)
|
|
yys3500 := string(yys3500Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3500 {
|
|
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)
|
|
}
|
|
yym3507 := z.DecBinary()
|
|
_ = yym3507
|
|
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)
|
|
}
|
|
yym3509 := z.DecBinary()
|
|
_ = yym3509
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x.SinceTime) {
|
|
} else if yym3509 {
|
|
z.DecBinaryUnmarshal(x.SinceTime)
|
|
} else if !yym3509 && 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)
|
|
}
|
|
yym3512 := z.DecBinary()
|
|
_ = yym3512
|
|
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)
|
|
}
|
|
yym3514 := z.DecBinary()
|
|
_ = yym3514
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3500)
|
|
} // end switch yys3500
|
|
} // end for yyj3500
|
|
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 yyj3515 int
|
|
var yyb3515 bool
|
|
var yyhl3515 bool = l >= 0
|
|
yyj3515++
|
|
if yyhl3515 {
|
|
yyb3515 = yyj3515 > l
|
|
} else {
|
|
yyb3515 = r.CheckBreak()
|
|
}
|
|
if yyb3515 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj3515++
|
|
if yyhl3515 {
|
|
yyb3515 = yyj3515 > l
|
|
} else {
|
|
yyb3515 = r.CheckBreak()
|
|
}
|
|
if yyb3515 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj3515++
|
|
if yyhl3515 {
|
|
yyb3515 = yyj3515 > l
|
|
} else {
|
|
yyb3515 = r.CheckBreak()
|
|
}
|
|
if yyb3515 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Container = ""
|
|
} else {
|
|
x.Container = string(r.DecodeString())
|
|
}
|
|
yyj3515++
|
|
if yyhl3515 {
|
|
yyb3515 = yyj3515 > l
|
|
} else {
|
|
yyb3515 = r.CheckBreak()
|
|
}
|
|
if yyb3515 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Follow = false
|
|
} else {
|
|
x.Follow = bool(r.DecodeBool())
|
|
}
|
|
yyj3515++
|
|
if yyhl3515 {
|
|
yyb3515 = yyj3515 > l
|
|
} else {
|
|
yyb3515 = r.CheckBreak()
|
|
}
|
|
if yyb3515 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Previous = false
|
|
} else {
|
|
x.Previous = bool(r.DecodeBool())
|
|
}
|
|
yyj3515++
|
|
if yyhl3515 {
|
|
yyb3515 = yyj3515 > l
|
|
} else {
|
|
yyb3515 = r.CheckBreak()
|
|
}
|
|
if yyb3515 {
|
|
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)
|
|
}
|
|
yym3522 := z.DecBinary()
|
|
_ = yym3522
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.SinceSeconds)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
yyj3515++
|
|
if yyhl3515 {
|
|
yyb3515 = yyj3515 > l
|
|
} else {
|
|
yyb3515 = r.CheckBreak()
|
|
}
|
|
if yyb3515 {
|
|
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)
|
|
}
|
|
yym3524 := z.DecBinary()
|
|
_ = yym3524
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x.SinceTime) {
|
|
} else if yym3524 {
|
|
z.DecBinaryUnmarshal(x.SinceTime)
|
|
} else if !yym3524 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(x.SinceTime)
|
|
} else {
|
|
z.DecFallback(x.SinceTime, false)
|
|
}
|
|
}
|
|
yyj3515++
|
|
if yyhl3515 {
|
|
yyb3515 = yyj3515 > l
|
|
} else {
|
|
yyb3515 = r.CheckBreak()
|
|
}
|
|
if yyb3515 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Timestamps = false
|
|
} else {
|
|
x.Timestamps = bool(r.DecodeBool())
|
|
}
|
|
yyj3515++
|
|
if yyhl3515 {
|
|
yyb3515 = yyj3515 > l
|
|
} else {
|
|
yyb3515 = r.CheckBreak()
|
|
}
|
|
if yyb3515 {
|
|
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)
|
|
}
|
|
yym3527 := z.DecBinary()
|
|
_ = yym3527
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.TailLines)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
yyj3515++
|
|
if yyhl3515 {
|
|
yyb3515 = yyj3515 > l
|
|
} else {
|
|
yyb3515 = r.CheckBreak()
|
|
}
|
|
if yyb3515 {
|
|
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)
|
|
}
|
|
yym3529 := z.DecBinary()
|
|
_ = yym3529
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
for {
|
|
yyj3515++
|
|
if yyhl3515 {
|
|
yyb3515 = yyj3515 > l
|
|
} else {
|
|
yyb3515 = r.CheckBreak()
|
|
}
|
|
if yyb3515 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3515-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 {
|
|
yym3530 := z.EncBinary()
|
|
_ = yym3530
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3531 := !z.EncBinary()
|
|
yy2arr3531 := z.EncBasicHandle().StructToArray
|
|
var yyq3531 [7]bool
|
|
_, _, _ = yysep3531, yyq3531, yy2arr3531
|
|
const yyr3531 bool = false
|
|
yyq3531[0] = x.Kind != ""
|
|
yyq3531[1] = x.APIVersion != ""
|
|
yyq3531[2] = x.Stdin != false
|
|
yyq3531[3] = x.Stdout != false
|
|
yyq3531[4] = x.Stderr != false
|
|
yyq3531[5] = x.TTY != false
|
|
yyq3531[6] = x.Container != ""
|
|
var yynn3531 int
|
|
if yyr3531 || yy2arr3531 {
|
|
r.EncodeArrayStart(7)
|
|
} else {
|
|
yynn3531 = 0
|
|
for _, b := range yyq3531 {
|
|
if b {
|
|
yynn3531++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3531)
|
|
yynn3531 = 0
|
|
}
|
|
if yyr3531 || yy2arr3531 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3531[0] {
|
|
yym3533 := z.EncBinary()
|
|
_ = yym3533
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3531[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3534 := z.EncBinary()
|
|
_ = yym3534
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr3531 || yy2arr3531 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3531[1] {
|
|
yym3536 := z.EncBinary()
|
|
_ = yym3536
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3531[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3537 := z.EncBinary()
|
|
_ = yym3537
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr3531 || yy2arr3531 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3531[2] {
|
|
yym3539 := z.EncBinary()
|
|
_ = yym3539
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Stdin))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq3531[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("stdin"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3540 := z.EncBinary()
|
|
_ = yym3540
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Stdin))
|
|
}
|
|
}
|
|
}
|
|
if yyr3531 || yy2arr3531 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3531[3] {
|
|
yym3542 := z.EncBinary()
|
|
_ = yym3542
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Stdout))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq3531[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("stdout"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3543 := z.EncBinary()
|
|
_ = yym3543
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Stdout))
|
|
}
|
|
}
|
|
}
|
|
if yyr3531 || yy2arr3531 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3531[4] {
|
|
yym3545 := z.EncBinary()
|
|
_ = yym3545
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Stderr))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq3531[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("stderr"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3546 := z.EncBinary()
|
|
_ = yym3546
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Stderr))
|
|
}
|
|
}
|
|
}
|
|
if yyr3531 || yy2arr3531 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3531[5] {
|
|
yym3548 := z.EncBinary()
|
|
_ = yym3548
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.TTY))
|
|
}
|
|
} else {
|
|
r.EncodeBool(false)
|
|
}
|
|
} else {
|
|
if yyq3531[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("tty"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3549 := z.EncBinary()
|
|
_ = yym3549
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.TTY))
|
|
}
|
|
}
|
|
}
|
|
if yyr3531 || yy2arr3531 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3531[6] {
|
|
yym3551 := z.EncBinary()
|
|
_ = yym3551
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Container))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3531[6] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("container"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3552 := z.EncBinary()
|
|
_ = yym3552
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Container))
|
|
}
|
|
}
|
|
}
|
|
if yyr3531 || yy2arr3531 {
|
|
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
|
|
yym3553 := z.DecBinary()
|
|
_ = yym3553
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3554 := r.ContainerType()
|
|
if yyct3554 == codecSelferValueTypeMap1234 {
|
|
yyl3554 := r.ReadMapStart()
|
|
if yyl3554 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3554, d)
|
|
}
|
|
} else if yyct3554 == codecSelferValueTypeArray1234 {
|
|
yyl3554 := r.ReadArrayStart()
|
|
if yyl3554 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3554, 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 yys3555Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3555Slc
|
|
var yyhl3555 bool = l >= 0
|
|
for yyj3555 := 0; ; yyj3555++ {
|
|
if yyhl3555 {
|
|
if yyj3555 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3555Slc = r.DecodeBytes(yys3555Slc, true, true)
|
|
yys3555 := string(yys3555Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3555 {
|
|
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, yys3555)
|
|
} // end switch yys3555
|
|
} // end for yyj3555
|
|
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 yyj3563 int
|
|
var yyb3563 bool
|
|
var yyhl3563 bool = l >= 0
|
|
yyj3563++
|
|
if yyhl3563 {
|
|
yyb3563 = yyj3563 > l
|
|
} else {
|
|
yyb3563 = r.CheckBreak()
|
|
}
|
|
if yyb3563 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj3563++
|
|
if yyhl3563 {
|
|
yyb3563 = yyj3563 > l
|
|
} else {
|
|
yyb3563 = r.CheckBreak()
|
|
}
|
|
if yyb3563 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj3563++
|
|
if yyhl3563 {
|
|
yyb3563 = yyj3563 > l
|
|
} else {
|
|
yyb3563 = r.CheckBreak()
|
|
}
|
|
if yyb3563 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Stdin = false
|
|
} else {
|
|
x.Stdin = bool(r.DecodeBool())
|
|
}
|
|
yyj3563++
|
|
if yyhl3563 {
|
|
yyb3563 = yyj3563 > l
|
|
} else {
|
|
yyb3563 = r.CheckBreak()
|
|
}
|
|
if yyb3563 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Stdout = false
|
|
} else {
|
|
x.Stdout = bool(r.DecodeBool())
|
|
}
|
|
yyj3563++
|
|
if yyhl3563 {
|
|
yyb3563 = yyj3563 > l
|
|
} else {
|
|
yyb3563 = r.CheckBreak()
|
|
}
|
|
if yyb3563 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Stderr = false
|
|
} else {
|
|
x.Stderr = bool(r.DecodeBool())
|
|
}
|
|
yyj3563++
|
|
if yyhl3563 {
|
|
yyb3563 = yyj3563 > l
|
|
} else {
|
|
yyb3563 = r.CheckBreak()
|
|
}
|
|
if yyb3563 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.TTY = false
|
|
} else {
|
|
x.TTY = bool(r.DecodeBool())
|
|
}
|
|
yyj3563++
|
|
if yyhl3563 {
|
|
yyb3563 = yyj3563 > l
|
|
} else {
|
|
yyb3563 = r.CheckBreak()
|
|
}
|
|
if yyb3563 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Container = ""
|
|
} else {
|
|
x.Container = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj3563++
|
|
if yyhl3563 {
|
|
yyb3563 = yyj3563 > l
|
|
} else {
|
|
yyb3563 = r.CheckBreak()
|
|
}
|
|
if yyb3563 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3563-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 {
|
|
yym3571 := z.EncBinary()
|
|
_ = yym3571
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3572 := !z.EncBinary()
|
|
yy2arr3572 := z.EncBasicHandle().StructToArray
|
|
var yyq3572 [8]bool
|
|
_, _, _ = yysep3572, yyq3572, yy2arr3572
|
|
const yyr3572 bool = false
|
|
yyq3572[0] = x.Kind != ""
|
|
yyq3572[1] = x.APIVersion != ""
|
|
var yynn3572 int
|
|
if yyr3572 || yy2arr3572 {
|
|
r.EncodeArrayStart(8)
|
|
} else {
|
|
yynn3572 = 6
|
|
for _, b := range yyq3572 {
|
|
if b {
|
|
yynn3572++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3572)
|
|
yynn3572 = 0
|
|
}
|
|
if yyr3572 || yy2arr3572 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3572[0] {
|
|
yym3574 := z.EncBinary()
|
|
_ = yym3574
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3572[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3575 := z.EncBinary()
|
|
_ = yym3575
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr3572 || yy2arr3572 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3572[1] {
|
|
yym3577 := z.EncBinary()
|
|
_ = yym3577
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3572[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3578 := z.EncBinary()
|
|
_ = yym3578
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr3572 || yy2arr3572 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym3580 := z.EncBinary()
|
|
_ = yym3580
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Stdin))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("Stdin"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3581 := z.EncBinary()
|
|
_ = yym3581
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Stdin))
|
|
}
|
|
}
|
|
if yyr3572 || yy2arr3572 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym3583 := z.EncBinary()
|
|
_ = yym3583
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Stdout))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("Stdout"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3584 := z.EncBinary()
|
|
_ = yym3584
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Stdout))
|
|
}
|
|
}
|
|
if yyr3572 || yy2arr3572 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym3586 := z.EncBinary()
|
|
_ = yym3586
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Stderr))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("Stderr"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3587 := z.EncBinary()
|
|
_ = yym3587
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.Stderr))
|
|
}
|
|
}
|
|
if yyr3572 || yy2arr3572 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym3589 := z.EncBinary()
|
|
_ = yym3589
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.TTY))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("TTY"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3590 := z.EncBinary()
|
|
_ = yym3590
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(x.TTY))
|
|
}
|
|
}
|
|
if yyr3572 || yy2arr3572 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym3592 := z.EncBinary()
|
|
_ = yym3592
|
|
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)
|
|
yym3593 := z.EncBinary()
|
|
_ = yym3593
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Container))
|
|
}
|
|
}
|
|
if yyr3572 || yy2arr3572 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Command == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3595 := z.EncBinary()
|
|
_ = yym3595
|
|
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 {
|
|
yym3596 := z.EncBinary()
|
|
_ = yym3596
|
|
if false {
|
|
} else {
|
|
z.F.EncSliceStringV(x.Command, false, e)
|
|
}
|
|
}
|
|
}
|
|
if yyr3572 || yy2arr3572 {
|
|
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
|
|
yym3597 := z.DecBinary()
|
|
_ = yym3597
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3598 := r.ContainerType()
|
|
if yyct3598 == codecSelferValueTypeMap1234 {
|
|
yyl3598 := r.ReadMapStart()
|
|
if yyl3598 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3598, d)
|
|
}
|
|
} else if yyct3598 == codecSelferValueTypeArray1234 {
|
|
yyl3598 := r.ReadArrayStart()
|
|
if yyl3598 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3598, 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 yys3599Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3599Slc
|
|
var yyhl3599 bool = l >= 0
|
|
for yyj3599 := 0; ; yyj3599++ {
|
|
if yyhl3599 {
|
|
if yyj3599 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3599Slc = r.DecodeBytes(yys3599Slc, true, true)
|
|
yys3599 := string(yys3599Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3599 {
|
|
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 {
|
|
yyv3607 := &x.Command
|
|
yym3608 := z.DecBinary()
|
|
_ = yym3608
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv3607, false, d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3599)
|
|
} // end switch yys3599
|
|
} // end for yyj3599
|
|
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 yyj3609 int
|
|
var yyb3609 bool
|
|
var yyhl3609 bool = l >= 0
|
|
yyj3609++
|
|
if yyhl3609 {
|
|
yyb3609 = yyj3609 > l
|
|
} else {
|
|
yyb3609 = r.CheckBreak()
|
|
}
|
|
if yyb3609 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj3609++
|
|
if yyhl3609 {
|
|
yyb3609 = yyj3609 > l
|
|
} else {
|
|
yyb3609 = r.CheckBreak()
|
|
}
|
|
if yyb3609 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj3609++
|
|
if yyhl3609 {
|
|
yyb3609 = yyj3609 > l
|
|
} else {
|
|
yyb3609 = r.CheckBreak()
|
|
}
|
|
if yyb3609 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Stdin = false
|
|
} else {
|
|
x.Stdin = bool(r.DecodeBool())
|
|
}
|
|
yyj3609++
|
|
if yyhl3609 {
|
|
yyb3609 = yyj3609 > l
|
|
} else {
|
|
yyb3609 = r.CheckBreak()
|
|
}
|
|
if yyb3609 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Stdout = false
|
|
} else {
|
|
x.Stdout = bool(r.DecodeBool())
|
|
}
|
|
yyj3609++
|
|
if yyhl3609 {
|
|
yyb3609 = yyj3609 > l
|
|
} else {
|
|
yyb3609 = r.CheckBreak()
|
|
}
|
|
if yyb3609 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Stderr = false
|
|
} else {
|
|
x.Stderr = bool(r.DecodeBool())
|
|
}
|
|
yyj3609++
|
|
if yyhl3609 {
|
|
yyb3609 = yyj3609 > l
|
|
} else {
|
|
yyb3609 = r.CheckBreak()
|
|
}
|
|
if yyb3609 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.TTY = false
|
|
} else {
|
|
x.TTY = bool(r.DecodeBool())
|
|
}
|
|
yyj3609++
|
|
if yyhl3609 {
|
|
yyb3609 = yyj3609 > l
|
|
} else {
|
|
yyb3609 = r.CheckBreak()
|
|
}
|
|
if yyb3609 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Container = ""
|
|
} else {
|
|
x.Container = string(r.DecodeString())
|
|
}
|
|
yyj3609++
|
|
if yyhl3609 {
|
|
yyb3609 = yyj3609 > l
|
|
} else {
|
|
yyb3609 = r.CheckBreak()
|
|
}
|
|
if yyb3609 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Command = nil
|
|
} else {
|
|
yyv3617 := &x.Command
|
|
yym3618 := z.DecBinary()
|
|
_ = yym3618
|
|
if false {
|
|
} else {
|
|
z.F.DecSliceStringX(yyv3617, false, d)
|
|
}
|
|
}
|
|
for {
|
|
yyj3609++
|
|
if yyhl3609 {
|
|
yyb3609 = yyj3609 > l
|
|
} else {
|
|
yyb3609 = r.CheckBreak()
|
|
}
|
|
if yyb3609 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3609-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 {
|
|
yym3619 := z.EncBinary()
|
|
_ = yym3619
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3620 := !z.EncBinary()
|
|
yy2arr3620 := z.EncBasicHandle().StructToArray
|
|
var yyq3620 [3]bool
|
|
_, _, _ = yysep3620, yyq3620, yy2arr3620
|
|
const yyr3620 bool = false
|
|
yyq3620[0] = x.Kind != ""
|
|
yyq3620[1] = x.APIVersion != ""
|
|
var yynn3620 int
|
|
if yyr3620 || yy2arr3620 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn3620 = 1
|
|
for _, b := range yyq3620 {
|
|
if b {
|
|
yynn3620++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3620)
|
|
yynn3620 = 0
|
|
}
|
|
if yyr3620 || yy2arr3620 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3620[0] {
|
|
yym3622 := z.EncBinary()
|
|
_ = yym3622
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3620[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3623 := z.EncBinary()
|
|
_ = yym3623
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr3620 || yy2arr3620 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3620[1] {
|
|
yym3625 := z.EncBinary()
|
|
_ = yym3625
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3620[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3626 := z.EncBinary()
|
|
_ = yym3626
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr3620 || yy2arr3620 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym3628 := z.EncBinary()
|
|
_ = yym3628
|
|
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)
|
|
yym3629 := z.EncBinary()
|
|
_ = yym3629
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
|
|
}
|
|
}
|
|
if yyr3620 || yy2arr3620 {
|
|
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
|
|
yym3630 := z.DecBinary()
|
|
_ = yym3630
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3631 := r.ContainerType()
|
|
if yyct3631 == codecSelferValueTypeMap1234 {
|
|
yyl3631 := r.ReadMapStart()
|
|
if yyl3631 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3631, d)
|
|
}
|
|
} else if yyct3631 == codecSelferValueTypeArray1234 {
|
|
yyl3631 := r.ReadArrayStart()
|
|
if yyl3631 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3631, 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 yys3632Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3632Slc
|
|
var yyhl3632 bool = l >= 0
|
|
for yyj3632 := 0; ; yyj3632++ {
|
|
if yyhl3632 {
|
|
if yyj3632 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3632Slc = r.DecodeBytes(yys3632Slc, true, true)
|
|
yys3632 := string(yys3632Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3632 {
|
|
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, yys3632)
|
|
} // end switch yys3632
|
|
} // end for yyj3632
|
|
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 yyj3636 int
|
|
var yyb3636 bool
|
|
var yyhl3636 bool = l >= 0
|
|
yyj3636++
|
|
if yyhl3636 {
|
|
yyb3636 = yyj3636 > l
|
|
} else {
|
|
yyb3636 = r.CheckBreak()
|
|
}
|
|
if yyb3636 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj3636++
|
|
if yyhl3636 {
|
|
yyb3636 = yyj3636 > l
|
|
} else {
|
|
yyb3636 = r.CheckBreak()
|
|
}
|
|
if yyb3636 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj3636++
|
|
if yyhl3636 {
|
|
yyb3636 = yyj3636 > l
|
|
} else {
|
|
yyb3636 = r.CheckBreak()
|
|
}
|
|
if yyb3636 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Path = ""
|
|
} else {
|
|
x.Path = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj3636++
|
|
if yyhl3636 {
|
|
yyb3636 = yyj3636 > l
|
|
} else {
|
|
yyb3636 = r.CheckBreak()
|
|
}
|
|
if yyb3636 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3636-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *NodeProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3640 := z.EncBinary()
|
|
_ = yym3640
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3641 := !z.EncBinary()
|
|
yy2arr3641 := z.EncBasicHandle().StructToArray
|
|
var yyq3641 [3]bool
|
|
_, _, _ = yysep3641, yyq3641, yy2arr3641
|
|
const yyr3641 bool = false
|
|
yyq3641[0] = x.Kind != ""
|
|
yyq3641[1] = x.APIVersion != ""
|
|
var yynn3641 int
|
|
if yyr3641 || yy2arr3641 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn3641 = 1
|
|
for _, b := range yyq3641 {
|
|
if b {
|
|
yynn3641++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3641)
|
|
yynn3641 = 0
|
|
}
|
|
if yyr3641 || yy2arr3641 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3641[0] {
|
|
yym3643 := z.EncBinary()
|
|
_ = yym3643
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3641[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3644 := z.EncBinary()
|
|
_ = yym3644
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr3641 || yy2arr3641 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3641[1] {
|
|
yym3646 := z.EncBinary()
|
|
_ = yym3646
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3641[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3647 := z.EncBinary()
|
|
_ = yym3647
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr3641 || yy2arr3641 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym3649 := z.EncBinary()
|
|
_ = yym3649
|
|
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)
|
|
yym3650 := z.EncBinary()
|
|
_ = yym3650
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
|
|
}
|
|
}
|
|
if yyr3641 || yy2arr3641 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *NodeProxyOptions) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym3651 := z.DecBinary()
|
|
_ = yym3651
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3652 := r.ContainerType()
|
|
if yyct3652 == codecSelferValueTypeMap1234 {
|
|
yyl3652 := r.ReadMapStart()
|
|
if yyl3652 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3652, d)
|
|
}
|
|
} else if yyct3652 == codecSelferValueTypeArray1234 {
|
|
yyl3652 := r.ReadArrayStart()
|
|
if yyl3652 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3652, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *NodeProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys3653Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3653Slc
|
|
var yyhl3653 bool = l >= 0
|
|
for yyj3653 := 0; ; yyj3653++ {
|
|
if yyhl3653 {
|
|
if yyj3653 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3653Slc = r.DecodeBytes(yys3653Slc, true, true)
|
|
yys3653 := string(yys3653Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3653 {
|
|
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, yys3653)
|
|
} // end switch yys3653
|
|
} // end for yyj3653
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *NodeProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj3657 int
|
|
var yyb3657 bool
|
|
var yyhl3657 bool = l >= 0
|
|
yyj3657++
|
|
if yyhl3657 {
|
|
yyb3657 = yyj3657 > l
|
|
} else {
|
|
yyb3657 = r.CheckBreak()
|
|
}
|
|
if yyb3657 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj3657++
|
|
if yyhl3657 {
|
|
yyb3657 = yyj3657 > l
|
|
} else {
|
|
yyb3657 = r.CheckBreak()
|
|
}
|
|
if yyb3657 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj3657++
|
|
if yyhl3657 {
|
|
yyb3657 = yyj3657 > l
|
|
} else {
|
|
yyb3657 = r.CheckBreak()
|
|
}
|
|
if yyb3657 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Path = ""
|
|
} else {
|
|
x.Path = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj3657++
|
|
if yyhl3657 {
|
|
yyb3657 = yyj3657 > l
|
|
} else {
|
|
yyb3657 = r.CheckBreak()
|
|
}
|
|
if yyb3657 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3657-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *ServiceProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3661 := z.EncBinary()
|
|
_ = yym3661
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3662 := !z.EncBinary()
|
|
yy2arr3662 := z.EncBasicHandle().StructToArray
|
|
var yyq3662 [3]bool
|
|
_, _, _ = yysep3662, yyq3662, yy2arr3662
|
|
const yyr3662 bool = false
|
|
yyq3662[0] = x.Kind != ""
|
|
yyq3662[1] = x.APIVersion != ""
|
|
var yynn3662 int
|
|
if yyr3662 || yy2arr3662 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn3662 = 1
|
|
for _, b := range yyq3662 {
|
|
if b {
|
|
yynn3662++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3662)
|
|
yynn3662 = 0
|
|
}
|
|
if yyr3662 || yy2arr3662 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3662[0] {
|
|
yym3664 := z.EncBinary()
|
|
_ = yym3664
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3662[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3665 := z.EncBinary()
|
|
_ = yym3665
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr3662 || yy2arr3662 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3662[1] {
|
|
yym3667 := z.EncBinary()
|
|
_ = yym3667
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3662[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3668 := z.EncBinary()
|
|
_ = yym3668
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr3662 || yy2arr3662 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym3670 := z.EncBinary()
|
|
_ = yym3670
|
|
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)
|
|
yym3671 := z.EncBinary()
|
|
_ = yym3671
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
|
|
}
|
|
}
|
|
if yyr3662 || yy2arr3662 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ServiceProxyOptions) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym3672 := z.DecBinary()
|
|
_ = yym3672
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3673 := r.ContainerType()
|
|
if yyct3673 == codecSelferValueTypeMap1234 {
|
|
yyl3673 := r.ReadMapStart()
|
|
if yyl3673 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3673, d)
|
|
}
|
|
} else if yyct3673 == codecSelferValueTypeArray1234 {
|
|
yyl3673 := r.ReadArrayStart()
|
|
if yyl3673 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3673, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ServiceProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys3674Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3674Slc
|
|
var yyhl3674 bool = l >= 0
|
|
for yyj3674 := 0; ; yyj3674++ {
|
|
if yyhl3674 {
|
|
if yyj3674 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3674Slc = r.DecodeBytes(yys3674Slc, true, true)
|
|
yys3674 := string(yys3674Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3674 {
|
|
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, yys3674)
|
|
} // end switch yys3674
|
|
} // end for yyj3674
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *ServiceProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj3678 int
|
|
var yyb3678 bool
|
|
var yyhl3678 bool = l >= 0
|
|
yyj3678++
|
|
if yyhl3678 {
|
|
yyb3678 = yyj3678 > l
|
|
} else {
|
|
yyb3678 = r.CheckBreak()
|
|
}
|
|
if yyb3678 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj3678++
|
|
if yyhl3678 {
|
|
yyb3678 = yyj3678 > l
|
|
} else {
|
|
yyb3678 = r.CheckBreak()
|
|
}
|
|
if yyb3678 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj3678++
|
|
if yyhl3678 {
|
|
yyb3678 = yyj3678 > l
|
|
} else {
|
|
yyb3678 = r.CheckBreak()
|
|
}
|
|
if yyb3678 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Path = ""
|
|
} else {
|
|
x.Path = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj3678++
|
|
if yyhl3678 {
|
|
yyb3678 = yyj3678 > l
|
|
} else {
|
|
yyb3678 = r.CheckBreak()
|
|
}
|
|
if yyb3678 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3678-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *OwnerReference) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3682 := z.EncBinary()
|
|
_ = yym3682
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3683 := !z.EncBinary()
|
|
yy2arr3683 := z.EncBasicHandle().StructToArray
|
|
var yyq3683 [5]bool
|
|
_, _, _ = yysep3683, yyq3683, yy2arr3683
|
|
const yyr3683 bool = false
|
|
yyq3683[4] = x.Controller != nil
|
|
var yynn3683 int
|
|
if yyr3683 || yy2arr3683 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn3683 = 4
|
|
for _, b := range yyq3683 {
|
|
if b {
|
|
yynn3683++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3683)
|
|
yynn3683 = 0
|
|
}
|
|
if yyr3683 || yy2arr3683 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym3685 := z.EncBinary()
|
|
_ = yym3685
|
|
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)
|
|
yym3686 := z.EncBinary()
|
|
_ = yym3686
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
if yyr3683 || yy2arr3683 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym3688 := z.EncBinary()
|
|
_ = yym3688
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3689 := z.EncBinary()
|
|
_ = yym3689
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
if yyr3683 || yy2arr3683 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym3691 := z.EncBinary()
|
|
_ = yym3691
|
|
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)
|
|
yym3692 := z.EncBinary()
|
|
_ = yym3692
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
}
|
|
if yyr3683 || yy2arr3683 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym3694 := z.EncBinary()
|
|
_ = yym3694
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x.UID) {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.UID))
|
|
}
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("uid"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3695 := z.EncBinary()
|
|
_ = yym3695
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x.UID) {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.UID))
|
|
}
|
|
}
|
|
if yyr3683 || yy2arr3683 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3683[4] {
|
|
if x.Controller == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy3697 := *x.Controller
|
|
yym3698 := z.EncBinary()
|
|
_ = yym3698
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(yy3697))
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3683[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("controller"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Controller == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy3699 := *x.Controller
|
|
yym3700 := z.EncBinary()
|
|
_ = yym3700
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(yy3699))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr3683 || yy2arr3683 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *OwnerReference) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym3701 := z.DecBinary()
|
|
_ = yym3701
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3702 := r.ContainerType()
|
|
if yyct3702 == codecSelferValueTypeMap1234 {
|
|
yyl3702 := r.ReadMapStart()
|
|
if yyl3702 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3702, d)
|
|
}
|
|
} else if yyct3702 == codecSelferValueTypeArray1234 {
|
|
yyl3702 := r.ReadArrayStart()
|
|
if yyl3702 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3702, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *OwnerReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys3703Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3703Slc
|
|
var yyhl3703 bool = l >= 0
|
|
for yyj3703 := 0; ; yyj3703++ {
|
|
if yyhl3703 {
|
|
if yyj3703 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3703Slc = r.DecodeBytes(yys3703Slc, true, true)
|
|
yys3703 := string(yys3703Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3703 {
|
|
case "apiVersion":
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
case "kind":
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = 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 "controller":
|
|
if r.TryDecodeAsNil() {
|
|
if x.Controller != nil {
|
|
x.Controller = nil
|
|
}
|
|
} else {
|
|
if x.Controller == nil {
|
|
x.Controller = new(bool)
|
|
}
|
|
yym3709 := z.DecBinary()
|
|
_ = yym3709
|
|
if false {
|
|
} else {
|
|
*((*bool)(x.Controller)) = r.DecodeBool()
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3703)
|
|
} // end switch yys3703
|
|
} // end for yyj3703
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *OwnerReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj3710 int
|
|
var yyb3710 bool
|
|
var yyhl3710 bool = l >= 0
|
|
yyj3710++
|
|
if yyhl3710 {
|
|
yyb3710 = yyj3710 > l
|
|
} else {
|
|
yyb3710 = r.CheckBreak()
|
|
}
|
|
if yyb3710 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj3710++
|
|
if yyhl3710 {
|
|
yyb3710 = yyj3710 > l
|
|
} else {
|
|
yyb3710 = r.CheckBreak()
|
|
}
|
|
if yyb3710 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj3710++
|
|
if yyhl3710 {
|
|
yyb3710 = yyj3710 > l
|
|
} else {
|
|
yyb3710 = r.CheckBreak()
|
|
}
|
|
if yyb3710 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
yyj3710++
|
|
if yyhl3710 {
|
|
yyb3710 = yyj3710 > l
|
|
} else {
|
|
yyb3710 = r.CheckBreak()
|
|
}
|
|
if yyb3710 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.UID = ""
|
|
} else {
|
|
x.UID = pkg1_types.UID(r.DecodeString())
|
|
}
|
|
yyj3710++
|
|
if yyhl3710 {
|
|
yyb3710 = yyj3710 > l
|
|
} else {
|
|
yyb3710 = r.CheckBreak()
|
|
}
|
|
if yyb3710 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.Controller != nil {
|
|
x.Controller = nil
|
|
}
|
|
} else {
|
|
if x.Controller == nil {
|
|
x.Controller = new(bool)
|
|
}
|
|
yym3716 := z.DecBinary()
|
|
_ = yym3716
|
|
if false {
|
|
} else {
|
|
*((*bool)(x.Controller)) = r.DecodeBool()
|
|
}
|
|
}
|
|
for {
|
|
yyj3710++
|
|
if yyhl3710 {
|
|
yyb3710 = yyj3710 > l
|
|
} else {
|
|
yyb3710 = r.CheckBreak()
|
|
}
|
|
if yyb3710 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3710-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 {
|
|
yym3717 := z.EncBinary()
|
|
_ = yym3717
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3718 := !z.EncBinary()
|
|
yy2arr3718 := z.EncBasicHandle().StructToArray
|
|
var yyq3718 [7]bool
|
|
_, _, _ = yysep3718, yyq3718, yy2arr3718
|
|
const yyr3718 bool = false
|
|
yyq3718[0] = x.Kind != ""
|
|
yyq3718[1] = x.Namespace != ""
|
|
yyq3718[2] = x.Name != ""
|
|
yyq3718[3] = x.UID != ""
|
|
yyq3718[4] = x.APIVersion != ""
|
|
yyq3718[5] = x.ResourceVersion != ""
|
|
yyq3718[6] = x.FieldPath != ""
|
|
var yynn3718 int
|
|
if yyr3718 || yy2arr3718 {
|
|
r.EncodeArrayStart(7)
|
|
} else {
|
|
yynn3718 = 0
|
|
for _, b := range yyq3718 {
|
|
if b {
|
|
yynn3718++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3718)
|
|
yynn3718 = 0
|
|
}
|
|
if yyr3718 || yy2arr3718 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3718[0] {
|
|
yym3720 := z.EncBinary()
|
|
_ = yym3720
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3718[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3721 := z.EncBinary()
|
|
_ = yym3721
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr3718 || yy2arr3718 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3718[1] {
|
|
yym3723 := z.EncBinary()
|
|
_ = yym3723
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Namespace))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3718[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("namespace"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3724 := z.EncBinary()
|
|
_ = yym3724
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Namespace))
|
|
}
|
|
}
|
|
}
|
|
if yyr3718 || yy2arr3718 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3718[2] {
|
|
yym3726 := z.EncBinary()
|
|
_ = yym3726
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3718[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("name"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3727 := z.EncBinary()
|
|
_ = yym3727
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
}
|
|
}
|
|
if yyr3718 || yy2arr3718 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3718[3] {
|
|
yym3729 := z.EncBinary()
|
|
_ = yym3729
|
|
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 yyq3718[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("uid"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3730 := z.EncBinary()
|
|
_ = yym3730
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x.UID) {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.UID))
|
|
}
|
|
}
|
|
}
|
|
if yyr3718 || yy2arr3718 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3718[4] {
|
|
yym3732 := z.EncBinary()
|
|
_ = yym3732
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3718[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3733 := z.EncBinary()
|
|
_ = yym3733
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr3718 || yy2arr3718 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3718[5] {
|
|
yym3735 := z.EncBinary()
|
|
_ = yym3735
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3718[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("resourceVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3736 := z.EncBinary()
|
|
_ = yym3736
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr3718 || yy2arr3718 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3718[6] {
|
|
yym3738 := z.EncBinary()
|
|
_ = yym3738
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3718[6] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("fieldPath"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3739 := z.EncBinary()
|
|
_ = yym3739
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath))
|
|
}
|
|
}
|
|
}
|
|
if yyr3718 || yy2arr3718 {
|
|
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
|
|
yym3740 := z.DecBinary()
|
|
_ = yym3740
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3741 := r.ContainerType()
|
|
if yyct3741 == codecSelferValueTypeMap1234 {
|
|
yyl3741 := r.ReadMapStart()
|
|
if yyl3741 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3741, d)
|
|
}
|
|
} else if yyct3741 == codecSelferValueTypeArray1234 {
|
|
yyl3741 := r.ReadArrayStart()
|
|
if yyl3741 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3741, 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 yys3742Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3742Slc
|
|
var yyhl3742 bool = l >= 0
|
|
for yyj3742 := 0; ; yyj3742++ {
|
|
if yyhl3742 {
|
|
if yyj3742 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3742Slc = r.DecodeBytes(yys3742Slc, true, true)
|
|
yys3742 := string(yys3742Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3742 {
|
|
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, yys3742)
|
|
} // end switch yys3742
|
|
} // end for yyj3742
|
|
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 yyj3750 int
|
|
var yyb3750 bool
|
|
var yyhl3750 bool = l >= 0
|
|
yyj3750++
|
|
if yyhl3750 {
|
|
yyb3750 = yyj3750 > l
|
|
} else {
|
|
yyb3750 = r.CheckBreak()
|
|
}
|
|
if yyb3750 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj3750++
|
|
if yyhl3750 {
|
|
yyb3750 = yyj3750 > l
|
|
} else {
|
|
yyb3750 = r.CheckBreak()
|
|
}
|
|
if yyb3750 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Namespace = ""
|
|
} else {
|
|
x.Namespace = string(r.DecodeString())
|
|
}
|
|
yyj3750++
|
|
if yyhl3750 {
|
|
yyb3750 = yyj3750 > l
|
|
} else {
|
|
yyb3750 = r.CheckBreak()
|
|
}
|
|
if yyb3750 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
yyj3750++
|
|
if yyhl3750 {
|
|
yyb3750 = yyj3750 > l
|
|
} else {
|
|
yyb3750 = r.CheckBreak()
|
|
}
|
|
if yyb3750 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.UID = ""
|
|
} else {
|
|
x.UID = pkg1_types.UID(r.DecodeString())
|
|
}
|
|
yyj3750++
|
|
if yyhl3750 {
|
|
yyb3750 = yyj3750 > l
|
|
} else {
|
|
yyb3750 = r.CheckBreak()
|
|
}
|
|
if yyb3750 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj3750++
|
|
if yyhl3750 {
|
|
yyb3750 = yyj3750 > l
|
|
} else {
|
|
yyb3750 = r.CheckBreak()
|
|
}
|
|
if yyb3750 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ResourceVersion = ""
|
|
} else {
|
|
x.ResourceVersion = string(r.DecodeString())
|
|
}
|
|
yyj3750++
|
|
if yyhl3750 {
|
|
yyb3750 = yyj3750 > l
|
|
} else {
|
|
yyb3750 = r.CheckBreak()
|
|
}
|
|
if yyb3750 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.FieldPath = ""
|
|
} else {
|
|
x.FieldPath = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj3750++
|
|
if yyhl3750 {
|
|
yyb3750 = yyj3750 > l
|
|
} else {
|
|
yyb3750 = r.CheckBreak()
|
|
}
|
|
if yyb3750 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3750-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 {
|
|
yym3758 := z.EncBinary()
|
|
_ = yym3758
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3759 := !z.EncBinary()
|
|
yy2arr3759 := z.EncBasicHandle().StructToArray
|
|
var yyq3759 [1]bool
|
|
_, _, _ = yysep3759, yyq3759, yy2arr3759
|
|
const yyr3759 bool = false
|
|
var yynn3759 int
|
|
if yyr3759 || yy2arr3759 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn3759 = 1
|
|
for _, b := range yyq3759 {
|
|
if b {
|
|
yynn3759++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3759)
|
|
yynn3759 = 0
|
|
}
|
|
if yyr3759 || yy2arr3759 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym3761 := z.EncBinary()
|
|
_ = yym3761
|
|
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)
|
|
yym3762 := z.EncBinary()
|
|
_ = yym3762
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
|
|
}
|
|
}
|
|
if yyr3759 || yy2arr3759 {
|
|
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
|
|
yym3763 := z.DecBinary()
|
|
_ = yym3763
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3764 := r.ContainerType()
|
|
if yyct3764 == codecSelferValueTypeMap1234 {
|
|
yyl3764 := r.ReadMapStart()
|
|
if yyl3764 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3764, d)
|
|
}
|
|
} else if yyct3764 == codecSelferValueTypeArray1234 {
|
|
yyl3764 := r.ReadArrayStart()
|
|
if yyl3764 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3764, 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 yys3765Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3765Slc
|
|
var yyhl3765 bool = l >= 0
|
|
for yyj3765 := 0; ; yyj3765++ {
|
|
if yyhl3765 {
|
|
if yyj3765 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3765Slc = r.DecodeBytes(yys3765Slc, true, true)
|
|
yys3765 := string(yys3765Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3765 {
|
|
case "Name":
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3765)
|
|
} // end switch yys3765
|
|
} // end for yyj3765
|
|
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 yyj3767 int
|
|
var yyb3767 bool
|
|
var yyhl3767 bool = l >= 0
|
|
yyj3767++
|
|
if yyhl3767 {
|
|
yyb3767 = yyj3767 > l
|
|
} else {
|
|
yyb3767 = r.CheckBreak()
|
|
}
|
|
if yyb3767 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Name = ""
|
|
} else {
|
|
x.Name = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj3767++
|
|
if yyhl3767 {
|
|
yyb3767 = yyj3767 > l
|
|
} else {
|
|
yyb3767 = r.CheckBreak()
|
|
}
|
|
if yyb3767 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3767-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 {
|
|
yym3769 := z.EncBinary()
|
|
_ = yym3769
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3770 := !z.EncBinary()
|
|
yy2arr3770 := z.EncBasicHandle().StructToArray
|
|
var yyq3770 [3]bool
|
|
_, _, _ = yysep3770, yyq3770, yy2arr3770
|
|
const yyr3770 bool = false
|
|
yyq3770[0] = x.Kind != ""
|
|
yyq3770[1] = x.APIVersion != ""
|
|
yyq3770[2] = true
|
|
var yynn3770 int
|
|
if yyr3770 || yy2arr3770 {
|
|
r.EncodeArrayStart(3)
|
|
} else {
|
|
yynn3770 = 0
|
|
for _, b := range yyq3770 {
|
|
if b {
|
|
yynn3770++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3770)
|
|
yynn3770 = 0
|
|
}
|
|
if yyr3770 || yy2arr3770 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3770[0] {
|
|
yym3772 := z.EncBinary()
|
|
_ = yym3772
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3770[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3773 := z.EncBinary()
|
|
_ = yym3773
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr3770 || yy2arr3770 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3770[1] {
|
|
yym3775 := z.EncBinary()
|
|
_ = yym3775
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3770[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3776 := z.EncBinary()
|
|
_ = yym3776
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr3770 || yy2arr3770 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3770[2] {
|
|
yy3778 := &x.Reference
|
|
yy3778.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3770[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("reference"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3779 := &x.Reference
|
|
yy3779.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr3770 || yy2arr3770 {
|
|
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
|
|
yym3780 := z.DecBinary()
|
|
_ = yym3780
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3781 := r.ContainerType()
|
|
if yyct3781 == codecSelferValueTypeMap1234 {
|
|
yyl3781 := r.ReadMapStart()
|
|
if yyl3781 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3781, d)
|
|
}
|
|
} else if yyct3781 == codecSelferValueTypeArray1234 {
|
|
yyl3781 := r.ReadArrayStart()
|
|
if yyl3781 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3781, 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 yys3782Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3782Slc
|
|
var yyhl3782 bool = l >= 0
|
|
for yyj3782 := 0; ; yyj3782++ {
|
|
if yyhl3782 {
|
|
if yyj3782 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3782Slc = r.DecodeBytes(yys3782Slc, true, true)
|
|
yys3782 := string(yys3782Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3782 {
|
|
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 {
|
|
yyv3785 := &x.Reference
|
|
yyv3785.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3782)
|
|
} // end switch yys3782
|
|
} // end for yyj3782
|
|
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 yyj3786 int
|
|
var yyb3786 bool
|
|
var yyhl3786 bool = l >= 0
|
|
yyj3786++
|
|
if yyhl3786 {
|
|
yyb3786 = yyj3786 > l
|
|
} else {
|
|
yyb3786 = r.CheckBreak()
|
|
}
|
|
if yyb3786 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj3786++
|
|
if yyhl3786 {
|
|
yyb3786 = yyj3786 > l
|
|
} else {
|
|
yyb3786 = r.CheckBreak()
|
|
}
|
|
if yyb3786 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj3786++
|
|
if yyhl3786 {
|
|
yyb3786 = yyj3786 > l
|
|
} else {
|
|
yyb3786 = r.CheckBreak()
|
|
}
|
|
if yyb3786 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Reference = ObjectReference{}
|
|
} else {
|
|
yyv3789 := &x.Reference
|
|
yyv3789.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj3786++
|
|
if yyhl3786 {
|
|
yyb3786 = yyj3786 > l
|
|
} else {
|
|
yyb3786 = r.CheckBreak()
|
|
}
|
|
if yyb3786 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3786-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 {
|
|
yym3790 := z.EncBinary()
|
|
_ = yym3790
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3791 := !z.EncBinary()
|
|
yy2arr3791 := z.EncBasicHandle().StructToArray
|
|
var yyq3791 [2]bool
|
|
_, _, _ = yysep3791, yyq3791, yy2arr3791
|
|
const yyr3791 bool = false
|
|
yyq3791[0] = x.Component != ""
|
|
yyq3791[1] = x.Host != ""
|
|
var yynn3791 int
|
|
if yyr3791 || yy2arr3791 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn3791 = 0
|
|
for _, b := range yyq3791 {
|
|
if b {
|
|
yynn3791++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3791)
|
|
yynn3791 = 0
|
|
}
|
|
if yyr3791 || yy2arr3791 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3791[0] {
|
|
yym3793 := z.EncBinary()
|
|
_ = yym3793
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Component))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3791[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("component"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3794 := z.EncBinary()
|
|
_ = yym3794
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Component))
|
|
}
|
|
}
|
|
}
|
|
if yyr3791 || yy2arr3791 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3791[1] {
|
|
yym3796 := z.EncBinary()
|
|
_ = yym3796
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Host))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3791[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("host"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3797 := z.EncBinary()
|
|
_ = yym3797
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Host))
|
|
}
|
|
}
|
|
}
|
|
if yyr3791 || yy2arr3791 {
|
|
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
|
|
yym3798 := z.DecBinary()
|
|
_ = yym3798
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3799 := r.ContainerType()
|
|
if yyct3799 == codecSelferValueTypeMap1234 {
|
|
yyl3799 := r.ReadMapStart()
|
|
if yyl3799 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3799, d)
|
|
}
|
|
} else if yyct3799 == codecSelferValueTypeArray1234 {
|
|
yyl3799 := r.ReadArrayStart()
|
|
if yyl3799 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3799, 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 yys3800Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3800Slc
|
|
var yyhl3800 bool = l >= 0
|
|
for yyj3800 := 0; ; yyj3800++ {
|
|
if yyhl3800 {
|
|
if yyj3800 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3800Slc = r.DecodeBytes(yys3800Slc, true, true)
|
|
yys3800 := string(yys3800Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3800 {
|
|
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, yys3800)
|
|
} // end switch yys3800
|
|
} // end for yyj3800
|
|
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 yyj3803 int
|
|
var yyb3803 bool
|
|
var yyhl3803 bool = l >= 0
|
|
yyj3803++
|
|
if yyhl3803 {
|
|
yyb3803 = yyj3803 > l
|
|
} else {
|
|
yyb3803 = r.CheckBreak()
|
|
}
|
|
if yyb3803 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Component = ""
|
|
} else {
|
|
x.Component = string(r.DecodeString())
|
|
}
|
|
yyj3803++
|
|
if yyhl3803 {
|
|
yyb3803 = yyj3803 > l
|
|
} else {
|
|
yyb3803 = r.CheckBreak()
|
|
}
|
|
if yyb3803 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Host = ""
|
|
} else {
|
|
x.Host = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj3803++
|
|
if yyhl3803 {
|
|
yyb3803 = yyj3803 > l
|
|
} else {
|
|
yyb3803 = r.CheckBreak()
|
|
}
|
|
if yyb3803 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3803-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 {
|
|
yym3806 := z.EncBinary()
|
|
_ = yym3806
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3807 := !z.EncBinary()
|
|
yy2arr3807 := z.EncBasicHandle().StructToArray
|
|
var yyq3807 [11]bool
|
|
_, _, _ = yysep3807, yyq3807, yy2arr3807
|
|
const yyr3807 bool = false
|
|
yyq3807[0] = x.Kind != ""
|
|
yyq3807[1] = x.APIVersion != ""
|
|
yyq3807[2] = true
|
|
yyq3807[3] = true
|
|
yyq3807[4] = x.Reason != ""
|
|
yyq3807[5] = x.Message != ""
|
|
yyq3807[6] = true
|
|
yyq3807[7] = true
|
|
yyq3807[8] = true
|
|
yyq3807[9] = x.Count != 0
|
|
yyq3807[10] = x.Type != ""
|
|
var yynn3807 int
|
|
if yyr3807 || yy2arr3807 {
|
|
r.EncodeArrayStart(11)
|
|
} else {
|
|
yynn3807 = 0
|
|
for _, b := range yyq3807 {
|
|
if b {
|
|
yynn3807++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3807)
|
|
yynn3807 = 0
|
|
}
|
|
if yyr3807 || yy2arr3807 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3807[0] {
|
|
yym3809 := z.EncBinary()
|
|
_ = yym3809
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3807[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3810 := z.EncBinary()
|
|
_ = yym3810
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr3807 || yy2arr3807 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3807[1] {
|
|
yym3812 := z.EncBinary()
|
|
_ = yym3812
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3807[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3813 := z.EncBinary()
|
|
_ = yym3813
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr3807 || yy2arr3807 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3807[2] {
|
|
yy3815 := &x.ObjectMeta
|
|
yy3815.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3807[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3816 := &x.ObjectMeta
|
|
yy3816.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr3807 || yy2arr3807 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3807[3] {
|
|
yy3818 := &x.InvolvedObject
|
|
yy3818.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3807[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("involvedObject"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3819 := &x.InvolvedObject
|
|
yy3819.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr3807 || yy2arr3807 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3807[4] {
|
|
yym3821 := z.EncBinary()
|
|
_ = yym3821
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3807[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("reason"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3822 := z.EncBinary()
|
|
_ = yym3822
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
|
|
}
|
|
}
|
|
}
|
|
if yyr3807 || yy2arr3807 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3807[5] {
|
|
yym3824 := z.EncBinary()
|
|
_ = yym3824
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3807[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("message"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3825 := z.EncBinary()
|
|
_ = yym3825
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
}
|
|
}
|
|
if yyr3807 || yy2arr3807 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3807[6] {
|
|
yy3827 := &x.Source
|
|
yy3827.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3807[6] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("source"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3828 := &x.Source
|
|
yy3828.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr3807 || yy2arr3807 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3807[7] {
|
|
yy3830 := &x.FirstTimestamp
|
|
yym3831 := z.EncBinary()
|
|
_ = yym3831
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3830) {
|
|
} else if yym3831 {
|
|
z.EncBinaryMarshal(yy3830)
|
|
} else if !yym3831 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy3830)
|
|
} else {
|
|
z.EncFallback(yy3830)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3807[7] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("firstTimestamp"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3832 := &x.FirstTimestamp
|
|
yym3833 := z.EncBinary()
|
|
_ = yym3833
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3832) {
|
|
} else if yym3833 {
|
|
z.EncBinaryMarshal(yy3832)
|
|
} else if !yym3833 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy3832)
|
|
} else {
|
|
z.EncFallback(yy3832)
|
|
}
|
|
}
|
|
}
|
|
if yyr3807 || yy2arr3807 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3807[8] {
|
|
yy3835 := &x.LastTimestamp
|
|
yym3836 := z.EncBinary()
|
|
_ = yym3836
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3835) {
|
|
} else if yym3836 {
|
|
z.EncBinaryMarshal(yy3835)
|
|
} else if !yym3836 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy3835)
|
|
} else {
|
|
z.EncFallback(yy3835)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3807[8] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("lastTimestamp"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3837 := &x.LastTimestamp
|
|
yym3838 := z.EncBinary()
|
|
_ = yym3838
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3837) {
|
|
} else if yym3838 {
|
|
z.EncBinaryMarshal(yy3837)
|
|
} else if !yym3838 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy3837)
|
|
} else {
|
|
z.EncFallback(yy3837)
|
|
}
|
|
}
|
|
}
|
|
if yyr3807 || yy2arr3807 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3807[9] {
|
|
yym3840 := z.EncBinary()
|
|
_ = yym3840
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Count))
|
|
}
|
|
} else {
|
|
r.EncodeInt(0)
|
|
}
|
|
} else {
|
|
if yyq3807[9] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("count"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3841 := z.EncBinary()
|
|
_ = yym3841
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(x.Count))
|
|
}
|
|
}
|
|
}
|
|
if yyr3807 || yy2arr3807 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3807[10] {
|
|
yym3843 := z.EncBinary()
|
|
_ = yym3843
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Type))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3807[10] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("type"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3844 := z.EncBinary()
|
|
_ = yym3844
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Type))
|
|
}
|
|
}
|
|
}
|
|
if yyr3807 || yy2arr3807 {
|
|
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
|
|
yym3845 := z.DecBinary()
|
|
_ = yym3845
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3846 := r.ContainerType()
|
|
if yyct3846 == codecSelferValueTypeMap1234 {
|
|
yyl3846 := r.ReadMapStart()
|
|
if yyl3846 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3846, d)
|
|
}
|
|
} else if yyct3846 == codecSelferValueTypeArray1234 {
|
|
yyl3846 := r.ReadArrayStart()
|
|
if yyl3846 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3846, 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 yys3847Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3847Slc
|
|
var yyhl3847 bool = l >= 0
|
|
for yyj3847 := 0; ; yyj3847++ {
|
|
if yyhl3847 {
|
|
if yyj3847 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3847Slc = r.DecodeBytes(yys3847Slc, true, true)
|
|
yys3847 := string(yys3847Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3847 {
|
|
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 {
|
|
yyv3850 := &x.ObjectMeta
|
|
yyv3850.CodecDecodeSelf(d)
|
|
}
|
|
case "involvedObject":
|
|
if r.TryDecodeAsNil() {
|
|
x.InvolvedObject = ObjectReference{}
|
|
} else {
|
|
yyv3851 := &x.InvolvedObject
|
|
yyv3851.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 {
|
|
yyv3854 := &x.Source
|
|
yyv3854.CodecDecodeSelf(d)
|
|
}
|
|
case "firstTimestamp":
|
|
if r.TryDecodeAsNil() {
|
|
x.FirstTimestamp = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv3855 := &x.FirstTimestamp
|
|
yym3856 := z.DecBinary()
|
|
_ = yym3856
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3855) {
|
|
} else if yym3856 {
|
|
z.DecBinaryUnmarshal(yyv3855)
|
|
} else if !yym3856 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv3855)
|
|
} else {
|
|
z.DecFallback(yyv3855, false)
|
|
}
|
|
}
|
|
case "lastTimestamp":
|
|
if r.TryDecodeAsNil() {
|
|
x.LastTimestamp = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv3857 := &x.LastTimestamp
|
|
yym3858 := z.DecBinary()
|
|
_ = yym3858
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3857) {
|
|
} else if yym3858 {
|
|
z.DecBinaryUnmarshal(yyv3857)
|
|
} else if !yym3858 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv3857)
|
|
} else {
|
|
z.DecFallback(yyv3857, false)
|
|
}
|
|
}
|
|
case "count":
|
|
if r.TryDecodeAsNil() {
|
|
x.Count = 0
|
|
} else {
|
|
x.Count = int32(r.DecodeInt(32))
|
|
}
|
|
case "type":
|
|
if r.TryDecodeAsNil() {
|
|
x.Type = ""
|
|
} else {
|
|
x.Type = string(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3847)
|
|
} // end switch yys3847
|
|
} // end for yyj3847
|
|
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 yyj3861 int
|
|
var yyb3861 bool
|
|
var yyhl3861 bool = l >= 0
|
|
yyj3861++
|
|
if yyhl3861 {
|
|
yyb3861 = yyj3861 > l
|
|
} else {
|
|
yyb3861 = r.CheckBreak()
|
|
}
|
|
if yyb3861 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj3861++
|
|
if yyhl3861 {
|
|
yyb3861 = yyj3861 > l
|
|
} else {
|
|
yyb3861 = r.CheckBreak()
|
|
}
|
|
if yyb3861 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj3861++
|
|
if yyhl3861 {
|
|
yyb3861 = yyj3861 > l
|
|
} else {
|
|
yyb3861 = r.CheckBreak()
|
|
}
|
|
if yyb3861 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv3864 := &x.ObjectMeta
|
|
yyv3864.CodecDecodeSelf(d)
|
|
}
|
|
yyj3861++
|
|
if yyhl3861 {
|
|
yyb3861 = yyj3861 > l
|
|
} else {
|
|
yyb3861 = r.CheckBreak()
|
|
}
|
|
if yyb3861 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.InvolvedObject = ObjectReference{}
|
|
} else {
|
|
yyv3865 := &x.InvolvedObject
|
|
yyv3865.CodecDecodeSelf(d)
|
|
}
|
|
yyj3861++
|
|
if yyhl3861 {
|
|
yyb3861 = yyj3861 > l
|
|
} else {
|
|
yyb3861 = r.CheckBreak()
|
|
}
|
|
if yyb3861 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Reason = ""
|
|
} else {
|
|
x.Reason = string(r.DecodeString())
|
|
}
|
|
yyj3861++
|
|
if yyhl3861 {
|
|
yyb3861 = yyj3861 > l
|
|
} else {
|
|
yyb3861 = r.CheckBreak()
|
|
}
|
|
if yyb3861 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Message = ""
|
|
} else {
|
|
x.Message = string(r.DecodeString())
|
|
}
|
|
yyj3861++
|
|
if yyhl3861 {
|
|
yyb3861 = yyj3861 > l
|
|
} else {
|
|
yyb3861 = r.CheckBreak()
|
|
}
|
|
if yyb3861 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Source = EventSource{}
|
|
} else {
|
|
yyv3868 := &x.Source
|
|
yyv3868.CodecDecodeSelf(d)
|
|
}
|
|
yyj3861++
|
|
if yyhl3861 {
|
|
yyb3861 = yyj3861 > l
|
|
} else {
|
|
yyb3861 = r.CheckBreak()
|
|
}
|
|
if yyb3861 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.FirstTimestamp = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv3869 := &x.FirstTimestamp
|
|
yym3870 := z.DecBinary()
|
|
_ = yym3870
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3869) {
|
|
} else if yym3870 {
|
|
z.DecBinaryUnmarshal(yyv3869)
|
|
} else if !yym3870 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv3869)
|
|
} else {
|
|
z.DecFallback(yyv3869, false)
|
|
}
|
|
}
|
|
yyj3861++
|
|
if yyhl3861 {
|
|
yyb3861 = yyj3861 > l
|
|
} else {
|
|
yyb3861 = r.CheckBreak()
|
|
}
|
|
if yyb3861 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.LastTimestamp = pkg2_unversioned.Time{}
|
|
} else {
|
|
yyv3871 := &x.LastTimestamp
|
|
yym3872 := z.DecBinary()
|
|
_ = yym3872
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3871) {
|
|
} else if yym3872 {
|
|
z.DecBinaryUnmarshal(yyv3871)
|
|
} else if !yym3872 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv3871)
|
|
} else {
|
|
z.DecFallback(yyv3871, false)
|
|
}
|
|
}
|
|
yyj3861++
|
|
if yyhl3861 {
|
|
yyb3861 = yyj3861 > l
|
|
} else {
|
|
yyb3861 = r.CheckBreak()
|
|
}
|
|
if yyb3861 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Count = 0
|
|
} else {
|
|
x.Count = int32(r.DecodeInt(32))
|
|
}
|
|
yyj3861++
|
|
if yyhl3861 {
|
|
yyb3861 = yyj3861 > l
|
|
} else {
|
|
yyb3861 = r.CheckBreak()
|
|
}
|
|
if yyb3861 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Type = ""
|
|
} else {
|
|
x.Type = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj3861++
|
|
if yyhl3861 {
|
|
yyb3861 = yyj3861 > l
|
|
} else {
|
|
yyb3861 = r.CheckBreak()
|
|
}
|
|
if yyb3861 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3861-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 {
|
|
yym3875 := z.EncBinary()
|
|
_ = yym3875
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3876 := !z.EncBinary()
|
|
yy2arr3876 := z.EncBasicHandle().StructToArray
|
|
var yyq3876 [4]bool
|
|
_, _, _ = yysep3876, yyq3876, yy2arr3876
|
|
const yyr3876 bool = false
|
|
yyq3876[0] = x.Kind != ""
|
|
yyq3876[1] = x.APIVersion != ""
|
|
yyq3876[2] = true
|
|
var yynn3876 int
|
|
if yyr3876 || yy2arr3876 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn3876 = 1
|
|
for _, b := range yyq3876 {
|
|
if b {
|
|
yynn3876++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3876)
|
|
yynn3876 = 0
|
|
}
|
|
if yyr3876 || yy2arr3876 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3876[0] {
|
|
yym3878 := z.EncBinary()
|
|
_ = yym3878
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3876[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3879 := z.EncBinary()
|
|
_ = yym3879
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr3876 || yy2arr3876 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3876[1] {
|
|
yym3881 := z.EncBinary()
|
|
_ = yym3881
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3876[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3882 := z.EncBinary()
|
|
_ = yym3882
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr3876 || yy2arr3876 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3876[2] {
|
|
yy3884 := &x.ListMeta
|
|
yym3885 := z.EncBinary()
|
|
_ = yym3885
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3884) {
|
|
} else {
|
|
z.EncFallback(yy3884)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3876[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3886 := &x.ListMeta
|
|
yym3887 := z.EncBinary()
|
|
_ = yym3887
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3886) {
|
|
} else {
|
|
z.EncFallback(yy3886)
|
|
}
|
|
}
|
|
}
|
|
if yyr3876 || yy2arr3876 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3889 := z.EncBinary()
|
|
_ = yym3889
|
|
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 {
|
|
yym3890 := z.EncBinary()
|
|
_ = yym3890
|
|
if false {
|
|
} else {
|
|
h.encSliceEvent(([]Event)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr3876 || yy2arr3876 {
|
|
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
|
|
yym3891 := z.DecBinary()
|
|
_ = yym3891
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3892 := r.ContainerType()
|
|
if yyct3892 == codecSelferValueTypeMap1234 {
|
|
yyl3892 := r.ReadMapStart()
|
|
if yyl3892 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3892, d)
|
|
}
|
|
} else if yyct3892 == codecSelferValueTypeArray1234 {
|
|
yyl3892 := r.ReadArrayStart()
|
|
if yyl3892 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3892, 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 yys3893Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3893Slc
|
|
var yyhl3893 bool = l >= 0
|
|
for yyj3893 := 0; ; yyj3893++ {
|
|
if yyhl3893 {
|
|
if yyj3893 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3893Slc = r.DecodeBytes(yys3893Slc, true, true)
|
|
yys3893 := string(yys3893Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3893 {
|
|
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 {
|
|
yyv3896 := &x.ListMeta
|
|
yym3897 := z.DecBinary()
|
|
_ = yym3897
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3896) {
|
|
} else {
|
|
z.DecFallback(yyv3896, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv3898 := &x.Items
|
|
yym3899 := z.DecBinary()
|
|
_ = yym3899
|
|
if false {
|
|
} else {
|
|
h.decSliceEvent((*[]Event)(yyv3898), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3893)
|
|
} // end switch yys3893
|
|
} // end for yyj3893
|
|
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 yyj3900 int
|
|
var yyb3900 bool
|
|
var yyhl3900 bool = l >= 0
|
|
yyj3900++
|
|
if yyhl3900 {
|
|
yyb3900 = yyj3900 > l
|
|
} else {
|
|
yyb3900 = r.CheckBreak()
|
|
}
|
|
if yyb3900 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj3900++
|
|
if yyhl3900 {
|
|
yyb3900 = yyj3900 > l
|
|
} else {
|
|
yyb3900 = r.CheckBreak()
|
|
}
|
|
if yyb3900 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj3900++
|
|
if yyhl3900 {
|
|
yyb3900 = yyj3900 > l
|
|
} else {
|
|
yyb3900 = r.CheckBreak()
|
|
}
|
|
if yyb3900 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv3903 := &x.ListMeta
|
|
yym3904 := z.DecBinary()
|
|
_ = yym3904
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3903) {
|
|
} else {
|
|
z.DecFallback(yyv3903, false)
|
|
}
|
|
}
|
|
yyj3900++
|
|
if yyhl3900 {
|
|
yyb3900 = yyj3900 > l
|
|
} else {
|
|
yyb3900 = r.CheckBreak()
|
|
}
|
|
if yyb3900 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv3905 := &x.Items
|
|
yym3906 := z.DecBinary()
|
|
_ = yym3906
|
|
if false {
|
|
} else {
|
|
h.decSliceEvent((*[]Event)(yyv3905), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj3900++
|
|
if yyhl3900 {
|
|
yyb3900 = yyj3900 > l
|
|
} else {
|
|
yyb3900 = r.CheckBreak()
|
|
}
|
|
if yyb3900 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3900-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 {
|
|
yym3907 := z.EncBinary()
|
|
_ = yym3907
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3908 := !z.EncBinary()
|
|
yy2arr3908 := z.EncBasicHandle().StructToArray
|
|
var yyq3908 [4]bool
|
|
_, _, _ = yysep3908, yyq3908, yy2arr3908
|
|
const yyr3908 bool = false
|
|
yyq3908[0] = x.Kind != ""
|
|
yyq3908[1] = x.APIVersion != ""
|
|
yyq3908[2] = true
|
|
var yynn3908 int
|
|
if yyr3908 || yy2arr3908 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn3908 = 1
|
|
for _, b := range yyq3908 {
|
|
if b {
|
|
yynn3908++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3908)
|
|
yynn3908 = 0
|
|
}
|
|
if yyr3908 || yy2arr3908 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3908[0] {
|
|
yym3910 := z.EncBinary()
|
|
_ = yym3910
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3908[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3911 := z.EncBinary()
|
|
_ = yym3911
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr3908 || yy2arr3908 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3908[1] {
|
|
yym3913 := z.EncBinary()
|
|
_ = yym3913
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3908[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3914 := z.EncBinary()
|
|
_ = yym3914
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr3908 || yy2arr3908 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3908[2] {
|
|
yy3916 := &x.ListMeta
|
|
yym3917 := z.EncBinary()
|
|
_ = yym3917
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3916) {
|
|
} else {
|
|
z.EncFallback(yy3916)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3908[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3918 := &x.ListMeta
|
|
yym3919 := z.EncBinary()
|
|
_ = yym3919
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy3918) {
|
|
} else {
|
|
z.EncFallback(yy3918)
|
|
}
|
|
}
|
|
}
|
|
if yyr3908 || yy2arr3908 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3921 := z.EncBinary()
|
|
_ = yym3921
|
|
if false {
|
|
} else {
|
|
h.encSliceruntime_Object(([]pkg7_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 {
|
|
yym3922 := z.EncBinary()
|
|
_ = yym3922
|
|
if false {
|
|
} else {
|
|
h.encSliceruntime_Object(([]pkg7_runtime.Object)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr3908 || yy2arr3908 {
|
|
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
|
|
yym3923 := z.DecBinary()
|
|
_ = yym3923
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3924 := r.ContainerType()
|
|
if yyct3924 == codecSelferValueTypeMap1234 {
|
|
yyl3924 := r.ReadMapStart()
|
|
if yyl3924 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3924, d)
|
|
}
|
|
} else if yyct3924 == codecSelferValueTypeArray1234 {
|
|
yyl3924 := r.ReadArrayStart()
|
|
if yyl3924 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3924, 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 yys3925Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3925Slc
|
|
var yyhl3925 bool = l >= 0
|
|
for yyj3925 := 0; ; yyj3925++ {
|
|
if yyhl3925 {
|
|
if yyj3925 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3925Slc = r.DecodeBytes(yys3925Slc, true, true)
|
|
yys3925 := string(yys3925Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3925 {
|
|
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 {
|
|
yyv3928 := &x.ListMeta
|
|
yym3929 := z.DecBinary()
|
|
_ = yym3929
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3928) {
|
|
} else {
|
|
z.DecFallback(yyv3928, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv3930 := &x.Items
|
|
yym3931 := z.DecBinary()
|
|
_ = yym3931
|
|
if false {
|
|
} else {
|
|
h.decSliceruntime_Object((*[]pkg7_runtime.Object)(yyv3930), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3925)
|
|
} // end switch yys3925
|
|
} // end for yyj3925
|
|
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 yyj3932 int
|
|
var yyb3932 bool
|
|
var yyhl3932 bool = l >= 0
|
|
yyj3932++
|
|
if yyhl3932 {
|
|
yyb3932 = yyj3932 > l
|
|
} else {
|
|
yyb3932 = r.CheckBreak()
|
|
}
|
|
if yyb3932 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj3932++
|
|
if yyhl3932 {
|
|
yyb3932 = yyj3932 > l
|
|
} else {
|
|
yyb3932 = r.CheckBreak()
|
|
}
|
|
if yyb3932 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj3932++
|
|
if yyhl3932 {
|
|
yyb3932 = yyj3932 > l
|
|
} else {
|
|
yyb3932 = r.CheckBreak()
|
|
}
|
|
if yyb3932 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv3935 := &x.ListMeta
|
|
yym3936 := z.DecBinary()
|
|
_ = yym3936
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv3935) {
|
|
} else {
|
|
z.DecFallback(yyv3935, false)
|
|
}
|
|
}
|
|
yyj3932++
|
|
if yyhl3932 {
|
|
yyb3932 = yyj3932 > l
|
|
} else {
|
|
yyb3932 = r.CheckBreak()
|
|
}
|
|
if yyb3932 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv3937 := &x.Items
|
|
yym3938 := z.DecBinary()
|
|
_ = yym3938
|
|
if false {
|
|
} else {
|
|
h.decSliceruntime_Object((*[]pkg7_runtime.Object)(yyv3937), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj3932++
|
|
if yyhl3932 {
|
|
yyb3932 = yyj3932 > l
|
|
} else {
|
|
yyb3932 = r.CheckBreak()
|
|
}
|
|
if yyb3932 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3932-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x LimitType) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym3939 := z.EncBinary()
|
|
_ = yym3939
|
|
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
|
|
yym3940 := z.DecBinary()
|
|
_ = yym3940
|
|
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 {
|
|
yym3941 := z.EncBinary()
|
|
_ = yym3941
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3942 := !z.EncBinary()
|
|
yy2arr3942 := z.EncBasicHandle().StructToArray
|
|
var yyq3942 [6]bool
|
|
_, _, _ = yysep3942, yyq3942, yy2arr3942
|
|
const yyr3942 bool = false
|
|
yyq3942[0] = x.Type != ""
|
|
yyq3942[1] = len(x.Max) != 0
|
|
yyq3942[2] = len(x.Min) != 0
|
|
yyq3942[3] = len(x.Default) != 0
|
|
yyq3942[4] = len(x.DefaultRequest) != 0
|
|
yyq3942[5] = len(x.MaxLimitRequestRatio) != 0
|
|
var yynn3942 int
|
|
if yyr3942 || yy2arr3942 {
|
|
r.EncodeArrayStart(6)
|
|
} else {
|
|
yynn3942 = 0
|
|
for _, b := range yyq3942 {
|
|
if b {
|
|
yynn3942++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3942)
|
|
yynn3942 = 0
|
|
}
|
|
if yyr3942 || yy2arr3942 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3942[0] {
|
|
x.Type.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3942[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("type"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Type.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr3942 || yy2arr3942 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3942[1] {
|
|
if x.Max == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Max.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3942[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 yyr3942 || yy2arr3942 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3942[2] {
|
|
if x.Min == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Min.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3942[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 yyr3942 || yy2arr3942 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3942[3] {
|
|
if x.Default == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Default.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3942[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 yyr3942 || yy2arr3942 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3942[4] {
|
|
if x.DefaultRequest == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.DefaultRequest.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3942[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 yyr3942 || yy2arr3942 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3942[5] {
|
|
if x.MaxLimitRequestRatio == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.MaxLimitRequestRatio.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3942[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 yyr3942 || yy2arr3942 {
|
|
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
|
|
yym3949 := z.DecBinary()
|
|
_ = yym3949
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3950 := r.ContainerType()
|
|
if yyct3950 == codecSelferValueTypeMap1234 {
|
|
yyl3950 := r.ReadMapStart()
|
|
if yyl3950 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3950, d)
|
|
}
|
|
} else if yyct3950 == codecSelferValueTypeArray1234 {
|
|
yyl3950 := r.ReadArrayStart()
|
|
if yyl3950 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3950, 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 yys3951Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3951Slc
|
|
var yyhl3951 bool = l >= 0
|
|
for yyj3951 := 0; ; yyj3951++ {
|
|
if yyhl3951 {
|
|
if yyj3951 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3951Slc = r.DecodeBytes(yys3951Slc, true, true)
|
|
yys3951 := string(yys3951Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3951 {
|
|
case "type":
|
|
if r.TryDecodeAsNil() {
|
|
x.Type = ""
|
|
} else {
|
|
x.Type = LimitType(r.DecodeString())
|
|
}
|
|
case "max":
|
|
if r.TryDecodeAsNil() {
|
|
x.Max = nil
|
|
} else {
|
|
yyv3953 := &x.Max
|
|
yyv3953.CodecDecodeSelf(d)
|
|
}
|
|
case "min":
|
|
if r.TryDecodeAsNil() {
|
|
x.Min = nil
|
|
} else {
|
|
yyv3954 := &x.Min
|
|
yyv3954.CodecDecodeSelf(d)
|
|
}
|
|
case "default":
|
|
if r.TryDecodeAsNil() {
|
|
x.Default = nil
|
|
} else {
|
|
yyv3955 := &x.Default
|
|
yyv3955.CodecDecodeSelf(d)
|
|
}
|
|
case "defaultRequest":
|
|
if r.TryDecodeAsNil() {
|
|
x.DefaultRequest = nil
|
|
} else {
|
|
yyv3956 := &x.DefaultRequest
|
|
yyv3956.CodecDecodeSelf(d)
|
|
}
|
|
case "maxLimitRequestRatio":
|
|
if r.TryDecodeAsNil() {
|
|
x.MaxLimitRequestRatio = nil
|
|
} else {
|
|
yyv3957 := &x.MaxLimitRequestRatio
|
|
yyv3957.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3951)
|
|
} // end switch yys3951
|
|
} // end for yyj3951
|
|
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 yyj3958 int
|
|
var yyb3958 bool
|
|
var yyhl3958 bool = l >= 0
|
|
yyj3958++
|
|
if yyhl3958 {
|
|
yyb3958 = yyj3958 > l
|
|
} else {
|
|
yyb3958 = r.CheckBreak()
|
|
}
|
|
if yyb3958 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Type = ""
|
|
} else {
|
|
x.Type = LimitType(r.DecodeString())
|
|
}
|
|
yyj3958++
|
|
if yyhl3958 {
|
|
yyb3958 = yyj3958 > l
|
|
} else {
|
|
yyb3958 = r.CheckBreak()
|
|
}
|
|
if yyb3958 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Max = nil
|
|
} else {
|
|
yyv3960 := &x.Max
|
|
yyv3960.CodecDecodeSelf(d)
|
|
}
|
|
yyj3958++
|
|
if yyhl3958 {
|
|
yyb3958 = yyj3958 > l
|
|
} else {
|
|
yyb3958 = r.CheckBreak()
|
|
}
|
|
if yyb3958 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Min = nil
|
|
} else {
|
|
yyv3961 := &x.Min
|
|
yyv3961.CodecDecodeSelf(d)
|
|
}
|
|
yyj3958++
|
|
if yyhl3958 {
|
|
yyb3958 = yyj3958 > l
|
|
} else {
|
|
yyb3958 = r.CheckBreak()
|
|
}
|
|
if yyb3958 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Default = nil
|
|
} else {
|
|
yyv3962 := &x.Default
|
|
yyv3962.CodecDecodeSelf(d)
|
|
}
|
|
yyj3958++
|
|
if yyhl3958 {
|
|
yyb3958 = yyj3958 > l
|
|
} else {
|
|
yyb3958 = r.CheckBreak()
|
|
}
|
|
if yyb3958 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.DefaultRequest = nil
|
|
} else {
|
|
yyv3963 := &x.DefaultRequest
|
|
yyv3963.CodecDecodeSelf(d)
|
|
}
|
|
yyj3958++
|
|
if yyhl3958 {
|
|
yyb3958 = yyj3958 > l
|
|
} else {
|
|
yyb3958 = r.CheckBreak()
|
|
}
|
|
if yyb3958 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.MaxLimitRequestRatio = nil
|
|
} else {
|
|
yyv3964 := &x.MaxLimitRequestRatio
|
|
yyv3964.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj3958++
|
|
if yyhl3958 {
|
|
yyb3958 = yyj3958 > l
|
|
} else {
|
|
yyb3958 = r.CheckBreak()
|
|
}
|
|
if yyb3958 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3958-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 {
|
|
yym3965 := z.EncBinary()
|
|
_ = yym3965
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3966 := !z.EncBinary()
|
|
yy2arr3966 := z.EncBasicHandle().StructToArray
|
|
var yyq3966 [1]bool
|
|
_, _, _ = yysep3966, yyq3966, yy2arr3966
|
|
const yyr3966 bool = false
|
|
var yynn3966 int
|
|
if yyr3966 || yy2arr3966 {
|
|
r.EncodeArrayStart(1)
|
|
} else {
|
|
yynn3966 = 1
|
|
for _, b := range yyq3966 {
|
|
if b {
|
|
yynn3966++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3966)
|
|
yynn3966 = 0
|
|
}
|
|
if yyr3966 || yy2arr3966 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Limits == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym3968 := z.EncBinary()
|
|
_ = yym3968
|
|
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 {
|
|
yym3969 := z.EncBinary()
|
|
_ = yym3969
|
|
if false {
|
|
} else {
|
|
h.encSliceLimitRangeItem(([]LimitRangeItem)(x.Limits), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr3966 || yy2arr3966 {
|
|
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
|
|
yym3970 := z.DecBinary()
|
|
_ = yym3970
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3971 := r.ContainerType()
|
|
if yyct3971 == codecSelferValueTypeMap1234 {
|
|
yyl3971 := r.ReadMapStart()
|
|
if yyl3971 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3971, d)
|
|
}
|
|
} else if yyct3971 == codecSelferValueTypeArray1234 {
|
|
yyl3971 := r.ReadArrayStart()
|
|
if yyl3971 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3971, 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 yys3972Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3972Slc
|
|
var yyhl3972 bool = l >= 0
|
|
for yyj3972 := 0; ; yyj3972++ {
|
|
if yyhl3972 {
|
|
if yyj3972 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3972Slc = r.DecodeBytes(yys3972Slc, true, true)
|
|
yys3972 := string(yys3972Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3972 {
|
|
case "limits":
|
|
if r.TryDecodeAsNil() {
|
|
x.Limits = nil
|
|
} else {
|
|
yyv3973 := &x.Limits
|
|
yym3974 := z.DecBinary()
|
|
_ = yym3974
|
|
if false {
|
|
} else {
|
|
h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv3973), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3972)
|
|
} // end switch yys3972
|
|
} // end for yyj3972
|
|
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 yyj3975 int
|
|
var yyb3975 bool
|
|
var yyhl3975 bool = l >= 0
|
|
yyj3975++
|
|
if yyhl3975 {
|
|
yyb3975 = yyj3975 > l
|
|
} else {
|
|
yyb3975 = r.CheckBreak()
|
|
}
|
|
if yyb3975 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Limits = nil
|
|
} else {
|
|
yyv3976 := &x.Limits
|
|
yym3977 := z.DecBinary()
|
|
_ = yym3977
|
|
if false {
|
|
} else {
|
|
h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv3976), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj3975++
|
|
if yyhl3975 {
|
|
yyb3975 = yyj3975 > l
|
|
} else {
|
|
yyb3975 = r.CheckBreak()
|
|
}
|
|
if yyb3975 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3975-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 {
|
|
yym3978 := z.EncBinary()
|
|
_ = yym3978
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep3979 := !z.EncBinary()
|
|
yy2arr3979 := z.EncBasicHandle().StructToArray
|
|
var yyq3979 [4]bool
|
|
_, _, _ = yysep3979, yyq3979, yy2arr3979
|
|
const yyr3979 bool = false
|
|
yyq3979[0] = x.Kind != ""
|
|
yyq3979[1] = x.APIVersion != ""
|
|
yyq3979[2] = true
|
|
yyq3979[3] = true
|
|
var yynn3979 int
|
|
if yyr3979 || yy2arr3979 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn3979 = 0
|
|
for _, b := range yyq3979 {
|
|
if b {
|
|
yynn3979++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn3979)
|
|
yynn3979 = 0
|
|
}
|
|
if yyr3979 || yy2arr3979 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3979[0] {
|
|
yym3981 := z.EncBinary()
|
|
_ = yym3981
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3979[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3982 := z.EncBinary()
|
|
_ = yym3982
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr3979 || yy2arr3979 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3979[1] {
|
|
yym3984 := z.EncBinary()
|
|
_ = yym3984
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq3979[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym3985 := z.EncBinary()
|
|
_ = yym3985
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr3979 || yy2arr3979 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3979[2] {
|
|
yy3987 := &x.ObjectMeta
|
|
yy3987.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3979[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3988 := &x.ObjectMeta
|
|
yy3988.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr3979 || yy2arr3979 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq3979[3] {
|
|
yy3990 := &x.Spec
|
|
yy3990.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq3979[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("spec"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy3991 := &x.Spec
|
|
yy3991.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr3979 || yy2arr3979 {
|
|
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
|
|
yym3992 := z.DecBinary()
|
|
_ = yym3992
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct3993 := r.ContainerType()
|
|
if yyct3993 == codecSelferValueTypeMap1234 {
|
|
yyl3993 := r.ReadMapStart()
|
|
if yyl3993 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl3993, d)
|
|
}
|
|
} else if yyct3993 == codecSelferValueTypeArray1234 {
|
|
yyl3993 := r.ReadArrayStart()
|
|
if yyl3993 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl3993, 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 yys3994Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys3994Slc
|
|
var yyhl3994 bool = l >= 0
|
|
for yyj3994 := 0; ; yyj3994++ {
|
|
if yyhl3994 {
|
|
if yyj3994 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys3994Slc = r.DecodeBytes(yys3994Slc, true, true)
|
|
yys3994 := string(yys3994Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys3994 {
|
|
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 {
|
|
yyv3997 := &x.ObjectMeta
|
|
yyv3997.CodecDecodeSelf(d)
|
|
}
|
|
case "spec":
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = LimitRangeSpec{}
|
|
} else {
|
|
yyv3998 := &x.Spec
|
|
yyv3998.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys3994)
|
|
} // end switch yys3994
|
|
} // end for yyj3994
|
|
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 yyj3999 int
|
|
var yyb3999 bool
|
|
var yyhl3999 bool = l >= 0
|
|
yyj3999++
|
|
if yyhl3999 {
|
|
yyb3999 = yyj3999 > l
|
|
} else {
|
|
yyb3999 = r.CheckBreak()
|
|
}
|
|
if yyb3999 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj3999++
|
|
if yyhl3999 {
|
|
yyb3999 = yyj3999 > l
|
|
} else {
|
|
yyb3999 = r.CheckBreak()
|
|
}
|
|
if yyb3999 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj3999++
|
|
if yyhl3999 {
|
|
yyb3999 = yyj3999 > l
|
|
} else {
|
|
yyb3999 = r.CheckBreak()
|
|
}
|
|
if yyb3999 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv4002 := &x.ObjectMeta
|
|
yyv4002.CodecDecodeSelf(d)
|
|
}
|
|
yyj3999++
|
|
if yyhl3999 {
|
|
yyb3999 = yyj3999 > l
|
|
} else {
|
|
yyb3999 = r.CheckBreak()
|
|
}
|
|
if yyb3999 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = LimitRangeSpec{}
|
|
} else {
|
|
yyv4003 := &x.Spec
|
|
yyv4003.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj3999++
|
|
if yyhl3999 {
|
|
yyb3999 = yyj3999 > l
|
|
} else {
|
|
yyb3999 = r.CheckBreak()
|
|
}
|
|
if yyb3999 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj3999-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 {
|
|
yym4004 := z.EncBinary()
|
|
_ = yym4004
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep4005 := !z.EncBinary()
|
|
yy2arr4005 := z.EncBasicHandle().StructToArray
|
|
var yyq4005 [4]bool
|
|
_, _, _ = yysep4005, yyq4005, yy2arr4005
|
|
const yyr4005 bool = false
|
|
yyq4005[0] = x.Kind != ""
|
|
yyq4005[1] = x.APIVersion != ""
|
|
yyq4005[2] = true
|
|
var yynn4005 int
|
|
if yyr4005 || yy2arr4005 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn4005 = 1
|
|
for _, b := range yyq4005 {
|
|
if b {
|
|
yynn4005++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn4005)
|
|
yynn4005 = 0
|
|
}
|
|
if yyr4005 || yy2arr4005 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4005[0] {
|
|
yym4007 := z.EncBinary()
|
|
_ = yym4007
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq4005[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym4008 := z.EncBinary()
|
|
_ = yym4008
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr4005 || yy2arr4005 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4005[1] {
|
|
yym4010 := z.EncBinary()
|
|
_ = yym4010
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq4005[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym4011 := z.EncBinary()
|
|
_ = yym4011
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr4005 || yy2arr4005 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4005[2] {
|
|
yy4013 := &x.ListMeta
|
|
yym4014 := z.EncBinary()
|
|
_ = yym4014
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy4013) {
|
|
} else {
|
|
z.EncFallback(yy4013)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq4005[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy4015 := &x.ListMeta
|
|
yym4016 := z.EncBinary()
|
|
_ = yym4016
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy4015) {
|
|
} else {
|
|
z.EncFallback(yy4015)
|
|
}
|
|
}
|
|
}
|
|
if yyr4005 || yy2arr4005 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym4018 := z.EncBinary()
|
|
_ = yym4018
|
|
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 {
|
|
yym4019 := z.EncBinary()
|
|
_ = yym4019
|
|
if false {
|
|
} else {
|
|
h.encSliceLimitRange(([]LimitRange)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr4005 || yy2arr4005 {
|
|
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
|
|
yym4020 := z.DecBinary()
|
|
_ = yym4020
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct4021 := r.ContainerType()
|
|
if yyct4021 == codecSelferValueTypeMap1234 {
|
|
yyl4021 := r.ReadMapStart()
|
|
if yyl4021 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl4021, d)
|
|
}
|
|
} else if yyct4021 == codecSelferValueTypeArray1234 {
|
|
yyl4021 := r.ReadArrayStart()
|
|
if yyl4021 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl4021, 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 yys4022Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys4022Slc
|
|
var yyhl4022 bool = l >= 0
|
|
for yyj4022 := 0; ; yyj4022++ {
|
|
if yyhl4022 {
|
|
if yyj4022 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys4022Slc = r.DecodeBytes(yys4022Slc, true, true)
|
|
yys4022 := string(yys4022Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys4022 {
|
|
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 {
|
|
yyv4025 := &x.ListMeta
|
|
yym4026 := z.DecBinary()
|
|
_ = yym4026
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv4025) {
|
|
} else {
|
|
z.DecFallback(yyv4025, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv4027 := &x.Items
|
|
yym4028 := z.DecBinary()
|
|
_ = yym4028
|
|
if false {
|
|
} else {
|
|
h.decSliceLimitRange((*[]LimitRange)(yyv4027), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys4022)
|
|
} // end switch yys4022
|
|
} // end for yyj4022
|
|
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 yyj4029 int
|
|
var yyb4029 bool
|
|
var yyhl4029 bool = l >= 0
|
|
yyj4029++
|
|
if yyhl4029 {
|
|
yyb4029 = yyj4029 > l
|
|
} else {
|
|
yyb4029 = r.CheckBreak()
|
|
}
|
|
if yyb4029 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj4029++
|
|
if yyhl4029 {
|
|
yyb4029 = yyj4029 > l
|
|
} else {
|
|
yyb4029 = r.CheckBreak()
|
|
}
|
|
if yyb4029 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj4029++
|
|
if yyhl4029 {
|
|
yyb4029 = yyj4029 > l
|
|
} else {
|
|
yyb4029 = r.CheckBreak()
|
|
}
|
|
if yyb4029 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv4032 := &x.ListMeta
|
|
yym4033 := z.DecBinary()
|
|
_ = yym4033
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv4032) {
|
|
} else {
|
|
z.DecFallback(yyv4032, false)
|
|
}
|
|
}
|
|
yyj4029++
|
|
if yyhl4029 {
|
|
yyb4029 = yyj4029 > l
|
|
} else {
|
|
yyb4029 = r.CheckBreak()
|
|
}
|
|
if yyb4029 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv4034 := &x.Items
|
|
yym4035 := z.DecBinary()
|
|
_ = yym4035
|
|
if false {
|
|
} else {
|
|
h.decSliceLimitRange((*[]LimitRange)(yyv4034), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj4029++
|
|
if yyhl4029 {
|
|
yyb4029 = yyj4029 > l
|
|
} else {
|
|
yyb4029 = r.CheckBreak()
|
|
}
|
|
if yyb4029 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj4029-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x ResourceQuotaScope) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym4036 := z.EncBinary()
|
|
_ = yym4036
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x))
|
|
}
|
|
}
|
|
|
|
func (x *ResourceQuotaScope) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym4037 := z.DecBinary()
|
|
_ = yym4037
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
*((*string)(x)) = r.DecodeString()
|
|
}
|
|
}
|
|
|
|
func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym4038 := z.EncBinary()
|
|
_ = yym4038
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep4039 := !z.EncBinary()
|
|
yy2arr4039 := z.EncBasicHandle().StructToArray
|
|
var yyq4039 [2]bool
|
|
_, _, _ = yysep4039, yyq4039, yy2arr4039
|
|
const yyr4039 bool = false
|
|
yyq4039[0] = len(x.Hard) != 0
|
|
yyq4039[1] = len(x.Scopes) != 0
|
|
var yynn4039 int
|
|
if yyr4039 || yy2arr4039 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn4039 = 0
|
|
for _, b := range yyq4039 {
|
|
if b {
|
|
yynn4039++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn4039)
|
|
yynn4039 = 0
|
|
}
|
|
if yyr4039 || yy2arr4039 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4039[0] {
|
|
if x.Hard == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Hard.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq4039[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 yyr4039 || yy2arr4039 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4039[1] {
|
|
if x.Scopes == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym4042 := z.EncBinary()
|
|
_ = yym4042
|
|
if false {
|
|
} else {
|
|
h.encSliceResourceQuotaScope(([]ResourceQuotaScope)(x.Scopes), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq4039[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("scopes"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Scopes == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym4043 := z.EncBinary()
|
|
_ = yym4043
|
|
if false {
|
|
} else {
|
|
h.encSliceResourceQuotaScope(([]ResourceQuotaScope)(x.Scopes), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr4039 || yy2arr4039 {
|
|
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
|
|
yym4044 := z.DecBinary()
|
|
_ = yym4044
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct4045 := r.ContainerType()
|
|
if yyct4045 == codecSelferValueTypeMap1234 {
|
|
yyl4045 := r.ReadMapStart()
|
|
if yyl4045 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl4045, d)
|
|
}
|
|
} else if yyct4045 == codecSelferValueTypeArray1234 {
|
|
yyl4045 := r.ReadArrayStart()
|
|
if yyl4045 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl4045, 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 yys4046Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys4046Slc
|
|
var yyhl4046 bool = l >= 0
|
|
for yyj4046 := 0; ; yyj4046++ {
|
|
if yyhl4046 {
|
|
if yyj4046 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys4046Slc = r.DecodeBytes(yys4046Slc, true, true)
|
|
yys4046 := string(yys4046Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys4046 {
|
|
case "hard":
|
|
if r.TryDecodeAsNil() {
|
|
x.Hard = nil
|
|
} else {
|
|
yyv4047 := &x.Hard
|
|
yyv4047.CodecDecodeSelf(d)
|
|
}
|
|
case "scopes":
|
|
if r.TryDecodeAsNil() {
|
|
x.Scopes = nil
|
|
} else {
|
|
yyv4048 := &x.Scopes
|
|
yym4049 := z.DecBinary()
|
|
_ = yym4049
|
|
if false {
|
|
} else {
|
|
h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv4048), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys4046)
|
|
} // end switch yys4046
|
|
} // end for yyj4046
|
|
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 yyj4050 int
|
|
var yyb4050 bool
|
|
var yyhl4050 bool = l >= 0
|
|
yyj4050++
|
|
if yyhl4050 {
|
|
yyb4050 = yyj4050 > l
|
|
} else {
|
|
yyb4050 = r.CheckBreak()
|
|
}
|
|
if yyb4050 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Hard = nil
|
|
} else {
|
|
yyv4051 := &x.Hard
|
|
yyv4051.CodecDecodeSelf(d)
|
|
}
|
|
yyj4050++
|
|
if yyhl4050 {
|
|
yyb4050 = yyj4050 > l
|
|
} else {
|
|
yyb4050 = r.CheckBreak()
|
|
}
|
|
if yyb4050 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Scopes = nil
|
|
} else {
|
|
yyv4052 := &x.Scopes
|
|
yym4053 := z.DecBinary()
|
|
_ = yym4053
|
|
if false {
|
|
} else {
|
|
h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv4052), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj4050++
|
|
if yyhl4050 {
|
|
yyb4050 = yyj4050 > l
|
|
} else {
|
|
yyb4050 = r.CheckBreak()
|
|
}
|
|
if yyb4050 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj4050-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 {
|
|
yym4054 := z.EncBinary()
|
|
_ = yym4054
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep4055 := !z.EncBinary()
|
|
yy2arr4055 := z.EncBasicHandle().StructToArray
|
|
var yyq4055 [2]bool
|
|
_, _, _ = yysep4055, yyq4055, yy2arr4055
|
|
const yyr4055 bool = false
|
|
yyq4055[0] = len(x.Hard) != 0
|
|
yyq4055[1] = len(x.Used) != 0
|
|
var yynn4055 int
|
|
if yyr4055 || yy2arr4055 {
|
|
r.EncodeArrayStart(2)
|
|
} else {
|
|
yynn4055 = 0
|
|
for _, b := range yyq4055 {
|
|
if b {
|
|
yynn4055++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn4055)
|
|
yynn4055 = 0
|
|
}
|
|
if yyr4055 || yy2arr4055 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4055[0] {
|
|
if x.Hard == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Hard.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq4055[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 yyr4055 || yy2arr4055 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4055[1] {
|
|
if x.Used == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Used.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq4055[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 yyr4055 || yy2arr4055 {
|
|
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
|
|
yym4058 := z.DecBinary()
|
|
_ = yym4058
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct4059 := r.ContainerType()
|
|
if yyct4059 == codecSelferValueTypeMap1234 {
|
|
yyl4059 := r.ReadMapStart()
|
|
if yyl4059 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl4059, d)
|
|
}
|
|
} else if yyct4059 == codecSelferValueTypeArray1234 {
|
|
yyl4059 := r.ReadArrayStart()
|
|
if yyl4059 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl4059, 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 yys4060Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys4060Slc
|
|
var yyhl4060 bool = l >= 0
|
|
for yyj4060 := 0; ; yyj4060++ {
|
|
if yyhl4060 {
|
|
if yyj4060 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys4060Slc = r.DecodeBytes(yys4060Slc, true, true)
|
|
yys4060 := string(yys4060Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys4060 {
|
|
case "hard":
|
|
if r.TryDecodeAsNil() {
|
|
x.Hard = nil
|
|
} else {
|
|
yyv4061 := &x.Hard
|
|
yyv4061.CodecDecodeSelf(d)
|
|
}
|
|
case "used":
|
|
if r.TryDecodeAsNil() {
|
|
x.Used = nil
|
|
} else {
|
|
yyv4062 := &x.Used
|
|
yyv4062.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys4060)
|
|
} // end switch yys4060
|
|
} // end for yyj4060
|
|
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 yyj4063 int
|
|
var yyb4063 bool
|
|
var yyhl4063 bool = l >= 0
|
|
yyj4063++
|
|
if yyhl4063 {
|
|
yyb4063 = yyj4063 > l
|
|
} else {
|
|
yyb4063 = r.CheckBreak()
|
|
}
|
|
if yyb4063 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Hard = nil
|
|
} else {
|
|
yyv4064 := &x.Hard
|
|
yyv4064.CodecDecodeSelf(d)
|
|
}
|
|
yyj4063++
|
|
if yyhl4063 {
|
|
yyb4063 = yyj4063 > l
|
|
} else {
|
|
yyb4063 = r.CheckBreak()
|
|
}
|
|
if yyb4063 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Used = nil
|
|
} else {
|
|
yyv4065 := &x.Used
|
|
yyv4065.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj4063++
|
|
if yyhl4063 {
|
|
yyb4063 = yyj4063 > l
|
|
} else {
|
|
yyb4063 = r.CheckBreak()
|
|
}
|
|
if yyb4063 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj4063-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 {
|
|
yym4066 := z.EncBinary()
|
|
_ = yym4066
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep4067 := !z.EncBinary()
|
|
yy2arr4067 := z.EncBasicHandle().StructToArray
|
|
var yyq4067 [5]bool
|
|
_, _, _ = yysep4067, yyq4067, yy2arr4067
|
|
const yyr4067 bool = false
|
|
yyq4067[0] = x.Kind != ""
|
|
yyq4067[1] = x.APIVersion != ""
|
|
yyq4067[2] = true
|
|
yyq4067[3] = true
|
|
yyq4067[4] = true
|
|
var yynn4067 int
|
|
if yyr4067 || yy2arr4067 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn4067 = 0
|
|
for _, b := range yyq4067 {
|
|
if b {
|
|
yynn4067++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn4067)
|
|
yynn4067 = 0
|
|
}
|
|
if yyr4067 || yy2arr4067 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4067[0] {
|
|
yym4069 := z.EncBinary()
|
|
_ = yym4069
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq4067[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym4070 := z.EncBinary()
|
|
_ = yym4070
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr4067 || yy2arr4067 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4067[1] {
|
|
yym4072 := z.EncBinary()
|
|
_ = yym4072
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq4067[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym4073 := z.EncBinary()
|
|
_ = yym4073
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr4067 || yy2arr4067 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4067[2] {
|
|
yy4075 := &x.ObjectMeta
|
|
yy4075.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq4067[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy4076 := &x.ObjectMeta
|
|
yy4076.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr4067 || yy2arr4067 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4067[3] {
|
|
yy4078 := &x.Spec
|
|
yy4078.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq4067[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("spec"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy4079 := &x.Spec
|
|
yy4079.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr4067 || yy2arr4067 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4067[4] {
|
|
yy4081 := &x.Status
|
|
yy4081.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq4067[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("status"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy4082 := &x.Status
|
|
yy4082.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr4067 || yy2arr4067 {
|
|
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
|
|
yym4083 := z.DecBinary()
|
|
_ = yym4083
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct4084 := r.ContainerType()
|
|
if yyct4084 == codecSelferValueTypeMap1234 {
|
|
yyl4084 := r.ReadMapStart()
|
|
if yyl4084 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl4084, d)
|
|
}
|
|
} else if yyct4084 == codecSelferValueTypeArray1234 {
|
|
yyl4084 := r.ReadArrayStart()
|
|
if yyl4084 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl4084, 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 yys4085Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys4085Slc
|
|
var yyhl4085 bool = l >= 0
|
|
for yyj4085 := 0; ; yyj4085++ {
|
|
if yyhl4085 {
|
|
if yyj4085 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys4085Slc = r.DecodeBytes(yys4085Slc, true, true)
|
|
yys4085 := string(yys4085Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys4085 {
|
|
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 {
|
|
yyv4088 := &x.ObjectMeta
|
|
yyv4088.CodecDecodeSelf(d)
|
|
}
|
|
case "spec":
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = ResourceQuotaSpec{}
|
|
} else {
|
|
yyv4089 := &x.Spec
|
|
yyv4089.CodecDecodeSelf(d)
|
|
}
|
|
case "status":
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = ResourceQuotaStatus{}
|
|
} else {
|
|
yyv4090 := &x.Status
|
|
yyv4090.CodecDecodeSelf(d)
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys4085)
|
|
} // end switch yys4085
|
|
} // end for yyj4085
|
|
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 yyj4091 int
|
|
var yyb4091 bool
|
|
var yyhl4091 bool = l >= 0
|
|
yyj4091++
|
|
if yyhl4091 {
|
|
yyb4091 = yyj4091 > l
|
|
} else {
|
|
yyb4091 = r.CheckBreak()
|
|
}
|
|
if yyb4091 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj4091++
|
|
if yyhl4091 {
|
|
yyb4091 = yyj4091 > l
|
|
} else {
|
|
yyb4091 = r.CheckBreak()
|
|
}
|
|
if yyb4091 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj4091++
|
|
if yyhl4091 {
|
|
yyb4091 = yyj4091 > l
|
|
} else {
|
|
yyb4091 = r.CheckBreak()
|
|
}
|
|
if yyb4091 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv4094 := &x.ObjectMeta
|
|
yyv4094.CodecDecodeSelf(d)
|
|
}
|
|
yyj4091++
|
|
if yyhl4091 {
|
|
yyb4091 = yyj4091 > l
|
|
} else {
|
|
yyb4091 = r.CheckBreak()
|
|
}
|
|
if yyb4091 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Spec = ResourceQuotaSpec{}
|
|
} else {
|
|
yyv4095 := &x.Spec
|
|
yyv4095.CodecDecodeSelf(d)
|
|
}
|
|
yyj4091++
|
|
if yyhl4091 {
|
|
yyb4091 = yyj4091 > l
|
|
} else {
|
|
yyb4091 = r.CheckBreak()
|
|
}
|
|
if yyb4091 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = ResourceQuotaStatus{}
|
|
} else {
|
|
yyv4096 := &x.Status
|
|
yyv4096.CodecDecodeSelf(d)
|
|
}
|
|
for {
|
|
yyj4091++
|
|
if yyhl4091 {
|
|
yyb4091 = yyj4091 > l
|
|
} else {
|
|
yyb4091 = r.CheckBreak()
|
|
}
|
|
if yyb4091 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj4091-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 {
|
|
yym4097 := z.EncBinary()
|
|
_ = yym4097
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep4098 := !z.EncBinary()
|
|
yy2arr4098 := z.EncBasicHandle().StructToArray
|
|
var yyq4098 [4]bool
|
|
_, _, _ = yysep4098, yyq4098, yy2arr4098
|
|
const yyr4098 bool = false
|
|
yyq4098[0] = x.Kind != ""
|
|
yyq4098[1] = x.APIVersion != ""
|
|
yyq4098[2] = true
|
|
var yynn4098 int
|
|
if yyr4098 || yy2arr4098 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn4098 = 1
|
|
for _, b := range yyq4098 {
|
|
if b {
|
|
yynn4098++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn4098)
|
|
yynn4098 = 0
|
|
}
|
|
if yyr4098 || yy2arr4098 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4098[0] {
|
|
yym4100 := z.EncBinary()
|
|
_ = yym4100
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq4098[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym4101 := z.EncBinary()
|
|
_ = yym4101
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr4098 || yy2arr4098 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4098[1] {
|
|
yym4103 := z.EncBinary()
|
|
_ = yym4103
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq4098[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym4104 := z.EncBinary()
|
|
_ = yym4104
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr4098 || yy2arr4098 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4098[2] {
|
|
yy4106 := &x.ListMeta
|
|
yym4107 := z.EncBinary()
|
|
_ = yym4107
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy4106) {
|
|
} else {
|
|
z.EncFallback(yy4106)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq4098[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy4108 := &x.ListMeta
|
|
yym4109 := z.EncBinary()
|
|
_ = yym4109
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy4108) {
|
|
} else {
|
|
z.EncFallback(yy4108)
|
|
}
|
|
}
|
|
}
|
|
if yyr4098 || yy2arr4098 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym4111 := z.EncBinary()
|
|
_ = yym4111
|
|
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 {
|
|
yym4112 := z.EncBinary()
|
|
_ = yym4112
|
|
if false {
|
|
} else {
|
|
h.encSliceResourceQuota(([]ResourceQuota)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr4098 || yy2arr4098 {
|
|
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
|
|
yym4113 := z.DecBinary()
|
|
_ = yym4113
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct4114 := r.ContainerType()
|
|
if yyct4114 == codecSelferValueTypeMap1234 {
|
|
yyl4114 := r.ReadMapStart()
|
|
if yyl4114 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl4114, d)
|
|
}
|
|
} else if yyct4114 == codecSelferValueTypeArray1234 {
|
|
yyl4114 := r.ReadArrayStart()
|
|
if yyl4114 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl4114, 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 yys4115Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys4115Slc
|
|
var yyhl4115 bool = l >= 0
|
|
for yyj4115 := 0; ; yyj4115++ {
|
|
if yyhl4115 {
|
|
if yyj4115 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys4115Slc = r.DecodeBytes(yys4115Slc, true, true)
|
|
yys4115 := string(yys4115Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys4115 {
|
|
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 {
|
|
yyv4118 := &x.ListMeta
|
|
yym4119 := z.DecBinary()
|
|
_ = yym4119
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv4118) {
|
|
} else {
|
|
z.DecFallback(yyv4118, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv4120 := &x.Items
|
|
yym4121 := z.DecBinary()
|
|
_ = yym4121
|
|
if false {
|
|
} else {
|
|
h.decSliceResourceQuota((*[]ResourceQuota)(yyv4120), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys4115)
|
|
} // end switch yys4115
|
|
} // end for yyj4115
|
|
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 yyj4122 int
|
|
var yyb4122 bool
|
|
var yyhl4122 bool = l >= 0
|
|
yyj4122++
|
|
if yyhl4122 {
|
|
yyb4122 = yyj4122 > l
|
|
} else {
|
|
yyb4122 = r.CheckBreak()
|
|
}
|
|
if yyb4122 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj4122++
|
|
if yyhl4122 {
|
|
yyb4122 = yyj4122 > l
|
|
} else {
|
|
yyb4122 = r.CheckBreak()
|
|
}
|
|
if yyb4122 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj4122++
|
|
if yyhl4122 {
|
|
yyb4122 = yyj4122 > l
|
|
} else {
|
|
yyb4122 = r.CheckBreak()
|
|
}
|
|
if yyb4122 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv4125 := &x.ListMeta
|
|
yym4126 := z.DecBinary()
|
|
_ = yym4126
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv4125) {
|
|
} else {
|
|
z.DecFallback(yyv4125, false)
|
|
}
|
|
}
|
|
yyj4122++
|
|
if yyhl4122 {
|
|
yyb4122 = yyj4122 > l
|
|
} else {
|
|
yyb4122 = r.CheckBreak()
|
|
}
|
|
if yyb4122 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv4127 := &x.Items
|
|
yym4128 := z.DecBinary()
|
|
_ = yym4128
|
|
if false {
|
|
} else {
|
|
h.decSliceResourceQuota((*[]ResourceQuota)(yyv4127), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj4122++
|
|
if yyhl4122 {
|
|
yyb4122 = yyj4122 > l
|
|
} else {
|
|
yyb4122 = r.CheckBreak()
|
|
}
|
|
if yyb4122 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj4122-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 {
|
|
yym4129 := z.EncBinary()
|
|
_ = yym4129
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep4130 := !z.EncBinary()
|
|
yy2arr4130 := z.EncBasicHandle().StructToArray
|
|
var yyq4130 [5]bool
|
|
_, _, _ = yysep4130, yyq4130, yy2arr4130
|
|
const yyr4130 bool = false
|
|
yyq4130[0] = x.Kind != ""
|
|
yyq4130[1] = x.APIVersion != ""
|
|
yyq4130[2] = true
|
|
yyq4130[3] = len(x.Data) != 0
|
|
yyq4130[4] = x.Type != ""
|
|
var yynn4130 int
|
|
if yyr4130 || yy2arr4130 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn4130 = 0
|
|
for _, b := range yyq4130 {
|
|
if b {
|
|
yynn4130++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn4130)
|
|
yynn4130 = 0
|
|
}
|
|
if yyr4130 || yy2arr4130 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4130[0] {
|
|
yym4132 := z.EncBinary()
|
|
_ = yym4132
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq4130[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym4133 := z.EncBinary()
|
|
_ = yym4133
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr4130 || yy2arr4130 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4130[1] {
|
|
yym4135 := z.EncBinary()
|
|
_ = yym4135
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq4130[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym4136 := z.EncBinary()
|
|
_ = yym4136
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr4130 || yy2arr4130 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4130[2] {
|
|
yy4138 := &x.ObjectMeta
|
|
yy4138.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq4130[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy4139 := &x.ObjectMeta
|
|
yy4139.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr4130 || yy2arr4130 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4130[3] {
|
|
if x.Data == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym4141 := z.EncBinary()
|
|
_ = yym4141
|
|
if false {
|
|
} else {
|
|
h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq4130[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("data"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Data == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym4142 := z.EncBinary()
|
|
_ = yym4142
|
|
if false {
|
|
} else {
|
|
h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr4130 || yy2arr4130 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4130[4] {
|
|
x.Type.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq4130[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("type"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
x.Type.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr4130 || yy2arr4130 {
|
|
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
|
|
yym4144 := z.DecBinary()
|
|
_ = yym4144
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct4145 := r.ContainerType()
|
|
if yyct4145 == codecSelferValueTypeMap1234 {
|
|
yyl4145 := r.ReadMapStart()
|
|
if yyl4145 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl4145, d)
|
|
}
|
|
} else if yyct4145 == codecSelferValueTypeArray1234 {
|
|
yyl4145 := r.ReadArrayStart()
|
|
if yyl4145 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl4145, 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 yys4146Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys4146Slc
|
|
var yyhl4146 bool = l >= 0
|
|
for yyj4146 := 0; ; yyj4146++ {
|
|
if yyhl4146 {
|
|
if yyj4146 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys4146Slc = r.DecodeBytes(yys4146Slc, true, true)
|
|
yys4146 := string(yys4146Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys4146 {
|
|
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 {
|
|
yyv4149 := &x.ObjectMeta
|
|
yyv4149.CodecDecodeSelf(d)
|
|
}
|
|
case "data":
|
|
if r.TryDecodeAsNil() {
|
|
x.Data = nil
|
|
} else {
|
|
yyv4150 := &x.Data
|
|
yym4151 := z.DecBinary()
|
|
_ = yym4151
|
|
if false {
|
|
} else {
|
|
h.decMapstringSliceuint8((*map[string][]uint8)(yyv4150), d)
|
|
}
|
|
}
|
|
case "type":
|
|
if r.TryDecodeAsNil() {
|
|
x.Type = ""
|
|
} else {
|
|
x.Type = SecretType(r.DecodeString())
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys4146)
|
|
} // end switch yys4146
|
|
} // end for yyj4146
|
|
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 yyj4153 int
|
|
var yyb4153 bool
|
|
var yyhl4153 bool = l >= 0
|
|
yyj4153++
|
|
if yyhl4153 {
|
|
yyb4153 = yyj4153 > l
|
|
} else {
|
|
yyb4153 = r.CheckBreak()
|
|
}
|
|
if yyb4153 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj4153++
|
|
if yyhl4153 {
|
|
yyb4153 = yyj4153 > l
|
|
} else {
|
|
yyb4153 = r.CheckBreak()
|
|
}
|
|
if yyb4153 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj4153++
|
|
if yyhl4153 {
|
|
yyb4153 = yyj4153 > l
|
|
} else {
|
|
yyb4153 = r.CheckBreak()
|
|
}
|
|
if yyb4153 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv4156 := &x.ObjectMeta
|
|
yyv4156.CodecDecodeSelf(d)
|
|
}
|
|
yyj4153++
|
|
if yyhl4153 {
|
|
yyb4153 = yyj4153 > l
|
|
} else {
|
|
yyb4153 = r.CheckBreak()
|
|
}
|
|
if yyb4153 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Data = nil
|
|
} else {
|
|
yyv4157 := &x.Data
|
|
yym4158 := z.DecBinary()
|
|
_ = yym4158
|
|
if false {
|
|
} else {
|
|
h.decMapstringSliceuint8((*map[string][]uint8)(yyv4157), d)
|
|
}
|
|
}
|
|
yyj4153++
|
|
if yyhl4153 {
|
|
yyb4153 = yyj4153 > l
|
|
} else {
|
|
yyb4153 = r.CheckBreak()
|
|
}
|
|
if yyb4153 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Type = ""
|
|
} else {
|
|
x.Type = SecretType(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj4153++
|
|
if yyhl4153 {
|
|
yyb4153 = yyj4153 > l
|
|
} else {
|
|
yyb4153 = r.CheckBreak()
|
|
}
|
|
if yyb4153 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj4153-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x SecretType) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym4160 := z.EncBinary()
|
|
_ = yym4160
|
|
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
|
|
yym4161 := z.DecBinary()
|
|
_ = yym4161
|
|
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 {
|
|
yym4162 := z.EncBinary()
|
|
_ = yym4162
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep4163 := !z.EncBinary()
|
|
yy2arr4163 := z.EncBasicHandle().StructToArray
|
|
var yyq4163 [4]bool
|
|
_, _, _ = yysep4163, yyq4163, yy2arr4163
|
|
const yyr4163 bool = false
|
|
yyq4163[0] = x.Kind != ""
|
|
yyq4163[1] = x.APIVersion != ""
|
|
yyq4163[2] = true
|
|
var yynn4163 int
|
|
if yyr4163 || yy2arr4163 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn4163 = 1
|
|
for _, b := range yyq4163 {
|
|
if b {
|
|
yynn4163++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn4163)
|
|
yynn4163 = 0
|
|
}
|
|
if yyr4163 || yy2arr4163 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4163[0] {
|
|
yym4165 := z.EncBinary()
|
|
_ = yym4165
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq4163[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym4166 := z.EncBinary()
|
|
_ = yym4166
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr4163 || yy2arr4163 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4163[1] {
|
|
yym4168 := z.EncBinary()
|
|
_ = yym4168
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq4163[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym4169 := z.EncBinary()
|
|
_ = yym4169
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr4163 || yy2arr4163 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4163[2] {
|
|
yy4171 := &x.ListMeta
|
|
yym4172 := z.EncBinary()
|
|
_ = yym4172
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy4171) {
|
|
} else {
|
|
z.EncFallback(yy4171)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq4163[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy4173 := &x.ListMeta
|
|
yym4174 := z.EncBinary()
|
|
_ = yym4174
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy4173) {
|
|
} else {
|
|
z.EncFallback(yy4173)
|
|
}
|
|
}
|
|
}
|
|
if yyr4163 || yy2arr4163 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym4176 := z.EncBinary()
|
|
_ = yym4176
|
|
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 {
|
|
yym4177 := z.EncBinary()
|
|
_ = yym4177
|
|
if false {
|
|
} else {
|
|
h.encSliceSecret(([]Secret)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr4163 || yy2arr4163 {
|
|
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
|
|
yym4178 := z.DecBinary()
|
|
_ = yym4178
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct4179 := r.ContainerType()
|
|
if yyct4179 == codecSelferValueTypeMap1234 {
|
|
yyl4179 := r.ReadMapStart()
|
|
if yyl4179 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl4179, d)
|
|
}
|
|
} else if yyct4179 == codecSelferValueTypeArray1234 {
|
|
yyl4179 := r.ReadArrayStart()
|
|
if yyl4179 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl4179, 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 yys4180Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys4180Slc
|
|
var yyhl4180 bool = l >= 0
|
|
for yyj4180 := 0; ; yyj4180++ {
|
|
if yyhl4180 {
|
|
if yyj4180 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys4180Slc = r.DecodeBytes(yys4180Slc, true, true)
|
|
yys4180 := string(yys4180Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys4180 {
|
|
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 {
|
|
yyv4183 := &x.ListMeta
|
|
yym4184 := z.DecBinary()
|
|
_ = yym4184
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv4183) {
|
|
} else {
|
|
z.DecFallback(yyv4183, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv4185 := &x.Items
|
|
yym4186 := z.DecBinary()
|
|
_ = yym4186
|
|
if false {
|
|
} else {
|
|
h.decSliceSecret((*[]Secret)(yyv4185), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys4180)
|
|
} // end switch yys4180
|
|
} // end for yyj4180
|
|
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 yyj4187 int
|
|
var yyb4187 bool
|
|
var yyhl4187 bool = l >= 0
|
|
yyj4187++
|
|
if yyhl4187 {
|
|
yyb4187 = yyj4187 > l
|
|
} else {
|
|
yyb4187 = r.CheckBreak()
|
|
}
|
|
if yyb4187 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj4187++
|
|
if yyhl4187 {
|
|
yyb4187 = yyj4187 > l
|
|
} else {
|
|
yyb4187 = r.CheckBreak()
|
|
}
|
|
if yyb4187 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj4187++
|
|
if yyhl4187 {
|
|
yyb4187 = yyj4187 > l
|
|
} else {
|
|
yyb4187 = r.CheckBreak()
|
|
}
|
|
if yyb4187 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv4190 := &x.ListMeta
|
|
yym4191 := z.DecBinary()
|
|
_ = yym4191
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv4190) {
|
|
} else {
|
|
z.DecFallback(yyv4190, false)
|
|
}
|
|
}
|
|
yyj4187++
|
|
if yyhl4187 {
|
|
yyb4187 = yyj4187 > l
|
|
} else {
|
|
yyb4187 = r.CheckBreak()
|
|
}
|
|
if yyb4187 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv4192 := &x.Items
|
|
yym4193 := z.DecBinary()
|
|
_ = yym4193
|
|
if false {
|
|
} else {
|
|
h.decSliceSecret((*[]Secret)(yyv4192), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj4187++
|
|
if yyhl4187 {
|
|
yyb4187 = yyj4187 > l
|
|
} else {
|
|
yyb4187 = r.CheckBreak()
|
|
}
|
|
if yyb4187 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj4187-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *ConfigMap) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym4194 := z.EncBinary()
|
|
_ = yym4194
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep4195 := !z.EncBinary()
|
|
yy2arr4195 := z.EncBasicHandle().StructToArray
|
|
var yyq4195 [4]bool
|
|
_, _, _ = yysep4195, yyq4195, yy2arr4195
|
|
const yyr4195 bool = false
|
|
yyq4195[0] = x.Kind != ""
|
|
yyq4195[1] = x.APIVersion != ""
|
|
yyq4195[2] = true
|
|
yyq4195[3] = len(x.Data) != 0
|
|
var yynn4195 int
|
|
if yyr4195 || yy2arr4195 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn4195 = 0
|
|
for _, b := range yyq4195 {
|
|
if b {
|
|
yynn4195++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn4195)
|
|
yynn4195 = 0
|
|
}
|
|
if yyr4195 || yy2arr4195 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4195[0] {
|
|
yym4197 := z.EncBinary()
|
|
_ = yym4197
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq4195[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym4198 := z.EncBinary()
|
|
_ = yym4198
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr4195 || yy2arr4195 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4195[1] {
|
|
yym4200 := z.EncBinary()
|
|
_ = yym4200
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq4195[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym4201 := z.EncBinary()
|
|
_ = yym4201
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr4195 || yy2arr4195 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4195[2] {
|
|
yy4203 := &x.ObjectMeta
|
|
yy4203.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq4195[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy4204 := &x.ObjectMeta
|
|
yy4204.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr4195 || yy2arr4195 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4195[3] {
|
|
if x.Data == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym4206 := z.EncBinary()
|
|
_ = yym4206
|
|
if false {
|
|
} else {
|
|
z.F.EncMapStringStringV(x.Data, false, e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq4195[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("data"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Data == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym4207 := z.EncBinary()
|
|
_ = yym4207
|
|
if false {
|
|
} else {
|
|
z.F.EncMapStringStringV(x.Data, false, e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr4195 || yy2arr4195 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ConfigMap) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym4208 := z.DecBinary()
|
|
_ = yym4208
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct4209 := r.ContainerType()
|
|
if yyct4209 == codecSelferValueTypeMap1234 {
|
|
yyl4209 := r.ReadMapStart()
|
|
if yyl4209 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl4209, d)
|
|
}
|
|
} else if yyct4209 == codecSelferValueTypeArray1234 {
|
|
yyl4209 := r.ReadArrayStart()
|
|
if yyl4209 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl4209, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ConfigMap) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys4210Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys4210Slc
|
|
var yyhl4210 bool = l >= 0
|
|
for yyj4210 := 0; ; yyj4210++ {
|
|
if yyhl4210 {
|
|
if yyj4210 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys4210Slc = r.DecodeBytes(yys4210Slc, true, true)
|
|
yys4210 := string(yys4210Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys4210 {
|
|
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 {
|
|
yyv4213 := &x.ObjectMeta
|
|
yyv4213.CodecDecodeSelf(d)
|
|
}
|
|
case "data":
|
|
if r.TryDecodeAsNil() {
|
|
x.Data = nil
|
|
} else {
|
|
yyv4214 := &x.Data
|
|
yym4215 := z.DecBinary()
|
|
_ = yym4215
|
|
if false {
|
|
} else {
|
|
z.F.DecMapStringStringX(yyv4214, false, d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys4210)
|
|
} // end switch yys4210
|
|
} // end for yyj4210
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *ConfigMap) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj4216 int
|
|
var yyb4216 bool
|
|
var yyhl4216 bool = l >= 0
|
|
yyj4216++
|
|
if yyhl4216 {
|
|
yyb4216 = yyj4216 > l
|
|
} else {
|
|
yyb4216 = r.CheckBreak()
|
|
}
|
|
if yyb4216 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj4216++
|
|
if yyhl4216 {
|
|
yyb4216 = yyj4216 > l
|
|
} else {
|
|
yyb4216 = r.CheckBreak()
|
|
}
|
|
if yyb4216 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj4216++
|
|
if yyhl4216 {
|
|
yyb4216 = yyj4216 > l
|
|
} else {
|
|
yyb4216 = r.CheckBreak()
|
|
}
|
|
if yyb4216 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv4219 := &x.ObjectMeta
|
|
yyv4219.CodecDecodeSelf(d)
|
|
}
|
|
yyj4216++
|
|
if yyhl4216 {
|
|
yyb4216 = yyj4216 > l
|
|
} else {
|
|
yyb4216 = r.CheckBreak()
|
|
}
|
|
if yyb4216 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Data = nil
|
|
} else {
|
|
yyv4220 := &x.Data
|
|
yym4221 := z.DecBinary()
|
|
_ = yym4221
|
|
if false {
|
|
} else {
|
|
z.F.DecMapStringStringX(yyv4220, false, d)
|
|
}
|
|
}
|
|
for {
|
|
yyj4216++
|
|
if yyhl4216 {
|
|
yyb4216 = yyj4216 > l
|
|
} else {
|
|
yyb4216 = r.CheckBreak()
|
|
}
|
|
if yyb4216 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj4216-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x *ConfigMapList) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
if x == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym4222 := z.EncBinary()
|
|
_ = yym4222
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep4223 := !z.EncBinary()
|
|
yy2arr4223 := z.EncBasicHandle().StructToArray
|
|
var yyq4223 [4]bool
|
|
_, _, _ = yysep4223, yyq4223, yy2arr4223
|
|
const yyr4223 bool = false
|
|
yyq4223[0] = x.Kind != ""
|
|
yyq4223[1] = x.APIVersion != ""
|
|
yyq4223[2] = true
|
|
var yynn4223 int
|
|
if yyr4223 || yy2arr4223 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn4223 = 1
|
|
for _, b := range yyq4223 {
|
|
if b {
|
|
yynn4223++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn4223)
|
|
yynn4223 = 0
|
|
}
|
|
if yyr4223 || yy2arr4223 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4223[0] {
|
|
yym4225 := z.EncBinary()
|
|
_ = yym4225
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq4223[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym4226 := z.EncBinary()
|
|
_ = yym4226
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr4223 || yy2arr4223 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4223[1] {
|
|
yym4228 := z.EncBinary()
|
|
_ = yym4228
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq4223[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym4229 := z.EncBinary()
|
|
_ = yym4229
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr4223 || yy2arr4223 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4223[2] {
|
|
yy4231 := &x.ListMeta
|
|
yym4232 := z.EncBinary()
|
|
_ = yym4232
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy4231) {
|
|
} else {
|
|
z.EncFallback(yy4231)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq4223[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy4233 := &x.ListMeta
|
|
yym4234 := z.EncBinary()
|
|
_ = yym4234
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy4233) {
|
|
} else {
|
|
z.EncFallback(yy4233)
|
|
}
|
|
}
|
|
}
|
|
if yyr4223 || yy2arr4223 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym4236 := z.EncBinary()
|
|
_ = yym4236
|
|
if false {
|
|
} else {
|
|
h.encSliceConfigMap(([]ConfigMap)(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 {
|
|
yym4237 := z.EncBinary()
|
|
_ = yym4237
|
|
if false {
|
|
} else {
|
|
h.encSliceConfigMap(([]ConfigMap)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr4223 || yy2arr4223 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ConfigMapList) CodecDecodeSelf(d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
yym4238 := z.DecBinary()
|
|
_ = yym4238
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct4239 := r.ContainerType()
|
|
if yyct4239 == codecSelferValueTypeMap1234 {
|
|
yyl4239 := r.ReadMapStart()
|
|
if yyl4239 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl4239, d)
|
|
}
|
|
} else if yyct4239 == codecSelferValueTypeArray1234 {
|
|
yyl4239 := r.ReadArrayStart()
|
|
if yyl4239 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl4239, d)
|
|
}
|
|
} else {
|
|
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *ConfigMapList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yys4240Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys4240Slc
|
|
var yyhl4240 bool = l >= 0
|
|
for yyj4240 := 0; ; yyj4240++ {
|
|
if yyhl4240 {
|
|
if yyj4240 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys4240Slc = r.DecodeBytes(yys4240Slc, true, true)
|
|
yys4240 := string(yys4240Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys4240 {
|
|
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 {
|
|
yyv4243 := &x.ListMeta
|
|
yym4244 := z.DecBinary()
|
|
_ = yym4244
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv4243) {
|
|
} else {
|
|
z.DecFallback(yyv4243, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv4245 := &x.Items
|
|
yym4246 := z.DecBinary()
|
|
_ = yym4246
|
|
if false {
|
|
} else {
|
|
h.decSliceConfigMap((*[]ConfigMap)(yyv4245), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys4240)
|
|
} // end switch yys4240
|
|
} // end for yyj4240
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x *ConfigMapList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
var yyj4247 int
|
|
var yyb4247 bool
|
|
var yyhl4247 bool = l >= 0
|
|
yyj4247++
|
|
if yyhl4247 {
|
|
yyb4247 = yyj4247 > l
|
|
} else {
|
|
yyb4247 = r.CheckBreak()
|
|
}
|
|
if yyb4247 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj4247++
|
|
if yyhl4247 {
|
|
yyb4247 = yyj4247 > l
|
|
} else {
|
|
yyb4247 = r.CheckBreak()
|
|
}
|
|
if yyb4247 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj4247++
|
|
if yyhl4247 {
|
|
yyb4247 = yyj4247 > l
|
|
} else {
|
|
yyb4247 = r.CheckBreak()
|
|
}
|
|
if yyb4247 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv4250 := &x.ListMeta
|
|
yym4251 := z.DecBinary()
|
|
_ = yym4251
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv4250) {
|
|
} else {
|
|
z.DecFallback(yyv4250, false)
|
|
}
|
|
}
|
|
yyj4247++
|
|
if yyhl4247 {
|
|
yyb4247 = yyj4247 > l
|
|
} else {
|
|
yyb4247 = r.CheckBreak()
|
|
}
|
|
if yyb4247 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv4252 := &x.Items
|
|
yym4253 := z.DecBinary()
|
|
_ = yym4253
|
|
if false {
|
|
} else {
|
|
h.decSliceConfigMap((*[]ConfigMap)(yyv4252), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj4247++
|
|
if yyhl4247 {
|
|
yyb4247 = yyj4247 > l
|
|
} else {
|
|
yyb4247 = r.CheckBreak()
|
|
}
|
|
if yyb4247 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj4247-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x PatchType) CodecEncodeSelf(e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
yym4254 := z.EncBinary()
|
|
_ = yym4254
|
|
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
|
|
yym4255 := z.DecBinary()
|
|
_ = yym4255
|
|
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
|
|
yym4256 := z.EncBinary()
|
|
_ = yym4256
|
|
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
|
|
yym4257 := z.DecBinary()
|
|
_ = yym4257
|
|
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 {
|
|
yym4258 := z.EncBinary()
|
|
_ = yym4258
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep4259 := !z.EncBinary()
|
|
yy2arr4259 := z.EncBasicHandle().StructToArray
|
|
var yyq4259 [4]bool
|
|
_, _, _ = yysep4259, yyq4259, yy2arr4259
|
|
const yyr4259 bool = false
|
|
yyq4259[2] = x.Message != ""
|
|
yyq4259[3] = x.Error != ""
|
|
var yynn4259 int
|
|
if yyr4259 || yy2arr4259 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn4259 = 2
|
|
for _, b := range yyq4259 {
|
|
if b {
|
|
yynn4259++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn4259)
|
|
yynn4259 = 0
|
|
}
|
|
if yyr4259 || yy2arr4259 {
|
|
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 yyr4259 || yy2arr4259 {
|
|
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 yyr4259 || yy2arr4259 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4259[2] {
|
|
yym4263 := z.EncBinary()
|
|
_ = yym4263
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq4259[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("message"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym4264 := z.EncBinary()
|
|
_ = yym4264
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
|
|
}
|
|
}
|
|
}
|
|
if yyr4259 || yy2arr4259 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4259[3] {
|
|
yym4266 := z.EncBinary()
|
|
_ = yym4266
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Error))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq4259[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("error"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym4267 := z.EncBinary()
|
|
_ = yym4267
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Error))
|
|
}
|
|
}
|
|
}
|
|
if yyr4259 || yy2arr4259 {
|
|
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
|
|
yym4268 := z.DecBinary()
|
|
_ = yym4268
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct4269 := r.ContainerType()
|
|
if yyct4269 == codecSelferValueTypeMap1234 {
|
|
yyl4269 := r.ReadMapStart()
|
|
if yyl4269 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl4269, d)
|
|
}
|
|
} else if yyct4269 == codecSelferValueTypeArray1234 {
|
|
yyl4269 := r.ReadArrayStart()
|
|
if yyl4269 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl4269, 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 yys4270Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys4270Slc
|
|
var yyhl4270 bool = l >= 0
|
|
for yyj4270 := 0; ; yyj4270++ {
|
|
if yyhl4270 {
|
|
if yyj4270 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys4270Slc = r.DecodeBytes(yys4270Slc, true, true)
|
|
yys4270 := string(yys4270Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys4270 {
|
|
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, yys4270)
|
|
} // end switch yys4270
|
|
} // end for yyj4270
|
|
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 yyj4275 int
|
|
var yyb4275 bool
|
|
var yyhl4275 bool = l >= 0
|
|
yyj4275++
|
|
if yyhl4275 {
|
|
yyb4275 = yyj4275 > l
|
|
} else {
|
|
yyb4275 = r.CheckBreak()
|
|
}
|
|
if yyb4275 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Type = ""
|
|
} else {
|
|
x.Type = ComponentConditionType(r.DecodeString())
|
|
}
|
|
yyj4275++
|
|
if yyhl4275 {
|
|
yyb4275 = yyj4275 > l
|
|
} else {
|
|
yyb4275 = r.CheckBreak()
|
|
}
|
|
if yyb4275 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Status = ""
|
|
} else {
|
|
x.Status = ConditionStatus(r.DecodeString())
|
|
}
|
|
yyj4275++
|
|
if yyhl4275 {
|
|
yyb4275 = yyj4275 > l
|
|
} else {
|
|
yyb4275 = r.CheckBreak()
|
|
}
|
|
if yyb4275 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Message = ""
|
|
} else {
|
|
x.Message = string(r.DecodeString())
|
|
}
|
|
yyj4275++
|
|
if yyhl4275 {
|
|
yyb4275 = yyj4275 > l
|
|
} else {
|
|
yyb4275 = r.CheckBreak()
|
|
}
|
|
if yyb4275 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Error = ""
|
|
} else {
|
|
x.Error = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj4275++
|
|
if yyhl4275 {
|
|
yyb4275 = yyj4275 > l
|
|
} else {
|
|
yyb4275 = r.CheckBreak()
|
|
}
|
|
if yyb4275 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj4275-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 {
|
|
yym4280 := z.EncBinary()
|
|
_ = yym4280
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep4281 := !z.EncBinary()
|
|
yy2arr4281 := z.EncBasicHandle().StructToArray
|
|
var yyq4281 [4]bool
|
|
_, _, _ = yysep4281, yyq4281, yy2arr4281
|
|
const yyr4281 bool = false
|
|
yyq4281[0] = x.Kind != ""
|
|
yyq4281[1] = x.APIVersion != ""
|
|
yyq4281[2] = true
|
|
yyq4281[3] = len(x.Conditions) != 0
|
|
var yynn4281 int
|
|
if yyr4281 || yy2arr4281 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn4281 = 0
|
|
for _, b := range yyq4281 {
|
|
if b {
|
|
yynn4281++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn4281)
|
|
yynn4281 = 0
|
|
}
|
|
if yyr4281 || yy2arr4281 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4281[0] {
|
|
yym4283 := z.EncBinary()
|
|
_ = yym4283
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq4281[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym4284 := z.EncBinary()
|
|
_ = yym4284
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr4281 || yy2arr4281 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4281[1] {
|
|
yym4286 := z.EncBinary()
|
|
_ = yym4286
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq4281[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym4287 := z.EncBinary()
|
|
_ = yym4287
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr4281 || yy2arr4281 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4281[2] {
|
|
yy4289 := &x.ObjectMeta
|
|
yy4289.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq4281[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy4290 := &x.ObjectMeta
|
|
yy4290.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr4281 || yy2arr4281 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4281[3] {
|
|
if x.Conditions == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym4292 := z.EncBinary()
|
|
_ = yym4292
|
|
if false {
|
|
} else {
|
|
h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e)
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq4281[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("conditions"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Conditions == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym4293 := z.EncBinary()
|
|
_ = yym4293
|
|
if false {
|
|
} else {
|
|
h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr4281 || yy2arr4281 {
|
|
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
|
|
yym4294 := z.DecBinary()
|
|
_ = yym4294
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct4295 := r.ContainerType()
|
|
if yyct4295 == codecSelferValueTypeMap1234 {
|
|
yyl4295 := r.ReadMapStart()
|
|
if yyl4295 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl4295, d)
|
|
}
|
|
} else if yyct4295 == codecSelferValueTypeArray1234 {
|
|
yyl4295 := r.ReadArrayStart()
|
|
if yyl4295 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl4295, 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 yys4296Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys4296Slc
|
|
var yyhl4296 bool = l >= 0
|
|
for yyj4296 := 0; ; yyj4296++ {
|
|
if yyhl4296 {
|
|
if yyj4296 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys4296Slc = r.DecodeBytes(yys4296Slc, true, true)
|
|
yys4296 := string(yys4296Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys4296 {
|
|
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 {
|
|
yyv4299 := &x.ObjectMeta
|
|
yyv4299.CodecDecodeSelf(d)
|
|
}
|
|
case "conditions":
|
|
if r.TryDecodeAsNil() {
|
|
x.Conditions = nil
|
|
} else {
|
|
yyv4300 := &x.Conditions
|
|
yym4301 := z.DecBinary()
|
|
_ = yym4301
|
|
if false {
|
|
} else {
|
|
h.decSliceComponentCondition((*[]ComponentCondition)(yyv4300), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys4296)
|
|
} // end switch yys4296
|
|
} // end for yyj4296
|
|
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 yyj4302 int
|
|
var yyb4302 bool
|
|
var yyhl4302 bool = l >= 0
|
|
yyj4302++
|
|
if yyhl4302 {
|
|
yyb4302 = yyj4302 > l
|
|
} else {
|
|
yyb4302 = r.CheckBreak()
|
|
}
|
|
if yyb4302 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj4302++
|
|
if yyhl4302 {
|
|
yyb4302 = yyj4302 > l
|
|
} else {
|
|
yyb4302 = r.CheckBreak()
|
|
}
|
|
if yyb4302 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj4302++
|
|
if yyhl4302 {
|
|
yyb4302 = yyj4302 > l
|
|
} else {
|
|
yyb4302 = r.CheckBreak()
|
|
}
|
|
if yyb4302 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv4305 := &x.ObjectMeta
|
|
yyv4305.CodecDecodeSelf(d)
|
|
}
|
|
yyj4302++
|
|
if yyhl4302 {
|
|
yyb4302 = yyj4302 > l
|
|
} else {
|
|
yyb4302 = r.CheckBreak()
|
|
}
|
|
if yyb4302 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Conditions = nil
|
|
} else {
|
|
yyv4306 := &x.Conditions
|
|
yym4307 := z.DecBinary()
|
|
_ = yym4307
|
|
if false {
|
|
} else {
|
|
h.decSliceComponentCondition((*[]ComponentCondition)(yyv4306), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj4302++
|
|
if yyhl4302 {
|
|
yyb4302 = yyj4302 > l
|
|
} else {
|
|
yyb4302 = r.CheckBreak()
|
|
}
|
|
if yyb4302 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj4302-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 {
|
|
yym4308 := z.EncBinary()
|
|
_ = yym4308
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep4309 := !z.EncBinary()
|
|
yy2arr4309 := z.EncBasicHandle().StructToArray
|
|
var yyq4309 [4]bool
|
|
_, _, _ = yysep4309, yyq4309, yy2arr4309
|
|
const yyr4309 bool = false
|
|
yyq4309[0] = x.Kind != ""
|
|
yyq4309[1] = x.APIVersion != ""
|
|
yyq4309[2] = true
|
|
var yynn4309 int
|
|
if yyr4309 || yy2arr4309 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn4309 = 1
|
|
for _, b := range yyq4309 {
|
|
if b {
|
|
yynn4309++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn4309)
|
|
yynn4309 = 0
|
|
}
|
|
if yyr4309 || yy2arr4309 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4309[0] {
|
|
yym4311 := z.EncBinary()
|
|
_ = yym4311
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq4309[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym4312 := z.EncBinary()
|
|
_ = yym4312
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr4309 || yy2arr4309 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4309[1] {
|
|
yym4314 := z.EncBinary()
|
|
_ = yym4314
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq4309[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym4315 := z.EncBinary()
|
|
_ = yym4315
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr4309 || yy2arr4309 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4309[2] {
|
|
yy4317 := &x.ListMeta
|
|
yym4318 := z.EncBinary()
|
|
_ = yym4318
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy4317) {
|
|
} else {
|
|
z.EncFallback(yy4317)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq4309[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy4319 := &x.ListMeta
|
|
yym4320 := z.EncBinary()
|
|
_ = yym4320
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy4319) {
|
|
} else {
|
|
z.EncFallback(yy4319)
|
|
}
|
|
}
|
|
}
|
|
if yyr4309 || yy2arr4309 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Items == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym4322 := z.EncBinary()
|
|
_ = yym4322
|
|
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 {
|
|
yym4323 := z.EncBinary()
|
|
_ = yym4323
|
|
if false {
|
|
} else {
|
|
h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e)
|
|
}
|
|
}
|
|
}
|
|
if yyr4309 || yy2arr4309 {
|
|
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
|
|
yym4324 := z.DecBinary()
|
|
_ = yym4324
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct4325 := r.ContainerType()
|
|
if yyct4325 == codecSelferValueTypeMap1234 {
|
|
yyl4325 := r.ReadMapStart()
|
|
if yyl4325 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl4325, d)
|
|
}
|
|
} else if yyct4325 == codecSelferValueTypeArray1234 {
|
|
yyl4325 := r.ReadArrayStart()
|
|
if yyl4325 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl4325, 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 yys4326Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys4326Slc
|
|
var yyhl4326 bool = l >= 0
|
|
for yyj4326 := 0; ; yyj4326++ {
|
|
if yyhl4326 {
|
|
if yyj4326 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys4326Slc = r.DecodeBytes(yys4326Slc, true, true)
|
|
yys4326 := string(yys4326Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys4326 {
|
|
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 {
|
|
yyv4329 := &x.ListMeta
|
|
yym4330 := z.DecBinary()
|
|
_ = yym4330
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv4329) {
|
|
} else {
|
|
z.DecFallback(yyv4329, false)
|
|
}
|
|
}
|
|
case "items":
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv4331 := &x.Items
|
|
yym4332 := z.DecBinary()
|
|
_ = yym4332
|
|
if false {
|
|
} else {
|
|
h.decSliceComponentStatus((*[]ComponentStatus)(yyv4331), d)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys4326)
|
|
} // end switch yys4326
|
|
} // end for yyj4326
|
|
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 yyj4333 int
|
|
var yyb4333 bool
|
|
var yyhl4333 bool = l >= 0
|
|
yyj4333++
|
|
if yyhl4333 {
|
|
yyb4333 = yyj4333 > l
|
|
} else {
|
|
yyb4333 = r.CheckBreak()
|
|
}
|
|
if yyb4333 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj4333++
|
|
if yyhl4333 {
|
|
yyb4333 = yyj4333 > l
|
|
} else {
|
|
yyb4333 = r.CheckBreak()
|
|
}
|
|
if yyb4333 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj4333++
|
|
if yyhl4333 {
|
|
yyb4333 = yyj4333 > l
|
|
} else {
|
|
yyb4333 = r.CheckBreak()
|
|
}
|
|
if yyb4333 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ListMeta = pkg2_unversioned.ListMeta{}
|
|
} else {
|
|
yyv4336 := &x.ListMeta
|
|
yym4337 := z.DecBinary()
|
|
_ = yym4337
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv4336) {
|
|
} else {
|
|
z.DecFallback(yyv4336, false)
|
|
}
|
|
}
|
|
yyj4333++
|
|
if yyhl4333 {
|
|
yyb4333 = yyj4333 > l
|
|
} else {
|
|
yyb4333 = r.CheckBreak()
|
|
}
|
|
if yyb4333 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Items = nil
|
|
} else {
|
|
yyv4338 := &x.Items
|
|
yym4339 := z.DecBinary()
|
|
_ = yym4339
|
|
if false {
|
|
} else {
|
|
h.decSliceComponentStatus((*[]ComponentStatus)(yyv4338), d)
|
|
}
|
|
}
|
|
for {
|
|
yyj4333++
|
|
if yyhl4333 {
|
|
yyb4333 = yyj4333 > l
|
|
} else {
|
|
yyb4333 = r.CheckBreak()
|
|
}
|
|
if yyb4333 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj4333-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 {
|
|
yym4340 := z.EncBinary()
|
|
_ = yym4340
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep4341 := !z.EncBinary()
|
|
yy2arr4341 := z.EncBasicHandle().StructToArray
|
|
var yyq4341 [6]bool
|
|
_, _, _ = yysep4341, yyq4341, yy2arr4341
|
|
const yyr4341 bool = false
|
|
yyq4341[0] = x.Capabilities != nil
|
|
yyq4341[1] = x.Privileged != nil
|
|
yyq4341[2] = x.SELinuxOptions != nil
|
|
yyq4341[3] = x.RunAsUser != nil
|
|
yyq4341[4] = x.RunAsNonRoot != nil
|
|
yyq4341[5] = x.ReadOnlyRootFilesystem != nil
|
|
var yynn4341 int
|
|
if yyr4341 || yy2arr4341 {
|
|
r.EncodeArrayStart(6)
|
|
} else {
|
|
yynn4341 = 0
|
|
for _, b := range yyq4341 {
|
|
if b {
|
|
yynn4341++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn4341)
|
|
yynn4341 = 0
|
|
}
|
|
if yyr4341 || yy2arr4341 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4341[0] {
|
|
if x.Capabilities == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.Capabilities.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq4341[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 yyr4341 || yy2arr4341 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4341[1] {
|
|
if x.Privileged == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy4344 := *x.Privileged
|
|
yym4345 := z.EncBinary()
|
|
_ = yym4345
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(yy4344))
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq4341[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("privileged"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.Privileged == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy4346 := *x.Privileged
|
|
yym4347 := z.EncBinary()
|
|
_ = yym4347
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(yy4346))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr4341 || yy2arr4341 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4341[2] {
|
|
if x.SELinuxOptions == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
x.SELinuxOptions.CodecEncodeSelf(e)
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq4341[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 yyr4341 || yy2arr4341 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4341[3] {
|
|
if x.RunAsUser == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy4350 := *x.RunAsUser
|
|
yym4351 := z.EncBinary()
|
|
_ = yym4351
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy4350))
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq4341[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("runAsUser"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.RunAsUser == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy4352 := *x.RunAsUser
|
|
yym4353 := z.EncBinary()
|
|
_ = yym4353
|
|
if false {
|
|
} else {
|
|
r.EncodeInt(int64(yy4352))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr4341 || yy2arr4341 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4341[4] {
|
|
if x.RunAsNonRoot == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy4355 := *x.RunAsNonRoot
|
|
yym4356 := z.EncBinary()
|
|
_ = yym4356
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(yy4355))
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq4341[4] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.RunAsNonRoot == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy4357 := *x.RunAsNonRoot
|
|
yym4358 := z.EncBinary()
|
|
_ = yym4358
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(yy4357))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr4341 || yy2arr4341 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4341[5] {
|
|
if x.ReadOnlyRootFilesystem == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy4360 := *x.ReadOnlyRootFilesystem
|
|
yym4361 := z.EncBinary()
|
|
_ = yym4361
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(yy4360))
|
|
}
|
|
}
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq4341[5] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("readOnlyRootFilesystem"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if x.ReadOnlyRootFilesystem == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yy4362 := *x.ReadOnlyRootFilesystem
|
|
yym4363 := z.EncBinary()
|
|
_ = yym4363
|
|
if false {
|
|
} else {
|
|
r.EncodeBool(bool(yy4362))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if yyr4341 || yy2arr4341 {
|
|
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
|
|
yym4364 := z.DecBinary()
|
|
_ = yym4364
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct4365 := r.ContainerType()
|
|
if yyct4365 == codecSelferValueTypeMap1234 {
|
|
yyl4365 := r.ReadMapStart()
|
|
if yyl4365 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl4365, d)
|
|
}
|
|
} else if yyct4365 == codecSelferValueTypeArray1234 {
|
|
yyl4365 := r.ReadArrayStart()
|
|
if yyl4365 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl4365, 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 yys4366Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys4366Slc
|
|
var yyhl4366 bool = l >= 0
|
|
for yyj4366 := 0; ; yyj4366++ {
|
|
if yyhl4366 {
|
|
if yyj4366 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys4366Slc = r.DecodeBytes(yys4366Slc, true, true)
|
|
yys4366 := string(yys4366Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys4366 {
|
|
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)
|
|
}
|
|
yym4369 := z.DecBinary()
|
|
_ = yym4369
|
|
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)
|
|
}
|
|
yym4372 := z.DecBinary()
|
|
_ = yym4372
|
|
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)
|
|
}
|
|
yym4374 := z.DecBinary()
|
|
_ = yym4374
|
|
if false {
|
|
} else {
|
|
*((*bool)(x.RunAsNonRoot)) = r.DecodeBool()
|
|
}
|
|
}
|
|
case "readOnlyRootFilesystem":
|
|
if r.TryDecodeAsNil() {
|
|
if x.ReadOnlyRootFilesystem != nil {
|
|
x.ReadOnlyRootFilesystem = nil
|
|
}
|
|
} else {
|
|
if x.ReadOnlyRootFilesystem == nil {
|
|
x.ReadOnlyRootFilesystem = new(bool)
|
|
}
|
|
yym4376 := z.DecBinary()
|
|
_ = yym4376
|
|
if false {
|
|
} else {
|
|
*((*bool)(x.ReadOnlyRootFilesystem)) = r.DecodeBool()
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys4366)
|
|
} // end switch yys4366
|
|
} // end for yyj4366
|
|
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 yyj4377 int
|
|
var yyb4377 bool
|
|
var yyhl4377 bool = l >= 0
|
|
yyj4377++
|
|
if yyhl4377 {
|
|
yyb4377 = yyj4377 > l
|
|
} else {
|
|
yyb4377 = r.CheckBreak()
|
|
}
|
|
if yyb4377 {
|
|
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)
|
|
}
|
|
yyj4377++
|
|
if yyhl4377 {
|
|
yyb4377 = yyj4377 > l
|
|
} else {
|
|
yyb4377 = r.CheckBreak()
|
|
}
|
|
if yyb4377 {
|
|
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)
|
|
}
|
|
yym4380 := z.DecBinary()
|
|
_ = yym4380
|
|
if false {
|
|
} else {
|
|
*((*bool)(x.Privileged)) = r.DecodeBool()
|
|
}
|
|
}
|
|
yyj4377++
|
|
if yyhl4377 {
|
|
yyb4377 = yyj4377 > l
|
|
} else {
|
|
yyb4377 = r.CheckBreak()
|
|
}
|
|
if yyb4377 {
|
|
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)
|
|
}
|
|
yyj4377++
|
|
if yyhl4377 {
|
|
yyb4377 = yyj4377 > l
|
|
} else {
|
|
yyb4377 = r.CheckBreak()
|
|
}
|
|
if yyb4377 {
|
|
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)
|
|
}
|
|
yym4383 := z.DecBinary()
|
|
_ = yym4383
|
|
if false {
|
|
} else {
|
|
*((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64))
|
|
}
|
|
}
|
|
yyj4377++
|
|
if yyhl4377 {
|
|
yyb4377 = yyj4377 > l
|
|
} else {
|
|
yyb4377 = r.CheckBreak()
|
|
}
|
|
if yyb4377 {
|
|
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)
|
|
}
|
|
yym4385 := z.DecBinary()
|
|
_ = yym4385
|
|
if false {
|
|
} else {
|
|
*((*bool)(x.RunAsNonRoot)) = r.DecodeBool()
|
|
}
|
|
}
|
|
yyj4377++
|
|
if yyhl4377 {
|
|
yyb4377 = yyj4377 > l
|
|
} else {
|
|
yyb4377 = r.CheckBreak()
|
|
}
|
|
if yyb4377 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
if x.ReadOnlyRootFilesystem != nil {
|
|
x.ReadOnlyRootFilesystem = nil
|
|
}
|
|
} else {
|
|
if x.ReadOnlyRootFilesystem == nil {
|
|
x.ReadOnlyRootFilesystem = new(bool)
|
|
}
|
|
yym4387 := z.DecBinary()
|
|
_ = yym4387
|
|
if false {
|
|
} else {
|
|
*((*bool)(x.ReadOnlyRootFilesystem)) = r.DecodeBool()
|
|
}
|
|
}
|
|
for {
|
|
yyj4377++
|
|
if yyhl4377 {
|
|
yyb4377 = yyj4377 > l
|
|
} else {
|
|
yyb4377 = r.CheckBreak()
|
|
}
|
|
if yyb4377 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj4377-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 {
|
|
yym4388 := z.EncBinary()
|
|
_ = yym4388
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep4389 := !z.EncBinary()
|
|
yy2arr4389 := z.EncBasicHandle().StructToArray
|
|
var yyq4389 [4]bool
|
|
_, _, _ = yysep4389, yyq4389, yy2arr4389
|
|
const yyr4389 bool = false
|
|
yyq4389[0] = x.User != ""
|
|
yyq4389[1] = x.Role != ""
|
|
yyq4389[2] = x.Type != ""
|
|
yyq4389[3] = x.Level != ""
|
|
var yynn4389 int
|
|
if yyr4389 || yy2arr4389 {
|
|
r.EncodeArrayStart(4)
|
|
} else {
|
|
yynn4389 = 0
|
|
for _, b := range yyq4389 {
|
|
if b {
|
|
yynn4389++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn4389)
|
|
yynn4389 = 0
|
|
}
|
|
if yyr4389 || yy2arr4389 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4389[0] {
|
|
yym4391 := z.EncBinary()
|
|
_ = yym4391
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.User))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq4389[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("user"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym4392 := z.EncBinary()
|
|
_ = yym4392
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.User))
|
|
}
|
|
}
|
|
}
|
|
if yyr4389 || yy2arr4389 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4389[1] {
|
|
yym4394 := z.EncBinary()
|
|
_ = yym4394
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Role))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq4389[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("role"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym4395 := z.EncBinary()
|
|
_ = yym4395
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Role))
|
|
}
|
|
}
|
|
}
|
|
if yyr4389 || yy2arr4389 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4389[2] {
|
|
yym4397 := z.EncBinary()
|
|
_ = yym4397
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Type))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq4389[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("type"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym4398 := z.EncBinary()
|
|
_ = yym4398
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Type))
|
|
}
|
|
}
|
|
}
|
|
if yyr4389 || yy2arr4389 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4389[3] {
|
|
yym4400 := z.EncBinary()
|
|
_ = yym4400
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Level))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq4389[3] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("level"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym4401 := z.EncBinary()
|
|
_ = yym4401
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Level))
|
|
}
|
|
}
|
|
}
|
|
if yyr4389 || yy2arr4389 {
|
|
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
|
|
yym4402 := z.DecBinary()
|
|
_ = yym4402
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct4403 := r.ContainerType()
|
|
if yyct4403 == codecSelferValueTypeMap1234 {
|
|
yyl4403 := r.ReadMapStart()
|
|
if yyl4403 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl4403, d)
|
|
}
|
|
} else if yyct4403 == codecSelferValueTypeArray1234 {
|
|
yyl4403 := r.ReadArrayStart()
|
|
if yyl4403 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl4403, 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 yys4404Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys4404Slc
|
|
var yyhl4404 bool = l >= 0
|
|
for yyj4404 := 0; ; yyj4404++ {
|
|
if yyhl4404 {
|
|
if yyj4404 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys4404Slc = r.DecodeBytes(yys4404Slc, true, true)
|
|
yys4404 := string(yys4404Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys4404 {
|
|
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, yys4404)
|
|
} // end switch yys4404
|
|
} // end for yyj4404
|
|
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 yyj4409 int
|
|
var yyb4409 bool
|
|
var yyhl4409 bool = l >= 0
|
|
yyj4409++
|
|
if yyhl4409 {
|
|
yyb4409 = yyj4409 > l
|
|
} else {
|
|
yyb4409 = r.CheckBreak()
|
|
}
|
|
if yyb4409 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.User = ""
|
|
} else {
|
|
x.User = string(r.DecodeString())
|
|
}
|
|
yyj4409++
|
|
if yyhl4409 {
|
|
yyb4409 = yyj4409 > l
|
|
} else {
|
|
yyb4409 = r.CheckBreak()
|
|
}
|
|
if yyb4409 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Role = ""
|
|
} else {
|
|
x.Role = string(r.DecodeString())
|
|
}
|
|
yyj4409++
|
|
if yyhl4409 {
|
|
yyb4409 = yyj4409 > l
|
|
} else {
|
|
yyb4409 = r.CheckBreak()
|
|
}
|
|
if yyb4409 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Type = ""
|
|
} else {
|
|
x.Type = string(r.DecodeString())
|
|
}
|
|
yyj4409++
|
|
if yyhl4409 {
|
|
yyb4409 = yyj4409 > l
|
|
} else {
|
|
yyb4409 = r.CheckBreak()
|
|
}
|
|
if yyb4409 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Level = ""
|
|
} else {
|
|
x.Level = string(r.DecodeString())
|
|
}
|
|
for {
|
|
yyj4409++
|
|
if yyhl4409 {
|
|
yyb4409 = yyj4409 > l
|
|
} else {
|
|
yyb4409 = r.CheckBreak()
|
|
}
|
|
if yyb4409 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj4409-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 {
|
|
yym4414 := z.EncBinary()
|
|
_ = yym4414
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(x) {
|
|
} else {
|
|
yysep4415 := !z.EncBinary()
|
|
yy2arr4415 := z.EncBasicHandle().StructToArray
|
|
var yyq4415 [5]bool
|
|
_, _, _ = yysep4415, yyq4415, yy2arr4415
|
|
const yyr4415 bool = false
|
|
yyq4415[0] = x.Kind != ""
|
|
yyq4415[1] = x.APIVersion != ""
|
|
yyq4415[2] = true
|
|
var yynn4415 int
|
|
if yyr4415 || yy2arr4415 {
|
|
r.EncodeArrayStart(5)
|
|
} else {
|
|
yynn4415 = 2
|
|
for _, b := range yyq4415 {
|
|
if b {
|
|
yynn4415++
|
|
}
|
|
}
|
|
r.EncodeMapStart(yynn4415)
|
|
yynn4415 = 0
|
|
}
|
|
if yyr4415 || yy2arr4415 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4415[0] {
|
|
yym4417 := z.EncBinary()
|
|
_ = yym4417
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq4415[0] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("kind"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym4418 := z.EncBinary()
|
|
_ = yym4418
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
|
|
}
|
|
}
|
|
}
|
|
if yyr4415 || yy2arr4415 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4415[1] {
|
|
yym4420 := z.EncBinary()
|
|
_ = yym4420
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, "")
|
|
}
|
|
} else {
|
|
if yyq4415[1] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yym4421 := z.EncBinary()
|
|
_ = yym4421
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
|
|
}
|
|
}
|
|
}
|
|
if yyr4415 || yy2arr4415 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyq4415[2] {
|
|
yy4423 := &x.ObjectMeta
|
|
yy4423.CodecEncodeSelf(e)
|
|
} else {
|
|
r.EncodeNil()
|
|
}
|
|
} else {
|
|
if yyq4415[2] {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy4424 := &x.ObjectMeta
|
|
yy4424.CodecEncodeSelf(e)
|
|
}
|
|
}
|
|
if yyr4415 || yy2arr4415 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yym4426 := z.EncBinary()
|
|
_ = yym4426
|
|
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)
|
|
yym4427 := z.EncBinary()
|
|
_ = yym4427
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(x.Range))
|
|
}
|
|
}
|
|
if yyr4415 || yy2arr4415 {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if x.Data == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym4429 := z.EncBinary()
|
|
_ = yym4429
|
|
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 {
|
|
yym4430 := z.EncBinary()
|
|
_ = yym4430
|
|
if false {
|
|
} else {
|
|
r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data))
|
|
}
|
|
}
|
|
}
|
|
if yyr4415 || yy2arr4415 {
|
|
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
|
|
yym4431 := z.DecBinary()
|
|
_ = yym4431
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(x) {
|
|
} else {
|
|
yyct4432 := r.ContainerType()
|
|
if yyct4432 == codecSelferValueTypeMap1234 {
|
|
yyl4432 := r.ReadMapStart()
|
|
if yyl4432 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromMap(yyl4432, d)
|
|
}
|
|
} else if yyct4432 == codecSelferValueTypeArray1234 {
|
|
yyl4432 := r.ReadArrayStart()
|
|
if yyl4432 == 0 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
} else {
|
|
x.codecDecodeSelfFromArray(yyl4432, 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 yys4433Slc = z.DecScratchBuffer() // default slice to decode into
|
|
_ = yys4433Slc
|
|
var yyhl4433 bool = l >= 0
|
|
for yyj4433 := 0; ; yyj4433++ {
|
|
if yyhl4433 {
|
|
if yyj4433 >= l {
|
|
break
|
|
}
|
|
} else {
|
|
if r.CheckBreak() {
|
|
break
|
|
}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
yys4433Slc = r.DecodeBytes(yys4433Slc, true, true)
|
|
yys4433 := string(yys4433Slc)
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
switch yys4433 {
|
|
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 {
|
|
yyv4436 := &x.ObjectMeta
|
|
yyv4436.CodecDecodeSelf(d)
|
|
}
|
|
case "range":
|
|
if r.TryDecodeAsNil() {
|
|
x.Range = ""
|
|
} else {
|
|
x.Range = string(r.DecodeString())
|
|
}
|
|
case "data":
|
|
if r.TryDecodeAsNil() {
|
|
x.Data = nil
|
|
} else {
|
|
yyv4438 := &x.Data
|
|
yym4439 := z.DecBinary()
|
|
_ = yym4439
|
|
if false {
|
|
} else {
|
|
*yyv4438 = r.DecodeBytes(*(*[]byte)(yyv4438), false, false)
|
|
}
|
|
}
|
|
default:
|
|
z.DecStructFieldNotFound(-1, yys4433)
|
|
} // end switch yys4433
|
|
} // end for yyj4433
|
|
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 yyj4440 int
|
|
var yyb4440 bool
|
|
var yyhl4440 bool = l >= 0
|
|
yyj4440++
|
|
if yyhl4440 {
|
|
yyb4440 = yyj4440 > l
|
|
} else {
|
|
yyb4440 = r.CheckBreak()
|
|
}
|
|
if yyb4440 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Kind = ""
|
|
} else {
|
|
x.Kind = string(r.DecodeString())
|
|
}
|
|
yyj4440++
|
|
if yyhl4440 {
|
|
yyb4440 = yyj4440 > l
|
|
} else {
|
|
yyb4440 = r.CheckBreak()
|
|
}
|
|
if yyb4440 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.APIVersion = ""
|
|
} else {
|
|
x.APIVersion = string(r.DecodeString())
|
|
}
|
|
yyj4440++
|
|
if yyhl4440 {
|
|
yyb4440 = yyj4440 > l
|
|
} else {
|
|
yyb4440 = r.CheckBreak()
|
|
}
|
|
if yyb4440 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.ObjectMeta = ObjectMeta{}
|
|
} else {
|
|
yyv4443 := &x.ObjectMeta
|
|
yyv4443.CodecDecodeSelf(d)
|
|
}
|
|
yyj4440++
|
|
if yyhl4440 {
|
|
yyb4440 = yyj4440 > l
|
|
} else {
|
|
yyb4440 = r.CheckBreak()
|
|
}
|
|
if yyb4440 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Range = ""
|
|
} else {
|
|
x.Range = string(r.DecodeString())
|
|
}
|
|
yyj4440++
|
|
if yyhl4440 {
|
|
yyb4440 = yyj4440 > l
|
|
} else {
|
|
yyb4440 = r.CheckBreak()
|
|
}
|
|
if yyb4440 {
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
return
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if r.TryDecodeAsNil() {
|
|
x.Data = nil
|
|
} else {
|
|
yyv4445 := &x.Data
|
|
yym4446 := z.DecBinary()
|
|
_ = yym4446
|
|
if false {
|
|
} else {
|
|
*yyv4445 = r.DecodeBytes(*(*[]byte)(yyv4445), false, false)
|
|
}
|
|
}
|
|
for {
|
|
yyj4440++
|
|
if yyhl4440 {
|
|
yyb4440 = yyj4440 > l
|
|
} else {
|
|
yyb4440 = r.CheckBreak()
|
|
}
|
|
if yyb4440 {
|
|
break
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
|
z.DecStructFieldNotFound(yyj4440-1, "")
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) encSliceOwnerReference(v []OwnerReference, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv4447 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4448 := &yyv4447
|
|
yy4448.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSliceOwnerReference(v *[]OwnerReference, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv4449 := *v
|
|
yyh4449, yyl4449 := z.DecSliceHelperStart()
|
|
var yyc4449 bool
|
|
if yyl4449 == 0 {
|
|
if yyv4449 == nil {
|
|
yyv4449 = []OwnerReference{}
|
|
yyc4449 = true
|
|
} else if len(yyv4449) != 0 {
|
|
yyv4449 = yyv4449[:0]
|
|
yyc4449 = true
|
|
}
|
|
} else if yyl4449 > 0 {
|
|
var yyrr4449, yyrl4449 int
|
|
var yyrt4449 bool
|
|
if yyl4449 > cap(yyv4449) {
|
|
|
|
yyrg4449 := len(yyv4449) > 0
|
|
yyv24449 := yyv4449
|
|
yyrl4449, yyrt4449 = z.DecInferLen(yyl4449, z.DecBasicHandle().MaxInitLen, 72)
|
|
if yyrt4449 {
|
|
if yyrl4449 <= cap(yyv4449) {
|
|
yyv4449 = yyv4449[:yyrl4449]
|
|
} else {
|
|
yyv4449 = make([]OwnerReference, yyrl4449)
|
|
}
|
|
} else {
|
|
yyv4449 = make([]OwnerReference, yyrl4449)
|
|
}
|
|
yyc4449 = true
|
|
yyrr4449 = len(yyv4449)
|
|
if yyrg4449 {
|
|
copy(yyv4449, yyv24449)
|
|
}
|
|
} else if yyl4449 != len(yyv4449) {
|
|
yyv4449 = yyv4449[:yyl4449]
|
|
yyc4449 = true
|
|
}
|
|
yyj4449 := 0
|
|
for ; yyj4449 < yyrr4449; yyj4449++ {
|
|
yyh4449.ElemContainerState(yyj4449)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4449[yyj4449] = OwnerReference{}
|
|
} else {
|
|
yyv4450 := &yyv4449[yyj4449]
|
|
yyv4450.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4449 {
|
|
for ; yyj4449 < yyl4449; yyj4449++ {
|
|
yyv4449 = append(yyv4449, OwnerReference{})
|
|
yyh4449.ElemContainerState(yyj4449)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4449[yyj4449] = OwnerReference{}
|
|
} else {
|
|
yyv4451 := &yyv4449[yyj4449]
|
|
yyv4451.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4449 := 0
|
|
for ; !r.CheckBreak(); yyj4449++ {
|
|
|
|
if yyj4449 >= len(yyv4449) {
|
|
yyv4449 = append(yyv4449, OwnerReference{}) // var yyz4449 OwnerReference
|
|
yyc4449 = true
|
|
}
|
|
yyh4449.ElemContainerState(yyj4449)
|
|
if yyj4449 < len(yyv4449) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4449[yyj4449] = OwnerReference{}
|
|
} else {
|
|
yyv4452 := &yyv4449[yyj4449]
|
|
yyv4452.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4449 < len(yyv4449) {
|
|
yyv4449 = yyv4449[:yyj4449]
|
|
yyc4449 = true
|
|
} else if yyj4449 == 0 && yyv4449 == nil {
|
|
yyv4449 = []OwnerReference{}
|
|
yyc4449 = true
|
|
}
|
|
}
|
|
yyh4449.End()
|
|
if yyc4449 {
|
|
*v = yyv4449
|
|
}
|
|
}
|
|
|
|
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 _, yyv4453 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yyv4453.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
|
|
|
|
yyv4454 := *v
|
|
yyh4454, yyl4454 := z.DecSliceHelperStart()
|
|
var yyc4454 bool
|
|
if yyl4454 == 0 {
|
|
if yyv4454 == nil {
|
|
yyv4454 = []PersistentVolumeAccessMode{}
|
|
yyc4454 = true
|
|
} else if len(yyv4454) != 0 {
|
|
yyv4454 = yyv4454[:0]
|
|
yyc4454 = true
|
|
}
|
|
} else if yyl4454 > 0 {
|
|
var yyrr4454, yyrl4454 int
|
|
var yyrt4454 bool
|
|
if yyl4454 > cap(yyv4454) {
|
|
|
|
yyrl4454, yyrt4454 = z.DecInferLen(yyl4454, z.DecBasicHandle().MaxInitLen, 16)
|
|
if yyrt4454 {
|
|
if yyrl4454 <= cap(yyv4454) {
|
|
yyv4454 = yyv4454[:yyrl4454]
|
|
} else {
|
|
yyv4454 = make([]PersistentVolumeAccessMode, yyrl4454)
|
|
}
|
|
} else {
|
|
yyv4454 = make([]PersistentVolumeAccessMode, yyrl4454)
|
|
}
|
|
yyc4454 = true
|
|
yyrr4454 = len(yyv4454)
|
|
} else if yyl4454 != len(yyv4454) {
|
|
yyv4454 = yyv4454[:yyl4454]
|
|
yyc4454 = true
|
|
}
|
|
yyj4454 := 0
|
|
for ; yyj4454 < yyrr4454; yyj4454++ {
|
|
yyh4454.ElemContainerState(yyj4454)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4454[yyj4454] = ""
|
|
} else {
|
|
yyv4454[yyj4454] = PersistentVolumeAccessMode(r.DecodeString())
|
|
}
|
|
|
|
}
|
|
if yyrt4454 {
|
|
for ; yyj4454 < yyl4454; yyj4454++ {
|
|
yyv4454 = append(yyv4454, "")
|
|
yyh4454.ElemContainerState(yyj4454)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4454[yyj4454] = ""
|
|
} else {
|
|
yyv4454[yyj4454] = PersistentVolumeAccessMode(r.DecodeString())
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4454 := 0
|
|
for ; !r.CheckBreak(); yyj4454++ {
|
|
|
|
if yyj4454 >= len(yyv4454) {
|
|
yyv4454 = append(yyv4454, "") // var yyz4454 PersistentVolumeAccessMode
|
|
yyc4454 = true
|
|
}
|
|
yyh4454.ElemContainerState(yyj4454)
|
|
if yyj4454 < len(yyv4454) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4454[yyj4454] = ""
|
|
} else {
|
|
yyv4454[yyj4454] = PersistentVolumeAccessMode(r.DecodeString())
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4454 < len(yyv4454) {
|
|
yyv4454 = yyv4454[:yyj4454]
|
|
yyc4454 = true
|
|
} else if yyj4454 == 0 && yyv4454 == nil {
|
|
yyv4454 = []PersistentVolumeAccessMode{}
|
|
yyc4454 = true
|
|
}
|
|
}
|
|
yyh4454.End()
|
|
if yyc4454 {
|
|
*v = yyv4454
|
|
}
|
|
}
|
|
|
|
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 _, yyv4458 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4459 := &yyv4458
|
|
yy4459.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
|
|
|
|
yyv4460 := *v
|
|
yyh4460, yyl4460 := z.DecSliceHelperStart()
|
|
var yyc4460 bool
|
|
if yyl4460 == 0 {
|
|
if yyv4460 == nil {
|
|
yyv4460 = []PersistentVolume{}
|
|
yyc4460 = true
|
|
} else if len(yyv4460) != 0 {
|
|
yyv4460 = yyv4460[:0]
|
|
yyc4460 = true
|
|
}
|
|
} else if yyl4460 > 0 {
|
|
var yyrr4460, yyrl4460 int
|
|
var yyrt4460 bool
|
|
if yyl4460 > cap(yyv4460) {
|
|
|
|
yyrg4460 := len(yyv4460) > 0
|
|
yyv24460 := yyv4460
|
|
yyrl4460, yyrt4460 = z.DecInferLen(yyl4460, z.DecBasicHandle().MaxInitLen, 464)
|
|
if yyrt4460 {
|
|
if yyrl4460 <= cap(yyv4460) {
|
|
yyv4460 = yyv4460[:yyrl4460]
|
|
} else {
|
|
yyv4460 = make([]PersistentVolume, yyrl4460)
|
|
}
|
|
} else {
|
|
yyv4460 = make([]PersistentVolume, yyrl4460)
|
|
}
|
|
yyc4460 = true
|
|
yyrr4460 = len(yyv4460)
|
|
if yyrg4460 {
|
|
copy(yyv4460, yyv24460)
|
|
}
|
|
} else if yyl4460 != len(yyv4460) {
|
|
yyv4460 = yyv4460[:yyl4460]
|
|
yyc4460 = true
|
|
}
|
|
yyj4460 := 0
|
|
for ; yyj4460 < yyrr4460; yyj4460++ {
|
|
yyh4460.ElemContainerState(yyj4460)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4460[yyj4460] = PersistentVolume{}
|
|
} else {
|
|
yyv4461 := &yyv4460[yyj4460]
|
|
yyv4461.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4460 {
|
|
for ; yyj4460 < yyl4460; yyj4460++ {
|
|
yyv4460 = append(yyv4460, PersistentVolume{})
|
|
yyh4460.ElemContainerState(yyj4460)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4460[yyj4460] = PersistentVolume{}
|
|
} else {
|
|
yyv4462 := &yyv4460[yyj4460]
|
|
yyv4462.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4460 := 0
|
|
for ; !r.CheckBreak(); yyj4460++ {
|
|
|
|
if yyj4460 >= len(yyv4460) {
|
|
yyv4460 = append(yyv4460, PersistentVolume{}) // var yyz4460 PersistentVolume
|
|
yyc4460 = true
|
|
}
|
|
yyh4460.ElemContainerState(yyj4460)
|
|
if yyj4460 < len(yyv4460) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4460[yyj4460] = PersistentVolume{}
|
|
} else {
|
|
yyv4463 := &yyv4460[yyj4460]
|
|
yyv4463.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4460 < len(yyv4460) {
|
|
yyv4460 = yyv4460[:yyj4460]
|
|
yyc4460 = true
|
|
} else if yyj4460 == 0 && yyv4460 == nil {
|
|
yyv4460 = []PersistentVolume{}
|
|
yyc4460 = true
|
|
}
|
|
}
|
|
yyh4460.End()
|
|
if yyc4460 {
|
|
*v = yyv4460
|
|
}
|
|
}
|
|
|
|
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 _, yyv4464 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4465 := &yyv4464
|
|
yy4465.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
|
|
|
|
yyv4466 := *v
|
|
yyh4466, yyl4466 := z.DecSliceHelperStart()
|
|
var yyc4466 bool
|
|
if yyl4466 == 0 {
|
|
if yyv4466 == nil {
|
|
yyv4466 = []PersistentVolumeClaim{}
|
|
yyc4466 = true
|
|
} else if len(yyv4466) != 0 {
|
|
yyv4466 = yyv4466[:0]
|
|
yyc4466 = true
|
|
}
|
|
} else if yyl4466 > 0 {
|
|
var yyrr4466, yyrl4466 int
|
|
var yyrt4466 bool
|
|
if yyl4466 > cap(yyv4466) {
|
|
|
|
yyrg4466 := len(yyv4466) > 0
|
|
yyv24466 := yyv4466
|
|
yyrl4466, yyrt4466 = z.DecInferLen(yyl4466, z.DecBasicHandle().MaxInitLen, 352)
|
|
if yyrt4466 {
|
|
if yyrl4466 <= cap(yyv4466) {
|
|
yyv4466 = yyv4466[:yyrl4466]
|
|
} else {
|
|
yyv4466 = make([]PersistentVolumeClaim, yyrl4466)
|
|
}
|
|
} else {
|
|
yyv4466 = make([]PersistentVolumeClaim, yyrl4466)
|
|
}
|
|
yyc4466 = true
|
|
yyrr4466 = len(yyv4466)
|
|
if yyrg4466 {
|
|
copy(yyv4466, yyv24466)
|
|
}
|
|
} else if yyl4466 != len(yyv4466) {
|
|
yyv4466 = yyv4466[:yyl4466]
|
|
yyc4466 = true
|
|
}
|
|
yyj4466 := 0
|
|
for ; yyj4466 < yyrr4466; yyj4466++ {
|
|
yyh4466.ElemContainerState(yyj4466)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4466[yyj4466] = PersistentVolumeClaim{}
|
|
} else {
|
|
yyv4467 := &yyv4466[yyj4466]
|
|
yyv4467.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4466 {
|
|
for ; yyj4466 < yyl4466; yyj4466++ {
|
|
yyv4466 = append(yyv4466, PersistentVolumeClaim{})
|
|
yyh4466.ElemContainerState(yyj4466)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4466[yyj4466] = PersistentVolumeClaim{}
|
|
} else {
|
|
yyv4468 := &yyv4466[yyj4466]
|
|
yyv4468.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4466 := 0
|
|
for ; !r.CheckBreak(); yyj4466++ {
|
|
|
|
if yyj4466 >= len(yyv4466) {
|
|
yyv4466 = append(yyv4466, PersistentVolumeClaim{}) // var yyz4466 PersistentVolumeClaim
|
|
yyc4466 = true
|
|
}
|
|
yyh4466.ElemContainerState(yyj4466)
|
|
if yyj4466 < len(yyv4466) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4466[yyj4466] = PersistentVolumeClaim{}
|
|
} else {
|
|
yyv4469 := &yyv4466[yyj4466]
|
|
yyv4469.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4466 < len(yyv4466) {
|
|
yyv4466 = yyv4466[:yyj4466]
|
|
yyc4466 = true
|
|
} else if yyj4466 == 0 && yyv4466 == nil {
|
|
yyv4466 = []PersistentVolumeClaim{}
|
|
yyc4466 = true
|
|
}
|
|
}
|
|
yyh4466.End()
|
|
if yyc4466 {
|
|
*v = yyv4466
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSliceKeyToPath(v []KeyToPath, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv4470 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4471 := &yyv4470
|
|
yy4471.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSliceKeyToPath(v *[]KeyToPath, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv4472 := *v
|
|
yyh4472, yyl4472 := z.DecSliceHelperStart()
|
|
var yyc4472 bool
|
|
if yyl4472 == 0 {
|
|
if yyv4472 == nil {
|
|
yyv4472 = []KeyToPath{}
|
|
yyc4472 = true
|
|
} else if len(yyv4472) != 0 {
|
|
yyv4472 = yyv4472[:0]
|
|
yyc4472 = true
|
|
}
|
|
} else if yyl4472 > 0 {
|
|
var yyrr4472, yyrl4472 int
|
|
var yyrt4472 bool
|
|
if yyl4472 > cap(yyv4472) {
|
|
|
|
yyrg4472 := len(yyv4472) > 0
|
|
yyv24472 := yyv4472
|
|
yyrl4472, yyrt4472 = z.DecInferLen(yyl4472, z.DecBasicHandle().MaxInitLen, 40)
|
|
if yyrt4472 {
|
|
if yyrl4472 <= cap(yyv4472) {
|
|
yyv4472 = yyv4472[:yyrl4472]
|
|
} else {
|
|
yyv4472 = make([]KeyToPath, yyrl4472)
|
|
}
|
|
} else {
|
|
yyv4472 = make([]KeyToPath, yyrl4472)
|
|
}
|
|
yyc4472 = true
|
|
yyrr4472 = len(yyv4472)
|
|
if yyrg4472 {
|
|
copy(yyv4472, yyv24472)
|
|
}
|
|
} else if yyl4472 != len(yyv4472) {
|
|
yyv4472 = yyv4472[:yyl4472]
|
|
yyc4472 = true
|
|
}
|
|
yyj4472 := 0
|
|
for ; yyj4472 < yyrr4472; yyj4472++ {
|
|
yyh4472.ElemContainerState(yyj4472)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4472[yyj4472] = KeyToPath{}
|
|
} else {
|
|
yyv4473 := &yyv4472[yyj4472]
|
|
yyv4473.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4472 {
|
|
for ; yyj4472 < yyl4472; yyj4472++ {
|
|
yyv4472 = append(yyv4472, KeyToPath{})
|
|
yyh4472.ElemContainerState(yyj4472)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4472[yyj4472] = KeyToPath{}
|
|
} else {
|
|
yyv4474 := &yyv4472[yyj4472]
|
|
yyv4474.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4472 := 0
|
|
for ; !r.CheckBreak(); yyj4472++ {
|
|
|
|
if yyj4472 >= len(yyv4472) {
|
|
yyv4472 = append(yyv4472, KeyToPath{}) // var yyz4472 KeyToPath
|
|
yyc4472 = true
|
|
}
|
|
yyh4472.ElemContainerState(yyj4472)
|
|
if yyj4472 < len(yyv4472) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4472[yyj4472] = KeyToPath{}
|
|
} else {
|
|
yyv4475 := &yyv4472[yyj4472]
|
|
yyv4475.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4472 < len(yyv4472) {
|
|
yyv4472 = yyv4472[:yyj4472]
|
|
yyc4472 = true
|
|
} else if yyj4472 == 0 && yyv4472 == nil {
|
|
yyv4472 = []KeyToPath{}
|
|
yyc4472 = true
|
|
}
|
|
}
|
|
yyh4472.End()
|
|
if yyc4472 {
|
|
*v = yyv4472
|
|
}
|
|
}
|
|
|
|
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 _, yyv4476 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4477 := &yyv4476
|
|
yy4477.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
|
|
|
|
yyv4478 := *v
|
|
yyh4478, yyl4478 := z.DecSliceHelperStart()
|
|
var yyc4478 bool
|
|
if yyl4478 == 0 {
|
|
if yyv4478 == nil {
|
|
yyv4478 = []DownwardAPIVolumeFile{}
|
|
yyc4478 = true
|
|
} else if len(yyv4478) != 0 {
|
|
yyv4478 = yyv4478[:0]
|
|
yyc4478 = true
|
|
}
|
|
} else if yyl4478 > 0 {
|
|
var yyrr4478, yyrl4478 int
|
|
var yyrt4478 bool
|
|
if yyl4478 > cap(yyv4478) {
|
|
|
|
yyrg4478 := len(yyv4478) > 0
|
|
yyv24478 := yyv4478
|
|
yyrl4478, yyrt4478 = z.DecInferLen(yyl4478, z.DecBasicHandle().MaxInitLen, 40)
|
|
if yyrt4478 {
|
|
if yyrl4478 <= cap(yyv4478) {
|
|
yyv4478 = yyv4478[:yyrl4478]
|
|
} else {
|
|
yyv4478 = make([]DownwardAPIVolumeFile, yyrl4478)
|
|
}
|
|
} else {
|
|
yyv4478 = make([]DownwardAPIVolumeFile, yyrl4478)
|
|
}
|
|
yyc4478 = true
|
|
yyrr4478 = len(yyv4478)
|
|
if yyrg4478 {
|
|
copy(yyv4478, yyv24478)
|
|
}
|
|
} else if yyl4478 != len(yyv4478) {
|
|
yyv4478 = yyv4478[:yyl4478]
|
|
yyc4478 = true
|
|
}
|
|
yyj4478 := 0
|
|
for ; yyj4478 < yyrr4478; yyj4478++ {
|
|
yyh4478.ElemContainerState(yyj4478)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4478[yyj4478] = DownwardAPIVolumeFile{}
|
|
} else {
|
|
yyv4479 := &yyv4478[yyj4478]
|
|
yyv4479.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4478 {
|
|
for ; yyj4478 < yyl4478; yyj4478++ {
|
|
yyv4478 = append(yyv4478, DownwardAPIVolumeFile{})
|
|
yyh4478.ElemContainerState(yyj4478)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4478[yyj4478] = DownwardAPIVolumeFile{}
|
|
} else {
|
|
yyv4480 := &yyv4478[yyj4478]
|
|
yyv4480.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4478 := 0
|
|
for ; !r.CheckBreak(); yyj4478++ {
|
|
|
|
if yyj4478 >= len(yyv4478) {
|
|
yyv4478 = append(yyv4478, DownwardAPIVolumeFile{}) // var yyz4478 DownwardAPIVolumeFile
|
|
yyc4478 = true
|
|
}
|
|
yyh4478.ElemContainerState(yyj4478)
|
|
if yyj4478 < len(yyv4478) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4478[yyj4478] = DownwardAPIVolumeFile{}
|
|
} else {
|
|
yyv4481 := &yyv4478[yyj4478]
|
|
yyv4481.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4478 < len(yyv4478) {
|
|
yyv4478 = yyv4478[:yyj4478]
|
|
yyc4478 = true
|
|
} else if yyj4478 == 0 && yyv4478 == nil {
|
|
yyv4478 = []DownwardAPIVolumeFile{}
|
|
yyc4478 = true
|
|
}
|
|
}
|
|
yyh4478.End()
|
|
if yyc4478 {
|
|
*v = yyv4478
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSliceHTTPHeader(v []HTTPHeader, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv4482 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4483 := &yyv4482
|
|
yy4483.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSliceHTTPHeader(v *[]HTTPHeader, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv4484 := *v
|
|
yyh4484, yyl4484 := z.DecSliceHelperStart()
|
|
var yyc4484 bool
|
|
if yyl4484 == 0 {
|
|
if yyv4484 == nil {
|
|
yyv4484 = []HTTPHeader{}
|
|
yyc4484 = true
|
|
} else if len(yyv4484) != 0 {
|
|
yyv4484 = yyv4484[:0]
|
|
yyc4484 = true
|
|
}
|
|
} else if yyl4484 > 0 {
|
|
var yyrr4484, yyrl4484 int
|
|
var yyrt4484 bool
|
|
if yyl4484 > cap(yyv4484) {
|
|
|
|
yyrg4484 := len(yyv4484) > 0
|
|
yyv24484 := yyv4484
|
|
yyrl4484, yyrt4484 = z.DecInferLen(yyl4484, z.DecBasicHandle().MaxInitLen, 32)
|
|
if yyrt4484 {
|
|
if yyrl4484 <= cap(yyv4484) {
|
|
yyv4484 = yyv4484[:yyrl4484]
|
|
} else {
|
|
yyv4484 = make([]HTTPHeader, yyrl4484)
|
|
}
|
|
} else {
|
|
yyv4484 = make([]HTTPHeader, yyrl4484)
|
|
}
|
|
yyc4484 = true
|
|
yyrr4484 = len(yyv4484)
|
|
if yyrg4484 {
|
|
copy(yyv4484, yyv24484)
|
|
}
|
|
} else if yyl4484 != len(yyv4484) {
|
|
yyv4484 = yyv4484[:yyl4484]
|
|
yyc4484 = true
|
|
}
|
|
yyj4484 := 0
|
|
for ; yyj4484 < yyrr4484; yyj4484++ {
|
|
yyh4484.ElemContainerState(yyj4484)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4484[yyj4484] = HTTPHeader{}
|
|
} else {
|
|
yyv4485 := &yyv4484[yyj4484]
|
|
yyv4485.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4484 {
|
|
for ; yyj4484 < yyl4484; yyj4484++ {
|
|
yyv4484 = append(yyv4484, HTTPHeader{})
|
|
yyh4484.ElemContainerState(yyj4484)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4484[yyj4484] = HTTPHeader{}
|
|
} else {
|
|
yyv4486 := &yyv4484[yyj4484]
|
|
yyv4486.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4484 := 0
|
|
for ; !r.CheckBreak(); yyj4484++ {
|
|
|
|
if yyj4484 >= len(yyv4484) {
|
|
yyv4484 = append(yyv4484, HTTPHeader{}) // var yyz4484 HTTPHeader
|
|
yyc4484 = true
|
|
}
|
|
yyh4484.ElemContainerState(yyj4484)
|
|
if yyj4484 < len(yyv4484) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4484[yyj4484] = HTTPHeader{}
|
|
} else {
|
|
yyv4487 := &yyv4484[yyj4484]
|
|
yyv4487.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4484 < len(yyv4484) {
|
|
yyv4484 = yyv4484[:yyj4484]
|
|
yyc4484 = true
|
|
} else if yyj4484 == 0 && yyv4484 == nil {
|
|
yyv4484 = []HTTPHeader{}
|
|
yyc4484 = true
|
|
}
|
|
}
|
|
yyh4484.End()
|
|
if yyc4484 {
|
|
*v = yyv4484
|
|
}
|
|
}
|
|
|
|
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 _, yyv4488 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yyv4488.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
|
|
|
|
yyv4489 := *v
|
|
yyh4489, yyl4489 := z.DecSliceHelperStart()
|
|
var yyc4489 bool
|
|
if yyl4489 == 0 {
|
|
if yyv4489 == nil {
|
|
yyv4489 = []Capability{}
|
|
yyc4489 = true
|
|
} else if len(yyv4489) != 0 {
|
|
yyv4489 = yyv4489[:0]
|
|
yyc4489 = true
|
|
}
|
|
} else if yyl4489 > 0 {
|
|
var yyrr4489, yyrl4489 int
|
|
var yyrt4489 bool
|
|
if yyl4489 > cap(yyv4489) {
|
|
|
|
yyrl4489, yyrt4489 = z.DecInferLen(yyl4489, z.DecBasicHandle().MaxInitLen, 16)
|
|
if yyrt4489 {
|
|
if yyrl4489 <= cap(yyv4489) {
|
|
yyv4489 = yyv4489[:yyrl4489]
|
|
} else {
|
|
yyv4489 = make([]Capability, yyrl4489)
|
|
}
|
|
} else {
|
|
yyv4489 = make([]Capability, yyrl4489)
|
|
}
|
|
yyc4489 = true
|
|
yyrr4489 = len(yyv4489)
|
|
} else if yyl4489 != len(yyv4489) {
|
|
yyv4489 = yyv4489[:yyl4489]
|
|
yyc4489 = true
|
|
}
|
|
yyj4489 := 0
|
|
for ; yyj4489 < yyrr4489; yyj4489++ {
|
|
yyh4489.ElemContainerState(yyj4489)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4489[yyj4489] = ""
|
|
} else {
|
|
yyv4489[yyj4489] = Capability(r.DecodeString())
|
|
}
|
|
|
|
}
|
|
if yyrt4489 {
|
|
for ; yyj4489 < yyl4489; yyj4489++ {
|
|
yyv4489 = append(yyv4489, "")
|
|
yyh4489.ElemContainerState(yyj4489)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4489[yyj4489] = ""
|
|
} else {
|
|
yyv4489[yyj4489] = Capability(r.DecodeString())
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4489 := 0
|
|
for ; !r.CheckBreak(); yyj4489++ {
|
|
|
|
if yyj4489 >= len(yyv4489) {
|
|
yyv4489 = append(yyv4489, "") // var yyz4489 Capability
|
|
yyc4489 = true
|
|
}
|
|
yyh4489.ElemContainerState(yyj4489)
|
|
if yyj4489 < len(yyv4489) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4489[yyj4489] = ""
|
|
} else {
|
|
yyv4489[yyj4489] = Capability(r.DecodeString())
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4489 < len(yyv4489) {
|
|
yyv4489 = yyv4489[:yyj4489]
|
|
yyc4489 = true
|
|
} else if yyj4489 == 0 && yyv4489 == nil {
|
|
yyv4489 = []Capability{}
|
|
yyc4489 = true
|
|
}
|
|
}
|
|
yyh4489.End()
|
|
if yyc4489 {
|
|
*v = yyv4489
|
|
}
|
|
}
|
|
|
|
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 _, yyv4493 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4494 := &yyv4493
|
|
yy4494.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
|
|
|
|
yyv4495 := *v
|
|
yyh4495, yyl4495 := z.DecSliceHelperStart()
|
|
var yyc4495 bool
|
|
if yyl4495 == 0 {
|
|
if yyv4495 == nil {
|
|
yyv4495 = []ContainerPort{}
|
|
yyc4495 = true
|
|
} else if len(yyv4495) != 0 {
|
|
yyv4495 = yyv4495[:0]
|
|
yyc4495 = true
|
|
}
|
|
} else if yyl4495 > 0 {
|
|
var yyrr4495, yyrl4495 int
|
|
var yyrt4495 bool
|
|
if yyl4495 > cap(yyv4495) {
|
|
|
|
yyrg4495 := len(yyv4495) > 0
|
|
yyv24495 := yyv4495
|
|
yyrl4495, yyrt4495 = z.DecInferLen(yyl4495, z.DecBasicHandle().MaxInitLen, 56)
|
|
if yyrt4495 {
|
|
if yyrl4495 <= cap(yyv4495) {
|
|
yyv4495 = yyv4495[:yyrl4495]
|
|
} else {
|
|
yyv4495 = make([]ContainerPort, yyrl4495)
|
|
}
|
|
} else {
|
|
yyv4495 = make([]ContainerPort, yyrl4495)
|
|
}
|
|
yyc4495 = true
|
|
yyrr4495 = len(yyv4495)
|
|
if yyrg4495 {
|
|
copy(yyv4495, yyv24495)
|
|
}
|
|
} else if yyl4495 != len(yyv4495) {
|
|
yyv4495 = yyv4495[:yyl4495]
|
|
yyc4495 = true
|
|
}
|
|
yyj4495 := 0
|
|
for ; yyj4495 < yyrr4495; yyj4495++ {
|
|
yyh4495.ElemContainerState(yyj4495)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4495[yyj4495] = ContainerPort{}
|
|
} else {
|
|
yyv4496 := &yyv4495[yyj4495]
|
|
yyv4496.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4495 {
|
|
for ; yyj4495 < yyl4495; yyj4495++ {
|
|
yyv4495 = append(yyv4495, ContainerPort{})
|
|
yyh4495.ElemContainerState(yyj4495)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4495[yyj4495] = ContainerPort{}
|
|
} else {
|
|
yyv4497 := &yyv4495[yyj4495]
|
|
yyv4497.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4495 := 0
|
|
for ; !r.CheckBreak(); yyj4495++ {
|
|
|
|
if yyj4495 >= len(yyv4495) {
|
|
yyv4495 = append(yyv4495, ContainerPort{}) // var yyz4495 ContainerPort
|
|
yyc4495 = true
|
|
}
|
|
yyh4495.ElemContainerState(yyj4495)
|
|
if yyj4495 < len(yyv4495) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4495[yyj4495] = ContainerPort{}
|
|
} else {
|
|
yyv4498 := &yyv4495[yyj4495]
|
|
yyv4498.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4495 < len(yyv4495) {
|
|
yyv4495 = yyv4495[:yyj4495]
|
|
yyc4495 = true
|
|
} else if yyj4495 == 0 && yyv4495 == nil {
|
|
yyv4495 = []ContainerPort{}
|
|
yyc4495 = true
|
|
}
|
|
}
|
|
yyh4495.End()
|
|
if yyc4495 {
|
|
*v = yyv4495
|
|
}
|
|
}
|
|
|
|
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 _, yyv4499 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4500 := &yyv4499
|
|
yy4500.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
|
|
|
|
yyv4501 := *v
|
|
yyh4501, yyl4501 := z.DecSliceHelperStart()
|
|
var yyc4501 bool
|
|
if yyl4501 == 0 {
|
|
if yyv4501 == nil {
|
|
yyv4501 = []EnvVar{}
|
|
yyc4501 = true
|
|
} else if len(yyv4501) != 0 {
|
|
yyv4501 = yyv4501[:0]
|
|
yyc4501 = true
|
|
}
|
|
} else if yyl4501 > 0 {
|
|
var yyrr4501, yyrl4501 int
|
|
var yyrt4501 bool
|
|
if yyl4501 > cap(yyv4501) {
|
|
|
|
yyrg4501 := len(yyv4501) > 0
|
|
yyv24501 := yyv4501
|
|
yyrl4501, yyrt4501 = z.DecInferLen(yyl4501, z.DecBasicHandle().MaxInitLen, 40)
|
|
if yyrt4501 {
|
|
if yyrl4501 <= cap(yyv4501) {
|
|
yyv4501 = yyv4501[:yyrl4501]
|
|
} else {
|
|
yyv4501 = make([]EnvVar, yyrl4501)
|
|
}
|
|
} else {
|
|
yyv4501 = make([]EnvVar, yyrl4501)
|
|
}
|
|
yyc4501 = true
|
|
yyrr4501 = len(yyv4501)
|
|
if yyrg4501 {
|
|
copy(yyv4501, yyv24501)
|
|
}
|
|
} else if yyl4501 != len(yyv4501) {
|
|
yyv4501 = yyv4501[:yyl4501]
|
|
yyc4501 = true
|
|
}
|
|
yyj4501 := 0
|
|
for ; yyj4501 < yyrr4501; yyj4501++ {
|
|
yyh4501.ElemContainerState(yyj4501)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4501[yyj4501] = EnvVar{}
|
|
} else {
|
|
yyv4502 := &yyv4501[yyj4501]
|
|
yyv4502.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4501 {
|
|
for ; yyj4501 < yyl4501; yyj4501++ {
|
|
yyv4501 = append(yyv4501, EnvVar{})
|
|
yyh4501.ElemContainerState(yyj4501)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4501[yyj4501] = EnvVar{}
|
|
} else {
|
|
yyv4503 := &yyv4501[yyj4501]
|
|
yyv4503.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4501 := 0
|
|
for ; !r.CheckBreak(); yyj4501++ {
|
|
|
|
if yyj4501 >= len(yyv4501) {
|
|
yyv4501 = append(yyv4501, EnvVar{}) // var yyz4501 EnvVar
|
|
yyc4501 = true
|
|
}
|
|
yyh4501.ElemContainerState(yyj4501)
|
|
if yyj4501 < len(yyv4501) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4501[yyj4501] = EnvVar{}
|
|
} else {
|
|
yyv4504 := &yyv4501[yyj4501]
|
|
yyv4504.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4501 < len(yyv4501) {
|
|
yyv4501 = yyv4501[:yyj4501]
|
|
yyc4501 = true
|
|
} else if yyj4501 == 0 && yyv4501 == nil {
|
|
yyv4501 = []EnvVar{}
|
|
yyc4501 = true
|
|
}
|
|
}
|
|
yyh4501.End()
|
|
if yyc4501 {
|
|
*v = yyv4501
|
|
}
|
|
}
|
|
|
|
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 _, yyv4505 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4506 := &yyv4505
|
|
yy4506.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
|
|
|
|
yyv4507 := *v
|
|
yyh4507, yyl4507 := z.DecSliceHelperStart()
|
|
var yyc4507 bool
|
|
if yyl4507 == 0 {
|
|
if yyv4507 == nil {
|
|
yyv4507 = []VolumeMount{}
|
|
yyc4507 = true
|
|
} else if len(yyv4507) != 0 {
|
|
yyv4507 = yyv4507[:0]
|
|
yyc4507 = true
|
|
}
|
|
} else if yyl4507 > 0 {
|
|
var yyrr4507, yyrl4507 int
|
|
var yyrt4507 bool
|
|
if yyl4507 > cap(yyv4507) {
|
|
|
|
yyrg4507 := len(yyv4507) > 0
|
|
yyv24507 := yyv4507
|
|
yyrl4507, yyrt4507 = z.DecInferLen(yyl4507, z.DecBasicHandle().MaxInitLen, 56)
|
|
if yyrt4507 {
|
|
if yyrl4507 <= cap(yyv4507) {
|
|
yyv4507 = yyv4507[:yyrl4507]
|
|
} else {
|
|
yyv4507 = make([]VolumeMount, yyrl4507)
|
|
}
|
|
} else {
|
|
yyv4507 = make([]VolumeMount, yyrl4507)
|
|
}
|
|
yyc4507 = true
|
|
yyrr4507 = len(yyv4507)
|
|
if yyrg4507 {
|
|
copy(yyv4507, yyv24507)
|
|
}
|
|
} else if yyl4507 != len(yyv4507) {
|
|
yyv4507 = yyv4507[:yyl4507]
|
|
yyc4507 = true
|
|
}
|
|
yyj4507 := 0
|
|
for ; yyj4507 < yyrr4507; yyj4507++ {
|
|
yyh4507.ElemContainerState(yyj4507)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4507[yyj4507] = VolumeMount{}
|
|
} else {
|
|
yyv4508 := &yyv4507[yyj4507]
|
|
yyv4508.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4507 {
|
|
for ; yyj4507 < yyl4507; yyj4507++ {
|
|
yyv4507 = append(yyv4507, VolumeMount{})
|
|
yyh4507.ElemContainerState(yyj4507)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4507[yyj4507] = VolumeMount{}
|
|
} else {
|
|
yyv4509 := &yyv4507[yyj4507]
|
|
yyv4509.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4507 := 0
|
|
for ; !r.CheckBreak(); yyj4507++ {
|
|
|
|
if yyj4507 >= len(yyv4507) {
|
|
yyv4507 = append(yyv4507, VolumeMount{}) // var yyz4507 VolumeMount
|
|
yyc4507 = true
|
|
}
|
|
yyh4507.ElemContainerState(yyj4507)
|
|
if yyj4507 < len(yyv4507) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4507[yyj4507] = VolumeMount{}
|
|
} else {
|
|
yyv4510 := &yyv4507[yyj4507]
|
|
yyv4510.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4507 < len(yyv4507) {
|
|
yyv4507 = yyv4507[:yyj4507]
|
|
yyc4507 = true
|
|
} else if yyj4507 == 0 && yyv4507 == nil {
|
|
yyv4507 = []VolumeMount{}
|
|
yyc4507 = true
|
|
}
|
|
}
|
|
yyh4507.End()
|
|
if yyc4507 {
|
|
*v = yyv4507
|
|
}
|
|
}
|
|
|
|
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 _, yyv4511 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4512 := &yyv4511
|
|
yy4512.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
|
|
|
|
yyv4513 := *v
|
|
yyh4513, yyl4513 := z.DecSliceHelperStart()
|
|
var yyc4513 bool
|
|
if yyl4513 == 0 {
|
|
if yyv4513 == nil {
|
|
yyv4513 = []Pod{}
|
|
yyc4513 = true
|
|
} else if len(yyv4513) != 0 {
|
|
yyv4513 = yyv4513[:0]
|
|
yyc4513 = true
|
|
}
|
|
} else if yyl4513 > 0 {
|
|
var yyrr4513, yyrl4513 int
|
|
var yyrt4513 bool
|
|
if yyl4513 > cap(yyv4513) {
|
|
|
|
yyrg4513 := len(yyv4513) > 0
|
|
yyv24513 := yyv4513
|
|
yyrl4513, yyrt4513 = z.DecInferLen(yyl4513, z.DecBasicHandle().MaxInitLen, 624)
|
|
if yyrt4513 {
|
|
if yyrl4513 <= cap(yyv4513) {
|
|
yyv4513 = yyv4513[:yyrl4513]
|
|
} else {
|
|
yyv4513 = make([]Pod, yyrl4513)
|
|
}
|
|
} else {
|
|
yyv4513 = make([]Pod, yyrl4513)
|
|
}
|
|
yyc4513 = true
|
|
yyrr4513 = len(yyv4513)
|
|
if yyrg4513 {
|
|
copy(yyv4513, yyv24513)
|
|
}
|
|
} else if yyl4513 != len(yyv4513) {
|
|
yyv4513 = yyv4513[:yyl4513]
|
|
yyc4513 = true
|
|
}
|
|
yyj4513 := 0
|
|
for ; yyj4513 < yyrr4513; yyj4513++ {
|
|
yyh4513.ElemContainerState(yyj4513)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4513[yyj4513] = Pod{}
|
|
} else {
|
|
yyv4514 := &yyv4513[yyj4513]
|
|
yyv4514.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4513 {
|
|
for ; yyj4513 < yyl4513; yyj4513++ {
|
|
yyv4513 = append(yyv4513, Pod{})
|
|
yyh4513.ElemContainerState(yyj4513)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4513[yyj4513] = Pod{}
|
|
} else {
|
|
yyv4515 := &yyv4513[yyj4513]
|
|
yyv4515.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4513 := 0
|
|
for ; !r.CheckBreak(); yyj4513++ {
|
|
|
|
if yyj4513 >= len(yyv4513) {
|
|
yyv4513 = append(yyv4513, Pod{}) // var yyz4513 Pod
|
|
yyc4513 = true
|
|
}
|
|
yyh4513.ElemContainerState(yyj4513)
|
|
if yyj4513 < len(yyv4513) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4513[yyj4513] = Pod{}
|
|
} else {
|
|
yyv4516 := &yyv4513[yyj4513]
|
|
yyv4516.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4513 < len(yyv4513) {
|
|
yyv4513 = yyv4513[:yyj4513]
|
|
yyc4513 = true
|
|
} else if yyj4513 == 0 && yyv4513 == nil {
|
|
yyv4513 = []Pod{}
|
|
yyc4513 = true
|
|
}
|
|
}
|
|
yyh4513.End()
|
|
if yyc4513 {
|
|
*v = yyv4513
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSliceNodeSelectorTerm(v []NodeSelectorTerm, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv4517 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4518 := &yyv4517
|
|
yy4518.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSliceNodeSelectorTerm(v *[]NodeSelectorTerm, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv4519 := *v
|
|
yyh4519, yyl4519 := z.DecSliceHelperStart()
|
|
var yyc4519 bool
|
|
if yyl4519 == 0 {
|
|
if yyv4519 == nil {
|
|
yyv4519 = []NodeSelectorTerm{}
|
|
yyc4519 = true
|
|
} else if len(yyv4519) != 0 {
|
|
yyv4519 = yyv4519[:0]
|
|
yyc4519 = true
|
|
}
|
|
} else if yyl4519 > 0 {
|
|
var yyrr4519, yyrl4519 int
|
|
var yyrt4519 bool
|
|
if yyl4519 > cap(yyv4519) {
|
|
|
|
yyrg4519 := len(yyv4519) > 0
|
|
yyv24519 := yyv4519
|
|
yyrl4519, yyrt4519 = z.DecInferLen(yyl4519, z.DecBasicHandle().MaxInitLen, 24)
|
|
if yyrt4519 {
|
|
if yyrl4519 <= cap(yyv4519) {
|
|
yyv4519 = yyv4519[:yyrl4519]
|
|
} else {
|
|
yyv4519 = make([]NodeSelectorTerm, yyrl4519)
|
|
}
|
|
} else {
|
|
yyv4519 = make([]NodeSelectorTerm, yyrl4519)
|
|
}
|
|
yyc4519 = true
|
|
yyrr4519 = len(yyv4519)
|
|
if yyrg4519 {
|
|
copy(yyv4519, yyv24519)
|
|
}
|
|
} else if yyl4519 != len(yyv4519) {
|
|
yyv4519 = yyv4519[:yyl4519]
|
|
yyc4519 = true
|
|
}
|
|
yyj4519 := 0
|
|
for ; yyj4519 < yyrr4519; yyj4519++ {
|
|
yyh4519.ElemContainerState(yyj4519)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4519[yyj4519] = NodeSelectorTerm{}
|
|
} else {
|
|
yyv4520 := &yyv4519[yyj4519]
|
|
yyv4520.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4519 {
|
|
for ; yyj4519 < yyl4519; yyj4519++ {
|
|
yyv4519 = append(yyv4519, NodeSelectorTerm{})
|
|
yyh4519.ElemContainerState(yyj4519)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4519[yyj4519] = NodeSelectorTerm{}
|
|
} else {
|
|
yyv4521 := &yyv4519[yyj4519]
|
|
yyv4521.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4519 := 0
|
|
for ; !r.CheckBreak(); yyj4519++ {
|
|
|
|
if yyj4519 >= len(yyv4519) {
|
|
yyv4519 = append(yyv4519, NodeSelectorTerm{}) // var yyz4519 NodeSelectorTerm
|
|
yyc4519 = true
|
|
}
|
|
yyh4519.ElemContainerState(yyj4519)
|
|
if yyj4519 < len(yyv4519) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4519[yyj4519] = NodeSelectorTerm{}
|
|
} else {
|
|
yyv4522 := &yyv4519[yyj4519]
|
|
yyv4522.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4519 < len(yyv4519) {
|
|
yyv4519 = yyv4519[:yyj4519]
|
|
yyc4519 = true
|
|
} else if yyj4519 == 0 && yyv4519 == nil {
|
|
yyv4519 = []NodeSelectorTerm{}
|
|
yyc4519 = true
|
|
}
|
|
}
|
|
yyh4519.End()
|
|
if yyc4519 {
|
|
*v = yyv4519
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSliceNodeSelectorRequirement(v []NodeSelectorRequirement, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv4523 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4524 := &yyv4523
|
|
yy4524.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSliceNodeSelectorRequirement(v *[]NodeSelectorRequirement, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv4525 := *v
|
|
yyh4525, yyl4525 := z.DecSliceHelperStart()
|
|
var yyc4525 bool
|
|
if yyl4525 == 0 {
|
|
if yyv4525 == nil {
|
|
yyv4525 = []NodeSelectorRequirement{}
|
|
yyc4525 = true
|
|
} else if len(yyv4525) != 0 {
|
|
yyv4525 = yyv4525[:0]
|
|
yyc4525 = true
|
|
}
|
|
} else if yyl4525 > 0 {
|
|
var yyrr4525, yyrl4525 int
|
|
var yyrt4525 bool
|
|
if yyl4525 > cap(yyv4525) {
|
|
|
|
yyrg4525 := len(yyv4525) > 0
|
|
yyv24525 := yyv4525
|
|
yyrl4525, yyrt4525 = z.DecInferLen(yyl4525, z.DecBasicHandle().MaxInitLen, 56)
|
|
if yyrt4525 {
|
|
if yyrl4525 <= cap(yyv4525) {
|
|
yyv4525 = yyv4525[:yyrl4525]
|
|
} else {
|
|
yyv4525 = make([]NodeSelectorRequirement, yyrl4525)
|
|
}
|
|
} else {
|
|
yyv4525 = make([]NodeSelectorRequirement, yyrl4525)
|
|
}
|
|
yyc4525 = true
|
|
yyrr4525 = len(yyv4525)
|
|
if yyrg4525 {
|
|
copy(yyv4525, yyv24525)
|
|
}
|
|
} else if yyl4525 != len(yyv4525) {
|
|
yyv4525 = yyv4525[:yyl4525]
|
|
yyc4525 = true
|
|
}
|
|
yyj4525 := 0
|
|
for ; yyj4525 < yyrr4525; yyj4525++ {
|
|
yyh4525.ElemContainerState(yyj4525)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4525[yyj4525] = NodeSelectorRequirement{}
|
|
} else {
|
|
yyv4526 := &yyv4525[yyj4525]
|
|
yyv4526.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4525 {
|
|
for ; yyj4525 < yyl4525; yyj4525++ {
|
|
yyv4525 = append(yyv4525, NodeSelectorRequirement{})
|
|
yyh4525.ElemContainerState(yyj4525)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4525[yyj4525] = NodeSelectorRequirement{}
|
|
} else {
|
|
yyv4527 := &yyv4525[yyj4525]
|
|
yyv4527.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4525 := 0
|
|
for ; !r.CheckBreak(); yyj4525++ {
|
|
|
|
if yyj4525 >= len(yyv4525) {
|
|
yyv4525 = append(yyv4525, NodeSelectorRequirement{}) // var yyz4525 NodeSelectorRequirement
|
|
yyc4525 = true
|
|
}
|
|
yyh4525.ElemContainerState(yyj4525)
|
|
if yyj4525 < len(yyv4525) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4525[yyj4525] = NodeSelectorRequirement{}
|
|
} else {
|
|
yyv4528 := &yyv4525[yyj4525]
|
|
yyv4528.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4525 < len(yyv4525) {
|
|
yyv4525 = yyv4525[:yyj4525]
|
|
yyc4525 = true
|
|
} else if yyj4525 == 0 && yyv4525 == nil {
|
|
yyv4525 = []NodeSelectorRequirement{}
|
|
yyc4525 = true
|
|
}
|
|
}
|
|
yyh4525.End()
|
|
if yyc4525 {
|
|
*v = yyv4525
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSlicePodAffinityTerm(v []PodAffinityTerm, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv4529 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4530 := &yyv4529
|
|
yy4530.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSlicePodAffinityTerm(v *[]PodAffinityTerm, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv4531 := *v
|
|
yyh4531, yyl4531 := z.DecSliceHelperStart()
|
|
var yyc4531 bool
|
|
if yyl4531 == 0 {
|
|
if yyv4531 == nil {
|
|
yyv4531 = []PodAffinityTerm{}
|
|
yyc4531 = true
|
|
} else if len(yyv4531) != 0 {
|
|
yyv4531 = yyv4531[:0]
|
|
yyc4531 = true
|
|
}
|
|
} else if yyl4531 > 0 {
|
|
var yyrr4531, yyrl4531 int
|
|
var yyrt4531 bool
|
|
if yyl4531 > cap(yyv4531) {
|
|
|
|
yyrg4531 := len(yyv4531) > 0
|
|
yyv24531 := yyv4531
|
|
yyrl4531, yyrt4531 = z.DecInferLen(yyl4531, z.DecBasicHandle().MaxInitLen, 48)
|
|
if yyrt4531 {
|
|
if yyrl4531 <= cap(yyv4531) {
|
|
yyv4531 = yyv4531[:yyrl4531]
|
|
} else {
|
|
yyv4531 = make([]PodAffinityTerm, yyrl4531)
|
|
}
|
|
} else {
|
|
yyv4531 = make([]PodAffinityTerm, yyrl4531)
|
|
}
|
|
yyc4531 = true
|
|
yyrr4531 = len(yyv4531)
|
|
if yyrg4531 {
|
|
copy(yyv4531, yyv24531)
|
|
}
|
|
} else if yyl4531 != len(yyv4531) {
|
|
yyv4531 = yyv4531[:yyl4531]
|
|
yyc4531 = true
|
|
}
|
|
yyj4531 := 0
|
|
for ; yyj4531 < yyrr4531; yyj4531++ {
|
|
yyh4531.ElemContainerState(yyj4531)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4531[yyj4531] = PodAffinityTerm{}
|
|
} else {
|
|
yyv4532 := &yyv4531[yyj4531]
|
|
yyv4532.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4531 {
|
|
for ; yyj4531 < yyl4531; yyj4531++ {
|
|
yyv4531 = append(yyv4531, PodAffinityTerm{})
|
|
yyh4531.ElemContainerState(yyj4531)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4531[yyj4531] = PodAffinityTerm{}
|
|
} else {
|
|
yyv4533 := &yyv4531[yyj4531]
|
|
yyv4533.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4531 := 0
|
|
for ; !r.CheckBreak(); yyj4531++ {
|
|
|
|
if yyj4531 >= len(yyv4531) {
|
|
yyv4531 = append(yyv4531, PodAffinityTerm{}) // var yyz4531 PodAffinityTerm
|
|
yyc4531 = true
|
|
}
|
|
yyh4531.ElemContainerState(yyj4531)
|
|
if yyj4531 < len(yyv4531) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4531[yyj4531] = PodAffinityTerm{}
|
|
} else {
|
|
yyv4534 := &yyv4531[yyj4531]
|
|
yyv4534.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4531 < len(yyv4531) {
|
|
yyv4531 = yyv4531[:yyj4531]
|
|
yyc4531 = true
|
|
} else if yyj4531 == 0 && yyv4531 == nil {
|
|
yyv4531 = []PodAffinityTerm{}
|
|
yyc4531 = true
|
|
}
|
|
}
|
|
yyh4531.End()
|
|
if yyc4531 {
|
|
*v = yyv4531
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSliceWeightedPodAffinityTerm(v []WeightedPodAffinityTerm, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv4535 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4536 := &yyv4535
|
|
yy4536.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSliceWeightedPodAffinityTerm(v *[]WeightedPodAffinityTerm, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv4537 := *v
|
|
yyh4537, yyl4537 := z.DecSliceHelperStart()
|
|
var yyc4537 bool
|
|
if yyl4537 == 0 {
|
|
if yyv4537 == nil {
|
|
yyv4537 = []WeightedPodAffinityTerm{}
|
|
yyc4537 = true
|
|
} else if len(yyv4537) != 0 {
|
|
yyv4537 = yyv4537[:0]
|
|
yyc4537 = true
|
|
}
|
|
} else if yyl4537 > 0 {
|
|
var yyrr4537, yyrl4537 int
|
|
var yyrt4537 bool
|
|
if yyl4537 > cap(yyv4537) {
|
|
|
|
yyrg4537 := len(yyv4537) > 0
|
|
yyv24537 := yyv4537
|
|
yyrl4537, yyrt4537 = z.DecInferLen(yyl4537, z.DecBasicHandle().MaxInitLen, 56)
|
|
if yyrt4537 {
|
|
if yyrl4537 <= cap(yyv4537) {
|
|
yyv4537 = yyv4537[:yyrl4537]
|
|
} else {
|
|
yyv4537 = make([]WeightedPodAffinityTerm, yyrl4537)
|
|
}
|
|
} else {
|
|
yyv4537 = make([]WeightedPodAffinityTerm, yyrl4537)
|
|
}
|
|
yyc4537 = true
|
|
yyrr4537 = len(yyv4537)
|
|
if yyrg4537 {
|
|
copy(yyv4537, yyv24537)
|
|
}
|
|
} else if yyl4537 != len(yyv4537) {
|
|
yyv4537 = yyv4537[:yyl4537]
|
|
yyc4537 = true
|
|
}
|
|
yyj4537 := 0
|
|
for ; yyj4537 < yyrr4537; yyj4537++ {
|
|
yyh4537.ElemContainerState(yyj4537)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4537[yyj4537] = WeightedPodAffinityTerm{}
|
|
} else {
|
|
yyv4538 := &yyv4537[yyj4537]
|
|
yyv4538.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4537 {
|
|
for ; yyj4537 < yyl4537; yyj4537++ {
|
|
yyv4537 = append(yyv4537, WeightedPodAffinityTerm{})
|
|
yyh4537.ElemContainerState(yyj4537)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4537[yyj4537] = WeightedPodAffinityTerm{}
|
|
} else {
|
|
yyv4539 := &yyv4537[yyj4537]
|
|
yyv4539.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4537 := 0
|
|
for ; !r.CheckBreak(); yyj4537++ {
|
|
|
|
if yyj4537 >= len(yyv4537) {
|
|
yyv4537 = append(yyv4537, WeightedPodAffinityTerm{}) // var yyz4537 WeightedPodAffinityTerm
|
|
yyc4537 = true
|
|
}
|
|
yyh4537.ElemContainerState(yyj4537)
|
|
if yyj4537 < len(yyv4537) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4537[yyj4537] = WeightedPodAffinityTerm{}
|
|
} else {
|
|
yyv4540 := &yyv4537[yyj4537]
|
|
yyv4540.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4537 < len(yyv4537) {
|
|
yyv4537 = yyv4537[:yyj4537]
|
|
yyc4537 = true
|
|
} else if yyj4537 == 0 && yyv4537 == nil {
|
|
yyv4537 = []WeightedPodAffinityTerm{}
|
|
yyc4537 = true
|
|
}
|
|
}
|
|
yyh4537.End()
|
|
if yyc4537 {
|
|
*v = yyv4537
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSlicePreferredSchedulingTerm(v []PreferredSchedulingTerm, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv4541 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4542 := &yyv4541
|
|
yy4542.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSlicePreferredSchedulingTerm(v *[]PreferredSchedulingTerm, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv4543 := *v
|
|
yyh4543, yyl4543 := z.DecSliceHelperStart()
|
|
var yyc4543 bool
|
|
if yyl4543 == 0 {
|
|
if yyv4543 == nil {
|
|
yyv4543 = []PreferredSchedulingTerm{}
|
|
yyc4543 = true
|
|
} else if len(yyv4543) != 0 {
|
|
yyv4543 = yyv4543[:0]
|
|
yyc4543 = true
|
|
}
|
|
} else if yyl4543 > 0 {
|
|
var yyrr4543, yyrl4543 int
|
|
var yyrt4543 bool
|
|
if yyl4543 > cap(yyv4543) {
|
|
|
|
yyrg4543 := len(yyv4543) > 0
|
|
yyv24543 := yyv4543
|
|
yyrl4543, yyrt4543 = z.DecInferLen(yyl4543, z.DecBasicHandle().MaxInitLen, 32)
|
|
if yyrt4543 {
|
|
if yyrl4543 <= cap(yyv4543) {
|
|
yyv4543 = yyv4543[:yyrl4543]
|
|
} else {
|
|
yyv4543 = make([]PreferredSchedulingTerm, yyrl4543)
|
|
}
|
|
} else {
|
|
yyv4543 = make([]PreferredSchedulingTerm, yyrl4543)
|
|
}
|
|
yyc4543 = true
|
|
yyrr4543 = len(yyv4543)
|
|
if yyrg4543 {
|
|
copy(yyv4543, yyv24543)
|
|
}
|
|
} else if yyl4543 != len(yyv4543) {
|
|
yyv4543 = yyv4543[:yyl4543]
|
|
yyc4543 = true
|
|
}
|
|
yyj4543 := 0
|
|
for ; yyj4543 < yyrr4543; yyj4543++ {
|
|
yyh4543.ElemContainerState(yyj4543)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4543[yyj4543] = PreferredSchedulingTerm{}
|
|
} else {
|
|
yyv4544 := &yyv4543[yyj4543]
|
|
yyv4544.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4543 {
|
|
for ; yyj4543 < yyl4543; yyj4543++ {
|
|
yyv4543 = append(yyv4543, PreferredSchedulingTerm{})
|
|
yyh4543.ElemContainerState(yyj4543)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4543[yyj4543] = PreferredSchedulingTerm{}
|
|
} else {
|
|
yyv4545 := &yyv4543[yyj4543]
|
|
yyv4545.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4543 := 0
|
|
for ; !r.CheckBreak(); yyj4543++ {
|
|
|
|
if yyj4543 >= len(yyv4543) {
|
|
yyv4543 = append(yyv4543, PreferredSchedulingTerm{}) // var yyz4543 PreferredSchedulingTerm
|
|
yyc4543 = true
|
|
}
|
|
yyh4543.ElemContainerState(yyj4543)
|
|
if yyj4543 < len(yyv4543) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4543[yyj4543] = PreferredSchedulingTerm{}
|
|
} else {
|
|
yyv4546 := &yyv4543[yyj4543]
|
|
yyv4546.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4543 < len(yyv4543) {
|
|
yyv4543 = yyv4543[:yyj4543]
|
|
yyc4543 = true
|
|
} else if yyj4543 == 0 && yyv4543 == nil {
|
|
yyv4543 = []PreferredSchedulingTerm{}
|
|
yyc4543 = true
|
|
}
|
|
}
|
|
yyh4543.End()
|
|
if yyc4543 {
|
|
*v = yyv4543
|
|
}
|
|
}
|
|
|
|
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 _, yyv4547 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4548 := &yyv4547
|
|
yy4548.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
|
|
|
|
yyv4549 := *v
|
|
yyh4549, yyl4549 := z.DecSliceHelperStart()
|
|
var yyc4549 bool
|
|
if yyl4549 == 0 {
|
|
if yyv4549 == nil {
|
|
yyv4549 = []Volume{}
|
|
yyc4549 = true
|
|
} else if len(yyv4549) != 0 {
|
|
yyv4549 = yyv4549[:0]
|
|
yyc4549 = true
|
|
}
|
|
} else if yyl4549 > 0 {
|
|
var yyrr4549, yyrl4549 int
|
|
var yyrt4549 bool
|
|
if yyl4549 > cap(yyv4549) {
|
|
|
|
yyrg4549 := len(yyv4549) > 0
|
|
yyv24549 := yyv4549
|
|
yyrl4549, yyrt4549 = z.DecInferLen(yyl4549, z.DecBasicHandle().MaxInitLen, 184)
|
|
if yyrt4549 {
|
|
if yyrl4549 <= cap(yyv4549) {
|
|
yyv4549 = yyv4549[:yyrl4549]
|
|
} else {
|
|
yyv4549 = make([]Volume, yyrl4549)
|
|
}
|
|
} else {
|
|
yyv4549 = make([]Volume, yyrl4549)
|
|
}
|
|
yyc4549 = true
|
|
yyrr4549 = len(yyv4549)
|
|
if yyrg4549 {
|
|
copy(yyv4549, yyv24549)
|
|
}
|
|
} else if yyl4549 != len(yyv4549) {
|
|
yyv4549 = yyv4549[:yyl4549]
|
|
yyc4549 = true
|
|
}
|
|
yyj4549 := 0
|
|
for ; yyj4549 < yyrr4549; yyj4549++ {
|
|
yyh4549.ElemContainerState(yyj4549)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4549[yyj4549] = Volume{}
|
|
} else {
|
|
yyv4550 := &yyv4549[yyj4549]
|
|
yyv4550.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4549 {
|
|
for ; yyj4549 < yyl4549; yyj4549++ {
|
|
yyv4549 = append(yyv4549, Volume{})
|
|
yyh4549.ElemContainerState(yyj4549)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4549[yyj4549] = Volume{}
|
|
} else {
|
|
yyv4551 := &yyv4549[yyj4549]
|
|
yyv4551.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4549 := 0
|
|
for ; !r.CheckBreak(); yyj4549++ {
|
|
|
|
if yyj4549 >= len(yyv4549) {
|
|
yyv4549 = append(yyv4549, Volume{}) // var yyz4549 Volume
|
|
yyc4549 = true
|
|
}
|
|
yyh4549.ElemContainerState(yyj4549)
|
|
if yyj4549 < len(yyv4549) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4549[yyj4549] = Volume{}
|
|
} else {
|
|
yyv4552 := &yyv4549[yyj4549]
|
|
yyv4552.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4549 < len(yyv4549) {
|
|
yyv4549 = yyv4549[:yyj4549]
|
|
yyc4549 = true
|
|
} else if yyj4549 == 0 && yyv4549 == nil {
|
|
yyv4549 = []Volume{}
|
|
yyc4549 = true
|
|
}
|
|
}
|
|
yyh4549.End()
|
|
if yyc4549 {
|
|
*v = yyv4549
|
|
}
|
|
}
|
|
|
|
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 _, yyv4553 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4554 := &yyv4553
|
|
yy4554.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
|
|
|
|
yyv4555 := *v
|
|
yyh4555, yyl4555 := z.DecSliceHelperStart()
|
|
var yyc4555 bool
|
|
if yyl4555 == 0 {
|
|
if yyv4555 == nil {
|
|
yyv4555 = []Container{}
|
|
yyc4555 = true
|
|
} else if len(yyv4555) != 0 {
|
|
yyv4555 = yyv4555[:0]
|
|
yyc4555 = true
|
|
}
|
|
} else if yyl4555 > 0 {
|
|
var yyrr4555, yyrl4555 int
|
|
var yyrt4555 bool
|
|
if yyl4555 > cap(yyv4555) {
|
|
|
|
yyrg4555 := len(yyv4555) > 0
|
|
yyv24555 := yyv4555
|
|
yyrl4555, yyrt4555 = z.DecInferLen(yyl4555, z.DecBasicHandle().MaxInitLen, 256)
|
|
if yyrt4555 {
|
|
if yyrl4555 <= cap(yyv4555) {
|
|
yyv4555 = yyv4555[:yyrl4555]
|
|
} else {
|
|
yyv4555 = make([]Container, yyrl4555)
|
|
}
|
|
} else {
|
|
yyv4555 = make([]Container, yyrl4555)
|
|
}
|
|
yyc4555 = true
|
|
yyrr4555 = len(yyv4555)
|
|
if yyrg4555 {
|
|
copy(yyv4555, yyv24555)
|
|
}
|
|
} else if yyl4555 != len(yyv4555) {
|
|
yyv4555 = yyv4555[:yyl4555]
|
|
yyc4555 = true
|
|
}
|
|
yyj4555 := 0
|
|
for ; yyj4555 < yyrr4555; yyj4555++ {
|
|
yyh4555.ElemContainerState(yyj4555)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4555[yyj4555] = Container{}
|
|
} else {
|
|
yyv4556 := &yyv4555[yyj4555]
|
|
yyv4556.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4555 {
|
|
for ; yyj4555 < yyl4555; yyj4555++ {
|
|
yyv4555 = append(yyv4555, Container{})
|
|
yyh4555.ElemContainerState(yyj4555)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4555[yyj4555] = Container{}
|
|
} else {
|
|
yyv4557 := &yyv4555[yyj4555]
|
|
yyv4557.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4555 := 0
|
|
for ; !r.CheckBreak(); yyj4555++ {
|
|
|
|
if yyj4555 >= len(yyv4555) {
|
|
yyv4555 = append(yyv4555, Container{}) // var yyz4555 Container
|
|
yyc4555 = true
|
|
}
|
|
yyh4555.ElemContainerState(yyj4555)
|
|
if yyj4555 < len(yyv4555) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4555[yyj4555] = Container{}
|
|
} else {
|
|
yyv4558 := &yyv4555[yyj4555]
|
|
yyv4558.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4555 < len(yyv4555) {
|
|
yyv4555 = yyv4555[:yyj4555]
|
|
yyc4555 = true
|
|
} else if yyj4555 == 0 && yyv4555 == nil {
|
|
yyv4555 = []Container{}
|
|
yyc4555 = true
|
|
}
|
|
}
|
|
yyh4555.End()
|
|
if yyc4555 {
|
|
*v = yyv4555
|
|
}
|
|
}
|
|
|
|
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 _, yyv4559 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4560 := &yyv4559
|
|
yy4560.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
|
|
|
|
yyv4561 := *v
|
|
yyh4561, yyl4561 := z.DecSliceHelperStart()
|
|
var yyc4561 bool
|
|
if yyl4561 == 0 {
|
|
if yyv4561 == nil {
|
|
yyv4561 = []LocalObjectReference{}
|
|
yyc4561 = true
|
|
} else if len(yyv4561) != 0 {
|
|
yyv4561 = yyv4561[:0]
|
|
yyc4561 = true
|
|
}
|
|
} else if yyl4561 > 0 {
|
|
var yyrr4561, yyrl4561 int
|
|
var yyrt4561 bool
|
|
if yyl4561 > cap(yyv4561) {
|
|
|
|
yyrg4561 := len(yyv4561) > 0
|
|
yyv24561 := yyv4561
|
|
yyrl4561, yyrt4561 = z.DecInferLen(yyl4561, z.DecBasicHandle().MaxInitLen, 16)
|
|
if yyrt4561 {
|
|
if yyrl4561 <= cap(yyv4561) {
|
|
yyv4561 = yyv4561[:yyrl4561]
|
|
} else {
|
|
yyv4561 = make([]LocalObjectReference, yyrl4561)
|
|
}
|
|
} else {
|
|
yyv4561 = make([]LocalObjectReference, yyrl4561)
|
|
}
|
|
yyc4561 = true
|
|
yyrr4561 = len(yyv4561)
|
|
if yyrg4561 {
|
|
copy(yyv4561, yyv24561)
|
|
}
|
|
} else if yyl4561 != len(yyv4561) {
|
|
yyv4561 = yyv4561[:yyl4561]
|
|
yyc4561 = true
|
|
}
|
|
yyj4561 := 0
|
|
for ; yyj4561 < yyrr4561; yyj4561++ {
|
|
yyh4561.ElemContainerState(yyj4561)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4561[yyj4561] = LocalObjectReference{}
|
|
} else {
|
|
yyv4562 := &yyv4561[yyj4561]
|
|
yyv4562.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4561 {
|
|
for ; yyj4561 < yyl4561; yyj4561++ {
|
|
yyv4561 = append(yyv4561, LocalObjectReference{})
|
|
yyh4561.ElemContainerState(yyj4561)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4561[yyj4561] = LocalObjectReference{}
|
|
} else {
|
|
yyv4563 := &yyv4561[yyj4561]
|
|
yyv4563.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4561 := 0
|
|
for ; !r.CheckBreak(); yyj4561++ {
|
|
|
|
if yyj4561 >= len(yyv4561) {
|
|
yyv4561 = append(yyv4561, LocalObjectReference{}) // var yyz4561 LocalObjectReference
|
|
yyc4561 = true
|
|
}
|
|
yyh4561.ElemContainerState(yyj4561)
|
|
if yyj4561 < len(yyv4561) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4561[yyj4561] = LocalObjectReference{}
|
|
} else {
|
|
yyv4564 := &yyv4561[yyj4561]
|
|
yyv4564.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4561 < len(yyv4561) {
|
|
yyv4561 = yyv4561[:yyj4561]
|
|
yyc4561 = true
|
|
} else if yyj4561 == 0 && yyv4561 == nil {
|
|
yyv4561 = []LocalObjectReference{}
|
|
yyc4561 = true
|
|
}
|
|
}
|
|
yyh4561.End()
|
|
if yyc4561 {
|
|
*v = yyv4561
|
|
}
|
|
}
|
|
|
|
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 _, yyv4565 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4566 := &yyv4565
|
|
yy4566.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
|
|
|
|
yyv4567 := *v
|
|
yyh4567, yyl4567 := z.DecSliceHelperStart()
|
|
var yyc4567 bool
|
|
if yyl4567 == 0 {
|
|
if yyv4567 == nil {
|
|
yyv4567 = []PodCondition{}
|
|
yyc4567 = true
|
|
} else if len(yyv4567) != 0 {
|
|
yyv4567 = yyv4567[:0]
|
|
yyc4567 = true
|
|
}
|
|
} else if yyl4567 > 0 {
|
|
var yyrr4567, yyrl4567 int
|
|
var yyrt4567 bool
|
|
if yyl4567 > cap(yyv4567) {
|
|
|
|
yyrg4567 := len(yyv4567) > 0
|
|
yyv24567 := yyv4567
|
|
yyrl4567, yyrt4567 = z.DecInferLen(yyl4567, z.DecBasicHandle().MaxInitLen, 112)
|
|
if yyrt4567 {
|
|
if yyrl4567 <= cap(yyv4567) {
|
|
yyv4567 = yyv4567[:yyrl4567]
|
|
} else {
|
|
yyv4567 = make([]PodCondition, yyrl4567)
|
|
}
|
|
} else {
|
|
yyv4567 = make([]PodCondition, yyrl4567)
|
|
}
|
|
yyc4567 = true
|
|
yyrr4567 = len(yyv4567)
|
|
if yyrg4567 {
|
|
copy(yyv4567, yyv24567)
|
|
}
|
|
} else if yyl4567 != len(yyv4567) {
|
|
yyv4567 = yyv4567[:yyl4567]
|
|
yyc4567 = true
|
|
}
|
|
yyj4567 := 0
|
|
for ; yyj4567 < yyrr4567; yyj4567++ {
|
|
yyh4567.ElemContainerState(yyj4567)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4567[yyj4567] = PodCondition{}
|
|
} else {
|
|
yyv4568 := &yyv4567[yyj4567]
|
|
yyv4568.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4567 {
|
|
for ; yyj4567 < yyl4567; yyj4567++ {
|
|
yyv4567 = append(yyv4567, PodCondition{})
|
|
yyh4567.ElemContainerState(yyj4567)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4567[yyj4567] = PodCondition{}
|
|
} else {
|
|
yyv4569 := &yyv4567[yyj4567]
|
|
yyv4569.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4567 := 0
|
|
for ; !r.CheckBreak(); yyj4567++ {
|
|
|
|
if yyj4567 >= len(yyv4567) {
|
|
yyv4567 = append(yyv4567, PodCondition{}) // var yyz4567 PodCondition
|
|
yyc4567 = true
|
|
}
|
|
yyh4567.ElemContainerState(yyj4567)
|
|
if yyj4567 < len(yyv4567) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4567[yyj4567] = PodCondition{}
|
|
} else {
|
|
yyv4570 := &yyv4567[yyj4567]
|
|
yyv4570.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4567 < len(yyv4567) {
|
|
yyv4567 = yyv4567[:yyj4567]
|
|
yyc4567 = true
|
|
} else if yyj4567 == 0 && yyv4567 == nil {
|
|
yyv4567 = []PodCondition{}
|
|
yyc4567 = true
|
|
}
|
|
}
|
|
yyh4567.End()
|
|
if yyc4567 {
|
|
*v = yyv4567
|
|
}
|
|
}
|
|
|
|
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 _, yyv4571 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4572 := &yyv4571
|
|
yy4572.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
|
|
|
|
yyv4573 := *v
|
|
yyh4573, yyl4573 := z.DecSliceHelperStart()
|
|
var yyc4573 bool
|
|
if yyl4573 == 0 {
|
|
if yyv4573 == nil {
|
|
yyv4573 = []ContainerStatus{}
|
|
yyc4573 = true
|
|
} else if len(yyv4573) != 0 {
|
|
yyv4573 = yyv4573[:0]
|
|
yyc4573 = true
|
|
}
|
|
} else if yyl4573 > 0 {
|
|
var yyrr4573, yyrl4573 int
|
|
var yyrt4573 bool
|
|
if yyl4573 > cap(yyv4573) {
|
|
|
|
yyrg4573 := len(yyv4573) > 0
|
|
yyv24573 := yyv4573
|
|
yyrl4573, yyrt4573 = z.DecInferLen(yyl4573, z.DecBasicHandle().MaxInitLen, 120)
|
|
if yyrt4573 {
|
|
if yyrl4573 <= cap(yyv4573) {
|
|
yyv4573 = yyv4573[:yyrl4573]
|
|
} else {
|
|
yyv4573 = make([]ContainerStatus, yyrl4573)
|
|
}
|
|
} else {
|
|
yyv4573 = make([]ContainerStatus, yyrl4573)
|
|
}
|
|
yyc4573 = true
|
|
yyrr4573 = len(yyv4573)
|
|
if yyrg4573 {
|
|
copy(yyv4573, yyv24573)
|
|
}
|
|
} else if yyl4573 != len(yyv4573) {
|
|
yyv4573 = yyv4573[:yyl4573]
|
|
yyc4573 = true
|
|
}
|
|
yyj4573 := 0
|
|
for ; yyj4573 < yyrr4573; yyj4573++ {
|
|
yyh4573.ElemContainerState(yyj4573)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4573[yyj4573] = ContainerStatus{}
|
|
} else {
|
|
yyv4574 := &yyv4573[yyj4573]
|
|
yyv4574.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4573 {
|
|
for ; yyj4573 < yyl4573; yyj4573++ {
|
|
yyv4573 = append(yyv4573, ContainerStatus{})
|
|
yyh4573.ElemContainerState(yyj4573)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4573[yyj4573] = ContainerStatus{}
|
|
} else {
|
|
yyv4575 := &yyv4573[yyj4573]
|
|
yyv4575.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4573 := 0
|
|
for ; !r.CheckBreak(); yyj4573++ {
|
|
|
|
if yyj4573 >= len(yyv4573) {
|
|
yyv4573 = append(yyv4573, ContainerStatus{}) // var yyz4573 ContainerStatus
|
|
yyc4573 = true
|
|
}
|
|
yyh4573.ElemContainerState(yyj4573)
|
|
if yyj4573 < len(yyv4573) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4573[yyj4573] = ContainerStatus{}
|
|
} else {
|
|
yyv4576 := &yyv4573[yyj4573]
|
|
yyv4576.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4573 < len(yyv4573) {
|
|
yyv4573 = yyv4573[:yyj4573]
|
|
yyc4573 = true
|
|
} else if yyj4573 == 0 && yyv4573 == nil {
|
|
yyv4573 = []ContainerStatus{}
|
|
yyc4573 = true
|
|
}
|
|
}
|
|
yyh4573.End()
|
|
if yyc4573 {
|
|
*v = yyv4573
|
|
}
|
|
}
|
|
|
|
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 _, yyv4577 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4578 := &yyv4577
|
|
yy4578.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
|
|
|
|
yyv4579 := *v
|
|
yyh4579, yyl4579 := z.DecSliceHelperStart()
|
|
var yyc4579 bool
|
|
if yyl4579 == 0 {
|
|
if yyv4579 == nil {
|
|
yyv4579 = []PodTemplate{}
|
|
yyc4579 = true
|
|
} else if len(yyv4579) != 0 {
|
|
yyv4579 = yyv4579[:0]
|
|
yyc4579 = true
|
|
}
|
|
} else if yyl4579 > 0 {
|
|
var yyrr4579, yyrl4579 int
|
|
var yyrt4579 bool
|
|
if yyl4579 > cap(yyv4579) {
|
|
|
|
yyrg4579 := len(yyv4579) > 0
|
|
yyv24579 := yyv4579
|
|
yyrl4579, yyrt4579 = z.DecInferLen(yyl4579, z.DecBasicHandle().MaxInitLen, 672)
|
|
if yyrt4579 {
|
|
if yyrl4579 <= cap(yyv4579) {
|
|
yyv4579 = yyv4579[:yyrl4579]
|
|
} else {
|
|
yyv4579 = make([]PodTemplate, yyrl4579)
|
|
}
|
|
} else {
|
|
yyv4579 = make([]PodTemplate, yyrl4579)
|
|
}
|
|
yyc4579 = true
|
|
yyrr4579 = len(yyv4579)
|
|
if yyrg4579 {
|
|
copy(yyv4579, yyv24579)
|
|
}
|
|
} else if yyl4579 != len(yyv4579) {
|
|
yyv4579 = yyv4579[:yyl4579]
|
|
yyc4579 = true
|
|
}
|
|
yyj4579 := 0
|
|
for ; yyj4579 < yyrr4579; yyj4579++ {
|
|
yyh4579.ElemContainerState(yyj4579)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4579[yyj4579] = PodTemplate{}
|
|
} else {
|
|
yyv4580 := &yyv4579[yyj4579]
|
|
yyv4580.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4579 {
|
|
for ; yyj4579 < yyl4579; yyj4579++ {
|
|
yyv4579 = append(yyv4579, PodTemplate{})
|
|
yyh4579.ElemContainerState(yyj4579)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4579[yyj4579] = PodTemplate{}
|
|
} else {
|
|
yyv4581 := &yyv4579[yyj4579]
|
|
yyv4581.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4579 := 0
|
|
for ; !r.CheckBreak(); yyj4579++ {
|
|
|
|
if yyj4579 >= len(yyv4579) {
|
|
yyv4579 = append(yyv4579, PodTemplate{}) // var yyz4579 PodTemplate
|
|
yyc4579 = true
|
|
}
|
|
yyh4579.ElemContainerState(yyj4579)
|
|
if yyj4579 < len(yyv4579) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4579[yyj4579] = PodTemplate{}
|
|
} else {
|
|
yyv4582 := &yyv4579[yyj4579]
|
|
yyv4582.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4579 < len(yyv4579) {
|
|
yyv4579 = yyv4579[:yyj4579]
|
|
yyc4579 = true
|
|
} else if yyj4579 == 0 && yyv4579 == nil {
|
|
yyv4579 = []PodTemplate{}
|
|
yyc4579 = true
|
|
}
|
|
}
|
|
yyh4579.End()
|
|
if yyc4579 {
|
|
*v = yyv4579
|
|
}
|
|
}
|
|
|
|
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 _, yyv4583 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4584 := &yyv4583
|
|
yy4584.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
|
|
|
|
yyv4585 := *v
|
|
yyh4585, yyl4585 := z.DecSliceHelperStart()
|
|
var yyc4585 bool
|
|
if yyl4585 == 0 {
|
|
if yyv4585 == nil {
|
|
yyv4585 = []ReplicationController{}
|
|
yyc4585 = true
|
|
} else if len(yyv4585) != 0 {
|
|
yyv4585 = yyv4585[:0]
|
|
yyc4585 = true
|
|
}
|
|
} else if yyl4585 > 0 {
|
|
var yyrr4585, yyrl4585 int
|
|
var yyrt4585 bool
|
|
if yyl4585 > cap(yyv4585) {
|
|
|
|
yyrg4585 := len(yyv4585) > 0
|
|
yyv24585 := yyv4585
|
|
yyrl4585, yyrt4585 = z.DecInferLen(yyl4585, z.DecBasicHandle().MaxInitLen, 280)
|
|
if yyrt4585 {
|
|
if yyrl4585 <= cap(yyv4585) {
|
|
yyv4585 = yyv4585[:yyrl4585]
|
|
} else {
|
|
yyv4585 = make([]ReplicationController, yyrl4585)
|
|
}
|
|
} else {
|
|
yyv4585 = make([]ReplicationController, yyrl4585)
|
|
}
|
|
yyc4585 = true
|
|
yyrr4585 = len(yyv4585)
|
|
if yyrg4585 {
|
|
copy(yyv4585, yyv24585)
|
|
}
|
|
} else if yyl4585 != len(yyv4585) {
|
|
yyv4585 = yyv4585[:yyl4585]
|
|
yyc4585 = true
|
|
}
|
|
yyj4585 := 0
|
|
for ; yyj4585 < yyrr4585; yyj4585++ {
|
|
yyh4585.ElemContainerState(yyj4585)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4585[yyj4585] = ReplicationController{}
|
|
} else {
|
|
yyv4586 := &yyv4585[yyj4585]
|
|
yyv4586.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4585 {
|
|
for ; yyj4585 < yyl4585; yyj4585++ {
|
|
yyv4585 = append(yyv4585, ReplicationController{})
|
|
yyh4585.ElemContainerState(yyj4585)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4585[yyj4585] = ReplicationController{}
|
|
} else {
|
|
yyv4587 := &yyv4585[yyj4585]
|
|
yyv4587.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4585 := 0
|
|
for ; !r.CheckBreak(); yyj4585++ {
|
|
|
|
if yyj4585 >= len(yyv4585) {
|
|
yyv4585 = append(yyv4585, ReplicationController{}) // var yyz4585 ReplicationController
|
|
yyc4585 = true
|
|
}
|
|
yyh4585.ElemContainerState(yyj4585)
|
|
if yyj4585 < len(yyv4585) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4585[yyj4585] = ReplicationController{}
|
|
} else {
|
|
yyv4588 := &yyv4585[yyj4585]
|
|
yyv4588.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4585 < len(yyv4585) {
|
|
yyv4585 = yyv4585[:yyj4585]
|
|
yyc4585 = true
|
|
} else if yyj4585 == 0 && yyv4585 == nil {
|
|
yyv4585 = []ReplicationController{}
|
|
yyc4585 = true
|
|
}
|
|
}
|
|
yyh4585.End()
|
|
if yyc4585 {
|
|
*v = yyv4585
|
|
}
|
|
}
|
|
|
|
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 _, yyv4589 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4590 := &yyv4589
|
|
yy4590.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
|
|
|
|
yyv4591 := *v
|
|
yyh4591, yyl4591 := z.DecSliceHelperStart()
|
|
var yyc4591 bool
|
|
if yyl4591 == 0 {
|
|
if yyv4591 == nil {
|
|
yyv4591 = []Service{}
|
|
yyc4591 = true
|
|
} else if len(yyv4591) != 0 {
|
|
yyv4591 = yyv4591[:0]
|
|
yyc4591 = true
|
|
}
|
|
} else if yyl4591 > 0 {
|
|
var yyrr4591, yyrl4591 int
|
|
var yyrt4591 bool
|
|
if yyl4591 > cap(yyv4591) {
|
|
|
|
yyrg4591 := len(yyv4591) > 0
|
|
yyv24591 := yyv4591
|
|
yyrl4591, yyrt4591 = z.DecInferLen(yyl4591, z.DecBasicHandle().MaxInitLen, 424)
|
|
if yyrt4591 {
|
|
if yyrl4591 <= cap(yyv4591) {
|
|
yyv4591 = yyv4591[:yyrl4591]
|
|
} else {
|
|
yyv4591 = make([]Service, yyrl4591)
|
|
}
|
|
} else {
|
|
yyv4591 = make([]Service, yyrl4591)
|
|
}
|
|
yyc4591 = true
|
|
yyrr4591 = len(yyv4591)
|
|
if yyrg4591 {
|
|
copy(yyv4591, yyv24591)
|
|
}
|
|
} else if yyl4591 != len(yyv4591) {
|
|
yyv4591 = yyv4591[:yyl4591]
|
|
yyc4591 = true
|
|
}
|
|
yyj4591 := 0
|
|
for ; yyj4591 < yyrr4591; yyj4591++ {
|
|
yyh4591.ElemContainerState(yyj4591)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4591[yyj4591] = Service{}
|
|
} else {
|
|
yyv4592 := &yyv4591[yyj4591]
|
|
yyv4592.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4591 {
|
|
for ; yyj4591 < yyl4591; yyj4591++ {
|
|
yyv4591 = append(yyv4591, Service{})
|
|
yyh4591.ElemContainerState(yyj4591)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4591[yyj4591] = Service{}
|
|
} else {
|
|
yyv4593 := &yyv4591[yyj4591]
|
|
yyv4593.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4591 := 0
|
|
for ; !r.CheckBreak(); yyj4591++ {
|
|
|
|
if yyj4591 >= len(yyv4591) {
|
|
yyv4591 = append(yyv4591, Service{}) // var yyz4591 Service
|
|
yyc4591 = true
|
|
}
|
|
yyh4591.ElemContainerState(yyj4591)
|
|
if yyj4591 < len(yyv4591) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4591[yyj4591] = Service{}
|
|
} else {
|
|
yyv4594 := &yyv4591[yyj4591]
|
|
yyv4594.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4591 < len(yyv4591) {
|
|
yyv4591 = yyv4591[:yyj4591]
|
|
yyc4591 = true
|
|
} else if yyj4591 == 0 && yyv4591 == nil {
|
|
yyv4591 = []Service{}
|
|
yyc4591 = true
|
|
}
|
|
}
|
|
yyh4591.End()
|
|
if yyc4591 {
|
|
*v = yyv4591
|
|
}
|
|
}
|
|
|
|
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 _, yyv4595 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4596 := &yyv4595
|
|
yy4596.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
|
|
|
|
yyv4597 := *v
|
|
yyh4597, yyl4597 := z.DecSliceHelperStart()
|
|
var yyc4597 bool
|
|
if yyl4597 == 0 {
|
|
if yyv4597 == nil {
|
|
yyv4597 = []LoadBalancerIngress{}
|
|
yyc4597 = true
|
|
} else if len(yyv4597) != 0 {
|
|
yyv4597 = yyv4597[:0]
|
|
yyc4597 = true
|
|
}
|
|
} else if yyl4597 > 0 {
|
|
var yyrr4597, yyrl4597 int
|
|
var yyrt4597 bool
|
|
if yyl4597 > cap(yyv4597) {
|
|
|
|
yyrg4597 := len(yyv4597) > 0
|
|
yyv24597 := yyv4597
|
|
yyrl4597, yyrt4597 = z.DecInferLen(yyl4597, z.DecBasicHandle().MaxInitLen, 32)
|
|
if yyrt4597 {
|
|
if yyrl4597 <= cap(yyv4597) {
|
|
yyv4597 = yyv4597[:yyrl4597]
|
|
} else {
|
|
yyv4597 = make([]LoadBalancerIngress, yyrl4597)
|
|
}
|
|
} else {
|
|
yyv4597 = make([]LoadBalancerIngress, yyrl4597)
|
|
}
|
|
yyc4597 = true
|
|
yyrr4597 = len(yyv4597)
|
|
if yyrg4597 {
|
|
copy(yyv4597, yyv24597)
|
|
}
|
|
} else if yyl4597 != len(yyv4597) {
|
|
yyv4597 = yyv4597[:yyl4597]
|
|
yyc4597 = true
|
|
}
|
|
yyj4597 := 0
|
|
for ; yyj4597 < yyrr4597; yyj4597++ {
|
|
yyh4597.ElemContainerState(yyj4597)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4597[yyj4597] = LoadBalancerIngress{}
|
|
} else {
|
|
yyv4598 := &yyv4597[yyj4597]
|
|
yyv4598.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4597 {
|
|
for ; yyj4597 < yyl4597; yyj4597++ {
|
|
yyv4597 = append(yyv4597, LoadBalancerIngress{})
|
|
yyh4597.ElemContainerState(yyj4597)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4597[yyj4597] = LoadBalancerIngress{}
|
|
} else {
|
|
yyv4599 := &yyv4597[yyj4597]
|
|
yyv4599.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4597 := 0
|
|
for ; !r.CheckBreak(); yyj4597++ {
|
|
|
|
if yyj4597 >= len(yyv4597) {
|
|
yyv4597 = append(yyv4597, LoadBalancerIngress{}) // var yyz4597 LoadBalancerIngress
|
|
yyc4597 = true
|
|
}
|
|
yyh4597.ElemContainerState(yyj4597)
|
|
if yyj4597 < len(yyv4597) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4597[yyj4597] = LoadBalancerIngress{}
|
|
} else {
|
|
yyv4600 := &yyv4597[yyj4597]
|
|
yyv4600.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4597 < len(yyv4597) {
|
|
yyv4597 = yyv4597[:yyj4597]
|
|
yyc4597 = true
|
|
} else if yyj4597 == 0 && yyv4597 == nil {
|
|
yyv4597 = []LoadBalancerIngress{}
|
|
yyc4597 = true
|
|
}
|
|
}
|
|
yyh4597.End()
|
|
if yyc4597 {
|
|
*v = yyv4597
|
|
}
|
|
}
|
|
|
|
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 _, yyv4601 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4602 := &yyv4601
|
|
yy4602.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
|
|
|
|
yyv4603 := *v
|
|
yyh4603, yyl4603 := z.DecSliceHelperStart()
|
|
var yyc4603 bool
|
|
if yyl4603 == 0 {
|
|
if yyv4603 == nil {
|
|
yyv4603 = []ServicePort{}
|
|
yyc4603 = true
|
|
} else if len(yyv4603) != 0 {
|
|
yyv4603 = yyv4603[:0]
|
|
yyc4603 = true
|
|
}
|
|
} else if yyl4603 > 0 {
|
|
var yyrr4603, yyrl4603 int
|
|
var yyrt4603 bool
|
|
if yyl4603 > cap(yyv4603) {
|
|
|
|
yyrg4603 := len(yyv4603) > 0
|
|
yyv24603 := yyv4603
|
|
yyrl4603, yyrt4603 = z.DecInferLen(yyl4603, z.DecBasicHandle().MaxInitLen, 80)
|
|
if yyrt4603 {
|
|
if yyrl4603 <= cap(yyv4603) {
|
|
yyv4603 = yyv4603[:yyrl4603]
|
|
} else {
|
|
yyv4603 = make([]ServicePort, yyrl4603)
|
|
}
|
|
} else {
|
|
yyv4603 = make([]ServicePort, yyrl4603)
|
|
}
|
|
yyc4603 = true
|
|
yyrr4603 = len(yyv4603)
|
|
if yyrg4603 {
|
|
copy(yyv4603, yyv24603)
|
|
}
|
|
} else if yyl4603 != len(yyv4603) {
|
|
yyv4603 = yyv4603[:yyl4603]
|
|
yyc4603 = true
|
|
}
|
|
yyj4603 := 0
|
|
for ; yyj4603 < yyrr4603; yyj4603++ {
|
|
yyh4603.ElemContainerState(yyj4603)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4603[yyj4603] = ServicePort{}
|
|
} else {
|
|
yyv4604 := &yyv4603[yyj4603]
|
|
yyv4604.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4603 {
|
|
for ; yyj4603 < yyl4603; yyj4603++ {
|
|
yyv4603 = append(yyv4603, ServicePort{})
|
|
yyh4603.ElemContainerState(yyj4603)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4603[yyj4603] = ServicePort{}
|
|
} else {
|
|
yyv4605 := &yyv4603[yyj4603]
|
|
yyv4605.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4603 := 0
|
|
for ; !r.CheckBreak(); yyj4603++ {
|
|
|
|
if yyj4603 >= len(yyv4603) {
|
|
yyv4603 = append(yyv4603, ServicePort{}) // var yyz4603 ServicePort
|
|
yyc4603 = true
|
|
}
|
|
yyh4603.ElemContainerState(yyj4603)
|
|
if yyj4603 < len(yyv4603) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4603[yyj4603] = ServicePort{}
|
|
} else {
|
|
yyv4606 := &yyv4603[yyj4603]
|
|
yyv4606.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4603 < len(yyv4603) {
|
|
yyv4603 = yyv4603[:yyj4603]
|
|
yyc4603 = true
|
|
} else if yyj4603 == 0 && yyv4603 == nil {
|
|
yyv4603 = []ServicePort{}
|
|
yyc4603 = true
|
|
}
|
|
}
|
|
yyh4603.End()
|
|
if yyc4603 {
|
|
*v = yyv4603
|
|
}
|
|
}
|
|
|
|
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 _, yyv4607 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4608 := &yyv4607
|
|
yy4608.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
|
|
|
|
yyv4609 := *v
|
|
yyh4609, yyl4609 := z.DecSliceHelperStart()
|
|
var yyc4609 bool
|
|
if yyl4609 == 0 {
|
|
if yyv4609 == nil {
|
|
yyv4609 = []ObjectReference{}
|
|
yyc4609 = true
|
|
} else if len(yyv4609) != 0 {
|
|
yyv4609 = yyv4609[:0]
|
|
yyc4609 = true
|
|
}
|
|
} else if yyl4609 > 0 {
|
|
var yyrr4609, yyrl4609 int
|
|
var yyrt4609 bool
|
|
if yyl4609 > cap(yyv4609) {
|
|
|
|
yyrg4609 := len(yyv4609) > 0
|
|
yyv24609 := yyv4609
|
|
yyrl4609, yyrt4609 = z.DecInferLen(yyl4609, z.DecBasicHandle().MaxInitLen, 112)
|
|
if yyrt4609 {
|
|
if yyrl4609 <= cap(yyv4609) {
|
|
yyv4609 = yyv4609[:yyrl4609]
|
|
} else {
|
|
yyv4609 = make([]ObjectReference, yyrl4609)
|
|
}
|
|
} else {
|
|
yyv4609 = make([]ObjectReference, yyrl4609)
|
|
}
|
|
yyc4609 = true
|
|
yyrr4609 = len(yyv4609)
|
|
if yyrg4609 {
|
|
copy(yyv4609, yyv24609)
|
|
}
|
|
} else if yyl4609 != len(yyv4609) {
|
|
yyv4609 = yyv4609[:yyl4609]
|
|
yyc4609 = true
|
|
}
|
|
yyj4609 := 0
|
|
for ; yyj4609 < yyrr4609; yyj4609++ {
|
|
yyh4609.ElemContainerState(yyj4609)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4609[yyj4609] = ObjectReference{}
|
|
} else {
|
|
yyv4610 := &yyv4609[yyj4609]
|
|
yyv4610.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4609 {
|
|
for ; yyj4609 < yyl4609; yyj4609++ {
|
|
yyv4609 = append(yyv4609, ObjectReference{})
|
|
yyh4609.ElemContainerState(yyj4609)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4609[yyj4609] = ObjectReference{}
|
|
} else {
|
|
yyv4611 := &yyv4609[yyj4609]
|
|
yyv4611.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4609 := 0
|
|
for ; !r.CheckBreak(); yyj4609++ {
|
|
|
|
if yyj4609 >= len(yyv4609) {
|
|
yyv4609 = append(yyv4609, ObjectReference{}) // var yyz4609 ObjectReference
|
|
yyc4609 = true
|
|
}
|
|
yyh4609.ElemContainerState(yyj4609)
|
|
if yyj4609 < len(yyv4609) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4609[yyj4609] = ObjectReference{}
|
|
} else {
|
|
yyv4612 := &yyv4609[yyj4609]
|
|
yyv4612.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4609 < len(yyv4609) {
|
|
yyv4609 = yyv4609[:yyj4609]
|
|
yyc4609 = true
|
|
} else if yyj4609 == 0 && yyv4609 == nil {
|
|
yyv4609 = []ObjectReference{}
|
|
yyc4609 = true
|
|
}
|
|
}
|
|
yyh4609.End()
|
|
if yyc4609 {
|
|
*v = yyv4609
|
|
}
|
|
}
|
|
|
|
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 _, yyv4613 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4614 := &yyv4613
|
|
yy4614.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
|
|
|
|
yyv4615 := *v
|
|
yyh4615, yyl4615 := z.DecSliceHelperStart()
|
|
var yyc4615 bool
|
|
if yyl4615 == 0 {
|
|
if yyv4615 == nil {
|
|
yyv4615 = []ServiceAccount{}
|
|
yyc4615 = true
|
|
} else if len(yyv4615) != 0 {
|
|
yyv4615 = yyv4615[:0]
|
|
yyc4615 = true
|
|
}
|
|
} else if yyl4615 > 0 {
|
|
var yyrr4615, yyrl4615 int
|
|
var yyrt4615 bool
|
|
if yyl4615 > cap(yyv4615) {
|
|
|
|
yyrg4615 := len(yyv4615) > 0
|
|
yyv24615 := yyv4615
|
|
yyrl4615, yyrt4615 = z.DecInferLen(yyl4615, z.DecBasicHandle().MaxInitLen, 288)
|
|
if yyrt4615 {
|
|
if yyrl4615 <= cap(yyv4615) {
|
|
yyv4615 = yyv4615[:yyrl4615]
|
|
} else {
|
|
yyv4615 = make([]ServiceAccount, yyrl4615)
|
|
}
|
|
} else {
|
|
yyv4615 = make([]ServiceAccount, yyrl4615)
|
|
}
|
|
yyc4615 = true
|
|
yyrr4615 = len(yyv4615)
|
|
if yyrg4615 {
|
|
copy(yyv4615, yyv24615)
|
|
}
|
|
} else if yyl4615 != len(yyv4615) {
|
|
yyv4615 = yyv4615[:yyl4615]
|
|
yyc4615 = true
|
|
}
|
|
yyj4615 := 0
|
|
for ; yyj4615 < yyrr4615; yyj4615++ {
|
|
yyh4615.ElemContainerState(yyj4615)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4615[yyj4615] = ServiceAccount{}
|
|
} else {
|
|
yyv4616 := &yyv4615[yyj4615]
|
|
yyv4616.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4615 {
|
|
for ; yyj4615 < yyl4615; yyj4615++ {
|
|
yyv4615 = append(yyv4615, ServiceAccount{})
|
|
yyh4615.ElemContainerState(yyj4615)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4615[yyj4615] = ServiceAccount{}
|
|
} else {
|
|
yyv4617 := &yyv4615[yyj4615]
|
|
yyv4617.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4615 := 0
|
|
for ; !r.CheckBreak(); yyj4615++ {
|
|
|
|
if yyj4615 >= len(yyv4615) {
|
|
yyv4615 = append(yyv4615, ServiceAccount{}) // var yyz4615 ServiceAccount
|
|
yyc4615 = true
|
|
}
|
|
yyh4615.ElemContainerState(yyj4615)
|
|
if yyj4615 < len(yyv4615) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4615[yyj4615] = ServiceAccount{}
|
|
} else {
|
|
yyv4618 := &yyv4615[yyj4615]
|
|
yyv4618.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4615 < len(yyv4615) {
|
|
yyv4615 = yyv4615[:yyj4615]
|
|
yyc4615 = true
|
|
} else if yyj4615 == 0 && yyv4615 == nil {
|
|
yyv4615 = []ServiceAccount{}
|
|
yyc4615 = true
|
|
}
|
|
}
|
|
yyh4615.End()
|
|
if yyc4615 {
|
|
*v = yyv4615
|
|
}
|
|
}
|
|
|
|
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 _, yyv4619 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4620 := &yyv4619
|
|
yy4620.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
|
|
|
|
yyv4621 := *v
|
|
yyh4621, yyl4621 := z.DecSliceHelperStart()
|
|
var yyc4621 bool
|
|
if yyl4621 == 0 {
|
|
if yyv4621 == nil {
|
|
yyv4621 = []EndpointSubset{}
|
|
yyc4621 = true
|
|
} else if len(yyv4621) != 0 {
|
|
yyv4621 = yyv4621[:0]
|
|
yyc4621 = true
|
|
}
|
|
} else if yyl4621 > 0 {
|
|
var yyrr4621, yyrl4621 int
|
|
var yyrt4621 bool
|
|
if yyl4621 > cap(yyv4621) {
|
|
|
|
yyrg4621 := len(yyv4621) > 0
|
|
yyv24621 := yyv4621
|
|
yyrl4621, yyrt4621 = z.DecInferLen(yyl4621, z.DecBasicHandle().MaxInitLen, 72)
|
|
if yyrt4621 {
|
|
if yyrl4621 <= cap(yyv4621) {
|
|
yyv4621 = yyv4621[:yyrl4621]
|
|
} else {
|
|
yyv4621 = make([]EndpointSubset, yyrl4621)
|
|
}
|
|
} else {
|
|
yyv4621 = make([]EndpointSubset, yyrl4621)
|
|
}
|
|
yyc4621 = true
|
|
yyrr4621 = len(yyv4621)
|
|
if yyrg4621 {
|
|
copy(yyv4621, yyv24621)
|
|
}
|
|
} else if yyl4621 != len(yyv4621) {
|
|
yyv4621 = yyv4621[:yyl4621]
|
|
yyc4621 = true
|
|
}
|
|
yyj4621 := 0
|
|
for ; yyj4621 < yyrr4621; yyj4621++ {
|
|
yyh4621.ElemContainerState(yyj4621)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4621[yyj4621] = EndpointSubset{}
|
|
} else {
|
|
yyv4622 := &yyv4621[yyj4621]
|
|
yyv4622.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4621 {
|
|
for ; yyj4621 < yyl4621; yyj4621++ {
|
|
yyv4621 = append(yyv4621, EndpointSubset{})
|
|
yyh4621.ElemContainerState(yyj4621)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4621[yyj4621] = EndpointSubset{}
|
|
} else {
|
|
yyv4623 := &yyv4621[yyj4621]
|
|
yyv4623.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4621 := 0
|
|
for ; !r.CheckBreak(); yyj4621++ {
|
|
|
|
if yyj4621 >= len(yyv4621) {
|
|
yyv4621 = append(yyv4621, EndpointSubset{}) // var yyz4621 EndpointSubset
|
|
yyc4621 = true
|
|
}
|
|
yyh4621.ElemContainerState(yyj4621)
|
|
if yyj4621 < len(yyv4621) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4621[yyj4621] = EndpointSubset{}
|
|
} else {
|
|
yyv4624 := &yyv4621[yyj4621]
|
|
yyv4624.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4621 < len(yyv4621) {
|
|
yyv4621 = yyv4621[:yyj4621]
|
|
yyc4621 = true
|
|
} else if yyj4621 == 0 && yyv4621 == nil {
|
|
yyv4621 = []EndpointSubset{}
|
|
yyc4621 = true
|
|
}
|
|
}
|
|
yyh4621.End()
|
|
if yyc4621 {
|
|
*v = yyv4621
|
|
}
|
|
}
|
|
|
|
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 _, yyv4625 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4626 := &yyv4625
|
|
yy4626.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
|
|
|
|
yyv4627 := *v
|
|
yyh4627, yyl4627 := z.DecSliceHelperStart()
|
|
var yyc4627 bool
|
|
if yyl4627 == 0 {
|
|
if yyv4627 == nil {
|
|
yyv4627 = []EndpointAddress{}
|
|
yyc4627 = true
|
|
} else if len(yyv4627) != 0 {
|
|
yyv4627 = yyv4627[:0]
|
|
yyc4627 = true
|
|
}
|
|
} else if yyl4627 > 0 {
|
|
var yyrr4627, yyrl4627 int
|
|
var yyrt4627 bool
|
|
if yyl4627 > cap(yyv4627) {
|
|
|
|
yyrg4627 := len(yyv4627) > 0
|
|
yyv24627 := yyv4627
|
|
yyrl4627, yyrt4627 = z.DecInferLen(yyl4627, z.DecBasicHandle().MaxInitLen, 48)
|
|
if yyrt4627 {
|
|
if yyrl4627 <= cap(yyv4627) {
|
|
yyv4627 = yyv4627[:yyrl4627]
|
|
} else {
|
|
yyv4627 = make([]EndpointAddress, yyrl4627)
|
|
}
|
|
} else {
|
|
yyv4627 = make([]EndpointAddress, yyrl4627)
|
|
}
|
|
yyc4627 = true
|
|
yyrr4627 = len(yyv4627)
|
|
if yyrg4627 {
|
|
copy(yyv4627, yyv24627)
|
|
}
|
|
} else if yyl4627 != len(yyv4627) {
|
|
yyv4627 = yyv4627[:yyl4627]
|
|
yyc4627 = true
|
|
}
|
|
yyj4627 := 0
|
|
for ; yyj4627 < yyrr4627; yyj4627++ {
|
|
yyh4627.ElemContainerState(yyj4627)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4627[yyj4627] = EndpointAddress{}
|
|
} else {
|
|
yyv4628 := &yyv4627[yyj4627]
|
|
yyv4628.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4627 {
|
|
for ; yyj4627 < yyl4627; yyj4627++ {
|
|
yyv4627 = append(yyv4627, EndpointAddress{})
|
|
yyh4627.ElemContainerState(yyj4627)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4627[yyj4627] = EndpointAddress{}
|
|
} else {
|
|
yyv4629 := &yyv4627[yyj4627]
|
|
yyv4629.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4627 := 0
|
|
for ; !r.CheckBreak(); yyj4627++ {
|
|
|
|
if yyj4627 >= len(yyv4627) {
|
|
yyv4627 = append(yyv4627, EndpointAddress{}) // var yyz4627 EndpointAddress
|
|
yyc4627 = true
|
|
}
|
|
yyh4627.ElemContainerState(yyj4627)
|
|
if yyj4627 < len(yyv4627) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4627[yyj4627] = EndpointAddress{}
|
|
} else {
|
|
yyv4630 := &yyv4627[yyj4627]
|
|
yyv4630.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4627 < len(yyv4627) {
|
|
yyv4627 = yyv4627[:yyj4627]
|
|
yyc4627 = true
|
|
} else if yyj4627 == 0 && yyv4627 == nil {
|
|
yyv4627 = []EndpointAddress{}
|
|
yyc4627 = true
|
|
}
|
|
}
|
|
yyh4627.End()
|
|
if yyc4627 {
|
|
*v = yyv4627
|
|
}
|
|
}
|
|
|
|
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 _, yyv4631 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4632 := &yyv4631
|
|
yy4632.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
|
|
|
|
yyv4633 := *v
|
|
yyh4633, yyl4633 := z.DecSliceHelperStart()
|
|
var yyc4633 bool
|
|
if yyl4633 == 0 {
|
|
if yyv4633 == nil {
|
|
yyv4633 = []EndpointPort{}
|
|
yyc4633 = true
|
|
} else if len(yyv4633) != 0 {
|
|
yyv4633 = yyv4633[:0]
|
|
yyc4633 = true
|
|
}
|
|
} else if yyl4633 > 0 {
|
|
var yyrr4633, yyrl4633 int
|
|
var yyrt4633 bool
|
|
if yyl4633 > cap(yyv4633) {
|
|
|
|
yyrg4633 := len(yyv4633) > 0
|
|
yyv24633 := yyv4633
|
|
yyrl4633, yyrt4633 = z.DecInferLen(yyl4633, z.DecBasicHandle().MaxInitLen, 40)
|
|
if yyrt4633 {
|
|
if yyrl4633 <= cap(yyv4633) {
|
|
yyv4633 = yyv4633[:yyrl4633]
|
|
} else {
|
|
yyv4633 = make([]EndpointPort, yyrl4633)
|
|
}
|
|
} else {
|
|
yyv4633 = make([]EndpointPort, yyrl4633)
|
|
}
|
|
yyc4633 = true
|
|
yyrr4633 = len(yyv4633)
|
|
if yyrg4633 {
|
|
copy(yyv4633, yyv24633)
|
|
}
|
|
} else if yyl4633 != len(yyv4633) {
|
|
yyv4633 = yyv4633[:yyl4633]
|
|
yyc4633 = true
|
|
}
|
|
yyj4633 := 0
|
|
for ; yyj4633 < yyrr4633; yyj4633++ {
|
|
yyh4633.ElemContainerState(yyj4633)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4633[yyj4633] = EndpointPort{}
|
|
} else {
|
|
yyv4634 := &yyv4633[yyj4633]
|
|
yyv4634.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4633 {
|
|
for ; yyj4633 < yyl4633; yyj4633++ {
|
|
yyv4633 = append(yyv4633, EndpointPort{})
|
|
yyh4633.ElemContainerState(yyj4633)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4633[yyj4633] = EndpointPort{}
|
|
} else {
|
|
yyv4635 := &yyv4633[yyj4633]
|
|
yyv4635.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4633 := 0
|
|
for ; !r.CheckBreak(); yyj4633++ {
|
|
|
|
if yyj4633 >= len(yyv4633) {
|
|
yyv4633 = append(yyv4633, EndpointPort{}) // var yyz4633 EndpointPort
|
|
yyc4633 = true
|
|
}
|
|
yyh4633.ElemContainerState(yyj4633)
|
|
if yyj4633 < len(yyv4633) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4633[yyj4633] = EndpointPort{}
|
|
} else {
|
|
yyv4636 := &yyv4633[yyj4633]
|
|
yyv4636.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4633 < len(yyv4633) {
|
|
yyv4633 = yyv4633[:yyj4633]
|
|
yyc4633 = true
|
|
} else if yyj4633 == 0 && yyv4633 == nil {
|
|
yyv4633 = []EndpointPort{}
|
|
yyc4633 = true
|
|
}
|
|
}
|
|
yyh4633.End()
|
|
if yyc4633 {
|
|
*v = yyv4633
|
|
}
|
|
}
|
|
|
|
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 _, yyv4637 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4638 := &yyv4637
|
|
yy4638.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
|
|
|
|
yyv4639 := *v
|
|
yyh4639, yyl4639 := z.DecSliceHelperStart()
|
|
var yyc4639 bool
|
|
if yyl4639 == 0 {
|
|
if yyv4639 == nil {
|
|
yyv4639 = []Endpoints{}
|
|
yyc4639 = true
|
|
} else if len(yyv4639) != 0 {
|
|
yyv4639 = yyv4639[:0]
|
|
yyc4639 = true
|
|
}
|
|
} else if yyl4639 > 0 {
|
|
var yyrr4639, yyrl4639 int
|
|
var yyrt4639 bool
|
|
if yyl4639 > cap(yyv4639) {
|
|
|
|
yyrg4639 := len(yyv4639) > 0
|
|
yyv24639 := yyv4639
|
|
yyrl4639, yyrt4639 = z.DecInferLen(yyl4639, z.DecBasicHandle().MaxInitLen, 264)
|
|
if yyrt4639 {
|
|
if yyrl4639 <= cap(yyv4639) {
|
|
yyv4639 = yyv4639[:yyrl4639]
|
|
} else {
|
|
yyv4639 = make([]Endpoints, yyrl4639)
|
|
}
|
|
} else {
|
|
yyv4639 = make([]Endpoints, yyrl4639)
|
|
}
|
|
yyc4639 = true
|
|
yyrr4639 = len(yyv4639)
|
|
if yyrg4639 {
|
|
copy(yyv4639, yyv24639)
|
|
}
|
|
} else if yyl4639 != len(yyv4639) {
|
|
yyv4639 = yyv4639[:yyl4639]
|
|
yyc4639 = true
|
|
}
|
|
yyj4639 := 0
|
|
for ; yyj4639 < yyrr4639; yyj4639++ {
|
|
yyh4639.ElemContainerState(yyj4639)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4639[yyj4639] = Endpoints{}
|
|
} else {
|
|
yyv4640 := &yyv4639[yyj4639]
|
|
yyv4640.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4639 {
|
|
for ; yyj4639 < yyl4639; yyj4639++ {
|
|
yyv4639 = append(yyv4639, Endpoints{})
|
|
yyh4639.ElemContainerState(yyj4639)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4639[yyj4639] = Endpoints{}
|
|
} else {
|
|
yyv4641 := &yyv4639[yyj4639]
|
|
yyv4641.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4639 := 0
|
|
for ; !r.CheckBreak(); yyj4639++ {
|
|
|
|
if yyj4639 >= len(yyv4639) {
|
|
yyv4639 = append(yyv4639, Endpoints{}) // var yyz4639 Endpoints
|
|
yyc4639 = true
|
|
}
|
|
yyh4639.ElemContainerState(yyj4639)
|
|
if yyj4639 < len(yyv4639) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4639[yyj4639] = Endpoints{}
|
|
} else {
|
|
yyv4642 := &yyv4639[yyj4639]
|
|
yyv4642.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4639 < len(yyv4639) {
|
|
yyv4639 = yyv4639[:yyj4639]
|
|
yyc4639 = true
|
|
} else if yyj4639 == 0 && yyv4639 == nil {
|
|
yyv4639 = []Endpoints{}
|
|
yyc4639 = true
|
|
}
|
|
}
|
|
yyh4639.End()
|
|
if yyc4639 {
|
|
*v = yyv4639
|
|
}
|
|
}
|
|
|
|
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 _, yyv4643 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4644 := &yyv4643
|
|
yy4644.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
|
|
|
|
yyv4645 := *v
|
|
yyh4645, yyl4645 := z.DecSliceHelperStart()
|
|
var yyc4645 bool
|
|
if yyl4645 == 0 {
|
|
if yyv4645 == nil {
|
|
yyv4645 = []NodeCondition{}
|
|
yyc4645 = true
|
|
} else if len(yyv4645) != 0 {
|
|
yyv4645 = yyv4645[:0]
|
|
yyc4645 = true
|
|
}
|
|
} else if yyl4645 > 0 {
|
|
var yyrr4645, yyrl4645 int
|
|
var yyrt4645 bool
|
|
if yyl4645 > cap(yyv4645) {
|
|
|
|
yyrg4645 := len(yyv4645) > 0
|
|
yyv24645 := yyv4645
|
|
yyrl4645, yyrt4645 = z.DecInferLen(yyl4645, z.DecBasicHandle().MaxInitLen, 112)
|
|
if yyrt4645 {
|
|
if yyrl4645 <= cap(yyv4645) {
|
|
yyv4645 = yyv4645[:yyrl4645]
|
|
} else {
|
|
yyv4645 = make([]NodeCondition, yyrl4645)
|
|
}
|
|
} else {
|
|
yyv4645 = make([]NodeCondition, yyrl4645)
|
|
}
|
|
yyc4645 = true
|
|
yyrr4645 = len(yyv4645)
|
|
if yyrg4645 {
|
|
copy(yyv4645, yyv24645)
|
|
}
|
|
} else if yyl4645 != len(yyv4645) {
|
|
yyv4645 = yyv4645[:yyl4645]
|
|
yyc4645 = true
|
|
}
|
|
yyj4645 := 0
|
|
for ; yyj4645 < yyrr4645; yyj4645++ {
|
|
yyh4645.ElemContainerState(yyj4645)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4645[yyj4645] = NodeCondition{}
|
|
} else {
|
|
yyv4646 := &yyv4645[yyj4645]
|
|
yyv4646.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4645 {
|
|
for ; yyj4645 < yyl4645; yyj4645++ {
|
|
yyv4645 = append(yyv4645, NodeCondition{})
|
|
yyh4645.ElemContainerState(yyj4645)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4645[yyj4645] = NodeCondition{}
|
|
} else {
|
|
yyv4647 := &yyv4645[yyj4645]
|
|
yyv4647.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4645 := 0
|
|
for ; !r.CheckBreak(); yyj4645++ {
|
|
|
|
if yyj4645 >= len(yyv4645) {
|
|
yyv4645 = append(yyv4645, NodeCondition{}) // var yyz4645 NodeCondition
|
|
yyc4645 = true
|
|
}
|
|
yyh4645.ElemContainerState(yyj4645)
|
|
if yyj4645 < len(yyv4645) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4645[yyj4645] = NodeCondition{}
|
|
} else {
|
|
yyv4648 := &yyv4645[yyj4645]
|
|
yyv4648.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4645 < len(yyv4645) {
|
|
yyv4645 = yyv4645[:yyj4645]
|
|
yyc4645 = true
|
|
} else if yyj4645 == 0 && yyv4645 == nil {
|
|
yyv4645 = []NodeCondition{}
|
|
yyc4645 = true
|
|
}
|
|
}
|
|
yyh4645.End()
|
|
if yyc4645 {
|
|
*v = yyv4645
|
|
}
|
|
}
|
|
|
|
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 _, yyv4649 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4650 := &yyv4649
|
|
yy4650.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
|
|
|
|
yyv4651 := *v
|
|
yyh4651, yyl4651 := z.DecSliceHelperStart()
|
|
var yyc4651 bool
|
|
if yyl4651 == 0 {
|
|
if yyv4651 == nil {
|
|
yyv4651 = []NodeAddress{}
|
|
yyc4651 = true
|
|
} else if len(yyv4651) != 0 {
|
|
yyv4651 = yyv4651[:0]
|
|
yyc4651 = true
|
|
}
|
|
} else if yyl4651 > 0 {
|
|
var yyrr4651, yyrl4651 int
|
|
var yyrt4651 bool
|
|
if yyl4651 > cap(yyv4651) {
|
|
|
|
yyrg4651 := len(yyv4651) > 0
|
|
yyv24651 := yyv4651
|
|
yyrl4651, yyrt4651 = z.DecInferLen(yyl4651, z.DecBasicHandle().MaxInitLen, 32)
|
|
if yyrt4651 {
|
|
if yyrl4651 <= cap(yyv4651) {
|
|
yyv4651 = yyv4651[:yyrl4651]
|
|
} else {
|
|
yyv4651 = make([]NodeAddress, yyrl4651)
|
|
}
|
|
} else {
|
|
yyv4651 = make([]NodeAddress, yyrl4651)
|
|
}
|
|
yyc4651 = true
|
|
yyrr4651 = len(yyv4651)
|
|
if yyrg4651 {
|
|
copy(yyv4651, yyv24651)
|
|
}
|
|
} else if yyl4651 != len(yyv4651) {
|
|
yyv4651 = yyv4651[:yyl4651]
|
|
yyc4651 = true
|
|
}
|
|
yyj4651 := 0
|
|
for ; yyj4651 < yyrr4651; yyj4651++ {
|
|
yyh4651.ElemContainerState(yyj4651)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4651[yyj4651] = NodeAddress{}
|
|
} else {
|
|
yyv4652 := &yyv4651[yyj4651]
|
|
yyv4652.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4651 {
|
|
for ; yyj4651 < yyl4651; yyj4651++ {
|
|
yyv4651 = append(yyv4651, NodeAddress{})
|
|
yyh4651.ElemContainerState(yyj4651)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4651[yyj4651] = NodeAddress{}
|
|
} else {
|
|
yyv4653 := &yyv4651[yyj4651]
|
|
yyv4653.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4651 := 0
|
|
for ; !r.CheckBreak(); yyj4651++ {
|
|
|
|
if yyj4651 >= len(yyv4651) {
|
|
yyv4651 = append(yyv4651, NodeAddress{}) // var yyz4651 NodeAddress
|
|
yyc4651 = true
|
|
}
|
|
yyh4651.ElemContainerState(yyj4651)
|
|
if yyj4651 < len(yyv4651) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4651[yyj4651] = NodeAddress{}
|
|
} else {
|
|
yyv4654 := &yyv4651[yyj4651]
|
|
yyv4654.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4651 < len(yyv4651) {
|
|
yyv4651 = yyv4651[:yyj4651]
|
|
yyc4651 = true
|
|
} else if yyj4651 == 0 && yyv4651 == nil {
|
|
yyv4651 = []NodeAddress{}
|
|
yyc4651 = true
|
|
}
|
|
}
|
|
yyh4651.End()
|
|
if yyc4651 {
|
|
*v = yyv4651
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSliceContainerImage(v []ContainerImage, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv4655 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4656 := &yyv4655
|
|
yy4656.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSliceContainerImage(v *[]ContainerImage, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv4657 := *v
|
|
yyh4657, yyl4657 := z.DecSliceHelperStart()
|
|
var yyc4657 bool
|
|
if yyl4657 == 0 {
|
|
if yyv4657 == nil {
|
|
yyv4657 = []ContainerImage{}
|
|
yyc4657 = true
|
|
} else if len(yyv4657) != 0 {
|
|
yyv4657 = yyv4657[:0]
|
|
yyc4657 = true
|
|
}
|
|
} else if yyl4657 > 0 {
|
|
var yyrr4657, yyrl4657 int
|
|
var yyrt4657 bool
|
|
if yyl4657 > cap(yyv4657) {
|
|
|
|
yyrg4657 := len(yyv4657) > 0
|
|
yyv24657 := yyv4657
|
|
yyrl4657, yyrt4657 = z.DecInferLen(yyl4657, z.DecBasicHandle().MaxInitLen, 32)
|
|
if yyrt4657 {
|
|
if yyrl4657 <= cap(yyv4657) {
|
|
yyv4657 = yyv4657[:yyrl4657]
|
|
} else {
|
|
yyv4657 = make([]ContainerImage, yyrl4657)
|
|
}
|
|
} else {
|
|
yyv4657 = make([]ContainerImage, yyrl4657)
|
|
}
|
|
yyc4657 = true
|
|
yyrr4657 = len(yyv4657)
|
|
if yyrg4657 {
|
|
copy(yyv4657, yyv24657)
|
|
}
|
|
} else if yyl4657 != len(yyv4657) {
|
|
yyv4657 = yyv4657[:yyl4657]
|
|
yyc4657 = true
|
|
}
|
|
yyj4657 := 0
|
|
for ; yyj4657 < yyrr4657; yyj4657++ {
|
|
yyh4657.ElemContainerState(yyj4657)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4657[yyj4657] = ContainerImage{}
|
|
} else {
|
|
yyv4658 := &yyv4657[yyj4657]
|
|
yyv4658.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4657 {
|
|
for ; yyj4657 < yyl4657; yyj4657++ {
|
|
yyv4657 = append(yyv4657, ContainerImage{})
|
|
yyh4657.ElemContainerState(yyj4657)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4657[yyj4657] = ContainerImage{}
|
|
} else {
|
|
yyv4659 := &yyv4657[yyj4657]
|
|
yyv4659.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4657 := 0
|
|
for ; !r.CheckBreak(); yyj4657++ {
|
|
|
|
if yyj4657 >= len(yyv4657) {
|
|
yyv4657 = append(yyv4657, ContainerImage{}) // var yyz4657 ContainerImage
|
|
yyc4657 = true
|
|
}
|
|
yyh4657.ElemContainerState(yyj4657)
|
|
if yyj4657 < len(yyv4657) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4657[yyj4657] = ContainerImage{}
|
|
} else {
|
|
yyv4660 := &yyv4657[yyj4657]
|
|
yyv4660.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4657 < len(yyv4657) {
|
|
yyv4657 = yyv4657[:yyj4657]
|
|
yyc4657 = true
|
|
} else if yyj4657 == 0 && yyv4657 == nil {
|
|
yyv4657 = []ContainerImage{}
|
|
yyc4657 = true
|
|
}
|
|
}
|
|
yyh4657.End()
|
|
if yyc4657 {
|
|
*v = yyv4657
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSliceUniqueVolumeName(v []UniqueVolumeName, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv4661 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yyv4661.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSliceUniqueVolumeName(v *[]UniqueVolumeName, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv4662 := *v
|
|
yyh4662, yyl4662 := z.DecSliceHelperStart()
|
|
var yyc4662 bool
|
|
if yyl4662 == 0 {
|
|
if yyv4662 == nil {
|
|
yyv4662 = []UniqueVolumeName{}
|
|
yyc4662 = true
|
|
} else if len(yyv4662) != 0 {
|
|
yyv4662 = yyv4662[:0]
|
|
yyc4662 = true
|
|
}
|
|
} else if yyl4662 > 0 {
|
|
var yyrr4662, yyrl4662 int
|
|
var yyrt4662 bool
|
|
if yyl4662 > cap(yyv4662) {
|
|
|
|
yyrl4662, yyrt4662 = z.DecInferLen(yyl4662, z.DecBasicHandle().MaxInitLen, 16)
|
|
if yyrt4662 {
|
|
if yyrl4662 <= cap(yyv4662) {
|
|
yyv4662 = yyv4662[:yyrl4662]
|
|
} else {
|
|
yyv4662 = make([]UniqueVolumeName, yyrl4662)
|
|
}
|
|
} else {
|
|
yyv4662 = make([]UniqueVolumeName, yyrl4662)
|
|
}
|
|
yyc4662 = true
|
|
yyrr4662 = len(yyv4662)
|
|
} else if yyl4662 != len(yyv4662) {
|
|
yyv4662 = yyv4662[:yyl4662]
|
|
yyc4662 = true
|
|
}
|
|
yyj4662 := 0
|
|
for ; yyj4662 < yyrr4662; yyj4662++ {
|
|
yyh4662.ElemContainerState(yyj4662)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4662[yyj4662] = ""
|
|
} else {
|
|
yyv4662[yyj4662] = UniqueVolumeName(r.DecodeString())
|
|
}
|
|
|
|
}
|
|
if yyrt4662 {
|
|
for ; yyj4662 < yyl4662; yyj4662++ {
|
|
yyv4662 = append(yyv4662, "")
|
|
yyh4662.ElemContainerState(yyj4662)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4662[yyj4662] = ""
|
|
} else {
|
|
yyv4662[yyj4662] = UniqueVolumeName(r.DecodeString())
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4662 := 0
|
|
for ; !r.CheckBreak(); yyj4662++ {
|
|
|
|
if yyj4662 >= len(yyv4662) {
|
|
yyv4662 = append(yyv4662, "") // var yyz4662 UniqueVolumeName
|
|
yyc4662 = true
|
|
}
|
|
yyh4662.ElemContainerState(yyj4662)
|
|
if yyj4662 < len(yyv4662) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4662[yyj4662] = ""
|
|
} else {
|
|
yyv4662[yyj4662] = UniqueVolumeName(r.DecodeString())
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4662 < len(yyv4662) {
|
|
yyv4662 = yyv4662[:yyj4662]
|
|
yyc4662 = true
|
|
} else if yyj4662 == 0 && yyv4662 == nil {
|
|
yyv4662 = []UniqueVolumeName{}
|
|
yyc4662 = true
|
|
}
|
|
}
|
|
yyh4662.End()
|
|
if yyc4662 {
|
|
*v = yyv4662
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSliceAttachedVolume(v []AttachedVolume, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv4666 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4667 := &yyv4666
|
|
yy4667.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSliceAttachedVolume(v *[]AttachedVolume, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv4668 := *v
|
|
yyh4668, yyl4668 := z.DecSliceHelperStart()
|
|
var yyc4668 bool
|
|
if yyl4668 == 0 {
|
|
if yyv4668 == nil {
|
|
yyv4668 = []AttachedVolume{}
|
|
yyc4668 = true
|
|
} else if len(yyv4668) != 0 {
|
|
yyv4668 = yyv4668[:0]
|
|
yyc4668 = true
|
|
}
|
|
} else if yyl4668 > 0 {
|
|
var yyrr4668, yyrl4668 int
|
|
var yyrt4668 bool
|
|
if yyl4668 > cap(yyv4668) {
|
|
|
|
yyrg4668 := len(yyv4668) > 0
|
|
yyv24668 := yyv4668
|
|
yyrl4668, yyrt4668 = z.DecInferLen(yyl4668, z.DecBasicHandle().MaxInitLen, 32)
|
|
if yyrt4668 {
|
|
if yyrl4668 <= cap(yyv4668) {
|
|
yyv4668 = yyv4668[:yyrl4668]
|
|
} else {
|
|
yyv4668 = make([]AttachedVolume, yyrl4668)
|
|
}
|
|
} else {
|
|
yyv4668 = make([]AttachedVolume, yyrl4668)
|
|
}
|
|
yyc4668 = true
|
|
yyrr4668 = len(yyv4668)
|
|
if yyrg4668 {
|
|
copy(yyv4668, yyv24668)
|
|
}
|
|
} else if yyl4668 != len(yyv4668) {
|
|
yyv4668 = yyv4668[:yyl4668]
|
|
yyc4668 = true
|
|
}
|
|
yyj4668 := 0
|
|
for ; yyj4668 < yyrr4668; yyj4668++ {
|
|
yyh4668.ElemContainerState(yyj4668)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4668[yyj4668] = AttachedVolume{}
|
|
} else {
|
|
yyv4669 := &yyv4668[yyj4668]
|
|
yyv4669.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4668 {
|
|
for ; yyj4668 < yyl4668; yyj4668++ {
|
|
yyv4668 = append(yyv4668, AttachedVolume{})
|
|
yyh4668.ElemContainerState(yyj4668)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4668[yyj4668] = AttachedVolume{}
|
|
} else {
|
|
yyv4670 := &yyv4668[yyj4668]
|
|
yyv4670.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4668 := 0
|
|
for ; !r.CheckBreak(); yyj4668++ {
|
|
|
|
if yyj4668 >= len(yyv4668) {
|
|
yyv4668 = append(yyv4668, AttachedVolume{}) // var yyz4668 AttachedVolume
|
|
yyc4668 = true
|
|
}
|
|
yyh4668.ElemContainerState(yyj4668)
|
|
if yyj4668 < len(yyv4668) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4668[yyj4668] = AttachedVolume{}
|
|
} else {
|
|
yyv4671 := &yyv4668[yyj4668]
|
|
yyv4671.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4668 < len(yyv4668) {
|
|
yyv4668 = yyv4668[:yyj4668]
|
|
yyc4668 = true
|
|
} else if yyj4668 == 0 && yyv4668 == nil {
|
|
yyv4668 = []AttachedVolume{}
|
|
yyc4668 = true
|
|
}
|
|
}
|
|
yyh4668.End()
|
|
if yyc4668 {
|
|
*v = yyv4668
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSlicePreferAvoidPodsEntry(v []PreferAvoidPodsEntry, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv4672 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4673 := &yyv4672
|
|
yy4673.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSlicePreferAvoidPodsEntry(v *[]PreferAvoidPodsEntry, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv4674 := *v
|
|
yyh4674, yyl4674 := z.DecSliceHelperStart()
|
|
var yyc4674 bool
|
|
if yyl4674 == 0 {
|
|
if yyv4674 == nil {
|
|
yyv4674 = []PreferAvoidPodsEntry{}
|
|
yyc4674 = true
|
|
} else if len(yyv4674) != 0 {
|
|
yyv4674 = yyv4674[:0]
|
|
yyc4674 = true
|
|
}
|
|
} else if yyl4674 > 0 {
|
|
var yyrr4674, yyrl4674 int
|
|
var yyrt4674 bool
|
|
if yyl4674 > cap(yyv4674) {
|
|
|
|
yyrg4674 := len(yyv4674) > 0
|
|
yyv24674 := yyv4674
|
|
yyrl4674, yyrt4674 = z.DecInferLen(yyl4674, z.DecBasicHandle().MaxInitLen, 64)
|
|
if yyrt4674 {
|
|
if yyrl4674 <= cap(yyv4674) {
|
|
yyv4674 = yyv4674[:yyrl4674]
|
|
} else {
|
|
yyv4674 = make([]PreferAvoidPodsEntry, yyrl4674)
|
|
}
|
|
} else {
|
|
yyv4674 = make([]PreferAvoidPodsEntry, yyrl4674)
|
|
}
|
|
yyc4674 = true
|
|
yyrr4674 = len(yyv4674)
|
|
if yyrg4674 {
|
|
copy(yyv4674, yyv24674)
|
|
}
|
|
} else if yyl4674 != len(yyv4674) {
|
|
yyv4674 = yyv4674[:yyl4674]
|
|
yyc4674 = true
|
|
}
|
|
yyj4674 := 0
|
|
for ; yyj4674 < yyrr4674; yyj4674++ {
|
|
yyh4674.ElemContainerState(yyj4674)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4674[yyj4674] = PreferAvoidPodsEntry{}
|
|
} else {
|
|
yyv4675 := &yyv4674[yyj4674]
|
|
yyv4675.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4674 {
|
|
for ; yyj4674 < yyl4674; yyj4674++ {
|
|
yyv4674 = append(yyv4674, PreferAvoidPodsEntry{})
|
|
yyh4674.ElemContainerState(yyj4674)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4674[yyj4674] = PreferAvoidPodsEntry{}
|
|
} else {
|
|
yyv4676 := &yyv4674[yyj4674]
|
|
yyv4676.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4674 := 0
|
|
for ; !r.CheckBreak(); yyj4674++ {
|
|
|
|
if yyj4674 >= len(yyv4674) {
|
|
yyv4674 = append(yyv4674, PreferAvoidPodsEntry{}) // var yyz4674 PreferAvoidPodsEntry
|
|
yyc4674 = true
|
|
}
|
|
yyh4674.ElemContainerState(yyj4674)
|
|
if yyj4674 < len(yyv4674) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4674[yyj4674] = PreferAvoidPodsEntry{}
|
|
} else {
|
|
yyv4677 := &yyv4674[yyj4674]
|
|
yyv4677.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4674 < len(yyv4674) {
|
|
yyv4674 = yyv4674[:yyj4674]
|
|
yyc4674 = true
|
|
} else if yyj4674 == 0 && yyv4674 == nil {
|
|
yyv4674 = []PreferAvoidPodsEntry{}
|
|
yyc4674 = true
|
|
}
|
|
}
|
|
yyh4674.End()
|
|
if yyc4674 {
|
|
*v = yyv4674
|
|
}
|
|
}
|
|
|
|
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 yyk4678, yyv4678 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
yyk4678.CodecEncodeSelf(e)
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
yy4679 := &yyv4678
|
|
yym4680 := z.EncBinary()
|
|
_ = yym4680
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yy4679) {
|
|
} else if !yym4680 && z.IsJSONHandle() {
|
|
z.EncJSONMarshal(yy4679)
|
|
} else {
|
|
z.EncFallback(yy4679)
|
|
}
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decResourceList(v *ResourceList, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv4681 := *v
|
|
yyl4681 := r.ReadMapStart()
|
|
yybh4681 := z.DecBasicHandle()
|
|
if yyv4681 == nil {
|
|
yyrl4681, _ := z.DecInferLen(yyl4681, yybh4681.MaxInitLen, 72)
|
|
yyv4681 = make(map[ResourceName]pkg3_resource.Quantity, yyrl4681)
|
|
*v = yyv4681
|
|
}
|
|
var yymk4681 ResourceName
|
|
var yymv4681 pkg3_resource.Quantity
|
|
var yymg4681 bool
|
|
if yybh4681.MapValueReset {
|
|
yymg4681 = true
|
|
}
|
|
if yyl4681 > 0 {
|
|
for yyj4681 := 0; yyj4681 < yyl4681; yyj4681++ {
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
if r.TryDecodeAsNil() {
|
|
yymk4681 = ""
|
|
} else {
|
|
yymk4681 = ResourceName(r.DecodeString())
|
|
}
|
|
|
|
if yymg4681 {
|
|
yymv4681 = yyv4681[yymk4681]
|
|
} else {
|
|
yymv4681 = pkg3_resource.Quantity{}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
if r.TryDecodeAsNil() {
|
|
yymv4681 = pkg3_resource.Quantity{}
|
|
} else {
|
|
yyv4683 := &yymv4681
|
|
yym4684 := z.DecBinary()
|
|
_ = yym4684
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv4683) {
|
|
} else if !yym4684 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv4683)
|
|
} else {
|
|
z.DecFallback(yyv4683, false)
|
|
}
|
|
}
|
|
|
|
if yyv4681 != nil {
|
|
yyv4681[yymk4681] = yymv4681
|
|
}
|
|
}
|
|
} else if yyl4681 < 0 {
|
|
for yyj4681 := 0; !r.CheckBreak(); yyj4681++ {
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
if r.TryDecodeAsNil() {
|
|
yymk4681 = ""
|
|
} else {
|
|
yymk4681 = ResourceName(r.DecodeString())
|
|
}
|
|
|
|
if yymg4681 {
|
|
yymv4681 = yyv4681[yymk4681]
|
|
} else {
|
|
yymv4681 = pkg3_resource.Quantity{}
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
if r.TryDecodeAsNil() {
|
|
yymv4681 = pkg3_resource.Quantity{}
|
|
} else {
|
|
yyv4686 := &yymv4681
|
|
yym4687 := z.DecBinary()
|
|
_ = yym4687
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv4686) {
|
|
} else if !yym4687 && z.IsJSONHandle() {
|
|
z.DecJSONUnmarshal(yyv4686)
|
|
} else {
|
|
z.DecFallback(yyv4686, false)
|
|
}
|
|
}
|
|
|
|
if yyv4681 != nil {
|
|
yyv4681[yymk4681] = yymv4681
|
|
}
|
|
}
|
|
} // 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 _, yyv4688 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4689 := &yyv4688
|
|
yy4689.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
|
|
|
|
yyv4690 := *v
|
|
yyh4690, yyl4690 := z.DecSliceHelperStart()
|
|
var yyc4690 bool
|
|
if yyl4690 == 0 {
|
|
if yyv4690 == nil {
|
|
yyv4690 = []Node{}
|
|
yyc4690 = true
|
|
} else if len(yyv4690) != 0 {
|
|
yyv4690 = yyv4690[:0]
|
|
yyc4690 = true
|
|
}
|
|
} else if yyl4690 > 0 {
|
|
var yyrr4690, yyrl4690 int
|
|
var yyrt4690 bool
|
|
if yyl4690 > cap(yyv4690) {
|
|
|
|
yyrg4690 := len(yyv4690) > 0
|
|
yyv24690 := yyv4690
|
|
yyrl4690, yyrt4690 = z.DecInferLen(yyl4690, z.DecBasicHandle().MaxInitLen, 616)
|
|
if yyrt4690 {
|
|
if yyrl4690 <= cap(yyv4690) {
|
|
yyv4690 = yyv4690[:yyrl4690]
|
|
} else {
|
|
yyv4690 = make([]Node, yyrl4690)
|
|
}
|
|
} else {
|
|
yyv4690 = make([]Node, yyrl4690)
|
|
}
|
|
yyc4690 = true
|
|
yyrr4690 = len(yyv4690)
|
|
if yyrg4690 {
|
|
copy(yyv4690, yyv24690)
|
|
}
|
|
} else if yyl4690 != len(yyv4690) {
|
|
yyv4690 = yyv4690[:yyl4690]
|
|
yyc4690 = true
|
|
}
|
|
yyj4690 := 0
|
|
for ; yyj4690 < yyrr4690; yyj4690++ {
|
|
yyh4690.ElemContainerState(yyj4690)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4690[yyj4690] = Node{}
|
|
} else {
|
|
yyv4691 := &yyv4690[yyj4690]
|
|
yyv4691.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4690 {
|
|
for ; yyj4690 < yyl4690; yyj4690++ {
|
|
yyv4690 = append(yyv4690, Node{})
|
|
yyh4690.ElemContainerState(yyj4690)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4690[yyj4690] = Node{}
|
|
} else {
|
|
yyv4692 := &yyv4690[yyj4690]
|
|
yyv4692.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4690 := 0
|
|
for ; !r.CheckBreak(); yyj4690++ {
|
|
|
|
if yyj4690 >= len(yyv4690) {
|
|
yyv4690 = append(yyv4690, Node{}) // var yyz4690 Node
|
|
yyc4690 = true
|
|
}
|
|
yyh4690.ElemContainerState(yyj4690)
|
|
if yyj4690 < len(yyv4690) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4690[yyj4690] = Node{}
|
|
} else {
|
|
yyv4693 := &yyv4690[yyj4690]
|
|
yyv4693.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4690 < len(yyv4690) {
|
|
yyv4690 = yyv4690[:yyj4690]
|
|
yyc4690 = true
|
|
} else if yyj4690 == 0 && yyv4690 == nil {
|
|
yyv4690 = []Node{}
|
|
yyc4690 = true
|
|
}
|
|
}
|
|
yyh4690.End()
|
|
if yyc4690 {
|
|
*v = yyv4690
|
|
}
|
|
}
|
|
|
|
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 _, yyv4694 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yyv4694.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
|
|
|
|
yyv4695 := *v
|
|
yyh4695, yyl4695 := z.DecSliceHelperStart()
|
|
var yyc4695 bool
|
|
if yyl4695 == 0 {
|
|
if yyv4695 == nil {
|
|
yyv4695 = []FinalizerName{}
|
|
yyc4695 = true
|
|
} else if len(yyv4695) != 0 {
|
|
yyv4695 = yyv4695[:0]
|
|
yyc4695 = true
|
|
}
|
|
} else if yyl4695 > 0 {
|
|
var yyrr4695, yyrl4695 int
|
|
var yyrt4695 bool
|
|
if yyl4695 > cap(yyv4695) {
|
|
|
|
yyrl4695, yyrt4695 = z.DecInferLen(yyl4695, z.DecBasicHandle().MaxInitLen, 16)
|
|
if yyrt4695 {
|
|
if yyrl4695 <= cap(yyv4695) {
|
|
yyv4695 = yyv4695[:yyrl4695]
|
|
} else {
|
|
yyv4695 = make([]FinalizerName, yyrl4695)
|
|
}
|
|
} else {
|
|
yyv4695 = make([]FinalizerName, yyrl4695)
|
|
}
|
|
yyc4695 = true
|
|
yyrr4695 = len(yyv4695)
|
|
} else if yyl4695 != len(yyv4695) {
|
|
yyv4695 = yyv4695[:yyl4695]
|
|
yyc4695 = true
|
|
}
|
|
yyj4695 := 0
|
|
for ; yyj4695 < yyrr4695; yyj4695++ {
|
|
yyh4695.ElemContainerState(yyj4695)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4695[yyj4695] = ""
|
|
} else {
|
|
yyv4695[yyj4695] = FinalizerName(r.DecodeString())
|
|
}
|
|
|
|
}
|
|
if yyrt4695 {
|
|
for ; yyj4695 < yyl4695; yyj4695++ {
|
|
yyv4695 = append(yyv4695, "")
|
|
yyh4695.ElemContainerState(yyj4695)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4695[yyj4695] = ""
|
|
} else {
|
|
yyv4695[yyj4695] = FinalizerName(r.DecodeString())
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4695 := 0
|
|
for ; !r.CheckBreak(); yyj4695++ {
|
|
|
|
if yyj4695 >= len(yyv4695) {
|
|
yyv4695 = append(yyv4695, "") // var yyz4695 FinalizerName
|
|
yyc4695 = true
|
|
}
|
|
yyh4695.ElemContainerState(yyj4695)
|
|
if yyj4695 < len(yyv4695) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4695[yyj4695] = ""
|
|
} else {
|
|
yyv4695[yyj4695] = FinalizerName(r.DecodeString())
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4695 < len(yyv4695) {
|
|
yyv4695 = yyv4695[:yyj4695]
|
|
yyc4695 = true
|
|
} else if yyj4695 == 0 && yyv4695 == nil {
|
|
yyv4695 = []FinalizerName{}
|
|
yyc4695 = true
|
|
}
|
|
}
|
|
yyh4695.End()
|
|
if yyc4695 {
|
|
*v = yyv4695
|
|
}
|
|
}
|
|
|
|
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 _, yyv4699 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4700 := &yyv4699
|
|
yy4700.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
|
|
|
|
yyv4701 := *v
|
|
yyh4701, yyl4701 := z.DecSliceHelperStart()
|
|
var yyc4701 bool
|
|
if yyl4701 == 0 {
|
|
if yyv4701 == nil {
|
|
yyv4701 = []Namespace{}
|
|
yyc4701 = true
|
|
} else if len(yyv4701) != 0 {
|
|
yyv4701 = yyv4701[:0]
|
|
yyc4701 = true
|
|
}
|
|
} else if yyl4701 > 0 {
|
|
var yyrr4701, yyrl4701 int
|
|
var yyrt4701 bool
|
|
if yyl4701 > cap(yyv4701) {
|
|
|
|
yyrg4701 := len(yyv4701) > 0
|
|
yyv24701 := yyv4701
|
|
yyrl4701, yyrt4701 = z.DecInferLen(yyl4701, z.DecBasicHandle().MaxInitLen, 280)
|
|
if yyrt4701 {
|
|
if yyrl4701 <= cap(yyv4701) {
|
|
yyv4701 = yyv4701[:yyrl4701]
|
|
} else {
|
|
yyv4701 = make([]Namespace, yyrl4701)
|
|
}
|
|
} else {
|
|
yyv4701 = make([]Namespace, yyrl4701)
|
|
}
|
|
yyc4701 = true
|
|
yyrr4701 = len(yyv4701)
|
|
if yyrg4701 {
|
|
copy(yyv4701, yyv24701)
|
|
}
|
|
} else if yyl4701 != len(yyv4701) {
|
|
yyv4701 = yyv4701[:yyl4701]
|
|
yyc4701 = true
|
|
}
|
|
yyj4701 := 0
|
|
for ; yyj4701 < yyrr4701; yyj4701++ {
|
|
yyh4701.ElemContainerState(yyj4701)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4701[yyj4701] = Namespace{}
|
|
} else {
|
|
yyv4702 := &yyv4701[yyj4701]
|
|
yyv4702.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4701 {
|
|
for ; yyj4701 < yyl4701; yyj4701++ {
|
|
yyv4701 = append(yyv4701, Namespace{})
|
|
yyh4701.ElemContainerState(yyj4701)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4701[yyj4701] = Namespace{}
|
|
} else {
|
|
yyv4703 := &yyv4701[yyj4701]
|
|
yyv4703.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4701 := 0
|
|
for ; !r.CheckBreak(); yyj4701++ {
|
|
|
|
if yyj4701 >= len(yyv4701) {
|
|
yyv4701 = append(yyv4701, Namespace{}) // var yyz4701 Namespace
|
|
yyc4701 = true
|
|
}
|
|
yyh4701.ElemContainerState(yyj4701)
|
|
if yyj4701 < len(yyv4701) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4701[yyj4701] = Namespace{}
|
|
} else {
|
|
yyv4704 := &yyv4701[yyj4701]
|
|
yyv4704.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4701 < len(yyv4701) {
|
|
yyv4701 = yyv4701[:yyj4701]
|
|
yyc4701 = true
|
|
} else if yyj4701 == 0 && yyv4701 == nil {
|
|
yyv4701 = []Namespace{}
|
|
yyc4701 = true
|
|
}
|
|
}
|
|
yyh4701.End()
|
|
if yyc4701 {
|
|
*v = yyv4701
|
|
}
|
|
}
|
|
|
|
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 _, yyv4705 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4706 := &yyv4705
|
|
yy4706.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
|
|
|
|
yyv4707 := *v
|
|
yyh4707, yyl4707 := z.DecSliceHelperStart()
|
|
var yyc4707 bool
|
|
if yyl4707 == 0 {
|
|
if yyv4707 == nil {
|
|
yyv4707 = []Event{}
|
|
yyc4707 = true
|
|
} else if len(yyv4707) != 0 {
|
|
yyv4707 = yyv4707[:0]
|
|
yyc4707 = true
|
|
}
|
|
} else if yyl4707 > 0 {
|
|
var yyrr4707, yyrl4707 int
|
|
var yyrt4707 bool
|
|
if yyl4707 > cap(yyv4707) {
|
|
|
|
yyrg4707 := len(yyv4707) > 0
|
|
yyv24707 := yyv4707
|
|
yyrl4707, yyrt4707 = z.DecInferLen(yyl4707, z.DecBasicHandle().MaxInitLen, 488)
|
|
if yyrt4707 {
|
|
if yyrl4707 <= cap(yyv4707) {
|
|
yyv4707 = yyv4707[:yyrl4707]
|
|
} else {
|
|
yyv4707 = make([]Event, yyrl4707)
|
|
}
|
|
} else {
|
|
yyv4707 = make([]Event, yyrl4707)
|
|
}
|
|
yyc4707 = true
|
|
yyrr4707 = len(yyv4707)
|
|
if yyrg4707 {
|
|
copy(yyv4707, yyv24707)
|
|
}
|
|
} else if yyl4707 != len(yyv4707) {
|
|
yyv4707 = yyv4707[:yyl4707]
|
|
yyc4707 = true
|
|
}
|
|
yyj4707 := 0
|
|
for ; yyj4707 < yyrr4707; yyj4707++ {
|
|
yyh4707.ElemContainerState(yyj4707)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4707[yyj4707] = Event{}
|
|
} else {
|
|
yyv4708 := &yyv4707[yyj4707]
|
|
yyv4708.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4707 {
|
|
for ; yyj4707 < yyl4707; yyj4707++ {
|
|
yyv4707 = append(yyv4707, Event{})
|
|
yyh4707.ElemContainerState(yyj4707)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4707[yyj4707] = Event{}
|
|
} else {
|
|
yyv4709 := &yyv4707[yyj4707]
|
|
yyv4709.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4707 := 0
|
|
for ; !r.CheckBreak(); yyj4707++ {
|
|
|
|
if yyj4707 >= len(yyv4707) {
|
|
yyv4707 = append(yyv4707, Event{}) // var yyz4707 Event
|
|
yyc4707 = true
|
|
}
|
|
yyh4707.ElemContainerState(yyj4707)
|
|
if yyj4707 < len(yyv4707) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4707[yyj4707] = Event{}
|
|
} else {
|
|
yyv4710 := &yyv4707[yyj4707]
|
|
yyv4710.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4707 < len(yyv4707) {
|
|
yyv4707 = yyv4707[:yyj4707]
|
|
yyc4707 = true
|
|
} else if yyj4707 == 0 && yyv4707 == nil {
|
|
yyv4707 = []Event{}
|
|
yyc4707 = true
|
|
}
|
|
}
|
|
yyh4707.End()
|
|
if yyc4707 {
|
|
*v = yyv4707
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSliceruntime_Object(v []pkg7_runtime.Object, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv4711 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
if yyv4711 == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym4712 := z.EncBinary()
|
|
_ = yym4712
|
|
if false {
|
|
} else if z.HasExtensions() && z.EncExt(yyv4711) {
|
|
} else {
|
|
z.EncFallback(yyv4711)
|
|
}
|
|
}
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSliceruntime_Object(v *[]pkg7_runtime.Object, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv4713 := *v
|
|
yyh4713, yyl4713 := z.DecSliceHelperStart()
|
|
var yyc4713 bool
|
|
if yyl4713 == 0 {
|
|
if yyv4713 == nil {
|
|
yyv4713 = []pkg7_runtime.Object{}
|
|
yyc4713 = true
|
|
} else if len(yyv4713) != 0 {
|
|
yyv4713 = yyv4713[:0]
|
|
yyc4713 = true
|
|
}
|
|
} else if yyl4713 > 0 {
|
|
var yyrr4713, yyrl4713 int
|
|
var yyrt4713 bool
|
|
if yyl4713 > cap(yyv4713) {
|
|
|
|
yyrg4713 := len(yyv4713) > 0
|
|
yyv24713 := yyv4713
|
|
yyrl4713, yyrt4713 = z.DecInferLen(yyl4713, z.DecBasicHandle().MaxInitLen, 16)
|
|
if yyrt4713 {
|
|
if yyrl4713 <= cap(yyv4713) {
|
|
yyv4713 = yyv4713[:yyrl4713]
|
|
} else {
|
|
yyv4713 = make([]pkg7_runtime.Object, yyrl4713)
|
|
}
|
|
} else {
|
|
yyv4713 = make([]pkg7_runtime.Object, yyrl4713)
|
|
}
|
|
yyc4713 = true
|
|
yyrr4713 = len(yyv4713)
|
|
if yyrg4713 {
|
|
copy(yyv4713, yyv24713)
|
|
}
|
|
} else if yyl4713 != len(yyv4713) {
|
|
yyv4713 = yyv4713[:yyl4713]
|
|
yyc4713 = true
|
|
}
|
|
yyj4713 := 0
|
|
for ; yyj4713 < yyrr4713; yyj4713++ {
|
|
yyh4713.ElemContainerState(yyj4713)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4713[yyj4713] = nil
|
|
} else {
|
|
yyv4714 := &yyv4713[yyj4713]
|
|
yym4715 := z.DecBinary()
|
|
_ = yym4715
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv4714) {
|
|
} else {
|
|
z.DecFallback(yyv4714, true)
|
|
}
|
|
}
|
|
|
|
}
|
|
if yyrt4713 {
|
|
for ; yyj4713 < yyl4713; yyj4713++ {
|
|
yyv4713 = append(yyv4713, nil)
|
|
yyh4713.ElemContainerState(yyj4713)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4713[yyj4713] = nil
|
|
} else {
|
|
yyv4716 := &yyv4713[yyj4713]
|
|
yym4717 := z.DecBinary()
|
|
_ = yym4717
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv4716) {
|
|
} else {
|
|
z.DecFallback(yyv4716, true)
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4713 := 0
|
|
for ; !r.CheckBreak(); yyj4713++ {
|
|
|
|
if yyj4713 >= len(yyv4713) {
|
|
yyv4713 = append(yyv4713, nil) // var yyz4713 pkg7_runtime.Object
|
|
yyc4713 = true
|
|
}
|
|
yyh4713.ElemContainerState(yyj4713)
|
|
if yyj4713 < len(yyv4713) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4713[yyj4713] = nil
|
|
} else {
|
|
yyv4718 := &yyv4713[yyj4713]
|
|
yym4719 := z.DecBinary()
|
|
_ = yym4719
|
|
if false {
|
|
} else if z.HasExtensions() && z.DecExt(yyv4718) {
|
|
} else {
|
|
z.DecFallback(yyv4718, true)
|
|
}
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4713 < len(yyv4713) {
|
|
yyv4713 = yyv4713[:yyj4713]
|
|
yyc4713 = true
|
|
} else if yyj4713 == 0 && yyv4713 == nil {
|
|
yyv4713 = []pkg7_runtime.Object{}
|
|
yyc4713 = true
|
|
}
|
|
}
|
|
yyh4713.End()
|
|
if yyc4713 {
|
|
*v = yyv4713
|
|
}
|
|
}
|
|
|
|
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 _, yyv4720 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4721 := &yyv4720
|
|
yy4721.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
|
|
|
|
yyv4722 := *v
|
|
yyh4722, yyl4722 := z.DecSliceHelperStart()
|
|
var yyc4722 bool
|
|
if yyl4722 == 0 {
|
|
if yyv4722 == nil {
|
|
yyv4722 = []LimitRangeItem{}
|
|
yyc4722 = true
|
|
} else if len(yyv4722) != 0 {
|
|
yyv4722 = yyv4722[:0]
|
|
yyc4722 = true
|
|
}
|
|
} else if yyl4722 > 0 {
|
|
var yyrr4722, yyrl4722 int
|
|
var yyrt4722 bool
|
|
if yyl4722 > cap(yyv4722) {
|
|
|
|
yyrg4722 := len(yyv4722) > 0
|
|
yyv24722 := yyv4722
|
|
yyrl4722, yyrt4722 = z.DecInferLen(yyl4722, z.DecBasicHandle().MaxInitLen, 56)
|
|
if yyrt4722 {
|
|
if yyrl4722 <= cap(yyv4722) {
|
|
yyv4722 = yyv4722[:yyrl4722]
|
|
} else {
|
|
yyv4722 = make([]LimitRangeItem, yyrl4722)
|
|
}
|
|
} else {
|
|
yyv4722 = make([]LimitRangeItem, yyrl4722)
|
|
}
|
|
yyc4722 = true
|
|
yyrr4722 = len(yyv4722)
|
|
if yyrg4722 {
|
|
copy(yyv4722, yyv24722)
|
|
}
|
|
} else if yyl4722 != len(yyv4722) {
|
|
yyv4722 = yyv4722[:yyl4722]
|
|
yyc4722 = true
|
|
}
|
|
yyj4722 := 0
|
|
for ; yyj4722 < yyrr4722; yyj4722++ {
|
|
yyh4722.ElemContainerState(yyj4722)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4722[yyj4722] = LimitRangeItem{}
|
|
} else {
|
|
yyv4723 := &yyv4722[yyj4722]
|
|
yyv4723.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4722 {
|
|
for ; yyj4722 < yyl4722; yyj4722++ {
|
|
yyv4722 = append(yyv4722, LimitRangeItem{})
|
|
yyh4722.ElemContainerState(yyj4722)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4722[yyj4722] = LimitRangeItem{}
|
|
} else {
|
|
yyv4724 := &yyv4722[yyj4722]
|
|
yyv4724.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4722 := 0
|
|
for ; !r.CheckBreak(); yyj4722++ {
|
|
|
|
if yyj4722 >= len(yyv4722) {
|
|
yyv4722 = append(yyv4722, LimitRangeItem{}) // var yyz4722 LimitRangeItem
|
|
yyc4722 = true
|
|
}
|
|
yyh4722.ElemContainerState(yyj4722)
|
|
if yyj4722 < len(yyv4722) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4722[yyj4722] = LimitRangeItem{}
|
|
} else {
|
|
yyv4725 := &yyv4722[yyj4722]
|
|
yyv4725.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4722 < len(yyv4722) {
|
|
yyv4722 = yyv4722[:yyj4722]
|
|
yyc4722 = true
|
|
} else if yyj4722 == 0 && yyv4722 == nil {
|
|
yyv4722 = []LimitRangeItem{}
|
|
yyc4722 = true
|
|
}
|
|
}
|
|
yyh4722.End()
|
|
if yyc4722 {
|
|
*v = yyv4722
|
|
}
|
|
}
|
|
|
|
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 _, yyv4726 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4727 := &yyv4726
|
|
yy4727.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
|
|
|
|
yyv4728 := *v
|
|
yyh4728, yyl4728 := z.DecSliceHelperStart()
|
|
var yyc4728 bool
|
|
if yyl4728 == 0 {
|
|
if yyv4728 == nil {
|
|
yyv4728 = []LimitRange{}
|
|
yyc4728 = true
|
|
} else if len(yyv4728) != 0 {
|
|
yyv4728 = yyv4728[:0]
|
|
yyc4728 = true
|
|
}
|
|
} else if yyl4728 > 0 {
|
|
var yyrr4728, yyrl4728 int
|
|
var yyrt4728 bool
|
|
if yyl4728 > cap(yyv4728) {
|
|
|
|
yyrg4728 := len(yyv4728) > 0
|
|
yyv24728 := yyv4728
|
|
yyrl4728, yyrt4728 = z.DecInferLen(yyl4728, z.DecBasicHandle().MaxInitLen, 264)
|
|
if yyrt4728 {
|
|
if yyrl4728 <= cap(yyv4728) {
|
|
yyv4728 = yyv4728[:yyrl4728]
|
|
} else {
|
|
yyv4728 = make([]LimitRange, yyrl4728)
|
|
}
|
|
} else {
|
|
yyv4728 = make([]LimitRange, yyrl4728)
|
|
}
|
|
yyc4728 = true
|
|
yyrr4728 = len(yyv4728)
|
|
if yyrg4728 {
|
|
copy(yyv4728, yyv24728)
|
|
}
|
|
} else if yyl4728 != len(yyv4728) {
|
|
yyv4728 = yyv4728[:yyl4728]
|
|
yyc4728 = true
|
|
}
|
|
yyj4728 := 0
|
|
for ; yyj4728 < yyrr4728; yyj4728++ {
|
|
yyh4728.ElemContainerState(yyj4728)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4728[yyj4728] = LimitRange{}
|
|
} else {
|
|
yyv4729 := &yyv4728[yyj4728]
|
|
yyv4729.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4728 {
|
|
for ; yyj4728 < yyl4728; yyj4728++ {
|
|
yyv4728 = append(yyv4728, LimitRange{})
|
|
yyh4728.ElemContainerState(yyj4728)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4728[yyj4728] = LimitRange{}
|
|
} else {
|
|
yyv4730 := &yyv4728[yyj4728]
|
|
yyv4730.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4728 := 0
|
|
for ; !r.CheckBreak(); yyj4728++ {
|
|
|
|
if yyj4728 >= len(yyv4728) {
|
|
yyv4728 = append(yyv4728, LimitRange{}) // var yyz4728 LimitRange
|
|
yyc4728 = true
|
|
}
|
|
yyh4728.ElemContainerState(yyj4728)
|
|
if yyj4728 < len(yyv4728) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4728[yyj4728] = LimitRange{}
|
|
} else {
|
|
yyv4731 := &yyv4728[yyj4728]
|
|
yyv4731.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4728 < len(yyv4728) {
|
|
yyv4728 = yyv4728[:yyj4728]
|
|
yyc4728 = true
|
|
} else if yyj4728 == 0 && yyv4728 == nil {
|
|
yyv4728 = []LimitRange{}
|
|
yyc4728 = true
|
|
}
|
|
}
|
|
yyh4728.End()
|
|
if yyc4728 {
|
|
*v = yyv4728
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSliceResourceQuotaScope(v []ResourceQuotaScope, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv4732 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yyv4732.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSliceResourceQuotaScope(v *[]ResourceQuotaScope, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv4733 := *v
|
|
yyh4733, yyl4733 := z.DecSliceHelperStart()
|
|
var yyc4733 bool
|
|
if yyl4733 == 0 {
|
|
if yyv4733 == nil {
|
|
yyv4733 = []ResourceQuotaScope{}
|
|
yyc4733 = true
|
|
} else if len(yyv4733) != 0 {
|
|
yyv4733 = yyv4733[:0]
|
|
yyc4733 = true
|
|
}
|
|
} else if yyl4733 > 0 {
|
|
var yyrr4733, yyrl4733 int
|
|
var yyrt4733 bool
|
|
if yyl4733 > cap(yyv4733) {
|
|
|
|
yyrl4733, yyrt4733 = z.DecInferLen(yyl4733, z.DecBasicHandle().MaxInitLen, 16)
|
|
if yyrt4733 {
|
|
if yyrl4733 <= cap(yyv4733) {
|
|
yyv4733 = yyv4733[:yyrl4733]
|
|
} else {
|
|
yyv4733 = make([]ResourceQuotaScope, yyrl4733)
|
|
}
|
|
} else {
|
|
yyv4733 = make([]ResourceQuotaScope, yyrl4733)
|
|
}
|
|
yyc4733 = true
|
|
yyrr4733 = len(yyv4733)
|
|
} else if yyl4733 != len(yyv4733) {
|
|
yyv4733 = yyv4733[:yyl4733]
|
|
yyc4733 = true
|
|
}
|
|
yyj4733 := 0
|
|
for ; yyj4733 < yyrr4733; yyj4733++ {
|
|
yyh4733.ElemContainerState(yyj4733)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4733[yyj4733] = ""
|
|
} else {
|
|
yyv4733[yyj4733] = ResourceQuotaScope(r.DecodeString())
|
|
}
|
|
|
|
}
|
|
if yyrt4733 {
|
|
for ; yyj4733 < yyl4733; yyj4733++ {
|
|
yyv4733 = append(yyv4733, "")
|
|
yyh4733.ElemContainerState(yyj4733)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4733[yyj4733] = ""
|
|
} else {
|
|
yyv4733[yyj4733] = ResourceQuotaScope(r.DecodeString())
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4733 := 0
|
|
for ; !r.CheckBreak(); yyj4733++ {
|
|
|
|
if yyj4733 >= len(yyv4733) {
|
|
yyv4733 = append(yyv4733, "") // var yyz4733 ResourceQuotaScope
|
|
yyc4733 = true
|
|
}
|
|
yyh4733.ElemContainerState(yyj4733)
|
|
if yyj4733 < len(yyv4733) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4733[yyj4733] = ""
|
|
} else {
|
|
yyv4733[yyj4733] = ResourceQuotaScope(r.DecodeString())
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4733 < len(yyv4733) {
|
|
yyv4733 = yyv4733[:yyj4733]
|
|
yyc4733 = true
|
|
} else if yyj4733 == 0 && yyv4733 == nil {
|
|
yyv4733 = []ResourceQuotaScope{}
|
|
yyc4733 = true
|
|
}
|
|
}
|
|
yyh4733.End()
|
|
if yyc4733 {
|
|
*v = yyv4733
|
|
}
|
|
}
|
|
|
|
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 _, yyv4737 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4738 := &yyv4737
|
|
yy4738.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
|
|
|
|
yyv4739 := *v
|
|
yyh4739, yyl4739 := z.DecSliceHelperStart()
|
|
var yyc4739 bool
|
|
if yyl4739 == 0 {
|
|
if yyv4739 == nil {
|
|
yyv4739 = []ResourceQuota{}
|
|
yyc4739 = true
|
|
} else if len(yyv4739) != 0 {
|
|
yyv4739 = yyv4739[:0]
|
|
yyc4739 = true
|
|
}
|
|
} else if yyl4739 > 0 {
|
|
var yyrr4739, yyrl4739 int
|
|
var yyrt4739 bool
|
|
if yyl4739 > cap(yyv4739) {
|
|
|
|
yyrg4739 := len(yyv4739) > 0
|
|
yyv24739 := yyv4739
|
|
yyrl4739, yyrt4739 = z.DecInferLen(yyl4739, z.DecBasicHandle().MaxInitLen, 288)
|
|
if yyrt4739 {
|
|
if yyrl4739 <= cap(yyv4739) {
|
|
yyv4739 = yyv4739[:yyrl4739]
|
|
} else {
|
|
yyv4739 = make([]ResourceQuota, yyrl4739)
|
|
}
|
|
} else {
|
|
yyv4739 = make([]ResourceQuota, yyrl4739)
|
|
}
|
|
yyc4739 = true
|
|
yyrr4739 = len(yyv4739)
|
|
if yyrg4739 {
|
|
copy(yyv4739, yyv24739)
|
|
}
|
|
} else if yyl4739 != len(yyv4739) {
|
|
yyv4739 = yyv4739[:yyl4739]
|
|
yyc4739 = true
|
|
}
|
|
yyj4739 := 0
|
|
for ; yyj4739 < yyrr4739; yyj4739++ {
|
|
yyh4739.ElemContainerState(yyj4739)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4739[yyj4739] = ResourceQuota{}
|
|
} else {
|
|
yyv4740 := &yyv4739[yyj4739]
|
|
yyv4740.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4739 {
|
|
for ; yyj4739 < yyl4739; yyj4739++ {
|
|
yyv4739 = append(yyv4739, ResourceQuota{})
|
|
yyh4739.ElemContainerState(yyj4739)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4739[yyj4739] = ResourceQuota{}
|
|
} else {
|
|
yyv4741 := &yyv4739[yyj4739]
|
|
yyv4741.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4739 := 0
|
|
for ; !r.CheckBreak(); yyj4739++ {
|
|
|
|
if yyj4739 >= len(yyv4739) {
|
|
yyv4739 = append(yyv4739, ResourceQuota{}) // var yyz4739 ResourceQuota
|
|
yyc4739 = true
|
|
}
|
|
yyh4739.ElemContainerState(yyj4739)
|
|
if yyj4739 < len(yyv4739) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4739[yyj4739] = ResourceQuota{}
|
|
} else {
|
|
yyv4742 := &yyv4739[yyj4739]
|
|
yyv4742.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4739 < len(yyv4739) {
|
|
yyv4739 = yyv4739[:yyj4739]
|
|
yyc4739 = true
|
|
} else if yyj4739 == 0 && yyv4739 == nil {
|
|
yyv4739 = []ResourceQuota{}
|
|
yyc4739 = true
|
|
}
|
|
}
|
|
yyh4739.End()
|
|
if yyc4739 {
|
|
*v = yyv4739
|
|
}
|
|
}
|
|
|
|
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 yyk4743, yyv4743 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
|
yym4744 := z.EncBinary()
|
|
_ = yym4744
|
|
if false {
|
|
} else {
|
|
r.EncodeString(codecSelferC_UTF81234, string(yyk4743))
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
|
if yyv4743 == nil {
|
|
r.EncodeNil()
|
|
} else {
|
|
yym4745 := z.EncBinary()
|
|
_ = yym4745
|
|
if false {
|
|
} else {
|
|
r.EncodeStringBytes(codecSelferC_RAW1234, []byte(yyv4743))
|
|
}
|
|
}
|
|
}
|
|
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
|
|
|
|
yyv4746 := *v
|
|
yyl4746 := r.ReadMapStart()
|
|
yybh4746 := z.DecBasicHandle()
|
|
if yyv4746 == nil {
|
|
yyrl4746, _ := z.DecInferLen(yyl4746, yybh4746.MaxInitLen, 40)
|
|
yyv4746 = make(map[string][]uint8, yyrl4746)
|
|
*v = yyv4746
|
|
}
|
|
var yymk4746 string
|
|
var yymv4746 []uint8
|
|
var yymg4746 bool
|
|
if yybh4746.MapValueReset {
|
|
yymg4746 = true
|
|
}
|
|
if yyl4746 > 0 {
|
|
for yyj4746 := 0; yyj4746 < yyl4746; yyj4746++ {
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
if r.TryDecodeAsNil() {
|
|
yymk4746 = ""
|
|
} else {
|
|
yymk4746 = string(r.DecodeString())
|
|
}
|
|
|
|
if yymg4746 {
|
|
yymv4746 = yyv4746[yymk4746]
|
|
} else {
|
|
yymv4746 = nil
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
if r.TryDecodeAsNil() {
|
|
yymv4746 = nil
|
|
} else {
|
|
yyv4748 := &yymv4746
|
|
yym4749 := z.DecBinary()
|
|
_ = yym4749
|
|
if false {
|
|
} else {
|
|
*yyv4748 = r.DecodeBytes(*(*[]byte)(yyv4748), false, false)
|
|
}
|
|
}
|
|
|
|
if yyv4746 != nil {
|
|
yyv4746[yymk4746] = yymv4746
|
|
}
|
|
}
|
|
} else if yyl4746 < 0 {
|
|
for yyj4746 := 0; !r.CheckBreak(); yyj4746++ {
|
|
z.DecSendContainerState(codecSelfer_containerMapKey1234)
|
|
if r.TryDecodeAsNil() {
|
|
yymk4746 = ""
|
|
} else {
|
|
yymk4746 = string(r.DecodeString())
|
|
}
|
|
|
|
if yymg4746 {
|
|
yymv4746 = yyv4746[yymk4746]
|
|
} else {
|
|
yymv4746 = nil
|
|
}
|
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
|
if r.TryDecodeAsNil() {
|
|
yymv4746 = nil
|
|
} else {
|
|
yyv4751 := &yymv4746
|
|
yym4752 := z.DecBinary()
|
|
_ = yym4752
|
|
if false {
|
|
} else {
|
|
*yyv4751 = r.DecodeBytes(*(*[]byte)(yyv4751), false, false)
|
|
}
|
|
}
|
|
|
|
if yyv4746 != nil {
|
|
yyv4746[yymk4746] = yymv4746
|
|
}
|
|
}
|
|
} // 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 _, yyv4753 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4754 := &yyv4753
|
|
yy4754.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
|
|
|
|
yyv4755 := *v
|
|
yyh4755, yyl4755 := z.DecSliceHelperStart()
|
|
var yyc4755 bool
|
|
if yyl4755 == 0 {
|
|
if yyv4755 == nil {
|
|
yyv4755 = []Secret{}
|
|
yyc4755 = true
|
|
} else if len(yyv4755) != 0 {
|
|
yyv4755 = yyv4755[:0]
|
|
yyc4755 = true
|
|
}
|
|
} else if yyl4755 > 0 {
|
|
var yyrr4755, yyrl4755 int
|
|
var yyrt4755 bool
|
|
if yyl4755 > cap(yyv4755) {
|
|
|
|
yyrg4755 := len(yyv4755) > 0
|
|
yyv24755 := yyv4755
|
|
yyrl4755, yyrt4755 = z.DecInferLen(yyl4755, z.DecBasicHandle().MaxInitLen, 264)
|
|
if yyrt4755 {
|
|
if yyrl4755 <= cap(yyv4755) {
|
|
yyv4755 = yyv4755[:yyrl4755]
|
|
} else {
|
|
yyv4755 = make([]Secret, yyrl4755)
|
|
}
|
|
} else {
|
|
yyv4755 = make([]Secret, yyrl4755)
|
|
}
|
|
yyc4755 = true
|
|
yyrr4755 = len(yyv4755)
|
|
if yyrg4755 {
|
|
copy(yyv4755, yyv24755)
|
|
}
|
|
} else if yyl4755 != len(yyv4755) {
|
|
yyv4755 = yyv4755[:yyl4755]
|
|
yyc4755 = true
|
|
}
|
|
yyj4755 := 0
|
|
for ; yyj4755 < yyrr4755; yyj4755++ {
|
|
yyh4755.ElemContainerState(yyj4755)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4755[yyj4755] = Secret{}
|
|
} else {
|
|
yyv4756 := &yyv4755[yyj4755]
|
|
yyv4756.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4755 {
|
|
for ; yyj4755 < yyl4755; yyj4755++ {
|
|
yyv4755 = append(yyv4755, Secret{})
|
|
yyh4755.ElemContainerState(yyj4755)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4755[yyj4755] = Secret{}
|
|
} else {
|
|
yyv4757 := &yyv4755[yyj4755]
|
|
yyv4757.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4755 := 0
|
|
for ; !r.CheckBreak(); yyj4755++ {
|
|
|
|
if yyj4755 >= len(yyv4755) {
|
|
yyv4755 = append(yyv4755, Secret{}) // var yyz4755 Secret
|
|
yyc4755 = true
|
|
}
|
|
yyh4755.ElemContainerState(yyj4755)
|
|
if yyj4755 < len(yyv4755) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4755[yyj4755] = Secret{}
|
|
} else {
|
|
yyv4758 := &yyv4755[yyj4755]
|
|
yyv4758.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4755 < len(yyv4755) {
|
|
yyv4755 = yyv4755[:yyj4755]
|
|
yyc4755 = true
|
|
} else if yyj4755 == 0 && yyv4755 == nil {
|
|
yyv4755 = []Secret{}
|
|
yyc4755 = true
|
|
}
|
|
}
|
|
yyh4755.End()
|
|
if yyc4755 {
|
|
*v = yyv4755
|
|
}
|
|
}
|
|
|
|
func (x codecSelfer1234) encSliceConfigMap(v []ConfigMap, e *codec1978.Encoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperEncoder(e)
|
|
_, _, _ = h, z, r
|
|
r.EncodeArrayStart(len(v))
|
|
for _, yyv4759 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4760 := &yyv4759
|
|
yy4760.CodecEncodeSelf(e)
|
|
}
|
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
|
}
|
|
|
|
func (x codecSelfer1234) decSliceConfigMap(v *[]ConfigMap, d *codec1978.Decoder) {
|
|
var h codecSelfer1234
|
|
z, r := codec1978.GenHelperDecoder(d)
|
|
_, _, _ = h, z, r
|
|
|
|
yyv4761 := *v
|
|
yyh4761, yyl4761 := z.DecSliceHelperStart()
|
|
var yyc4761 bool
|
|
if yyl4761 == 0 {
|
|
if yyv4761 == nil {
|
|
yyv4761 = []ConfigMap{}
|
|
yyc4761 = true
|
|
} else if len(yyv4761) != 0 {
|
|
yyv4761 = yyv4761[:0]
|
|
yyc4761 = true
|
|
}
|
|
} else if yyl4761 > 0 {
|
|
var yyrr4761, yyrl4761 int
|
|
var yyrt4761 bool
|
|
if yyl4761 > cap(yyv4761) {
|
|
|
|
yyrg4761 := len(yyv4761) > 0
|
|
yyv24761 := yyv4761
|
|
yyrl4761, yyrt4761 = z.DecInferLen(yyl4761, z.DecBasicHandle().MaxInitLen, 248)
|
|
if yyrt4761 {
|
|
if yyrl4761 <= cap(yyv4761) {
|
|
yyv4761 = yyv4761[:yyrl4761]
|
|
} else {
|
|
yyv4761 = make([]ConfigMap, yyrl4761)
|
|
}
|
|
} else {
|
|
yyv4761 = make([]ConfigMap, yyrl4761)
|
|
}
|
|
yyc4761 = true
|
|
yyrr4761 = len(yyv4761)
|
|
if yyrg4761 {
|
|
copy(yyv4761, yyv24761)
|
|
}
|
|
} else if yyl4761 != len(yyv4761) {
|
|
yyv4761 = yyv4761[:yyl4761]
|
|
yyc4761 = true
|
|
}
|
|
yyj4761 := 0
|
|
for ; yyj4761 < yyrr4761; yyj4761++ {
|
|
yyh4761.ElemContainerState(yyj4761)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4761[yyj4761] = ConfigMap{}
|
|
} else {
|
|
yyv4762 := &yyv4761[yyj4761]
|
|
yyv4762.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4761 {
|
|
for ; yyj4761 < yyl4761; yyj4761++ {
|
|
yyv4761 = append(yyv4761, ConfigMap{})
|
|
yyh4761.ElemContainerState(yyj4761)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4761[yyj4761] = ConfigMap{}
|
|
} else {
|
|
yyv4763 := &yyv4761[yyj4761]
|
|
yyv4763.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4761 := 0
|
|
for ; !r.CheckBreak(); yyj4761++ {
|
|
|
|
if yyj4761 >= len(yyv4761) {
|
|
yyv4761 = append(yyv4761, ConfigMap{}) // var yyz4761 ConfigMap
|
|
yyc4761 = true
|
|
}
|
|
yyh4761.ElemContainerState(yyj4761)
|
|
if yyj4761 < len(yyv4761) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4761[yyj4761] = ConfigMap{}
|
|
} else {
|
|
yyv4764 := &yyv4761[yyj4761]
|
|
yyv4764.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4761 < len(yyv4761) {
|
|
yyv4761 = yyv4761[:yyj4761]
|
|
yyc4761 = true
|
|
} else if yyj4761 == 0 && yyv4761 == nil {
|
|
yyv4761 = []ConfigMap{}
|
|
yyc4761 = true
|
|
}
|
|
}
|
|
yyh4761.End()
|
|
if yyc4761 {
|
|
*v = yyv4761
|
|
}
|
|
}
|
|
|
|
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 _, yyv4765 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4766 := &yyv4765
|
|
yy4766.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
|
|
|
|
yyv4767 := *v
|
|
yyh4767, yyl4767 := z.DecSliceHelperStart()
|
|
var yyc4767 bool
|
|
if yyl4767 == 0 {
|
|
if yyv4767 == nil {
|
|
yyv4767 = []ComponentCondition{}
|
|
yyc4767 = true
|
|
} else if len(yyv4767) != 0 {
|
|
yyv4767 = yyv4767[:0]
|
|
yyc4767 = true
|
|
}
|
|
} else if yyl4767 > 0 {
|
|
var yyrr4767, yyrl4767 int
|
|
var yyrt4767 bool
|
|
if yyl4767 > cap(yyv4767) {
|
|
|
|
yyrg4767 := len(yyv4767) > 0
|
|
yyv24767 := yyv4767
|
|
yyrl4767, yyrt4767 = z.DecInferLen(yyl4767, z.DecBasicHandle().MaxInitLen, 64)
|
|
if yyrt4767 {
|
|
if yyrl4767 <= cap(yyv4767) {
|
|
yyv4767 = yyv4767[:yyrl4767]
|
|
} else {
|
|
yyv4767 = make([]ComponentCondition, yyrl4767)
|
|
}
|
|
} else {
|
|
yyv4767 = make([]ComponentCondition, yyrl4767)
|
|
}
|
|
yyc4767 = true
|
|
yyrr4767 = len(yyv4767)
|
|
if yyrg4767 {
|
|
copy(yyv4767, yyv24767)
|
|
}
|
|
} else if yyl4767 != len(yyv4767) {
|
|
yyv4767 = yyv4767[:yyl4767]
|
|
yyc4767 = true
|
|
}
|
|
yyj4767 := 0
|
|
for ; yyj4767 < yyrr4767; yyj4767++ {
|
|
yyh4767.ElemContainerState(yyj4767)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4767[yyj4767] = ComponentCondition{}
|
|
} else {
|
|
yyv4768 := &yyv4767[yyj4767]
|
|
yyv4768.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4767 {
|
|
for ; yyj4767 < yyl4767; yyj4767++ {
|
|
yyv4767 = append(yyv4767, ComponentCondition{})
|
|
yyh4767.ElemContainerState(yyj4767)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4767[yyj4767] = ComponentCondition{}
|
|
} else {
|
|
yyv4769 := &yyv4767[yyj4767]
|
|
yyv4769.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4767 := 0
|
|
for ; !r.CheckBreak(); yyj4767++ {
|
|
|
|
if yyj4767 >= len(yyv4767) {
|
|
yyv4767 = append(yyv4767, ComponentCondition{}) // var yyz4767 ComponentCondition
|
|
yyc4767 = true
|
|
}
|
|
yyh4767.ElemContainerState(yyj4767)
|
|
if yyj4767 < len(yyv4767) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4767[yyj4767] = ComponentCondition{}
|
|
} else {
|
|
yyv4770 := &yyv4767[yyj4767]
|
|
yyv4770.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4767 < len(yyv4767) {
|
|
yyv4767 = yyv4767[:yyj4767]
|
|
yyc4767 = true
|
|
} else if yyj4767 == 0 && yyv4767 == nil {
|
|
yyv4767 = []ComponentCondition{}
|
|
yyc4767 = true
|
|
}
|
|
}
|
|
yyh4767.End()
|
|
if yyc4767 {
|
|
*v = yyv4767
|
|
}
|
|
}
|
|
|
|
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 _, yyv4771 := range v {
|
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
|
yy4772 := &yyv4771
|
|
yy4772.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
|
|
|
|
yyv4773 := *v
|
|
yyh4773, yyl4773 := z.DecSliceHelperStart()
|
|
var yyc4773 bool
|
|
if yyl4773 == 0 {
|
|
if yyv4773 == nil {
|
|
yyv4773 = []ComponentStatus{}
|
|
yyc4773 = true
|
|
} else if len(yyv4773) != 0 {
|
|
yyv4773 = yyv4773[:0]
|
|
yyc4773 = true
|
|
}
|
|
} else if yyl4773 > 0 {
|
|
var yyrr4773, yyrl4773 int
|
|
var yyrt4773 bool
|
|
if yyl4773 > cap(yyv4773) {
|
|
|
|
yyrg4773 := len(yyv4773) > 0
|
|
yyv24773 := yyv4773
|
|
yyrl4773, yyrt4773 = z.DecInferLen(yyl4773, z.DecBasicHandle().MaxInitLen, 264)
|
|
if yyrt4773 {
|
|
if yyrl4773 <= cap(yyv4773) {
|
|
yyv4773 = yyv4773[:yyrl4773]
|
|
} else {
|
|
yyv4773 = make([]ComponentStatus, yyrl4773)
|
|
}
|
|
} else {
|
|
yyv4773 = make([]ComponentStatus, yyrl4773)
|
|
}
|
|
yyc4773 = true
|
|
yyrr4773 = len(yyv4773)
|
|
if yyrg4773 {
|
|
copy(yyv4773, yyv24773)
|
|
}
|
|
} else if yyl4773 != len(yyv4773) {
|
|
yyv4773 = yyv4773[:yyl4773]
|
|
yyc4773 = true
|
|
}
|
|
yyj4773 := 0
|
|
for ; yyj4773 < yyrr4773; yyj4773++ {
|
|
yyh4773.ElemContainerState(yyj4773)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4773[yyj4773] = ComponentStatus{}
|
|
} else {
|
|
yyv4774 := &yyv4773[yyj4773]
|
|
yyv4774.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
if yyrt4773 {
|
|
for ; yyj4773 < yyl4773; yyj4773++ {
|
|
yyv4773 = append(yyv4773, ComponentStatus{})
|
|
yyh4773.ElemContainerState(yyj4773)
|
|
if r.TryDecodeAsNil() {
|
|
yyv4773[yyj4773] = ComponentStatus{}
|
|
} else {
|
|
yyv4775 := &yyv4773[yyj4773]
|
|
yyv4775.CodecDecodeSelf(d)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
} else {
|
|
yyj4773 := 0
|
|
for ; !r.CheckBreak(); yyj4773++ {
|
|
|
|
if yyj4773 >= len(yyv4773) {
|
|
yyv4773 = append(yyv4773, ComponentStatus{}) // var yyz4773 ComponentStatus
|
|
yyc4773 = true
|
|
}
|
|
yyh4773.ElemContainerState(yyj4773)
|
|
if yyj4773 < len(yyv4773) {
|
|
if r.TryDecodeAsNil() {
|
|
yyv4773[yyj4773] = ComponentStatus{}
|
|
} else {
|
|
yyv4776 := &yyv4773[yyj4773]
|
|
yyv4776.CodecDecodeSelf(d)
|
|
}
|
|
|
|
} else {
|
|
z.DecSwallow()
|
|
}
|
|
|
|
}
|
|
if yyj4773 < len(yyv4773) {
|
|
yyv4773 = yyv4773[:yyj4773]
|
|
yyc4773 = true
|
|
} else if yyj4773 == 0 && yyv4773 == nil {
|
|
yyv4773 = []ComponentStatus{}
|
|
yyc4773 = true
|
|
}
|
|
}
|
|
yyh4773.End()
|
|
if yyc4773 {
|
|
*v = yyv4773
|
|
}
|
|
}
|