2018-12-19 14:29:25 +00:00
|
|
|
/*
|
2019-01-15 16:20:41 +00:00
|
|
|
Copyright The Kubernetes Authors.
|
2018-12-19 14:29:25 +00:00
|
|
|
|
|
|
|
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.
|
|
|
|
*/
|
|
|
|
|
2019-01-15 16:20:41 +00:00
|
|
|
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
2018-12-19 14:29:25 +00:00
|
|
|
// source: k8s.io/kubernetes/vendor/k8s.io/api/networking/v1/generated.proto
|
|
|
|
|
|
|
|
package v1
|
|
|
|
|
2020-01-14 10:38:55 +00:00
|
|
|
import (
|
|
|
|
fmt "fmt"
|
2018-12-19 14:29:25 +00:00
|
|
|
|
2020-01-14 10:38:55 +00:00
|
|
|
io "io"
|
2018-12-19 14:29:25 +00:00
|
|
|
|
2020-01-14 10:38:55 +00:00
|
|
|
proto "github.com/gogo/protobuf/proto"
|
|
|
|
k8s_io_api_core_v1 "k8s.io/api/core/v1"
|
2020-12-17 12:28:29 +00:00
|
|
|
v11 "k8s.io/api/core/v1"
|
2020-01-14 10:38:55 +00:00
|
|
|
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
2018-12-19 14:29:25 +00:00
|
|
|
|
2020-01-14 10:38:55 +00:00
|
|
|
math "math"
|
|
|
|
math_bits "math/bits"
|
|
|
|
reflect "reflect"
|
|
|
|
strings "strings"
|
2018-12-19 14:29:25 +00:00
|
|
|
|
2020-01-14 10:38:55 +00:00
|
|
|
intstr "k8s.io/apimachinery/pkg/util/intstr"
|
|
|
|
)
|
2018-12-19 14:29:25 +00:00
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ = proto.Marshal
|
|
|
|
var _ = fmt.Errorf
|
|
|
|
var _ = math.Inf
|
|
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the proto package it is being compiled against.
|
|
|
|
// A compilation error at this line likely means your copy of the
|
|
|
|
// proto package needs to be updated.
|
2020-04-14 07:04:33 +00:00
|
|
|
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
2018-12-19 14:29:25 +00:00
|
|
|
|
2020-12-17 12:28:29 +00:00
|
|
|
func (m *HTTPIngressPath) Reset() { *m = HTTPIngressPath{} }
|
|
|
|
func (*HTTPIngressPath) ProtoMessage() {}
|
|
|
|
func (*HTTPIngressPath) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_1c72867a70a7cc90, []int{0}
|
|
|
|
}
|
|
|
|
func (m *HTTPIngressPath) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *HTTPIngressPath) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *HTTPIngressPath) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_HTTPIngressPath.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *HTTPIngressPath) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *HTTPIngressPath) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_HTTPIngressPath.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_HTTPIngressPath proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *HTTPIngressRuleValue) Reset() { *m = HTTPIngressRuleValue{} }
|
|
|
|
func (*HTTPIngressRuleValue) ProtoMessage() {}
|
|
|
|
func (*HTTPIngressRuleValue) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_1c72867a70a7cc90, []int{1}
|
|
|
|
}
|
|
|
|
func (m *HTTPIngressRuleValue) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *HTTPIngressRuleValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *HTTPIngressRuleValue) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_HTTPIngressRuleValue.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *HTTPIngressRuleValue) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *HTTPIngressRuleValue) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_HTTPIngressRuleValue.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_HTTPIngressRuleValue proto.InternalMessageInfo
|
|
|
|
|
2020-01-14 10:38:55 +00:00
|
|
|
func (m *IPBlock) Reset() { *m = IPBlock{} }
|
|
|
|
func (*IPBlock) ProtoMessage() {}
|
|
|
|
func (*IPBlock) Descriptor() ([]byte, []int) {
|
2020-12-17 12:28:29 +00:00
|
|
|
return fileDescriptor_1c72867a70a7cc90, []int{2}
|
2020-01-14 10:38:55 +00:00
|
|
|
}
|
|
|
|
func (m *IPBlock) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *IPBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *IPBlock) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_IPBlock.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *IPBlock) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *IPBlock) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_IPBlock.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_IPBlock proto.InternalMessageInfo
|
|
|
|
|
2020-12-17 12:28:29 +00:00
|
|
|
func (m *Ingress) Reset() { *m = Ingress{} }
|
|
|
|
func (*Ingress) ProtoMessage() {}
|
|
|
|
func (*Ingress) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_1c72867a70a7cc90, []int{3}
|
|
|
|
}
|
|
|
|
func (m *Ingress) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *Ingress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *Ingress) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Ingress.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *Ingress) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *Ingress) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Ingress.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_Ingress proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *IngressBackend) Reset() { *m = IngressBackend{} }
|
|
|
|
func (*IngressBackend) ProtoMessage() {}
|
|
|
|
func (*IngressBackend) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_1c72867a70a7cc90, []int{4}
|
|
|
|
}
|
|
|
|
func (m *IngressBackend) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *IngressBackend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *IngressBackend) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_IngressBackend.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *IngressBackend) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *IngressBackend) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_IngressBackend.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_IngressBackend proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *IngressClass) Reset() { *m = IngressClass{} }
|
|
|
|
func (*IngressClass) ProtoMessage() {}
|
|
|
|
func (*IngressClass) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_1c72867a70a7cc90, []int{5}
|
|
|
|
}
|
|
|
|
func (m *IngressClass) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *IngressClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *IngressClass) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_IngressClass.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *IngressClass) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *IngressClass) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_IngressClass.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_IngressClass proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *IngressClassList) Reset() { *m = IngressClassList{} }
|
|
|
|
func (*IngressClassList) ProtoMessage() {}
|
|
|
|
func (*IngressClassList) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_1c72867a70a7cc90, []int{6}
|
|
|
|
}
|
|
|
|
func (m *IngressClassList) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *IngressClassList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *IngressClassList) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_IngressClassList.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *IngressClassList) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *IngressClassList) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_IngressClassList.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_IngressClassList proto.InternalMessageInfo
|
|
|
|
|
2021-06-25 04:59:51 +00:00
|
|
|
func (m *IngressClassParametersReference) Reset() { *m = IngressClassParametersReference{} }
|
|
|
|
func (*IngressClassParametersReference) ProtoMessage() {}
|
|
|
|
func (*IngressClassParametersReference) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_1c72867a70a7cc90, []int{7}
|
|
|
|
}
|
|
|
|
func (m *IngressClassParametersReference) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *IngressClassParametersReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *IngressClassParametersReference) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_IngressClassParametersReference.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *IngressClassParametersReference) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *IngressClassParametersReference) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_IngressClassParametersReference.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_IngressClassParametersReference proto.InternalMessageInfo
|
|
|
|
|
2020-12-17 12:28:29 +00:00
|
|
|
func (m *IngressClassSpec) Reset() { *m = IngressClassSpec{} }
|
|
|
|
func (*IngressClassSpec) ProtoMessage() {}
|
|
|
|
func (*IngressClassSpec) Descriptor() ([]byte, []int) {
|
2021-06-25 04:59:51 +00:00
|
|
|
return fileDescriptor_1c72867a70a7cc90, []int{8}
|
2020-12-17 12:28:29 +00:00
|
|
|
}
|
|
|
|
func (m *IngressClassSpec) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *IngressClassSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *IngressClassSpec) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_IngressClassSpec.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *IngressClassSpec) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *IngressClassSpec) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_IngressClassSpec.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_IngressClassSpec proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *IngressList) Reset() { *m = IngressList{} }
|
|
|
|
func (*IngressList) ProtoMessage() {}
|
|
|
|
func (*IngressList) Descriptor() ([]byte, []int) {
|
2021-06-25 04:59:51 +00:00
|
|
|
return fileDescriptor_1c72867a70a7cc90, []int{9}
|
2020-12-17 12:28:29 +00:00
|
|
|
}
|
|
|
|
func (m *IngressList) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *IngressList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *IngressList) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_IngressList.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *IngressList) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *IngressList) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_IngressList.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_IngressList proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *IngressRule) Reset() { *m = IngressRule{} }
|
|
|
|
func (*IngressRule) ProtoMessage() {}
|
|
|
|
func (*IngressRule) Descriptor() ([]byte, []int) {
|
2021-06-25 04:59:51 +00:00
|
|
|
return fileDescriptor_1c72867a70a7cc90, []int{10}
|
2020-12-17 12:28:29 +00:00
|
|
|
}
|
|
|
|
func (m *IngressRule) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *IngressRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *IngressRule) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_IngressRule.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *IngressRule) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *IngressRule) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_IngressRule.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_IngressRule proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *IngressRuleValue) Reset() { *m = IngressRuleValue{} }
|
|
|
|
func (*IngressRuleValue) ProtoMessage() {}
|
|
|
|
func (*IngressRuleValue) Descriptor() ([]byte, []int) {
|
2021-06-25 04:59:51 +00:00
|
|
|
return fileDescriptor_1c72867a70a7cc90, []int{11}
|
2020-12-17 12:28:29 +00:00
|
|
|
}
|
|
|
|
func (m *IngressRuleValue) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *IngressRuleValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *IngressRuleValue) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_IngressRuleValue.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *IngressRuleValue) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *IngressRuleValue) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_IngressRuleValue.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_IngressRuleValue proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *IngressServiceBackend) Reset() { *m = IngressServiceBackend{} }
|
|
|
|
func (*IngressServiceBackend) ProtoMessage() {}
|
|
|
|
func (*IngressServiceBackend) Descriptor() ([]byte, []int) {
|
2021-06-25 04:59:51 +00:00
|
|
|
return fileDescriptor_1c72867a70a7cc90, []int{12}
|
2020-12-17 12:28:29 +00:00
|
|
|
}
|
|
|
|
func (m *IngressServiceBackend) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *IngressServiceBackend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *IngressServiceBackend) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_IngressServiceBackend.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *IngressServiceBackend) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *IngressServiceBackend) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_IngressServiceBackend.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_IngressServiceBackend proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *IngressSpec) Reset() { *m = IngressSpec{} }
|
|
|
|
func (*IngressSpec) ProtoMessage() {}
|
|
|
|
func (*IngressSpec) Descriptor() ([]byte, []int) {
|
2021-06-25 04:59:51 +00:00
|
|
|
return fileDescriptor_1c72867a70a7cc90, []int{13}
|
2020-12-17 12:28:29 +00:00
|
|
|
}
|
|
|
|
func (m *IngressSpec) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *IngressSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *IngressSpec) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_IngressSpec.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *IngressSpec) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *IngressSpec) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_IngressSpec.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_IngressSpec proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *IngressStatus) Reset() { *m = IngressStatus{} }
|
|
|
|
func (*IngressStatus) ProtoMessage() {}
|
|
|
|
func (*IngressStatus) Descriptor() ([]byte, []int) {
|
2021-06-25 04:59:51 +00:00
|
|
|
return fileDescriptor_1c72867a70a7cc90, []int{14}
|
2020-12-17 12:28:29 +00:00
|
|
|
}
|
|
|
|
func (m *IngressStatus) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *IngressStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *IngressStatus) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_IngressStatus.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *IngressStatus) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *IngressStatus) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_IngressStatus.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_IngressStatus proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *IngressTLS) Reset() { *m = IngressTLS{} }
|
|
|
|
func (*IngressTLS) ProtoMessage() {}
|
|
|
|
func (*IngressTLS) Descriptor() ([]byte, []int) {
|
2021-06-25 04:59:51 +00:00
|
|
|
return fileDescriptor_1c72867a70a7cc90, []int{15}
|
2020-12-17 12:28:29 +00:00
|
|
|
}
|
|
|
|
func (m *IngressTLS) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *IngressTLS) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *IngressTLS) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_IngressTLS.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *IngressTLS) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *IngressTLS) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_IngressTLS.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_IngressTLS proto.InternalMessageInfo
|
|
|
|
|
2020-01-14 10:38:55 +00:00
|
|
|
func (m *NetworkPolicy) Reset() { *m = NetworkPolicy{} }
|
|
|
|
func (*NetworkPolicy) ProtoMessage() {}
|
|
|
|
func (*NetworkPolicy) Descriptor() ([]byte, []int) {
|
2021-06-25 04:59:51 +00:00
|
|
|
return fileDescriptor_1c72867a70a7cc90, []int{16}
|
2020-01-14 10:38:55 +00:00
|
|
|
}
|
|
|
|
func (m *NetworkPolicy) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *NetworkPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *NetworkPolicy) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_NetworkPolicy.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *NetworkPolicy) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *NetworkPolicy) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_NetworkPolicy.DiscardUnknown(m)
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
|
2020-01-14 10:38:55 +00:00
|
|
|
var xxx_messageInfo_NetworkPolicy proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *NetworkPolicyEgressRule) Reset() { *m = NetworkPolicyEgressRule{} }
|
|
|
|
func (*NetworkPolicyEgressRule) ProtoMessage() {}
|
|
|
|
func (*NetworkPolicyEgressRule) Descriptor() ([]byte, []int) {
|
2021-06-25 04:59:51 +00:00
|
|
|
return fileDescriptor_1c72867a70a7cc90, []int{17}
|
2020-01-14 10:38:55 +00:00
|
|
|
}
|
|
|
|
func (m *NetworkPolicyEgressRule) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *NetworkPolicyEgressRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *NetworkPolicyEgressRule) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_NetworkPolicyEgressRule.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *NetworkPolicyEgressRule) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *NetworkPolicyEgressRule) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_NetworkPolicyEgressRule.DiscardUnknown(m)
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
|
2020-01-14 10:38:55 +00:00
|
|
|
var xxx_messageInfo_NetworkPolicyEgressRule proto.InternalMessageInfo
|
2018-12-19 14:29:25 +00:00
|
|
|
|
|
|
|
func (m *NetworkPolicyIngressRule) Reset() { *m = NetworkPolicyIngressRule{} }
|
|
|
|
func (*NetworkPolicyIngressRule) ProtoMessage() {}
|
|
|
|
func (*NetworkPolicyIngressRule) Descriptor() ([]byte, []int) {
|
2021-06-25 04:59:51 +00:00
|
|
|
return fileDescriptor_1c72867a70a7cc90, []int{18}
|
2020-01-14 10:38:55 +00:00
|
|
|
}
|
|
|
|
func (m *NetworkPolicyIngressRule) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *NetworkPolicyIngressRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *NetworkPolicyIngressRule) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_NetworkPolicyIngressRule.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *NetworkPolicyIngressRule) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *NetworkPolicyIngressRule) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_NetworkPolicyIngressRule.DiscardUnknown(m)
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
|
2020-01-14 10:38:55 +00:00
|
|
|
var xxx_messageInfo_NetworkPolicyIngressRule proto.InternalMessageInfo
|
2018-12-19 14:29:25 +00:00
|
|
|
|
2020-01-14 10:38:55 +00:00
|
|
|
func (m *NetworkPolicyList) Reset() { *m = NetworkPolicyList{} }
|
|
|
|
func (*NetworkPolicyList) ProtoMessage() {}
|
|
|
|
func (*NetworkPolicyList) Descriptor() ([]byte, []int) {
|
2021-06-25 04:59:51 +00:00
|
|
|
return fileDescriptor_1c72867a70a7cc90, []int{19}
|
2020-01-14 10:38:55 +00:00
|
|
|
}
|
|
|
|
func (m *NetworkPolicyList) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *NetworkPolicyList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *NetworkPolicyList) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_NetworkPolicyList.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *NetworkPolicyList) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *NetworkPolicyList) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_NetworkPolicyList.DiscardUnknown(m)
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
|
2020-01-14 10:38:55 +00:00
|
|
|
var xxx_messageInfo_NetworkPolicyList proto.InternalMessageInfo
|
2018-12-19 14:29:25 +00:00
|
|
|
|
2020-01-14 10:38:55 +00:00
|
|
|
func (m *NetworkPolicyPeer) Reset() { *m = NetworkPolicyPeer{} }
|
|
|
|
func (*NetworkPolicyPeer) ProtoMessage() {}
|
|
|
|
func (*NetworkPolicyPeer) Descriptor() ([]byte, []int) {
|
2021-06-25 04:59:51 +00:00
|
|
|
return fileDescriptor_1c72867a70a7cc90, []int{20}
|
2020-01-14 10:38:55 +00:00
|
|
|
}
|
|
|
|
func (m *NetworkPolicyPeer) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *NetworkPolicyPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *NetworkPolicyPeer) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_NetworkPolicyPeer.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *NetworkPolicyPeer) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *NetworkPolicyPeer) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_NetworkPolicyPeer.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_NetworkPolicyPeer proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *NetworkPolicyPort) Reset() { *m = NetworkPolicyPort{} }
|
|
|
|
func (*NetworkPolicyPort) ProtoMessage() {}
|
|
|
|
func (*NetworkPolicyPort) Descriptor() ([]byte, []int) {
|
2021-06-25 04:59:51 +00:00
|
|
|
return fileDescriptor_1c72867a70a7cc90, []int{21}
|
2020-01-14 10:38:55 +00:00
|
|
|
}
|
|
|
|
func (m *NetworkPolicyPort) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *NetworkPolicyPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *NetworkPolicyPort) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_NetworkPolicyPort.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *NetworkPolicyPort) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *NetworkPolicyPort) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_NetworkPolicyPort.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_NetworkPolicyPort proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *NetworkPolicySpec) Reset() { *m = NetworkPolicySpec{} }
|
|
|
|
func (*NetworkPolicySpec) ProtoMessage() {}
|
|
|
|
func (*NetworkPolicySpec) Descriptor() ([]byte, []int) {
|
2021-06-25 04:59:51 +00:00
|
|
|
return fileDescriptor_1c72867a70a7cc90, []int{22}
|
2020-01-14 10:38:55 +00:00
|
|
|
}
|
|
|
|
func (m *NetworkPolicySpec) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *NetworkPolicySpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *NetworkPolicySpec) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_NetworkPolicySpec.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *NetworkPolicySpec) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *NetworkPolicySpec) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_NetworkPolicySpec.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_NetworkPolicySpec proto.InternalMessageInfo
|
2018-12-19 14:29:25 +00:00
|
|
|
|
2020-12-17 12:28:29 +00:00
|
|
|
func (m *ServiceBackendPort) Reset() { *m = ServiceBackendPort{} }
|
|
|
|
func (*ServiceBackendPort) ProtoMessage() {}
|
|
|
|
func (*ServiceBackendPort) Descriptor() ([]byte, []int) {
|
2021-06-25 04:59:51 +00:00
|
|
|
return fileDescriptor_1c72867a70a7cc90, []int{23}
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
func (m *ServiceBackendPort) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
2020-01-14 10:38:55 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
func (m *ServiceBackendPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
2018-12-19 14:29:25 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *ServiceBackendPort) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ServiceBackendPort.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *ServiceBackendPort) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *ServiceBackendPort) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ServiceBackendPort.DiscardUnknown(m)
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
|
2020-12-17 12:28:29 +00:00
|
|
|
var xxx_messageInfo_ServiceBackendPort proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
proto.RegisterType((*HTTPIngressPath)(nil), "k8s.io.api.networking.v1.HTTPIngressPath")
|
|
|
|
proto.RegisterType((*HTTPIngressRuleValue)(nil), "k8s.io.api.networking.v1.HTTPIngressRuleValue")
|
|
|
|
proto.RegisterType((*IPBlock)(nil), "k8s.io.api.networking.v1.IPBlock")
|
|
|
|
proto.RegisterType((*Ingress)(nil), "k8s.io.api.networking.v1.Ingress")
|
|
|
|
proto.RegisterType((*IngressBackend)(nil), "k8s.io.api.networking.v1.IngressBackend")
|
|
|
|
proto.RegisterType((*IngressClass)(nil), "k8s.io.api.networking.v1.IngressClass")
|
|
|
|
proto.RegisterType((*IngressClassList)(nil), "k8s.io.api.networking.v1.IngressClassList")
|
2021-06-25 04:59:51 +00:00
|
|
|
proto.RegisterType((*IngressClassParametersReference)(nil), "k8s.io.api.networking.v1.IngressClassParametersReference")
|
2020-12-17 12:28:29 +00:00
|
|
|
proto.RegisterType((*IngressClassSpec)(nil), "k8s.io.api.networking.v1.IngressClassSpec")
|
|
|
|
proto.RegisterType((*IngressList)(nil), "k8s.io.api.networking.v1.IngressList")
|
|
|
|
proto.RegisterType((*IngressRule)(nil), "k8s.io.api.networking.v1.IngressRule")
|
|
|
|
proto.RegisterType((*IngressRuleValue)(nil), "k8s.io.api.networking.v1.IngressRuleValue")
|
|
|
|
proto.RegisterType((*IngressServiceBackend)(nil), "k8s.io.api.networking.v1.IngressServiceBackend")
|
|
|
|
proto.RegisterType((*IngressSpec)(nil), "k8s.io.api.networking.v1.IngressSpec")
|
|
|
|
proto.RegisterType((*IngressStatus)(nil), "k8s.io.api.networking.v1.IngressStatus")
|
|
|
|
proto.RegisterType((*IngressTLS)(nil), "k8s.io.api.networking.v1.IngressTLS")
|
|
|
|
proto.RegisterType((*NetworkPolicy)(nil), "k8s.io.api.networking.v1.NetworkPolicy")
|
|
|
|
proto.RegisterType((*NetworkPolicyEgressRule)(nil), "k8s.io.api.networking.v1.NetworkPolicyEgressRule")
|
|
|
|
proto.RegisterType((*NetworkPolicyIngressRule)(nil), "k8s.io.api.networking.v1.NetworkPolicyIngressRule")
|
|
|
|
proto.RegisterType((*NetworkPolicyList)(nil), "k8s.io.api.networking.v1.NetworkPolicyList")
|
|
|
|
proto.RegisterType((*NetworkPolicyPeer)(nil), "k8s.io.api.networking.v1.NetworkPolicyPeer")
|
|
|
|
proto.RegisterType((*NetworkPolicyPort)(nil), "k8s.io.api.networking.v1.NetworkPolicyPort")
|
|
|
|
proto.RegisterType((*NetworkPolicySpec)(nil), "k8s.io.api.networking.v1.NetworkPolicySpec")
|
|
|
|
proto.RegisterType((*ServiceBackendPort)(nil), "k8s.io.api.networking.v1.ServiceBackendPort")
|
2020-01-14 10:38:55 +00:00
|
|
|
}
|
|
|
|
|
2020-12-17 12:28:29 +00:00
|
|
|
func init() {
|
|
|
|
proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/networking/v1/generated.proto", fileDescriptor_1c72867a70a7cc90)
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
|
2020-12-17 12:28:29 +00:00
|
|
|
var fileDescriptor_1c72867a70a7cc90 = []byte{
|
2021-06-25 04:59:51 +00:00
|
|
|
// 1545 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0xcd, 0x6f, 0x1b, 0x45,
|
|
|
|
0x1b, 0xcf, 0x3a, 0x71, 0xec, 0x3c, 0x4e, 0xd2, 0x74, 0xde, 0x56, 0xaf, 0xd5, 0x57, 0xaf, 0x1d,
|
|
|
|
0x56, 0xb4, 0x0d, 0x94, 0xda, 0x24, 0xad, 0x10, 0x9c, 0xa0, 0x9b, 0xb6, 0x69, 0x68, 0x9a, 0x58,
|
|
|
|
0x63, 0xab, 0x08, 0x04, 0xa8, 0x93, 0xf5, 0xc4, 0xd9, 0x7a, 0xbd, 0xb3, 0xcc, 0x8e, 0x43, 0x7b,
|
|
|
|
0xe3, 0xc2, 0x81, 0x1b, 0xff, 0x02, 0x7f, 0x02, 0x82, 0x1b, 0x82, 0xc2, 0x05, 0xf5, 0x58, 0x89,
|
|
|
|
0x4b, 0x2f, 0x58, 0xd4, 0xfc, 0x17, 0x39, 0xa1, 0x99, 0x9d, 0xfd, 0xb0, 0x1d, 0x63, 0xab, 0xaa,
|
|
|
|
0x72, 0x8a, 0xf7, 0xf9, 0xf8, 0x3d, 0x1f, 0xf3, 0x7c, 0xcc, 0x04, 0x6e, 0xb4, 0xdf, 0x0d, 0x2a,
|
|
|
|
0x0e, 0xab, 0xb6, 0xbb, 0xfb, 0x94, 0x7b, 0x54, 0xd0, 0xa0, 0x7a, 0x44, 0xbd, 0x26, 0xe3, 0x55,
|
|
|
|
0xcd, 0x20, 0xbe, 0x53, 0xf5, 0xa8, 0xf8, 0x92, 0xf1, 0xb6, 0xe3, 0xb5, 0xaa, 0x47, 0xeb, 0xd5,
|
|
|
|
0x16, 0xf5, 0x28, 0x27, 0x82, 0x36, 0x2b, 0x3e, 0x67, 0x82, 0xa1, 0x62, 0x28, 0x59, 0x21, 0xbe,
|
|
|
|
0x53, 0x49, 0x24, 0x2b, 0x47, 0xeb, 0x17, 0xae, 0xb6, 0x1c, 0x71, 0xd8, 0xdd, 0xaf, 0xd8, 0xac,
|
|
|
|
0x53, 0x6d, 0xb1, 0x16, 0xab, 0x2a, 0x85, 0xfd, 0xee, 0x81, 0xfa, 0x52, 0x1f, 0xea, 0x57, 0x08,
|
|
|
|
0x74, 0xc1, 0x4c, 0x99, 0xb4, 0x19, 0xa7, 0x27, 0x18, 0xbb, 0x70, 0x3d, 0x91, 0xe9, 0x10, 0xfb,
|
|
|
|
0xd0, 0xf1, 0x28, 0x7f, 0x5c, 0xf5, 0xdb, 0x2d, 0x49, 0x08, 0xaa, 0x1d, 0x2a, 0xc8, 0x49, 0x5a,
|
|
|
|
0xd5, 0x71, 0x5a, 0xbc, 0xeb, 0x09, 0xa7, 0x43, 0x47, 0x14, 0xde, 0x99, 0xa4, 0x10, 0xd8, 0x87,
|
|
|
|
0xb4, 0x43, 0x46, 0xf4, 0xae, 0x8d, 0xd3, 0xeb, 0x0a, 0xc7, 0xad, 0x3a, 0x9e, 0x08, 0x04, 0x1f,
|
|
|
|
0x56, 0x32, 0x7f, 0x31, 0xe0, 0xcc, 0x9d, 0x46, 0xa3, 0xb6, 0xed, 0xb5, 0x38, 0x0d, 0x82, 0x1a,
|
|
|
|
0x11, 0x87, 0x68, 0x15, 0xe6, 0x7c, 0x22, 0x0e, 0x8b, 0xc6, 0xaa, 0xb1, 0xb6, 0x60, 0x2d, 0x3e,
|
|
|
|
0xed, 0x95, 0x67, 0xfa, 0xbd, 0xf2, 0x9c, 0xe4, 0x61, 0xc5, 0x41, 0xd7, 0x21, 0x2f, 0xff, 0x36,
|
|
|
|
0x1e, 0xfb, 0xb4, 0x38, 0xab, 0xa4, 0x8a, 0xfd, 0x5e, 0x39, 0x5f, 0xd3, 0xb4, 0xe3, 0xd4, 0x6f,
|
|
|
|
0x1c, 0x4b, 0xa2, 0x3a, 0xe4, 0xf6, 0x89, 0xdd, 0xa6, 0x5e, 0xb3, 0x98, 0x59, 0x35, 0xd6, 0x0a,
|
|
|
|
0x1b, 0x6b, 0x95, 0x71, 0xc7, 0x57, 0xd1, 0xfe, 0x58, 0xa1, 0xbc, 0x75, 0x46, 0x3b, 0x91, 0xd3,
|
|
|
|
0x04, 0x1c, 0x21, 0x99, 0x07, 0x70, 0x2e, 0xe5, 0x3f, 0xee, 0xba, 0xf4, 0x3e, 0x71, 0xbb, 0x14,
|
|
|
|
0xed, 0x42, 0x56, 0x1a, 0x0e, 0x8a, 0xc6, 0xea, 0xec, 0x5a, 0x61, 0xe3, 0x8d, 0xf1, 0xa6, 0x86,
|
|
|
|
0xc2, 0xb7, 0x96, 0xb4, 0xad, 0xac, 0xfc, 0x0a, 0x70, 0x08, 0x63, 0xee, 0x41, 0x6e, 0xbb, 0x66,
|
|
|
|
0xb9, 0xcc, 0x6e, 0xcb, 0xfc, 0xd8, 0x4e, 0x93, 0x0f, 0xe7, 0x67, 0x73, 0xfb, 0x26, 0xc6, 0x8a,
|
|
|
|
0x83, 0x4c, 0x98, 0xa7, 0x8f, 0x6c, 0xea, 0x8b, 0x62, 0x66, 0x75, 0x76, 0x6d, 0xc1, 0x82, 0x7e,
|
|
|
|
0xaf, 0x3c, 0x7f, 0x4b, 0x51, 0xb0, 0xe6, 0x98, 0x5f, 0x67, 0x20, 0xa7, 0xcd, 0xa2, 0x07, 0x90,
|
|
|
|
0x97, 0xe5, 0xd3, 0x24, 0x82, 0x28, 0xd4, 0xc2, 0xc6, 0xdb, 0x29, 0x7f, 0xe3, 0xd3, 0xac, 0xf8,
|
|
|
|
0xed, 0x96, 0x24, 0x04, 0x15, 0x29, 0x2d, 0x7d, 0xdf, 0xdb, 0x7f, 0x48, 0x6d, 0x71, 0x8f, 0x0a,
|
|
|
|
0x62, 0x21, 0xed, 0x07, 0x24, 0x34, 0x1c, 0xa3, 0xa2, 0x2d, 0x98, 0x0b, 0x7c, 0x6a, 0xeb, 0xc4,
|
|
|
|
0x5f, 0x9c, 0x98, 0xf8, 0xba, 0x4f, 0xed, 0x24, 0x34, 0xf9, 0x85, 0x15, 0x00, 0xda, 0x83, 0xf9,
|
|
|
|
0x40, 0x10, 0xd1, 0x0d, 0xd4, 0xc1, 0x17, 0x36, 0x2e, 0x4f, 0x86, 0x52, 0xe2, 0xd6, 0xb2, 0x06,
|
|
|
|
0x9b, 0x0f, 0xbf, 0xb1, 0x86, 0x31, 0x7f, 0x33, 0x60, 0x79, 0xf0, 0xb4, 0xd1, 0x7d, 0xc8, 0x05,
|
|
|
|
0x94, 0x1f, 0x39, 0x36, 0x2d, 0xce, 0x29, 0x23, 0xd5, 0xc9, 0x46, 0x42, 0xf9, 0xa8, 0x5e, 0x0a,
|
|
|
|
0xb2, 0x56, 0x34, 0x0d, 0x47, 0x60, 0xe8, 0x23, 0xc8, 0x73, 0x1a, 0xb0, 0x2e, 0xb7, 0xa9, 0xf6,
|
|
|
|
0xfe, 0x6a, 0x1a, 0x58, 0xf6, 0xbd, 0x84, 0x94, 0xc5, 0xda, 0xdc, 0x61, 0x36, 0x71, 0xc3, 0x54,
|
|
|
|
0x62, 0x7a, 0x40, 0x39, 0xf5, 0x6c, 0x6a, 0x2d, 0xca, 0x2a, 0xc7, 0x1a, 0x02, 0xc7, 0x60, 0xb2,
|
|
|
|
0x8b, 0x16, 0xb5, 0x23, 0x9b, 0x2e, 0x39, 0x95, 0x03, 0xdd, 0x19, 0x38, 0xd0, 0x37, 0x27, 0x26,
|
|
|
|
0x48, 0xf9, 0x35, 0xee, 0x54, 0xcd, 0x9f, 0x0d, 0x58, 0x49, 0x0b, 0xee, 0x38, 0x81, 0x40, 0x9f,
|
|
|
|
0x8e, 0x04, 0x51, 0x99, 0x2e, 0x08, 0xa9, 0xad, 0x42, 0x58, 0xd1, 0xa6, 0xf2, 0x11, 0x25, 0x15,
|
|
|
|
0xc0, 0x5d, 0xc8, 0x3a, 0x82, 0x76, 0x02, 0xd5, 0x22, 0x85, 0x8d, 0x4b, 0xd3, 0x45, 0x90, 0x74,
|
|
|
|
0xe7, 0xb6, 0x54, 0xc6, 0x21, 0x86, 0xf9, 0xa7, 0x01, 0xe5, 0xb4, 0x58, 0x8d, 0x70, 0xd2, 0xa1,
|
|
|
|
0x82, 0xf2, 0x20, 0x3e, 0x3c, 0xb4, 0x06, 0x79, 0x52, 0xdb, 0xde, 0xe2, 0xac, 0xeb, 0x47, 0xad,
|
|
|
|
0x2b, 0x5d, 0xbb, 0xa1, 0x69, 0x38, 0xe6, 0xca, 0x06, 0x6f, 0x3b, 0x7a, 0x4a, 0xa5, 0x1a, 0xfc,
|
|
|
|
0xae, 0xe3, 0x35, 0xb1, 0xe2, 0x48, 0x09, 0x8f, 0x74, 0xa2, 0xe1, 0x17, 0x4b, 0xec, 0x92, 0x0e,
|
|
|
|
0xc5, 0x8a, 0x83, 0xca, 0x90, 0x0d, 0x6c, 0xe6, 0x87, 0x15, 0xbc, 0x60, 0x2d, 0x48, 0x97, 0xeb,
|
|
|
|
0x92, 0x80, 0x43, 0x3a, 0xba, 0x02, 0x0b, 0x52, 0x30, 0xf0, 0x89, 0x4d, 0x8b, 0x59, 0x25, 0xb4,
|
|
|
|
0xd4, 0xef, 0x95, 0x17, 0x76, 0x23, 0x22, 0x4e, 0xf8, 0xe6, 0xf7, 0x43, 0xe7, 0x23, 0x8f, 0x0e,
|
|
|
|
0x6d, 0x00, 0xd8, 0xcc, 0x13, 0x9c, 0xb9, 0x2e, 0x8d, 0xa6, 0x51, 0x5c, 0x34, 0x9b, 0x31, 0x07,
|
|
|
|
0xa7, 0xa4, 0x90, 0x03, 0xe0, 0xc7, 0xb9, 0xd1, 0xc5, 0xf3, 0xde, 0x74, 0xa9, 0x3f, 0x21, 0xa7,
|
|
|
|
0xd6, 0xb2, 0x34, 0x95, 0x62, 0xa4, 0xc0, 0xcd, 0x1f, 0x0c, 0x28, 0x68, 0xfd, 0x53, 0x28, 0xa7,
|
|
|
|
0xdb, 0x83, 0xe5, 0xf4, 0xda, 0xe4, 0xd5, 0x72, 0x72, 0x25, 0x7d, 0x97, 0x78, 0x2d, 0x97, 0x89,
|
|
|
|
0x3c, 0xe9, 0x43, 0x16, 0x88, 0xe1, 0x61, 0x7f, 0x87, 0x05, 0x02, 0x2b, 0x0e, 0xf2, 0x61, 0xc5,
|
|
|
|
0x19, 0xda, 0x3e, 0x53, 0x77, 0x65, 0xac, 0x61, 0x15, 0x35, 0xf2, 0xca, 0x30, 0x07, 0x8f, 0xa0,
|
|
|
|
0x9b, 0x0f, 0x60, 0x44, 0x4a, 0xce, 0x83, 0x43, 0x21, 0xfc, 0x13, 0x32, 0x3b, 0x7e, 0xdd, 0x25,
|
|
|
|
0xd6, 0xf3, 0x2a, 0xa6, 0x46, 0xa3, 0x86, 0x15, 0x8a, 0xf9, 0x8d, 0x01, 0xe7, 0x4f, 0x9c, 0xac,
|
|
|
|
0x71, 0xe5, 0x1b, 0x63, 0x2b, 0x7f, 0x17, 0xe6, 0x7c, 0xc6, 0x85, 0xce, 0xc1, 0x5b, 0xe3, 0x3d,
|
|
|
|
0x19, 0x44, 0xae, 0x31, 0x2e, 0x52, 0x97, 0x0d, 0xc6, 0x05, 0x56, 0x38, 0xe6, 0xef, 0x99, 0xf8,
|
|
|
|
0x44, 0x54, 0xd9, 0x7f, 0x10, 0xe7, 0x5b, 0x95, 0xa5, 0xb4, 0xac, 0x9b, 0xec, 0x5c, 0x2a, 0x7f,
|
|
|
|
0x31, 0x0f, 0x8f, 0x48, 0xa3, 0x26, 0x2c, 0x37, 0xe9, 0x01, 0xe9, 0xba, 0x42, 0xdb, 0xd6, 0x59,
|
|
|
|
0x9b, 0xfe, 0x3e, 0x82, 0xfa, 0xbd, 0xf2, 0xf2, 0xcd, 0x01, 0x0c, 0x3c, 0x84, 0x89, 0x36, 0x61,
|
|
|
|
0x56, 0xb8, 0x51, 0x3d, 0xbe, 0x3e, 0x11, 0xba, 0xb1, 0x53, 0xb7, 0x0a, 0x3a, 0xfc, 0xd9, 0xc6,
|
|
|
|
0x4e, 0x1d, 0x4b, 0x6d, 0xf4, 0x21, 0x64, 0x79, 0xd7, 0xa5, 0x72, 0xdb, 0xce, 0x4e, 0xb5, 0xb8,
|
|
|
|
0xe5, 0x99, 0x26, 0xa5, 0x2d, 0xbf, 0x02, 0x1c, 0x42, 0x98, 0x5f, 0xc0, 0xd2, 0xc0, 0x4a, 0x46,
|
|
|
|
0x0f, 0x60, 0xd1, 0x65, 0xa4, 0x69, 0x11, 0x97, 0x78, 0xb6, 0x1e, 0x21, 0x43, 0x93, 0x38, 0xda,
|
|
|
|
0x89, 0x3b, 0x29, 0x39, 0xbd, 0xd0, 0xcf, 0x69, 0x23, 0x8b, 0x69, 0x1e, 0x1e, 0x40, 0x34, 0x09,
|
|
|
|
0x40, 0x12, 0x9e, 0x9c, 0x89, 0xb2, 0x63, 0xc2, 0x3b, 0x99, 0x9e, 0x89, 0xb2, 0x91, 0x02, 0x1c,
|
|
|
|
0xd2, 0xe5, 0x44, 0x0b, 0xa8, 0xcd, 0xa9, 0x50, 0x87, 0x9a, 0x19, 0x9c, 0x68, 0xf5, 0x98, 0x83,
|
|
|
|
0x53, 0x52, 0xe6, 0xaf, 0x06, 0x2c, 0xed, 0x86, 0x99, 0xa8, 0x31, 0xd7, 0xb1, 0x1f, 0x9f, 0xc2,
|
|
|
|
0xf2, 0xbd, 0x37, 0xb0, 0x7c, 0xaf, 0x8c, 0x3f, 0x94, 0x01, 0xc7, 0xc6, 0x6e, 0xdf, 0x1f, 0x0d,
|
|
|
|
0xf8, 0xef, 0x80, 0xe4, 0xad, 0x64, 0xfe, 0xd4, 0x20, 0x2b, 0xbb, 0x20, 0xba, 0xc7, 0x4e, 0x6b,
|
|
|
|
0x4b, 0x75, 0x53, 0x72, 0x93, 0x95, 0x08, 0x38, 0x04, 0x42, 0x5b, 0x90, 0x11, 0x4c, 0x97, 0xe5,
|
|
|
|
0xd4, 0x70, 0x94, 0x72, 0x0b, 0x34, 0x5c, 0xa6, 0xc1, 0x70, 0x46, 0x30, 0xf3, 0x27, 0x03, 0x8a,
|
|
|
|
0x03, 0x52, 0xe9, 0xb9, 0xf9, 0xea, 0xfd, 0xbe, 0x07, 0x73, 0x07, 0x9c, 0x75, 0x5e, 0xc6, 0xf3,
|
|
|
|
0x38, 0xe9, 0xb7, 0x39, 0xeb, 0x60, 0x05, 0x63, 0x3e, 0x31, 0xe0, 0xec, 0x80, 0xe4, 0x29, 0x2c,
|
|
|
|
0xa9, 0x9d, 0xc1, 0x25, 0x75, 0x79, 0xca, 0x18, 0xc6, 0xac, 0xaa, 0x27, 0x99, 0xa1, 0x08, 0x64,
|
|
|
|
0xac, 0xe8, 0x00, 0x0a, 0x3e, 0x6b, 0xd6, 0xa9, 0x4b, 0x6d, 0xc1, 0xa2, 0x9e, 0xbe, 0x36, 0x65,
|
|
|
|
0x10, 0x64, 0x9f, 0xba, 0x91, 0xaa, 0x75, 0xa6, 0xdf, 0x2b, 0x17, 0x6a, 0x09, 0x16, 0x4e, 0x03,
|
|
|
|
0xa3, 0x47, 0x70, 0x36, 0xbe, 0x9f, 0xc4, 0xd6, 0x32, 0x2f, 0x6f, 0xed, 0x7c, 0xbf, 0x57, 0x3e,
|
|
|
|
0xbb, 0x3b, 0x8c, 0x88, 0x47, 0x8d, 0xa0, 0x3b, 0x90, 0x73, 0x7c, 0xf5, 0x14, 0xd3, 0xb7, 0xf8,
|
|
|
|
0x7f, 0x5b, 0xf6, 0xe1, 0x9b, 0x2d, 0x7c, 0x10, 0xe8, 0x0f, 0x1c, 0xa9, 0x9b, 0x7f, 0x0c, 0xd7,
|
|
|
|
0x80, 0x2c, 0x38, 0xb4, 0x05, 0x79, 0xf5, 0x38, 0xb6, 0x99, 0xab, 0xd7, 0xdc, 0x15, 0xf5, 0xba,
|
|
|
|
0xd5, 0xb4, 0xe3, 0x5e, 0xf9, 0x7f, 0xa3, 0xff, 0x2d, 0xa8, 0x44, 0x6c, 0x1c, 0x2b, 0x0f, 0x6d,
|
|
|
|
0xc2, 0xf1, 0x43, 0x48, 0x3e, 0xd0, 0x2b, 0xe1, 0x03, 0xbd, 0xb2, 0xed, 0x89, 0x3d, 0x5e, 0x17,
|
|
|
|
0xdc, 0xf1, 0x5a, 0xe1, 0x56, 0x4e, 0x36, 0x21, 0xba, 0x08, 0x39, 0xbd, 0x28, 0x55, 0xe0, 0xd9,
|
|
|
|
0x30, 0xaa, 0x5b, 0x21, 0x09, 0x47, 0x3c, 0xf3, 0x78, 0xb8, 0x2e, 0xd4, 0xda, 0x7c, 0xf8, 0xca,
|
|
|
|
0xea, 0xe2, 0x3f, 0xba, 0x1a, 0xc7, 0xd7, 0xc6, 0x67, 0x90, 0xd3, 0x4b, 0x57, 0x57, 0xfa, 0xc6,
|
|
|
|
0x94, 0x95, 0x9e, 0x5e, 0x62, 0xf1, 0x9b, 0x3f, 0x22, 0x46, 0x98, 0xe8, 0x63, 0x98, 0xa7, 0x21,
|
|
|
|
0x7a, 0xb8, 0x15, 0xd7, 0xa7, 0x44, 0x4f, 0xc6, 0x6a, 0xf2, 0x1a, 0xd5, 0x34, 0x0d, 0x88, 0xde,
|
|
|
|
0x97, 0x59, 0x92, 0xb2, 0xf2, 0x11, 0x18, 0x14, 0xe7, 0xd4, 0xa2, 0xfa, 0x7f, 0x18, 0x6c, 0x4c,
|
|
|
|
0x3e, 0x96, 0x97, 0xde, 0xf8, 0x13, 0xa7, 0x35, 0xcc, 0xcf, 0x01, 0x8d, 0xde, 0x6b, 0xa6, 0xb8,
|
|
|
|
0x35, 0x5d, 0x82, 0x79, 0xaf, 0xdb, 0xd9, 0xa7, 0x61, 0x0f, 0x65, 0x13, 0x07, 0x77, 0x15, 0x15,
|
|
|
|
0x6b, 0xae, 0xb5, 0xf6, 0xf4, 0x45, 0x69, 0xe6, 0xd9, 0x8b, 0xd2, 0xcc, 0xf3, 0x17, 0xa5, 0x99,
|
|
|
|
0xaf, 0xfa, 0x25, 0xe3, 0x69, 0xbf, 0x64, 0x3c, 0xeb, 0x97, 0x8c, 0xe7, 0xfd, 0x92, 0xf1, 0x57,
|
|
|
|
0xbf, 0x64, 0x7c, 0xfb, 0x77, 0x69, 0xe6, 0x93, 0xcc, 0xd1, 0xfa, 0x3f, 0x01, 0x00, 0x00, 0xff,
|
|
|
|
0xff, 0xe9, 0x15, 0xcc, 0xab, 0x5f, 0x13, 0x00, 0x00,
|
2020-12-17 12:28:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *HTTPIngressPath) Marshal() (dAtA []byte, err error) {
|
2018-12-19 14:29:25 +00:00
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2020-01-14 10:38:55 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2018-12-19 14:29:25 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
2020-12-17 12:28:29 +00:00
|
|
|
func (m *HTTPIngressPath) MarshalTo(dAtA []byte) (int, error) {
|
2020-01-14 10:38:55 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
2020-12-17 12:28:29 +00:00
|
|
|
func (m *HTTPIngressPath) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
2020-01-14 10:38:55 +00:00
|
|
|
i := len(dAtA)
|
2018-12-19 14:29:25 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2020-12-17 12:28:29 +00:00
|
|
|
if m.PathType != nil {
|
|
|
|
i -= len(*m.PathType)
|
|
|
|
copy(dAtA[i:], *m.PathType)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(*m.PathType)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x1a
|
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
{
|
2020-12-17 12:28:29 +00:00
|
|
|
size, err := m.Backend.MarshalToSizedBuffer(dAtA[:i])
|
2020-01-14 10:38:55 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
2018-12-19 14:29:25 +00:00
|
|
|
dAtA[i] = 0x12
|
2020-12-17 12:28:29 +00:00
|
|
|
i -= len(m.Path)
|
|
|
|
copy(dAtA[i:], m.Path)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Path)))
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
|
2020-12-17 12:28:29 +00:00
|
|
|
func (m *HTTPIngressRuleValue) Marshal() (dAtA []byte, err error) {
|
2018-12-19 14:29:25 +00:00
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2020-01-14 10:38:55 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2018-12-19 14:29:25 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
2020-12-17 12:28:29 +00:00
|
|
|
func (m *HTTPIngressRuleValue) MarshalTo(dAtA []byte) (int, error) {
|
2020-01-14 10:38:55 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
2020-12-17 12:28:29 +00:00
|
|
|
func (m *HTTPIngressRuleValue) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
2020-01-14 10:38:55 +00:00
|
|
|
i := len(dAtA)
|
2018-12-19 14:29:25 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2020-12-17 12:28:29 +00:00
|
|
|
if len(m.Paths) > 0 {
|
|
|
|
for iNdEx := len(m.Paths) - 1; iNdEx >= 0; iNdEx-- {
|
2020-01-14 10:38:55 +00:00
|
|
|
{
|
2020-12-17 12:28:29 +00:00
|
|
|
size, err := m.Paths[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
2020-01-14 10:38:55 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
return len(dAtA) - i, nil
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
|
2020-12-17 12:28:29 +00:00
|
|
|
func (m *IPBlock) Marshal() (dAtA []byte, err error) {
|
2018-12-19 14:29:25 +00:00
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2020-01-14 10:38:55 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2018-12-19 14:29:25 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
2020-12-17 12:28:29 +00:00
|
|
|
func (m *IPBlock) MarshalTo(dAtA []byte) (int, error) {
|
2020-01-14 10:38:55 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
2020-12-17 12:28:29 +00:00
|
|
|
func (m *IPBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
2020-01-14 10:38:55 +00:00
|
|
|
i := len(dAtA)
|
2018-12-19 14:29:25 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2020-12-17 12:28:29 +00:00
|
|
|
if len(m.Except) > 0 {
|
|
|
|
for iNdEx := len(m.Except) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
i -= len(m.Except[iNdEx])
|
|
|
|
copy(dAtA[i:], m.Except[iNdEx])
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Except[iNdEx])))
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
i -= len(m.CIDR)
|
|
|
|
copy(dAtA[i:], m.CIDR)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.CIDR)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
2020-01-14 10:38:55 +00:00
|
|
|
return len(dAtA) - i, nil
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
|
2020-12-17 12:28:29 +00:00
|
|
|
func (m *Ingress) Marshal() (dAtA []byte, err error) {
|
2018-12-19 14:29:25 +00:00
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2020-01-14 10:38:55 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2018-12-19 14:29:25 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
2020-12-17 12:28:29 +00:00
|
|
|
func (m *Ingress) MarshalTo(dAtA []byte) (int, error) {
|
2020-01-14 10:38:55 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
2020-12-17 12:28:29 +00:00
|
|
|
func (m *Ingress) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
2020-01-14 10:38:55 +00:00
|
|
|
i := len(dAtA)
|
2018-12-19 14:29:25 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2020-12-17 12:28:29 +00:00
|
|
|
{
|
|
|
|
size, err := m.Status.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
2020-01-14 10:38:55 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2020-01-14 10:38:55 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x1a
|
2020-01-14 10:38:55 +00:00
|
|
|
{
|
2020-12-17 12:28:29 +00:00
|
|
|
size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
{
|
|
|
|
size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
|
2020-01-14 10:38:55 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
|
2020-12-17 12:28:29 +00:00
|
|
|
func (m *IngressBackend) Marshal() (dAtA []byte, err error) {
|
2018-12-19 14:29:25 +00:00
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2020-01-14 10:38:55 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2018-12-19 14:29:25 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
2020-12-17 12:28:29 +00:00
|
|
|
func (m *IngressBackend) MarshalTo(dAtA []byte) (int, error) {
|
2020-01-14 10:38:55 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
2020-12-17 12:28:29 +00:00
|
|
|
func (m *IngressBackend) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
2020-01-14 10:38:55 +00:00
|
|
|
i := len(dAtA)
|
2018-12-19 14:29:25 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2020-12-17 12:28:29 +00:00
|
|
|
if m.Service != nil {
|
2020-01-14 10:38:55 +00:00
|
|
|
{
|
2020-12-17 12:28:29 +00:00
|
|
|
size, err := m.Service.MarshalToSizedBuffer(dAtA[:i])
|
2020-01-14 10:38:55 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
2020-12-17 12:28:29 +00:00
|
|
|
dAtA[i] = 0x22
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
if m.Resource != nil {
|
2020-01-14 10:38:55 +00:00
|
|
|
{
|
2020-12-17 12:28:29 +00:00
|
|
|
size, err := m.Resource.MarshalToSizedBuffer(dAtA[:i])
|
2020-01-14 10:38:55 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
2020-12-17 12:28:29 +00:00
|
|
|
dAtA[i] = 0x1a
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
return len(dAtA) - i, nil
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
|
2020-12-17 12:28:29 +00:00
|
|
|
func (m *IngressClass) Marshal() (dAtA []byte, err error) {
|
2018-12-19 14:29:25 +00:00
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2020-01-14 10:38:55 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2018-12-19 14:29:25 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
2020-12-17 12:28:29 +00:00
|
|
|
func (m *IngressClass) MarshalTo(dAtA []byte) (int, error) {
|
2020-01-14 10:38:55 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
2020-12-17 12:28:29 +00:00
|
|
|
func (m *IngressClass) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
2020-01-14 10:38:55 +00:00
|
|
|
i := len(dAtA)
|
2018-12-19 14:29:25 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2020-12-17 12:28:29 +00:00
|
|
|
{
|
|
|
|
size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
{
|
|
|
|
size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2020-01-14 10:38:55 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
2020-01-14 10:38:55 +00:00
|
|
|
return len(dAtA) - i, nil
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
|
2020-12-17 12:28:29 +00:00
|
|
|
func (m *IngressClassList) Marshal() (dAtA []byte, err error) {
|
2018-12-19 14:29:25 +00:00
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2020-01-14 10:38:55 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2018-12-19 14:29:25 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
2020-12-17 12:28:29 +00:00
|
|
|
func (m *IngressClassList) MarshalTo(dAtA []byte) (int, error) {
|
2020-01-14 10:38:55 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
2020-12-17 12:28:29 +00:00
|
|
|
func (m *IngressClassList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
2020-01-14 10:38:55 +00:00
|
|
|
i := len(dAtA)
|
2018-12-19 14:29:25 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2020-12-17 12:28:29 +00:00
|
|
|
if len(m.Items) > 0 {
|
|
|
|
for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
|
2020-01-14 10:38:55 +00:00
|
|
|
{
|
2020-12-17 12:28:29 +00:00
|
|
|
size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
2020-01-14 10:38:55 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
{
|
2020-12-17 12:28:29 +00:00
|
|
|
size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
|
2020-01-14 10:38:55 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
|
2021-06-25 04:59:51 +00:00
|
|
|
func (m *IngressClassParametersReference) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *IngressClassParametersReference) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *IngressClassParametersReference) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.Namespace != nil {
|
|
|
|
i -= len(*m.Namespace)
|
|
|
|
copy(dAtA[i:], *m.Namespace)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Namespace)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x2a
|
|
|
|
}
|
|
|
|
if m.Scope != nil {
|
|
|
|
i -= len(*m.Scope)
|
|
|
|
copy(dAtA[i:], *m.Scope)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Scope)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x22
|
|
|
|
}
|
|
|
|
i -= len(m.Name)
|
|
|
|
copy(dAtA[i:], m.Name)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x1a
|
|
|
|
i -= len(m.Kind)
|
|
|
|
copy(dAtA[i:], m.Kind)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
if m.APIGroup != nil {
|
|
|
|
i -= len(*m.APIGroup)
|
|
|
|
copy(dAtA[i:], *m.APIGroup)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(*m.APIGroup)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
}
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
|
2020-12-17 12:28:29 +00:00
|
|
|
func (m *IngressClassSpec) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
return dAtA[:n], nil
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
|
|
|
|
func (m *IngressClassSpec) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *IngressClassSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
2018-12-19 14:29:25 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
2020-12-17 12:28:29 +00:00
|
|
|
if m.Parameters != nil {
|
|
|
|
{
|
|
|
|
size, err := m.Parameters.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
i -= len(m.Controller)
|
|
|
|
copy(dAtA[i:], m.Controller)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Controller)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
|
2020-12-17 12:28:29 +00:00
|
|
|
func (m *IngressList) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
2020-01-14 10:38:55 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
return dAtA[:n], nil
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
|
2020-12-17 12:28:29 +00:00
|
|
|
func (m *IngressList) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *IngressList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
2018-12-19 14:29:25 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
2020-12-17 12:28:29 +00:00
|
|
|
if len(m.Items) > 0 {
|
|
|
|
for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
{
|
|
|
|
size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
{
|
|
|
|
size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
|
2020-12-17 12:28:29 +00:00
|
|
|
func (m *IngressRule) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
2020-01-14 10:38:55 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *IngressRule) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *IngressRule) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
2018-12-19 14:29:25 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
2020-12-17 12:28:29 +00:00
|
|
|
{
|
|
|
|
size, err := m.IngressRuleValue.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
i -= len(m.Host)
|
|
|
|
copy(dAtA[i:], m.Host)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Host)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
|
2020-12-17 12:28:29 +00:00
|
|
|
func (m *IngressRuleValue) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
2020-01-14 10:38:55 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *IngressRuleValue) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *IngressRuleValue) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
2018-12-19 14:29:25 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
2020-12-17 12:28:29 +00:00
|
|
|
if m.HTTP != nil {
|
|
|
|
{
|
|
|
|
size, err := m.HTTP.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
return len(dAtA) - i, nil
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
|
2020-12-17 12:28:29 +00:00
|
|
|
func (m *IngressServiceBackend) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
return dAtA[:n], nil
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
|
2020-12-17 12:28:29 +00:00
|
|
|
func (m *IngressServiceBackend) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
|
2020-12-17 12:28:29 +00:00
|
|
|
func (m *IngressServiceBackend) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
2018-12-19 14:29:25 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
2020-12-17 12:28:29 +00:00
|
|
|
{
|
|
|
|
size, err := m.Port.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
i -= len(m.Name)
|
|
|
|
copy(dAtA[i:], m.Name)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *IngressSpec) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
return dAtA[:n], nil
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
|
2020-12-17 12:28:29 +00:00
|
|
|
func (m *IngressSpec) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
|
|
|
|
func (m *IngressSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.IngressClassName != nil {
|
|
|
|
i -= len(*m.IngressClassName)
|
|
|
|
copy(dAtA[i:], *m.IngressClassName)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(*m.IngressClassName)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x22
|
|
|
|
}
|
|
|
|
if len(m.Rules) > 0 {
|
|
|
|
for iNdEx := len(m.Rules) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
{
|
|
|
|
size, err := m.Rules[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x1a
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if len(m.TLS) > 0 {
|
|
|
|
for iNdEx := len(m.TLS) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
{
|
|
|
|
size, err := m.TLS[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if m.DefaultBackend != nil {
|
|
|
|
{
|
|
|
|
size, err := m.DefaultBackend.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
}
|
|
|
|
return len(dAtA) - i, nil
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
|
|
|
|
func (m *IngressStatus) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
return dAtA[:n], nil
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
|
|
|
|
func (m *IngressStatus) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *IngressStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
{
|
|
|
|
size, err := m.LoadBalancer.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
|
|
|
|
func (m *IngressTLS) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *IngressTLS) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *IngressTLS) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
i -= len(m.SecretName)
|
|
|
|
copy(dAtA[i:], m.SecretName)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.SecretName)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
if len(m.Hosts) > 0 {
|
|
|
|
for iNdEx := len(m.Hosts) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
i -= len(m.Hosts[iNdEx])
|
|
|
|
copy(dAtA[i:], m.Hosts[iNdEx])
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Hosts[iNdEx])))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NetworkPolicy) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
2020-01-14 10:38:55 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
return dAtA[:n], nil
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
|
|
|
|
func (m *NetworkPolicy) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NetworkPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
{
|
|
|
|
size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
{
|
|
|
|
size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2020-01-14 10:38:55 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NetworkPolicyEgressRule) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
2020-01-14 10:38:55 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
return dAtA[:n], nil
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
|
|
|
|
func (m *NetworkPolicyEgressRule) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NetworkPolicyEgressRule) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.To) > 0 {
|
|
|
|
for iNdEx := len(m.To) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
{
|
|
|
|
size, err := m.To[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
if len(m.Ports) > 0 {
|
|
|
|
for iNdEx := len(m.Ports) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
{
|
|
|
|
size, err := m.Ports[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
return len(dAtA) - i, nil
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
|
|
|
|
func (m *NetworkPolicyIngressRule) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NetworkPolicyIngressRule) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NetworkPolicyIngressRule) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.From) > 0 {
|
|
|
|
for iNdEx := len(m.From) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
{
|
|
|
|
size, err := m.From[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if len(m.Ports) > 0 {
|
|
|
|
for iNdEx := len(m.Ports) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
{
|
|
|
|
size, err := m.Ports[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NetworkPolicyList) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NetworkPolicyList) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NetworkPolicyList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Items) > 0 {
|
|
|
|
for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
{
|
|
|
|
size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NetworkPolicyPeer) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NetworkPolicyPeer) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NetworkPolicyPeer) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.IPBlock != nil {
|
|
|
|
{
|
|
|
|
size, err := m.IPBlock.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x1a
|
|
|
|
}
|
|
|
|
if m.NamespaceSelector != nil {
|
|
|
|
{
|
|
|
|
size, err := m.NamespaceSelector.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
}
|
|
|
|
if m.PodSelector != nil {
|
|
|
|
{
|
|
|
|
size, err := m.PodSelector.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
}
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NetworkPolicyPort) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NetworkPolicyPort) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NetworkPolicyPort) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2021-06-25 04:59:51 +00:00
|
|
|
if m.EndPort != nil {
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(*m.EndPort))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x18
|
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
if m.Port != nil {
|
|
|
|
{
|
|
|
|
size, err := m.Port.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
}
|
|
|
|
if m.Protocol != nil {
|
|
|
|
i -= len(*m.Protocol)
|
|
|
|
copy(dAtA[i:], *m.Protocol)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Protocol)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
}
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NetworkPolicySpec) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NetworkPolicySpec) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NetworkPolicySpec) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.PolicyTypes) > 0 {
|
|
|
|
for iNdEx := len(m.PolicyTypes) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
i -= len(m.PolicyTypes[iNdEx])
|
|
|
|
copy(dAtA[i:], m.PolicyTypes[iNdEx])
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.PolicyTypes[iNdEx])))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x22
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if len(m.Egress) > 0 {
|
|
|
|
for iNdEx := len(m.Egress) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
{
|
|
|
|
size, err := m.Egress[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x1a
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if len(m.Ingress) > 0 {
|
|
|
|
for iNdEx := len(m.Ingress) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
{
|
|
|
|
size, err := m.Ingress[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
size, err := m.PodSelector.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ServiceBackendPort) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ServiceBackendPort) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ServiceBackendPort) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.Number))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x10
|
|
|
|
i -= len(m.Name)
|
|
|
|
copy(dAtA[i:], m.Name)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
|
|
|
|
offset -= sovGenerated(v)
|
|
|
|
base := offset
|
|
|
|
for v >= 1<<7 {
|
|
|
|
dAtA[offset] = uint8(v&0x7f | 0x80)
|
|
|
|
v >>= 7
|
|
|
|
offset++
|
|
|
|
}
|
|
|
|
dAtA[offset] = uint8(v)
|
|
|
|
return base
|
|
|
|
}
|
|
|
|
func (m *HTTPIngressPath) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Path)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.Backend.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
if m.PathType != nil {
|
|
|
|
l = len(*m.PathType)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *HTTPIngressRuleValue) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Paths) > 0 {
|
|
|
|
for _, e := range m.Paths {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *IPBlock) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.CIDR)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
if len(m.Except) > 0 {
|
|
|
|
for _, s := range m.Except {
|
|
|
|
l = len(s)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Ingress) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = m.ObjectMeta.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.Spec.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.Status.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *IngressBackend) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.Resource != nil {
|
|
|
|
l = m.Resource.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
if m.Service != nil {
|
|
|
|
l = m.Service.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *IngressClass) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = m.ObjectMeta.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.Spec.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *IngressClassList) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = m.ListMeta.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
if len(m.Items) > 0 {
|
|
|
|
for _, e := range m.Items {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
2021-06-25 04:59:51 +00:00
|
|
|
func (m *IngressClassParametersReference) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.APIGroup != nil {
|
|
|
|
l = len(*m.APIGroup)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
l = len(m.Kind)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = len(m.Name)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
if m.Scope != nil {
|
|
|
|
l = len(*m.Scope)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
if m.Namespace != nil {
|
|
|
|
l = len(*m.Namespace)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
2020-12-17 12:28:29 +00:00
|
|
|
func (m *IngressClassSpec) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Controller)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
if m.Parameters != nil {
|
|
|
|
l = m.Parameters.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *IngressList) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = m.ListMeta.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
if len(m.Items) > 0 {
|
|
|
|
for _, e := range m.Items {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *IngressRule) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Host)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.IngressRuleValue.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *IngressRuleValue) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.HTTP != nil {
|
|
|
|
l = m.HTTP.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *IngressServiceBackend) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Name)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.Port.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *IngressSpec) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.DefaultBackend != nil {
|
|
|
|
l = m.DefaultBackend.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
if len(m.TLS) > 0 {
|
|
|
|
for _, e := range m.TLS {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if len(m.Rules) > 0 {
|
|
|
|
for _, e := range m.Rules {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if m.IngressClassName != nil {
|
|
|
|
l = len(*m.IngressClassName)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *IngressStatus) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = m.LoadBalancer.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *IngressTLS) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Hosts) > 0 {
|
|
|
|
for _, s := range m.Hosts {
|
|
|
|
l = len(s)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
l = len(m.SecretName)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NetworkPolicy) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = m.ObjectMeta.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.Spec.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NetworkPolicyEgressRule) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Ports) > 0 {
|
|
|
|
for _, e := range m.Ports {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if len(m.To) > 0 {
|
|
|
|
for _, e := range m.To {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NetworkPolicyIngressRule) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Ports) > 0 {
|
|
|
|
for _, e := range m.Ports {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if len(m.From) > 0 {
|
|
|
|
for _, e := range m.From {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NetworkPolicyList) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = m.ListMeta.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
if len(m.Items) > 0 {
|
|
|
|
for _, e := range m.Items {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NetworkPolicyPeer) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.PodSelector != nil {
|
|
|
|
l = m.PodSelector.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
if m.NamespaceSelector != nil {
|
|
|
|
l = m.NamespaceSelector.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
if m.IPBlock != nil {
|
|
|
|
l = m.IPBlock.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NetworkPolicyPort) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.Protocol != nil {
|
|
|
|
l = len(*m.Protocol)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
if m.Port != nil {
|
|
|
|
l = m.Port.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
2021-06-25 04:59:51 +00:00
|
|
|
if m.EndPort != nil {
|
|
|
|
n += 1 + sovGenerated(uint64(*m.EndPort))
|
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NetworkPolicySpec) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = m.PodSelector.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
if len(m.Ingress) > 0 {
|
|
|
|
for _, e := range m.Ingress {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if len(m.Egress) > 0 {
|
|
|
|
for _, e := range m.Egress {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if len(m.PolicyTypes) > 0 {
|
|
|
|
for _, s := range m.PolicyTypes {
|
|
|
|
l = len(s)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ServiceBackendPort) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Name)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
n += 1 + sovGenerated(uint64(m.Number))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func sovGenerated(x uint64) (n int) {
|
|
|
|
return (math_bits.Len64(x|1) + 6) / 7
|
|
|
|
}
|
|
|
|
func sozGenerated(x uint64) (n int) {
|
|
|
|
return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
|
|
|
}
|
|
|
|
func (this *HTTPIngressPath) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&HTTPIngressPath{`,
|
|
|
|
`Path:` + fmt.Sprintf("%v", this.Path) + `,`,
|
|
|
|
`Backend:` + strings.Replace(strings.Replace(this.Backend.String(), "IngressBackend", "IngressBackend", 1), `&`, ``, 1) + `,`,
|
|
|
|
`PathType:` + valueToStringGenerated(this.PathType) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *HTTPIngressRuleValue) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
repeatedStringForPaths := "[]HTTPIngressPath{"
|
|
|
|
for _, f := range this.Paths {
|
|
|
|
repeatedStringForPaths += strings.Replace(strings.Replace(f.String(), "HTTPIngressPath", "HTTPIngressPath", 1), `&`, ``, 1) + ","
|
|
|
|
}
|
|
|
|
repeatedStringForPaths += "}"
|
|
|
|
s := strings.Join([]string{`&HTTPIngressRuleValue{`,
|
|
|
|
`Paths:` + repeatedStringForPaths + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *IPBlock) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&IPBlock{`,
|
|
|
|
`CIDR:` + fmt.Sprintf("%v", this.CIDR) + `,`,
|
|
|
|
`Except:` + fmt.Sprintf("%v", this.Except) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *Ingress) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&Ingress{`,
|
|
|
|
`ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
|
|
|
|
`Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "IngressSpec", "IngressSpec", 1), `&`, ``, 1) + `,`,
|
|
|
|
`Status:` + strings.Replace(strings.Replace(this.Status.String(), "IngressStatus", "IngressStatus", 1), `&`, ``, 1) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *IngressBackend) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&IngressBackend{`,
|
|
|
|
`Resource:` + strings.Replace(fmt.Sprintf("%v", this.Resource), "TypedLocalObjectReference", "v11.TypedLocalObjectReference", 1) + `,`,
|
|
|
|
`Service:` + strings.Replace(this.Service.String(), "IngressServiceBackend", "IngressServiceBackend", 1) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *IngressClass) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&IngressClass{`,
|
|
|
|
`ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
|
|
|
|
`Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "IngressClassSpec", "IngressClassSpec", 1), `&`, ``, 1) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *IngressClassList) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
repeatedStringForItems := "[]IngressClass{"
|
|
|
|
for _, f := range this.Items {
|
|
|
|
repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "IngressClass", "IngressClass", 1), `&`, ``, 1) + ","
|
|
|
|
}
|
|
|
|
repeatedStringForItems += "}"
|
|
|
|
s := strings.Join([]string{`&IngressClassList{`,
|
|
|
|
`ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`,
|
|
|
|
`Items:` + repeatedStringForItems + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
2021-06-25 04:59:51 +00:00
|
|
|
func (this *IngressClassParametersReference) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&IngressClassParametersReference{`,
|
|
|
|
`APIGroup:` + valueToStringGenerated(this.APIGroup) + `,`,
|
|
|
|
`Kind:` + fmt.Sprintf("%v", this.Kind) + `,`,
|
|
|
|
`Name:` + fmt.Sprintf("%v", this.Name) + `,`,
|
|
|
|
`Scope:` + valueToStringGenerated(this.Scope) + `,`,
|
|
|
|
`Namespace:` + valueToStringGenerated(this.Namespace) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
func (this *IngressClassSpec) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&IngressClassSpec{`,
|
|
|
|
`Controller:` + fmt.Sprintf("%v", this.Controller) + `,`,
|
2021-06-25 04:59:51 +00:00
|
|
|
`Parameters:` + strings.Replace(this.Parameters.String(), "IngressClassParametersReference", "IngressClassParametersReference", 1) + `,`,
|
2020-12-17 12:28:29 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *IngressList) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
repeatedStringForItems := "[]Ingress{"
|
|
|
|
for _, f := range this.Items {
|
|
|
|
repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "Ingress", "Ingress", 1), `&`, ``, 1) + ","
|
|
|
|
}
|
|
|
|
repeatedStringForItems += "}"
|
|
|
|
s := strings.Join([]string{`&IngressList{`,
|
|
|
|
`ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`,
|
|
|
|
`Items:` + repeatedStringForItems + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *IngressRule) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&IngressRule{`,
|
|
|
|
`Host:` + fmt.Sprintf("%v", this.Host) + `,`,
|
|
|
|
`IngressRuleValue:` + strings.Replace(strings.Replace(this.IngressRuleValue.String(), "IngressRuleValue", "IngressRuleValue", 1), `&`, ``, 1) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *IngressRuleValue) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&IngressRuleValue{`,
|
|
|
|
`HTTP:` + strings.Replace(this.HTTP.String(), "HTTPIngressRuleValue", "HTTPIngressRuleValue", 1) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *IngressServiceBackend) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&IngressServiceBackend{`,
|
|
|
|
`Name:` + fmt.Sprintf("%v", this.Name) + `,`,
|
|
|
|
`Port:` + strings.Replace(strings.Replace(this.Port.String(), "ServiceBackendPort", "ServiceBackendPort", 1), `&`, ``, 1) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *IngressSpec) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
repeatedStringForTLS := "[]IngressTLS{"
|
|
|
|
for _, f := range this.TLS {
|
|
|
|
repeatedStringForTLS += strings.Replace(strings.Replace(f.String(), "IngressTLS", "IngressTLS", 1), `&`, ``, 1) + ","
|
|
|
|
}
|
|
|
|
repeatedStringForTLS += "}"
|
|
|
|
repeatedStringForRules := "[]IngressRule{"
|
|
|
|
for _, f := range this.Rules {
|
|
|
|
repeatedStringForRules += strings.Replace(strings.Replace(f.String(), "IngressRule", "IngressRule", 1), `&`, ``, 1) + ","
|
|
|
|
}
|
|
|
|
repeatedStringForRules += "}"
|
|
|
|
s := strings.Join([]string{`&IngressSpec{`,
|
|
|
|
`DefaultBackend:` + strings.Replace(this.DefaultBackend.String(), "IngressBackend", "IngressBackend", 1) + `,`,
|
|
|
|
`TLS:` + repeatedStringForTLS + `,`,
|
|
|
|
`Rules:` + repeatedStringForRules + `,`,
|
|
|
|
`IngressClassName:` + valueToStringGenerated(this.IngressClassName) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *IngressStatus) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&IngressStatus{`,
|
|
|
|
`LoadBalancer:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LoadBalancer), "LoadBalancerStatus", "v11.LoadBalancerStatus", 1), `&`, ``, 1) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *IngressTLS) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&IngressTLS{`,
|
|
|
|
`Hosts:` + fmt.Sprintf("%v", this.Hosts) + `,`,
|
|
|
|
`SecretName:` + fmt.Sprintf("%v", this.SecretName) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *NetworkPolicy) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&NetworkPolicy{`,
|
|
|
|
`ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
|
|
|
|
`Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "NetworkPolicySpec", "NetworkPolicySpec", 1), `&`, ``, 1) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *NetworkPolicyEgressRule) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
repeatedStringForPorts := "[]NetworkPolicyPort{"
|
|
|
|
for _, f := range this.Ports {
|
|
|
|
repeatedStringForPorts += strings.Replace(strings.Replace(f.String(), "NetworkPolicyPort", "NetworkPolicyPort", 1), `&`, ``, 1) + ","
|
|
|
|
}
|
|
|
|
repeatedStringForPorts += "}"
|
|
|
|
repeatedStringForTo := "[]NetworkPolicyPeer{"
|
|
|
|
for _, f := range this.To {
|
|
|
|
repeatedStringForTo += strings.Replace(strings.Replace(f.String(), "NetworkPolicyPeer", "NetworkPolicyPeer", 1), `&`, ``, 1) + ","
|
|
|
|
}
|
|
|
|
repeatedStringForTo += "}"
|
|
|
|
s := strings.Join([]string{`&NetworkPolicyEgressRule{`,
|
|
|
|
`Ports:` + repeatedStringForPorts + `,`,
|
|
|
|
`To:` + repeatedStringForTo + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *NetworkPolicyIngressRule) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
repeatedStringForPorts := "[]NetworkPolicyPort{"
|
|
|
|
for _, f := range this.Ports {
|
|
|
|
repeatedStringForPorts += strings.Replace(strings.Replace(f.String(), "NetworkPolicyPort", "NetworkPolicyPort", 1), `&`, ``, 1) + ","
|
|
|
|
}
|
|
|
|
repeatedStringForPorts += "}"
|
|
|
|
repeatedStringForFrom := "[]NetworkPolicyPeer{"
|
|
|
|
for _, f := range this.From {
|
|
|
|
repeatedStringForFrom += strings.Replace(strings.Replace(f.String(), "NetworkPolicyPeer", "NetworkPolicyPeer", 1), `&`, ``, 1) + ","
|
|
|
|
}
|
|
|
|
repeatedStringForFrom += "}"
|
|
|
|
s := strings.Join([]string{`&NetworkPolicyIngressRule{`,
|
|
|
|
`Ports:` + repeatedStringForPorts + `,`,
|
|
|
|
`From:` + repeatedStringForFrom + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *NetworkPolicyList) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
repeatedStringForItems := "[]NetworkPolicy{"
|
|
|
|
for _, f := range this.Items {
|
|
|
|
repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "NetworkPolicy", "NetworkPolicy", 1), `&`, ``, 1) + ","
|
|
|
|
}
|
|
|
|
repeatedStringForItems += "}"
|
|
|
|
s := strings.Join([]string{`&NetworkPolicyList{`,
|
|
|
|
`ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`,
|
|
|
|
`Items:` + repeatedStringForItems + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *NetworkPolicyPeer) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&NetworkPolicyPeer{`,
|
|
|
|
`PodSelector:` + strings.Replace(fmt.Sprintf("%v", this.PodSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`,
|
|
|
|
`NamespaceSelector:` + strings.Replace(fmt.Sprintf("%v", this.NamespaceSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`,
|
|
|
|
`IPBlock:` + strings.Replace(this.IPBlock.String(), "IPBlock", "IPBlock", 1) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *NetworkPolicyPort) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&NetworkPolicyPort{`,
|
|
|
|
`Protocol:` + valueToStringGenerated(this.Protocol) + `,`,
|
|
|
|
`Port:` + strings.Replace(fmt.Sprintf("%v", this.Port), "IntOrString", "intstr.IntOrString", 1) + `,`,
|
2021-06-25 04:59:51 +00:00
|
|
|
`EndPort:` + valueToStringGenerated(this.EndPort) + `,`,
|
2020-12-17 12:28:29 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *NetworkPolicySpec) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
repeatedStringForIngress := "[]NetworkPolicyIngressRule{"
|
|
|
|
for _, f := range this.Ingress {
|
|
|
|
repeatedStringForIngress += strings.Replace(strings.Replace(f.String(), "NetworkPolicyIngressRule", "NetworkPolicyIngressRule", 1), `&`, ``, 1) + ","
|
|
|
|
}
|
|
|
|
repeatedStringForIngress += "}"
|
|
|
|
repeatedStringForEgress := "[]NetworkPolicyEgressRule{"
|
|
|
|
for _, f := range this.Egress {
|
|
|
|
repeatedStringForEgress += strings.Replace(strings.Replace(f.String(), "NetworkPolicyEgressRule", "NetworkPolicyEgressRule", 1), `&`, ``, 1) + ","
|
|
|
|
}
|
|
|
|
repeatedStringForEgress += "}"
|
|
|
|
s := strings.Join([]string{`&NetworkPolicySpec{`,
|
|
|
|
`PodSelector:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.PodSelector), "LabelSelector", "v1.LabelSelector", 1), `&`, ``, 1) + `,`,
|
|
|
|
`Ingress:` + repeatedStringForIngress + `,`,
|
|
|
|
`Egress:` + repeatedStringForEgress + `,`,
|
|
|
|
`PolicyTypes:` + fmt.Sprintf("%v", this.PolicyTypes) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *ServiceBackendPort) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&ServiceBackendPort{`,
|
|
|
|
`Name:` + fmt.Sprintf("%v", this.Name) + `,`,
|
|
|
|
`Number:` + fmt.Sprintf("%v", this.Number) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func valueToStringGenerated(v interface{}) string {
|
|
|
|
rv := reflect.ValueOf(v)
|
|
|
|
if rv.IsNil() {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
pv := reflect.Indirect(rv).Interface()
|
|
|
|
return fmt.Sprintf("*%v", pv)
|
|
|
|
}
|
|
|
|
func (m *HTTPIngressPath) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= uint64(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: HTTPIngressPath: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: HTTPIngressPath: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Path = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Backend", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.Backend.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field PathType", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
s := PathType(dAtA[iNdEx:postIndex])
|
|
|
|
m.PathType = &s
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 10:45:47 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2020-12-17 12:28:29 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *HTTPIngressRuleValue) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= uint64(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: HTTPIngressRuleValue: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: HTTPIngressRuleValue: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Paths", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Paths = append(m.Paths, HTTPIngressPath{})
|
|
|
|
if err := m.Paths[len(m.Paths)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 10:45:47 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2020-12-17 12:28:29 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *IPBlock) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= uint64(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: IPBlock: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: IPBlock: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field CIDR", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.CIDR = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Except", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Except = append(m.Except, string(dAtA[iNdEx:postIndex]))
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 10:45:47 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2020-12-17 12:28:29 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *Ingress) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= uint64(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: Ingress: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: Ingress: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 10:45:47 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2020-12-17 12:28:29 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *IngressBackend) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= uint64(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: IngressBackend: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: IngressBackend: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.Resource == nil {
|
|
|
|
m.Resource = &v11.TypedLocalObjectReference{}
|
|
|
|
}
|
|
|
|
if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 4:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Service", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.Service == nil {
|
|
|
|
m.Service = &IngressServiceBackend{}
|
|
|
|
}
|
|
|
|
if err := m.Service.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 10:45:47 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2020-12-17 12:28:29 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *IngressClass) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= uint64(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: IngressClass: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: IngressClass: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 10:45:47 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2020-12-17 12:28:29 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *IngressClassList) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= uint64(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: IngressClassList: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: IngressClassList: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Items = append(m.Items, IngressClass{})
|
|
|
|
if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 10:45:47 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2020-12-17 12:28:29 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2021-06-25 04:59:51 +00:00
|
|
|
func (m *IngressClassParametersReference) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= uint64(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: IngressClassParametersReference: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: IngressClassParametersReference: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field APIGroup", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
s := string(dAtA[iNdEx:postIndex])
|
|
|
|
m.APIGroup = &s
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Kind = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Name = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 4:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Scope", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
s := string(dAtA[iNdEx:postIndex])
|
|
|
|
m.Scope = &s
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 5:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
s := string(dAtA[iNdEx:postIndex])
|
|
|
|
m.Namespace = &s
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
func (m *IngressClassSpec) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= uint64(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: IngressClassSpec: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: IngressClassSpec: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Controller", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Controller = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Parameters", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.Parameters == nil {
|
2021-06-25 04:59:51 +00:00
|
|
|
m.Parameters = &IngressClassParametersReference{}
|
2020-12-17 12:28:29 +00:00
|
|
|
}
|
|
|
|
if err := m.Parameters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 10:45:47 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2020-12-17 12:28:29 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *IngressList) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= uint64(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: IngressList: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: IngressList: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Items = append(m.Items, Ingress{})
|
|
|
|
if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 10:45:47 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2020-12-17 12:28:29 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *IngressRule) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= uint64(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: IngressRule: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: IngressRule: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Host", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Host = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field IngressRuleValue", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.IngressRuleValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 10:45:47 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2020-12-17 12:28:29 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *IngressRuleValue) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= uint64(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: IngressRuleValue: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: IngressRuleValue: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field HTTP", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.HTTP == nil {
|
|
|
|
m.HTTP = &HTTPIngressRuleValue{}
|
|
|
|
}
|
|
|
|
if err := m.HTTP.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 10:45:47 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2020-12-17 12:28:29 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *IngressServiceBackend) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= uint64(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: IngressServiceBackend: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: IngressServiceBackend: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Name = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.Port.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 10:45:47 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2020-12-17 12:28:29 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *IngressSpec) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= uint64(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: IngressSpec: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: IngressSpec: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field DefaultBackend", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.DefaultBackend == nil {
|
|
|
|
m.DefaultBackend = &IngressBackend{}
|
|
|
|
}
|
|
|
|
if err := m.DefaultBackend.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field TLS", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.TLS = append(m.TLS, IngressTLS{})
|
|
|
|
if err := m.TLS[len(m.TLS)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Rules = append(m.Rules, IngressRule{})
|
|
|
|
if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 4:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field IngressClassName", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
s := string(dAtA[iNdEx:postIndex])
|
|
|
|
m.IngressClassName = &s
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 10:45:47 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2020-12-17 12:28:29 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
return nil
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
func (m *IngressStatus) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= uint64(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: IngressStatus: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: IngressStatus: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field LoadBalancer", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.LoadBalancer.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 10:45:47 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2020-12-17 12:28:29 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
return nil
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
func (m *IngressTLS) Unmarshal(dAtA []byte) error {
|
2018-12-19 14:29:25 +00:00
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
2020-12-17 12:28:29 +00:00
|
|
|
return fmt.Errorf("proto: IngressTLS: wiretype end group for non-group")
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2020-12-17 12:28:29 +00:00
|
|
|
return fmt.Errorf("proto: IngressTLS: illegal tag %d (wire type %d)", fieldNum, wire)
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2020-12-17 12:28:29 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Hosts", wireType)
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
m.Hosts = append(m.Hosts, string(dAtA[iNdEx:postIndex]))
|
2018-12-19 14:29:25 +00:00
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
2020-12-17 12:28:29 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field SecretName", wireType)
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
m.SecretName = string(dAtA[iNdEx:postIndex])
|
2018-12-19 14:29:25 +00:00
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 10:45:47 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2020-01-14 10:38:55 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *NetworkPolicy) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: NetworkPolicy: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: NetworkPolicy: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 10:45:47 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2020-01-14 10:38:55 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *NetworkPolicyEgressRule) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: NetworkPolicyEgressRule: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: NetworkPolicyEgressRule: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Ports", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Ports = append(m.Ports, NetworkPolicyPort{})
|
|
|
|
if err := m.Ports[len(m.Ports)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field To", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.To = append(m.To, NetworkPolicyPeer{})
|
|
|
|
if err := m.To[len(m.To)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 10:45:47 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2020-01-14 10:38:55 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *NetworkPolicyIngressRule) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: NetworkPolicyIngressRule: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: NetworkPolicyIngressRule: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Ports", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Ports = append(m.Ports, NetworkPolicyPort{})
|
|
|
|
if err := m.Ports[len(m.Ports)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field From", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.From = append(m.From, NetworkPolicyPeer{})
|
|
|
|
if err := m.From[len(m.From)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 10:45:47 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2020-01-14 10:38:55 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *NetworkPolicyList) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: NetworkPolicyList: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: NetworkPolicyList: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Items = append(m.Items, NetworkPolicy{})
|
|
|
|
if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 10:45:47 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2020-01-14 10:38:55 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *NetworkPolicyPeer) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: NetworkPolicyPeer: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: NetworkPolicyPeer: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field PodSelector", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.PodSelector == nil {
|
2020-01-14 10:38:55 +00:00
|
|
|
m.PodSelector = &v1.LabelSelector{}
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
if err := m.PodSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field NamespaceSelector", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.NamespaceSelector == nil {
|
2020-01-14 10:38:55 +00:00
|
|
|
m.NamespaceSelector = &v1.LabelSelector{}
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
if err := m.NamespaceSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field IPBlock", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.IPBlock == nil {
|
|
|
|
m.IPBlock = &IPBlock{}
|
|
|
|
}
|
|
|
|
if err := m.IPBlock.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 10:45:47 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2020-01-14 10:38:55 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *NetworkPolicyPort) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: NetworkPolicyPort: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: NetworkPolicyPort: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Protocol", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
s := k8s_io_api_core_v1.Protocol(dAtA[iNdEx:postIndex])
|
|
|
|
m.Protocol = &s
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.Port == nil {
|
2020-01-14 10:38:55 +00:00
|
|
|
m.Port = &intstr.IntOrString{}
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
if err := m.Port.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
2021-06-25 04:59:51 +00:00
|
|
|
case 3:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field EndPort", wireType)
|
|
|
|
}
|
|
|
|
var v int32
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
v |= int32(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m.EndPort = &v
|
2018-12-19 14:29:25 +00:00
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 10:45:47 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2020-01-14 10:38:55 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *NetworkPolicySpec) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: NetworkPolicySpec: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: NetworkPolicySpec: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field PodSelector", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.PodSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Ingress", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Ingress = append(m.Ingress, NetworkPolicyIngressRule{})
|
|
|
|
if err := m.Ingress[len(m.Ingress)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Egress", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Egress = append(m.Egress, NetworkPolicyEgressRule{})
|
|
|
|
if err := m.Egress[len(m.Egress)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 4:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field PolicyTypes", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2020-01-14 10:38:55 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2018-12-19 14:29:25 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2020-01-14 10:38:55 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.PolicyTypes = append(m.PolicyTypes, PolicyType(dAtA[iNdEx:postIndex]))
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
2020-12-17 12:28:29 +00:00
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 10:45:47 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2020-12-17 12:28:29 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *ServiceBackendPort) Unmarshal(dAtA []byte) error {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= uint64(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: ServiceBackendPort: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: ServiceBackendPort: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Name = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Number", wireType)
|
|
|
|
}
|
|
|
|
m.Number = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
m.Number |= int32(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
2018-12-19 14:29:25 +00:00
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 10:45:47 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2020-01-14 10:38:55 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func skipGenerated(dAtA []byte) (n int, err error) {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
2020-04-14 07:04:33 +00:00
|
|
|
depth := 0
|
2018-12-19 14:29:25 +00:00
|
|
|
for iNdEx < l {
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return 0, ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return 0, io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
switch wireType {
|
|
|
|
case 0:
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return 0, ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return 0, io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx++
|
|
|
|
if dAtA[iNdEx-1] < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 1:
|
|
|
|
iNdEx += 8
|
|
|
|
case 2:
|
|
|
|
var length int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return 0, ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return 0, io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
length |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if length < 0 {
|
|
|
|
return 0, ErrInvalidLengthGenerated
|
|
|
|
}
|
2020-01-14 10:38:55 +00:00
|
|
|
iNdEx += length
|
2018-12-19 14:29:25 +00:00
|
|
|
case 3:
|
2020-04-14 07:04:33 +00:00
|
|
|
depth++
|
2018-12-19 14:29:25 +00:00
|
|
|
case 4:
|
2020-04-14 07:04:33 +00:00
|
|
|
if depth == 0 {
|
|
|
|
return 0, ErrUnexpectedEndOfGroupGenerated
|
|
|
|
}
|
|
|
|
depth--
|
2018-12-19 14:29:25 +00:00
|
|
|
case 5:
|
|
|
|
iNdEx += 4
|
|
|
|
default:
|
|
|
|
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
|
|
|
}
|
2020-04-14 07:04:33 +00:00
|
|
|
if iNdEx < 0 {
|
|
|
|
return 0, ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if depth == 0 {
|
|
|
|
return iNdEx, nil
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-04-14 07:04:33 +00:00
|
|
|
return 0, io.ErrUnexpectedEOF
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
2020-04-14 07:04:33 +00:00
|
|
|
ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
|
|
|
|
ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
|
|
|
|
ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
|
2018-12-19 14:29:25 +00:00
|
|
|
)
|