| 1 |
/* |
| 2 |
Copyright The Kubernetes Authors. |
| 3 |
|
| 4 |
Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 |
you may not use this file except in compliance with the License. |
| 6 |
You may obtain a copy of the License at |
| 7 |
|
| 8 |
http://www.apache.org/licenses/LICENSE-2.0 |
| 9 |
|
| 10 |
Unless required by applicable law or agreed to in writing, software |
| 11 |
distributed under the License is distributed on an "AS IS" BASIS, |
| 12 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 |
See the License for the specific language governing permissions and |
| 14 |
limitations under the License. |
| 15 |
*/ |
| 16 |
|
| 17 |
// Code generated by protoc-gen-gogo. DO NOT EDIT. |
| 18 |
// source: k8s.io/apiserver/pkg/apis/audit/v1/generated.proto |
| 19 |
|
| 20 |
package v1 |
| 21 |
|
| 22 |
import ( |
| 23 |
fmt "fmt" |
| 24 |
|
| 25 |
io "io" |
| 26 |
|
| 27 |
proto "github.com/gogo/protobuf/proto" |
| 28 |
github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" |
| 29 |
v1 "k8s.io/api/authentication/v1" |
| 30 |
v11 "k8s.io/apimachinery/pkg/apis/meta/v1" |
| 31 |
runtime "k8s.io/apimachinery/pkg/runtime" |
| 32 |
|
| 33 |
math "math" |
| 34 |
math_bits "math/bits" |
| 35 |
reflect "reflect" |
| 36 |
strings "strings" |
| 37 |
|
| 38 |
k8s_io_apimachinery_pkg_types "k8s.io/apimachinery/pkg/types" |
| 39 |
) |
| 40 |
|
| 41 |
// Reference imports to suppress errors if they are not otherwise used. |
| 42 |
var _ = proto.Marshal |
| 43 |
var _ = fmt.Errorf |
| 44 |
var _ = math.Inf |
| 45 |
|
| 46 |
// This is a compile-time assertion to ensure that this generated file |
| 47 |
// is compatible with the proto package it is being compiled against. |
| 48 |
// A compilation error at this line likely means your copy of the |
| 49 |
// proto package needs to be updated. |
| 50 |
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package |
| 51 |
|
| 52 |
func (m *Event) Reset() { *m = Event{} } |
| 53 |
func (*Event) ProtoMessage() {} |
| 54 |
func (*Event) Descriptor() ([]byte, []int) { |
| 55 |
return fileDescriptor_62937bb89ca7b6dd, []int{0} |
| 56 |
} |
| 57 |
func (m *Event) XXX_Unmarshal(b []byte) error { |
| 58 |
return m.Unmarshal(b) |
| 59 |
} |
| 60 |
func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 61 |
b = b[:cap(b)] |
| 62 |
n, err := m.MarshalToSizedBuffer(b) |
| 63 |
if err != nil { |
| 64 |
return nil, err |
| 65 |
} |
| 66 |
return b[:n], nil |
| 67 |
} |
| 68 |
func (m *Event) XXX_Merge(src proto.Message) { |
| 69 |
xxx_messageInfo_Event.Merge(m, src) |
| 70 |
} |
| 71 |
func (m *Event) XXX_Size() int { |
| 72 |
return m.Size() |
| 73 |
} |
| 74 |
func (m *Event) XXX_DiscardUnknown() { |
| 75 |
xxx_messageInfo_Event.DiscardUnknown(m) |
| 76 |
} |
| 77 |
|
| 78 |
var xxx_messageInfo_Event proto.InternalMessageInfo |
| 79 |
|
| 80 |
func (m *EventList) Reset() { *m = EventList{} } |
| 81 |
func (*EventList) ProtoMessage() {} |
| 82 |
func (*EventList) Descriptor() ([]byte, []int) { |
| 83 |
return fileDescriptor_62937bb89ca7b6dd, []int{1} |
| 84 |
} |
| 85 |
func (m *EventList) XXX_Unmarshal(b []byte) error { |
| 86 |
return m.Unmarshal(b) |
| 87 |
} |
| 88 |
func (m *EventList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 89 |
b = b[:cap(b)] |
| 90 |
n, err := m.MarshalToSizedBuffer(b) |
| 91 |
if err != nil { |
| 92 |
return nil, err |
| 93 |
} |
| 94 |
return b[:n], nil |
| 95 |
} |
| 96 |
func (m *EventList) XXX_Merge(src proto.Message) { |
| 97 |
xxx_messageInfo_EventList.Merge(m, src) |
| 98 |
} |
| 99 |
func (m *EventList) XXX_Size() int { |
| 100 |
return m.Size() |
| 101 |
} |
| 102 |
func (m *EventList) XXX_DiscardUnknown() { |
| 103 |
xxx_messageInfo_EventList.DiscardUnknown(m) |
| 104 |
} |
| 105 |
|
| 106 |
var xxx_messageInfo_EventList proto.InternalMessageInfo |
| 107 |
|
| 108 |
func (m *GroupResources) Reset() { *m = GroupResources{} } |
| 109 |
func (*GroupResources) ProtoMessage() {} |
| 110 |
func (*GroupResources) Descriptor() ([]byte, []int) { |
| 111 |
return fileDescriptor_62937bb89ca7b6dd, []int{2} |
| 112 |
} |
| 113 |
func (m *GroupResources) XXX_Unmarshal(b []byte) error { |
| 114 |
return m.Unmarshal(b) |
| 115 |
} |
| 116 |
func (m *GroupResources) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 117 |
b = b[:cap(b)] |
| 118 |
n, err := m.MarshalToSizedBuffer(b) |
| 119 |
if err != nil { |
| 120 |
return nil, err |
| 121 |
} |
| 122 |
return b[:n], nil |
| 123 |
} |
| 124 |
func (m *GroupResources) XXX_Merge(src proto.Message) { |
| 125 |
xxx_messageInfo_GroupResources.Merge(m, src) |
| 126 |
} |
| 127 |
func (m *GroupResources) XXX_Size() int { |
| 128 |
return m.Size() |
| 129 |
} |
| 130 |
func (m *GroupResources) XXX_DiscardUnknown() { |
| 131 |
xxx_messageInfo_GroupResources.DiscardUnknown(m) |
| 132 |
} |
| 133 |
|
| 134 |
var xxx_messageInfo_GroupResources proto.InternalMessageInfo |
| 135 |
|
| 136 |
func (m *ObjectReference) Reset() { *m = ObjectReference{} } |
| 137 |
func (*ObjectReference) ProtoMessage() {} |
| 138 |
func (*ObjectReference) Descriptor() ([]byte, []int) { |
| 139 |
return fileDescriptor_62937bb89ca7b6dd, []int{3} |
| 140 |
} |
| 141 |
func (m *ObjectReference) XXX_Unmarshal(b []byte) error { |
| 142 |
return m.Unmarshal(b) |
| 143 |
} |
| 144 |
func (m *ObjectReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 145 |
b = b[:cap(b)] |
| 146 |
n, err := m.MarshalToSizedBuffer(b) |
| 147 |
if err != nil { |
| 148 |
return nil, err |
| 149 |
} |
| 150 |
return b[:n], nil |
| 151 |
} |
| 152 |
func (m *ObjectReference) XXX_Merge(src proto.Message) { |
| 153 |
xxx_messageInfo_ObjectReference.Merge(m, src) |
| 154 |
} |
| 155 |
func (m *ObjectReference) XXX_Size() int { |
| 156 |
return m.Size() |
| 157 |
} |
| 158 |
func (m *ObjectReference) XXX_DiscardUnknown() { |
| 159 |
xxx_messageInfo_ObjectReference.DiscardUnknown(m) |
| 160 |
} |
| 161 |
|
| 162 |
var xxx_messageInfo_ObjectReference proto.InternalMessageInfo |
| 163 |
|
| 164 |
func (m *Policy) Reset() { *m = Policy{} } |
| 165 |
func (*Policy) ProtoMessage() {} |
| 166 |
func (*Policy) Descriptor() ([]byte, []int) { |
| 167 |
return fileDescriptor_62937bb89ca7b6dd, []int{4} |
| 168 |
} |
| 169 |
func (m *Policy) XXX_Unmarshal(b []byte) error { |
| 170 |
return m.Unmarshal(b) |
| 171 |
} |
| 172 |
func (m *Policy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 173 |
b = b[:cap(b)] |
| 174 |
n, err := m.MarshalToSizedBuffer(b) |
| 175 |
if err != nil { |
| 176 |
return nil, err |
| 177 |
} |
| 178 |
return b[:n], nil |
| 179 |
} |
| 180 |
func (m *Policy) XXX_Merge(src proto.Message) { |
| 181 |
xxx_messageInfo_Policy.Merge(m, src) |
| 182 |
} |
| 183 |
func (m *Policy) XXX_Size() int { |
| 184 |
return m.Size() |
| 185 |
} |
| 186 |
func (m *Policy) XXX_DiscardUnknown() { |
| 187 |
xxx_messageInfo_Policy.DiscardUnknown(m) |
| 188 |
} |
| 189 |
|
| 190 |
var xxx_messageInfo_Policy proto.InternalMessageInfo |
| 191 |
|
| 192 |
func (m *PolicyList) Reset() { *m = PolicyList{} } |
| 193 |
func (*PolicyList) ProtoMessage() {} |
| 194 |
func (*PolicyList) Descriptor() ([]byte, []int) { |
| 195 |
return fileDescriptor_62937bb89ca7b6dd, []int{5} |
| 196 |
} |
| 197 |
func (m *PolicyList) XXX_Unmarshal(b []byte) error { |
| 198 |
return m.Unmarshal(b) |
| 199 |
} |
| 200 |
func (m *PolicyList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 201 |
b = b[:cap(b)] |
| 202 |
n, err := m.MarshalToSizedBuffer(b) |
| 203 |
if err != nil { |
| 204 |
return nil, err |
| 205 |
} |
| 206 |
return b[:n], nil |
| 207 |
} |
| 208 |
func (m *PolicyList) XXX_Merge(src proto.Message) { |
| 209 |
xxx_messageInfo_PolicyList.Merge(m, src) |
| 210 |
} |
| 211 |
func (m *PolicyList) XXX_Size() int { |
| 212 |
return m.Size() |
| 213 |
} |
| 214 |
func (m *PolicyList) XXX_DiscardUnknown() { |
| 215 |
xxx_messageInfo_PolicyList.DiscardUnknown(m) |
| 216 |
} |
| 217 |
|
| 218 |
var xxx_messageInfo_PolicyList proto.InternalMessageInfo |
| 219 |
|
| 220 |
func (m *PolicyRule) Reset() { *m = PolicyRule{} } |
| 221 |
func (*PolicyRule) ProtoMessage() {} |
| 222 |
func (*PolicyRule) Descriptor() ([]byte, []int) { |
| 223 |
return fileDescriptor_62937bb89ca7b6dd, []int{6} |
| 224 |
} |
| 225 |
func (m *PolicyRule) XXX_Unmarshal(b []byte) error { |
| 226 |
return m.Unmarshal(b) |
| 227 |
} |
| 228 |
func (m *PolicyRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 229 |
b = b[:cap(b)] |
| 230 |
n, err := m.MarshalToSizedBuffer(b) |
| 231 |
if err != nil { |
| 232 |
return nil, err |
| 233 |
} |
| 234 |
return b[:n], nil |
| 235 |
} |
| 236 |
func (m *PolicyRule) XXX_Merge(src proto.Message) { |
| 237 |
xxx_messageInfo_PolicyRule.Merge(m, src) |
| 238 |
} |
| 239 |
func (m *PolicyRule) XXX_Size() int { |
| 240 |
return m.Size() |
| 241 |
} |
| 242 |
func (m *PolicyRule) XXX_DiscardUnknown() { |
| 243 |
xxx_messageInfo_PolicyRule.DiscardUnknown(m) |
| 244 |
} |
| 245 |
|
| 246 |
var xxx_messageInfo_PolicyRule proto.InternalMessageInfo |
| 247 |
|
| 248 |
func init() { |
| 249 |
proto.RegisterType((*Event)(nil), "k8s.io.apiserver.pkg.apis.audit.v1.Event") |
| 250 |
proto.RegisterMapType((map[string]string)(nil), "k8s.io.apiserver.pkg.apis.audit.v1.Event.AnnotationsEntry") |
| 251 |
proto.RegisterType((*EventList)(nil), "k8s.io.apiserver.pkg.apis.audit.v1.EventList") |
| 252 |
proto.RegisterType((*GroupResources)(nil), "k8s.io.apiserver.pkg.apis.audit.v1.GroupResources") |
| 253 |
proto.RegisterType((*ObjectReference)(nil), "k8s.io.apiserver.pkg.apis.audit.v1.ObjectReference") |
| 254 |
proto.RegisterType((*Policy)(nil), "k8s.io.apiserver.pkg.apis.audit.v1.Policy") |
| 255 |
proto.RegisterType((*PolicyList)(nil), "k8s.io.apiserver.pkg.apis.audit.v1.PolicyList") |
| 256 |
proto.RegisterType((*PolicyRule)(nil), "k8s.io.apiserver.pkg.apis.audit.v1.PolicyRule") |
| 257 |
} |
| 258 |
|
| 259 |
func init() { |
| 260 |
proto.RegisterFile("k8s.io/apiserver/pkg/apis/audit/v1/generated.proto", fileDescriptor_62937bb89ca7b6dd) |
| 261 |
} |
| 262 |
|
| 263 |
var fileDescriptor_62937bb89ca7b6dd = []byte{ |
| 264 |
// 1275 bytes of a gzipped FileDescriptorProto |
| 265 |
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0xcf, 0x6f, 0x1b, 0xd5, |
| 266 |
0x13, 0xcf, 0xc6, 0x71, 0x63, 0x8f, 0x1b, 0xc7, 0x79, 0xed, 0xf7, 0xdb, 0x25, 0x07, 0xdb, 0x18, |
| 267 |
0x09, 0x05, 0x08, 0xeb, 0xd6, 0x14, 0x5a, 0x55, 0x02, 0xc9, 0xa6, 0xa5, 0xb5, 0xd4, 0xa6, 0xd1, |
| 268 |
0x33, 0xee, 0x01, 0x71, 0xe8, 0x7a, 0x3d, 0xb5, 0x97, 0xd8, 0xbb, 0xdb, 0x7d, 0x6f, 0x8d, 0x72, |
| 269 |
0xe3, 0x1f, 0x40, 0xe2, 0xce, 0x7f, 0xc1, 0x0d, 0x71, 0xe2, 0x96, 0x63, 0x8f, 0x3d, 0x59, 0xc4, |
| 270 |
0xf0, 0x57, 0xe4, 0x80, 0xd0, 0x7b, 0xfb, 0xf6, 0x87, 0x9d, 0x58, 0x71, 0x38, 0x70, 0xf3, 0x9b, |
| 271 |
0xf9, 0x7c, 0x3e, 0x33, 0x3b, 0x3b, 0x33, 0x6f, 0x0d, 0x8d, 0xa3, 0xfb, 0xcc, 0xb0, 0xdd, 0xba, |
| 272 |
0xe9, 0xd9, 0x0c, 0xfd, 0x09, 0xfa, 0x75, 0xef, 0x68, 0x20, 0x4f, 0x75, 0x33, 0xe8, 0xdb, 0xbc, |
| 273 |
0x3e, 0xb9, 0x53, 0x1f, 0xa0, 0x83, 0xbe, 0xc9, 0xb1, 0x6f, 0x78, 0xbe, 0xcb, 0x5d, 0x52, 0x0b, |
| 274 |
0x39, 0x46, 0xcc, 0x31, 0xbc, 0xa3, 0x81, 0x3c, 0x19, 0x92, 0x63, 0x4c, 0xee, 0xec, 0x7e, 0x3c, |
| 275 |
0xb0, 0xf9, 0x30, 0xe8, 0x19, 0x96, 0x3b, 0xae, 0x0f, 0xdc, 0x81, 0x5b, 0x97, 0xd4, 0x5e, 0xf0, |
| 276 |
0x4a, 0x9e, 0xe4, 0x41, 0xfe, 0x0a, 0x25, 0x77, 0xf7, 0x93, 0x34, 0xea, 0x66, 0xc0, 0x87, 0xe8, |
| 277 |
0x70, 0xdb, 0x32, 0xb9, 0xed, 0x3a, 0x17, 0x24, 0xb0, 0x7b, 0x37, 0x41, 0x8f, 0x4d, 0x6b, 0x68, |
| 278 |
0x3b, 0xe8, 0x1f, 0x27, 0x79, 0x8f, 0x91, 0x9b, 0x17, 0xb1, 0xea, 0xcb, 0x58, 0x7e, 0xe0, 0x70, |
| 279 |
0x7b, 0x8c, 0xe7, 0x08, 0x9f, 0x5d, 0x46, 0x60, 0xd6, 0x10, 0xc7, 0xe6, 0x22, 0xaf, 0xf6, 0x17, |
| 280 |
0x40, 0xf6, 0xd1, 0x04, 0x1d, 0x4e, 0xf6, 0x21, 0x3b, 0xc2, 0x09, 0x8e, 0x74, 0xad, 0xaa, 0xed, |
| 281 |
0xe5, 0x5b, 0xff, 0x3f, 0x99, 0x56, 0xd6, 0x66, 0xd3, 0x4a, 0xf6, 0xa9, 0x30, 0x9e, 0x45, 0x3f, |
| 282 |
0x68, 0x08, 0x22, 0x07, 0xb0, 0x29, 0xeb, 0xd7, 0x7e, 0xa8, 0xaf, 0x4b, 0xfc, 0x5d, 0x85, 0xdf, |
| 283 |
0x6c, 0x86, 0xe6, 0xb3, 0x69, 0xe5, 0xdd, 0x65, 0x39, 0xf1, 0x63, 0x0f, 0x99, 0xd1, 0x6d, 0x3f, |
| 284 |
0xa4, 0x91, 0x88, 0x88, 0xce, 0xb8, 0x39, 0x40, 0x3d, 0x33, 0x1f, 0xbd, 0x23, 0x8c, 0x67, 0xd1, |
| 285 |
0x0f, 0x1a, 0x82, 0x48, 0x03, 0xc0, 0xc7, 0xd7, 0x01, 0x32, 0xde, 0xa5, 0x6d, 0x7d, 0x43, 0x52, |
| 286 |
0x88, 0xa2, 0x00, 0x8d, 0x3d, 0x34, 0x85, 0x22, 0x55, 0xd8, 0x98, 0xa0, 0xdf, 0xd3, 0xb3, 0x12, |
| 287 |
0x7d, 0x5d, 0xa1, 0x37, 0x5e, 0xa0, 0xdf, 0xa3, 0xd2, 0x43, 0x9e, 0xc0, 0x46, 0xc0, 0xd0, 0xd7, |
| 288 |
0xaf, 0x55, 0xb5, 0xbd, 0x42, 0xe3, 0x7d, 0x23, 0x69, 0x1d, 0x63, 0xfe, 0x3d, 0x1b, 0x93, 0x3b, |
| 289 |
0x46, 0x97, 0xa1, 0xdf, 0x76, 0x5e, 0xb9, 0x89, 0x92, 0xb0, 0x50, 0xa9, 0x40, 0x86, 0x50, 0xb2, |
| 290 |
0xc7, 0x1e, 0xfa, 0xcc, 0x75, 0x44, 0xad, 0x85, 0x47, 0xdf, 0xbc, 0x92, 0xea, 0xcd, 0xd9, 0xb4, |
| 291 |
0x52, 0x6a, 0x2f, 0x68, 0xd0, 0x73, 0xaa, 0xe4, 0x23, 0xc8, 0x33, 0x37, 0xf0, 0x2d, 0x6c, 0x1f, |
| 292 |
0x32, 0x3d, 0x57, 0xcd, 0xec, 0xe5, 0x5b, 0x5b, 0xb3, 0x69, 0x25, 0xdf, 0x89, 0x8c, 0x34, 0xf1, |
| 293 |
0x93, 0x3a, 0xe4, 0x45, 0x7a, 0xcd, 0x01, 0x3a, 0x5c, 0x2f, 0xc9, 0x3a, 0xec, 0xa8, 0xec, 0xf3, |
| 294 |
0xdd, 0xc8, 0x41, 0x13, 0x0c, 0x79, 0x09, 0x79, 0xb7, 0xf7, 0x1d, 0x5a, 0x9c, 0xe2, 0x2b, 0x3d, |
| 295 |
0x2f, 0x1f, 0xe0, 0x13, 0xe3, 0xf2, 0x89, 0x32, 0x9e, 0x47, 0x24, 0xf4, 0xd1, 0xb1, 0x30, 0x4c, |
| 296 |
0x29, 0x36, 0xd2, 0x44, 0x94, 0x0c, 0xa1, 0xe8, 0x23, 0xf3, 0x5c, 0x87, 0x61, 0x87, 0x9b, 0x3c, |
| 297 |
0x60, 0x3a, 0xc8, 0x30, 0xfb, 0xa9, 0x30, 0x71, 0xf3, 0x24, 0x91, 0xc4, 0xdc, 0x88, 0x40, 0x21, |
| 298 |
0xa7, 0x45, 0x66, 0xd3, 0x4a, 0x91, 0xce, 0xe9, 0xd0, 0x05, 0x5d, 0x62, 0xc2, 0x96, 0xea, 0x86, |
| 299 |
0x30, 0x11, 0xbd, 0x20, 0x03, 0xed, 0x2d, 0x0d, 0xa4, 0x26, 0xc7, 0xe8, 0x3a, 0x47, 0x8e, 0xfb, |
| 300 |
0xbd, 0xd3, 0xda, 0x99, 0x4d, 0x2b, 0x5b, 0x34, 0x2d, 0x41, 0xe7, 0x15, 0x49, 0x3f, 0x79, 0x18, |
| 301 |
0x15, 0xe3, 0xfa, 0x15, 0x63, 0xcc, 0x3d, 0x88, 0x0a, 0xb2, 0xa0, 0x49, 0x7e, 0xd4, 0x40, 0x57, |
| 302 |
0x71, 0x29, 0x5a, 0x68, 0x4f, 0xb0, 0xff, 0xb5, 0x3d, 0x46, 0xc6, 0xcd, 0xb1, 0xa7, 0x6f, 0xc9, |
| 303 |
0x80, 0xf5, 0xd5, 0xaa, 0xf7, 0xcc, 0xb6, 0x7c, 0x57, 0x70, 0x5b, 0x55, 0xd5, 0x06, 0x3a, 0x5d, |
| 304 |
0x22, 0x4c, 0x97, 0x86, 0x24, 0x2e, 0x14, 0xe5, 0x54, 0x26, 0x49, 0x14, 0xff, 0x5d, 0x12, 0xd1, |
| 305 |
0xd0, 0x17, 0x3b, 0x73, 0x72, 0x74, 0x41, 0x9e, 0xbc, 0x86, 0x82, 0xe9, 0x38, 0x2e, 0x97, 0x53, |
| 306 |
0xc3, 0xf4, 0xed, 0x6a, 0x66, 0xaf, 0xd0, 0x78, 0xb0, 0x4a, 0x5f, 0xca, 0x4d, 0x67, 0x34, 0x13, |
| 307 |
0xf2, 0x23, 0x87, 0xfb, 0xc7, 0xad, 0x1b, 0x2a, 0x70, 0x21, 0xe5, 0xa1, 0xe9, 0x18, 0xbb, 0x5f, |
| 308 |
0x40, 0x69, 0x91, 0x45, 0x4a, 0x90, 0x39, 0xc2, 0xe3, 0x70, 0x5d, 0x52, 0xf1, 0x93, 0xdc, 0x84, |
| 309 |
0xec, 0xc4, 0x1c, 0x05, 0x18, 0xae, 0x44, 0x1a, 0x1e, 0x1e, 0xac, 0xdf, 0xd7, 0x6a, 0xbf, 0x6a, |
| 310 |
0x90, 0x97, 0xc1, 0x9f, 0xda, 0x8c, 0x93, 0x6f, 0x21, 0x27, 0x9e, 0xbe, 0x6f, 0x72, 0x53, 0xd2, |
| 311 |
0x0b, 0x0d, 0x63, 0xb5, 0x5a, 0x09, 0xf6, 0x33, 0xe4, 0x66, 0xab, 0xa4, 0x32, 0xce, 0x45, 0x16, |
| 312 |
0x1a, 0x2b, 0x92, 0x03, 0xc8, 0xda, 0x1c, 0xc7, 0x4c, 0x5f, 0x97, 0x85, 0xf9, 0x60, 0xe5, 0xc2, |
| 313 |
0xb4, 0xb6, 0xa2, 0xad, 0xdb, 0x16, 0x7c, 0x1a, 0xca, 0xd4, 0x7e, 0xd6, 0xa0, 0xf8, 0xd8, 0x77, |
| 314 |
0x03, 0x8f, 0x62, 0xb8, 0x4a, 0x18, 0x79, 0x0f, 0xb2, 0x03, 0x61, 0x51, 0x77, 0x45, 0xcc, 0x0b, |
| 315 |
0x61, 0xa1, 0x4f, 0xac, 0x26, 0x3f, 0x62, 0xc8, 0x5c, 0xd4, 0x6a, 0x8a, 0x65, 0x68, 0xe2, 0x27, |
| 316 |
0xf7, 0xc4, 0x74, 0x86, 0x87, 0x03, 0x73, 0x8c, 0x4c, 0xcf, 0x48, 0x82, 0x9a, 0xb9, 0x94, 0x83, |
| 317 |
0xce, 0xe3, 0x6a, 0xbf, 0x64, 0x60, 0x7b, 0x61, 0xdd, 0x90, 0x7d, 0xc8, 0x45, 0x20, 0x95, 0x61, |
| 318 |
0x5c, 0xaf, 0x48, 0x8b, 0xc6, 0x08, 0xb1, 0x15, 0x1d, 0x21, 0xe5, 0x99, 0x96, 0x7a, 0x73, 0xc9, |
| 319 |
0x56, 0x3c, 0x88, 0x1c, 0x34, 0xc1, 0x88, 0x9b, 0x44, 0x1c, 0xd4, 0x55, 0x15, 0xef, 0x7f, 0x81, |
| 320 |
0xa5, 0xd2, 0x43, 0x5a, 0x90, 0x09, 0xec, 0xbe, 0xba, 0x98, 0x6e, 0x2b, 0x40, 0xa6, 0xbb, 0xea, |
| 321 |
0xad, 0x28, 0xc8, 0xe2, 0x21, 0x4c, 0xcf, 0x96, 0x15, 0x55, 0x77, 0x56, 0xfc, 0x10, 0xcd, 0xc3, |
| 322 |
0x76, 0x58, 0xe9, 0x18, 0x21, 0x6e, 0x44, 0xd3, 0xb3, 0x5f, 0xa0, 0xcf, 0x6c, 0xd7, 0x91, 0x37, |
| 323 |
0x58, 0xea, 0x46, 0x6c, 0x1e, 0xb6, 0x95, 0x87, 0xa6, 0x50, 0xa4, 0x09, 0xdb, 0x51, 0x11, 0x22, |
| 324 |
0xe2, 0xa6, 0x24, 0xde, 0x52, 0xc4, 0x6d, 0x3a, 0xef, 0xa6, 0x8b, 0x78, 0xf2, 0x29, 0x14, 0x58, |
| 325 |
0xd0, 0x8b, 0x8b, 0x9d, 0x93, 0xf4, 0x78, 0x9c, 0x3a, 0x89, 0x8b, 0xa6, 0x71, 0xb5, 0xdf, 0xd7, |
| 326 |
0xe1, 0xda, 0xa1, 0x3b, 0xb2, 0xad, 0x63, 0xf2, 0xf2, 0xdc, 0x2c, 0xdc, 0x5e, 0x6d, 0x16, 0xc2, |
| 327 |
0x97, 0x2e, 0xa7, 0x21, 0x7e, 0xd0, 0xc4, 0x96, 0x9a, 0x87, 0x0e, 0x64, 0xfd, 0x60, 0x84, 0xd1, |
| 328 |
0x3c, 0x18, 0xab, 0xcc, 0x43, 0x98, 0x1c, 0x0d, 0x46, 0x98, 0x34, 0xb7, 0x38, 0x31, 0x1a, 0x6a, |
| 329 |
0x91, 0x7b, 0x00, 0xee, 0xd8, 0xe6, 0x72, 0x53, 0x45, 0xcd, 0x7a, 0x4b, 0xa6, 0x10, 0x5b, 0x93, |
| 330 |
0xaf, 0x96, 0x14, 0x94, 0x3c, 0x86, 0x1d, 0x71, 0x7a, 0x66, 0x3a, 0xe6, 0x00, 0xfb, 0x5f, 0xd9, |
| 331 |
0x38, 0xea, 0x33, 0xd9, 0x28, 0xb9, 0xd6, 0x3b, 0x2a, 0xd2, 0xce, 0xf3, 0x45, 0x00, 0x3d, 0xcf, |
| 332 |
0xa9, 0xfd, 0xa6, 0x01, 0x84, 0x69, 0xfe, 0x07, 0x3b, 0xe5, 0xf9, 0xfc, 0x4e, 0xf9, 0x70, 0xf5, |
| 333 |
0x1a, 0x2e, 0x59, 0x2a, 0x7f, 0x67, 0xa2, 0xec, 0x45, 0x59, 0xaf, 0xf8, 0xf1, 0x59, 0x81, 0xac, |
| 334 |
0xf8, 0x46, 0x89, 0xb6, 0x4a, 0x5e, 0x20, 0xc5, 0xf7, 0x0b, 0xa3, 0xa1, 0x9d, 0x18, 0x00, 0xe2, |
| 335 |
0x87, 0x1c, 0x8d, 0xe8, 0xed, 0x14, 0xc5, 0xdb, 0xe9, 0xc6, 0x56, 0x9a, 0x42, 0x08, 0x41, 0xf1, |
| 336 |
0x05, 0x28, 0x5e, 0x44, 0x2c, 0x28, 0x3e, 0x0c, 0x19, 0x0d, 0xed, 0xc4, 0x4a, 0xef, 0xb2, 0xac, |
| 337 |
0xac, 0x41, 0x63, 0x95, 0x1a, 0xcc, 0xef, 0xcd, 0x64, 0xaf, 0x5c, 0xb8, 0x03, 0x0d, 0x80, 0x78, |
| 338 |
0xc9, 0x30, 0xfd, 0x5a, 0x92, 0x75, 0xbc, 0x85, 0x18, 0x4d, 0x21, 0xc8, 0xe7, 0xb0, 0xed, 0xb8, |
| 339 |
0x4e, 0x24, 0xd5, 0xa5, 0x4f, 0x99, 0xbe, 0x29, 0x49, 0x37, 0xc4, 0xec, 0x1e, 0xcc, 0xbb, 0xe8, |
| 340 |
0x22, 0x76, 0xa1, 0x85, 0x73, 0xab, 0xb7, 0xf0, 0x97, 0x17, 0xb5, 0x70, 0x5e, 0xb6, 0xf0, 0xff, |
| 341 |
0x56, 0x6d, 0xdf, 0xd6, 0x93, 0x93, 0xd3, 0xf2, 0xda, 0x9b, 0xd3, 0xf2, 0xda, 0xdb, 0xd3, 0xf2, |
| 342 |
0xda, 0x0f, 0xb3, 0xb2, 0x76, 0x32, 0x2b, 0x6b, 0x6f, 0x66, 0x65, 0xed, 0xed, 0xac, 0xac, 0xfd, |
| 343 |
0x31, 0x2b, 0x6b, 0x3f, 0xfd, 0x59, 0x5e, 0xfb, 0xa6, 0x76, 0xf9, 0x5f, 0xbe, 0x7f, 0x02, 0x00, |
| 344 |
0x00, 0xff, 0xff, 0x81, 0x06, 0x4f, 0x58, 0x17, 0x0e, 0x00, 0x00, |
| 345 |
} |
| 346 |
|
| 347 |
func (m *Event) Marshal() (dAtA []byte, err error) { |
| 348 |
size := m.Size() |
| 349 |
dAtA = make([]byte, size) |
| 350 |
n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 351 |
if err != nil { |
| 352 |
return nil, err |
| 353 |
} |
| 354 |
return dAtA[:n], nil |
| 355 |
} |
| 356 |
|
| 357 |
func (m *Event) MarshalTo(dAtA []byte) (int, error) { |
| 358 |
size := m.Size() |
| 359 |
return m.MarshalToSizedBuffer(dAtA[:size]) |
| 360 |
} |
| 361 |
|
| 362 |
func (m *Event) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 363 |
i := len(dAtA) |
| 364 |
_ = i |
| 365 |
var l int |
| 366 |
_ = l |
| 367 |
i -= len(m.UserAgent) |
| 368 |
copy(dAtA[i:], m.UserAgent) |
| 369 |
i = encodeVarintGenerated(dAtA, i, uint64(len(m.UserAgent))) |
| 370 |
i-- |
| 371 |
dAtA[i] = 0x1 |
| 372 |
i-- |
| 373 |
dAtA[i] = 0x82 |
| 374 |
if len(m.Annotations) > 0 { |
| 375 |
keysForAnnotations := make([]string, 0, len(m.Annotations)) |
| 376 |
for k := range m.Annotations { |
| 377 |
keysForAnnotations = append(keysForAnnotations, string(k)) |
| 378 |
} |
| 379 |
github_com_gogo_protobuf_sortkeys.Strings(keysForAnnotations) |
| 380 |
for iNdEx := len(keysForAnnotations) - 1; iNdEx >= 0; iNdEx-- { |
| 381 |
v := m.Annotations[string(keysForAnnotations[iNdEx])] |
| 382 |
baseI := i |
| 383 |
i -= len(v) |
| 384 |
copy(dAtA[i:], v) |
| 385 |
i = encodeVarintGenerated(dAtA, i, uint64(len(v))) |
| 386 |
i-- |
| 387 |
dAtA[i] = 0x12 |
| 388 |
i -= len(keysForAnnotations[iNdEx]) |
| 389 |
copy(dAtA[i:], keysForAnnotations[iNdEx]) |
| 390 |
i = encodeVarintGenerated(dAtA, i, uint64(len(keysForAnnotations[iNdEx]))) |
| 391 |
i-- |
| 392 |
dAtA[i] = 0xa |
| 393 |
i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) |
| 394 |
i-- |
| 395 |
dAtA[i] = 0x7a |
| 396 |
} |
| 397 |
} |
| 398 |
{ |
| 399 |
size, err := m.StageTimestamp.MarshalToSizedBuffer(dAtA[:i]) |
| 400 |
if err != nil { |
| 401 |
return 0, err |
| 402 |
} |
| 403 |
i -= size |
| 404 |
i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 405 |
} |
| 406 |
i-- |
| 407 |
dAtA[i] = 0x72 |
| 408 |
{ |
| 409 |
size, err := m.RequestReceivedTimestamp.MarshalToSizedBuffer(dAtA[:i]) |
| 410 |
if err != nil { |
| 411 |
return 0, err |
| 412 |
} |
| 413 |
i -= size |
| 414 |
i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 415 |
} |
| 416 |
i-- |
| 417 |
dAtA[i] = 0x6a |
| 418 |
if m.ResponseObject != nil { |
| 419 |
{ |
| 420 |
size, err := m.ResponseObject.MarshalToSizedBuffer(dAtA[:i]) |
| 421 |
if err != nil { |
| 422 |
return 0, err |
| 423 |
} |
| 424 |
i -= size |
| 425 |
i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 426 |
} |
| 427 |
i-- |
| 428 |
dAtA[i] = 0x62 |
| 429 |
} |
| 430 |
if m.RequestObject != nil { |
| 431 |
{ |
| 432 |
size, err := m.RequestObject.MarshalToSizedBuffer(dAtA[:i]) |
| 433 |
if err != nil { |
| 434 |
return 0, err |
| 435 |
} |
| 436 |
i -= size |
| 437 |
i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 438 |
} |
| 439 |
i-- |
| 440 |
dAtA[i] = 0x5a |
| 441 |
} |
| 442 |
if m.ResponseStatus != nil { |
| 443 |
{ |
| 444 |
size, err := m.ResponseStatus.MarshalToSizedBuffer(dAtA[:i]) |
| 445 |
if err != nil { |
| 446 |
return 0, err |
| 447 |
} |
| 448 |
i -= size |
| 449 |
i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 450 |
} |
| 451 |
i-- |
| 452 |
dAtA[i] = 0x52 |
| 453 |
} |
| 454 |
if m.ObjectRef != nil { |
| 455 |
{ |
| 456 |
size, err := m.ObjectRef.MarshalToSizedBuffer(dAtA[:i]) |
| 457 |
if err != nil { |
| 458 |
return 0, err |
| 459 |
} |
| 460 |
i -= size |
| 461 |
i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 462 |
} |
| 463 |
i-- |
| 464 |
dAtA[i] = 0x4a |
| 465 |
} |
| 466 |
if len(m.SourceIPs) > 0 { |
| 467 |
for iNdEx := len(m.SourceIPs) - 1; iNdEx >= 0; iNdEx-- { |
| 468 |
i -= len(m.SourceIPs[iNdEx]) |
| 469 |
copy(dAtA[i:], m.SourceIPs[iNdEx]) |
| 470 |
i = encodeVarintGenerated(dAtA, i, uint64(len(m.SourceIPs[iNdEx]))) |
| 471 |
i-- |
| 472 |
dAtA[i] = 0x42 |
| 473 |
} |
| 474 |
} |
| 475 |
if m.ImpersonatedUser != nil { |
| 476 |
{ |
| 477 |
size, err := m.ImpersonatedUser.MarshalToSizedBuffer(dAtA[:i]) |
| 478 |
if err != nil { |
| 479 |
return 0, err |
| 480 |
} |
| 481 |
i -= size |
| 482 |
i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 483 |
} |
| 484 |
i-- |
| 485 |
dAtA[i] = 0x3a |
| 486 |
} |
| 487 |
{ |
| 488 |
size, err := m.User.MarshalToSizedBuffer(dAtA[:i]) |
| 489 |
if err != nil { |
| 490 |
return 0, err |
| 491 |
} |
| 492 |
i -= size |
| 493 |
i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 494 |
} |
| 495 |
i-- |
| 496 |
dAtA[i] = 0x32 |
| 497 |
i -= len(m.Verb) |
| 498 |
copy(dAtA[i:], m.Verb) |
| 499 |
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Verb))) |
| 500 |
i-- |
| 501 |
dAtA[i] = 0x2a |
| 502 |
i -= len(m.RequestURI) |
| 503 |
copy(dAtA[i:], m.RequestURI) |
| 504 |
i = encodeVarintGenerated(dAtA, i, uint64(len(m.RequestURI))) |
| 505 |
i-- |
| 506 |
dAtA[i] = 0x22 |
| 507 |
i -= len(m.Stage) |
| 508 |
copy(dAtA[i:], m.Stage) |
| 509 |
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Stage))) |
| 510 |
i-- |
| 511 |
dAtA[i] = 0x1a |
| 512 |
i -= len(m.AuditID) |
| 513 |
copy(dAtA[i:], m.AuditID) |
| 514 |
i = encodeVarintGenerated(dAtA, i, uint64(len(m.AuditID))) |
| 515 |
i-- |
| 516 |
dAtA[i] = 0x12 |
| 517 |
i -= len(m.Level) |
| 518 |
copy(dAtA[i:], m.Level) |
| 519 |
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Level))) |
| 520 |
i-- |
| 521 |
dAtA[i] = 0xa |
| 522 |
return len(dAtA) - i, nil |
| 523 |
} |
| 524 |
|
| 525 |
func (m *EventList) Marshal() (dAtA []byte, err error) { |
| 526 |
size := m.Size() |
| 527 |
dAtA = make([]byte, size) |
| 528 |
n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 529 |
if err != nil { |
| 530 |
return nil, err |
| 531 |
} |
| 532 |
return dAtA[:n], nil |
| 533 |
} |
| 534 |
|
| 535 |
func (m *EventList) MarshalTo(dAtA []byte) (int, error) { |
| 536 |
size := m.Size() |
| 537 |
return m.MarshalToSizedBuffer(dAtA[:size]) |
| 538 |
} |
| 539 |
|
| 540 |
func (m *EventList) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 541 |
i := len(dAtA) |
| 542 |
_ = i |
| 543 |
var l int |
| 544 |
_ = l |
| 545 |
if len(m.Items) > 0 { |
| 546 |
for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { |
| 547 |
{ |
| 548 |
size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 549 |
if err != nil { |
| 550 |
return 0, err |
| 551 |
} |
| 552 |
i -= size |
| 553 |
i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 554 |
} |
| 555 |
i-- |
| 556 |
dAtA[i] = 0x12 |
| 557 |
} |
| 558 |
} |
| 559 |
{ |
| 560 |
size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) |
| 561 |
if err != nil { |
| 562 |
return 0, err |
| 563 |
} |
| 564 |
i -= size |
| 565 |
i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 566 |
} |
| 567 |
i-- |
| 568 |
dAtA[i] = 0xa |
| 569 |
return len(dAtA) - i, nil |
| 570 |
} |
| 571 |
|
| 572 |
func (m *GroupResources) Marshal() (dAtA []byte, err error) { |
| 573 |
size := m.Size() |
| 574 |
dAtA = make([]byte, size) |
| 575 |
n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 576 |
if err != nil { |
| 577 |
return nil, err |
| 578 |
} |
| 579 |
return dAtA[:n], nil |
| 580 |
} |
| 581 |
|
| 582 |
func (m *GroupResources) MarshalTo(dAtA []byte) (int, error) { |
| 583 |
size := m.Size() |
| 584 |
return m.MarshalToSizedBuffer(dAtA[:size]) |
| 585 |
} |
| 586 |
|
| 587 |
func (m *GroupResources) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 588 |
i := len(dAtA) |
| 589 |
_ = i |
| 590 |
var l int |
| 591 |
_ = l |
| 592 |
if len(m.ResourceNames) > 0 { |
| 593 |
for iNdEx := len(m.ResourceNames) - 1; iNdEx >= 0; iNdEx-- { |
| 594 |
i -= len(m.ResourceNames[iNdEx]) |
| 595 |
copy(dAtA[i:], m.ResourceNames[iNdEx]) |
| 596 |
i = encodeVarintGenerated(dAtA, i, uint64(len(m.ResourceNames[iNdEx]))) |
| 597 |
i-- |
| 598 |
dAtA[i] = 0x1a |
| 599 |
} |
| 600 |
} |
| 601 |
if len(m.Resources) > 0 { |
| 602 |
for iNdEx := len(m.Resources) - 1; iNdEx >= 0; iNdEx-- { |
| 603 |
i -= len(m.Resources[iNdEx]) |
| 604 |
copy(dAtA[i:], m.Resources[iNdEx]) |
| 605 |
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Resources[iNdEx]))) |
| 606 |
i-- |
| 607 |
dAtA[i] = 0x12 |
| 608 |
} |
| 609 |
} |
| 610 |
i -= len(m.Group) |
| 611 |
copy(dAtA[i:], m.Group) |
| 612 |
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Group))) |
| 613 |
i-- |
| 614 |
dAtA[i] = 0xa |
| 615 |
return len(dAtA) - i, nil |
| 616 |
} |
| 617 |
|
| 618 |
func (m *ObjectReference) Marshal() (dAtA []byte, err error) { |
| 619 |
size := m.Size() |
| 620 |
dAtA = make([]byte, size) |
| 621 |
n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 622 |
if err != nil { |
| 623 |
return nil, err |
| 624 |
} |
| 625 |
return dAtA[:n], nil |
| 626 |
} |
| 627 |
|
| 628 |
func (m *ObjectReference) MarshalTo(dAtA []byte) (int, error) { |
| 629 |
size := m.Size() |
| 630 |
return m.MarshalToSizedBuffer(dAtA[:size]) |
| 631 |
} |
| 632 |
|
| 633 |
func (m *ObjectReference) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 634 |
i := len(dAtA) |
| 635 |
_ = i |
| 636 |
var l int |
| 637 |
_ = l |
| 638 |
i -= len(m.Subresource) |
| 639 |
copy(dAtA[i:], m.Subresource) |
| 640 |
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Subresource))) |
| 641 |
i-- |
| 642 |
dAtA[i] = 0x42 |
| 643 |
i -= len(m.ResourceVersion) |
| 644 |
copy(dAtA[i:], m.ResourceVersion) |
| 645 |
i = encodeVarintGenerated(dAtA, i, uint64(len(m.ResourceVersion))) |
| 646 |
i-- |
| 647 |
dAtA[i] = 0x3a |
| 648 |
i -= len(m.APIVersion) |
| 649 |
copy(dAtA[i:], m.APIVersion) |
| 650 |
i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIVersion))) |
| 651 |
i-- |
| 652 |
dAtA[i] = 0x32 |
| 653 |
i -= len(m.APIGroup) |
| 654 |
copy(dAtA[i:], m.APIGroup) |
| 655 |
i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIGroup))) |
| 656 |
i-- |
| 657 |
dAtA[i] = 0x2a |
| 658 |
i -= len(m.UID) |
| 659 |
copy(dAtA[i:], m.UID) |
| 660 |
i = encodeVarintGenerated(dAtA, i, uint64(len(m.UID))) |
| 661 |
i-- |
| 662 |
dAtA[i] = 0x22 |
| 663 |
i -= len(m.Name) |
| 664 |
copy(dAtA[i:], m.Name) |
| 665 |
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) |
| 666 |
i-- |
| 667 |
dAtA[i] = 0x1a |
| 668 |
i -= len(m.Namespace) |
| 669 |
copy(dAtA[i:], m.Namespace) |
| 670 |
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) |
| 671 |
i-- |
| 672 |
dAtA[i] = 0x12 |
| 673 |
i -= len(m.Resource) |
| 674 |
copy(dAtA[i:], m.Resource) |
| 675 |
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Resource))) |
| 676 |
i-- |
| 677 |
dAtA[i] = 0xa |
| 678 |
return len(dAtA) - i, nil |
| 679 |
} |
| 680 |
|
| 681 |
func (m *Policy) Marshal() (dAtA []byte, err error) { |
| 682 |
size := m.Size() |
| 683 |
dAtA = make([]byte, size) |
| 684 |
n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 685 |
if err != nil { |
| 686 |
return nil, err |
| 687 |
} |
| 688 |
return dAtA[:n], nil |
| 689 |
} |
| 690 |
|
| 691 |
func (m *Policy) MarshalTo(dAtA []byte) (int, error) { |
| 692 |
size := m.Size() |
| 693 |
return m.MarshalToSizedBuffer(dAtA[:size]) |
| 694 |
} |
| 695 |
|
| 696 |
func (m *Policy) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 697 |
i := len(dAtA) |
| 698 |
_ = i |
| 699 |
var l int |
| 700 |
_ = l |
| 701 |
i-- |
| 702 |
if m.OmitManagedFields { |
| 703 |
dAtA[i] = 1 |
| 704 |
} else { |
| 705 |
dAtA[i] = 0 |
| 706 |
} |
| 707 |
i-- |
| 708 |
dAtA[i] = 0x20 |
| 709 |
if len(m.OmitStages) > 0 { |
| 710 |
for iNdEx := len(m.OmitStages) - 1; iNdEx >= 0; iNdEx-- { |
| 711 |
i -= len(m.OmitStages[iNdEx]) |
| 712 |
copy(dAtA[i:], m.OmitStages[iNdEx]) |
| 713 |
i = encodeVarintGenerated(dAtA, i, uint64(len(m.OmitStages[iNdEx]))) |
| 714 |
i-- |
| 715 |
dAtA[i] = 0x1a |
| 716 |
} |
| 717 |
} |
| 718 |
if len(m.Rules) > 0 { |
| 719 |
for iNdEx := len(m.Rules) - 1; iNdEx >= 0; iNdEx-- { |
| 720 |
{ |
| 721 |
size, err := m.Rules[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 722 |
if err != nil { |
| 723 |
return 0, err |
| 724 |
} |
| 725 |
i -= size |
| 726 |
i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 727 |
} |
| 728 |
i-- |
| 729 |
dAtA[i] = 0x12 |
| 730 |
} |
| 731 |
} |
| 732 |
{ |
| 733 |
size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) |
| 734 |
if err != nil { |
| 735 |
return 0, err |
| 736 |
} |
| 737 |
i -= size |
| 738 |
i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 739 |
} |
| 740 |
i-- |
| 741 |
dAtA[i] = 0xa |
| 742 |
return len(dAtA) - i, nil |
| 743 |
} |
| 744 |
|
| 745 |
func (m *PolicyList) Marshal() (dAtA []byte, err error) { |
| 746 |
size := m.Size() |
| 747 |
dAtA = make([]byte, size) |
| 748 |
n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 749 |
if err != nil { |
| 750 |
return nil, err |
| 751 |
} |
| 752 |
return dAtA[:n], nil |
| 753 |
} |
| 754 |
|
| 755 |
func (m *PolicyList) MarshalTo(dAtA []byte) (int, error) { |
| 756 |
size := m.Size() |
| 757 |
return m.MarshalToSizedBuffer(dAtA[:size]) |
| 758 |
} |
| 759 |
|
| 760 |
func (m *PolicyList) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 761 |
i := len(dAtA) |
| 762 |
_ = i |
| 763 |
var l int |
| 764 |
_ = l |
| 765 |
if len(m.Items) > 0 { |
| 766 |
for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { |
| 767 |
{ |
| 768 |
size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 769 |
if err != nil { |
| 770 |
return 0, err |
| 771 |
} |
| 772 |
i -= size |
| 773 |
i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 774 |
} |
| 775 |
i-- |
| 776 |
dAtA[i] = 0x12 |
| 777 |
} |
| 778 |
} |
| 779 |
{ |
| 780 |
size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) |
| 781 |
if err != nil { |
| 782 |
return 0, err |
| 783 |
} |
| 784 |
i -= size |
| 785 |
i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 786 |
} |
| 787 |
i-- |
| 788 |
dAtA[i] = 0xa |
| 789 |
return len(dAtA) - i, nil |
| 790 |
} |
| 791 |
|
| 792 |
func (m *PolicyRule) Marshal() (dAtA []byte, err error) { |
| 793 |
size := m.Size() |
| 794 |
dAtA = make([]byte, size) |
| 795 |
n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 796 |
if err != nil { |
| 797 |
return nil, err |
| 798 |
} |
| 799 |
return dAtA[:n], nil |
| 800 |
} |
| 801 |
|
| 802 |
func (m *PolicyRule) MarshalTo(dAtA []byte) (int, error) { |
| 803 |
size := m.Size() |
| 804 |
return m.MarshalToSizedBuffer(dAtA[:size]) |
| 805 |
} |
| 806 |
|
| 807 |
func (m *PolicyRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 808 |
i := len(dAtA) |
| 809 |
_ = i |
| 810 |
var l int |
| 811 |
_ = l |
| 812 |
if m.OmitManagedFields != nil { |
| 813 |
i-- |
| 814 |
if *m.OmitManagedFields { |
| 815 |
dAtA[i] = 1 |
| 816 |
} else { |
| 817 |
dAtA[i] = 0 |
| 818 |
} |
| 819 |
i-- |
| 820 |
dAtA[i] = 0x48 |
| 821 |
} |
| 822 |
if len(m.OmitStages) > 0 { |
| 823 |
for iNdEx := len(m.OmitStages) - 1; iNdEx >= 0; iNdEx-- { |
| 824 |
i -= len(m.OmitStages[iNdEx]) |
| 825 |
copy(dAtA[i:], m.OmitStages[iNdEx]) |
| 826 |
i = encodeVarintGenerated(dAtA, i, uint64(len(m.OmitStages[iNdEx]))) |
| 827 |
i-- |
| 828 |
dAtA[i] = 0x42 |
| 829 |
} |
| 830 |
} |
| 831 |
if len(m.NonResourceURLs) > 0 { |
| 832 |
for iNdEx := len(m.NonResourceURLs) - 1; iNdEx >= 0; iNdEx-- { |
| 833 |
i -= len(m.NonResourceURLs[iNdEx]) |
| 834 |
copy(dAtA[i:], m.NonResourceURLs[iNdEx]) |
| 835 |
i = encodeVarintGenerated(dAtA, i, uint64(len(m.NonResourceURLs[iNdEx]))) |
| 836 |
i-- |
| 837 |
dAtA[i] = 0x3a |
| 838 |
} |
| 839 |
} |
| 840 |
if len(m.Namespaces) > 0 { |
| 841 |
for iNdEx := len(m.Namespaces) - 1; iNdEx >= 0; iNdEx-- { |
| 842 |
i -= len(m.Namespaces[iNdEx]) |
| 843 |
copy(dAtA[i:], m.Namespaces[iNdEx]) |
| 844 |
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespaces[iNdEx]))) |
| 845 |
i-- |
| 846 |
dAtA[i] = 0x32 |
| 847 |
} |
| 848 |
} |
| 849 |
if len(m.Resources) > 0 { |
| 850 |
for iNdEx := len(m.Resources) - 1; iNdEx >= 0; iNdEx-- { |
| 851 |
{ |
| 852 |
size, err := m.Resources[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 853 |
if err != nil { |
| 854 |
return 0, err |
| 855 |
} |
| 856 |
i -= size |
| 857 |
i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 858 |
} |
| 859 |
i-- |
| 860 |
dAtA[i] = 0x2a |
| 861 |
} |
| 862 |
} |
| 863 |
if len(m.Verbs) > 0 { |
| 864 |
for iNdEx := len(m.Verbs) - 1; iNdEx >= 0; iNdEx-- { |
| 865 |
i -= len(m.Verbs[iNdEx]) |
| 866 |
copy(dAtA[i:], m.Verbs[iNdEx]) |
| 867 |
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Verbs[iNdEx]))) |
| 868 |
i-- |
| 869 |
dAtA[i] = 0x22 |
| 870 |
} |
| 871 |
} |
| 872 |
if len(m.UserGroups) > 0 { |
| 873 |
for iNdEx := len(m.UserGroups) - 1; iNdEx >= 0; iNdEx-- { |
| 874 |
i -= len(m.UserGroups[iNdEx]) |
| 875 |
copy(dAtA[i:], m.UserGroups[iNdEx]) |
| 876 |
i = encodeVarintGenerated(dAtA, i, uint64(len(m.UserGroups[iNdEx]))) |
| 877 |
i-- |
| 878 |
dAtA[i] = 0x1a |
| 879 |
} |
| 880 |
} |
| 881 |
if len(m.Users) > 0 { |
| 882 |
for iNdEx := len(m.Users) - 1; iNdEx >= 0; iNdEx-- { |
| 883 |
i -= len(m.Users[iNdEx]) |
| 884 |
copy(dAtA[i:], m.Users[iNdEx]) |
| 885 |
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Users[iNdEx]))) |
| 886 |
i-- |
| 887 |
dAtA[i] = 0x12 |
| 888 |
} |
| 889 |
} |
| 890 |
i -= len(m.Level) |
| 891 |
copy(dAtA[i:], m.Level) |
| 892 |
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Level))) |
| 893 |
i-- |
| 894 |
dAtA[i] = 0xa |
| 895 |
return len(dAtA) - i, nil |
| 896 |
} |
| 897 |
|
| 898 |
func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { |
| 899 |
offset -= sovGenerated(v) |
| 900 |
base := offset |
| 901 |
for v >= 1<<7 { |
| 902 |
dAtA[offset] = uint8(v&0x7f | 0x80) |
| 903 |
v >>= 7 |
| 904 |
offset++ |
| 905 |
} |
| 906 |
dAtA[offset] = uint8(v) |
| 907 |
return base |
| 908 |
} |
| 909 |
func (m *Event) Size() (n int) { |
| 910 |
if m == nil { |
| 911 |
return 0 |
| 912 |
} |
| 913 |
var l int |
| 914 |
_ = l |
| 915 |
l = len(m.Level) |
| 916 |
n += 1 + l + sovGenerated(uint64(l)) |
| 917 |
l = len(m.AuditID) |
| 918 |
n += 1 + l + sovGenerated(uint64(l)) |
| 919 |
l = len(m.Stage) |
| 920 |
n += 1 + l + sovGenerated(uint64(l)) |
| 921 |
l = len(m.RequestURI) |
| 922 |
n += 1 + l + sovGenerated(uint64(l)) |
| 923 |
l = len(m.Verb) |
| 924 |
n += 1 + l + sovGenerated(uint64(l)) |
| 925 |
l = m.User.Size() |
| 926 |
n += 1 + l + sovGenerated(uint64(l)) |
| 927 |
if m.ImpersonatedUser != nil { |
| 928 |
l = m.ImpersonatedUser.Size() |
| 929 |
n += 1 + l + sovGenerated(uint64(l)) |
| 930 |
} |
| 931 |
if len(m.SourceIPs) > 0 { |
| 932 |
for _, s := range m.SourceIPs { |
| 933 |
l = len(s) |
| 934 |
n += 1 + l + sovGenerated(uint64(l)) |
| 935 |
} |
| 936 |
} |
| 937 |
if m.ObjectRef != nil { |
| 938 |
l = m.ObjectRef.Size() |
| 939 |
n += 1 + l + sovGenerated(uint64(l)) |
| 940 |
} |
| 941 |
if m.ResponseStatus != nil { |
| 942 |
l = m.ResponseStatus.Size() |
| 943 |
n += 1 + l + sovGenerated(uint64(l)) |
| 944 |
} |
| 945 |
if m.RequestObject != nil { |
| 946 |
l = m.RequestObject.Size() |
| 947 |
n += 1 + l + sovGenerated(uint64(l)) |
| 948 |
} |
| 949 |
if m.ResponseObject != nil { |
| 950 |
l = m.ResponseObject.Size() |
| 951 |
n += 1 + l + sovGenerated(uint64(l)) |
| 952 |
} |
| 953 |
l = m.RequestReceivedTimestamp.Size() |
| 954 |
n += 1 + l + sovGenerated(uint64(l)) |
| 955 |
l = m.StageTimestamp.Size() |
| 956 |
n += 1 + l + sovGenerated(uint64(l)) |
| 957 |
if len(m.Annotations) > 0 { |
| 958 |
for k, v := range m.Annotations { |
| 959 |
_ = k |
| 960 |
_ = v |
| 961 |
mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) |
| 962 |
n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) |
| 963 |
} |
| 964 |
} |
| 965 |
l = len(m.UserAgent) |
| 966 |
n += 2 + l + sovGenerated(uint64(l)) |
| 967 |
return n |
| 968 |
} |
| 969 |
|
| 970 |
func (m *EventList) Size() (n int) { |
| 971 |
if m == nil { |
| 972 |
return 0 |
| 973 |
} |
| 974 |
var l int |
| 975 |
_ = l |
| 976 |
l = m.ListMeta.Size() |
| 977 |
n += 1 + l + sovGenerated(uint64(l)) |
| 978 |
if len(m.Items) > 0 { |
| 979 |
for _, e := range m.Items { |
| 980 |
l = e.Size() |
| 981 |
n += 1 + l + sovGenerated(uint64(l)) |
| 982 |
} |
| 983 |
} |
| 984 |
return n |
| 985 |
} |
| 986 |
|
| 987 |
func (m *GroupResources) Size() (n int) { |
| 988 |
if m == nil { |
| 989 |
return 0 |
| 990 |
} |
| 991 |
var l int |
| 992 |
_ = l |
| 993 |
l = len(m.Group) |
| 994 |
n += 1 + l + sovGenerated(uint64(l)) |
| 995 |
if len(m.Resources) > 0 { |
| 996 |
for _, s := range m.Resources { |
| 997 |
l = len(s) |
| 998 |
n += 1 + l + sovGenerated(uint64(l)) |
| 999 |
} |
| 1000 |
} |
| 1001 |
if len(m.ResourceNames) > 0 { |
| 1002 |
for _, s := range m.ResourceNames { |
| 1003 |
l = len(s) |
| 1004 |
n += 1 + l + sovGenerated(uint64(l)) |
| 1005 |
} |
| 1006 |
} |
| 1007 |
return n |
| 1008 |
} |
| 1009 |
|
| 1010 |
func (m *ObjectReference) Size() (n int) { |
| 1011 |
if m == nil { |
| 1012 |
return 0 |
| 1013 |
} |
| 1014 |
var l int |
| 1015 |
_ = l |
| 1016 |
l = len(m.Resource) |
| 1017 |
n += 1 + l + sovGenerated(uint64(l)) |
| 1018 |
l = len(m.Namespace) |
| 1019 |
n += 1 + l + sovGenerated(uint64(l)) |
| 1020 |
l = len(m.Name) |
| 1021 |
n += 1 + l + sovGenerated(uint64(l)) |
| 1022 |
l = len(m.UID) |
| 1023 |
n += 1 + l + sovGenerated(uint64(l)) |
| 1024 |
l = len(m.APIGroup) |
| 1025 |
n += 1 + l + sovGenerated(uint64(l)) |
| 1026 |
l = len(m.APIVersion) |
| 1027 |
n += 1 + l + sovGenerated(uint64(l)) |
| 1028 |
l = len(m.ResourceVersion) |
| 1029 |
n += 1 + l + sovGenerated(uint64(l)) |
| 1030 |
l = len(m.Subresource) |
| 1031 |
n += 1 + l + sovGenerated(uint64(l)) |
| 1032 |
return n |
| 1033 |
} |
| 1034 |
|
| 1035 |
func (m *Policy) Size() (n int) { |
| 1036 |
if m == nil { |
| 1037 |
return 0 |
| 1038 |
} |
| 1039 |
var l int |
| 1040 |
_ = l |
| 1041 |
l = m.ObjectMeta.Size() |
| 1042 |
n += 1 + l + sovGenerated(uint64(l)) |
| 1043 |
if len(m.Rules) > 0 { |
| 1044 |
for _, e := range m.Rules { |
| 1045 |
l = e.Size() |
| 1046 |
n += 1 + l + sovGenerated(uint64(l)) |
| 1047 |
} |
| 1048 |
} |
| 1049 |
if len(m.OmitStages) > 0 { |
| 1050 |
for _, s := range m.OmitStages { |
| 1051 |
l = len(s) |
| 1052 |
n += 1 + l + sovGenerated(uint64(l)) |
| 1053 |
} |
| 1054 |
} |
| 1055 |
n += 2 |
| 1056 |
return n |
| 1057 |
} |
| 1058 |
|
| 1059 |
func (m *PolicyList) Size() (n int) { |
| 1060 |
if m == nil { |
| 1061 |
return 0 |
| 1062 |
} |
| 1063 |
var l int |
| 1064 |
_ = l |
| 1065 |
l = m.ListMeta.Size() |
| 1066 |
n += 1 + l + sovGenerated(uint64(l)) |
| 1067 |
if len(m.Items) > 0 { |
| 1068 |
for _, e := range m.Items { |
| 1069 |
l = e.Size() |
| 1070 |
n += 1 + l + sovGenerated(uint64(l)) |
| 1071 |
} |
| 1072 |
} |
| 1073 |
return n |
| 1074 |
} |
| 1075 |
|
| 1076 |
func (m *PolicyRule) Size() (n int) { |
| 1077 |
if m == nil { |
| 1078 |
return 0 |
| 1079 |
} |
| 1080 |
var l int |
| 1081 |
_ = l |
| 1082 |
l = len(m.Level) |
| 1083 |
n += 1 + l + sovGenerated(uint64(l)) |
| 1084 |
if len(m.Users) > 0 { |
| 1085 |
for _, s := range m.Users { |
| 1086 |
l = len(s) |
| 1087 |
n += 1 + l + sovGenerated(uint64(l)) |
| 1088 |
} |
| 1089 |
} |
| 1090 |
if len(m.UserGroups) > 0 { |
| 1091 |
for _, s := range m.UserGroups { |
| 1092 |
l = len(s) |
| 1093 |
n += 1 + l + sovGenerated(uint64(l)) |
| 1094 |
} |
| 1095 |
} |
| 1096 |
if len(m.Verbs) > 0 { |
| 1097 |
for _, s := range m.Verbs { |
| 1098 |
l = len(s) |
| 1099 |
n += 1 + l + sovGenerated(uint64(l)) |
| 1100 |
} |
| 1101 |
} |
| 1102 |
if len(m.Resources) > 0 { |
| 1103 |
for _, e := range m.Resources { |
| 1104 |
l = e.Size() |
| 1105 |
n += 1 + l + sovGenerated(uint64(l)) |
| 1106 |
} |
| 1107 |
} |
| 1108 |
if len(m.Namespaces) > 0 { |
| 1109 |
for _, s := range m.Namespaces { |
| 1110 |
l = len(s) |
| 1111 |
n += 1 + l + sovGenerated(uint64(l)) |
| 1112 |
} |
| 1113 |
} |
| 1114 |
if len(m.NonResourceURLs) > 0 { |
| 1115 |
for _, s := range m.NonResourceURLs { |
| 1116 |
l = len(s) |
| 1117 |
n += 1 + l + sovGenerated(uint64(l)) |
| 1118 |
} |
| 1119 |
} |
| 1120 |
if len(m.OmitStages) > 0 { |
| 1121 |
for _, s := range m.OmitStages { |
| 1122 |
l = len(s) |
| 1123 |
n += 1 + l + sovGenerated(uint64(l)) |
| 1124 |
} |
| 1125 |
} |
| 1126 |
if m.OmitManagedFields != nil { |
| 1127 |
n += 2 |
| 1128 |
} |
| 1129 |
return n |
| 1130 |
} |
| 1131 |
|
| 1132 |
func sovGenerated(x uint64) (n int) { |
| 1133 |
return (math_bits.Len64(x|1) + 6) / 7 |
| 1134 |
} |
| 1135 |
func sozGenerated(x uint64) (n int) { |
| 1136 |
return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) |
| 1137 |
} |
| 1138 |
func (this *Event) String() string { |
| 1139 |
if this == nil { |
| 1140 |
return "nil" |
| 1141 |
} |
| 1142 |
keysForAnnotations := make([]string, 0, len(this.Annotations)) |
| 1143 |
for k := range this.Annotations { |
| 1144 |
keysForAnnotations = append(keysForAnnotations, k) |
| 1145 |
} |
| 1146 |
github_com_gogo_protobuf_sortkeys.Strings(keysForAnnotations) |
| 1147 |
mapStringForAnnotations := "map[string]string{" |
| 1148 |
for _, k := range keysForAnnotations { |
| 1149 |
mapStringForAnnotations += fmt.Sprintf("%v: %v,", k, this.Annotations[k]) |
| 1150 |
} |
| 1151 |
mapStringForAnnotations += "}" |
| 1152 |
s := strings.Join([]string{`&Event{`, |
| 1153 |
`Level:` + fmt.Sprintf("%v", this.Level) + `,`, |
| 1154 |
`AuditID:` + fmt.Sprintf("%v", this.AuditID) + `,`, |
| 1155 |
`Stage:` + fmt.Sprintf("%v", this.Stage) + `,`, |
| 1156 |
`RequestURI:` + fmt.Sprintf("%v", this.RequestURI) + `,`, |
| 1157 |
`Verb:` + fmt.Sprintf("%v", this.Verb) + `,`, |
| 1158 |
`User:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.User), "UserInfo", "v1.UserInfo", 1), `&`, ``, 1) + `,`, |
| 1159 |
`ImpersonatedUser:` + strings.Replace(fmt.Sprintf("%v", this.ImpersonatedUser), "UserInfo", "v1.UserInfo", 1) + `,`, |
| 1160 |
`SourceIPs:` + fmt.Sprintf("%v", this.SourceIPs) + `,`, |
| 1161 |
`ObjectRef:` + strings.Replace(this.ObjectRef.String(), "ObjectReference", "ObjectReference", 1) + `,`, |
| 1162 |
`ResponseStatus:` + strings.Replace(fmt.Sprintf("%v", this.ResponseStatus), "Status", "v11.Status", 1) + `,`, |
| 1163 |
`RequestObject:` + strings.Replace(fmt.Sprintf("%v", this.RequestObject), "Unknown", "runtime.Unknown", 1) + `,`, |
| 1164 |
`ResponseObject:` + strings.Replace(fmt.Sprintf("%v", this.ResponseObject), "Unknown", "runtime.Unknown", 1) + `,`, |
| 1165 |
`RequestReceivedTimestamp:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.RequestReceivedTimestamp), "MicroTime", "v11.MicroTime", 1), `&`, ``, 1) + `,`, |
| 1166 |
`StageTimestamp:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.StageTimestamp), "MicroTime", "v11.MicroTime", 1), `&`, ``, 1) + `,`, |
| 1167 |
`Annotations:` + mapStringForAnnotations + `,`, |
| 1168 |
`UserAgent:` + fmt.Sprintf("%v", this.UserAgent) + `,`, |
| 1169 |
`}`, |
| 1170 |
}, "") |
| 1171 |
return s |
| 1172 |
} |
| 1173 |
func (this *EventList) String() string { |
| 1174 |
if this == nil { |
| 1175 |
return "nil" |
| 1176 |
} |
| 1177 |
repeatedStringForItems := "[]Event{" |
| 1178 |
for _, f := range this.Items { |
| 1179 |
repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "Event", "Event", 1), `&`, ``, 1) + "," |
| 1180 |
} |
| 1181 |
repeatedStringForItems += "}" |
| 1182 |
s := strings.Join([]string{`&EventList{`, |
| 1183 |
`ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v11.ListMeta", 1), `&`, ``, 1) + `,`, |
| 1184 |
`Items:` + repeatedStringForItems + `,`, |
| 1185 |
`}`, |
| 1186 |
}, "") |
| 1187 |
return s |
| 1188 |
} |
| 1189 |
func (this *GroupResources) String() string { |
| 1190 |
if this == nil { |
| 1191 |
return "nil" |
| 1192 |
} |
| 1193 |
s := strings.Join([]string{`&GroupResources{`, |
| 1194 |
`Group:` + fmt.Sprintf("%v", this.Group) + `,`, |
| 1195 |
`Resources:` + fmt.Sprintf("%v", this.Resources) + `,`, |
| 1196 |
`ResourceNames:` + fmt.Sprintf("%v", this.ResourceNames) + `,`, |
| 1197 |
`}`, |
| 1198 |
}, "") |
| 1199 |
return s |
| 1200 |
} |
| 1201 |
func (this *ObjectReference) String() string { |
| 1202 |
if this == nil { |
| 1203 |
return "nil" |
| 1204 |
} |
| 1205 |
s := strings.Join([]string{`&ObjectReference{`, |
| 1206 |
`Resource:` + fmt.Sprintf("%v", this.Resource) + `,`, |
| 1207 |
`Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, |
| 1208 |
`Name:` + fmt.Sprintf("%v", this.Name) + `,`, |
| 1209 |
`UID:` + fmt.Sprintf("%v", this.UID) + `,`, |
| 1210 |
`APIGroup:` + fmt.Sprintf("%v", this.APIGroup) + `,`, |
| 1211 |
`APIVersion:` + fmt.Sprintf("%v", this.APIVersion) + `,`, |
| 1212 |
`ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, |
| 1213 |
`Subresource:` + fmt.Sprintf("%v", this.Subresource) + `,`, |
| 1214 |
`}`, |
| 1215 |
}, "") |
| 1216 |
return s |
| 1217 |
} |
| 1218 |
func (this *Policy) String() string { |
| 1219 |
if this == nil { |
| 1220 |
return "nil" |
| 1221 |
} |
| 1222 |
repeatedStringForRules := "[]PolicyRule{" |
| 1223 |
for _, f := range this.Rules { |
| 1224 |
repeatedStringForRules += strings.Replace(strings.Replace(f.String(), "PolicyRule", "PolicyRule", 1), `&`, ``, 1) + "," |
| 1225 |
} |
| 1226 |
repeatedStringForRules += "}" |
| 1227 |
s := strings.Join([]string{`&Policy{`, |
| 1228 |
`ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v11.ObjectMeta", 1), `&`, ``, 1) + `,`, |
| 1229 |
`Rules:` + repeatedStringForRules + `,`, |
| 1230 |
`OmitStages:` + fmt.Sprintf("%v", this.OmitStages) + `,`, |
| 1231 |
`OmitManagedFields:` + fmt.Sprintf("%v", this.OmitManagedFields) + `,`, |
| 1232 |
`}`, |
| 1233 |
}, "") |
| 1234 |
return s |
| 1235 |
} |
| 1236 |
func (this *PolicyList) String() string { |
| 1237 |
if this == nil { |
| 1238 |
return "nil" |
| 1239 |
} |
| 1240 |
repeatedStringForItems := "[]Policy{" |
| 1241 |
for _, f := range this.Items { |
| 1242 |
repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "Policy", "Policy", 1), `&`, ``, 1) + "," |
| 1243 |
} |
| 1244 |
repeatedStringForItems += "}" |
| 1245 |
s := strings.Join([]string{`&PolicyList{`, |
| 1246 |
`ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v11.ListMeta", 1), `&`, ``, 1) + `,`, |
| 1247 |
`Items:` + repeatedStringForItems + `,`, |
| 1248 |
`}`, |
| 1249 |
}, "") |
| 1250 |
return s |
| 1251 |
} |
| 1252 |
func (this *PolicyRule) String() string { |
| 1253 |
if this == nil { |
| 1254 |
return "nil" |
| 1255 |
} |
| 1256 |
repeatedStringForResources := "[]GroupResources{" |
| 1257 |
for _, f := range this.Resources { |
| 1258 |
repeatedStringForResources += strings.Replace(strings.Replace(f.String(), "GroupResources", "GroupResources", 1), `&`, ``, 1) + "," |
| 1259 |
} |
| 1260 |
repeatedStringForResources += "}" |
| 1261 |
s := strings.Join([]string{`&PolicyRule{`, |
| 1262 |
`Level:` + fmt.Sprintf("%v", this.Level) + `,`, |
| 1263 |
`Users:` + fmt.Sprintf("%v", this.Users) + `,`, |
| 1264 |
`UserGroups:` + fmt.Sprintf("%v", this.UserGroups) + `,`, |
| 1265 |
`Verbs:` + fmt.Sprintf("%v", this.Verbs) + `,`, |
| 1266 |
`Resources:` + repeatedStringForResources + `,`, |
| 1267 |
`Namespaces:` + fmt.Sprintf("%v", this.Namespaces) + `,`, |
| 1268 |
`NonResourceURLs:` + fmt.Sprintf("%v", this.NonResourceURLs) + `,`, |
| 1269 |
`OmitStages:` + fmt.Sprintf("%v", this.OmitStages) + `,`, |
| 1270 |
`OmitManagedFields:` + valueToStringGenerated(this.OmitManagedFields) + `,`, |
| 1271 |
`}`, |
| 1272 |
}, "") |
| 1273 |
return s |
| 1274 |
} |
| 1275 |
func valueToStringGenerated(v interface{}) string { |
| 1276 |
rv := reflect.ValueOf(v) |
| 1277 |
if rv.IsNil() { |
| 1278 |
return "nil" |
| 1279 |
} |
| 1280 |
pv := reflect.Indirect(rv).Interface() |
| 1281 |
return fmt.Sprintf("*%v", pv) |
| 1282 |
} |
| 1283 |
func (m *Event) Unmarshal(dAtA []byte) error { |
| 1284 |
l := len(dAtA) |
| 1285 |
iNdEx := 0 |
| 1286 |
for iNdEx < l { |
| 1287 |
preIndex := iNdEx |
| 1288 |
var wire uint64 |
| 1289 |
for shift := uint(0); ; shift += 7 { |
| 1290 |
if shift >= 64 { |
| 1291 |
return ErrIntOverflowGenerated |
| 1292 |
} |
| 1293 |
if iNdEx >= l { |
| 1294 |
return io.ErrUnexpectedEOF |
| 1295 |
} |
| 1296 |
b := dAtA[iNdEx] |
| 1297 |
iNdEx++ |
| 1298 |
wire |= uint64(b&0x7F) << shift |
| 1299 |
if b < 0x80 { |
| 1300 |
break |
| 1301 |
} |
| 1302 |
} |
| 1303 |
fieldNum := int32(wire >> 3) |
| 1304 |
wireType := int(wire & 0x7) |
| 1305 |
if wireType == 4 { |
| 1306 |
return fmt.Errorf("proto: Event: wiretype end group for non-group") |
| 1307 |
} |
| 1308 |
if fieldNum <= 0 { |
| 1309 |
return fmt.Errorf("proto: Event: illegal tag %d (wire type %d)", fieldNum, wire) |
| 1310 |
} |
| 1311 |
switch fieldNum { |
| 1312 |
case 1: |
| 1313 |
if wireType != 2 { |
| 1314 |
return fmt.Errorf("proto: wrong wireType = %d for field Level", wireType) |
| 1315 |
} |
| 1316 |
var stringLen uint64 |
| 1317 |
for shift := uint(0); ; shift += 7 { |
| 1318 |
if shift >= 64 { |
| 1319 |
return ErrIntOverflowGenerated |
| 1320 |
} |
| 1321 |
if iNdEx >= l { |
| 1322 |
return io.ErrUnexpectedEOF |
| 1323 |
} |
| 1324 |
b := dAtA[iNdEx] |
| 1325 |
iNdEx++ |
| 1326 |
stringLen |= uint64(b&0x7F) << shift |
| 1327 |
if b < 0x80 { |
| 1328 |
break |
| 1329 |
} |
| 1330 |
} |
| 1331 |
intStringLen := int(stringLen) |
| 1332 |
if intStringLen < 0 { |
| 1333 |
return ErrInvalidLengthGenerated |
| 1334 |
} |
| 1335 |
postIndex := iNdEx + intStringLen |
| 1336 |
if postIndex < 0 { |
| 1337 |
return ErrInvalidLengthGenerated |
| 1338 |
} |
| 1339 |
if postIndex > l { |
| 1340 |
return io.ErrUnexpectedEOF |
| 1341 |
} |
| 1342 |
m.Level = Level(dAtA[iNdEx:postIndex]) |
| 1343 |
iNdEx = postIndex |
| 1344 |
case 2: |
| 1345 |
if wireType != 2 { |
| 1346 |
return fmt.Errorf("proto: wrong wireType = %d for field AuditID", wireType) |
| 1347 |
} |
| 1348 |
var stringLen uint64 |
| 1349 |
for shift := uint(0); ; shift += 7 { |
| 1350 |
if shift >= 64 { |
| 1351 |
return ErrIntOverflowGenerated |
| 1352 |
} |
| 1353 |
if iNdEx >= l { |
| 1354 |
return io.ErrUnexpectedEOF |
| 1355 |
} |
| 1356 |
b := dAtA[iNdEx] |
| 1357 |
iNdEx++ |
| 1358 |
stringLen |= uint64(b&0x7F) << shift |
| 1359 |
if b < 0x80 { |
| 1360 |
break |
| 1361 |
} |
| 1362 |
} |
| 1363 |
intStringLen := int(stringLen) |
| 1364 |
if intStringLen < 0 { |
| 1365 |
return ErrInvalidLengthGenerated |
| 1366 |
} |
| 1367 |
postIndex := iNdEx + intStringLen |
| 1368 |
if postIndex < 0 { |
| 1369 |
return ErrInvalidLengthGenerated |
| 1370 |
} |
| 1371 |
if postIndex > l { |
| 1372 |
return io.ErrUnexpectedEOF |
| 1373 |
} |
| 1374 |
m.AuditID = k8s_io_apimachinery_pkg_types.UID(dAtA[iNdEx:postIndex]) |
| 1375 |
iNdEx = postIndex |
| 1376 |
case 3: |
| 1377 |
if wireType != 2 { |
| 1378 |
return fmt.Errorf("proto: wrong wireType = %d for field Stage", wireType) |
| 1379 |
} |
| 1380 |
var stringLen uint64 |
| 1381 |
for shift := uint(0); ; shift += 7 { |
| 1382 |
if shift >= 64 { |
| 1383 |
return ErrIntOverflowGenerated |
| 1384 |
} |
| 1385 |
if iNdEx >= l { |
| 1386 |
return io.ErrUnexpectedEOF |
| 1387 |
} |
| 1388 |
b := dAtA[iNdEx] |
| 1389 |
iNdEx++ |
| 1390 |
stringLen |= uint64(b&0x7F) << shift |
| 1391 |
if b < 0x80 { |
| 1392 |
break |
| 1393 |
} |
| 1394 |
} |
| 1395 |
intStringLen := int(stringLen) |
| 1396 |
if intStringLen < 0 { |
| 1397 |
return ErrInvalidLengthGenerated |
| 1398 |
} |
| 1399 |
postIndex := iNdEx + intStringLen |
| 1400 |
if postIndex < 0 { |
| 1401 |
return ErrInvalidLengthGenerated |
| 1402 |
} |
| 1403 |
if postIndex > l { |
| 1404 |
return io.ErrUnexpectedEOF |
| 1405 |
} |
| 1406 |
m.Stage = Stage(dAtA[iNdEx:postIndex]) |
| 1407 |
iNdEx = postIndex |
| 1408 |
case 4: |
| 1409 |
if wireType != 2 { |
| 1410 |
return fmt.Errorf("proto: wrong wireType = %d for field RequestURI", wireType) |
| 1411 |
} |
| 1412 |
var stringLen uint64 |
| 1413 |
for shift := uint(0); ; shift += 7 { |
| 1414 |
if shift >= 64 { |
| 1415 |
return ErrIntOverflowGenerated |
| 1416 |
} |
| 1417 |
if iNdEx >= l { |
| 1418 |
return io.ErrUnexpectedEOF |
| 1419 |
} |
| 1420 |
b := dAtA[iNdEx] |
| 1421 |
iNdEx++ |
| 1422 |
stringLen |= uint64(b&0x7F) << shift |
| 1423 |
if b < 0x80 { |
| 1424 |
break |
| 1425 |
} |
| 1426 |
} |
| 1427 |
intStringLen := int(stringLen) |
| 1428 |
if intStringLen < 0 { |
| 1429 |
return ErrInvalidLengthGenerated |
| 1430 |
} |
| 1431 |
postIndex := iNdEx + intStringLen |
| 1432 |
if postIndex < 0 { |
| 1433 |
return ErrInvalidLengthGenerated |
| 1434 |
} |
| 1435 |
if postIndex > l { |
| 1436 |
return io.ErrUnexpectedEOF |
| 1437 |
} |
| 1438 |
m.RequestURI = string(dAtA[iNdEx:postIndex]) |
| 1439 |
iNdEx = postIndex |
| 1440 |
case 5: |
| 1441 |
if wireType != 2 { |
| 1442 |
return fmt.Errorf("proto: wrong wireType = %d for field Verb", wireType) |
| 1443 |
} |
| 1444 |
var stringLen uint64 |
| 1445 |
for shift := uint(0); ; shift += 7 { |
| 1446 |
if shift >= 64 { |
| 1447 |
return ErrIntOverflowGenerated |
| 1448 |
} |
| 1449 |
if iNdEx >= l { |
| 1450 |
return io.ErrUnexpectedEOF |
| 1451 |
} |
| 1452 |
b := dAtA[iNdEx] |
| 1453 |
iNdEx++ |
| 1454 |
stringLen |= uint64(b&0x7F) << shift |
| 1455 |
if b < 0x80 { |
| 1456 |
break |
| 1457 |
} |
| 1458 |
} |
| 1459 |
intStringLen := int(stringLen) |
| 1460 |
if intStringLen < 0 { |
| 1461 |
return ErrInvalidLengthGenerated |
| 1462 |
} |
| 1463 |
postIndex := iNdEx + intStringLen |
| 1464 |
if postIndex < 0 { |
| 1465 |
return ErrInvalidLengthGenerated |
| 1466 |
} |
| 1467 |
if postIndex > l { |
| 1468 |
return io.ErrUnexpectedEOF |
| 1469 |
} |
| 1470 |
m.Verb = string(dAtA[iNdEx:postIndex]) |
| 1471 |
iNdEx = postIndex |
| 1472 |
case 6: |
| 1473 |
if wireType != 2 { |
| 1474 |
return fmt.Errorf("proto: wrong wireType = %d for field User", wireType) |
| 1475 |
} |
| 1476 |
var msglen int |
| 1477 |
for shift := uint(0); ; shift += 7 { |
| 1478 |
if shift >= 64 { |
| 1479 |
return ErrIntOverflowGenerated |
| 1480 |
} |
| 1481 |
if iNdEx >= l { |
| 1482 |
return io.ErrUnexpectedEOF |
| 1483 |
} |
| 1484 |
b := dAtA[iNdEx] |
| 1485 |
iNdEx++ |
| 1486 |
msglen |= int(b&0x7F) << shift |
| 1487 |
if b < 0x80 { |
| 1488 |
break |
| 1489 |
} |
| 1490 |
} |
| 1491 |
if msglen < 0 { |
| 1492 |
return ErrInvalidLengthGenerated |
| 1493 |
} |
| 1494 |
postIndex := iNdEx + msglen |
| 1495 |
if postIndex < 0 { |
| 1496 |
return ErrInvalidLengthGenerated |
| 1497 |
} |
| 1498 |
if postIndex > l { |
| 1499 |
return io.ErrUnexpectedEOF |
| 1500 |
} |
| 1501 |
if err := m.User.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1502 |
return err |
| 1503 |
} |
| 1504 |
iNdEx = postIndex |
| 1505 |
case 7: |
| 1506 |
if wireType != 2 { |
| 1507 |
return fmt.Errorf("proto: wrong wireType = %d for field ImpersonatedUser", wireType) |
| 1508 |
} |
| 1509 |
var msglen int |
| 1510 |
for shift := uint(0); ; shift += 7 { |
| 1511 |
if shift >= 64 { |
| 1512 |
return ErrIntOverflowGenerated |
| 1513 |
} |
| 1514 |
if iNdEx >= l { |
| 1515 |
return io.ErrUnexpectedEOF |
| 1516 |
} |
| 1517 |
b := dAtA[iNdEx] |
| 1518 |
iNdEx++ |
| 1519 |
msglen |= int(b&0x7F) << shift |
| 1520 |
if b < 0x80 { |
| 1521 |
break |
| 1522 |
} |
| 1523 |
} |
| 1524 |
if msglen < 0 { |
| 1525 |
return ErrInvalidLengthGenerated |
| 1526 |
} |
| 1527 |
postIndex := iNdEx + msglen |
| 1528 |
if postIndex < 0 { |
| 1529 |
return ErrInvalidLengthGenerated |
| 1530 |
} |
| 1531 |
if postIndex > l { |
| 1532 |
return io.ErrUnexpectedEOF |
| 1533 |
} |
| 1534 |
if m.ImpersonatedUser == nil { |
| 1535 |
m.ImpersonatedUser = &v1.UserInfo{} |
| 1536 |
} |
| 1537 |
if err := m.ImpersonatedUser.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1538 |
return err |
| 1539 |
} |
| 1540 |
iNdEx = postIndex |
| 1541 |
case 8: |
| 1542 |
if wireType != 2 { |
| 1543 |
return fmt.Errorf("proto: wrong wireType = %d for field SourceIPs", wireType) |
| 1544 |
} |
| 1545 |
var stringLen uint64 |
| 1546 |
for shift := uint(0); ; shift += 7 { |
| 1547 |
if shift >= 64 { |
| 1548 |
return ErrIntOverflowGenerated |
| 1549 |
} |
| 1550 |
if iNdEx >= l { |
| 1551 |
return io.ErrUnexpectedEOF |
| 1552 |
} |
| 1553 |
b := dAtA[iNdEx] |
| 1554 |
iNdEx++ |
| 1555 |
stringLen |= uint64(b&0x7F) << shift |
| 1556 |
if b < 0x80 { |
| 1557 |
break |
| 1558 |
} |
| 1559 |
} |
| 1560 |
intStringLen := int(stringLen) |
| 1561 |
if intStringLen < 0 { |
| 1562 |
return ErrInvalidLengthGenerated |
| 1563 |
} |
| 1564 |
postIndex := iNdEx + intStringLen |
| 1565 |
if postIndex < 0 { |
| 1566 |
return ErrInvalidLengthGenerated |
| 1567 |
} |
| 1568 |
if postIndex > l { |
| 1569 |
return io.ErrUnexpectedEOF |
| 1570 |
} |
| 1571 |
m.SourceIPs = append(m.SourceIPs, string(dAtA[iNdEx:postIndex])) |
| 1572 |
iNdEx = postIndex |
| 1573 |
case 9: |
| 1574 |
if wireType != 2 { |
| 1575 |
return fmt.Errorf("proto: wrong wireType = %d for field ObjectRef", wireType) |
| 1576 |
} |
| 1577 |
var msglen int |
| 1578 |
for shift := uint(0); ; shift += 7 { |
| 1579 |
if shift >= 64 { |
| 1580 |
return ErrIntOverflowGenerated |
| 1581 |
} |
| 1582 |
if iNdEx >= l { |
| 1583 |
return io.ErrUnexpectedEOF |
| 1584 |
} |
| 1585 |
b := dAtA[iNdEx] |
| 1586 |
iNdEx++ |
| 1587 |
msglen |= int(b&0x7F) << shift |
| 1588 |
if b < 0x80 { |
| 1589 |
break |
| 1590 |
} |
| 1591 |
} |
| 1592 |
if msglen < 0 { |
| 1593 |
return ErrInvalidLengthGenerated |
| 1594 |
} |
| 1595 |
postIndex := iNdEx + msglen |
| 1596 |
if postIndex < 0 { |
| 1597 |
return ErrInvalidLengthGenerated |
| 1598 |
} |
| 1599 |
if postIndex > l { |
| 1600 |
return io.ErrUnexpectedEOF |
| 1601 |
} |
| 1602 |
if m.ObjectRef == nil { |
| 1603 |
m.ObjectRef = &ObjectReference{} |
| 1604 |
} |
| 1605 |
if err := m.ObjectRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1606 |
return err |
| 1607 |
} |
| 1608 |
iNdEx = postIndex |
| 1609 |
case 10: |
| 1610 |
if wireType != 2 { |
| 1611 |
return fmt.Errorf("proto: wrong wireType = %d for field ResponseStatus", wireType) |
| 1612 |
} |
| 1613 |
var msglen int |
| 1614 |
for shift := uint(0); ; shift += 7 { |
| 1615 |
if shift >= 64 { |
| 1616 |
return ErrIntOverflowGenerated |
| 1617 |
} |
| 1618 |
if iNdEx >= l { |
| 1619 |
return io.ErrUnexpectedEOF |
| 1620 |
} |
| 1621 |
b := dAtA[iNdEx] |
| 1622 |
iNdEx++ |
| 1623 |
msglen |= int(b&0x7F) << shift |
| 1624 |
if b < 0x80 { |
| 1625 |
break |
| 1626 |
} |
| 1627 |
} |
| 1628 |
if msglen < 0 { |
| 1629 |
return ErrInvalidLengthGenerated |
| 1630 |
} |
| 1631 |
postIndex := iNdEx + msglen |
| 1632 |
if postIndex < 0 { |
| 1633 |
return ErrInvalidLengthGenerated |
| 1634 |
} |
| 1635 |
if postIndex > l { |
| 1636 |
return io.ErrUnexpectedEOF |
| 1637 |
} |
| 1638 |
if m.ResponseStatus == nil { |
| 1639 |
m.ResponseStatus = &v11.Status{} |
| 1640 |
} |
| 1641 |
if err := m.ResponseStatus.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1642 |
return err |
| 1643 |
} |
| 1644 |
iNdEx = postIndex |
| 1645 |
case 11: |
| 1646 |
if wireType != 2 { |
| 1647 |
return fmt.Errorf("proto: wrong wireType = %d for field RequestObject", wireType) |
| 1648 |
} |
| 1649 |
var msglen int |
| 1650 |
for shift := uint(0); ; shift += 7 { |
| 1651 |
if shift >= 64 { |
| 1652 |
return ErrIntOverflowGenerated |
| 1653 |
} |
| 1654 |
if iNdEx >= l { |
| 1655 |
return io.ErrUnexpectedEOF |
| 1656 |
} |
| 1657 |
b := dAtA[iNdEx] |
| 1658 |
iNdEx++ |
| 1659 |
msglen |= int(b&0x7F) << shift |
| 1660 |
if b < 0x80 { |
| 1661 |
break |
| 1662 |
} |
| 1663 |
} |
| 1664 |
if msglen < 0 { |
| 1665 |
return ErrInvalidLengthGenerated |
| 1666 |
} |
| 1667 |
postIndex := iNdEx + msglen |
| 1668 |
if postIndex < 0 { |
| 1669 |
return ErrInvalidLengthGenerated |
| 1670 |
} |
| 1671 |
if postIndex > l { |
| 1672 |
return io.ErrUnexpectedEOF |
| 1673 |
} |
| 1674 |
if m.RequestObject == nil { |
| 1675 |
m.RequestObject = &runtime.Unknown{} |
| 1676 |
} |
| 1677 |
if err := m.RequestObject.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1678 |
return err |
| 1679 |
} |
| 1680 |
iNdEx = postIndex |
| 1681 |
case 12: |
| 1682 |
if wireType != 2 { |
| 1683 |
return fmt.Errorf("proto: wrong wireType = %d for field ResponseObject", wireType) |
| 1684 |
} |
| 1685 |
var msglen int |
| 1686 |
for shift := uint(0); ; shift += 7 { |
| 1687 |
if shift >= 64 { |
| 1688 |
return ErrIntOverflowGenerated |
| 1689 |
} |
| 1690 |
if iNdEx >= l { |
| 1691 |
return io.ErrUnexpectedEOF |
| 1692 |
} |
| 1693 |
b := dAtA[iNdEx] |
| 1694 |
iNdEx++ |
| 1695 |
msglen |= int(b&0x7F) << shift |
| 1696 |
if b < 0x80 { |
| 1697 |
break |
| 1698 |
} |
| 1699 |
} |
| 1700 |
if msglen < 0 { |
| 1701 |
return ErrInvalidLengthGenerated |
| 1702 |
} |
| 1703 |
postIndex := iNdEx + msglen |
| 1704 |
if postIndex < 0 { |
| 1705 |
return ErrInvalidLengthGenerated |
| 1706 |
} |
| 1707 |
if postIndex > l { |
| 1708 |
return io.ErrUnexpectedEOF |
| 1709 |
} |
| 1710 |
if m.ResponseObject == nil { |
| 1711 |
m.ResponseObject = &runtime.Unknown{} |
| 1712 |
} |
| 1713 |
if err := m.ResponseObject.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1714 |
return err |
| 1715 |
} |
| 1716 |
iNdEx = postIndex |
| 1717 |
case 13: |
| 1718 |
if wireType != 2 { |
| 1719 |
return fmt.Errorf("proto: wrong wireType = %d for field RequestReceivedTimestamp", wireType) |
| 1720 |
} |
| 1721 |
var msglen int |
| 1722 |
for shift := uint(0); ; shift += 7 { |
| 1723 |
if shift >= 64 { |
| 1724 |
return ErrIntOverflowGenerated |
| 1725 |
} |
| 1726 |
if iNdEx >= l { |
| 1727 |
return io.ErrUnexpectedEOF |
| 1728 |
} |
| 1729 |
b := dAtA[iNdEx] |
| 1730 |
iNdEx++ |
| 1731 |
msglen |= int(b&0x7F) << shift |
| 1732 |
if b < 0x80 { |
| 1733 |
break |
| 1734 |
} |
| 1735 |
} |
| 1736 |
if msglen < 0 { |
| 1737 |
return ErrInvalidLengthGenerated |
| 1738 |
} |
| 1739 |
postIndex := iNdEx + msglen |
| 1740 |
if postIndex < 0 { |
| 1741 |
return ErrInvalidLengthGenerated |
| 1742 |
} |
| 1743 |
if postIndex > l { |
| 1744 |
return io.ErrUnexpectedEOF |
| 1745 |
} |
| 1746 |
if err := m.RequestReceivedTimestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1747 |
return err |
| 1748 |
} |
| 1749 |
iNdEx = postIndex |
| 1750 |
case 14: |
| 1751 |
if wireType != 2 { |
| 1752 |
return fmt.Errorf("proto: wrong wireType = %d for field StageTimestamp", wireType) |
| 1753 |
} |
| 1754 |
var msglen int |
| 1755 |
for shift := uint(0); ; shift += 7 { |
| 1756 |
if shift >= 64 { |
| 1757 |
return ErrIntOverflowGenerated |
| 1758 |
} |
| 1759 |
if iNdEx >= l { |
| 1760 |
return io.ErrUnexpectedEOF |
| 1761 |
} |
| 1762 |
b := dAtA[iNdEx] |
| 1763 |
iNdEx++ |
| 1764 |
msglen |= int(b&0x7F) << shift |
| 1765 |
if b < 0x80 { |
| 1766 |
break |
| 1767 |
} |
| 1768 |
} |
| 1769 |
if msglen < 0 { |
| 1770 |
return ErrInvalidLengthGenerated |
| 1771 |
} |
| 1772 |
postIndex := iNdEx + msglen |
| 1773 |
if postIndex < 0 { |
| 1774 |
return ErrInvalidLengthGenerated |
| 1775 |
} |
| 1776 |
if postIndex > l { |
| 1777 |
return io.ErrUnexpectedEOF |
| 1778 |
} |
| 1779 |
if err := m.StageTimestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1780 |
return err |
| 1781 |
} |
| 1782 |
iNdEx = postIndex |
| 1783 |
case 15: |
| 1784 |
if wireType != 2 { |
| 1785 |
return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType) |
| 1786 |
} |
| 1787 |
var msglen int |
| 1788 |
for shift := uint(0); ; shift += 7 { |
| 1789 |
if shift >= 64 { |
| 1790 |
return ErrIntOverflowGenerated |
| 1791 |
} |
| 1792 |
if iNdEx >= l { |
| 1793 |
return io.ErrUnexpectedEOF |
| 1794 |
} |
| 1795 |
b := dAtA[iNdEx] |
| 1796 |
iNdEx++ |
| 1797 |
msglen |= int(b&0x7F) << shift |
| 1798 |
if b < 0x80 { |
| 1799 |
break |
| 1800 |
} |
| 1801 |
} |
| 1802 |
if msglen < 0 { |
| 1803 |
return ErrInvalidLengthGenerated |
| 1804 |
} |
| 1805 |
postIndex := iNdEx + msglen |
| 1806 |
if postIndex < 0 { |
| 1807 |
return ErrInvalidLengthGenerated |
| 1808 |
} |
| 1809 |
if postIndex > l { |
| 1810 |
return io.ErrUnexpectedEOF |
| 1811 |
} |
| 1812 |
if m.Annotations == nil { |
| 1813 |
m.Annotations = make(map[string]string) |
| 1814 |
} |
| 1815 |
var mapkey string |
| 1816 |
var mapvalue string |
| 1817 |
for iNdEx < postIndex { |
| 1818 |
entryPreIndex := iNdEx |
| 1819 |
var wire uint64 |
| 1820 |
for shift := uint(0); ; shift += 7 { |
| 1821 |
if shift >= 64 { |
| 1822 |
return ErrIntOverflowGenerated |
| 1823 |
} |
| 1824 |
if iNdEx >= l { |
| 1825 |
return io.ErrUnexpectedEOF |
| 1826 |
} |
| 1827 |
b := dAtA[iNdEx] |
| 1828 |
iNdEx++ |
| 1829 |
wire |= uint64(b&0x7F) << shift |
| 1830 |
if b < 0x80 { |
| 1831 |
break |
| 1832 |
} |
| 1833 |
} |
| 1834 |
fieldNum := int32(wire >> 3) |
| 1835 |
if fieldNum == 1 { |
| 1836 |
var stringLenmapkey uint64 |
| 1837 |
for shift := uint(0); ; shift += 7 { |
| 1838 |
if shift >= 64 { |
| 1839 |
return ErrIntOverflowGenerated |
| 1840 |
} |
| 1841 |
if iNdEx >= l { |
| 1842 |
return io.ErrUnexpectedEOF |
| 1843 |
} |
| 1844 |
b := dAtA[iNdEx] |
| 1845 |
iNdEx++ |
| 1846 |
stringLenmapkey |= uint64(b&0x7F) << shift |
| 1847 |
if b < 0x80 { |
| 1848 |
break |
| 1849 |
} |
| 1850 |
} |
| 1851 |
intStringLenmapkey := int(stringLenmapkey) |
| 1852 |
if intStringLenmapkey < 0 { |
| 1853 |
return ErrInvalidLengthGenerated |
| 1854 |
} |
| 1855 |
postStringIndexmapkey := iNdEx + intStringLenmapkey |
| 1856 |
if postStringIndexmapkey < 0 { |
| 1857 |
return ErrInvalidLengthGenerated |
| 1858 |
} |
| 1859 |
if postStringIndexmapkey > l { |
| 1860 |
return io.ErrUnexpectedEOF |
| 1861 |
} |
| 1862 |
mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) |
| 1863 |
iNdEx = postStringIndexmapkey |
| 1864 |
} else if fieldNum == 2 { |
| 1865 |
var stringLenmapvalue uint64 |
| 1866 |
for shift := uint(0); ; shift += 7 { |
| 1867 |
if shift >= 64 { |
| 1868 |
return ErrIntOverflowGenerated |
| 1869 |
} |
| 1870 |
if iNdEx >= l { |
| 1871 |
return io.ErrUnexpectedEOF |
| 1872 |
} |
| 1873 |
b := dAtA[iNdEx] |
| 1874 |
iNdEx++ |
| 1875 |
stringLenmapvalue |= uint64(b&0x7F) << shift |
| 1876 |
if b < 0x80 { |
| 1877 |
break |
| 1878 |
} |
| 1879 |
} |
| 1880 |
intStringLenmapvalue := int(stringLenmapvalue) |
| 1881 |
if intStringLenmapvalue < 0 { |
| 1882 |
return ErrInvalidLengthGenerated |
| 1883 |
} |
| 1884 |
postStringIndexmapvalue := iNdEx + intStringLenmapvalue |
| 1885 |
if postStringIndexmapvalue < 0 { |
| 1886 |
return ErrInvalidLengthGenerated |
| 1887 |
} |
| 1888 |
if postStringIndexmapvalue > l { |
| 1889 |
return io.ErrUnexpectedEOF |
| 1890 |
} |
| 1891 |
mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) |
| 1892 |
iNdEx = postStringIndexmapvalue |
| 1893 |
} else { |
| 1894 |
iNdEx = entryPreIndex |
| 1895 |
skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 1896 |
if err != nil { |
| 1897 |
return err |
| 1898 |
} |
| 1899 |
if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 1900 |
return ErrInvalidLengthGenerated |
| 1901 |
} |
| 1902 |
if (iNdEx + skippy) > postIndex { |
| 1903 |
return io.ErrUnexpectedEOF |
| 1904 |
} |
| 1905 |
iNdEx += skippy |
| 1906 |
} |
| 1907 |
} |
| 1908 |
m.Annotations[mapkey] = mapvalue |
| 1909 |
iNdEx = postIndex |
| 1910 |
case 16: |
| 1911 |
if wireType != 2 { |
| 1912 |
return fmt.Errorf("proto: wrong wireType = %d for field UserAgent", wireType) |
| 1913 |
} |
| 1914 |
var stringLen uint64 |
| 1915 |
for shift := uint(0); ; shift += 7 { |
| 1916 |
if shift >= 64 { |
| 1917 |
return ErrIntOverflowGenerated |
| 1918 |
} |
| 1919 |
if iNdEx >= l { |
| 1920 |
return io.ErrUnexpectedEOF |
| 1921 |
} |
| 1922 |
b := dAtA[iNdEx] |
| 1923 |
iNdEx++ |
| 1924 |
stringLen |= uint64(b&0x7F) << shift |
| 1925 |
if b < 0x80 { |
| 1926 |
break |
| 1927 |
} |
| 1928 |
} |
| 1929 |
intStringLen := int(stringLen) |
| 1930 |
if intStringLen < 0 { |
| 1931 |
return ErrInvalidLengthGenerated |
| 1932 |
} |
| 1933 |
postIndex := iNdEx + intStringLen |
| 1934 |
if postIndex < 0 { |
| 1935 |
return ErrInvalidLengthGenerated |
| 1936 |
} |
| 1937 |
if postIndex > l { |
| 1938 |
return io.ErrUnexpectedEOF |
| 1939 |
} |
| 1940 |
m.UserAgent = string(dAtA[iNdEx:postIndex]) |
| 1941 |
iNdEx = postIndex |
| 1942 |
default: |
| 1943 |
iNdEx = preIndex |
| 1944 |
skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 1945 |
if err != nil { |
| 1946 |
return err |
| 1947 |
} |
| 1948 |
if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 1949 |
return ErrInvalidLengthGenerated |
| 1950 |
} |
| 1951 |
if (iNdEx + skippy) > l { |
| 1952 |
return io.ErrUnexpectedEOF |
| 1953 |
} |
| 1954 |
iNdEx += skippy |
| 1955 |
} |
| 1956 |
} |
| 1957 |
|
| 1958 |
if iNdEx > l { |
| 1959 |
return io.ErrUnexpectedEOF |
| 1960 |
} |
| 1961 |
return nil |
| 1962 |
} |
| 1963 |
func (m *EventList) Unmarshal(dAtA []byte) error { |
| 1964 |
l := len(dAtA) |
| 1965 |
iNdEx := 0 |
| 1966 |
for iNdEx < l { |
| 1967 |
preIndex := iNdEx |
| 1968 |
var wire uint64 |
| 1969 |
for shift := uint(0); ; shift += 7 { |
| 1970 |
if shift >= 64 { |
| 1971 |
return ErrIntOverflowGenerated |
| 1972 |
} |
| 1973 |
if iNdEx >= l { |
| 1974 |
return io.ErrUnexpectedEOF |
| 1975 |
} |
| 1976 |
b := dAtA[iNdEx] |
| 1977 |
iNdEx++ |
| 1978 |
wire |= uint64(b&0x7F) << shift |
| 1979 |
if b < 0x80 { |
| 1980 |
break |
| 1981 |
} |
| 1982 |
} |
| 1983 |
fieldNum := int32(wire >> 3) |
| 1984 |
wireType := int(wire & 0x7) |
| 1985 |
if wireType == 4 { |
| 1986 |
return fmt.Errorf("proto: EventList: wiretype end group for non-group") |
| 1987 |
} |
| 1988 |
if fieldNum <= 0 { |
| 1989 |
return fmt.Errorf("proto: EventList: illegal tag %d (wire type %d)", fieldNum, wire) |
| 1990 |
} |
| 1991 |
switch fieldNum { |
| 1992 |
case 1: |
| 1993 |
if wireType != 2 { |
| 1994 |
return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) |
| 1995 |
} |
| 1996 |
var msglen int |
| 1997 |
for shift := uint(0); ; shift += 7 { |
| 1998 |
if shift >= 64 { |
| 1999 |
return ErrIntOverflowGenerated |
| 2000 |
} |
| 2001 |
if iNdEx >= l { |
| 2002 |
return io.ErrUnexpectedEOF |
| 2003 |
} |
| 2004 |
b := dAtA[iNdEx] |
| 2005 |
iNdEx++ |
| 2006 |
msglen |= int(b&0x7F) << shift |
| 2007 |
if b < 0x80 { |
| 2008 |
break |
| 2009 |
} |
| 2010 |
} |
| 2011 |
if msglen < 0 { |
| 2012 |
return ErrInvalidLengthGenerated |
| 2013 |
} |
| 2014 |
postIndex := iNdEx + msglen |
| 2015 |
if postIndex < 0 { |
| 2016 |
return ErrInvalidLengthGenerated |
| 2017 |
} |
| 2018 |
if postIndex > l { |
| 2019 |
return io.ErrUnexpectedEOF |
| 2020 |
} |
| 2021 |
if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2022 |
return err |
| 2023 |
} |
| 2024 |
iNdEx = postIndex |
| 2025 |
case 2: |
| 2026 |
if wireType != 2 { |
| 2027 |
return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) |
| 2028 |
} |
| 2029 |
var msglen int |
| 2030 |
for shift := uint(0); ; shift += 7 { |
| 2031 |
if shift >= 64 { |
| 2032 |
return ErrIntOverflowGenerated |
| 2033 |
} |
| 2034 |
if iNdEx >= l { |
| 2035 |
return io.ErrUnexpectedEOF |
| 2036 |
} |
| 2037 |
b := dAtA[iNdEx] |
| 2038 |
iNdEx++ |
| 2039 |
msglen |= int(b&0x7F) << shift |
| 2040 |
if b < 0x80 { |
| 2041 |
break |
| 2042 |
} |
| 2043 |
} |
| 2044 |
if msglen < 0 { |
| 2045 |
return ErrInvalidLengthGenerated |
| 2046 |
} |
| 2047 |
postIndex := iNdEx + msglen |
| 2048 |
if postIndex < 0 { |
| 2049 |
return ErrInvalidLengthGenerated |
| 2050 |
} |
| 2051 |
if postIndex > l { |
| 2052 |
return io.ErrUnexpectedEOF |
| 2053 |
} |
| 2054 |
m.Items = append(m.Items, Event{}) |
| 2055 |
if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2056 |
return err |
| 2057 |
} |
| 2058 |
iNdEx = postIndex |
| 2059 |
default: |
| 2060 |
iNdEx = preIndex |
| 2061 |
skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 2062 |
if err != nil { |
| 2063 |
return err |
| 2064 |
} |
| 2065 |
if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 2066 |
return ErrInvalidLengthGenerated |
| 2067 |
} |
| 2068 |
if (iNdEx + skippy) > l { |
| 2069 |
return io.ErrUnexpectedEOF |
| 2070 |
} |
| 2071 |
iNdEx += skippy |
| 2072 |
} |
| 2073 |
} |
| 2074 |
|
| 2075 |
if iNdEx > l { |
| 2076 |
return io.ErrUnexpectedEOF |
| 2077 |
} |
| 2078 |
return nil |
| 2079 |
} |
| 2080 |
func (m *GroupResources) Unmarshal(dAtA []byte) error { |
| 2081 |
l := len(dAtA) |
| 2082 |
iNdEx := 0 |
| 2083 |
for iNdEx < l { |
| 2084 |
preIndex := iNdEx |
| 2085 |
var wire uint64 |
| 2086 |
for shift := uint(0); ; shift += 7 { |
| 2087 |
if shift >= 64 { |
| 2088 |
return ErrIntOverflowGenerated |
| 2089 |
} |
| 2090 |
if iNdEx >= l { |
| 2091 |
return io.ErrUnexpectedEOF |
| 2092 |
} |
| 2093 |
b := dAtA[iNdEx] |
| 2094 |
iNdEx++ |
| 2095 |
wire |= uint64(b&0x7F) << shift |
| 2096 |
if b < 0x80 { |
| 2097 |
break |
| 2098 |
} |
| 2099 |
} |
| 2100 |
fieldNum := int32(wire >> 3) |
| 2101 |
wireType := int(wire & 0x7) |
| 2102 |
if wireType == 4 { |
| 2103 |
return fmt.Errorf("proto: GroupResources: wiretype end group for non-group") |
| 2104 |
} |
| 2105 |
if fieldNum <= 0 { |
| 2106 |
return fmt.Errorf("proto: GroupResources: illegal tag %d (wire type %d)", fieldNum, wire) |
| 2107 |
} |
| 2108 |
switch fieldNum { |
| 2109 |
case 1: |
| 2110 |
if wireType != 2 { |
| 2111 |
return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) |
| 2112 |
} |
| 2113 |
var stringLen uint64 |
| 2114 |
for shift := uint(0); ; shift += 7 { |
| 2115 |
if shift >= 64 { |
| 2116 |
return ErrIntOverflowGenerated |
| 2117 |
} |
| 2118 |
if iNdEx >= l { |
| 2119 |
return io.ErrUnexpectedEOF |
| 2120 |
} |
| 2121 |
b := dAtA[iNdEx] |
| 2122 |
iNdEx++ |
| 2123 |
stringLen |= uint64(b&0x7F) << shift |
| 2124 |
if b < 0x80 { |
| 2125 |
break |
| 2126 |
} |
| 2127 |
} |
| 2128 |
intStringLen := int(stringLen) |
| 2129 |
if intStringLen < 0 { |
| 2130 |
return ErrInvalidLengthGenerated |
| 2131 |
} |
| 2132 |
postIndex := iNdEx + intStringLen |
| 2133 |
if postIndex < 0 { |
| 2134 |
return ErrInvalidLengthGenerated |
| 2135 |
} |
| 2136 |
if postIndex > l { |
| 2137 |
return io.ErrUnexpectedEOF |
| 2138 |
} |
| 2139 |
m.Group = string(dAtA[iNdEx:postIndex]) |
| 2140 |
iNdEx = postIndex |
| 2141 |
case 2: |
| 2142 |
if wireType != 2 { |
| 2143 |
return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType) |
| 2144 |
} |
| 2145 |
var stringLen uint64 |
| 2146 |
for shift := uint(0); ; shift += 7 { |
| 2147 |
if shift >= 64 { |
| 2148 |
return ErrIntOverflowGenerated |
| 2149 |
} |
| 2150 |
if iNdEx >= l { |
| 2151 |
return io.ErrUnexpectedEOF |
| 2152 |
} |
| 2153 |
b := dAtA[iNdEx] |
| 2154 |
iNdEx++ |
| 2155 |
stringLen |= uint64(b&0x7F) << shift |
| 2156 |
if b < 0x80 { |
| 2157 |
break |
| 2158 |
} |
| 2159 |
} |
| 2160 |
intStringLen := int(stringLen) |
| 2161 |
if intStringLen < 0 { |
| 2162 |
return ErrInvalidLengthGenerated |
| 2163 |
} |
| 2164 |
postIndex := iNdEx + intStringLen |
| 2165 |
if postIndex < 0 { |
| 2166 |
return ErrInvalidLengthGenerated |
| 2167 |
} |
| 2168 |
if postIndex > l { |
| 2169 |
return io.ErrUnexpectedEOF |
| 2170 |
} |
| 2171 |
m.Resources = append(m.Resources, string(dAtA[iNdEx:postIndex])) |
| 2172 |
iNdEx = postIndex |
| 2173 |
case 3: |
| 2174 |
if wireType != 2 { |
| 2175 |
return fmt.Errorf("proto: wrong wireType = %d for field ResourceNames", wireType) |
| 2176 |
} |
| 2177 |
var stringLen uint64 |
| 2178 |
for shift := uint(0); ; shift += 7 { |
| 2179 |
if shift >= 64 { |
| 2180 |
return ErrIntOverflowGenerated |
| 2181 |
} |
| 2182 |
if iNdEx >= l { |
| 2183 |
return io.ErrUnexpectedEOF |
| 2184 |
} |
| 2185 |
b := dAtA[iNdEx] |
| 2186 |
iNdEx++ |
| 2187 |
stringLen |= uint64(b&0x7F) << shift |
| 2188 |
if b < 0x80 { |
| 2189 |
break |
| 2190 |
} |
| 2191 |
} |
| 2192 |
intStringLen := int(stringLen) |
| 2193 |
if intStringLen < 0 { |
| 2194 |
return ErrInvalidLengthGenerated |
| 2195 |
} |
| 2196 |
postIndex := iNdEx + intStringLen |
| 2197 |
if postIndex < 0 { |
| 2198 |
return ErrInvalidLengthGenerated |
| 2199 |
} |
| 2200 |
if postIndex > l { |
| 2201 |
return io.ErrUnexpectedEOF |
| 2202 |
} |
| 2203 |
m.ResourceNames = append(m.ResourceNames, string(dAtA[iNdEx:postIndex])) |
| 2204 |
iNdEx = postIndex |
| 2205 |
default: |
| 2206 |
iNdEx = preIndex |
| 2207 |
skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 2208 |
if err != nil { |
| 2209 |
return err |
| 2210 |
} |
| 2211 |
if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 2212 |
return ErrInvalidLengthGenerated |
| 2213 |
} |
| 2214 |
if (iNdEx + skippy) > l { |
| 2215 |
return io.ErrUnexpectedEOF |
| 2216 |
} |
| 2217 |
iNdEx += skippy |
| 2218 |
} |
| 2219 |
} |
| 2220 |
|
| 2221 |
if iNdEx > l { |
| 2222 |
return io.ErrUnexpectedEOF |
| 2223 |
} |
| 2224 |
return nil |
| 2225 |
} |
| 2226 |
func (m *ObjectReference) Unmarshal(dAtA []byte) error { |
| 2227 |
l := len(dAtA) |
| 2228 |
iNdEx := 0 |
| 2229 |
for iNdEx < l { |
| 2230 |
preIndex := iNdEx |
| 2231 |
var wire uint64 |
| 2232 |
for shift := uint(0); ; shift += 7 { |
| 2233 |
if shift >= 64 { |
| 2234 |
return ErrIntOverflowGenerated |
| 2235 |
} |
| 2236 |
if iNdEx >= l { |
| 2237 |
return io.ErrUnexpectedEOF |
| 2238 |
} |
| 2239 |
b := dAtA[iNdEx] |
| 2240 |
iNdEx++ |
| 2241 |
wire |= uint64(b&0x7F) << shift |
| 2242 |
if b < 0x80 { |
| 2243 |
break |
| 2244 |
} |
| 2245 |
} |
| 2246 |
fieldNum := int32(wire >> 3) |
| 2247 |
wireType := int(wire & 0x7) |
| 2248 |
if wireType == 4 { |
| 2249 |
return fmt.Errorf("proto: ObjectReference: wiretype end group for non-group") |
| 2250 |
} |
| 2251 |
if fieldNum <= 0 { |
| 2252 |
return fmt.Errorf("proto: ObjectReference: illegal tag %d (wire type %d)", fieldNum, wire) |
| 2253 |
} |
| 2254 |
switch fieldNum { |
| 2255 |
case 1: |
| 2256 |
if wireType != 2 { |
| 2257 |
return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType) |
| 2258 |
} |
| 2259 |
var stringLen uint64 |
| 2260 |
for shift := uint(0); ; shift += 7 { |
| 2261 |
if shift >= 64 { |
| 2262 |
return ErrIntOverflowGenerated |
| 2263 |
} |
| 2264 |
if iNdEx >= l { |
| 2265 |
return io.ErrUnexpectedEOF |
| 2266 |
} |
| 2267 |
b := dAtA[iNdEx] |
| 2268 |
iNdEx++ |
| 2269 |
stringLen |= uint64(b&0x7F) << shift |
| 2270 |
if b < 0x80 { |
| 2271 |
break |
| 2272 |
} |
| 2273 |
} |
| 2274 |
intStringLen := int(stringLen) |
| 2275 |
if intStringLen < 0 { |
| 2276 |
return ErrInvalidLengthGenerated |
| 2277 |
} |
| 2278 |
postIndex := iNdEx + intStringLen |
| 2279 |
if postIndex < 0 { |
| 2280 |
return ErrInvalidLengthGenerated |
| 2281 |
} |
| 2282 |
if postIndex > l { |
| 2283 |
return io.ErrUnexpectedEOF |
| 2284 |
} |
| 2285 |
m.Resource = string(dAtA[iNdEx:postIndex]) |
| 2286 |
iNdEx = postIndex |
| 2287 |
case 2: |
| 2288 |
if wireType != 2 { |
| 2289 |
return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) |
| 2290 |
} |
| 2291 |
var stringLen uint64 |
| 2292 |
for shift := uint(0); ; shift += 7 { |
| 2293 |
if shift >= 64 { |
| 2294 |
return ErrIntOverflowGenerated |
| 2295 |
} |
| 2296 |
if iNdEx >= l { |
| 2297 |
return io.ErrUnexpectedEOF |
| 2298 |
} |
| 2299 |
b := dAtA[iNdEx] |
| 2300 |
iNdEx++ |
| 2301 |
stringLen |= uint64(b&0x7F) << shift |
| 2302 |
if b < 0x80 { |
| 2303 |
break |
| 2304 |
} |
| 2305 |
} |
| 2306 |
intStringLen := int(stringLen) |
| 2307 |
if intStringLen < 0 { |
| 2308 |
return ErrInvalidLengthGenerated |
| 2309 |
} |
| 2310 |
postIndex := iNdEx + intStringLen |
| 2311 |
if postIndex < 0 { |
| 2312 |
return ErrInvalidLengthGenerated |
| 2313 |
} |
| 2314 |
if postIndex > l { |
| 2315 |
return io.ErrUnexpectedEOF |
| 2316 |
} |
| 2317 |
m.Namespace = string(dAtA[iNdEx:postIndex]) |
| 2318 |
iNdEx = postIndex |
| 2319 |
case 3: |
| 2320 |
if wireType != 2 { |
| 2321 |
return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| 2322 |
} |
| 2323 |
var stringLen uint64 |
| 2324 |
for shift := uint(0); ; shift += 7 { |
| 2325 |
if shift >= 64 { |
| 2326 |
return ErrIntOverflowGenerated |
| 2327 |
} |
| 2328 |
if iNdEx >= l { |
| 2329 |
return io.ErrUnexpectedEOF |
| 2330 |
} |
| 2331 |
b := dAtA[iNdEx] |
| 2332 |
iNdEx++ |
| 2333 |
stringLen |= uint64(b&0x7F) << shift |
| 2334 |
if b < 0x80 { |
| 2335 |
break |
| 2336 |
} |
| 2337 |
} |
| 2338 |
intStringLen := int(stringLen) |
| 2339 |
if intStringLen < 0 { |
| 2340 |
return ErrInvalidLengthGenerated |
| 2341 |
} |
| 2342 |
postIndex := iNdEx + intStringLen |
| 2343 |
if postIndex < 0 { |
| 2344 |
return ErrInvalidLengthGenerated |
| 2345 |
} |
| 2346 |
if postIndex > l { |
| 2347 |
return io.ErrUnexpectedEOF |
| 2348 |
} |
| 2349 |
m.Name = string(dAtA[iNdEx:postIndex]) |
| 2350 |
iNdEx = postIndex |
| 2351 |
case 4: |
| 2352 |
if wireType != 2 { |
| 2353 |
return fmt.Errorf("proto: wrong wireType = %d for field UID", wireType) |
| 2354 |
} |
| 2355 |
var stringLen uint64 |
| 2356 |
for shift := uint(0); ; shift += 7 { |
| 2357 |
if shift >= 64 { |
| 2358 |
return ErrIntOverflowGenerated |
| 2359 |
} |
| 2360 |
if iNdEx >= l { |
| 2361 |
return io.ErrUnexpectedEOF |
| 2362 |
} |
| 2363 |
b := dAtA[iNdEx] |
| 2364 |
iNdEx++ |
| 2365 |
stringLen |= uint64(b&0x7F) << shift |
| 2366 |
if b < 0x80 { |
| 2367 |
break |
| 2368 |
} |
| 2369 |
} |
| 2370 |
intStringLen := int(stringLen) |
| 2371 |
if intStringLen < 0 { |
| 2372 |
return ErrInvalidLengthGenerated |
| 2373 |
} |
| 2374 |
postIndex := iNdEx + intStringLen |
| 2375 |
if postIndex < 0 { |
| 2376 |
return ErrInvalidLengthGenerated |
| 2377 |
} |
| 2378 |
if postIndex > l { |
| 2379 |
return io.ErrUnexpectedEOF |
| 2380 |
} |
| 2381 |
m.UID = k8s_io_apimachinery_pkg_types.UID(dAtA[iNdEx:postIndex]) |
| 2382 |
iNdEx = postIndex |
| 2383 |
case 5: |
| 2384 |
if wireType != 2 { |
| 2385 |
return fmt.Errorf("proto: wrong wireType = %d for field APIGroup", wireType) |
| 2386 |
} |
| 2387 |
var stringLen uint64 |
| 2388 |
for shift := uint(0); ; shift += 7 { |
| 2389 |
if shift >= 64 { |
| 2390 |
return ErrIntOverflowGenerated |
| 2391 |
} |
| 2392 |
if iNdEx >= l { |
| 2393 |
return io.ErrUnexpectedEOF |
| 2394 |
} |
| 2395 |
b := dAtA[iNdEx] |
| 2396 |
iNdEx++ |
| 2397 |
stringLen |= uint64(b&0x7F) << shift |
| 2398 |
if b < 0x80 { |
| 2399 |
break |
| 2400 |
} |
| 2401 |
} |
| 2402 |
intStringLen := int(stringLen) |
| 2403 |
if intStringLen < 0 { |
| 2404 |
return ErrInvalidLengthGenerated |
| 2405 |
} |
| 2406 |
postIndex := iNdEx + intStringLen |
| 2407 |
if postIndex < 0 { |
| 2408 |
return ErrInvalidLengthGenerated |
| 2409 |
} |
| 2410 |
if postIndex > l { |
| 2411 |
return io.ErrUnexpectedEOF |
| 2412 |
} |
| 2413 |
m.APIGroup = string(dAtA[iNdEx:postIndex]) |
| 2414 |
iNdEx = postIndex |
| 2415 |
case 6: |
| 2416 |
if wireType != 2 { |
| 2417 |
return fmt.Errorf("proto: wrong wireType = %d for field APIVersion", wireType) |
| 2418 |
} |
| 2419 |
var stringLen uint64 |
| 2420 |
for shift := uint(0); ; shift += 7 { |
| 2421 |
if shift >= 64 { |
| 2422 |
return ErrIntOverflowGenerated |
| 2423 |
} |
| 2424 |
if iNdEx >= l { |
| 2425 |
return io.ErrUnexpectedEOF |
| 2426 |
} |
| 2427 |
b := dAtA[iNdEx] |
| 2428 |
iNdEx++ |
| 2429 |
stringLen |= uint64(b&0x7F) << shift |
| 2430 |
if b < 0x80 { |
| 2431 |
break |
| 2432 |
} |
| 2433 |
} |
| 2434 |
intStringLen := int(stringLen) |
| 2435 |
if intStringLen < 0 { |
| 2436 |
return ErrInvalidLengthGenerated |
| 2437 |
} |
| 2438 |
postIndex := iNdEx + intStringLen |
| 2439 |
if postIndex < 0 { |
| 2440 |
return ErrInvalidLengthGenerated |
| 2441 |
} |
| 2442 |
if postIndex > l { |
| 2443 |
return io.ErrUnexpectedEOF |
| 2444 |
} |
| 2445 |
m.APIVersion = string(dAtA[iNdEx:postIndex]) |
| 2446 |
iNdEx = postIndex |
| 2447 |
case 7: |
| 2448 |
if wireType != 2 { |
| 2449 |
return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", wireType) |
| 2450 |
} |
| 2451 |
var stringLen uint64 |
| 2452 |
for shift := uint(0); ; shift += 7 { |
| 2453 |
if shift >= 64 { |
| 2454 |
return ErrIntOverflowGenerated |
| 2455 |
} |
| 2456 |
if iNdEx >= l { |
| 2457 |
return io.ErrUnexpectedEOF |
| 2458 |
} |
| 2459 |
b := dAtA[iNdEx] |
| 2460 |
iNdEx++ |
| 2461 |
stringLen |= uint64(b&0x7F) << shift |
| 2462 |
if b < 0x80 { |
| 2463 |
break |
| 2464 |
} |
| 2465 |
} |
| 2466 |
intStringLen := int(stringLen) |
| 2467 |
if intStringLen < 0 { |
| 2468 |
return ErrInvalidLengthGenerated |
| 2469 |
} |
| 2470 |
postIndex := iNdEx + intStringLen |
| 2471 |
if postIndex < 0 { |
| 2472 |
return ErrInvalidLengthGenerated |
| 2473 |
} |
| 2474 |
if postIndex > l { |
| 2475 |
return io.ErrUnexpectedEOF |
| 2476 |
} |
| 2477 |
m.ResourceVersion = string(dAtA[iNdEx:postIndex]) |
| 2478 |
iNdEx = postIndex |
| 2479 |
case 8: |
| 2480 |
if wireType != 2 { |
| 2481 |
return fmt.Errorf("proto: wrong wireType = %d for field Subresource", wireType) |
| 2482 |
} |
| 2483 |
var stringLen uint64 |
| 2484 |
for shift := uint(0); ; shift += 7 { |
| 2485 |
if shift >= 64 { |
| 2486 |
return ErrIntOverflowGenerated |
| 2487 |
} |
| 2488 |
if iNdEx >= l { |
| 2489 |
return io.ErrUnexpectedEOF |
| 2490 |
} |
| 2491 |
b := dAtA[iNdEx] |
| 2492 |
iNdEx++ |
| 2493 |
stringLen |= uint64(b&0x7F) << shift |
| 2494 |
if b < 0x80 { |
| 2495 |
break |
| 2496 |
} |
| 2497 |
} |
| 2498 |
intStringLen := int(stringLen) |
| 2499 |
if intStringLen < 0 { |
| 2500 |
return ErrInvalidLengthGenerated |
| 2501 |
} |
| 2502 |
postIndex := iNdEx + intStringLen |
| 2503 |
if postIndex < 0 { |
| 2504 |
return ErrInvalidLengthGenerated |
| 2505 |
} |
| 2506 |
if postIndex > l { |
| 2507 |
return io.ErrUnexpectedEOF |
| 2508 |
} |
| 2509 |
m.Subresource = string(dAtA[iNdEx:postIndex]) |
| 2510 |
iNdEx = postIndex |
| 2511 |
default: |
| 2512 |
iNdEx = preIndex |
| 2513 |
skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 2514 |
if err != nil { |
| 2515 |
return err |
| 2516 |
} |
| 2517 |
if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 2518 |
return ErrInvalidLengthGenerated |
| 2519 |
} |
| 2520 |
if (iNdEx + skippy) > l { |
| 2521 |
return io.ErrUnexpectedEOF |
| 2522 |
} |
| 2523 |
iNdEx += skippy |
| 2524 |
} |
| 2525 |
} |
| 2526 |
|
| 2527 |
if iNdEx > l { |
| 2528 |
return io.ErrUnexpectedEOF |
| 2529 |
} |
| 2530 |
return nil |
| 2531 |
} |
| 2532 |
func (m *Policy) Unmarshal(dAtA []byte) error { |
| 2533 |
l := len(dAtA) |
| 2534 |
iNdEx := 0 |
| 2535 |
for iNdEx < l { |
| 2536 |
preIndex := iNdEx |
| 2537 |
var wire uint64 |
| 2538 |
for shift := uint(0); ; shift += 7 { |
| 2539 |
if shift >= 64 { |
| 2540 |
return ErrIntOverflowGenerated |
| 2541 |
} |
| 2542 |
if iNdEx >= l { |
| 2543 |
return io.ErrUnexpectedEOF |
| 2544 |
} |
| 2545 |
b := dAtA[iNdEx] |
| 2546 |
iNdEx++ |
| 2547 |
wire |= uint64(b&0x7F) << shift |
| 2548 |
if b < 0x80 { |
| 2549 |
break |
| 2550 |
} |
| 2551 |
} |
| 2552 |
fieldNum := int32(wire >> 3) |
| 2553 |
wireType := int(wire & 0x7) |
| 2554 |
if wireType == 4 { |
| 2555 |
return fmt.Errorf("proto: Policy: wiretype end group for non-group") |
| 2556 |
} |
| 2557 |
if fieldNum <= 0 { |
| 2558 |
return fmt.Errorf("proto: Policy: illegal tag %d (wire type %d)", fieldNum, wire) |
| 2559 |
} |
| 2560 |
switch fieldNum { |
| 2561 |
case 1: |
| 2562 |
if wireType != 2 { |
| 2563 |
return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) |
| 2564 |
} |
| 2565 |
var msglen int |
| 2566 |
for shift := uint(0); ; shift += 7 { |
| 2567 |
if shift >= 64 { |
| 2568 |
return ErrIntOverflowGenerated |
| 2569 |
} |
| 2570 |
if iNdEx >= l { |
| 2571 |
return io.ErrUnexpectedEOF |
| 2572 |
} |
| 2573 |
b := dAtA[iNdEx] |
| 2574 |
iNdEx++ |
| 2575 |
msglen |= int(b&0x7F) << shift |
| 2576 |
if b < 0x80 { |
| 2577 |
break |
| 2578 |
} |
| 2579 |
} |
| 2580 |
if msglen < 0 { |
| 2581 |
return ErrInvalidLengthGenerated |
| 2582 |
} |
| 2583 |
postIndex := iNdEx + msglen |
| 2584 |
if postIndex < 0 { |
| 2585 |
return ErrInvalidLengthGenerated |
| 2586 |
} |
| 2587 |
if postIndex > l { |
| 2588 |
return io.ErrUnexpectedEOF |
| 2589 |
} |
| 2590 |
if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2591 |
return err |
| 2592 |
} |
| 2593 |
iNdEx = postIndex |
| 2594 |
case 2: |
| 2595 |
if wireType != 2 { |
| 2596 |
return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) |
| 2597 |
} |
| 2598 |
var msglen int |
| 2599 |
for shift := uint(0); ; shift += 7 { |
| 2600 |
if shift >= 64 { |
| 2601 |
return ErrIntOverflowGenerated |
| 2602 |
} |
| 2603 |
if iNdEx >= l { |
| 2604 |
return io.ErrUnexpectedEOF |
| 2605 |
} |
| 2606 |
b := dAtA[iNdEx] |
| 2607 |
iNdEx++ |
| 2608 |
msglen |= int(b&0x7F) << shift |
| 2609 |
if b < 0x80 { |
| 2610 |
break |
| 2611 |
} |
| 2612 |
} |
| 2613 |
if msglen < 0 { |
| 2614 |
return ErrInvalidLengthGenerated |
| 2615 |
} |
| 2616 |
postIndex := iNdEx + msglen |
| 2617 |
if postIndex < 0 { |
| 2618 |
return ErrInvalidLengthGenerated |
| 2619 |
} |
| 2620 |
if postIndex > l { |
| 2621 |
return io.ErrUnexpectedEOF |
| 2622 |
} |
| 2623 |
m.Rules = append(m.Rules, PolicyRule{}) |
| 2624 |
if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2625 |
return err |
| 2626 |
} |
| 2627 |
iNdEx = postIndex |
| 2628 |
case 3: |
| 2629 |
if wireType != 2 { |
| 2630 |
return fmt.Errorf("proto: wrong wireType = %d for field OmitStages", wireType) |
| 2631 |
} |
| 2632 |
var stringLen uint64 |
| 2633 |
for shift := uint(0); ; shift += 7 { |
| 2634 |
if shift >= 64 { |
| 2635 |
return ErrIntOverflowGenerated |
| 2636 |
} |
| 2637 |
if iNdEx >= l { |
| 2638 |
return io.ErrUnexpectedEOF |
| 2639 |
} |
| 2640 |
b := dAtA[iNdEx] |
| 2641 |
iNdEx++ |
| 2642 |
stringLen |= uint64(b&0x7F) << shift |
| 2643 |
if b < 0x80 { |
| 2644 |
break |
| 2645 |
} |
| 2646 |
} |
| 2647 |
intStringLen := int(stringLen) |
| 2648 |
if intStringLen < 0 { |
| 2649 |
return ErrInvalidLengthGenerated |
| 2650 |
} |
| 2651 |
postIndex := iNdEx + intStringLen |
| 2652 |
if postIndex < 0 { |
| 2653 |
return ErrInvalidLengthGenerated |
| 2654 |
} |
| 2655 |
if postIndex > l { |
| 2656 |
return io.ErrUnexpectedEOF |
| 2657 |
} |
| 2658 |
m.OmitStages = append(m.OmitStages, Stage(dAtA[iNdEx:postIndex])) |
| 2659 |
iNdEx = postIndex |
| 2660 |
case 4: |
| 2661 |
if wireType != 0 { |
| 2662 |
return fmt.Errorf("proto: wrong wireType = %d for field OmitManagedFields", wireType) |
| 2663 |
} |
| 2664 |
var v int |
| 2665 |
for shift := uint(0); ; shift += 7 { |
| 2666 |
if shift >= 64 { |
| 2667 |
return ErrIntOverflowGenerated |
| 2668 |
} |
| 2669 |
if iNdEx >= l { |
| 2670 |
return io.ErrUnexpectedEOF |
| 2671 |
} |
| 2672 |
b := dAtA[iNdEx] |
| 2673 |
iNdEx++ |
| 2674 |
v |= int(b&0x7F) << shift |
| 2675 |
if b < 0x80 { |
| 2676 |
break |
| 2677 |
} |
| 2678 |
} |
| 2679 |
m.OmitManagedFields = bool(v != 0) |
| 2680 |
default: |
| 2681 |
iNdEx = preIndex |
| 2682 |
skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 2683 |
if err != nil { |
| 2684 |
return err |
| 2685 |
} |
| 2686 |
if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 2687 |
return ErrInvalidLengthGenerated |
| 2688 |
} |
| 2689 |
if (iNdEx + skippy) > l { |
| 2690 |
return io.ErrUnexpectedEOF |
| 2691 |
} |
| 2692 |
iNdEx += skippy |
| 2693 |
} |
| 2694 |
} |
| 2695 |
|
| 2696 |
if iNdEx > l { |
| 2697 |
return io.ErrUnexpectedEOF |
| 2698 |
} |
| 2699 |
return nil |
| 2700 |
} |
| 2701 |
func (m *PolicyList) Unmarshal(dAtA []byte) error { |
| 2702 |
l := len(dAtA) |
| 2703 |
iNdEx := 0 |
| 2704 |
for iNdEx < l { |
| 2705 |
preIndex := iNdEx |
| 2706 |
var wire uint64 |
| 2707 |
for shift := uint(0); ; shift += 7 { |
| 2708 |
if shift >= 64 { |
| 2709 |
return ErrIntOverflowGenerated |
| 2710 |
} |
| 2711 |
if iNdEx >= l { |
| 2712 |
return io.ErrUnexpectedEOF |
| 2713 |
} |
| 2714 |
b := dAtA[iNdEx] |
| 2715 |
iNdEx++ |
| 2716 |
wire |= uint64(b&0x7F) << shift |
| 2717 |
if b < 0x80 { |
| 2718 |
break |
| 2719 |
} |
| 2720 |
} |
| 2721 |
fieldNum := int32(wire >> 3) |
| 2722 |
wireType := int(wire & 0x7) |
| 2723 |
if wireType == 4 { |
| 2724 |
return fmt.Errorf("proto: PolicyList: wiretype end group for non-group") |
| 2725 |
} |
| 2726 |
if fieldNum <= 0 { |
| 2727 |
return fmt.Errorf("proto: PolicyList: illegal tag %d (wire type %d)", fieldNum, wire) |
| 2728 |
} |
| 2729 |
switch fieldNum { |
| 2730 |
case 1: |
| 2731 |
if wireType != 2 { |
| 2732 |
return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) |
| 2733 |
} |
| 2734 |
var msglen int |
| 2735 |
for shift := uint(0); ; shift += 7 { |
| 2736 |
if shift >= 64 { |
| 2737 |
return ErrIntOverflowGenerated |
| 2738 |
} |
| 2739 |
if iNdEx >= l { |
| 2740 |
return io.ErrUnexpectedEOF |
| 2741 |
} |
| 2742 |
b := dAtA[iNdEx] |
| 2743 |
iNdEx++ |
| 2744 |
msglen |= int(b&0x7F) << shift |
| 2745 |
if b < 0x80 { |
| 2746 |
break |
| 2747 |
} |
| 2748 |
} |
| 2749 |
if msglen < 0 { |
| 2750 |
return ErrInvalidLengthGenerated |
| 2751 |
} |
| 2752 |
postIndex := iNdEx + msglen |
| 2753 |
if postIndex < 0 { |
| 2754 |
return ErrInvalidLengthGenerated |
| 2755 |
} |
| 2756 |
if postIndex > l { |
| 2757 |
return io.ErrUnexpectedEOF |
| 2758 |
} |
| 2759 |
if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2760 |
return err |
| 2761 |
} |
| 2762 |
iNdEx = postIndex |
| 2763 |
case 2: |
| 2764 |
if wireType != 2 { |
| 2765 |
return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) |
| 2766 |
} |
| 2767 |
var msglen int |
| 2768 |
for shift := uint(0); ; shift += 7 { |
| 2769 |
if shift >= 64 { |
| 2770 |
return ErrIntOverflowGenerated |
| 2771 |
} |
| 2772 |
if iNdEx >= l { |
| 2773 |
return io.ErrUnexpectedEOF |
| 2774 |
} |
| 2775 |
b := dAtA[iNdEx] |
| 2776 |
iNdEx++ |
| 2777 |
msglen |= int(b&0x7F) << shift |
| 2778 |
if b < 0x80 { |
| 2779 |
break |
| 2780 |
} |
| 2781 |
} |
| 2782 |
if msglen < 0 { |
| 2783 |
return ErrInvalidLengthGenerated |
| 2784 |
} |
| 2785 |
postIndex := iNdEx + msglen |
| 2786 |
if postIndex < 0 { |
| 2787 |
return ErrInvalidLengthGenerated |
| 2788 |
} |
| 2789 |
if postIndex > l { |
| 2790 |
return io.ErrUnexpectedEOF |
| 2791 |
} |
| 2792 |
m.Items = append(m.Items, Policy{}) |
| 2793 |
if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2794 |
return err |
| 2795 |
} |
| 2796 |
iNdEx = postIndex |
| 2797 |
default: |
| 2798 |
iNdEx = preIndex |
| 2799 |
skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 2800 |
if err != nil { |
| 2801 |
return err |
| 2802 |
} |
| 2803 |
if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 2804 |
return ErrInvalidLengthGenerated |
| 2805 |
} |
| 2806 |
if (iNdEx + skippy) > l { |
| 2807 |
return io.ErrUnexpectedEOF |
| 2808 |
} |
| 2809 |
iNdEx += skippy |
| 2810 |
} |
| 2811 |
} |
| 2812 |
|
| 2813 |
if iNdEx > l { |
| 2814 |
return io.ErrUnexpectedEOF |
| 2815 |
} |
| 2816 |
return nil |
| 2817 |
} |
| 2818 |
func (m *PolicyRule) Unmarshal(dAtA []byte) error { |
| 2819 |
l := len(dAtA) |
| 2820 |
iNdEx := 0 |
| 2821 |
for iNdEx < l { |
| 2822 |
preIndex := iNdEx |
| 2823 |
var wire uint64 |
| 2824 |
for shift := uint(0); ; shift += 7 { |
| 2825 |
if shift >= 64 { |
| 2826 |
return ErrIntOverflowGenerated |
| 2827 |
} |
| 2828 |
if iNdEx >= l { |
| 2829 |
return io.ErrUnexpectedEOF |
| 2830 |
} |
| 2831 |
b := dAtA[iNdEx] |
| 2832 |
iNdEx++ |
| 2833 |
wire |= uint64(b&0x7F) << shift |
| 2834 |
if b < 0x80 { |
| 2835 |
break |
| 2836 |
} |
| 2837 |
} |
| 2838 |
fieldNum := int32(wire >> 3) |
| 2839 |
wireType := int(wire & 0x7) |
| 2840 |
if wireType == 4 { |
| 2841 |
return fmt.Errorf("proto: PolicyRule: wiretype end group for non-group") |
| 2842 |
} |
| 2843 |
if fieldNum <= 0 { |
| 2844 |
return fmt.Errorf("proto: PolicyRule: illegal tag %d (wire type %d)", fieldNum, wire) |
| 2845 |
} |
| 2846 |
switch fieldNum { |
| 2847 |
case 1: |
| 2848 |
if wireType != 2 { |
| 2849 |
return fmt.Errorf("proto: wrong wireType = %d for field Level", wireType) |
| 2850 |
} |
| 2851 |
var stringLen uint64 |
| 2852 |
for shift := uint(0); ; shift += 7 { |
| 2853 |
if shift >= 64 { |
| 2854 |
return ErrIntOverflowGenerated |
| 2855 |
} |
| 2856 |
if iNdEx >= l { |
| 2857 |
return io.ErrUnexpectedEOF |
| 2858 |
} |
| 2859 |
b := dAtA[iNdEx] |
| 2860 |
iNdEx++ |
| 2861 |
stringLen |= uint64(b&0x7F) << shift |
| 2862 |
if b < 0x80 { |
| 2863 |
break |
| 2864 |
} |
| 2865 |
} |
| 2866 |
intStringLen := int(stringLen) |
| 2867 |
if intStringLen < 0 { |
| 2868 |
return ErrInvalidLengthGenerated |
| 2869 |
} |
| 2870 |
postIndex := iNdEx + intStringLen |
| 2871 |
if postIndex < 0 { |
| 2872 |
return ErrInvalidLengthGenerated |
| 2873 |
} |
| 2874 |
if postIndex > l { |
| 2875 |
return io.ErrUnexpectedEOF |
| 2876 |
} |
| 2877 |
m.Level = Level(dAtA[iNdEx:postIndex]) |
| 2878 |
iNdEx = postIndex |
| 2879 |
case 2: |
| 2880 |
if wireType != 2 { |
| 2881 |
return fmt.Errorf("proto: wrong wireType = %d for field Users", wireType) |
| 2882 |
} |
| 2883 |
var stringLen uint64 |
| 2884 |
for shift := uint(0); ; shift += 7 { |
| 2885 |
if shift >= 64 { |
| 2886 |
return ErrIntOverflowGenerated |
| 2887 |
} |
| 2888 |
if iNdEx >= l { |
| 2889 |
return io.ErrUnexpectedEOF |
| 2890 |
} |
| 2891 |
b := dAtA[iNdEx] |
| 2892 |
iNdEx++ |
| 2893 |
stringLen |= uint64(b&0x7F) << shift |
| 2894 |
if b < 0x80 { |
| 2895 |
break |
| 2896 |
} |
| 2897 |
} |
| 2898 |
intStringLen := int(stringLen) |
| 2899 |
if intStringLen < 0 { |
| 2900 |
return ErrInvalidLengthGenerated |
| 2901 |
} |
| 2902 |
postIndex := iNdEx + intStringLen |
| 2903 |
if postIndex < 0 { |
| 2904 |
return ErrInvalidLengthGenerated |
| 2905 |
} |
| 2906 |
if postIndex > l { |
| 2907 |
return io.ErrUnexpectedEOF |
| 2908 |
} |
| 2909 |
m.Users = append(m.Users, string(dAtA[iNdEx:postIndex])) |
| 2910 |
iNdEx = postIndex |
| 2911 |
case 3: |
| 2912 |
if wireType != 2 { |
| 2913 |
return fmt.Errorf("proto: wrong wireType = %d for field UserGroups", wireType) |
| 2914 |
} |
| 2915 |
var stringLen uint64 |
| 2916 |
for shift := uint(0); ; shift += 7 { |
| 2917 |
if shift >= 64 { |
| 2918 |
return ErrIntOverflowGenerated |
| 2919 |
} |
| 2920 |
if iNdEx >= l { |
| 2921 |
return io.ErrUnexpectedEOF |
| 2922 |
} |
| 2923 |
b := dAtA[iNdEx] |
| 2924 |
iNdEx++ |
| 2925 |
stringLen |= uint64(b&0x7F) << shift |
| 2926 |
if b < 0x80 { |
| 2927 |
break |
| 2928 |
} |
| 2929 |
} |
| 2930 |
intStringLen := int(stringLen) |
| 2931 |
if intStringLen < 0 { |
| 2932 |
return ErrInvalidLengthGenerated |
| 2933 |
} |
| 2934 |
postIndex := iNdEx + intStringLen |
| 2935 |
if postIndex < 0 { |
| 2936 |
return ErrInvalidLengthGenerated |
| 2937 |
} |
| 2938 |
if postIndex > l { |
| 2939 |
return io.ErrUnexpectedEOF |
| 2940 |
} |
| 2941 |
m.UserGroups = append(m.UserGroups, string(dAtA[iNdEx:postIndex])) |
| 2942 |
iNdEx = postIndex |
| 2943 |
case 4: |
| 2944 |
if wireType != 2 { |
| 2945 |
return fmt.Errorf("proto: wrong wireType = %d for field Verbs", wireType) |
| 2946 |
} |
| 2947 |
var stringLen uint64 |
| 2948 |
for shift := uint(0); ; shift += 7 { |
| 2949 |
if shift >= 64 { |
| 2950 |
return ErrIntOverflowGenerated |
| 2951 |
} |
| 2952 |
if iNdEx >= l { |
| 2953 |
return io.ErrUnexpectedEOF |
| 2954 |
} |
| 2955 |
b := dAtA[iNdEx] |
| 2956 |
iNdEx++ |
| 2957 |
stringLen |= uint64(b&0x7F) << shift |
| 2958 |
if b < 0x80 { |
| 2959 |
break |
| 2960 |
} |
| 2961 |
} |
| 2962 |
intStringLen := int(stringLen) |
| 2963 |
if intStringLen < 0 { |
| 2964 |
return ErrInvalidLengthGenerated |
| 2965 |
} |
| 2966 |
postIndex := iNdEx + intStringLen |
| 2967 |
if postIndex < 0 { |
| 2968 |
return ErrInvalidLengthGenerated |
| 2969 |
} |
| 2970 |
if postIndex > l { |
| 2971 |
return io.ErrUnexpectedEOF |
| 2972 |
} |
| 2973 |
m.Verbs = append(m.Verbs, string(dAtA[iNdEx:postIndex])) |
| 2974 |
iNdEx = postIndex |
| 2975 |
case 5: |
| 2976 |
if wireType != 2 { |
| 2977 |
return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType) |
| 2978 |
} |
| 2979 |
var msglen int |
| 2980 |
for shift := uint(0); ; shift += 7 { |
| 2981 |
if shift >= 64 { |
| 2982 |
return ErrIntOverflowGenerated |
| 2983 |
} |
| 2984 |
if iNdEx >= l { |
| 2985 |
return io.ErrUnexpectedEOF |
| 2986 |
} |
| 2987 |
b := dAtA[iNdEx] |
| 2988 |
iNdEx++ |
| 2989 |
msglen |= int(b&0x7F) << shift |
| 2990 |
if b < 0x80 { |
| 2991 |
break |
| 2992 |
} |
| 2993 |
} |
| 2994 |
if msglen < 0 { |
| 2995 |
return ErrInvalidLengthGenerated |
| 2996 |
} |
| 2997 |
postIndex := iNdEx + msglen |
| 2998 |
if postIndex < 0 { |
| 2999 |
return ErrInvalidLengthGenerated |
| 3000 |
} |
| 3001 |
if postIndex > l { |
| 3002 |
return io.ErrUnexpectedEOF |
| 3003 |
} |
| 3004 |
m.Resources = append(m.Resources, GroupResources{}) |
| 3005 |
if err := m.Resources[len(m.Resources)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3006 |
return err |
| 3007 |
} |
| 3008 |
iNdEx = postIndex |
| 3009 |
case 6: |
| 3010 |
if wireType != 2 { |
| 3011 |
return fmt.Errorf("proto: wrong wireType = %d for field Namespaces", wireType) |
| 3012 |
} |
| 3013 |
var stringLen uint64 |
| 3014 |
for shift := uint(0); ; shift += 7 { |
| 3015 |
if shift >= 64 { |
| 3016 |
return ErrIntOverflowGenerated |
| 3017 |
} |
| 3018 |
if iNdEx >= l { |
| 3019 |
return io.ErrUnexpectedEOF |
| 3020 |
} |
| 3021 |
b := dAtA[iNdEx] |
| 3022 |
iNdEx++ |
| 3023 |
stringLen |= uint64(b&0x7F) << shift |
| 3024 |
if b < 0x80 { |
| 3025 |
break |
| 3026 |
} |
| 3027 |
} |
| 3028 |
intStringLen := int(stringLen) |
| 3029 |
if intStringLen < 0 { |
| 3030 |
return ErrInvalidLengthGenerated |
| 3031 |
} |
| 3032 |
postIndex := iNdEx + intStringLen |
| 3033 |
if postIndex < 0 { |
| 3034 |
return ErrInvalidLengthGenerated |
| 3035 |
} |
| 3036 |
if postIndex > l { |
| 3037 |
return io.ErrUnexpectedEOF |
| 3038 |
} |
| 3039 |
m.Namespaces = append(m.Namespaces, string(dAtA[iNdEx:postIndex])) |
| 3040 |
iNdEx = postIndex |
| 3041 |
case 7: |
| 3042 |
if wireType != 2 { |
| 3043 |
return fmt.Errorf("proto: wrong wireType = %d for field NonResourceURLs", wireType) |
| 3044 |
} |
| 3045 |
var stringLen uint64 |
| 3046 |
for shift := uint(0); ; shift += 7 { |
| 3047 |
if shift >= 64 { |
| 3048 |
return ErrIntOverflowGenerated |
| 3049 |
} |
| 3050 |
if iNdEx >= l { |
| 3051 |
return io.ErrUnexpectedEOF |
| 3052 |
} |
| 3053 |
b := dAtA[iNdEx] |
| 3054 |
iNdEx++ |
| 3055 |
stringLen |= uint64(b&0x7F) << shift |
| 3056 |
if b < 0x80 { |
| 3057 |
break |
| 3058 |
} |
| 3059 |
} |
| 3060 |
intStringLen := int(stringLen) |
| 3061 |
if intStringLen < 0 { |
| 3062 |
return ErrInvalidLengthGenerated |
| 3063 |
} |
| 3064 |
postIndex := iNdEx + intStringLen |
| 3065 |
if postIndex < 0 { |
| 3066 |
return ErrInvalidLengthGenerated |
| 3067 |
} |
| 3068 |
if postIndex > l { |
| 3069 |
return io.ErrUnexpectedEOF |
| 3070 |
} |
| 3071 |
m.NonResourceURLs = append(m.NonResourceURLs, string(dAtA[iNdEx:postIndex])) |
| 3072 |
iNdEx = postIndex |
| 3073 |
case 8: |
| 3074 |
if wireType != 2 { |
| 3075 |
return fmt.Errorf("proto: wrong wireType = %d for field OmitStages", wireType) |
| 3076 |
} |
| 3077 |
var stringLen uint64 |
| 3078 |
for shift := uint(0); ; shift += 7 { |
| 3079 |
if shift >= 64 { |
| 3080 |
return ErrIntOverflowGenerated |
| 3081 |
} |
| 3082 |
if iNdEx >= l { |
| 3083 |
return io.ErrUnexpectedEOF |
| 3084 |
} |
| 3085 |
b := dAtA[iNdEx] |
| 3086 |
iNdEx++ |
| 3087 |
stringLen |= uint64(b&0x7F) << shift |
| 3088 |
if b < 0x80 { |
| 3089 |
break |
| 3090 |
} |
| 3091 |
} |
| 3092 |
intStringLen := int(stringLen) |
| 3093 |
if intStringLen < 0 { |
| 3094 |
return ErrInvalidLengthGenerated |
| 3095 |
} |
| 3096 |
postIndex := iNdEx + intStringLen |
| 3097 |
if postIndex < 0 { |
| 3098 |
return ErrInvalidLengthGenerated |
| 3099 |
} |
| 3100 |
if postIndex > l { |
| 3101 |
return io.ErrUnexpectedEOF |
| 3102 |
} |
| 3103 |
m.OmitStages = append(m.OmitStages, Stage(dAtA[iNdEx:postIndex])) |
| 3104 |
iNdEx = postIndex |
| 3105 |
case 9: |
| 3106 |
if wireType != 0 { |
| 3107 |
return fmt.Errorf("proto: wrong wireType = %d for field OmitManagedFields", wireType) |
| 3108 |
} |
| 3109 |
var v int |
| 3110 |
for shift := uint(0); ; shift += 7 { |
| 3111 |
if shift >= 64 { |
| 3112 |
return ErrIntOverflowGenerated |
| 3113 |
} |
| 3114 |
if iNdEx >= l { |
| 3115 |
return io.ErrUnexpectedEOF |
| 3116 |
} |
| 3117 |
b := dAtA[iNdEx] |
| 3118 |
iNdEx++ |
| 3119 |
v |= int(b&0x7F) << shift |
| 3120 |
if b < 0x80 { |
| 3121 |
break |
| 3122 |
} |
| 3123 |
} |
| 3124 |
b := bool(v != 0) |
| 3125 |
m.OmitManagedFields = &b |
| 3126 |
default: |
| 3127 |
iNdEx = preIndex |
| 3128 |
skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 3129 |
if err != nil { |
| 3130 |
return err |
| 3131 |
} |
| 3132 |
if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 3133 |
return ErrInvalidLengthGenerated |
| 3134 |
} |
| 3135 |
if (iNdEx + skippy) > l { |
| 3136 |
return io.ErrUnexpectedEOF |
| 3137 |
} |
| 3138 |
iNdEx += skippy |
| 3139 |
} |
| 3140 |
} |
| 3141 |
|
| 3142 |
if iNdEx > l { |
| 3143 |
return io.ErrUnexpectedEOF |
| 3144 |
} |
| 3145 |
return nil |
| 3146 |
} |
| 3147 |
func skipGenerated(dAtA []byte) (n int, err error) { |
| 3148 |
l := len(dAtA) |
| 3149 |
iNdEx := 0 |
| 3150 |
depth := 0 |
| 3151 |
for iNdEx < l { |
| 3152 |
var wire uint64 |
| 3153 |
for shift := uint(0); ; shift += 7 { |
| 3154 |
if shift >= 64 { |
| 3155 |
return 0, ErrIntOverflowGenerated |
| 3156 |
} |
| 3157 |
if iNdEx >= l { |
| 3158 |
return 0, io.ErrUnexpectedEOF |
| 3159 |
} |
| 3160 |
b := dAtA[iNdEx] |
| 3161 |
iNdEx++ |
| 3162 |
wire |= (uint64(b) & 0x7F) << shift |
| 3163 |
if b < 0x80 { |
| 3164 |
break |
| 3165 |
} |
| 3166 |
} |
| 3167 |
wireType := int(wire & 0x7) |
| 3168 |
switch wireType { |
| 3169 |
case 0: |
| 3170 |
for shift := uint(0); ; shift += 7 { |
| 3171 |
if shift >= 64 { |
| 3172 |
return 0, ErrIntOverflowGenerated |
| 3173 |
} |
| 3174 |
if iNdEx >= l { |
| 3175 |
return 0, io.ErrUnexpectedEOF |
| 3176 |
} |
| 3177 |
iNdEx++ |
| 3178 |
if dAtA[iNdEx-1] < 0x80 { |
| 3179 |
break |
| 3180 |
} |
| 3181 |
} |
| 3182 |
case 1: |
| 3183 |
iNdEx += 8 |
| 3184 |
case 2: |
| 3185 |
var length int |
| 3186 |
for shift := uint(0); ; shift += 7 { |
| 3187 |
if shift >= 64 { |
| 3188 |
return 0, ErrIntOverflowGenerated |
| 3189 |
} |
| 3190 |
if iNdEx >= l { |
| 3191 |
return 0, io.ErrUnexpectedEOF |
| 3192 |
} |
| 3193 |
b := dAtA[iNdEx] |
| 3194 |
iNdEx++ |
| 3195 |
length |= (int(b) & 0x7F) << shift |
| 3196 |
if b < 0x80 { |
| 3197 |
break |
| 3198 |
} |
| 3199 |
} |
| 3200 |
if length < 0 { |
| 3201 |
return 0, ErrInvalidLengthGenerated |
| 3202 |
} |
| 3203 |
iNdEx += length |
| 3204 |
case 3: |
| 3205 |
depth++ |
| 3206 |
case 4: |
| 3207 |
if depth == 0 { |
| 3208 |
return 0, ErrUnexpectedEndOfGroupGenerated |
| 3209 |
} |
| 3210 |
depth-- |
| 3211 |
case 5: |
| 3212 |
iNdEx += 4 |
| 3213 |
default: |
| 3214 |
return 0, fmt.Errorf("proto: illegal wireType %d", wireType) |
| 3215 |
} |
| 3216 |
if iNdEx < 0 { |
| 3217 |
return 0, ErrInvalidLengthGenerated |
| 3218 |
} |
| 3219 |
if depth == 0 { |
| 3220 |
return iNdEx, nil |
| 3221 |
} |
| 3222 |
} |
| 3223 |
return 0, io.ErrUnexpectedEOF |
| 3224 |
} |
| 3225 |
|
| 3226 |
var ( |
| 3227 |
ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") |
| 3228 |
ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") |
| 3229 |
ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") |
| 3230 |
) |