traefik/vendor/k8s.io/api/certificates/v1beta1/generated.pb.go

1694 lines
43 KiB
Go
Raw Normal View History

2017-02-07 21:33:23 +00:00
/*
2017-04-07 10:49:53 +00:00
Copyright 2017 The Kubernetes Authors.
2017-02-07 21:33:23 +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.
*/
// Code generated by protoc-gen-gogo.
2018-02-14 08:56:04 +00:00
// source: k8s.io/kubernetes/vendor/k8s.io/api/certificates/v1beta1/generated.proto
2017-02-07 21:33:23 +00:00
// DO NOT EDIT!
/*
2018-02-14 08:56:04 +00:00
Package v1beta1 is a generated protocol buffer package.
2017-02-07 21:33:23 +00:00
It is generated from these files:
2018-02-14 08:56:04 +00:00
k8s.io/kubernetes/vendor/k8s.io/api/certificates/v1beta1/generated.proto
2017-02-07 21:33:23 +00:00
It has these top-level messages:
CertificateSigningRequest
CertificateSigningRequestCondition
CertificateSigningRequestList
CertificateSigningRequestSpec
CertificateSigningRequestStatus
2018-02-14 08:56:04 +00:00
ExtraValue
2017-02-07 21:33:23 +00:00
*/
2018-02-14 08:56:04 +00:00
package v1beta1
2017-02-07 21:33:23 +00:00
import proto "github.com/gogo/protobuf/proto"
import fmt "fmt"
import math "math"
2018-02-14 08:56:04 +00:00
import github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
2017-02-07 21:33:23 +00:00
import strings "strings"
import reflect "reflect"
import io "io"
// 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.
2018-02-14 08:56:04 +00:00
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
2017-02-07 21:33:23 +00:00
func (m *CertificateSigningRequest) Reset() { *m = CertificateSigningRequest{} }
func (*CertificateSigningRequest) ProtoMessage() {}
func (*CertificateSigningRequest) Descriptor() ([]byte, []int) {
return fileDescriptorGenerated, []int{0}
}
func (m *CertificateSigningRequestCondition) Reset() { *m = CertificateSigningRequestCondition{} }
func (*CertificateSigningRequestCondition) ProtoMessage() {}
func (*CertificateSigningRequestCondition) Descriptor() ([]byte, []int) {
return fileDescriptorGenerated, []int{1}
}
func (m *CertificateSigningRequestList) Reset() { *m = CertificateSigningRequestList{} }
func (*CertificateSigningRequestList) ProtoMessage() {}
func (*CertificateSigningRequestList) Descriptor() ([]byte, []int) {
return fileDescriptorGenerated, []int{2}
}
func (m *CertificateSigningRequestSpec) Reset() { *m = CertificateSigningRequestSpec{} }
func (*CertificateSigningRequestSpec) ProtoMessage() {}
func (*CertificateSigningRequestSpec) Descriptor() ([]byte, []int) {
return fileDescriptorGenerated, []int{3}
}
func (m *CertificateSigningRequestStatus) Reset() { *m = CertificateSigningRequestStatus{} }
func (*CertificateSigningRequestStatus) ProtoMessage() {}
func (*CertificateSigningRequestStatus) Descriptor() ([]byte, []int) {
return fileDescriptorGenerated, []int{4}
}
2018-02-14 08:56:04 +00:00
func (m *ExtraValue) Reset() { *m = ExtraValue{} }
func (*ExtraValue) ProtoMessage() {}
func (*ExtraValue) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{5} }
2017-02-07 21:33:23 +00:00
func init() {
2018-02-14 08:56:04 +00:00
proto.RegisterType((*CertificateSigningRequest)(nil), "k8s.io.api.certificates.v1beta1.CertificateSigningRequest")
proto.RegisterType((*CertificateSigningRequestCondition)(nil), "k8s.io.api.certificates.v1beta1.CertificateSigningRequestCondition")
proto.RegisterType((*CertificateSigningRequestList)(nil), "k8s.io.api.certificates.v1beta1.CertificateSigningRequestList")
proto.RegisterType((*CertificateSigningRequestSpec)(nil), "k8s.io.api.certificates.v1beta1.CertificateSigningRequestSpec")
proto.RegisterType((*CertificateSigningRequestStatus)(nil), "k8s.io.api.certificates.v1beta1.CertificateSigningRequestStatus")
proto.RegisterType((*ExtraValue)(nil), "k8s.io.api.certificates.v1beta1.ExtraValue")
2017-02-07 21:33:23 +00:00
}
2018-02-14 08:56:04 +00:00
func (m *CertificateSigningRequest) Marshal() (dAtA []byte, err error) {
2017-02-07 21:33:23 +00:00
size := m.Size()
2018-02-14 08:56:04 +00:00
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
2017-02-07 21:33:23 +00:00
if err != nil {
return nil, err
}
2018-02-14 08:56:04 +00:00
return dAtA[:n], nil
2017-02-07 21:33:23 +00:00
}
2018-02-14 08:56:04 +00:00
func (m *CertificateSigningRequest) MarshalTo(dAtA []byte) (int, error) {
2017-02-07 21:33:23 +00:00
var i int
_ = i
var l int
_ = l
2018-02-14 08:56:04 +00:00
dAtA[i] = 0xa
2017-02-07 21:33:23 +00:00
i++
2018-02-14 08:56:04 +00:00
i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size()))
n1, err := m.ObjectMeta.MarshalTo(dAtA[i:])
2017-02-07 21:33:23 +00:00
if err != nil {
return 0, err
}
i += n1
2018-02-14 08:56:04 +00:00
dAtA[i] = 0x12
2017-02-07 21:33:23 +00:00
i++
2018-02-14 08:56:04 +00:00
i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size()))
n2, err := m.Spec.MarshalTo(dAtA[i:])
2017-02-07 21:33:23 +00:00
if err != nil {
return 0, err
}
i += n2
2018-02-14 08:56:04 +00:00
dAtA[i] = 0x1a
2017-02-07 21:33:23 +00:00
i++
2018-02-14 08:56:04 +00:00
i = encodeVarintGenerated(dAtA, i, uint64(m.Status.Size()))
n3, err := m.Status.MarshalTo(dAtA[i:])
2017-02-07 21:33:23 +00:00
if err != nil {
return 0, err
}
i += n3
return i, nil
}
2018-02-14 08:56:04 +00:00
func (m *CertificateSigningRequestCondition) Marshal() (dAtA []byte, err error) {
2017-02-07 21:33:23 +00:00
size := m.Size()
2018-02-14 08:56:04 +00:00
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
2017-02-07 21:33:23 +00:00
if err != nil {
return nil, err
}
2018-02-14 08:56:04 +00:00
return dAtA[:n], nil
2017-02-07 21:33:23 +00:00
}
2018-02-14 08:56:04 +00:00
func (m *CertificateSigningRequestCondition) MarshalTo(dAtA []byte) (int, error) {
2017-02-07 21:33:23 +00:00
var i int
_ = i
var l int
_ = l
2018-02-14 08:56:04 +00:00
dAtA[i] = 0xa
2017-02-07 21:33:23 +00:00
i++
2018-02-14 08:56:04 +00:00
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type)))
i += copy(dAtA[i:], m.Type)
dAtA[i] = 0x12
2017-02-07 21:33:23 +00:00
i++
2018-02-14 08:56:04 +00:00
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason)))
i += copy(dAtA[i:], m.Reason)
dAtA[i] = 0x1a
2017-02-07 21:33:23 +00:00
i++
2018-02-14 08:56:04 +00:00
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message)))
i += copy(dAtA[i:], m.Message)
dAtA[i] = 0x22
2017-02-07 21:33:23 +00:00
i++
2018-02-14 08:56:04 +00:00
i = encodeVarintGenerated(dAtA, i, uint64(m.LastUpdateTime.Size()))
n4, err := m.LastUpdateTime.MarshalTo(dAtA[i:])
2017-02-07 21:33:23 +00:00
if err != nil {
return 0, err
}
i += n4
return i, nil
}
2018-02-14 08:56:04 +00:00
func (m *CertificateSigningRequestList) Marshal() (dAtA []byte, err error) {
2017-02-07 21:33:23 +00:00
size := m.Size()
2018-02-14 08:56:04 +00:00
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
2017-02-07 21:33:23 +00:00
if err != nil {
return nil, err
}
2018-02-14 08:56:04 +00:00
return dAtA[:n], nil
2017-02-07 21:33:23 +00:00
}
2018-02-14 08:56:04 +00:00
func (m *CertificateSigningRequestList) MarshalTo(dAtA []byte) (int, error) {
2017-02-07 21:33:23 +00:00
var i int
_ = i
var l int
_ = l
2018-02-14 08:56:04 +00:00
dAtA[i] = 0xa
2017-02-07 21:33:23 +00:00
i++
2018-02-14 08:56:04 +00:00
i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size()))
n5, err := m.ListMeta.MarshalTo(dAtA[i:])
2017-02-07 21:33:23 +00:00
if err != nil {
return 0, err
}
i += n5
if len(m.Items) > 0 {
for _, msg := range m.Items {
2018-02-14 08:56:04 +00:00
dAtA[i] = 0x12
2017-02-07 21:33:23 +00:00
i++
2018-02-14 08:56:04 +00:00
i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
n, err := msg.MarshalTo(dAtA[i:])
2017-02-07 21:33:23 +00:00
if err != nil {
return 0, err
}
i += n
}
}
return i, nil
}
2018-02-14 08:56:04 +00:00
func (m *CertificateSigningRequestSpec) Marshal() (dAtA []byte, err error) {
2017-02-07 21:33:23 +00:00
size := m.Size()
2018-02-14 08:56:04 +00:00
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
2017-02-07 21:33:23 +00:00
if err != nil {
return nil, err
}
2018-02-14 08:56:04 +00:00
return dAtA[:n], nil
2017-02-07 21:33:23 +00:00
}
2018-02-14 08:56:04 +00:00
func (m *CertificateSigningRequestSpec) MarshalTo(dAtA []byte) (int, error) {
2017-02-07 21:33:23 +00:00
var i int
_ = i
var l int
_ = l
if m.Request != nil {
2018-02-14 08:56:04 +00:00
dAtA[i] = 0xa
2017-02-07 21:33:23 +00:00
i++
2018-02-14 08:56:04 +00:00
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Request)))
i += copy(dAtA[i:], m.Request)
2017-02-07 21:33:23 +00:00
}
2018-02-14 08:56:04 +00:00
dAtA[i] = 0x12
2017-02-07 21:33:23 +00:00
i++
2018-02-14 08:56:04 +00:00
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Username)))
i += copy(dAtA[i:], m.Username)
dAtA[i] = 0x1a
2017-02-07 21:33:23 +00:00
i++
2018-02-14 08:56:04 +00:00
i = encodeVarintGenerated(dAtA, i, uint64(len(m.UID)))
i += copy(dAtA[i:], m.UID)
2017-02-07 21:33:23 +00:00
if len(m.Groups) > 0 {
for _, s := range m.Groups {
2018-02-14 08:56:04 +00:00
dAtA[i] = 0x22
2017-02-07 21:33:23 +00:00
i++
l = len(s)
for l >= 1<<7 {
2018-02-14 08:56:04 +00:00
dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
2017-02-07 21:33:23 +00:00
l >>= 7
i++
}
2018-02-14 08:56:04 +00:00
dAtA[i] = uint8(l)
i++
i += copy(dAtA[i:], s)
}
}
if len(m.Usages) > 0 {
for _, s := range m.Usages {
dAtA[i] = 0x2a
i++
l = len(s)
for l >= 1<<7 {
dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
l >>= 7
i++
}
dAtA[i] = uint8(l)
i++
i += copy(dAtA[i:], s)
}
}
if len(m.Extra) > 0 {
keysForExtra := make([]string, 0, len(m.Extra))
for k := range m.Extra {
keysForExtra = append(keysForExtra, string(k))
}
github_com_gogo_protobuf_sortkeys.Strings(keysForExtra)
for _, k := range keysForExtra {
dAtA[i] = 0x32
2017-02-07 21:33:23 +00:00
i++
2018-02-14 08:56:04 +00:00
v := m.Extra[string(k)]
msgSize := 0
if (&v) != nil {
msgSize = (&v).Size()
msgSize += 1 + sovGenerated(uint64(msgSize))
}
mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + msgSize
i = encodeVarintGenerated(dAtA, i, uint64(mapSize))
dAtA[i] = 0xa
i++
i = encodeVarintGenerated(dAtA, i, uint64(len(k)))
i += copy(dAtA[i:], k)
dAtA[i] = 0x12
i++
i = encodeVarintGenerated(dAtA, i, uint64((&v).Size()))
n6, err := (&v).MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n6
2017-02-07 21:33:23 +00:00
}
}
return i, nil
}
2018-02-14 08:56:04 +00:00
func (m *CertificateSigningRequestStatus) Marshal() (dAtA []byte, err error) {
2017-02-07 21:33:23 +00:00
size := m.Size()
2018-02-14 08:56:04 +00:00
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
2017-02-07 21:33:23 +00:00
if err != nil {
return nil, err
}
2018-02-14 08:56:04 +00:00
return dAtA[:n], nil
2017-02-07 21:33:23 +00:00
}
2018-02-14 08:56:04 +00:00
func (m *CertificateSigningRequestStatus) MarshalTo(dAtA []byte) (int, error) {
2017-02-07 21:33:23 +00:00
var i int
_ = i
var l int
_ = l
if len(m.Conditions) > 0 {
for _, msg := range m.Conditions {
2018-02-14 08:56:04 +00:00
dAtA[i] = 0xa
2017-02-07 21:33:23 +00:00
i++
2018-02-14 08:56:04 +00:00
i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
n, err := msg.MarshalTo(dAtA[i:])
2017-02-07 21:33:23 +00:00
if err != nil {
return 0, err
}
i += n
}
}
if m.Certificate != nil {
2018-02-14 08:56:04 +00:00
dAtA[i] = 0x12
2017-02-07 21:33:23 +00:00
i++
2018-02-14 08:56:04 +00:00
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Certificate)))
i += copy(dAtA[i:], m.Certificate)
}
return i, nil
}
func (m ExtraValue) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m ExtraValue) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if len(m) > 0 {
for _, s := range m {
dAtA[i] = 0xa
i++
l = len(s)
for l >= 1<<7 {
dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
l >>= 7
i++
}
dAtA[i] = uint8(l)
i++
i += copy(dAtA[i:], s)
}
2017-02-07 21:33:23 +00:00
}
return i, nil
}
2018-02-14 08:56:04 +00:00
func encodeFixed64Generated(dAtA []byte, offset int, v uint64) int {
dAtA[offset] = uint8(v)
dAtA[offset+1] = uint8(v >> 8)
dAtA[offset+2] = uint8(v >> 16)
dAtA[offset+3] = uint8(v >> 24)
dAtA[offset+4] = uint8(v >> 32)
dAtA[offset+5] = uint8(v >> 40)
dAtA[offset+6] = uint8(v >> 48)
dAtA[offset+7] = uint8(v >> 56)
2017-02-07 21:33:23 +00:00
return offset + 8
}
2018-02-14 08:56:04 +00:00
func encodeFixed32Generated(dAtA []byte, offset int, v uint32) int {
dAtA[offset] = uint8(v)
dAtA[offset+1] = uint8(v >> 8)
dAtA[offset+2] = uint8(v >> 16)
dAtA[offset+3] = uint8(v >> 24)
2017-02-07 21:33:23 +00:00
return offset + 4
}
2018-02-14 08:56:04 +00:00
func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
2017-02-07 21:33:23 +00:00
for v >= 1<<7 {
2018-02-14 08:56:04 +00:00
dAtA[offset] = uint8(v&0x7f | 0x80)
2017-02-07 21:33:23 +00:00
v >>= 7
offset++
}
2018-02-14 08:56:04 +00:00
dAtA[offset] = uint8(v)
2017-02-07 21:33:23 +00:00
return offset + 1
}
func (m *CertificateSigningRequest) Size() (n int) {
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 *CertificateSigningRequestCondition) Size() (n int) {
var l int
_ = l
l = len(m.Type)
n += 1 + l + sovGenerated(uint64(l))
l = len(m.Reason)
n += 1 + l + sovGenerated(uint64(l))
l = len(m.Message)
n += 1 + l + sovGenerated(uint64(l))
l = m.LastUpdateTime.Size()
n += 1 + l + sovGenerated(uint64(l))
return n
}
func (m *CertificateSigningRequestList) Size() (n int) {
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 *CertificateSigningRequestSpec) Size() (n int) {
var l int
_ = l
if m.Request != nil {
l = len(m.Request)
n += 1 + l + sovGenerated(uint64(l))
}
l = len(m.Username)
n += 1 + l + sovGenerated(uint64(l))
l = len(m.UID)
n += 1 + l + sovGenerated(uint64(l))
if len(m.Groups) > 0 {
for _, s := range m.Groups {
l = len(s)
n += 1 + l + sovGenerated(uint64(l))
}
}
2018-02-14 08:56:04 +00:00
if len(m.Usages) > 0 {
for _, s := range m.Usages {
l = len(s)
n += 1 + l + sovGenerated(uint64(l))
}
}
if len(m.Extra) > 0 {
for k, v := range m.Extra {
_ = k
_ = v
l = v.Size()
mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l))
n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
}
}
2017-02-07 21:33:23 +00:00
return n
}
func (m *CertificateSigningRequestStatus) Size() (n int) {
var l int
_ = l
if len(m.Conditions) > 0 {
for _, e := range m.Conditions {
l = e.Size()
n += 1 + l + sovGenerated(uint64(l))
}
}
if m.Certificate != nil {
l = len(m.Certificate)
n += 1 + l + sovGenerated(uint64(l))
}
return n
}
2018-02-14 08:56:04 +00:00
func (m ExtraValue) Size() (n int) {
var l int
_ = l
if len(m) > 0 {
for _, s := range m {
l = len(s)
n += 1 + l + sovGenerated(uint64(l))
}
}
return n
}
2017-02-07 21:33:23 +00:00
func sovGenerated(x uint64) (n int) {
for {
n++
x >>= 7
if x == 0 {
break
}
}
return n
}
func sozGenerated(x uint64) (n int) {
return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (this *CertificateSigningRequest) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&CertificateSigningRequest{`,
2018-02-14 08:56:04 +00:00
`ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
2017-02-07 21:33:23 +00:00
`Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "CertificateSigningRequestSpec", "CertificateSigningRequestSpec", 1), `&`, ``, 1) + `,`,
`Status:` + strings.Replace(strings.Replace(this.Status.String(), "CertificateSigningRequestStatus", "CertificateSigningRequestStatus", 1), `&`, ``, 1) + `,`,
`}`,
}, "")
return s
}
func (this *CertificateSigningRequestCondition) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&CertificateSigningRequestCondition{`,
`Type:` + fmt.Sprintf("%v", this.Type) + `,`,
`Reason:` + fmt.Sprintf("%v", this.Reason) + `,`,
`Message:` + fmt.Sprintf("%v", this.Message) + `,`,
2018-02-14 08:56:04 +00:00
`LastUpdateTime:` + strings.Replace(strings.Replace(this.LastUpdateTime.String(), "Time", "k8s_io_apimachinery_pkg_apis_meta_v1.Time", 1), `&`, ``, 1) + `,`,
2017-02-07 21:33:23 +00:00
`}`,
}, "")
return s
}
func (this *CertificateSigningRequestList) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&CertificateSigningRequestList{`,
2018-02-14 08:56:04 +00:00
`ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`,
2017-02-07 21:33:23 +00:00
`Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "CertificateSigningRequest", "CertificateSigningRequest", 1), `&`, ``, 1) + `,`,
`}`,
}, "")
return s
}
func (this *CertificateSigningRequestSpec) String() string {
if this == nil {
return "nil"
}
2018-02-14 08:56:04 +00:00
keysForExtra := make([]string, 0, len(this.Extra))
for k := range this.Extra {
keysForExtra = append(keysForExtra, k)
}
github_com_gogo_protobuf_sortkeys.Strings(keysForExtra)
mapStringForExtra := "map[string]ExtraValue{"
for _, k := range keysForExtra {
mapStringForExtra += fmt.Sprintf("%v: %v,", k, this.Extra[k])
}
mapStringForExtra += "}"
2017-02-07 21:33:23 +00:00
s := strings.Join([]string{`&CertificateSigningRequestSpec{`,
`Request:` + valueToStringGenerated(this.Request) + `,`,
`Username:` + fmt.Sprintf("%v", this.Username) + `,`,
`UID:` + fmt.Sprintf("%v", this.UID) + `,`,
`Groups:` + fmt.Sprintf("%v", this.Groups) + `,`,
2018-02-14 08:56:04 +00:00
`Usages:` + fmt.Sprintf("%v", this.Usages) + `,`,
`Extra:` + mapStringForExtra + `,`,
2017-02-07 21:33:23 +00:00
`}`,
}, "")
return s
}
func (this *CertificateSigningRequestStatus) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&CertificateSigningRequestStatus{`,
`Conditions:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Conditions), "CertificateSigningRequestCondition", "CertificateSigningRequestCondition", 1), `&`, ``, 1) + `,`,
`Certificate:` + valueToStringGenerated(this.Certificate) + `,`,
`}`,
}, "")
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)
}
2018-02-14 08:56:04 +00:00
func (m *CertificateSigningRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
2017-02-07 21:33:23 +00:00
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
}
2018-02-14 08:56:04 +00:00
b := dAtA[iNdEx]
2017-02-07 21:33:23 +00:00
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: CertificateSigningRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: CertificateSigningRequest: 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
}
2018-02-14 08:56:04 +00:00
b := dAtA[iNdEx]
2017-02-07 21:33:23 +00:00
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthGenerated
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
2018-02-14 08:56:04 +00:00
if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2017-02-07 21:33:23 +00:00
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
}
2018-02-14 08:56:04 +00:00
b := dAtA[iNdEx]
2017-02-07 21:33:23 +00:00
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthGenerated
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
2018-02-14 08:56:04 +00:00
if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2017-02-07 21:33:23 +00:00
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
}
2018-02-14 08:56:04 +00:00
b := dAtA[iNdEx]
2017-02-07 21:33:23 +00:00
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthGenerated
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
2018-02-14 08:56:04 +00:00
if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2017-02-07 21:33:23 +00:00
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
2018-02-14 08:56:04 +00:00
skippy, err := skipGenerated(dAtA[iNdEx:])
2017-02-07 21:33:23 +00:00
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthGenerated
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
2018-02-14 08:56:04 +00:00
func (m *CertificateSigningRequestCondition) Unmarshal(dAtA []byte) error {
l := len(dAtA)
2017-02-07 21:33:23 +00:00
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
}
2018-02-14 08:56:04 +00:00
b := dAtA[iNdEx]
2017-02-07 21:33:23 +00:00
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: CertificateSigningRequestCondition: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: CertificateSigningRequestCondition: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
2018-02-14 08:56:04 +00:00
b := dAtA[iNdEx]
2017-02-07 21:33:23 +00:00
iNdEx++
stringLen |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthGenerated
}
postIndex := iNdEx + intStringLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
2018-02-14 08:56:04 +00:00
m.Type = RequestConditionType(dAtA[iNdEx:postIndex])
2017-02-07 21:33:23 +00:00
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
2018-02-14 08:56:04 +00:00
b := dAtA[iNdEx]
2017-02-07 21:33:23 +00:00
iNdEx++
stringLen |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthGenerated
}
postIndex := iNdEx + intStringLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
2018-02-14 08:56:04 +00:00
m.Reason = string(dAtA[iNdEx:postIndex])
2017-02-07 21:33:23 +00:00
iNdEx = postIndex
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
2018-02-14 08:56:04 +00:00
b := dAtA[iNdEx]
2017-02-07 21:33:23 +00:00
iNdEx++
stringLen |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthGenerated
}
postIndex := iNdEx + intStringLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
2018-02-14 08:56:04 +00:00
m.Message = string(dAtA[iNdEx:postIndex])
2017-02-07 21:33:23 +00:00
iNdEx = postIndex
case 4:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field LastUpdateTime", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
2018-02-14 08:56:04 +00:00
b := dAtA[iNdEx]
2017-02-07 21:33:23 +00:00
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthGenerated
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
2018-02-14 08:56:04 +00:00
if err := m.LastUpdateTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2017-02-07 21:33:23 +00:00
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
2018-02-14 08:56:04 +00:00
skippy, err := skipGenerated(dAtA[iNdEx:])
2017-02-07 21:33:23 +00:00
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthGenerated
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
2018-02-14 08:56:04 +00:00
func (m *CertificateSigningRequestList) Unmarshal(dAtA []byte) error {
l := len(dAtA)
2017-02-07 21:33:23 +00:00
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
}
2018-02-14 08:56:04 +00:00
b := dAtA[iNdEx]
2017-02-07 21:33:23 +00:00
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: CertificateSigningRequestList: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: CertificateSigningRequestList: 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
}
2018-02-14 08:56:04 +00:00
b := dAtA[iNdEx]
2017-02-07 21:33:23 +00:00
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthGenerated
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
2018-02-14 08:56:04 +00:00
if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2017-02-07 21:33:23 +00:00
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
}
2018-02-14 08:56:04 +00:00
b := dAtA[iNdEx]
2017-02-07 21:33:23 +00:00
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthGenerated
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Items = append(m.Items, CertificateSigningRequest{})
2018-02-14 08:56:04 +00:00
if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2017-02-07 21:33:23 +00:00
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
2018-02-14 08:56:04 +00:00
skippy, err := skipGenerated(dAtA[iNdEx:])
2017-02-07 21:33:23 +00:00
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthGenerated
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
2018-02-14 08:56:04 +00:00
func (m *CertificateSigningRequestSpec) Unmarshal(dAtA []byte) error {
l := len(dAtA)
2017-02-07 21:33:23 +00:00
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
}
2018-02-14 08:56:04 +00:00
b := dAtA[iNdEx]
2017-02-07 21:33:23 +00:00
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: CertificateSigningRequestSpec: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: CertificateSigningRequestSpec: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
2018-02-14 08:56:04 +00:00
b := dAtA[iNdEx]
2017-02-07 21:33:23 +00:00
iNdEx++
byteLen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return ErrInvalidLengthGenerated
}
postIndex := iNdEx + byteLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
2018-02-14 08:56:04 +00:00
m.Request = append(m.Request[:0], dAtA[iNdEx:postIndex]...)
2017-02-07 21:33:23 +00:00
if m.Request == nil {
m.Request = []byte{}
}
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
2018-02-14 08:56:04 +00:00
b := dAtA[iNdEx]
2017-02-07 21:33:23 +00:00
iNdEx++
stringLen |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthGenerated
}
postIndex := iNdEx + intStringLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
2018-02-14 08:56:04 +00:00
m.Username = string(dAtA[iNdEx:postIndex])
2017-02-07 21:33:23 +00:00
iNdEx = postIndex
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field UID", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
2018-02-14 08:56:04 +00:00
b := dAtA[iNdEx]
2017-02-07 21:33:23 +00:00
iNdEx++
stringLen |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthGenerated
}
postIndex := iNdEx + intStringLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
2018-02-14 08:56:04 +00:00
m.UID = string(dAtA[iNdEx:postIndex])
2017-02-07 21:33:23 +00:00
iNdEx = postIndex
case 4:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
2018-02-14 08:56:04 +00:00
b := dAtA[iNdEx]
2017-02-07 21:33:23 +00:00
iNdEx++
stringLen |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthGenerated
}
postIndex := iNdEx + intStringLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
2018-02-14 08:56:04 +00:00
m.Groups = append(m.Groups, string(dAtA[iNdEx:postIndex]))
iNdEx = postIndex
case 5:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Usages", 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 > l {
return io.ErrUnexpectedEOF
}
m.Usages = append(m.Usages, KeyUsage(dAtA[iNdEx:postIndex]))
iNdEx = postIndex
case 6:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Extra", 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 > l {
return io.ErrUnexpectedEOF
}
var keykey uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
keykey |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
var stringLenmapkey uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLenmapkey |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
intStringLenmapkey := int(stringLenmapkey)
if intStringLenmapkey < 0 {
return ErrInvalidLengthGenerated
}
postStringIndexmapkey := iNdEx + intStringLenmapkey
if postStringIndexmapkey > l {
return io.ErrUnexpectedEOF
}
mapkey := string(dAtA[iNdEx:postStringIndexmapkey])
iNdEx = postStringIndexmapkey
if m.Extra == nil {
m.Extra = make(map[string]ExtraValue)
}
if iNdEx < postIndex {
var valuekey uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
valuekey |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
var mapmsglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
mapmsglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if mapmsglen < 0 {
return ErrInvalidLengthGenerated
}
postmsgIndex := iNdEx + mapmsglen
if mapmsglen < 0 {
return ErrInvalidLengthGenerated
}
if postmsgIndex > l {
return io.ErrUnexpectedEOF
}
mapvalue := &ExtraValue{}
if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
return err
}
iNdEx = postmsgIndex
m.Extra[mapkey] = *mapvalue
} else {
var mapvalue ExtraValue
m.Extra[mapkey] = mapvalue
}
2017-02-07 21:33:23 +00:00
iNdEx = postIndex
default:
iNdEx = preIndex
2018-02-14 08:56:04 +00:00
skippy, err := skipGenerated(dAtA[iNdEx:])
2017-02-07 21:33:23 +00:00
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthGenerated
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
2018-02-14 08:56:04 +00:00
func (m *CertificateSigningRequestStatus) Unmarshal(dAtA []byte) error {
l := len(dAtA)
2017-02-07 21:33:23 +00:00
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
}
2018-02-14 08:56:04 +00:00
b := dAtA[iNdEx]
2017-02-07 21:33:23 +00:00
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: CertificateSigningRequestStatus: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: CertificateSigningRequestStatus: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
2018-02-14 08:56:04 +00:00
b := dAtA[iNdEx]
2017-02-07 21:33:23 +00:00
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthGenerated
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Conditions = append(m.Conditions, CertificateSigningRequestCondition{})
2018-02-14 08:56:04 +00:00
if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2017-02-07 21:33:23 +00:00
return err
}
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Certificate", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
2018-02-14 08:56:04 +00:00
b := dAtA[iNdEx]
2017-02-07 21:33:23 +00:00
iNdEx++
byteLen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return ErrInvalidLengthGenerated
}
postIndex := iNdEx + byteLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
2018-02-14 08:56:04 +00:00
m.Certificate = append(m.Certificate[:0], dAtA[iNdEx:postIndex]...)
2017-02-07 21:33:23 +00:00
if m.Certificate == nil {
m.Certificate = []byte{}
}
iNdEx = postIndex
default:
iNdEx = preIndex
2018-02-14 08:56:04 +00:00
skippy, err := skipGenerated(dAtA[iNdEx:])
2017-02-07 21:33:23 +00:00
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthGenerated
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
2018-02-14 08:56:04 +00:00
func (m *ExtraValue) 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: ExtraValue: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: ExtraValue: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Items", 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 > l {
return io.ErrUnexpectedEOF
}
*m = append(*m, string(dAtA[iNdEx:postIndex]))
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipGenerated(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthGenerated
}
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)
2017-02-07 21:33:23 +00:00
iNdEx := 0
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
}
2018-02-14 08:56:04 +00:00
b := dAtA[iNdEx]
2017-02-07 21:33:23 +00:00
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++
2018-02-14 08:56:04 +00:00
if dAtA[iNdEx-1] < 0x80 {
2017-02-07 21:33:23 +00:00
break
}
}
return iNdEx, nil
case 1:
iNdEx += 8
return iNdEx, nil
case 2:
var length int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowGenerated
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
2018-02-14 08:56:04 +00:00
b := dAtA[iNdEx]
2017-02-07 21:33:23 +00:00
iNdEx++
length |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
iNdEx += length
if length < 0 {
return 0, ErrInvalidLengthGenerated
}
return iNdEx, nil
case 3:
for {
var innerWire uint64
var start int = iNdEx
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowGenerated
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
2018-02-14 08:56:04 +00:00
b := dAtA[iNdEx]
2017-02-07 21:33:23 +00:00
iNdEx++
innerWire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
innerWireType := int(innerWire & 0x7)
if innerWireType == 4 {
break
}
2018-02-14 08:56:04 +00:00
next, err := skipGenerated(dAtA[start:])
2017-02-07 21:33:23 +00:00
if err != nil {
return 0, err
}
iNdEx = start + next
}
return iNdEx, nil
case 4:
return iNdEx, nil
case 5:
iNdEx += 4
return iNdEx, nil
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
}
panic("unreachable")
}
var (
ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
)
2018-02-14 08:56:04 +00:00
func init() {
proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/certificates/v1beta1/generated.proto", fileDescriptorGenerated)
}
2017-02-07 21:33:23 +00:00
var fileDescriptorGenerated = []byte{
2018-02-14 08:56:04 +00:00
// 816 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x54, 0x4d, 0x6f, 0x1b, 0x45,
0x18, 0xf6, 0xfa, 0x2b, 0xf6, 0x38, 0xa4, 0xd5, 0x08, 0x55, 0x4b, 0xa4, 0xee, 0x46, 0x2b, 0x40,
0xe1, 0xa3, 0xb3, 0xa4, 0x20, 0x88, 0x72, 0x40, 0xb0, 0xa1, 0x82, 0x88, 0x56, 0x48, 0xd3, 0x86,
0x03, 0x42, 0xa2, 0xe3, 0xf5, 0xdb, 0xcd, 0xd4, 0xd9, 0x0f, 0x76, 0x66, 0x0d, 0xbe, 0xf5, 0x27,
0x70, 0xe4, 0x82, 0xc4, 0x2f, 0xe1, 0x1c, 0x0e, 0x48, 0x3d, 0xf6, 0x80, 0x2c, 0x62, 0xfe, 0x45,
0x4f, 0x68, 0x66, 0xc7, 0x5e, 0x63, 0xcb, 0x75, 0xd5, 0xdc, 0xf6, 0x7d, 0xde, 0xf7, 0x79, 0xde,
0xcf, 0x59, 0xf4, 0xd5, 0xf0, 0x50, 0x10, 0x9e, 0xfa, 0xc3, 0xa2, 0x0f, 0x79, 0x02, 0x12, 0x84,
0x3f, 0x82, 0x64, 0x90, 0xe6, 0xbe, 0x71, 0xb0, 0x8c, 0xfb, 0x21, 0xe4, 0x92, 0x3f, 0xe2, 0x21,
0xd3, 0xee, 0x83, 0x3e, 0x48, 0x76, 0xe0, 0x47, 0x90, 0x40, 0xce, 0x24, 0x0c, 0x48, 0x96, 0xa7,
0x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