github.com/argoproj/argo-cd/v3@v3.2.1/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/v3/pkg/apis/application/v1alpha1" 14 apiclient "github.com/argoproj/argo-cd/v3/reposerver/apiclient" 15 proto "github.com/gogo/protobuf/proto" 16 _ "google.golang.org/genproto/googleapis/api/annotations" 17 grpc "google.golang.org/grpc" 18 codes "google.golang.org/grpc/codes" 19 status "google.golang.org/grpc/status" 20 io "io" 21 math "math" 22 math_bits "math/bits" 23 ) 24 25 // Reference imports to suppress errors if they are not otherwise used. 26 var _ = proto.Marshal 27 var _ = fmt.Errorf 28 var _ = math.Inf 29 30 // This is a compile-time assertion to ensure that this generated file 31 // is compatible with the proto package it is being compiled against. 32 // A compilation error at this line likely means your copy of the 33 // proto package needs to be updated. 34 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 35 36 // RepoAppsQuery is a query for Repository apps 37 type RepoAppsQuery struct { 38 Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` 39 Revision string `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` 40 AppName string `protobuf:"bytes,3,opt,name=appName,proto3" json:"appName,omitempty"` 41 AppProject string `protobuf:"bytes,4,opt,name=appProject,proto3" json:"appProject,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 func (m *RepoAppsQuery) GetAppName() string { 95 if m != nil { 96 return m.AppName 97 } 98 return "" 99 } 100 101 func (m *RepoAppsQuery) GetAppProject() string { 102 if m != nil { 103 return m.AppProject 104 } 105 return "" 106 } 107 108 // AppInfo contains application type and app file path 109 type AppInfo struct { 110 Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` 111 Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` 112 XXX_NoUnkeyedLiteral struct{} `json:"-"` 113 XXX_unrecognized []byte `json:"-"` 114 XXX_sizecache int32 `json:"-"` 115 } 116 117 func (m *AppInfo) Reset() { *m = AppInfo{} } 118 func (m *AppInfo) String() string { return proto.CompactTextString(m) } 119 func (*AppInfo) ProtoMessage() {} 120 func (*AppInfo) Descriptor() ([]byte, []int) { 121 return fileDescriptor_8d38260443475705, []int{1} 122 } 123 func (m *AppInfo) XXX_Unmarshal(b []byte) error { 124 return m.Unmarshal(b) 125 } 126 func (m *AppInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 127 if deterministic { 128 return xxx_messageInfo_AppInfo.Marshal(b, m, deterministic) 129 } else { 130 b = b[:cap(b)] 131 n, err := m.MarshalToSizedBuffer(b) 132 if err != nil { 133 return nil, err 134 } 135 return b[:n], nil 136 } 137 } 138 func (m *AppInfo) XXX_Merge(src proto.Message) { 139 xxx_messageInfo_AppInfo.Merge(m, src) 140 } 141 func (m *AppInfo) XXX_Size() int { 142 return m.Size() 143 } 144 func (m *AppInfo) XXX_DiscardUnknown() { 145 xxx_messageInfo_AppInfo.DiscardUnknown(m) 146 } 147 148 var xxx_messageInfo_AppInfo proto.InternalMessageInfo 149 150 func (m *AppInfo) GetType() string { 151 if m != nil { 152 return m.Type 153 } 154 return "" 155 } 156 157 func (m *AppInfo) GetPath() string { 158 if m != nil { 159 return m.Path 160 } 161 return "" 162 } 163 164 // RepoAppDetailsQuery contains query information for app details request 165 type RepoAppDetailsQuery struct { 166 Source *v1alpha1.ApplicationSource `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` 167 AppName string `protobuf:"bytes,2,opt,name=appName,proto3" json:"appName,omitempty"` 168 AppProject string `protobuf:"bytes,3,opt,name=appProject,proto3" json:"appProject,omitempty"` 169 // source index (for multi source apps) 170 SourceIndex int32 `protobuf:"varint,4,opt,name=sourceIndex,proto3" json:"sourceIndex,omitempty"` 171 // versionId from historical data (for multi source apps) 172 VersionId int32 `protobuf:"varint,5,opt,name=versionId,proto3" json:"versionId,omitempty"` 173 XXX_NoUnkeyedLiteral struct{} `json:"-"` 174 XXX_unrecognized []byte `json:"-"` 175 XXX_sizecache int32 `json:"-"` 176 } 177 178 func (m *RepoAppDetailsQuery) Reset() { *m = RepoAppDetailsQuery{} } 179 func (m *RepoAppDetailsQuery) String() string { return proto.CompactTextString(m) } 180 func (*RepoAppDetailsQuery) ProtoMessage() {} 181 func (*RepoAppDetailsQuery) Descriptor() ([]byte, []int) { 182 return fileDescriptor_8d38260443475705, []int{2} 183 } 184 func (m *RepoAppDetailsQuery) XXX_Unmarshal(b []byte) error { 185 return m.Unmarshal(b) 186 } 187 func (m *RepoAppDetailsQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 188 if deterministic { 189 return xxx_messageInfo_RepoAppDetailsQuery.Marshal(b, m, deterministic) 190 } else { 191 b = b[:cap(b)] 192 n, err := m.MarshalToSizedBuffer(b) 193 if err != nil { 194 return nil, err 195 } 196 return b[:n], nil 197 } 198 } 199 func (m *RepoAppDetailsQuery) XXX_Merge(src proto.Message) { 200 xxx_messageInfo_RepoAppDetailsQuery.Merge(m, src) 201 } 202 func (m *RepoAppDetailsQuery) XXX_Size() int { 203 return m.Size() 204 } 205 func (m *RepoAppDetailsQuery) XXX_DiscardUnknown() { 206 xxx_messageInfo_RepoAppDetailsQuery.DiscardUnknown(m) 207 } 208 209 var xxx_messageInfo_RepoAppDetailsQuery proto.InternalMessageInfo 210 211 func (m *RepoAppDetailsQuery) GetSource() *v1alpha1.ApplicationSource { 212 if m != nil { 213 return m.Source 214 } 215 return nil 216 } 217 218 func (m *RepoAppDetailsQuery) GetAppName() string { 219 if m != nil { 220 return m.AppName 221 } 222 return "" 223 } 224 225 func (m *RepoAppDetailsQuery) GetAppProject() string { 226 if m != nil { 227 return m.AppProject 228 } 229 return "" 230 } 231 232 func (m *RepoAppDetailsQuery) GetSourceIndex() int32 { 233 if m != nil { 234 return m.SourceIndex 235 } 236 return 0 237 } 238 239 func (m *RepoAppDetailsQuery) GetVersionId() int32 { 240 if m != nil { 241 return m.VersionId 242 } 243 return 0 244 } 245 246 // RepoAppsResponse contains applications of specified repository 247 type RepoAppsResponse struct { 248 Items []*AppInfo `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` 249 XXX_NoUnkeyedLiteral struct{} `json:"-"` 250 XXX_unrecognized []byte `json:"-"` 251 XXX_sizecache int32 `json:"-"` 252 } 253 254 func (m *RepoAppsResponse) Reset() { *m = RepoAppsResponse{} } 255 func (m *RepoAppsResponse) String() string { return proto.CompactTextString(m) } 256 func (*RepoAppsResponse) ProtoMessage() {} 257 func (*RepoAppsResponse) Descriptor() ([]byte, []int) { 258 return fileDescriptor_8d38260443475705, []int{3} 259 } 260 func (m *RepoAppsResponse) XXX_Unmarshal(b []byte) error { 261 return m.Unmarshal(b) 262 } 263 func (m *RepoAppsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 264 if deterministic { 265 return xxx_messageInfo_RepoAppsResponse.Marshal(b, m, deterministic) 266 } else { 267 b = b[:cap(b)] 268 n, err := m.MarshalToSizedBuffer(b) 269 if err != nil { 270 return nil, err 271 } 272 return b[:n], nil 273 } 274 } 275 func (m *RepoAppsResponse) XXX_Merge(src proto.Message) { 276 xxx_messageInfo_RepoAppsResponse.Merge(m, src) 277 } 278 func (m *RepoAppsResponse) XXX_Size() int { 279 return m.Size() 280 } 281 func (m *RepoAppsResponse) XXX_DiscardUnknown() { 282 xxx_messageInfo_RepoAppsResponse.DiscardUnknown(m) 283 } 284 285 var xxx_messageInfo_RepoAppsResponse proto.InternalMessageInfo 286 287 func (m *RepoAppsResponse) GetItems() []*AppInfo { 288 if m != nil { 289 return m.Items 290 } 291 return nil 292 } 293 294 // RepoQuery is a query for Repository resources 295 type RepoQuery struct { 296 // Repo URL for query 297 Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` 298 // Whether to force a cache refresh on repo's connection state 299 ForceRefresh bool `protobuf:"varint,2,opt,name=forceRefresh,proto3" json:"forceRefresh,omitempty"` 300 // App project for query 301 AppProject string `protobuf:"bytes,3,opt,name=appProject,proto3" json:"appProject,omitempty"` 302 XXX_NoUnkeyedLiteral struct{} `json:"-"` 303 XXX_unrecognized []byte `json:"-"` 304 XXX_sizecache int32 `json:"-"` 305 } 306 307 func (m *RepoQuery) Reset() { *m = RepoQuery{} } 308 func (m *RepoQuery) String() string { return proto.CompactTextString(m) } 309 func (*RepoQuery) ProtoMessage() {} 310 func (*RepoQuery) Descriptor() ([]byte, []int) { 311 return fileDescriptor_8d38260443475705, []int{4} 312 } 313 func (m *RepoQuery) XXX_Unmarshal(b []byte) error { 314 return m.Unmarshal(b) 315 } 316 func (m *RepoQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 317 if deterministic { 318 return xxx_messageInfo_RepoQuery.Marshal(b, m, deterministic) 319 } else { 320 b = b[:cap(b)] 321 n, err := m.MarshalToSizedBuffer(b) 322 if err != nil { 323 return nil, err 324 } 325 return b[:n], nil 326 } 327 } 328 func (m *RepoQuery) XXX_Merge(src proto.Message) { 329 xxx_messageInfo_RepoQuery.Merge(m, src) 330 } 331 func (m *RepoQuery) XXX_Size() int { 332 return m.Size() 333 } 334 func (m *RepoQuery) XXX_DiscardUnknown() { 335 xxx_messageInfo_RepoQuery.DiscardUnknown(m) 336 } 337 338 var xxx_messageInfo_RepoQuery proto.InternalMessageInfo 339 340 func (m *RepoQuery) GetRepo() string { 341 if m != nil { 342 return m.Repo 343 } 344 return "" 345 } 346 347 func (m *RepoQuery) GetForceRefresh() bool { 348 if m != nil { 349 return m.ForceRefresh 350 } 351 return false 352 } 353 354 func (m *RepoQuery) GetAppProject() string { 355 if m != nil { 356 return m.AppProject 357 } 358 return "" 359 } 360 361 // RepoAccessQuery is a query for checking access to a repo 362 type RepoAccessQuery struct { 363 // The URL to the repo 364 Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` 365 // Username for accessing repo 366 Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` 367 // Password for accessing repo 368 Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` 369 // Private key data for accessing SSH repository 370 SshPrivateKey string `protobuf:"bytes,4,opt,name=sshPrivateKey,proto3" json:"sshPrivateKey,omitempty"` 371 // Whether to skip certificate or host key validation 372 Insecure bool `protobuf:"varint,5,opt,name=insecure,proto3" json:"insecure,omitempty"` 373 // TLS client cert data for accessing HTTPS repository 374 TlsClientCertData string `protobuf:"bytes,6,opt,name=tlsClientCertData,proto3" json:"tlsClientCertData,omitempty"` 375 // TLS client cert key for accessing HTTPS repository 376 TlsClientCertKey string `protobuf:"bytes,7,opt,name=tlsClientCertKey,proto3" json:"tlsClientCertKey,omitempty"` 377 // The type of the repo 378 Type string `protobuf:"bytes,9,opt,name=type,proto3" json:"type,omitempty"` 379 // The name of the repo 380 Name string `protobuf:"bytes,10,opt,name=name,proto3" json:"name,omitempty"` 381 // Whether helm-oci support should be enabled for this repo 382 EnableOci bool `protobuf:"varint,11,opt,name=enableOci,proto3" json:"enableOci,omitempty"` 383 // Github App Private Key PEM data 384 GithubAppPrivateKey string `protobuf:"bytes,12,opt,name=githubAppPrivateKey,proto3" json:"githubAppPrivateKey,omitempty"` 385 // Github App ID of the app used to access the repo 386 GithubAppID int64 `protobuf:"varint,13,opt,name=githubAppID,proto3" json:"githubAppID,omitempty"` 387 // Github App Installation ID of the installed GitHub App 388 GithubAppInstallationID int64 `protobuf:"varint,14,opt,name=githubAppInstallationID,proto3" json:"githubAppInstallationID,omitempty"` 389 // Github App Enterprise base url if empty will default to https://api.github.com 390 GithubAppEnterpriseBaseUrl string `protobuf:"bytes,15,opt,name=githubAppEnterpriseBaseUrl,proto3" json:"githubAppEnterpriseBaseUrl,omitempty"` 391 // HTTP/HTTPS proxy to access the repository 392 Proxy string `protobuf:"bytes,16,opt,name=proxy,proto3" json:"proxy,omitempty"` 393 // Reference between project and repository that allow you automatically to be added as item inside SourceRepos project entity 394 Project string `protobuf:"bytes,17,opt,name=project,proto3" json:"project,omitempty"` 395 // Google Cloud Platform service account key 396 GcpServiceAccountKey string `protobuf:"bytes,18,opt,name=gcpServiceAccountKey,proto3" json:"gcpServiceAccountKey,omitempty"` 397 // Whether to force HTTP basic auth 398 ForceHttpBasicAuth bool `protobuf:"varint,19,opt,name=forceHttpBasicAuth,proto3" json:"forceHttpBasicAuth,omitempty"` 399 // Whether to use azure workload identity for authentication 400 UseAzureWorkloadIdentity bool `protobuf:"varint,20,opt,name=useAzureWorkloadIdentity,proto3" json:"useAzureWorkloadIdentity,omitempty"` 401 // BearerToken contains the bearer token used for Git auth at the repo server 402 BearerToken string `protobuf:"bytes,21,opt,name=bearerToken,proto3" json:"bearerToken,omitempty"` 403 // Whether https should be disabled for an OCI repo 404 InsecureOciForceHttp bool `protobuf:"varint,22,opt,name=insecureOciForceHttp,proto3" json:"insecureOciForceHttp,omitempty"` 405 XXX_NoUnkeyedLiteral struct{} `json:"-"` 406 XXX_unrecognized []byte `json:"-"` 407 XXX_sizecache int32 `json:"-"` 408 } 409 410 func (m *RepoAccessQuery) Reset() { *m = RepoAccessQuery{} } 411 func (m *RepoAccessQuery) String() string { return proto.CompactTextString(m) } 412 func (*RepoAccessQuery) ProtoMessage() {} 413 func (*RepoAccessQuery) Descriptor() ([]byte, []int) { 414 return fileDescriptor_8d38260443475705, []int{5} 415 } 416 func (m *RepoAccessQuery) XXX_Unmarshal(b []byte) error { 417 return m.Unmarshal(b) 418 } 419 func (m *RepoAccessQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 420 if deterministic { 421 return xxx_messageInfo_RepoAccessQuery.Marshal(b, m, deterministic) 422 } else { 423 b = b[:cap(b)] 424 n, err := m.MarshalToSizedBuffer(b) 425 if err != nil { 426 return nil, err 427 } 428 return b[:n], nil 429 } 430 } 431 func (m *RepoAccessQuery) XXX_Merge(src proto.Message) { 432 xxx_messageInfo_RepoAccessQuery.Merge(m, src) 433 } 434 func (m *RepoAccessQuery) XXX_Size() int { 435 return m.Size() 436 } 437 func (m *RepoAccessQuery) XXX_DiscardUnknown() { 438 xxx_messageInfo_RepoAccessQuery.DiscardUnknown(m) 439 } 440 441 var xxx_messageInfo_RepoAccessQuery proto.InternalMessageInfo 442 443 func (m *RepoAccessQuery) GetRepo() string { 444 if m != nil { 445 return m.Repo 446 } 447 return "" 448 } 449 450 func (m *RepoAccessQuery) GetUsername() string { 451 if m != nil { 452 return m.Username 453 } 454 return "" 455 } 456 457 func (m *RepoAccessQuery) GetPassword() string { 458 if m != nil { 459 return m.Password 460 } 461 return "" 462 } 463 464 func (m *RepoAccessQuery) GetSshPrivateKey() string { 465 if m != nil { 466 return m.SshPrivateKey 467 } 468 return "" 469 } 470 471 func (m *RepoAccessQuery) GetInsecure() bool { 472 if m != nil { 473 return m.Insecure 474 } 475 return false 476 } 477 478 func (m *RepoAccessQuery) GetTlsClientCertData() string { 479 if m != nil { 480 return m.TlsClientCertData 481 } 482 return "" 483 } 484 485 func (m *RepoAccessQuery) GetTlsClientCertKey() string { 486 if m != nil { 487 return m.TlsClientCertKey 488 } 489 return "" 490 } 491 492 func (m *RepoAccessQuery) GetType() string { 493 if m != nil { 494 return m.Type 495 } 496 return "" 497 } 498 499 func (m *RepoAccessQuery) GetName() string { 500 if m != nil { 501 return m.Name 502 } 503 return "" 504 } 505 506 func (m *RepoAccessQuery) GetEnableOci() bool { 507 if m != nil { 508 return m.EnableOci 509 } 510 return false 511 } 512 513 func (m *RepoAccessQuery) GetGithubAppPrivateKey() string { 514 if m != nil { 515 return m.GithubAppPrivateKey 516 } 517 return "" 518 } 519 520 func (m *RepoAccessQuery) GetGithubAppID() int64 { 521 if m != nil { 522 return m.GithubAppID 523 } 524 return 0 525 } 526 527 func (m *RepoAccessQuery) GetGithubAppInstallationID() int64 { 528 if m != nil { 529 return m.GithubAppInstallationID 530 } 531 return 0 532 } 533 534 func (m *RepoAccessQuery) GetGithubAppEnterpriseBaseUrl() string { 535 if m != nil { 536 return m.GithubAppEnterpriseBaseUrl 537 } 538 return "" 539 } 540 541 func (m *RepoAccessQuery) GetProxy() string { 542 if m != nil { 543 return m.Proxy 544 } 545 return "" 546 } 547 548 func (m *RepoAccessQuery) GetProject() string { 549 if m != nil { 550 return m.Project 551 } 552 return "" 553 } 554 555 func (m *RepoAccessQuery) GetGcpServiceAccountKey() string { 556 if m != nil { 557 return m.GcpServiceAccountKey 558 } 559 return "" 560 } 561 562 func (m *RepoAccessQuery) GetForceHttpBasicAuth() bool { 563 if m != nil { 564 return m.ForceHttpBasicAuth 565 } 566 return false 567 } 568 569 func (m *RepoAccessQuery) GetUseAzureWorkloadIdentity() bool { 570 if m != nil { 571 return m.UseAzureWorkloadIdentity 572 } 573 return false 574 } 575 576 func (m *RepoAccessQuery) GetBearerToken() string { 577 if m != nil { 578 return m.BearerToken 579 } 580 return "" 581 } 582 583 func (m *RepoAccessQuery) GetInsecureOciForceHttp() bool { 584 if m != nil { 585 return m.InsecureOciForceHttp 586 } 587 return false 588 } 589 590 type RepoResponse struct { 591 XXX_NoUnkeyedLiteral struct{} `json:"-"` 592 XXX_unrecognized []byte `json:"-"` 593 XXX_sizecache int32 `json:"-"` 594 } 595 596 func (m *RepoResponse) Reset() { *m = RepoResponse{} } 597 func (m *RepoResponse) String() string { return proto.CompactTextString(m) } 598 func (*RepoResponse) ProtoMessage() {} 599 func (*RepoResponse) Descriptor() ([]byte, []int) { 600 return fileDescriptor_8d38260443475705, []int{6} 601 } 602 func (m *RepoResponse) XXX_Unmarshal(b []byte) error { 603 return m.Unmarshal(b) 604 } 605 func (m *RepoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 606 if deterministic { 607 return xxx_messageInfo_RepoResponse.Marshal(b, m, deterministic) 608 } else { 609 b = b[:cap(b)] 610 n, err := m.MarshalToSizedBuffer(b) 611 if err != nil { 612 return nil, err 613 } 614 return b[:n], nil 615 } 616 } 617 func (m *RepoResponse) XXX_Merge(src proto.Message) { 618 xxx_messageInfo_RepoResponse.Merge(m, src) 619 } 620 func (m *RepoResponse) XXX_Size() int { 621 return m.Size() 622 } 623 func (m *RepoResponse) XXX_DiscardUnknown() { 624 xxx_messageInfo_RepoResponse.DiscardUnknown(m) 625 } 626 627 var xxx_messageInfo_RepoResponse proto.InternalMessageInfo 628 629 // RepoCreateRequest is a request for creating repository config 630 type RepoCreateRequest struct { 631 // Repository definition 632 Repo *v1alpha1.Repository `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` 633 // Whether to create in upsert mode 634 Upsert bool `protobuf:"varint,2,opt,name=upsert,proto3" json:"upsert,omitempty"` 635 // Whether to operate on credential set instead of repository 636 CredsOnly bool `protobuf:"varint,3,opt,name=credsOnly,proto3" json:"credsOnly,omitempty"` 637 XXX_NoUnkeyedLiteral struct{} `json:"-"` 638 XXX_unrecognized []byte `json:"-"` 639 XXX_sizecache int32 `json:"-"` 640 } 641 642 func (m *RepoCreateRequest) Reset() { *m = RepoCreateRequest{} } 643 func (m *RepoCreateRequest) String() string { return proto.CompactTextString(m) } 644 func (*RepoCreateRequest) ProtoMessage() {} 645 func (*RepoCreateRequest) Descriptor() ([]byte, []int) { 646 return fileDescriptor_8d38260443475705, []int{7} 647 } 648 func (m *RepoCreateRequest) XXX_Unmarshal(b []byte) error { 649 return m.Unmarshal(b) 650 } 651 func (m *RepoCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 652 if deterministic { 653 return xxx_messageInfo_RepoCreateRequest.Marshal(b, m, deterministic) 654 } else { 655 b = b[:cap(b)] 656 n, err := m.MarshalToSizedBuffer(b) 657 if err != nil { 658 return nil, err 659 } 660 return b[:n], nil 661 } 662 } 663 func (m *RepoCreateRequest) XXX_Merge(src proto.Message) { 664 xxx_messageInfo_RepoCreateRequest.Merge(m, src) 665 } 666 func (m *RepoCreateRequest) XXX_Size() int { 667 return m.Size() 668 } 669 func (m *RepoCreateRequest) XXX_DiscardUnknown() { 670 xxx_messageInfo_RepoCreateRequest.DiscardUnknown(m) 671 } 672 673 var xxx_messageInfo_RepoCreateRequest proto.InternalMessageInfo 674 675 func (m *RepoCreateRequest) GetRepo() *v1alpha1.Repository { 676 if m != nil { 677 return m.Repo 678 } 679 return nil 680 } 681 682 func (m *RepoCreateRequest) GetUpsert() bool { 683 if m != nil { 684 return m.Upsert 685 } 686 return false 687 } 688 689 func (m *RepoCreateRequest) GetCredsOnly() bool { 690 if m != nil { 691 return m.CredsOnly 692 } 693 return false 694 } 695 696 type RepoUpdateRequest struct { 697 Repo *v1alpha1.Repository `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` 698 XXX_NoUnkeyedLiteral struct{} `json:"-"` 699 XXX_unrecognized []byte `json:"-"` 700 XXX_sizecache int32 `json:"-"` 701 } 702 703 func (m *RepoUpdateRequest) Reset() { *m = RepoUpdateRequest{} } 704 func (m *RepoUpdateRequest) String() string { return proto.CompactTextString(m) } 705 func (*RepoUpdateRequest) ProtoMessage() {} 706 func (*RepoUpdateRequest) Descriptor() ([]byte, []int) { 707 return fileDescriptor_8d38260443475705, []int{8} 708 } 709 func (m *RepoUpdateRequest) XXX_Unmarshal(b []byte) error { 710 return m.Unmarshal(b) 711 } 712 func (m *RepoUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 713 if deterministic { 714 return xxx_messageInfo_RepoUpdateRequest.Marshal(b, m, deterministic) 715 } else { 716 b = b[:cap(b)] 717 n, err := m.MarshalToSizedBuffer(b) 718 if err != nil { 719 return nil, err 720 } 721 return b[:n], nil 722 } 723 } 724 func (m *RepoUpdateRequest) XXX_Merge(src proto.Message) { 725 xxx_messageInfo_RepoUpdateRequest.Merge(m, src) 726 } 727 func (m *RepoUpdateRequest) XXX_Size() int { 728 return m.Size() 729 } 730 func (m *RepoUpdateRequest) XXX_DiscardUnknown() { 731 xxx_messageInfo_RepoUpdateRequest.DiscardUnknown(m) 732 } 733 734 var xxx_messageInfo_RepoUpdateRequest proto.InternalMessageInfo 735 736 func (m *RepoUpdateRequest) GetRepo() *v1alpha1.Repository { 737 if m != nil { 738 return m.Repo 739 } 740 return nil 741 } 742 743 func init() { 744 proto.RegisterType((*RepoAppsQuery)(nil), "repository.RepoAppsQuery") 745 proto.RegisterType((*AppInfo)(nil), "repository.AppInfo") 746 proto.RegisterType((*RepoAppDetailsQuery)(nil), "repository.RepoAppDetailsQuery") 747 proto.RegisterType((*RepoAppsResponse)(nil), "repository.RepoAppsResponse") 748 proto.RegisterType((*RepoQuery)(nil), "repository.RepoQuery") 749 proto.RegisterType((*RepoAccessQuery)(nil), "repository.RepoAccessQuery") 750 proto.RegisterType((*RepoResponse)(nil), "repository.RepoResponse") 751 proto.RegisterType((*RepoCreateRequest)(nil), "repository.RepoCreateRequest") 752 proto.RegisterType((*RepoUpdateRequest)(nil), "repository.RepoUpdateRequest") 753 } 754 755 func init() { 756 proto.RegisterFile("server/repository/repository.proto", fileDescriptor_8d38260443475705) 757 } 758 759 var fileDescriptor_8d38260443475705 = []byte{ 760 // 1392 bytes of a gzipped FileDescriptorProto 761 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0xdf, 0x6e, 0x1b, 0xc5, 762 0x17, 0xd6, 0x26, 0x8d, 0x9b, 0x4c, 0x9a, 0xd6, 0x9d, 0x24, 0xed, 0xfe, 0xdc, 0x34, 0xcd, 0x6f, 763 0x5b, 0xa2, 0x34, 0x6a, 0xd7, 0x4d, 0x0a, 0xa2, 0x2a, 0x02, 0xc9, 0x4d, 0x4a, 0x6b, 0x11, 0x91, 764 0xb2, 0x6d, 0xa9, 0x84, 0x40, 0x68, 0xb2, 0x3e, 0xb1, 0xb7, 0xd9, 0xec, 0x4e, 0x67, 0xc6, 0x6e, 765 0x4d, 0xd5, 0x1b, 0x84, 0x10, 0x12, 0xdc, 0x20, 0x04, 0xe2, 0x0e, 0x2e, 0x90, 0x90, 0xe0, 0x12, 766 0x89, 0x67, 0xe0, 0x12, 0x89, 0x17, 0x40, 0x15, 0x0f, 0xc1, 0x25, 0x9a, 0x33, 0xeb, 0xf5, 0x3a, 767 0xf1, 0x9f, 0x44, 0x4d, 0x73, 0x37, 0x73, 0xce, 0xec, 0xf9, 0xbe, 0xf3, 0xcd, 0x99, 0x33, 0x63, 768 0x13, 0x47, 0x82, 0x68, 0x80, 0x28, 0x0a, 0xe0, 0xb1, 0x0c, 0x54, 0x2c, 0x9a, 0x99, 0xa1, 0xcb, 769 0x45, 0xac, 0x62, 0x4a, 0xda, 0x96, 0xc2, 0x4c, 0x35, 0x8e, 0xab, 0x21, 0x14, 0x19, 0x0f, 0x8a, 770 0x2c, 0x8a, 0x62, 0xc5, 0x54, 0x10, 0x47, 0xd2, 0xac, 0x2c, 0xac, 0x55, 0x03, 0x55, 0xab, 0x6f, 771 0xb8, 0x7e, 0xbc, 0x5d, 0x64, 0xa2, 0x1a, 0x73, 0x11, 0x3f, 0xc4, 0xc1, 0x65, 0xbf, 0x52, 0x6c, 772 0x5c, 0x2d, 0xf2, 0xad, 0xaa, 0xfe, 0x52, 0x16, 0x19, 0xe7, 0x61, 0xe0, 0xe3, 0xb7, 0xc5, 0xc6, 773 0x12, 0x0b, 0x79, 0x8d, 0x2d, 0x15, 0xab, 0x10, 0x81, 0x60, 0x0a, 0x2a, 0x49, 0xb4, 0x9b, 0x03, 774 0xa2, 0x21, 0xad, 0x81, 0xf4, 0x9d, 0x26, 0x99, 0xf0, 0x80, 0xc7, 0x25, 0xce, 0xe5, 0x7b, 0x75, 775 0x10, 0x4d, 0x4a, 0xc9, 0x11, 0xbd, 0xc8, 0xb6, 0xe6, 0xac, 0x85, 0x31, 0x0f, 0xc7, 0xb4, 0x40, 776 0x46, 0x05, 0x34, 0x02, 0x19, 0xc4, 0x91, 0x3d, 0x84, 0xf6, 0x74, 0x4e, 0x6d, 0x72, 0x94, 0x71, 777 0xfe, 0x2e, 0xdb, 0x06, 0x7b, 0x18, 0x5d, 0xad, 0x29, 0x9d, 0x25, 0x84, 0x71, 0x7e, 0x47, 0xc4, 778 0x0f, 0xc1, 0x57, 0xf6, 0x11, 0x74, 0x66, 0x2c, 0xce, 0x12, 0x39, 0x5a, 0xe2, 0xbc, 0x1c, 0x6d, 779 0xc6, 0x1a, 0x54, 0x35, 0x39, 0xb4, 0x40, 0xf5, 0x58, 0xdb, 0x38, 0x53, 0xb5, 0x04, 0x10, 0xc7, 780 0xce, 0xbf, 0x16, 0x99, 0x4c, 0xe8, 0xae, 0x82, 0x62, 0x41, 0x98, 0x90, 0xae, 0x92, 0x9c, 0x8c, 781 0xeb, 0xc2, 0x37, 0x11, 0xc6, 0x97, 0xd7, 0xdd, 0xb6, 0x3a, 0x6e, 0x4b, 0x1d, 0x1c, 0x7c, 0xec, 782 0x57, 0xdc, 0xc6, 0x55, 0x97, 0x6f, 0x55, 0x5d, 0xad, 0xb5, 0x9b, 0xd1, 0xda, 0x6d, 0x69, 0xed, 783 0x96, 0xda, 0xc6, 0xbb, 0x18, 0xd6, 0x4b, 0xc2, 0x67, 0xb3, 0x1d, 0xea, 0x97, 0xed, 0xf0, 0xce, 784 0x6c, 0xe9, 0x1c, 0x19, 0x37, 0x31, 0xca, 0x51, 0x05, 0x9e, 0xa0, 0x1c, 0x23, 0x5e, 0xd6, 0x44, 785 0x67, 0xc8, 0x58, 0x03, 0x84, 0x16, 0xb5, 0x5c, 0xb1, 0x47, 0xd0, 0xdf, 0x36, 0x38, 0x6f, 0x92, 786 0x7c, 0x6b, 0xa3, 0x3c, 0x90, 0x3c, 0x8e, 0x24, 0xd0, 0x8b, 0x64, 0x24, 0x50, 0xb0, 0x2d, 0x6d, 787 0x6b, 0x6e, 0x78, 0x61, 0x7c, 0x79, 0xd2, 0xcd, 0x6c, 0x6f, 0x22, 0xad, 0x67, 0x56, 0x38, 0x3e, 788 0x19, 0xd3, 0x9f, 0xf7, 0xde, 0x63, 0x87, 0x1c, 0xdb, 0x8c, 0x75, 0xaa, 0xb0, 0x29, 0x40, 0x1a, 789 0xd9, 0x47, 0xbd, 0x0e, 0xdb, 0xa0, 0x1c, 0x9d, 0xdf, 0x72, 0xe4, 0x04, 0x92, 0xf4, 0x7d, 0x90, 790 0xfd, 0xeb, 0xa9, 0x2e, 0x41, 0x44, 0x6d, 0x19, 0xd3, 0xb9, 0xf6, 0x71, 0x26, 0xe5, 0xe3, 0x58, 791 0x54, 0x12, 0x84, 0x74, 0x4e, 0x2f, 0x90, 0x09, 0x29, 0x6b, 0x77, 0x44, 0xd0, 0x60, 0x0a, 0xde, 792 0x81, 0x66, 0x52, 0x54, 0x9d, 0x46, 0x1d, 0x21, 0x88, 0x24, 0xf8, 0x75, 0x01, 0x28, 0xe3, 0xa8, 793 0x97, 0xce, 0xe9, 0x25, 0x72, 0x52, 0x85, 0x72, 0x25, 0x0c, 0x20, 0x52, 0x2b, 0x20, 0xd4, 0x2a, 794 0x53, 0xcc, 0xce, 0x61, 0x94, 0xdd, 0x0e, 0xba, 0x48, 0xf2, 0x1d, 0x46, 0x0d, 0x79, 0x14, 0x17, 795 0xef, 0xb2, 0xa7, 0x25, 0x3c, 0xd6, 0x59, 0xc2, 0x98, 0x23, 0x31, 0x36, 0xcc, 0x6f, 0x86, 0x8c, 796 0x41, 0xc4, 0x36, 0x42, 0x58, 0xf7, 0x03, 0x7b, 0x1c, 0xe9, 0xb5, 0x0d, 0xf4, 0x0a, 0x99, 0x34, 797 0x95, 0x5b, 0xd2, 0xaa, 0xa6, 0x79, 0x1e, 0xc3, 0x00, 0xdd, 0x5c, 0xba, 0xae, 0x52, 0x73, 0x79, 798 0xd5, 0x9e, 0x98, 0xb3, 0x16, 0x86, 0xbd, 0xac, 0x89, 0x5e, 0x23, 0xa7, 0xdb, 0xd3, 0x48, 0x2a, 799 0x16, 0x86, 0x58, 0xda, 0xe5, 0x55, 0xfb, 0x38, 0xae, 0xee, 0xe5, 0xa6, 0x6f, 0x91, 0x42, 0xea, 800 0xba, 0x19, 0x29, 0x10, 0x5c, 0x04, 0x12, 0x6e, 0x30, 0x09, 0xf7, 0x45, 0x68, 0x9f, 0x40, 0x52, 801 0x7d, 0x56, 0xd0, 0x29, 0x32, 0xc2, 0x45, 0xfc, 0xa4, 0x69, 0xe7, 0x71, 0xa9, 0x99, 0xe8, 0x33, 802 0xc4, 0x93, 0x12, 0x3a, 0x69, 0xce, 0x50, 0x32, 0xa5, 0xcb, 0x64, 0xaa, 0xea, 0xf3, 0xbb, 0x20, 803 0x1a, 0x81, 0x0f, 0x25, 0xdf, 0x8f, 0xeb, 0x11, 0x6a, 0x4e, 0x71, 0x59, 0x57, 0x1f, 0x75, 0x09, 804 0xc5, 0x1a, 0xbd, 0xad, 0x14, 0xbf, 0xc1, 0x64, 0xe0, 0x97, 0xea, 0xaa, 0x66, 0x4f, 0xa2, 0xb0, 805 0x5d, 0x3c, 0xf4, 0x3a, 0xb1, 0xeb, 0x12, 0x4a, 0x9f, 0xd4, 0x05, 0x3c, 0x88, 0xc5, 0x56, 0x18, 806 0xb3, 0x4a, 0xb9, 0x02, 0x91, 0x0a, 0x54, 0xd3, 0x9e, 0xc2, 0xaf, 0x7a, 0xfa, 0xb5, 0xd6, 0x1b, 807 0xc0, 0x04, 0x88, 0x7b, 0xf1, 0x16, 0x44, 0xf6, 0x34, 0xd2, 0xca, 0x9a, 0x74, 0x06, 0xad, 0x5a, 808 0x5b, 0xf7, 0x83, 0xb7, 0x5b, 0xf0, 0xf6, 0x29, 0x8c, 0xdc, 0xd5, 0xe7, 0x1c, 0x27, 0xc7, 0xf4, 809 0xa1, 0x69, 0x9d, 0x6a, 0xe7, 0x67, 0x8b, 0x9c, 0xd4, 0x86, 0x15, 0x01, 0x4c, 0x81, 0x07, 0x8f, 810 0xea, 0x20, 0x15, 0xfd, 0x30, 0x73, 0x8e, 0xc6, 0x97, 0x6f, 0xbf, 0x58, 0x83, 0xf3, 0xd2, 0x3e, 811 0x91, 0x9c, 0xc8, 0x53, 0x24, 0x57, 0xe7, 0x12, 0x84, 0x4a, 0xce, 0x7d, 0x32, 0xd3, 0xd5, 0xea, 812 0x0b, 0xa8, 0xc8, 0xf5, 0x28, 0x6c, 0xe2, 0x71, 0x1c, 0xf5, 0xda, 0x06, 0xe7, 0x91, 0x21, 0x7a, 813 0x9f, 0x57, 0x0e, 0x8b, 0xe8, 0xf2, 0x67, 0xa7, 0x0d, 0xa6, 0x31, 0x26, 0xe5, 0x40, 0xbf, 0xb2, 814 0xc8, 0x91, 0xb5, 0x40, 0x2a, 0x3a, 0x9d, 0x6d, 0x81, 0x69, 0xc3, 0x2b, 0xac, 0x1d, 0x14, 0x0b, 815 0x0d, 0xe2, 0x9c, 0xfb, 0xf4, 0xaf, 0x7f, 0xbe, 0x19, 0x3a, 0x45, 0xa7, 0xf0, 0xa2, 0x6f, 0x2c, 816 0xb5, 0x6f, 0xd5, 0x00, 0xe4, 0x17, 0x43, 0x16, 0xfd, 0xd2, 0x22, 0xc3, 0xb7, 0xa0, 0x27, 0x9b, 817 0x03, 0xd3, 0xc4, 0x39, 0x8f, 0x4c, 0xce, 0xd2, 0x33, 0xdd, 0x98, 0x14, 0x9f, 0xea, 0xd9, 0x33, 818 0xfa, 0x9d, 0x45, 0x46, 0x6f, 0x81, 0x7a, 0x20, 0x02, 0x05, 0x2f, 0x9f, 0xd2, 0x45, 0xa4, 0x74, 819 0x9e, 0xfe, 0xbf, 0x45, 0xe9, 0xb1, 0xc6, 0xbd, 0xdc, 0x8d, 0xd8, 0xb7, 0x16, 0xc9, 0x6b, 0x41, 820 0xbd, 0x8c, 0xef, 0x70, 0x76, 0x70, 0xa6, 0xdf, 0x0e, 0xd2, 0x1f, 0x2d, 0x32, 0xad, 0x97, 0xa1, 821 0x62, 0x87, 0x4f, 0xce, 0x41, 0x72, 0x33, 0xb4, 0xd0, 0x5b, 0x41, 0xfa, 0x11, 0x19, 0x35, 0xca, 822 0x6d, 0xf6, 0x24, 0x95, 0xef, 0x34, 0x6f, 0x4a, 0x67, 0x01, 0x03, 0x3b, 0x74, 0xae, 0x4f, 0xb5, 823 0x14, 0x85, 0x0e, 0x59, 0x21, 0xe3, 0x3a, 0xfc, 0xfa, 0x4a, 0xf9, 0x1e, 0xab, 0xee, 0x03, 0xe1, 824 0x12, 0x22, 0xcc, 0xd3, 0x0b, 0xfd, 0x10, 0x62, 0x3f, 0xb8, 0xac, 0x74, 0xd8, 0x6d, 0x93, 0x84, 825 0x7e, 0xd2, 0xd0, 0xff, 0xed, 0x84, 0x48, 0x5f, 0xa4, 0x85, 0x99, 0x6e, 0xae, 0xb4, 0x5b, 0xee, 826 0x29, 0x29, 0xa6, 0x21, 0xbe, 0xb6, 0xc8, 0xc4, 0x2d, 0x50, 0xed, 0xb7, 0x23, 0x3d, 0xd7, 0x25, 827 0x72, 0xf6, 0x5d, 0x59, 0x70, 0x7a, 0x2f, 0x48, 0x09, 0xbc, 0x81, 0x04, 0x5e, 0x73, 0xae, 0x74, 828 0x27, 0x60, 0x5e, 0x78, 0x18, 0xe7, 0xbe, 0xb7, 0x86, 0x54, 0x2a, 0x26, 0xc2, 0x75, 0x6b, 0x91, 829 0x36, 0x90, 0xd2, 0x6d, 0x08, 0xb7, 0x57, 0x6a, 0x4c, 0xa8, 0x9e, 0x52, 0xcf, 0x66, 0xcd, 0xed, 830 0xe5, 0x29, 0x09, 0x17, 0x49, 0x2c, 0xd0, 0xf9, 0x7e, 0x2a, 0xd4, 0x20, 0xdc, 0xf6, 0x0d, 0xcc, 831 0xf7, 0x16, 0xc9, 0x99, 0xfb, 0x85, 0x9e, 0xdd, 0x89, 0xd8, 0x71, 0xef, 0x1c, 0x60, 0x67, 0x78, 832 0xc5, 0xd4, 0xb5, 0xd3, 0xf5, 0xd0, 0x5d, 0xc7, 0xf6, 0xae, 0x9b, 0xe7, 0x0f, 0x16, 0xc9, 0xb7, 833 0x28, 0xb4, 0xbe, 0x3d, 0x3c, 0x92, 0xce, 0x60, 0x92, 0xf4, 0x17, 0x8b, 0x4c, 0x1b, 0xfc, 0xce, 834 0x0e, 0x71, 0x88, 0x34, 0x93, 0xaa, 0x77, 0xfa, 0xf4, 0x88, 0x84, 0xec, 0x4f, 0x16, 0xc9, 0x99, 835 0x0b, 0x7a, 0x37, 0xbb, 0x8e, 0x8b, 0xfb, 0x00, 0xd9, 0x2d, 0x99, 0x6a, 0x2c, 0xf4, 0x39, 0x93, 836 0x48, 0xe5, 0x59, 0x7b, 0xd7, 0x7f, 0xb5, 0x48, 0xbe, 0x45, 0xa7, 0xb7, 0x9c, 0x2f, 0x8b, 0xb0, 837 0xbb, 0x3f, 0xc2, 0xf4, 0x77, 0x8b, 0x4c, 0x1b, 0x2e, 0x03, 0x2b, 0xe0, 0x65, 0x51, 0x7e, 0x15, 838 0x29, 0xbb, 0x85, 0xf9, 0x41, 0xf7, 0x6c, 0x07, 0x71, 0x46, 0x72, 0xab, 0x10, 0x42, 0xef, 0x87, 839 0x80, 0xbd, 0xd3, 0x9c, 0xb6, 0x98, 0x79, 0xf3, 0xd6, 0x58, 0xec, 0xf7, 0xd6, 0xd0, 0x3b, 0x59, 840 0x23, 0x79, 0x03, 0x91, 0x51, 0x65, 0xdf, 0x60, 0xe7, 0xf7, 0x00, 0x46, 0x25, 0x99, 0x36, 0x48, 841 0x3b, 0x37, 0x61, 0xdf, 0x70, 0xc9, 0xa3, 0x65, 0x71, 0x0f, 0x8f, 0x96, 0xa7, 0xe4, 0xf8, 0xfb, 842 0x2c, 0x0c, 0xf4, 0xa6, 0x9a, 0x9f, 0xb9, 0xf4, 0xcc, 0xae, 0x4b, 0xa2, 0xfd, 0xf3, 0xb7, 0x0f, 843 0xe6, 0x32, 0x62, 0x5e, 0x72, 0xfa, 0xde, 0x95, 0x8d, 0x04, 0x2a, 0xd9, 0xbe, 0xcf, 0x2d, 0x32, 844 0xd9, 0x42, 0xc7, 0xa4, 0x5f, 0x8c, 0xc2, 0x35, 0xa4, 0xb0, 0xec, 0x2c, 0x0e, 0x4c, 0x7b, 0x07, 845 0x91, 0x1b, 0x37, 0xff, 0x78, 0x3e, 0x6b, 0xfd, 0xf9, 0x7c, 0xd6, 0xfa, 0xfb, 0xf9, 0xac, 0xf5, 846 0xc1, 0xeb, 0x7b, 0xfb, 0x67, 0xcb, 0xc7, 0x1f, 0xcc, 0x99, 0xff, 0xa0, 0x36, 0x72, 0xf8, 0x27, 847 0xd4, 0xd5, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0xbc, 0x0b, 0xd2, 0x3f, 0x69, 0x13, 0x00, 0x00, 848 } 849 850 // Reference imports to suppress errors if they are not otherwise used. 851 var _ context.Context 852 var _ grpc.ClientConn 853 854 // This is a compile-time assertion to ensure that this generated file 855 // is compatible with the grpc package it is being compiled against. 856 const _ = grpc.SupportPackageIsVersion4 857 858 // RepositoryServiceClient is the client API for RepositoryService service. 859 // 860 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 861 type RepositoryServiceClient interface { 862 // List returns list of repos or repository credentials 863 List(ctx context.Context, in *RepoQuery, opts ...grpc.CallOption) (*v1alpha1.RepositoryList, error) 864 // Get returns a repository or its credentials 865 Get(ctx context.Context, in *RepoQuery, opts ...grpc.CallOption) (*v1alpha1.Repository, error) 866 // GetWrite returns a repository or its write credentials 867 GetWrite(ctx context.Context, in *RepoQuery, opts ...grpc.CallOption) (*v1alpha1.Repository, error) 868 // ListRepositories gets a list of all configured repositories 869 ListRepositories(ctx context.Context, in *RepoQuery, opts ...grpc.CallOption) (*v1alpha1.RepositoryList, error) 870 // ListWriteRepositories gets a list of all configured write repositories 871 ListWriteRepositories(ctx context.Context, in *RepoQuery, opts ...grpc.CallOption) (*v1alpha1.RepositoryList, error) 872 ListRefs(ctx context.Context, in *RepoQuery, opts ...grpc.CallOption) (*apiclient.Refs, error) 873 ListOCITags(ctx context.Context, in *RepoQuery, opts ...grpc.CallOption) (*apiclient.Refs, error) 874 // ListApps returns list of apps in the repo 875 ListApps(ctx context.Context, in *RepoAppsQuery, opts ...grpc.CallOption) (*RepoAppsResponse, error) 876 // GetAppDetails returns application details by given path 877 GetAppDetails(ctx context.Context, in *RepoAppDetailsQuery, opts ...grpc.CallOption) (*apiclient.RepoAppDetailsResponse, error) 878 // GetHelmCharts returns list of helm charts in the specified repository 879 GetHelmCharts(ctx context.Context, in *RepoQuery, opts ...grpc.CallOption) (*apiclient.HelmChartsResponse, error) 880 // Create creates a repo or a repo credential set 881 Create(ctx context.Context, in *RepoCreateRequest, opts ...grpc.CallOption) (*v1alpha1.Repository, error) 882 // CreateRepository creates a new repository configuration 883 CreateRepository(ctx context.Context, in *RepoCreateRequest, opts ...grpc.CallOption) (*v1alpha1.Repository, error) 884 // CreateWriteRepository creates a new write repository configuration 885 CreateWriteRepository(ctx context.Context, in *RepoCreateRequest, opts ...grpc.CallOption) (*v1alpha1.Repository, error) 886 // Update updates a repo or repo credential set 887 Update(ctx context.Context, in *RepoUpdateRequest, opts ...grpc.CallOption) (*v1alpha1.Repository, error) 888 // UpdateRepository updates a repository configuration 889 UpdateRepository(ctx context.Context, in *RepoUpdateRequest, opts ...grpc.CallOption) (*v1alpha1.Repository, error) 890 // UpdateWriteRepository updates a write repository configuration 891 UpdateWriteRepository(ctx context.Context, in *RepoUpdateRequest, opts ...grpc.CallOption) (*v1alpha1.Repository, error) 892 // Delete deletes a repository from the configuration 893 Delete(ctx context.Context, in *RepoQuery, opts ...grpc.CallOption) (*RepoResponse, error) 894 // DeleteRepository deletes a repository from the configuration 895 DeleteRepository(ctx context.Context, in *RepoQuery, opts ...grpc.CallOption) (*RepoResponse, error) 896 // DeleteWriteRepository deletes a write repository from the configuration 897 DeleteWriteRepository(ctx context.Context, in *RepoQuery, opts ...grpc.CallOption) (*RepoResponse, error) 898 // ValidateAccess validates access to a repository with given parameters 899 ValidateAccess(ctx context.Context, in *RepoAccessQuery, opts ...grpc.CallOption) (*RepoResponse, error) 900 // ValidateWriteAccess validates write access to a repository with given parameters 901 ValidateWriteAccess(ctx context.Context, in *RepoAccessQuery, opts ...grpc.CallOption) (*RepoResponse, error) 902 } 903 904 type repositoryServiceClient struct { 905 cc *grpc.ClientConn 906 } 907 908 func NewRepositoryServiceClient(cc *grpc.ClientConn) RepositoryServiceClient { 909 return &repositoryServiceClient{cc} 910 } 911 912 // Deprecated: Do not use. 913 func (c *repositoryServiceClient) List(ctx context.Context, in *RepoQuery, opts ...grpc.CallOption) (*v1alpha1.RepositoryList, error) { 914 out := new(v1alpha1.RepositoryList) 915 err := c.cc.Invoke(ctx, "/repository.RepositoryService/List", in, out, opts...) 916 if err != nil { 917 return nil, err 918 } 919 return out, nil 920 } 921 922 func (c *repositoryServiceClient) Get(ctx context.Context, in *RepoQuery, opts ...grpc.CallOption) (*v1alpha1.Repository, error) { 923 out := new(v1alpha1.Repository) 924 err := c.cc.Invoke(ctx, "/repository.RepositoryService/Get", in, out, opts...) 925 if err != nil { 926 return nil, err 927 } 928 return out, nil 929 } 930 931 func (c *repositoryServiceClient) GetWrite(ctx context.Context, in *RepoQuery, opts ...grpc.CallOption) (*v1alpha1.Repository, error) { 932 out := new(v1alpha1.Repository) 933 err := c.cc.Invoke(ctx, "/repository.RepositoryService/GetWrite", in, out, opts...) 934 if err != nil { 935 return nil, err 936 } 937 return out, nil 938 } 939 940 func (c *repositoryServiceClient) ListRepositories(ctx context.Context, in *RepoQuery, opts ...grpc.CallOption) (*v1alpha1.RepositoryList, error) { 941 out := new(v1alpha1.RepositoryList) 942 err := c.cc.Invoke(ctx, "/repository.RepositoryService/ListRepositories", in, out, opts...) 943 if err != nil { 944 return nil, err 945 } 946 return out, nil 947 } 948 949 func (c *repositoryServiceClient) ListWriteRepositories(ctx context.Context, in *RepoQuery, opts ...grpc.CallOption) (*v1alpha1.RepositoryList, error) { 950 out := new(v1alpha1.RepositoryList) 951 err := c.cc.Invoke(ctx, "/repository.RepositoryService/ListWriteRepositories", in, out, opts...) 952 if err != nil { 953 return nil, err 954 } 955 return out, nil 956 } 957 958 func (c *repositoryServiceClient) ListRefs(ctx context.Context, in *RepoQuery, opts ...grpc.CallOption) (*apiclient.Refs, error) { 959 out := new(apiclient.Refs) 960 err := c.cc.Invoke(ctx, "/repository.RepositoryService/ListRefs", in, out, opts...) 961 if err != nil { 962 return nil, err 963 } 964 return out, nil 965 } 966 967 func (c *repositoryServiceClient) ListOCITags(ctx context.Context, in *RepoQuery, opts ...grpc.CallOption) (*apiclient.Refs, error) { 968 out := new(apiclient.Refs) 969 err := c.cc.Invoke(ctx, "/repository.RepositoryService/ListOCITags", in, out, opts...) 970 if err != nil { 971 return nil, err 972 } 973 return out, nil 974 } 975 976 func (c *repositoryServiceClient) ListApps(ctx context.Context, in *RepoAppsQuery, opts ...grpc.CallOption) (*RepoAppsResponse, error) { 977 out := new(RepoAppsResponse) 978 err := c.cc.Invoke(ctx, "/repository.RepositoryService/ListApps", in, out, opts...) 979 if err != nil { 980 return nil, err 981 } 982 return out, nil 983 } 984 985 func (c *repositoryServiceClient) GetAppDetails(ctx context.Context, in *RepoAppDetailsQuery, opts ...grpc.CallOption) (*apiclient.RepoAppDetailsResponse, error) { 986 out := new(apiclient.RepoAppDetailsResponse) 987 err := c.cc.Invoke(ctx, "/repository.RepositoryService/GetAppDetails", in, out, opts...) 988 if err != nil { 989 return nil, err 990 } 991 return out, nil 992 } 993 994 func (c *repositoryServiceClient) GetHelmCharts(ctx context.Context, in *RepoQuery, opts ...grpc.CallOption) (*apiclient.HelmChartsResponse, error) { 995 out := new(apiclient.HelmChartsResponse) 996 err := c.cc.Invoke(ctx, "/repository.RepositoryService/GetHelmCharts", in, out, opts...) 997 if err != nil { 998 return nil, err 999 } 1000 return out, nil 1001 } 1002 1003 // Deprecated: Do not use. 1004 func (c *repositoryServiceClient) Create(ctx context.Context, in *RepoCreateRequest, opts ...grpc.CallOption) (*v1alpha1.Repository, error) { 1005 out := new(v1alpha1.Repository) 1006 err := c.cc.Invoke(ctx, "/repository.RepositoryService/Create", in, out, opts...) 1007 if err != nil { 1008 return nil, err 1009 } 1010 return out, nil 1011 } 1012 1013 func (c *repositoryServiceClient) CreateRepository(ctx context.Context, in *RepoCreateRequest, opts ...grpc.CallOption) (*v1alpha1.Repository, error) { 1014 out := new(v1alpha1.Repository) 1015 err := c.cc.Invoke(ctx, "/repository.RepositoryService/CreateRepository", in, out, opts...) 1016 if err != nil { 1017 return nil, err 1018 } 1019 return out, nil 1020 } 1021 1022 func (c *repositoryServiceClient) CreateWriteRepository(ctx context.Context, in *RepoCreateRequest, opts ...grpc.CallOption) (*v1alpha1.Repository, error) { 1023 out := new(v1alpha1.Repository) 1024 err := c.cc.Invoke(ctx, "/repository.RepositoryService/CreateWriteRepository", in, out, opts...) 1025 if err != nil { 1026 return nil, err 1027 } 1028 return out, nil 1029 } 1030 1031 // Deprecated: Do not use. 1032 func (c *repositoryServiceClient) Update(ctx context.Context, in *RepoUpdateRequest, opts ...grpc.CallOption) (*v1alpha1.Repository, error) { 1033 out := new(v1alpha1.Repository) 1034 err := c.cc.Invoke(ctx, "/repository.RepositoryService/Update", in, out, opts...) 1035 if err != nil { 1036 return nil, err 1037 } 1038 return out, nil 1039 } 1040 1041 func (c *repositoryServiceClient) UpdateRepository(ctx context.Context, in *RepoUpdateRequest, opts ...grpc.CallOption) (*v1alpha1.Repository, error) { 1042 out := new(v1alpha1.Repository) 1043 err := c.cc.Invoke(ctx, "/repository.RepositoryService/UpdateRepository", in, out, opts...) 1044 if err != nil { 1045 return nil, err 1046 } 1047 return out, nil 1048 } 1049 1050 func (c *repositoryServiceClient) UpdateWriteRepository(ctx context.Context, in *RepoUpdateRequest, opts ...grpc.CallOption) (*v1alpha1.Repository, error) { 1051 out := new(v1alpha1.Repository) 1052 err := c.cc.Invoke(ctx, "/repository.RepositoryService/UpdateWriteRepository", in, out, opts...) 1053 if err != nil { 1054 return nil, err 1055 } 1056 return out, nil 1057 } 1058 1059 // Deprecated: Do not use. 1060 func (c *repositoryServiceClient) Delete(ctx context.Context, in *RepoQuery, opts ...grpc.CallOption) (*RepoResponse, error) { 1061 out := new(RepoResponse) 1062 err := c.cc.Invoke(ctx, "/repository.RepositoryService/Delete", in, out, opts...) 1063 if err != nil { 1064 return nil, err 1065 } 1066 return out, nil 1067 } 1068 1069 func (c *repositoryServiceClient) DeleteRepository(ctx context.Context, in *RepoQuery, opts ...grpc.CallOption) (*RepoResponse, error) { 1070 out := new(RepoResponse) 1071 err := c.cc.Invoke(ctx, "/repository.RepositoryService/DeleteRepository", in, out, opts...) 1072 if err != nil { 1073 return nil, err 1074 } 1075 return out, nil 1076 } 1077 1078 func (c *repositoryServiceClient) DeleteWriteRepository(ctx context.Context, in *RepoQuery, opts ...grpc.CallOption) (*RepoResponse, error) { 1079 out := new(RepoResponse) 1080 err := c.cc.Invoke(ctx, "/repository.RepositoryService/DeleteWriteRepository", in, out, opts...) 1081 if err != nil { 1082 return nil, err 1083 } 1084 return out, nil 1085 } 1086 1087 func (c *repositoryServiceClient) ValidateAccess(ctx context.Context, in *RepoAccessQuery, opts ...grpc.CallOption) (*RepoResponse, error) { 1088 out := new(RepoResponse) 1089 err := c.cc.Invoke(ctx, "/repository.RepositoryService/ValidateAccess", in, out, opts...) 1090 if err != nil { 1091 return nil, err 1092 } 1093 return out, nil 1094 } 1095 1096 func (c *repositoryServiceClient) ValidateWriteAccess(ctx context.Context, in *RepoAccessQuery, opts ...grpc.CallOption) (*RepoResponse, error) { 1097 out := new(RepoResponse) 1098 err := c.cc.Invoke(ctx, "/repository.RepositoryService/ValidateWriteAccess", in, out, opts...) 1099 if err != nil { 1100 return nil, err 1101 } 1102 return out, nil 1103 } 1104 1105 // RepositoryServiceServer is the server API for RepositoryService service. 1106 type RepositoryServiceServer interface { 1107 // List returns list of repos or repository credentials 1108 List(context.Context, *RepoQuery) (*v1alpha1.RepositoryList, error) 1109 // Get returns a repository or its credentials 1110 Get(context.Context, *RepoQuery) (*v1alpha1.Repository, error) 1111 // GetWrite returns a repository or its write credentials 1112 GetWrite(context.Context, *RepoQuery) (*v1alpha1.Repository, error) 1113 // ListRepositories gets a list of all configured repositories 1114 ListRepositories(context.Context, *RepoQuery) (*v1alpha1.RepositoryList, error) 1115 // ListWriteRepositories gets a list of all configured write repositories 1116 ListWriteRepositories(context.Context, *RepoQuery) (*v1alpha1.RepositoryList, error) 1117 ListRefs(context.Context, *RepoQuery) (*apiclient.Refs, error) 1118 ListOCITags(context.Context, *RepoQuery) (*apiclient.Refs, error) 1119 // ListApps returns list of apps in the repo 1120 ListApps(context.Context, *RepoAppsQuery) (*RepoAppsResponse, error) 1121 // GetAppDetails returns application details by given path 1122 GetAppDetails(context.Context, *RepoAppDetailsQuery) (*apiclient.RepoAppDetailsResponse, error) 1123 // GetHelmCharts returns list of helm charts in the specified repository 1124 GetHelmCharts(context.Context, *RepoQuery) (*apiclient.HelmChartsResponse, error) 1125 // Create creates a repo or a repo credential set 1126 Create(context.Context, *RepoCreateRequest) (*v1alpha1.Repository, error) 1127 // CreateRepository creates a new repository configuration 1128 CreateRepository(context.Context, *RepoCreateRequest) (*v1alpha1.Repository, error) 1129 // CreateWriteRepository creates a new write repository configuration 1130 CreateWriteRepository(context.Context, *RepoCreateRequest) (*v1alpha1.Repository, error) 1131 // Update updates a repo or repo credential set 1132 Update(context.Context, *RepoUpdateRequest) (*v1alpha1.Repository, error) 1133 // UpdateRepository updates a repository configuration 1134 UpdateRepository(context.Context, *RepoUpdateRequest) (*v1alpha1.Repository, error) 1135 // UpdateWriteRepository updates a write repository configuration 1136 UpdateWriteRepository(context.Context, *RepoUpdateRequest) (*v1alpha1.Repository, error) 1137 // Delete deletes a repository from the configuration 1138 Delete(context.Context, *RepoQuery) (*RepoResponse, error) 1139 // DeleteRepository deletes a repository from the configuration 1140 DeleteRepository(context.Context, *RepoQuery) (*RepoResponse, error) 1141 // DeleteWriteRepository deletes a write repository from the configuration 1142 DeleteWriteRepository(context.Context, *RepoQuery) (*RepoResponse, error) 1143 // ValidateAccess validates access to a repository with given parameters 1144 ValidateAccess(context.Context, *RepoAccessQuery) (*RepoResponse, error) 1145 // ValidateWriteAccess validates write access to a repository with given parameters 1146 ValidateWriteAccess(context.Context, *RepoAccessQuery) (*RepoResponse, error) 1147 } 1148 1149 // UnimplementedRepositoryServiceServer can be embedded to have forward compatible implementations. 1150 type UnimplementedRepositoryServiceServer struct { 1151 } 1152 1153 func (*UnimplementedRepositoryServiceServer) List(ctx context.Context, req *RepoQuery) (*v1alpha1.RepositoryList, error) { 1154 return nil, status.Errorf(codes.Unimplemented, "method List not implemented") 1155 } 1156 func (*UnimplementedRepositoryServiceServer) Get(ctx context.Context, req *RepoQuery) (*v1alpha1.Repository, error) { 1157 return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") 1158 } 1159 func (*UnimplementedRepositoryServiceServer) GetWrite(ctx context.Context, req *RepoQuery) (*v1alpha1.Repository, error) { 1160 return nil, status.Errorf(codes.Unimplemented, "method GetWrite not implemented") 1161 } 1162 func (*UnimplementedRepositoryServiceServer) ListRepositories(ctx context.Context, req *RepoQuery) (*v1alpha1.RepositoryList, error) { 1163 return nil, status.Errorf(codes.Unimplemented, "method ListRepositories not implemented") 1164 } 1165 func (*UnimplementedRepositoryServiceServer) ListWriteRepositories(ctx context.Context, req *RepoQuery) (*v1alpha1.RepositoryList, error) { 1166 return nil, status.Errorf(codes.Unimplemented, "method ListWriteRepositories not implemented") 1167 } 1168 func (*UnimplementedRepositoryServiceServer) ListRefs(ctx context.Context, req *RepoQuery) (*apiclient.Refs, error) { 1169 return nil, status.Errorf(codes.Unimplemented, "method ListRefs not implemented") 1170 } 1171 func (*UnimplementedRepositoryServiceServer) ListOCITags(ctx context.Context, req *RepoQuery) (*apiclient.Refs, error) { 1172 return nil, status.Errorf(codes.Unimplemented, "method ListOCITags not implemented") 1173 } 1174 func (*UnimplementedRepositoryServiceServer) ListApps(ctx context.Context, req *RepoAppsQuery) (*RepoAppsResponse, error) { 1175 return nil, status.Errorf(codes.Unimplemented, "method ListApps not implemented") 1176 } 1177 func (*UnimplementedRepositoryServiceServer) GetAppDetails(ctx context.Context, req *RepoAppDetailsQuery) (*apiclient.RepoAppDetailsResponse, error) { 1178 return nil, status.Errorf(codes.Unimplemented, "method GetAppDetails not implemented") 1179 } 1180 func (*UnimplementedRepositoryServiceServer) GetHelmCharts(ctx context.Context, req *RepoQuery) (*apiclient.HelmChartsResponse, error) { 1181 return nil, status.Errorf(codes.Unimplemented, "method GetHelmCharts not implemented") 1182 } 1183 func (*UnimplementedRepositoryServiceServer) Create(ctx context.Context, req *RepoCreateRequest) (*v1alpha1.Repository, error) { 1184 return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") 1185 } 1186 func (*UnimplementedRepositoryServiceServer) CreateRepository(ctx context.Context, req *RepoCreateRequest) (*v1alpha1.Repository, error) { 1187 return nil, status.Errorf(codes.Unimplemented, "method CreateRepository not implemented") 1188 } 1189 func (*UnimplementedRepositoryServiceServer) CreateWriteRepository(ctx context.Context, req *RepoCreateRequest) (*v1alpha1.Repository, error) { 1190 return nil, status.Errorf(codes.Unimplemented, "method CreateWriteRepository not implemented") 1191 } 1192 func (*UnimplementedRepositoryServiceServer) Update(ctx context.Context, req *RepoUpdateRequest) (*v1alpha1.Repository, error) { 1193 return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") 1194 } 1195 func (*UnimplementedRepositoryServiceServer) UpdateRepository(ctx context.Context, req *RepoUpdateRequest) (*v1alpha1.Repository, error) { 1196 return nil, status.Errorf(codes.Unimplemented, "method UpdateRepository not implemented") 1197 } 1198 func (*UnimplementedRepositoryServiceServer) UpdateWriteRepository(ctx context.Context, req *RepoUpdateRequest) (*v1alpha1.Repository, error) { 1199 return nil, status.Errorf(codes.Unimplemented, "method UpdateWriteRepository not implemented") 1200 } 1201 func (*UnimplementedRepositoryServiceServer) Delete(ctx context.Context, req *RepoQuery) (*RepoResponse, error) { 1202 return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") 1203 } 1204 func (*UnimplementedRepositoryServiceServer) DeleteRepository(ctx context.Context, req *RepoQuery) (*RepoResponse, error) { 1205 return nil, status.Errorf(codes.Unimplemented, "method DeleteRepository not implemented") 1206 } 1207 func (*UnimplementedRepositoryServiceServer) DeleteWriteRepository(ctx context.Context, req *RepoQuery) (*RepoResponse, error) { 1208 return nil, status.Errorf(codes.Unimplemented, "method DeleteWriteRepository not implemented") 1209 } 1210 func (*UnimplementedRepositoryServiceServer) ValidateAccess(ctx context.Context, req *RepoAccessQuery) (*RepoResponse, error) { 1211 return nil, status.Errorf(codes.Unimplemented, "method ValidateAccess not implemented") 1212 } 1213 func (*UnimplementedRepositoryServiceServer) ValidateWriteAccess(ctx context.Context, req *RepoAccessQuery) (*RepoResponse, error) { 1214 return nil, status.Errorf(codes.Unimplemented, "method ValidateWriteAccess not implemented") 1215 } 1216 1217 func RegisterRepositoryServiceServer(s *grpc.Server, srv RepositoryServiceServer) { 1218 s.RegisterService(&_RepositoryService_serviceDesc, srv) 1219 } 1220 1221 func _RepositoryService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1222 in := new(RepoQuery) 1223 if err := dec(in); err != nil { 1224 return nil, err 1225 } 1226 if interceptor == nil { 1227 return srv.(RepositoryServiceServer).List(ctx, in) 1228 } 1229 info := &grpc.UnaryServerInfo{ 1230 Server: srv, 1231 FullMethod: "/repository.RepositoryService/List", 1232 } 1233 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1234 return srv.(RepositoryServiceServer).List(ctx, req.(*RepoQuery)) 1235 } 1236 return interceptor(ctx, in, info, handler) 1237 } 1238 1239 func _RepositoryService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1240 in := new(RepoQuery) 1241 if err := dec(in); err != nil { 1242 return nil, err 1243 } 1244 if interceptor == nil { 1245 return srv.(RepositoryServiceServer).Get(ctx, in) 1246 } 1247 info := &grpc.UnaryServerInfo{ 1248 Server: srv, 1249 FullMethod: "/repository.RepositoryService/Get", 1250 } 1251 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1252 return srv.(RepositoryServiceServer).Get(ctx, req.(*RepoQuery)) 1253 } 1254 return interceptor(ctx, in, info, handler) 1255 } 1256 1257 func _RepositoryService_GetWrite_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1258 in := new(RepoQuery) 1259 if err := dec(in); err != nil { 1260 return nil, err 1261 } 1262 if interceptor == nil { 1263 return srv.(RepositoryServiceServer).GetWrite(ctx, in) 1264 } 1265 info := &grpc.UnaryServerInfo{ 1266 Server: srv, 1267 FullMethod: "/repository.RepositoryService/GetWrite", 1268 } 1269 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1270 return srv.(RepositoryServiceServer).GetWrite(ctx, req.(*RepoQuery)) 1271 } 1272 return interceptor(ctx, in, info, handler) 1273 } 1274 1275 func _RepositoryService_ListRepositories_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1276 in := new(RepoQuery) 1277 if err := dec(in); err != nil { 1278 return nil, err 1279 } 1280 if interceptor == nil { 1281 return srv.(RepositoryServiceServer).ListRepositories(ctx, in) 1282 } 1283 info := &grpc.UnaryServerInfo{ 1284 Server: srv, 1285 FullMethod: "/repository.RepositoryService/ListRepositories", 1286 } 1287 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1288 return srv.(RepositoryServiceServer).ListRepositories(ctx, req.(*RepoQuery)) 1289 } 1290 return interceptor(ctx, in, info, handler) 1291 } 1292 1293 func _RepositoryService_ListWriteRepositories_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1294 in := new(RepoQuery) 1295 if err := dec(in); err != nil { 1296 return nil, err 1297 } 1298 if interceptor == nil { 1299 return srv.(RepositoryServiceServer).ListWriteRepositories(ctx, in) 1300 } 1301 info := &grpc.UnaryServerInfo{ 1302 Server: srv, 1303 FullMethod: "/repository.RepositoryService/ListWriteRepositories", 1304 } 1305 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1306 return srv.(RepositoryServiceServer).ListWriteRepositories(ctx, req.(*RepoQuery)) 1307 } 1308 return interceptor(ctx, in, info, handler) 1309 } 1310 1311 func _RepositoryService_ListRefs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1312 in := new(RepoQuery) 1313 if err := dec(in); err != nil { 1314 return nil, err 1315 } 1316 if interceptor == nil { 1317 return srv.(RepositoryServiceServer).ListRefs(ctx, in) 1318 } 1319 info := &grpc.UnaryServerInfo{ 1320 Server: srv, 1321 FullMethod: "/repository.RepositoryService/ListRefs", 1322 } 1323 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1324 return srv.(RepositoryServiceServer).ListRefs(ctx, req.(*RepoQuery)) 1325 } 1326 return interceptor(ctx, in, info, handler) 1327 } 1328 1329 func _RepositoryService_ListOCITags_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1330 in := new(RepoQuery) 1331 if err := dec(in); err != nil { 1332 return nil, err 1333 } 1334 if interceptor == nil { 1335 return srv.(RepositoryServiceServer).ListOCITags(ctx, in) 1336 } 1337 info := &grpc.UnaryServerInfo{ 1338 Server: srv, 1339 FullMethod: "/repository.RepositoryService/ListOCITags", 1340 } 1341 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1342 return srv.(RepositoryServiceServer).ListOCITags(ctx, req.(*RepoQuery)) 1343 } 1344 return interceptor(ctx, in, info, handler) 1345 } 1346 1347 func _RepositoryService_ListApps_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1348 in := new(RepoAppsQuery) 1349 if err := dec(in); err != nil { 1350 return nil, err 1351 } 1352 if interceptor == nil { 1353 return srv.(RepositoryServiceServer).ListApps(ctx, in) 1354 } 1355 info := &grpc.UnaryServerInfo{ 1356 Server: srv, 1357 FullMethod: "/repository.RepositoryService/ListApps", 1358 } 1359 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1360 return srv.(RepositoryServiceServer).ListApps(ctx, req.(*RepoAppsQuery)) 1361 } 1362 return interceptor(ctx, in, info, handler) 1363 } 1364 1365 func _RepositoryService_GetAppDetails_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1366 in := new(RepoAppDetailsQuery) 1367 if err := dec(in); err != nil { 1368 return nil, err 1369 } 1370 if interceptor == nil { 1371 return srv.(RepositoryServiceServer).GetAppDetails(ctx, in) 1372 } 1373 info := &grpc.UnaryServerInfo{ 1374 Server: srv, 1375 FullMethod: "/repository.RepositoryService/GetAppDetails", 1376 } 1377 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1378 return srv.(RepositoryServiceServer).GetAppDetails(ctx, req.(*RepoAppDetailsQuery)) 1379 } 1380 return interceptor(ctx, in, info, handler) 1381 } 1382 1383 func _RepositoryService_GetHelmCharts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1384 in := new(RepoQuery) 1385 if err := dec(in); err != nil { 1386 return nil, err 1387 } 1388 if interceptor == nil { 1389 return srv.(RepositoryServiceServer).GetHelmCharts(ctx, in) 1390 } 1391 info := &grpc.UnaryServerInfo{ 1392 Server: srv, 1393 FullMethod: "/repository.RepositoryService/GetHelmCharts", 1394 } 1395 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1396 return srv.(RepositoryServiceServer).GetHelmCharts(ctx, req.(*RepoQuery)) 1397 } 1398 return interceptor(ctx, in, info, handler) 1399 } 1400 1401 func _RepositoryService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1402 in := new(RepoCreateRequest) 1403 if err := dec(in); err != nil { 1404 return nil, err 1405 } 1406 if interceptor == nil { 1407 return srv.(RepositoryServiceServer).Create(ctx, in) 1408 } 1409 info := &grpc.UnaryServerInfo{ 1410 Server: srv, 1411 FullMethod: "/repository.RepositoryService/Create", 1412 } 1413 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1414 return srv.(RepositoryServiceServer).Create(ctx, req.(*RepoCreateRequest)) 1415 } 1416 return interceptor(ctx, in, info, handler) 1417 } 1418 1419 func _RepositoryService_CreateRepository_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1420 in := new(RepoCreateRequest) 1421 if err := dec(in); err != nil { 1422 return nil, err 1423 } 1424 if interceptor == nil { 1425 return srv.(RepositoryServiceServer).CreateRepository(ctx, in) 1426 } 1427 info := &grpc.UnaryServerInfo{ 1428 Server: srv, 1429 FullMethod: "/repository.RepositoryService/CreateRepository", 1430 } 1431 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1432 return srv.(RepositoryServiceServer).CreateRepository(ctx, req.(*RepoCreateRequest)) 1433 } 1434 return interceptor(ctx, in, info, handler) 1435 } 1436 1437 func _RepositoryService_CreateWriteRepository_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1438 in := new(RepoCreateRequest) 1439 if err := dec(in); err != nil { 1440 return nil, err 1441 } 1442 if interceptor == nil { 1443 return srv.(RepositoryServiceServer).CreateWriteRepository(ctx, in) 1444 } 1445 info := &grpc.UnaryServerInfo{ 1446 Server: srv, 1447 FullMethod: "/repository.RepositoryService/CreateWriteRepository", 1448 } 1449 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1450 return srv.(RepositoryServiceServer).CreateWriteRepository(ctx, req.(*RepoCreateRequest)) 1451 } 1452 return interceptor(ctx, in, info, handler) 1453 } 1454 1455 func _RepositoryService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1456 in := new(RepoUpdateRequest) 1457 if err := dec(in); err != nil { 1458 return nil, err 1459 } 1460 if interceptor == nil { 1461 return srv.(RepositoryServiceServer).Update(ctx, in) 1462 } 1463 info := &grpc.UnaryServerInfo{ 1464 Server: srv, 1465 FullMethod: "/repository.RepositoryService/Update", 1466 } 1467 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1468 return srv.(RepositoryServiceServer).Update(ctx, req.(*RepoUpdateRequest)) 1469 } 1470 return interceptor(ctx, in, info, handler) 1471 } 1472 1473 func _RepositoryService_UpdateRepository_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1474 in := new(RepoUpdateRequest) 1475 if err := dec(in); err != nil { 1476 return nil, err 1477 } 1478 if interceptor == nil { 1479 return srv.(RepositoryServiceServer).UpdateRepository(ctx, in) 1480 } 1481 info := &grpc.UnaryServerInfo{ 1482 Server: srv, 1483 FullMethod: "/repository.RepositoryService/UpdateRepository", 1484 } 1485 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1486 return srv.(RepositoryServiceServer).UpdateRepository(ctx, req.(*RepoUpdateRequest)) 1487 } 1488 return interceptor(ctx, in, info, handler) 1489 } 1490 1491 func _RepositoryService_UpdateWriteRepository_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1492 in := new(RepoUpdateRequest) 1493 if err := dec(in); err != nil { 1494 return nil, err 1495 } 1496 if interceptor == nil { 1497 return srv.(RepositoryServiceServer).UpdateWriteRepository(ctx, in) 1498 } 1499 info := &grpc.UnaryServerInfo{ 1500 Server: srv, 1501 FullMethod: "/repository.RepositoryService/UpdateWriteRepository", 1502 } 1503 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1504 return srv.(RepositoryServiceServer).UpdateWriteRepository(ctx, req.(*RepoUpdateRequest)) 1505 } 1506 return interceptor(ctx, in, info, handler) 1507 } 1508 1509 func _RepositoryService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1510 in := new(RepoQuery) 1511 if err := dec(in); err != nil { 1512 return nil, err 1513 } 1514 if interceptor == nil { 1515 return srv.(RepositoryServiceServer).Delete(ctx, in) 1516 } 1517 info := &grpc.UnaryServerInfo{ 1518 Server: srv, 1519 FullMethod: "/repository.RepositoryService/Delete", 1520 } 1521 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1522 return srv.(RepositoryServiceServer).Delete(ctx, req.(*RepoQuery)) 1523 } 1524 return interceptor(ctx, in, info, handler) 1525 } 1526 1527 func _RepositoryService_DeleteRepository_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1528 in := new(RepoQuery) 1529 if err := dec(in); err != nil { 1530 return nil, err 1531 } 1532 if interceptor == nil { 1533 return srv.(RepositoryServiceServer).DeleteRepository(ctx, in) 1534 } 1535 info := &grpc.UnaryServerInfo{ 1536 Server: srv, 1537 FullMethod: "/repository.RepositoryService/DeleteRepository", 1538 } 1539 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1540 return srv.(RepositoryServiceServer).DeleteRepository(ctx, req.(*RepoQuery)) 1541 } 1542 return interceptor(ctx, in, info, handler) 1543 } 1544 1545 func _RepositoryService_DeleteWriteRepository_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1546 in := new(RepoQuery) 1547 if err := dec(in); err != nil { 1548 return nil, err 1549 } 1550 if interceptor == nil { 1551 return srv.(RepositoryServiceServer).DeleteWriteRepository(ctx, in) 1552 } 1553 info := &grpc.UnaryServerInfo{ 1554 Server: srv, 1555 FullMethod: "/repository.RepositoryService/DeleteWriteRepository", 1556 } 1557 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1558 return srv.(RepositoryServiceServer).DeleteWriteRepository(ctx, req.(*RepoQuery)) 1559 } 1560 return interceptor(ctx, in, info, handler) 1561 } 1562 1563 func _RepositoryService_ValidateAccess_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1564 in := new(RepoAccessQuery) 1565 if err := dec(in); err != nil { 1566 return nil, err 1567 } 1568 if interceptor == nil { 1569 return srv.(RepositoryServiceServer).ValidateAccess(ctx, in) 1570 } 1571 info := &grpc.UnaryServerInfo{ 1572 Server: srv, 1573 FullMethod: "/repository.RepositoryService/ValidateAccess", 1574 } 1575 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1576 return srv.(RepositoryServiceServer).ValidateAccess(ctx, req.(*RepoAccessQuery)) 1577 } 1578 return interceptor(ctx, in, info, handler) 1579 } 1580 1581 func _RepositoryService_ValidateWriteAccess_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1582 in := new(RepoAccessQuery) 1583 if err := dec(in); err != nil { 1584 return nil, err 1585 } 1586 if interceptor == nil { 1587 return srv.(RepositoryServiceServer).ValidateWriteAccess(ctx, in) 1588 } 1589 info := &grpc.UnaryServerInfo{ 1590 Server: srv, 1591 FullMethod: "/repository.RepositoryService/ValidateWriteAccess", 1592 } 1593 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1594 return srv.(RepositoryServiceServer).ValidateWriteAccess(ctx, req.(*RepoAccessQuery)) 1595 } 1596 return interceptor(ctx, in, info, handler) 1597 } 1598 1599 var _RepositoryService_serviceDesc = grpc.ServiceDesc{ 1600 ServiceName: "repository.RepositoryService", 1601 HandlerType: (*RepositoryServiceServer)(nil), 1602 Methods: []grpc.MethodDesc{ 1603 { 1604 MethodName: "List", 1605 Handler: _RepositoryService_List_Handler, 1606 }, 1607 { 1608 MethodName: "Get", 1609 Handler: _RepositoryService_Get_Handler, 1610 }, 1611 { 1612 MethodName: "GetWrite", 1613 Handler: _RepositoryService_GetWrite_Handler, 1614 }, 1615 { 1616 MethodName: "ListRepositories", 1617 Handler: _RepositoryService_ListRepositories_Handler, 1618 }, 1619 { 1620 MethodName: "ListWriteRepositories", 1621 Handler: _RepositoryService_ListWriteRepositories_Handler, 1622 }, 1623 { 1624 MethodName: "ListRefs", 1625 Handler: _RepositoryService_ListRefs_Handler, 1626 }, 1627 { 1628 MethodName: "ListOCITags", 1629 Handler: _RepositoryService_ListOCITags_Handler, 1630 }, 1631 { 1632 MethodName: "ListApps", 1633 Handler: _RepositoryService_ListApps_Handler, 1634 }, 1635 { 1636 MethodName: "GetAppDetails", 1637 Handler: _RepositoryService_GetAppDetails_Handler, 1638 }, 1639 { 1640 MethodName: "GetHelmCharts", 1641 Handler: _RepositoryService_GetHelmCharts_Handler, 1642 }, 1643 { 1644 MethodName: "Create", 1645 Handler: _RepositoryService_Create_Handler, 1646 }, 1647 { 1648 MethodName: "CreateRepository", 1649 Handler: _RepositoryService_CreateRepository_Handler, 1650 }, 1651 { 1652 MethodName: "CreateWriteRepository", 1653 Handler: _RepositoryService_CreateWriteRepository_Handler, 1654 }, 1655 { 1656 MethodName: "Update", 1657 Handler: _RepositoryService_Update_Handler, 1658 }, 1659 { 1660 MethodName: "UpdateRepository", 1661 Handler: _RepositoryService_UpdateRepository_Handler, 1662 }, 1663 { 1664 MethodName: "UpdateWriteRepository", 1665 Handler: _RepositoryService_UpdateWriteRepository_Handler, 1666 }, 1667 { 1668 MethodName: "Delete", 1669 Handler: _RepositoryService_Delete_Handler, 1670 }, 1671 { 1672 MethodName: "DeleteRepository", 1673 Handler: _RepositoryService_DeleteRepository_Handler, 1674 }, 1675 { 1676 MethodName: "DeleteWriteRepository", 1677 Handler: _RepositoryService_DeleteWriteRepository_Handler, 1678 }, 1679 { 1680 MethodName: "ValidateAccess", 1681 Handler: _RepositoryService_ValidateAccess_Handler, 1682 }, 1683 { 1684 MethodName: "ValidateWriteAccess", 1685 Handler: _RepositoryService_ValidateWriteAccess_Handler, 1686 }, 1687 }, 1688 Streams: []grpc.StreamDesc{}, 1689 Metadata: "server/repository/repository.proto", 1690 } 1691 1692 func (m *RepoAppsQuery) Marshal() (dAtA []byte, err error) { 1693 size := m.Size() 1694 dAtA = make([]byte, size) 1695 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1696 if err != nil { 1697 return nil, err 1698 } 1699 return dAtA[:n], nil 1700 } 1701 1702 func (m *RepoAppsQuery) MarshalTo(dAtA []byte) (int, error) { 1703 size := m.Size() 1704 return m.MarshalToSizedBuffer(dAtA[:size]) 1705 } 1706 1707 func (m *RepoAppsQuery) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1708 i := len(dAtA) 1709 _ = i 1710 var l int 1711 _ = l 1712 if m.XXX_unrecognized != nil { 1713 i -= len(m.XXX_unrecognized) 1714 copy(dAtA[i:], m.XXX_unrecognized) 1715 } 1716 if len(m.AppProject) > 0 { 1717 i -= len(m.AppProject) 1718 copy(dAtA[i:], m.AppProject) 1719 i = encodeVarintRepository(dAtA, i, uint64(len(m.AppProject))) 1720 i-- 1721 dAtA[i] = 0x22 1722 } 1723 if len(m.AppName) > 0 { 1724 i -= len(m.AppName) 1725 copy(dAtA[i:], m.AppName) 1726 i = encodeVarintRepository(dAtA, i, uint64(len(m.AppName))) 1727 i-- 1728 dAtA[i] = 0x1a 1729 } 1730 if len(m.Revision) > 0 { 1731 i -= len(m.Revision) 1732 copy(dAtA[i:], m.Revision) 1733 i = encodeVarintRepository(dAtA, i, uint64(len(m.Revision))) 1734 i-- 1735 dAtA[i] = 0x12 1736 } 1737 if len(m.Repo) > 0 { 1738 i -= len(m.Repo) 1739 copy(dAtA[i:], m.Repo) 1740 i = encodeVarintRepository(dAtA, i, uint64(len(m.Repo))) 1741 i-- 1742 dAtA[i] = 0xa 1743 } 1744 return len(dAtA) - i, nil 1745 } 1746 1747 func (m *AppInfo) Marshal() (dAtA []byte, err error) { 1748 size := m.Size() 1749 dAtA = make([]byte, size) 1750 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1751 if err != nil { 1752 return nil, err 1753 } 1754 return dAtA[:n], nil 1755 } 1756 1757 func (m *AppInfo) MarshalTo(dAtA []byte) (int, error) { 1758 size := m.Size() 1759 return m.MarshalToSizedBuffer(dAtA[:size]) 1760 } 1761 1762 func (m *AppInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1763 i := len(dAtA) 1764 _ = i 1765 var l int 1766 _ = l 1767 if m.XXX_unrecognized != nil { 1768 i -= len(m.XXX_unrecognized) 1769 copy(dAtA[i:], m.XXX_unrecognized) 1770 } 1771 if len(m.Path) > 0 { 1772 i -= len(m.Path) 1773 copy(dAtA[i:], m.Path) 1774 i = encodeVarintRepository(dAtA, i, uint64(len(m.Path))) 1775 i-- 1776 dAtA[i] = 0x12 1777 } 1778 if len(m.Type) > 0 { 1779 i -= len(m.Type) 1780 copy(dAtA[i:], m.Type) 1781 i = encodeVarintRepository(dAtA, i, uint64(len(m.Type))) 1782 i-- 1783 dAtA[i] = 0xa 1784 } 1785 return len(dAtA) - i, nil 1786 } 1787 1788 func (m *RepoAppDetailsQuery) Marshal() (dAtA []byte, err error) { 1789 size := m.Size() 1790 dAtA = make([]byte, size) 1791 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1792 if err != nil { 1793 return nil, err 1794 } 1795 return dAtA[:n], nil 1796 } 1797 1798 func (m *RepoAppDetailsQuery) MarshalTo(dAtA []byte) (int, error) { 1799 size := m.Size() 1800 return m.MarshalToSizedBuffer(dAtA[:size]) 1801 } 1802 1803 func (m *RepoAppDetailsQuery) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1804 i := len(dAtA) 1805 _ = i 1806 var l int 1807 _ = l 1808 if m.XXX_unrecognized != nil { 1809 i -= len(m.XXX_unrecognized) 1810 copy(dAtA[i:], m.XXX_unrecognized) 1811 } 1812 if m.VersionId != 0 { 1813 i = encodeVarintRepository(dAtA, i, uint64(m.VersionId)) 1814 i-- 1815 dAtA[i] = 0x28 1816 } 1817 if m.SourceIndex != 0 { 1818 i = encodeVarintRepository(dAtA, i, uint64(m.SourceIndex)) 1819 i-- 1820 dAtA[i] = 0x20 1821 } 1822 if len(m.AppProject) > 0 { 1823 i -= len(m.AppProject) 1824 copy(dAtA[i:], m.AppProject) 1825 i = encodeVarintRepository(dAtA, i, uint64(len(m.AppProject))) 1826 i-- 1827 dAtA[i] = 0x1a 1828 } 1829 if len(m.AppName) > 0 { 1830 i -= len(m.AppName) 1831 copy(dAtA[i:], m.AppName) 1832 i = encodeVarintRepository(dAtA, i, uint64(len(m.AppName))) 1833 i-- 1834 dAtA[i] = 0x12 1835 } 1836 if m.Source != nil { 1837 { 1838 size, err := m.Source.MarshalToSizedBuffer(dAtA[:i]) 1839 if err != nil { 1840 return 0, err 1841 } 1842 i -= size 1843 i = encodeVarintRepository(dAtA, i, uint64(size)) 1844 } 1845 i-- 1846 dAtA[i] = 0xa 1847 } 1848 return len(dAtA) - i, nil 1849 } 1850 1851 func (m *RepoAppsResponse) Marshal() (dAtA []byte, err error) { 1852 size := m.Size() 1853 dAtA = make([]byte, size) 1854 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1855 if err != nil { 1856 return nil, err 1857 } 1858 return dAtA[:n], nil 1859 } 1860 1861 func (m *RepoAppsResponse) MarshalTo(dAtA []byte) (int, error) { 1862 size := m.Size() 1863 return m.MarshalToSizedBuffer(dAtA[:size]) 1864 } 1865 1866 func (m *RepoAppsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1867 i := len(dAtA) 1868 _ = i 1869 var l int 1870 _ = l 1871 if m.XXX_unrecognized != nil { 1872 i -= len(m.XXX_unrecognized) 1873 copy(dAtA[i:], m.XXX_unrecognized) 1874 } 1875 if len(m.Items) > 0 { 1876 for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { 1877 { 1878 size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 1879 if err != nil { 1880 return 0, err 1881 } 1882 i -= size 1883 i = encodeVarintRepository(dAtA, i, uint64(size)) 1884 } 1885 i-- 1886 dAtA[i] = 0xa 1887 } 1888 } 1889 return len(dAtA) - i, nil 1890 } 1891 1892 func (m *RepoQuery) Marshal() (dAtA []byte, err error) { 1893 size := m.Size() 1894 dAtA = make([]byte, size) 1895 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1896 if err != nil { 1897 return nil, err 1898 } 1899 return dAtA[:n], nil 1900 } 1901 1902 func (m *RepoQuery) MarshalTo(dAtA []byte) (int, error) { 1903 size := m.Size() 1904 return m.MarshalToSizedBuffer(dAtA[:size]) 1905 } 1906 1907 func (m *RepoQuery) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1908 i := len(dAtA) 1909 _ = i 1910 var l int 1911 _ = l 1912 if m.XXX_unrecognized != nil { 1913 i -= len(m.XXX_unrecognized) 1914 copy(dAtA[i:], m.XXX_unrecognized) 1915 } 1916 if len(m.AppProject) > 0 { 1917 i -= len(m.AppProject) 1918 copy(dAtA[i:], m.AppProject) 1919 i = encodeVarintRepository(dAtA, i, uint64(len(m.AppProject))) 1920 i-- 1921 dAtA[i] = 0x1a 1922 } 1923 if m.ForceRefresh { 1924 i-- 1925 if m.ForceRefresh { 1926 dAtA[i] = 1 1927 } else { 1928 dAtA[i] = 0 1929 } 1930 i-- 1931 dAtA[i] = 0x10 1932 } 1933 if len(m.Repo) > 0 { 1934 i -= len(m.Repo) 1935 copy(dAtA[i:], m.Repo) 1936 i = encodeVarintRepository(dAtA, i, uint64(len(m.Repo))) 1937 i-- 1938 dAtA[i] = 0xa 1939 } 1940 return len(dAtA) - i, nil 1941 } 1942 1943 func (m *RepoAccessQuery) Marshal() (dAtA []byte, err error) { 1944 size := m.Size() 1945 dAtA = make([]byte, size) 1946 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1947 if err != nil { 1948 return nil, err 1949 } 1950 return dAtA[:n], nil 1951 } 1952 1953 func (m *RepoAccessQuery) MarshalTo(dAtA []byte) (int, error) { 1954 size := m.Size() 1955 return m.MarshalToSizedBuffer(dAtA[:size]) 1956 } 1957 1958 func (m *RepoAccessQuery) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1959 i := len(dAtA) 1960 _ = i 1961 var l int 1962 _ = l 1963 if m.XXX_unrecognized != nil { 1964 i -= len(m.XXX_unrecognized) 1965 copy(dAtA[i:], m.XXX_unrecognized) 1966 } 1967 if m.InsecureOciForceHttp { 1968 i-- 1969 if m.InsecureOciForceHttp { 1970 dAtA[i] = 1 1971 } else { 1972 dAtA[i] = 0 1973 } 1974 i-- 1975 dAtA[i] = 0x1 1976 i-- 1977 dAtA[i] = 0xb0 1978 } 1979 if len(m.BearerToken) > 0 { 1980 i -= len(m.BearerToken) 1981 copy(dAtA[i:], m.BearerToken) 1982 i = encodeVarintRepository(dAtA, i, uint64(len(m.BearerToken))) 1983 i-- 1984 dAtA[i] = 0x1 1985 i-- 1986 dAtA[i] = 0xaa 1987 } 1988 if m.UseAzureWorkloadIdentity { 1989 i-- 1990 if m.UseAzureWorkloadIdentity { 1991 dAtA[i] = 1 1992 } else { 1993 dAtA[i] = 0 1994 } 1995 i-- 1996 dAtA[i] = 0x1 1997 i-- 1998 dAtA[i] = 0xa0 1999 } 2000 if m.ForceHttpBasicAuth { 2001 i-- 2002 if m.ForceHttpBasicAuth { 2003 dAtA[i] = 1 2004 } else { 2005 dAtA[i] = 0 2006 } 2007 i-- 2008 dAtA[i] = 0x1 2009 i-- 2010 dAtA[i] = 0x98 2011 } 2012 if len(m.GcpServiceAccountKey) > 0 { 2013 i -= len(m.GcpServiceAccountKey) 2014 copy(dAtA[i:], m.GcpServiceAccountKey) 2015 i = encodeVarintRepository(dAtA, i, uint64(len(m.GcpServiceAccountKey))) 2016 i-- 2017 dAtA[i] = 0x1 2018 i-- 2019 dAtA[i] = 0x92 2020 } 2021 if len(m.Project) > 0 { 2022 i -= len(m.Project) 2023 copy(dAtA[i:], m.Project) 2024 i = encodeVarintRepository(dAtA, i, uint64(len(m.Project))) 2025 i-- 2026 dAtA[i] = 0x1 2027 i-- 2028 dAtA[i] = 0x8a 2029 } 2030 if len(m.Proxy) > 0 { 2031 i -= len(m.Proxy) 2032 copy(dAtA[i:], m.Proxy) 2033 i = encodeVarintRepository(dAtA, i, uint64(len(m.Proxy))) 2034 i-- 2035 dAtA[i] = 0x1 2036 i-- 2037 dAtA[i] = 0x82 2038 } 2039 if len(m.GithubAppEnterpriseBaseUrl) > 0 { 2040 i -= len(m.GithubAppEnterpriseBaseUrl) 2041 copy(dAtA[i:], m.GithubAppEnterpriseBaseUrl) 2042 i = encodeVarintRepository(dAtA, i, uint64(len(m.GithubAppEnterpriseBaseUrl))) 2043 i-- 2044 dAtA[i] = 0x7a 2045 } 2046 if m.GithubAppInstallationID != 0 { 2047 i = encodeVarintRepository(dAtA, i, uint64(m.GithubAppInstallationID)) 2048 i-- 2049 dAtA[i] = 0x70 2050 } 2051 if m.GithubAppID != 0 { 2052 i = encodeVarintRepository(dAtA, i, uint64(m.GithubAppID)) 2053 i-- 2054 dAtA[i] = 0x68 2055 } 2056 if len(m.GithubAppPrivateKey) > 0 { 2057 i -= len(m.GithubAppPrivateKey) 2058 copy(dAtA[i:], m.GithubAppPrivateKey) 2059 i = encodeVarintRepository(dAtA, i, uint64(len(m.GithubAppPrivateKey))) 2060 i-- 2061 dAtA[i] = 0x62 2062 } 2063 if m.EnableOci { 2064 i-- 2065 if m.EnableOci { 2066 dAtA[i] = 1 2067 } else { 2068 dAtA[i] = 0 2069 } 2070 i-- 2071 dAtA[i] = 0x58 2072 } 2073 if len(m.Name) > 0 { 2074 i -= len(m.Name) 2075 copy(dAtA[i:], m.Name) 2076 i = encodeVarintRepository(dAtA, i, uint64(len(m.Name))) 2077 i-- 2078 dAtA[i] = 0x52 2079 } 2080 if len(m.Type) > 0 { 2081 i -= len(m.Type) 2082 copy(dAtA[i:], m.Type) 2083 i = encodeVarintRepository(dAtA, i, uint64(len(m.Type))) 2084 i-- 2085 dAtA[i] = 0x4a 2086 } 2087 if len(m.TlsClientCertKey) > 0 { 2088 i -= len(m.TlsClientCertKey) 2089 copy(dAtA[i:], m.TlsClientCertKey) 2090 i = encodeVarintRepository(dAtA, i, uint64(len(m.TlsClientCertKey))) 2091 i-- 2092 dAtA[i] = 0x3a 2093 } 2094 if len(m.TlsClientCertData) > 0 { 2095 i -= len(m.TlsClientCertData) 2096 copy(dAtA[i:], m.TlsClientCertData) 2097 i = encodeVarintRepository(dAtA, i, uint64(len(m.TlsClientCertData))) 2098 i-- 2099 dAtA[i] = 0x32 2100 } 2101 if m.Insecure { 2102 i-- 2103 if m.Insecure { 2104 dAtA[i] = 1 2105 } else { 2106 dAtA[i] = 0 2107 } 2108 i-- 2109 dAtA[i] = 0x28 2110 } 2111 if len(m.SshPrivateKey) > 0 { 2112 i -= len(m.SshPrivateKey) 2113 copy(dAtA[i:], m.SshPrivateKey) 2114 i = encodeVarintRepository(dAtA, i, uint64(len(m.SshPrivateKey))) 2115 i-- 2116 dAtA[i] = 0x22 2117 } 2118 if len(m.Password) > 0 { 2119 i -= len(m.Password) 2120 copy(dAtA[i:], m.Password) 2121 i = encodeVarintRepository(dAtA, i, uint64(len(m.Password))) 2122 i-- 2123 dAtA[i] = 0x1a 2124 } 2125 if len(m.Username) > 0 { 2126 i -= len(m.Username) 2127 copy(dAtA[i:], m.Username) 2128 i = encodeVarintRepository(dAtA, i, uint64(len(m.Username))) 2129 i-- 2130 dAtA[i] = 0x12 2131 } 2132 if len(m.Repo) > 0 { 2133 i -= len(m.Repo) 2134 copy(dAtA[i:], m.Repo) 2135 i = encodeVarintRepository(dAtA, i, uint64(len(m.Repo))) 2136 i-- 2137 dAtA[i] = 0xa 2138 } 2139 return len(dAtA) - i, nil 2140 } 2141 2142 func (m *RepoResponse) Marshal() (dAtA []byte, err error) { 2143 size := m.Size() 2144 dAtA = make([]byte, size) 2145 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2146 if err != nil { 2147 return nil, err 2148 } 2149 return dAtA[:n], nil 2150 } 2151 2152 func (m *RepoResponse) MarshalTo(dAtA []byte) (int, error) { 2153 size := m.Size() 2154 return m.MarshalToSizedBuffer(dAtA[:size]) 2155 } 2156 2157 func (m *RepoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2158 i := len(dAtA) 2159 _ = i 2160 var l int 2161 _ = l 2162 if m.XXX_unrecognized != nil { 2163 i -= len(m.XXX_unrecognized) 2164 copy(dAtA[i:], m.XXX_unrecognized) 2165 } 2166 return len(dAtA) - i, nil 2167 } 2168 2169 func (m *RepoCreateRequest) Marshal() (dAtA []byte, err error) { 2170 size := m.Size() 2171 dAtA = make([]byte, size) 2172 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2173 if err != nil { 2174 return nil, err 2175 } 2176 return dAtA[:n], nil 2177 } 2178 2179 func (m *RepoCreateRequest) MarshalTo(dAtA []byte) (int, error) { 2180 size := m.Size() 2181 return m.MarshalToSizedBuffer(dAtA[:size]) 2182 } 2183 2184 func (m *RepoCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2185 i := len(dAtA) 2186 _ = i 2187 var l int 2188 _ = l 2189 if m.XXX_unrecognized != nil { 2190 i -= len(m.XXX_unrecognized) 2191 copy(dAtA[i:], m.XXX_unrecognized) 2192 } 2193 if m.CredsOnly { 2194 i-- 2195 if m.CredsOnly { 2196 dAtA[i] = 1 2197 } else { 2198 dAtA[i] = 0 2199 } 2200 i-- 2201 dAtA[i] = 0x18 2202 } 2203 if m.Upsert { 2204 i-- 2205 if m.Upsert { 2206 dAtA[i] = 1 2207 } else { 2208 dAtA[i] = 0 2209 } 2210 i-- 2211 dAtA[i] = 0x10 2212 } 2213 if m.Repo != nil { 2214 { 2215 size, err := m.Repo.MarshalToSizedBuffer(dAtA[:i]) 2216 if err != nil { 2217 return 0, err 2218 } 2219 i -= size 2220 i = encodeVarintRepository(dAtA, i, uint64(size)) 2221 } 2222 i-- 2223 dAtA[i] = 0xa 2224 } 2225 return len(dAtA) - i, nil 2226 } 2227 2228 func (m *RepoUpdateRequest) Marshal() (dAtA []byte, err error) { 2229 size := m.Size() 2230 dAtA = make([]byte, size) 2231 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2232 if err != nil { 2233 return nil, err 2234 } 2235 return dAtA[:n], nil 2236 } 2237 2238 func (m *RepoUpdateRequest) MarshalTo(dAtA []byte) (int, error) { 2239 size := m.Size() 2240 return m.MarshalToSizedBuffer(dAtA[:size]) 2241 } 2242 2243 func (m *RepoUpdateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2244 i := len(dAtA) 2245 _ = i 2246 var l int 2247 _ = l 2248 if m.XXX_unrecognized != nil { 2249 i -= len(m.XXX_unrecognized) 2250 copy(dAtA[i:], m.XXX_unrecognized) 2251 } 2252 if m.Repo != nil { 2253 { 2254 size, err := m.Repo.MarshalToSizedBuffer(dAtA[:i]) 2255 if err != nil { 2256 return 0, err 2257 } 2258 i -= size 2259 i = encodeVarintRepository(dAtA, i, uint64(size)) 2260 } 2261 i-- 2262 dAtA[i] = 0xa 2263 } 2264 return len(dAtA) - i, nil 2265 } 2266 2267 func encodeVarintRepository(dAtA []byte, offset int, v uint64) int { 2268 offset -= sovRepository(v) 2269 base := offset 2270 for v >= 1<<7 { 2271 dAtA[offset] = uint8(v&0x7f | 0x80) 2272 v >>= 7 2273 offset++ 2274 } 2275 dAtA[offset] = uint8(v) 2276 return base 2277 } 2278 func (m *RepoAppsQuery) Size() (n int) { 2279 if m == nil { 2280 return 0 2281 } 2282 var l int 2283 _ = l 2284 l = len(m.Repo) 2285 if l > 0 { 2286 n += 1 + l + sovRepository(uint64(l)) 2287 } 2288 l = len(m.Revision) 2289 if l > 0 { 2290 n += 1 + l + sovRepository(uint64(l)) 2291 } 2292 l = len(m.AppName) 2293 if l > 0 { 2294 n += 1 + l + sovRepository(uint64(l)) 2295 } 2296 l = len(m.AppProject) 2297 if l > 0 { 2298 n += 1 + l + sovRepository(uint64(l)) 2299 } 2300 if m.XXX_unrecognized != nil { 2301 n += len(m.XXX_unrecognized) 2302 } 2303 return n 2304 } 2305 2306 func (m *AppInfo) Size() (n int) { 2307 if m == nil { 2308 return 0 2309 } 2310 var l int 2311 _ = l 2312 l = len(m.Type) 2313 if l > 0 { 2314 n += 1 + l + sovRepository(uint64(l)) 2315 } 2316 l = len(m.Path) 2317 if l > 0 { 2318 n += 1 + l + sovRepository(uint64(l)) 2319 } 2320 if m.XXX_unrecognized != nil { 2321 n += len(m.XXX_unrecognized) 2322 } 2323 return n 2324 } 2325 2326 func (m *RepoAppDetailsQuery) Size() (n int) { 2327 if m == nil { 2328 return 0 2329 } 2330 var l int 2331 _ = l 2332 if m.Source != nil { 2333 l = m.Source.Size() 2334 n += 1 + l + sovRepository(uint64(l)) 2335 } 2336 l = len(m.AppName) 2337 if l > 0 { 2338 n += 1 + l + sovRepository(uint64(l)) 2339 } 2340 l = len(m.AppProject) 2341 if l > 0 { 2342 n += 1 + l + sovRepository(uint64(l)) 2343 } 2344 if m.SourceIndex != 0 { 2345 n += 1 + sovRepository(uint64(m.SourceIndex)) 2346 } 2347 if m.VersionId != 0 { 2348 n += 1 + sovRepository(uint64(m.VersionId)) 2349 } 2350 if m.XXX_unrecognized != nil { 2351 n += len(m.XXX_unrecognized) 2352 } 2353 return n 2354 } 2355 2356 func (m *RepoAppsResponse) Size() (n int) { 2357 if m == nil { 2358 return 0 2359 } 2360 var l int 2361 _ = l 2362 if len(m.Items) > 0 { 2363 for _, e := range m.Items { 2364 l = e.Size() 2365 n += 1 + l + sovRepository(uint64(l)) 2366 } 2367 } 2368 if m.XXX_unrecognized != nil { 2369 n += len(m.XXX_unrecognized) 2370 } 2371 return n 2372 } 2373 2374 func (m *RepoQuery) Size() (n int) { 2375 if m == nil { 2376 return 0 2377 } 2378 var l int 2379 _ = l 2380 l = len(m.Repo) 2381 if l > 0 { 2382 n += 1 + l + sovRepository(uint64(l)) 2383 } 2384 if m.ForceRefresh { 2385 n += 2 2386 } 2387 l = len(m.AppProject) 2388 if l > 0 { 2389 n += 1 + l + sovRepository(uint64(l)) 2390 } 2391 if m.XXX_unrecognized != nil { 2392 n += len(m.XXX_unrecognized) 2393 } 2394 return n 2395 } 2396 2397 func (m *RepoAccessQuery) Size() (n int) { 2398 if m == nil { 2399 return 0 2400 } 2401 var l int 2402 _ = l 2403 l = len(m.Repo) 2404 if l > 0 { 2405 n += 1 + l + sovRepository(uint64(l)) 2406 } 2407 l = len(m.Username) 2408 if l > 0 { 2409 n += 1 + l + sovRepository(uint64(l)) 2410 } 2411 l = len(m.Password) 2412 if l > 0 { 2413 n += 1 + l + sovRepository(uint64(l)) 2414 } 2415 l = len(m.SshPrivateKey) 2416 if l > 0 { 2417 n += 1 + l + sovRepository(uint64(l)) 2418 } 2419 if m.Insecure { 2420 n += 2 2421 } 2422 l = len(m.TlsClientCertData) 2423 if l > 0 { 2424 n += 1 + l + sovRepository(uint64(l)) 2425 } 2426 l = len(m.TlsClientCertKey) 2427 if l > 0 { 2428 n += 1 + l + sovRepository(uint64(l)) 2429 } 2430 l = len(m.Type) 2431 if l > 0 { 2432 n += 1 + l + sovRepository(uint64(l)) 2433 } 2434 l = len(m.Name) 2435 if l > 0 { 2436 n += 1 + l + sovRepository(uint64(l)) 2437 } 2438 if m.EnableOci { 2439 n += 2 2440 } 2441 l = len(m.GithubAppPrivateKey) 2442 if l > 0 { 2443 n += 1 + l + sovRepository(uint64(l)) 2444 } 2445 if m.GithubAppID != 0 { 2446 n += 1 + sovRepository(uint64(m.GithubAppID)) 2447 } 2448 if m.GithubAppInstallationID != 0 { 2449 n += 1 + sovRepository(uint64(m.GithubAppInstallationID)) 2450 } 2451 l = len(m.GithubAppEnterpriseBaseUrl) 2452 if l > 0 { 2453 n += 1 + l + sovRepository(uint64(l)) 2454 } 2455 l = len(m.Proxy) 2456 if l > 0 { 2457 n += 2 + l + sovRepository(uint64(l)) 2458 } 2459 l = len(m.Project) 2460 if l > 0 { 2461 n += 2 + l + sovRepository(uint64(l)) 2462 } 2463 l = len(m.GcpServiceAccountKey) 2464 if l > 0 { 2465 n += 2 + l + sovRepository(uint64(l)) 2466 } 2467 if m.ForceHttpBasicAuth { 2468 n += 3 2469 } 2470 if m.UseAzureWorkloadIdentity { 2471 n += 3 2472 } 2473 l = len(m.BearerToken) 2474 if l > 0 { 2475 n += 2 + l + sovRepository(uint64(l)) 2476 } 2477 if m.InsecureOciForceHttp { 2478 n += 3 2479 } 2480 if m.XXX_unrecognized != nil { 2481 n += len(m.XXX_unrecognized) 2482 } 2483 return n 2484 } 2485 2486 func (m *RepoResponse) Size() (n int) { 2487 if m == nil { 2488 return 0 2489 } 2490 var l int 2491 _ = l 2492 if m.XXX_unrecognized != nil { 2493 n += len(m.XXX_unrecognized) 2494 } 2495 return n 2496 } 2497 2498 func (m *RepoCreateRequest) Size() (n int) { 2499 if m == nil { 2500 return 0 2501 } 2502 var l int 2503 _ = l 2504 if m.Repo != nil { 2505 l = m.Repo.Size() 2506 n += 1 + l + sovRepository(uint64(l)) 2507 } 2508 if m.Upsert { 2509 n += 2 2510 } 2511 if m.CredsOnly { 2512 n += 2 2513 } 2514 if m.XXX_unrecognized != nil { 2515 n += len(m.XXX_unrecognized) 2516 } 2517 return n 2518 } 2519 2520 func (m *RepoUpdateRequest) Size() (n int) { 2521 if m == nil { 2522 return 0 2523 } 2524 var l int 2525 _ = l 2526 if m.Repo != nil { 2527 l = m.Repo.Size() 2528 n += 1 + l + sovRepository(uint64(l)) 2529 } 2530 if m.XXX_unrecognized != nil { 2531 n += len(m.XXX_unrecognized) 2532 } 2533 return n 2534 } 2535 2536 func sovRepository(x uint64) (n int) { 2537 return (math_bits.Len64(x|1) + 6) / 7 2538 } 2539 func sozRepository(x uint64) (n int) { 2540 return sovRepository(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 2541 } 2542 func (m *RepoAppsQuery) Unmarshal(dAtA []byte) error { 2543 l := len(dAtA) 2544 iNdEx := 0 2545 for iNdEx < l { 2546 preIndex := iNdEx 2547 var wire uint64 2548 for shift := uint(0); ; shift += 7 { 2549 if shift >= 64 { 2550 return ErrIntOverflowRepository 2551 } 2552 if iNdEx >= l { 2553 return io.ErrUnexpectedEOF 2554 } 2555 b := dAtA[iNdEx] 2556 iNdEx++ 2557 wire |= uint64(b&0x7F) << shift 2558 if b < 0x80 { 2559 break 2560 } 2561 } 2562 fieldNum := int32(wire >> 3) 2563 wireType := int(wire & 0x7) 2564 if wireType == 4 { 2565 return fmt.Errorf("proto: RepoAppsQuery: wiretype end group for non-group") 2566 } 2567 if fieldNum <= 0 { 2568 return fmt.Errorf("proto: RepoAppsQuery: illegal tag %d (wire type %d)", fieldNum, wire) 2569 } 2570 switch fieldNum { 2571 case 1: 2572 if wireType != 2 { 2573 return fmt.Errorf("proto: wrong wireType = %d for field Repo", wireType) 2574 } 2575 var stringLen uint64 2576 for shift := uint(0); ; shift += 7 { 2577 if shift >= 64 { 2578 return ErrIntOverflowRepository 2579 } 2580 if iNdEx >= l { 2581 return io.ErrUnexpectedEOF 2582 } 2583 b := dAtA[iNdEx] 2584 iNdEx++ 2585 stringLen |= uint64(b&0x7F) << shift 2586 if b < 0x80 { 2587 break 2588 } 2589 } 2590 intStringLen := int(stringLen) 2591 if intStringLen < 0 { 2592 return ErrInvalidLengthRepository 2593 } 2594 postIndex := iNdEx + intStringLen 2595 if postIndex < 0 { 2596 return ErrInvalidLengthRepository 2597 } 2598 if postIndex > l { 2599 return io.ErrUnexpectedEOF 2600 } 2601 m.Repo = string(dAtA[iNdEx:postIndex]) 2602 iNdEx = postIndex 2603 case 2: 2604 if wireType != 2 { 2605 return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) 2606 } 2607 var stringLen uint64 2608 for shift := uint(0); ; shift += 7 { 2609 if shift >= 64 { 2610 return ErrIntOverflowRepository 2611 } 2612 if iNdEx >= l { 2613 return io.ErrUnexpectedEOF 2614 } 2615 b := dAtA[iNdEx] 2616 iNdEx++ 2617 stringLen |= uint64(b&0x7F) << shift 2618 if b < 0x80 { 2619 break 2620 } 2621 } 2622 intStringLen := int(stringLen) 2623 if intStringLen < 0 { 2624 return ErrInvalidLengthRepository 2625 } 2626 postIndex := iNdEx + intStringLen 2627 if postIndex < 0 { 2628 return ErrInvalidLengthRepository 2629 } 2630 if postIndex > l { 2631 return io.ErrUnexpectedEOF 2632 } 2633 m.Revision = string(dAtA[iNdEx:postIndex]) 2634 iNdEx = postIndex 2635 case 3: 2636 if wireType != 2 { 2637 return fmt.Errorf("proto: wrong wireType = %d for field AppName", wireType) 2638 } 2639 var stringLen uint64 2640 for shift := uint(0); ; shift += 7 { 2641 if shift >= 64 { 2642 return ErrIntOverflowRepository 2643 } 2644 if iNdEx >= l { 2645 return io.ErrUnexpectedEOF 2646 } 2647 b := dAtA[iNdEx] 2648 iNdEx++ 2649 stringLen |= uint64(b&0x7F) << shift 2650 if b < 0x80 { 2651 break 2652 } 2653 } 2654 intStringLen := int(stringLen) 2655 if intStringLen < 0 { 2656 return ErrInvalidLengthRepository 2657 } 2658 postIndex := iNdEx + intStringLen 2659 if postIndex < 0 { 2660 return ErrInvalidLengthRepository 2661 } 2662 if postIndex > l { 2663 return io.ErrUnexpectedEOF 2664 } 2665 m.AppName = string(dAtA[iNdEx:postIndex]) 2666 iNdEx = postIndex 2667 case 4: 2668 if wireType != 2 { 2669 return fmt.Errorf("proto: wrong wireType = %d for field AppProject", wireType) 2670 } 2671 var stringLen uint64 2672 for shift := uint(0); ; shift += 7 { 2673 if shift >= 64 { 2674 return ErrIntOverflowRepository 2675 } 2676 if iNdEx >= l { 2677 return io.ErrUnexpectedEOF 2678 } 2679 b := dAtA[iNdEx] 2680 iNdEx++ 2681 stringLen |= uint64(b&0x7F) << shift 2682 if b < 0x80 { 2683 break 2684 } 2685 } 2686 intStringLen := int(stringLen) 2687 if intStringLen < 0 { 2688 return ErrInvalidLengthRepository 2689 } 2690 postIndex := iNdEx + intStringLen 2691 if postIndex < 0 { 2692 return ErrInvalidLengthRepository 2693 } 2694 if postIndex > l { 2695 return io.ErrUnexpectedEOF 2696 } 2697 m.AppProject = string(dAtA[iNdEx:postIndex]) 2698 iNdEx = postIndex 2699 default: 2700 iNdEx = preIndex 2701 skippy, err := skipRepository(dAtA[iNdEx:]) 2702 if err != nil { 2703 return err 2704 } 2705 if (skippy < 0) || (iNdEx+skippy) < 0 { 2706 return ErrInvalidLengthRepository 2707 } 2708 if (iNdEx + skippy) > l { 2709 return io.ErrUnexpectedEOF 2710 } 2711 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2712 iNdEx += skippy 2713 } 2714 } 2715 2716 if iNdEx > l { 2717 return io.ErrUnexpectedEOF 2718 } 2719 return nil 2720 } 2721 func (m *AppInfo) Unmarshal(dAtA []byte) error { 2722 l := len(dAtA) 2723 iNdEx := 0 2724 for iNdEx < l { 2725 preIndex := iNdEx 2726 var wire uint64 2727 for shift := uint(0); ; shift += 7 { 2728 if shift >= 64 { 2729 return ErrIntOverflowRepository 2730 } 2731 if iNdEx >= l { 2732 return io.ErrUnexpectedEOF 2733 } 2734 b := dAtA[iNdEx] 2735 iNdEx++ 2736 wire |= uint64(b&0x7F) << shift 2737 if b < 0x80 { 2738 break 2739 } 2740 } 2741 fieldNum := int32(wire >> 3) 2742 wireType := int(wire & 0x7) 2743 if wireType == 4 { 2744 return fmt.Errorf("proto: AppInfo: wiretype end group for non-group") 2745 } 2746 if fieldNum <= 0 { 2747 return fmt.Errorf("proto: AppInfo: illegal tag %d (wire type %d)", fieldNum, wire) 2748 } 2749 switch fieldNum { 2750 case 1: 2751 if wireType != 2 { 2752 return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) 2753 } 2754 var stringLen uint64 2755 for shift := uint(0); ; shift += 7 { 2756 if shift >= 64 { 2757 return ErrIntOverflowRepository 2758 } 2759 if iNdEx >= l { 2760 return io.ErrUnexpectedEOF 2761 } 2762 b := dAtA[iNdEx] 2763 iNdEx++ 2764 stringLen |= uint64(b&0x7F) << shift 2765 if b < 0x80 { 2766 break 2767 } 2768 } 2769 intStringLen := int(stringLen) 2770 if intStringLen < 0 { 2771 return ErrInvalidLengthRepository 2772 } 2773 postIndex := iNdEx + intStringLen 2774 if postIndex < 0 { 2775 return ErrInvalidLengthRepository 2776 } 2777 if postIndex > l { 2778 return io.ErrUnexpectedEOF 2779 } 2780 m.Type = string(dAtA[iNdEx:postIndex]) 2781 iNdEx = postIndex 2782 case 2: 2783 if wireType != 2 { 2784 return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) 2785 } 2786 var stringLen uint64 2787 for shift := uint(0); ; shift += 7 { 2788 if shift >= 64 { 2789 return ErrIntOverflowRepository 2790 } 2791 if iNdEx >= l { 2792 return io.ErrUnexpectedEOF 2793 } 2794 b := dAtA[iNdEx] 2795 iNdEx++ 2796 stringLen |= uint64(b&0x7F) << shift 2797 if b < 0x80 { 2798 break 2799 } 2800 } 2801 intStringLen := int(stringLen) 2802 if intStringLen < 0 { 2803 return ErrInvalidLengthRepository 2804 } 2805 postIndex := iNdEx + intStringLen 2806 if postIndex < 0 { 2807 return ErrInvalidLengthRepository 2808 } 2809 if postIndex > l { 2810 return io.ErrUnexpectedEOF 2811 } 2812 m.Path = string(dAtA[iNdEx:postIndex]) 2813 iNdEx = postIndex 2814 default: 2815 iNdEx = preIndex 2816 skippy, err := skipRepository(dAtA[iNdEx:]) 2817 if err != nil { 2818 return err 2819 } 2820 if (skippy < 0) || (iNdEx+skippy) < 0 { 2821 return ErrInvalidLengthRepository 2822 } 2823 if (iNdEx + skippy) > l { 2824 return io.ErrUnexpectedEOF 2825 } 2826 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2827 iNdEx += skippy 2828 } 2829 } 2830 2831 if iNdEx > l { 2832 return io.ErrUnexpectedEOF 2833 } 2834 return nil 2835 } 2836 func (m *RepoAppDetailsQuery) Unmarshal(dAtA []byte) error { 2837 l := len(dAtA) 2838 iNdEx := 0 2839 for iNdEx < l { 2840 preIndex := iNdEx 2841 var wire uint64 2842 for shift := uint(0); ; shift += 7 { 2843 if shift >= 64 { 2844 return ErrIntOverflowRepository 2845 } 2846 if iNdEx >= l { 2847 return io.ErrUnexpectedEOF 2848 } 2849 b := dAtA[iNdEx] 2850 iNdEx++ 2851 wire |= uint64(b&0x7F) << shift 2852 if b < 0x80 { 2853 break 2854 } 2855 } 2856 fieldNum := int32(wire >> 3) 2857 wireType := int(wire & 0x7) 2858 if wireType == 4 { 2859 return fmt.Errorf("proto: RepoAppDetailsQuery: wiretype end group for non-group") 2860 } 2861 if fieldNum <= 0 { 2862 return fmt.Errorf("proto: RepoAppDetailsQuery: illegal tag %d (wire type %d)", fieldNum, wire) 2863 } 2864 switch fieldNum { 2865 case 1: 2866 if wireType != 2 { 2867 return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) 2868 } 2869 var msglen int 2870 for shift := uint(0); ; shift += 7 { 2871 if shift >= 64 { 2872 return ErrIntOverflowRepository 2873 } 2874 if iNdEx >= l { 2875 return io.ErrUnexpectedEOF 2876 } 2877 b := dAtA[iNdEx] 2878 iNdEx++ 2879 msglen |= int(b&0x7F) << shift 2880 if b < 0x80 { 2881 break 2882 } 2883 } 2884 if msglen < 0 { 2885 return ErrInvalidLengthRepository 2886 } 2887 postIndex := iNdEx + msglen 2888 if postIndex < 0 { 2889 return ErrInvalidLengthRepository 2890 } 2891 if postIndex > l { 2892 return io.ErrUnexpectedEOF 2893 } 2894 if m.Source == nil { 2895 m.Source = &v1alpha1.ApplicationSource{} 2896 } 2897 if err := m.Source.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2898 return err 2899 } 2900 iNdEx = postIndex 2901 case 2: 2902 if wireType != 2 { 2903 return fmt.Errorf("proto: wrong wireType = %d for field AppName", wireType) 2904 } 2905 var stringLen uint64 2906 for shift := uint(0); ; shift += 7 { 2907 if shift >= 64 { 2908 return ErrIntOverflowRepository 2909 } 2910 if iNdEx >= l { 2911 return io.ErrUnexpectedEOF 2912 } 2913 b := dAtA[iNdEx] 2914 iNdEx++ 2915 stringLen |= uint64(b&0x7F) << shift 2916 if b < 0x80 { 2917 break 2918 } 2919 } 2920 intStringLen := int(stringLen) 2921 if intStringLen < 0 { 2922 return ErrInvalidLengthRepository 2923 } 2924 postIndex := iNdEx + intStringLen 2925 if postIndex < 0 { 2926 return ErrInvalidLengthRepository 2927 } 2928 if postIndex > l { 2929 return io.ErrUnexpectedEOF 2930 } 2931 m.AppName = string(dAtA[iNdEx:postIndex]) 2932 iNdEx = postIndex 2933 case 3: 2934 if wireType != 2 { 2935 return fmt.Errorf("proto: wrong wireType = %d for field AppProject", wireType) 2936 } 2937 var stringLen uint64 2938 for shift := uint(0); ; shift += 7 { 2939 if shift >= 64 { 2940 return ErrIntOverflowRepository 2941 } 2942 if iNdEx >= l { 2943 return io.ErrUnexpectedEOF 2944 } 2945 b := dAtA[iNdEx] 2946 iNdEx++ 2947 stringLen |= uint64(b&0x7F) << shift 2948 if b < 0x80 { 2949 break 2950 } 2951 } 2952 intStringLen := int(stringLen) 2953 if intStringLen < 0 { 2954 return ErrInvalidLengthRepository 2955 } 2956 postIndex := iNdEx + intStringLen 2957 if postIndex < 0 { 2958 return ErrInvalidLengthRepository 2959 } 2960 if postIndex > l { 2961 return io.ErrUnexpectedEOF 2962 } 2963 m.AppProject = string(dAtA[iNdEx:postIndex]) 2964 iNdEx = postIndex 2965 case 4: 2966 if wireType != 0 { 2967 return fmt.Errorf("proto: wrong wireType = %d for field SourceIndex", wireType) 2968 } 2969 m.SourceIndex = 0 2970 for shift := uint(0); ; shift += 7 { 2971 if shift >= 64 { 2972 return ErrIntOverflowRepository 2973 } 2974 if iNdEx >= l { 2975 return io.ErrUnexpectedEOF 2976 } 2977 b := dAtA[iNdEx] 2978 iNdEx++ 2979 m.SourceIndex |= int32(b&0x7F) << shift 2980 if b < 0x80 { 2981 break 2982 } 2983 } 2984 case 5: 2985 if wireType != 0 { 2986 return fmt.Errorf("proto: wrong wireType = %d for field VersionId", wireType) 2987 } 2988 m.VersionId = 0 2989 for shift := uint(0); ; shift += 7 { 2990 if shift >= 64 { 2991 return ErrIntOverflowRepository 2992 } 2993 if iNdEx >= l { 2994 return io.ErrUnexpectedEOF 2995 } 2996 b := dAtA[iNdEx] 2997 iNdEx++ 2998 m.VersionId |= int32(b&0x7F) << shift 2999 if b < 0x80 { 3000 break 3001 } 3002 } 3003 default: 3004 iNdEx = preIndex 3005 skippy, err := skipRepository(dAtA[iNdEx:]) 3006 if err != nil { 3007 return err 3008 } 3009 if (skippy < 0) || (iNdEx+skippy) < 0 { 3010 return ErrInvalidLengthRepository 3011 } 3012 if (iNdEx + skippy) > l { 3013 return io.ErrUnexpectedEOF 3014 } 3015 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 3016 iNdEx += skippy 3017 } 3018 } 3019 3020 if iNdEx > l { 3021 return io.ErrUnexpectedEOF 3022 } 3023 return nil 3024 } 3025 func (m *RepoAppsResponse) Unmarshal(dAtA []byte) error { 3026 l := len(dAtA) 3027 iNdEx := 0 3028 for iNdEx < l { 3029 preIndex := iNdEx 3030 var wire uint64 3031 for shift := uint(0); ; shift += 7 { 3032 if shift >= 64 { 3033 return ErrIntOverflowRepository 3034 } 3035 if iNdEx >= l { 3036 return io.ErrUnexpectedEOF 3037 } 3038 b := dAtA[iNdEx] 3039 iNdEx++ 3040 wire |= uint64(b&0x7F) << shift 3041 if b < 0x80 { 3042 break 3043 } 3044 } 3045 fieldNum := int32(wire >> 3) 3046 wireType := int(wire & 0x7) 3047 if wireType == 4 { 3048 return fmt.Errorf("proto: RepoAppsResponse: wiretype end group for non-group") 3049 } 3050 if fieldNum <= 0 { 3051 return fmt.Errorf("proto: RepoAppsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 3052 } 3053 switch fieldNum { 3054 case 1: 3055 if wireType != 2 { 3056 return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) 3057 } 3058 var msglen int 3059 for shift := uint(0); ; shift += 7 { 3060 if shift >= 64 { 3061 return ErrIntOverflowRepository 3062 } 3063 if iNdEx >= l { 3064 return io.ErrUnexpectedEOF 3065 } 3066 b := dAtA[iNdEx] 3067 iNdEx++ 3068 msglen |= int(b&0x7F) << shift 3069 if b < 0x80 { 3070 break 3071 } 3072 } 3073 if msglen < 0 { 3074 return ErrInvalidLengthRepository 3075 } 3076 postIndex := iNdEx + msglen 3077 if postIndex < 0 { 3078 return ErrInvalidLengthRepository 3079 } 3080 if postIndex > l { 3081 return io.ErrUnexpectedEOF 3082 } 3083 m.Items = append(m.Items, &AppInfo{}) 3084 if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3085 return err 3086 } 3087 iNdEx = postIndex 3088 default: 3089 iNdEx = preIndex 3090 skippy, err := skipRepository(dAtA[iNdEx:]) 3091 if err != nil { 3092 return err 3093 } 3094 if (skippy < 0) || (iNdEx+skippy) < 0 { 3095 return ErrInvalidLengthRepository 3096 } 3097 if (iNdEx + skippy) > l { 3098 return io.ErrUnexpectedEOF 3099 } 3100 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 3101 iNdEx += skippy 3102 } 3103 } 3104 3105 if iNdEx > l { 3106 return io.ErrUnexpectedEOF 3107 } 3108 return nil 3109 } 3110 func (m *RepoQuery) Unmarshal(dAtA []byte) error { 3111 l := len(dAtA) 3112 iNdEx := 0 3113 for iNdEx < l { 3114 preIndex := iNdEx 3115 var wire uint64 3116 for shift := uint(0); ; shift += 7 { 3117 if shift >= 64 { 3118 return ErrIntOverflowRepository 3119 } 3120 if iNdEx >= l { 3121 return io.ErrUnexpectedEOF 3122 } 3123 b := dAtA[iNdEx] 3124 iNdEx++ 3125 wire |= uint64(b&0x7F) << shift 3126 if b < 0x80 { 3127 break 3128 } 3129 } 3130 fieldNum := int32(wire >> 3) 3131 wireType := int(wire & 0x7) 3132 if wireType == 4 { 3133 return fmt.Errorf("proto: RepoQuery: wiretype end group for non-group") 3134 } 3135 if fieldNum <= 0 { 3136 return fmt.Errorf("proto: RepoQuery: illegal tag %d (wire type %d)", fieldNum, wire) 3137 } 3138 switch fieldNum { 3139 case 1: 3140 if wireType != 2 { 3141 return fmt.Errorf("proto: wrong wireType = %d for field Repo", wireType) 3142 } 3143 var stringLen uint64 3144 for shift := uint(0); ; shift += 7 { 3145 if shift >= 64 { 3146 return ErrIntOverflowRepository 3147 } 3148 if iNdEx >= l { 3149 return io.ErrUnexpectedEOF 3150 } 3151 b := dAtA[iNdEx] 3152 iNdEx++ 3153 stringLen |= uint64(b&0x7F) << shift 3154 if b < 0x80 { 3155 break 3156 } 3157 } 3158 intStringLen := int(stringLen) 3159 if intStringLen < 0 { 3160 return ErrInvalidLengthRepository 3161 } 3162 postIndex := iNdEx + intStringLen 3163 if postIndex < 0 { 3164 return ErrInvalidLengthRepository 3165 } 3166 if postIndex > l { 3167 return io.ErrUnexpectedEOF 3168 } 3169 m.Repo = string(dAtA[iNdEx:postIndex]) 3170 iNdEx = postIndex 3171 case 2: 3172 if wireType != 0 { 3173 return fmt.Errorf("proto: wrong wireType = %d for field ForceRefresh", wireType) 3174 } 3175 var v int 3176 for shift := uint(0); ; shift += 7 { 3177 if shift >= 64 { 3178 return ErrIntOverflowRepository 3179 } 3180 if iNdEx >= l { 3181 return io.ErrUnexpectedEOF 3182 } 3183 b := dAtA[iNdEx] 3184 iNdEx++ 3185 v |= int(b&0x7F) << shift 3186 if b < 0x80 { 3187 break 3188 } 3189 } 3190 m.ForceRefresh = bool(v != 0) 3191 case 3: 3192 if wireType != 2 { 3193 return fmt.Errorf("proto: wrong wireType = %d for field AppProject", wireType) 3194 } 3195 var stringLen uint64 3196 for shift := uint(0); ; shift += 7 { 3197 if shift >= 64 { 3198 return ErrIntOverflowRepository 3199 } 3200 if iNdEx >= l { 3201 return io.ErrUnexpectedEOF 3202 } 3203 b := dAtA[iNdEx] 3204 iNdEx++ 3205 stringLen |= uint64(b&0x7F) << shift 3206 if b < 0x80 { 3207 break 3208 } 3209 } 3210 intStringLen := int(stringLen) 3211 if intStringLen < 0 { 3212 return ErrInvalidLengthRepository 3213 } 3214 postIndex := iNdEx + intStringLen 3215 if postIndex < 0 { 3216 return ErrInvalidLengthRepository 3217 } 3218 if postIndex > l { 3219 return io.ErrUnexpectedEOF 3220 } 3221 m.AppProject = string(dAtA[iNdEx:postIndex]) 3222 iNdEx = postIndex 3223 default: 3224 iNdEx = preIndex 3225 skippy, err := skipRepository(dAtA[iNdEx:]) 3226 if err != nil { 3227 return err 3228 } 3229 if (skippy < 0) || (iNdEx+skippy) < 0 { 3230 return ErrInvalidLengthRepository 3231 } 3232 if (iNdEx + skippy) > l { 3233 return io.ErrUnexpectedEOF 3234 } 3235 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 3236 iNdEx += skippy 3237 } 3238 } 3239 3240 if iNdEx > l { 3241 return io.ErrUnexpectedEOF 3242 } 3243 return nil 3244 } 3245 func (m *RepoAccessQuery) Unmarshal(dAtA []byte) error { 3246 l := len(dAtA) 3247 iNdEx := 0 3248 for iNdEx < l { 3249 preIndex := iNdEx 3250 var wire uint64 3251 for shift := uint(0); ; shift += 7 { 3252 if shift >= 64 { 3253 return ErrIntOverflowRepository 3254 } 3255 if iNdEx >= l { 3256 return io.ErrUnexpectedEOF 3257 } 3258 b := dAtA[iNdEx] 3259 iNdEx++ 3260 wire |= uint64(b&0x7F) << shift 3261 if b < 0x80 { 3262 break 3263 } 3264 } 3265 fieldNum := int32(wire >> 3) 3266 wireType := int(wire & 0x7) 3267 if wireType == 4 { 3268 return fmt.Errorf("proto: RepoAccessQuery: wiretype end group for non-group") 3269 } 3270 if fieldNum <= 0 { 3271 return fmt.Errorf("proto: RepoAccessQuery: illegal tag %d (wire type %d)", fieldNum, wire) 3272 } 3273 switch fieldNum { 3274 case 1: 3275 if wireType != 2 { 3276 return fmt.Errorf("proto: wrong wireType = %d for field Repo", wireType) 3277 } 3278 var stringLen uint64 3279 for shift := uint(0); ; shift += 7 { 3280 if shift >= 64 { 3281 return ErrIntOverflowRepository 3282 } 3283 if iNdEx >= l { 3284 return io.ErrUnexpectedEOF 3285 } 3286 b := dAtA[iNdEx] 3287 iNdEx++ 3288 stringLen |= uint64(b&0x7F) << shift 3289 if b < 0x80 { 3290 break 3291 } 3292 } 3293 intStringLen := int(stringLen) 3294 if intStringLen < 0 { 3295 return ErrInvalidLengthRepository 3296 } 3297 postIndex := iNdEx + intStringLen 3298 if postIndex < 0 { 3299 return ErrInvalidLengthRepository 3300 } 3301 if postIndex > l { 3302 return io.ErrUnexpectedEOF 3303 } 3304 m.Repo = string(dAtA[iNdEx:postIndex]) 3305 iNdEx = postIndex 3306 case 2: 3307 if wireType != 2 { 3308 return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType) 3309 } 3310 var stringLen uint64 3311 for shift := uint(0); ; shift += 7 { 3312 if shift >= 64 { 3313 return ErrIntOverflowRepository 3314 } 3315 if iNdEx >= l { 3316 return io.ErrUnexpectedEOF 3317 } 3318 b := dAtA[iNdEx] 3319 iNdEx++ 3320 stringLen |= uint64(b&0x7F) << shift 3321 if b < 0x80 { 3322 break 3323 } 3324 } 3325 intStringLen := int(stringLen) 3326 if intStringLen < 0 { 3327 return ErrInvalidLengthRepository 3328 } 3329 postIndex := iNdEx + intStringLen 3330 if postIndex < 0 { 3331 return ErrInvalidLengthRepository 3332 } 3333 if postIndex > l { 3334 return io.ErrUnexpectedEOF 3335 } 3336 m.Username = string(dAtA[iNdEx:postIndex]) 3337 iNdEx = postIndex 3338 case 3: 3339 if wireType != 2 { 3340 return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType) 3341 } 3342 var stringLen uint64 3343 for shift := uint(0); ; shift += 7 { 3344 if shift >= 64 { 3345 return ErrIntOverflowRepository 3346 } 3347 if iNdEx >= l { 3348 return io.ErrUnexpectedEOF 3349 } 3350 b := dAtA[iNdEx] 3351 iNdEx++ 3352 stringLen |= uint64(b&0x7F) << shift 3353 if b < 0x80 { 3354 break 3355 } 3356 } 3357 intStringLen := int(stringLen) 3358 if intStringLen < 0 { 3359 return ErrInvalidLengthRepository 3360 } 3361 postIndex := iNdEx + intStringLen 3362 if postIndex < 0 { 3363 return ErrInvalidLengthRepository 3364 } 3365 if postIndex > l { 3366 return io.ErrUnexpectedEOF 3367 } 3368 m.Password = string(dAtA[iNdEx:postIndex]) 3369 iNdEx = postIndex 3370 case 4: 3371 if wireType != 2 { 3372 return fmt.Errorf("proto: wrong wireType = %d for field SshPrivateKey", wireType) 3373 } 3374 var stringLen uint64 3375 for shift := uint(0); ; shift += 7 { 3376 if shift >= 64 { 3377 return ErrIntOverflowRepository 3378 } 3379 if iNdEx >= l { 3380 return io.ErrUnexpectedEOF 3381 } 3382 b := dAtA[iNdEx] 3383 iNdEx++ 3384 stringLen |= uint64(b&0x7F) << shift 3385 if b < 0x80 { 3386 break 3387 } 3388 } 3389 intStringLen := int(stringLen) 3390 if intStringLen < 0 { 3391 return ErrInvalidLengthRepository 3392 } 3393 postIndex := iNdEx + intStringLen 3394 if postIndex < 0 { 3395 return ErrInvalidLengthRepository 3396 } 3397 if postIndex > l { 3398 return io.ErrUnexpectedEOF 3399 } 3400 m.SshPrivateKey = string(dAtA[iNdEx:postIndex]) 3401 iNdEx = postIndex 3402 case 5: 3403 if wireType != 0 { 3404 return fmt.Errorf("proto: wrong wireType = %d for field Insecure", wireType) 3405 } 3406 var v int 3407 for shift := uint(0); ; shift += 7 { 3408 if shift >= 64 { 3409 return ErrIntOverflowRepository 3410 } 3411 if iNdEx >= l { 3412 return io.ErrUnexpectedEOF 3413 } 3414 b := dAtA[iNdEx] 3415 iNdEx++ 3416 v |= int(b&0x7F) << shift 3417 if b < 0x80 { 3418 break 3419 } 3420 } 3421 m.Insecure = bool(v != 0) 3422 case 6: 3423 if wireType != 2 { 3424 return fmt.Errorf("proto: wrong wireType = %d for field TlsClientCertData", wireType) 3425 } 3426 var stringLen uint64 3427 for shift := uint(0); ; shift += 7 { 3428 if shift >= 64 { 3429 return ErrIntOverflowRepository 3430 } 3431 if iNdEx >= l { 3432 return io.ErrUnexpectedEOF 3433 } 3434 b := dAtA[iNdEx] 3435 iNdEx++ 3436 stringLen |= uint64(b&0x7F) << shift 3437 if b < 0x80 { 3438 break 3439 } 3440 } 3441 intStringLen := int(stringLen) 3442 if intStringLen < 0 { 3443 return ErrInvalidLengthRepository 3444 } 3445 postIndex := iNdEx + intStringLen 3446 if postIndex < 0 { 3447 return ErrInvalidLengthRepository 3448 } 3449 if postIndex > l { 3450 return io.ErrUnexpectedEOF 3451 } 3452 m.TlsClientCertData = string(dAtA[iNdEx:postIndex]) 3453 iNdEx = postIndex 3454 case 7: 3455 if wireType != 2 { 3456 return fmt.Errorf("proto: wrong wireType = %d for field TlsClientCertKey", wireType) 3457 } 3458 var stringLen uint64 3459 for shift := uint(0); ; shift += 7 { 3460 if shift >= 64 { 3461 return ErrIntOverflowRepository 3462 } 3463 if iNdEx >= l { 3464 return io.ErrUnexpectedEOF 3465 } 3466 b := dAtA[iNdEx] 3467 iNdEx++ 3468 stringLen |= uint64(b&0x7F) << shift 3469 if b < 0x80 { 3470 break 3471 } 3472 } 3473 intStringLen := int(stringLen) 3474 if intStringLen < 0 { 3475 return ErrInvalidLengthRepository 3476 } 3477 postIndex := iNdEx + intStringLen 3478 if postIndex < 0 { 3479 return ErrInvalidLengthRepository 3480 } 3481 if postIndex > l { 3482 return io.ErrUnexpectedEOF 3483 } 3484 m.TlsClientCertKey = string(dAtA[iNdEx:postIndex]) 3485 iNdEx = postIndex 3486 case 9: 3487 if wireType != 2 { 3488 return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) 3489 } 3490 var stringLen uint64 3491 for shift := uint(0); ; shift += 7 { 3492 if shift >= 64 { 3493 return ErrIntOverflowRepository 3494 } 3495 if iNdEx >= l { 3496 return io.ErrUnexpectedEOF 3497 } 3498 b := dAtA[iNdEx] 3499 iNdEx++ 3500 stringLen |= uint64(b&0x7F) << shift 3501 if b < 0x80 { 3502 break 3503 } 3504 } 3505 intStringLen := int(stringLen) 3506 if intStringLen < 0 { 3507 return ErrInvalidLengthRepository 3508 } 3509 postIndex := iNdEx + intStringLen 3510 if postIndex < 0 { 3511 return ErrInvalidLengthRepository 3512 } 3513 if postIndex > l { 3514 return io.ErrUnexpectedEOF 3515 } 3516 m.Type = string(dAtA[iNdEx:postIndex]) 3517 iNdEx = postIndex 3518 case 10: 3519 if wireType != 2 { 3520 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 3521 } 3522 var stringLen uint64 3523 for shift := uint(0); ; shift += 7 { 3524 if shift >= 64 { 3525 return ErrIntOverflowRepository 3526 } 3527 if iNdEx >= l { 3528 return io.ErrUnexpectedEOF 3529 } 3530 b := dAtA[iNdEx] 3531 iNdEx++ 3532 stringLen |= uint64(b&0x7F) << shift 3533 if b < 0x80 { 3534 break 3535 } 3536 } 3537 intStringLen := int(stringLen) 3538 if intStringLen < 0 { 3539 return ErrInvalidLengthRepository 3540 } 3541 postIndex := iNdEx + intStringLen 3542 if postIndex < 0 { 3543 return ErrInvalidLengthRepository 3544 } 3545 if postIndex > l { 3546 return io.ErrUnexpectedEOF 3547 } 3548 m.Name = string(dAtA[iNdEx:postIndex]) 3549 iNdEx = postIndex 3550 case 11: 3551 if wireType != 0 { 3552 return fmt.Errorf("proto: wrong wireType = %d for field EnableOci", wireType) 3553 } 3554 var v int 3555 for shift := uint(0); ; shift += 7 { 3556 if shift >= 64 { 3557 return ErrIntOverflowRepository 3558 } 3559 if iNdEx >= l { 3560 return io.ErrUnexpectedEOF 3561 } 3562 b := dAtA[iNdEx] 3563 iNdEx++ 3564 v |= int(b&0x7F) << shift 3565 if b < 0x80 { 3566 break 3567 } 3568 } 3569 m.EnableOci = bool(v != 0) 3570 case 12: 3571 if wireType != 2 { 3572 return fmt.Errorf("proto: wrong wireType = %d for field GithubAppPrivateKey", wireType) 3573 } 3574 var stringLen uint64 3575 for shift := uint(0); ; shift += 7 { 3576 if shift >= 64 { 3577 return ErrIntOverflowRepository 3578 } 3579 if iNdEx >= l { 3580 return io.ErrUnexpectedEOF 3581 } 3582 b := dAtA[iNdEx] 3583 iNdEx++ 3584 stringLen |= uint64(b&0x7F) << shift 3585 if b < 0x80 { 3586 break 3587 } 3588 } 3589 intStringLen := int(stringLen) 3590 if intStringLen < 0 { 3591 return ErrInvalidLengthRepository 3592 } 3593 postIndex := iNdEx + intStringLen 3594 if postIndex < 0 { 3595 return ErrInvalidLengthRepository 3596 } 3597 if postIndex > l { 3598 return io.ErrUnexpectedEOF 3599 } 3600 m.GithubAppPrivateKey = string(dAtA[iNdEx:postIndex]) 3601 iNdEx = postIndex 3602 case 13: 3603 if wireType != 0 { 3604 return fmt.Errorf("proto: wrong wireType = %d for field GithubAppID", wireType) 3605 } 3606 m.GithubAppID = 0 3607 for shift := uint(0); ; shift += 7 { 3608 if shift >= 64 { 3609 return ErrIntOverflowRepository 3610 } 3611 if iNdEx >= l { 3612 return io.ErrUnexpectedEOF 3613 } 3614 b := dAtA[iNdEx] 3615 iNdEx++ 3616 m.GithubAppID |= int64(b&0x7F) << shift 3617 if b < 0x80 { 3618 break 3619 } 3620 } 3621 case 14: 3622 if wireType != 0 { 3623 return fmt.Errorf("proto: wrong wireType = %d for field GithubAppInstallationID", wireType) 3624 } 3625 m.GithubAppInstallationID = 0 3626 for shift := uint(0); ; shift += 7 { 3627 if shift >= 64 { 3628 return ErrIntOverflowRepository 3629 } 3630 if iNdEx >= l { 3631 return io.ErrUnexpectedEOF 3632 } 3633 b := dAtA[iNdEx] 3634 iNdEx++ 3635 m.GithubAppInstallationID |= int64(b&0x7F) << shift 3636 if b < 0x80 { 3637 break 3638 } 3639 } 3640 case 15: 3641 if wireType != 2 { 3642 return fmt.Errorf("proto: wrong wireType = %d for field GithubAppEnterpriseBaseUrl", wireType) 3643 } 3644 var stringLen uint64 3645 for shift := uint(0); ; shift += 7 { 3646 if shift >= 64 { 3647 return ErrIntOverflowRepository 3648 } 3649 if iNdEx >= l { 3650 return io.ErrUnexpectedEOF 3651 } 3652 b := dAtA[iNdEx] 3653 iNdEx++ 3654 stringLen |= uint64(b&0x7F) << shift 3655 if b < 0x80 { 3656 break 3657 } 3658 } 3659 intStringLen := int(stringLen) 3660 if intStringLen < 0 { 3661 return ErrInvalidLengthRepository 3662 } 3663 postIndex := iNdEx + intStringLen 3664 if postIndex < 0 { 3665 return ErrInvalidLengthRepository 3666 } 3667 if postIndex > l { 3668 return io.ErrUnexpectedEOF 3669 } 3670 m.GithubAppEnterpriseBaseUrl = string(dAtA[iNdEx:postIndex]) 3671 iNdEx = postIndex 3672 case 16: 3673 if wireType != 2 { 3674 return fmt.Errorf("proto: wrong wireType = %d for field Proxy", wireType) 3675 } 3676 var stringLen uint64 3677 for shift := uint(0); ; shift += 7 { 3678 if shift >= 64 { 3679 return ErrIntOverflowRepository 3680 } 3681 if iNdEx >= l { 3682 return io.ErrUnexpectedEOF 3683 } 3684 b := dAtA[iNdEx] 3685 iNdEx++ 3686 stringLen |= uint64(b&0x7F) << shift 3687 if b < 0x80 { 3688 break 3689 } 3690 } 3691 intStringLen := int(stringLen) 3692 if intStringLen < 0 { 3693 return ErrInvalidLengthRepository 3694 } 3695 postIndex := iNdEx + intStringLen 3696 if postIndex < 0 { 3697 return ErrInvalidLengthRepository 3698 } 3699 if postIndex > l { 3700 return io.ErrUnexpectedEOF 3701 } 3702 m.Proxy = string(dAtA[iNdEx:postIndex]) 3703 iNdEx = postIndex 3704 case 17: 3705 if wireType != 2 { 3706 return fmt.Errorf("proto: wrong wireType = %d for field Project", wireType) 3707 } 3708 var stringLen uint64 3709 for shift := uint(0); ; shift += 7 { 3710 if shift >= 64 { 3711 return ErrIntOverflowRepository 3712 } 3713 if iNdEx >= l { 3714 return io.ErrUnexpectedEOF 3715 } 3716 b := dAtA[iNdEx] 3717 iNdEx++ 3718 stringLen |= uint64(b&0x7F) << shift 3719 if b < 0x80 { 3720 break 3721 } 3722 } 3723 intStringLen := int(stringLen) 3724 if intStringLen < 0 { 3725 return ErrInvalidLengthRepository 3726 } 3727 postIndex := iNdEx + intStringLen 3728 if postIndex < 0 { 3729 return ErrInvalidLengthRepository 3730 } 3731 if postIndex > l { 3732 return io.ErrUnexpectedEOF 3733 } 3734 m.Project = string(dAtA[iNdEx:postIndex]) 3735 iNdEx = postIndex 3736 case 18: 3737 if wireType != 2 { 3738 return fmt.Errorf("proto: wrong wireType = %d for field GcpServiceAccountKey", wireType) 3739 } 3740 var stringLen uint64 3741 for shift := uint(0); ; shift += 7 { 3742 if shift >= 64 { 3743 return ErrIntOverflowRepository 3744 } 3745 if iNdEx >= l { 3746 return io.ErrUnexpectedEOF 3747 } 3748 b := dAtA[iNdEx] 3749 iNdEx++ 3750 stringLen |= uint64(b&0x7F) << shift 3751 if b < 0x80 { 3752 break 3753 } 3754 } 3755 intStringLen := int(stringLen) 3756 if intStringLen < 0 { 3757 return ErrInvalidLengthRepository 3758 } 3759 postIndex := iNdEx + intStringLen 3760 if postIndex < 0 { 3761 return ErrInvalidLengthRepository 3762 } 3763 if postIndex > l { 3764 return io.ErrUnexpectedEOF 3765 } 3766 m.GcpServiceAccountKey = string(dAtA[iNdEx:postIndex]) 3767 iNdEx = postIndex 3768 case 19: 3769 if wireType != 0 { 3770 return fmt.Errorf("proto: wrong wireType = %d for field ForceHttpBasicAuth", wireType) 3771 } 3772 var v int 3773 for shift := uint(0); ; shift += 7 { 3774 if shift >= 64 { 3775 return ErrIntOverflowRepository 3776 } 3777 if iNdEx >= l { 3778 return io.ErrUnexpectedEOF 3779 } 3780 b := dAtA[iNdEx] 3781 iNdEx++ 3782 v |= int(b&0x7F) << shift 3783 if b < 0x80 { 3784 break 3785 } 3786 } 3787 m.ForceHttpBasicAuth = bool(v != 0) 3788 case 20: 3789 if wireType != 0 { 3790 return fmt.Errorf("proto: wrong wireType = %d for field UseAzureWorkloadIdentity", wireType) 3791 } 3792 var v int 3793 for shift := uint(0); ; shift += 7 { 3794 if shift >= 64 { 3795 return ErrIntOverflowRepository 3796 } 3797 if iNdEx >= l { 3798 return io.ErrUnexpectedEOF 3799 } 3800 b := dAtA[iNdEx] 3801 iNdEx++ 3802 v |= int(b&0x7F) << shift 3803 if b < 0x80 { 3804 break 3805 } 3806 } 3807 m.UseAzureWorkloadIdentity = bool(v != 0) 3808 case 21: 3809 if wireType != 2 { 3810 return fmt.Errorf("proto: wrong wireType = %d for field BearerToken", wireType) 3811 } 3812 var stringLen uint64 3813 for shift := uint(0); ; shift += 7 { 3814 if shift >= 64 { 3815 return ErrIntOverflowRepository 3816 } 3817 if iNdEx >= l { 3818 return io.ErrUnexpectedEOF 3819 } 3820 b := dAtA[iNdEx] 3821 iNdEx++ 3822 stringLen |= uint64(b&0x7F) << shift 3823 if b < 0x80 { 3824 break 3825 } 3826 } 3827 intStringLen := int(stringLen) 3828 if intStringLen < 0 { 3829 return ErrInvalidLengthRepository 3830 } 3831 postIndex := iNdEx + intStringLen 3832 if postIndex < 0 { 3833 return ErrInvalidLengthRepository 3834 } 3835 if postIndex > l { 3836 return io.ErrUnexpectedEOF 3837 } 3838 m.BearerToken = string(dAtA[iNdEx:postIndex]) 3839 iNdEx = postIndex 3840 case 22: 3841 if wireType != 0 { 3842 return fmt.Errorf("proto: wrong wireType = %d for field InsecureOciForceHttp", wireType) 3843 } 3844 var v int 3845 for shift := uint(0); ; shift += 7 { 3846 if shift >= 64 { 3847 return ErrIntOverflowRepository 3848 } 3849 if iNdEx >= l { 3850 return io.ErrUnexpectedEOF 3851 } 3852 b := dAtA[iNdEx] 3853 iNdEx++ 3854 v |= int(b&0x7F) << shift 3855 if b < 0x80 { 3856 break 3857 } 3858 } 3859 m.InsecureOciForceHttp = bool(v != 0) 3860 default: 3861 iNdEx = preIndex 3862 skippy, err := skipRepository(dAtA[iNdEx:]) 3863 if err != nil { 3864 return err 3865 } 3866 if (skippy < 0) || (iNdEx+skippy) < 0 { 3867 return ErrInvalidLengthRepository 3868 } 3869 if (iNdEx + skippy) > l { 3870 return io.ErrUnexpectedEOF 3871 } 3872 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 3873 iNdEx += skippy 3874 } 3875 } 3876 3877 if iNdEx > l { 3878 return io.ErrUnexpectedEOF 3879 } 3880 return nil 3881 } 3882 func (m *RepoResponse) Unmarshal(dAtA []byte) error { 3883 l := len(dAtA) 3884 iNdEx := 0 3885 for iNdEx < l { 3886 preIndex := iNdEx 3887 var wire uint64 3888 for shift := uint(0); ; shift += 7 { 3889 if shift >= 64 { 3890 return ErrIntOverflowRepository 3891 } 3892 if iNdEx >= l { 3893 return io.ErrUnexpectedEOF 3894 } 3895 b := dAtA[iNdEx] 3896 iNdEx++ 3897 wire |= uint64(b&0x7F) << shift 3898 if b < 0x80 { 3899 break 3900 } 3901 } 3902 fieldNum := int32(wire >> 3) 3903 wireType := int(wire & 0x7) 3904 if wireType == 4 { 3905 return fmt.Errorf("proto: RepoResponse: wiretype end group for non-group") 3906 } 3907 if fieldNum <= 0 { 3908 return fmt.Errorf("proto: RepoResponse: illegal tag %d (wire type %d)", fieldNum, wire) 3909 } 3910 switch fieldNum { 3911 default: 3912 iNdEx = preIndex 3913 skippy, err := skipRepository(dAtA[iNdEx:]) 3914 if err != nil { 3915 return err 3916 } 3917 if (skippy < 0) || (iNdEx+skippy) < 0 { 3918 return ErrInvalidLengthRepository 3919 } 3920 if (iNdEx + skippy) > l { 3921 return io.ErrUnexpectedEOF 3922 } 3923 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 3924 iNdEx += skippy 3925 } 3926 } 3927 3928 if iNdEx > l { 3929 return io.ErrUnexpectedEOF 3930 } 3931 return nil 3932 } 3933 func (m *RepoCreateRequest) Unmarshal(dAtA []byte) error { 3934 l := len(dAtA) 3935 iNdEx := 0 3936 for iNdEx < l { 3937 preIndex := iNdEx 3938 var wire uint64 3939 for shift := uint(0); ; shift += 7 { 3940 if shift >= 64 { 3941 return ErrIntOverflowRepository 3942 } 3943 if iNdEx >= l { 3944 return io.ErrUnexpectedEOF 3945 } 3946 b := dAtA[iNdEx] 3947 iNdEx++ 3948 wire |= uint64(b&0x7F) << shift 3949 if b < 0x80 { 3950 break 3951 } 3952 } 3953 fieldNum := int32(wire >> 3) 3954 wireType := int(wire & 0x7) 3955 if wireType == 4 { 3956 return fmt.Errorf("proto: RepoCreateRequest: wiretype end group for non-group") 3957 } 3958 if fieldNum <= 0 { 3959 return fmt.Errorf("proto: RepoCreateRequest: illegal tag %d (wire type %d)", fieldNum, wire) 3960 } 3961 switch fieldNum { 3962 case 1: 3963 if wireType != 2 { 3964 return fmt.Errorf("proto: wrong wireType = %d for field Repo", wireType) 3965 } 3966 var msglen int 3967 for shift := uint(0); ; shift += 7 { 3968 if shift >= 64 { 3969 return ErrIntOverflowRepository 3970 } 3971 if iNdEx >= l { 3972 return io.ErrUnexpectedEOF 3973 } 3974 b := dAtA[iNdEx] 3975 iNdEx++ 3976 msglen |= int(b&0x7F) << shift 3977 if b < 0x80 { 3978 break 3979 } 3980 } 3981 if msglen < 0 { 3982 return ErrInvalidLengthRepository 3983 } 3984 postIndex := iNdEx + msglen 3985 if postIndex < 0 { 3986 return ErrInvalidLengthRepository 3987 } 3988 if postIndex > l { 3989 return io.ErrUnexpectedEOF 3990 } 3991 if m.Repo == nil { 3992 m.Repo = &v1alpha1.Repository{} 3993 } 3994 if err := m.Repo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3995 return err 3996 } 3997 iNdEx = postIndex 3998 case 2: 3999 if wireType != 0 { 4000 return fmt.Errorf("proto: wrong wireType = %d for field Upsert", wireType) 4001 } 4002 var v int 4003 for shift := uint(0); ; shift += 7 { 4004 if shift >= 64 { 4005 return ErrIntOverflowRepository 4006 } 4007 if iNdEx >= l { 4008 return io.ErrUnexpectedEOF 4009 } 4010 b := dAtA[iNdEx] 4011 iNdEx++ 4012 v |= int(b&0x7F) << shift 4013 if b < 0x80 { 4014 break 4015 } 4016 } 4017 m.Upsert = bool(v != 0) 4018 case 3: 4019 if wireType != 0 { 4020 return fmt.Errorf("proto: wrong wireType = %d for field CredsOnly", wireType) 4021 } 4022 var v int 4023 for shift := uint(0); ; shift += 7 { 4024 if shift >= 64 { 4025 return ErrIntOverflowRepository 4026 } 4027 if iNdEx >= l { 4028 return io.ErrUnexpectedEOF 4029 } 4030 b := dAtA[iNdEx] 4031 iNdEx++ 4032 v |= int(b&0x7F) << shift 4033 if b < 0x80 { 4034 break 4035 } 4036 } 4037 m.CredsOnly = bool(v != 0) 4038 default: 4039 iNdEx = preIndex 4040 skippy, err := skipRepository(dAtA[iNdEx:]) 4041 if err != nil { 4042 return err 4043 } 4044 if (skippy < 0) || (iNdEx+skippy) < 0 { 4045 return ErrInvalidLengthRepository 4046 } 4047 if (iNdEx + skippy) > l { 4048 return io.ErrUnexpectedEOF 4049 } 4050 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4051 iNdEx += skippy 4052 } 4053 } 4054 4055 if iNdEx > l { 4056 return io.ErrUnexpectedEOF 4057 } 4058 return nil 4059 } 4060 func (m *RepoUpdateRequest) Unmarshal(dAtA []byte) error { 4061 l := len(dAtA) 4062 iNdEx := 0 4063 for iNdEx < l { 4064 preIndex := iNdEx 4065 var wire uint64 4066 for shift := uint(0); ; shift += 7 { 4067 if shift >= 64 { 4068 return ErrIntOverflowRepository 4069 } 4070 if iNdEx >= l { 4071 return io.ErrUnexpectedEOF 4072 } 4073 b := dAtA[iNdEx] 4074 iNdEx++ 4075 wire |= uint64(b&0x7F) << shift 4076 if b < 0x80 { 4077 break 4078 } 4079 } 4080 fieldNum := int32(wire >> 3) 4081 wireType := int(wire & 0x7) 4082 if wireType == 4 { 4083 return fmt.Errorf("proto: RepoUpdateRequest: wiretype end group for non-group") 4084 } 4085 if fieldNum <= 0 { 4086 return fmt.Errorf("proto: RepoUpdateRequest: illegal tag %d (wire type %d)", fieldNum, wire) 4087 } 4088 switch fieldNum { 4089 case 1: 4090 if wireType != 2 { 4091 return fmt.Errorf("proto: wrong wireType = %d for field Repo", wireType) 4092 } 4093 var msglen int 4094 for shift := uint(0); ; shift += 7 { 4095 if shift >= 64 { 4096 return ErrIntOverflowRepository 4097 } 4098 if iNdEx >= l { 4099 return io.ErrUnexpectedEOF 4100 } 4101 b := dAtA[iNdEx] 4102 iNdEx++ 4103 msglen |= int(b&0x7F) << shift 4104 if b < 0x80 { 4105 break 4106 } 4107 } 4108 if msglen < 0 { 4109 return ErrInvalidLengthRepository 4110 } 4111 postIndex := iNdEx + msglen 4112 if postIndex < 0 { 4113 return ErrInvalidLengthRepository 4114 } 4115 if postIndex > l { 4116 return io.ErrUnexpectedEOF 4117 } 4118 if m.Repo == nil { 4119 m.Repo = &v1alpha1.Repository{} 4120 } 4121 if err := m.Repo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4122 return err 4123 } 4124 iNdEx = postIndex 4125 default: 4126 iNdEx = preIndex 4127 skippy, err := skipRepository(dAtA[iNdEx:]) 4128 if err != nil { 4129 return err 4130 } 4131 if (skippy < 0) || (iNdEx+skippy) < 0 { 4132 return ErrInvalidLengthRepository 4133 } 4134 if (iNdEx + skippy) > l { 4135 return io.ErrUnexpectedEOF 4136 } 4137 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4138 iNdEx += skippy 4139 } 4140 } 4141 4142 if iNdEx > l { 4143 return io.ErrUnexpectedEOF 4144 } 4145 return nil 4146 } 4147 func skipRepository(dAtA []byte) (n int, err error) { 4148 l := len(dAtA) 4149 iNdEx := 0 4150 depth := 0 4151 for iNdEx < l { 4152 var wire uint64 4153 for shift := uint(0); ; shift += 7 { 4154 if shift >= 64 { 4155 return 0, ErrIntOverflowRepository 4156 } 4157 if iNdEx >= l { 4158 return 0, io.ErrUnexpectedEOF 4159 } 4160 b := dAtA[iNdEx] 4161 iNdEx++ 4162 wire |= (uint64(b) & 0x7F) << shift 4163 if b < 0x80 { 4164 break 4165 } 4166 } 4167 wireType := int(wire & 0x7) 4168 switch wireType { 4169 case 0: 4170 for shift := uint(0); ; shift += 7 { 4171 if shift >= 64 { 4172 return 0, ErrIntOverflowRepository 4173 } 4174 if iNdEx >= l { 4175 return 0, io.ErrUnexpectedEOF 4176 } 4177 iNdEx++ 4178 if dAtA[iNdEx-1] < 0x80 { 4179 break 4180 } 4181 } 4182 case 1: 4183 iNdEx += 8 4184 case 2: 4185 var length int 4186 for shift := uint(0); ; shift += 7 { 4187 if shift >= 64 { 4188 return 0, ErrIntOverflowRepository 4189 } 4190 if iNdEx >= l { 4191 return 0, io.ErrUnexpectedEOF 4192 } 4193 b := dAtA[iNdEx] 4194 iNdEx++ 4195 length |= (int(b) & 0x7F) << shift 4196 if b < 0x80 { 4197 break 4198 } 4199 } 4200 if length < 0 { 4201 return 0, ErrInvalidLengthRepository 4202 } 4203 iNdEx += length 4204 case 3: 4205 depth++ 4206 case 4: 4207 if depth == 0 { 4208 return 0, ErrUnexpectedEndOfGroupRepository 4209 } 4210 depth-- 4211 case 5: 4212 iNdEx += 4 4213 default: 4214 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 4215 } 4216 if iNdEx < 0 { 4217 return 0, ErrInvalidLengthRepository 4218 } 4219 if depth == 0 { 4220 return iNdEx, nil 4221 } 4222 } 4223 return 0, io.ErrUnexpectedEOF 4224 } 4225 4226 var ( 4227 ErrInvalidLengthRepository = fmt.Errorf("proto: negative length found during unmarshaling") 4228 ErrIntOverflowRepository = fmt.Errorf("proto: integer overflow") 4229 ErrUnexpectedEndOfGroupRepository = fmt.Errorf("proto: unexpected end of group") 4230 )