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