github.com/argoproj/argo-cd@v1.8.7/reposerver/apiclient/repository.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: reposerver/repository/repository.proto 3 4 package apiclient 5 6 import ( 7 context "context" 8 fmt "fmt" 9 v1alpha1 "github.com/argoproj/argo-cd/pkg/apis/application/v1alpha1" 10 _ "github.com/gogo/protobuf/gogoproto" 11 proto "github.com/gogo/protobuf/proto" 12 _ "google.golang.org/genproto/googleapis/api/annotations" 13 grpc "google.golang.org/grpc" 14 codes "google.golang.org/grpc/codes" 15 status "google.golang.org/grpc/status" 16 io "io" 17 _ "k8s.io/api/core/v1" 18 math "math" 19 math_bits "math/bits" 20 ) 21 22 // Reference imports to suppress errors if they are not otherwise used. 23 var _ = proto.Marshal 24 var _ = fmt.Errorf 25 var _ = math.Inf 26 27 // This is a compile-time assertion to ensure that this generated file 28 // is compatible with the proto package it is being compiled against. 29 // A compilation error at this line likely means your copy of the 30 // proto package needs to be updated. 31 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 32 33 // ManifestRequest is a query for manifest generation. 34 type ManifestRequest struct { 35 Repo *v1alpha1.Repository `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` 36 // revision, potentially un-resolved 37 Revision string `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` 38 NoCache bool `protobuf:"varint,3,opt,name=noCache,proto3" json:"noCache,omitempty"` 39 AppLabelKey string `protobuf:"bytes,4,opt,name=appLabelKey,proto3" json:"appLabelKey,omitempty"` 40 AppLabelValue string `protobuf:"bytes,5,opt,name=appLabelValue,proto3" json:"appLabelValue,omitempty"` 41 Namespace string `protobuf:"bytes,8,opt,name=namespace,proto3" json:"namespace,omitempty"` 42 ApplicationSource *v1alpha1.ApplicationSource `protobuf:"bytes,10,opt,name=applicationSource,proto3" json:"applicationSource,omitempty"` 43 Repos []*v1alpha1.Repository `protobuf:"bytes,11,rep,name=repos,proto3" json:"repos,omitempty"` 44 Plugins []*v1alpha1.ConfigManagementPlugin `protobuf:"bytes,12,rep,name=plugins,proto3" json:"plugins,omitempty"` 45 KustomizeOptions *v1alpha1.KustomizeOptions `protobuf:"bytes,13,opt,name=kustomizeOptions,proto3" json:"kustomizeOptions,omitempty"` 46 KubeVersion string `protobuf:"bytes,14,opt,name=kubeVersion,proto3" json:"kubeVersion,omitempty"` 47 ApiVersions []string `protobuf:"bytes,15,rep,name=apiVersions,proto3" json:"apiVersions,omitempty"` 48 // Request to verify the signature when generating the manifests (only for Git repositories) 49 VerifySignature bool `protobuf:"varint,16,opt,name=verifySignature,proto3" json:"verifySignature,omitempty"` 50 XXX_NoUnkeyedLiteral struct{} `json:"-"` 51 XXX_unrecognized []byte `json:"-"` 52 XXX_sizecache int32 `json:"-"` 53 } 54 55 func (m *ManifestRequest) Reset() { *m = ManifestRequest{} } 56 func (m *ManifestRequest) String() string { return proto.CompactTextString(m) } 57 func (*ManifestRequest) ProtoMessage() {} 58 func (*ManifestRequest) Descriptor() ([]byte, []int) { 59 return fileDescriptor_dd8723cfcc820480, []int{0} 60 } 61 func (m *ManifestRequest) XXX_Unmarshal(b []byte) error { 62 return m.Unmarshal(b) 63 } 64 func (m *ManifestRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 65 if deterministic { 66 return xxx_messageInfo_ManifestRequest.Marshal(b, m, deterministic) 67 } else { 68 b = b[:cap(b)] 69 n, err := m.MarshalToSizedBuffer(b) 70 if err != nil { 71 return nil, err 72 } 73 return b[:n], nil 74 } 75 } 76 func (m *ManifestRequest) XXX_Merge(src proto.Message) { 77 xxx_messageInfo_ManifestRequest.Merge(m, src) 78 } 79 func (m *ManifestRequest) XXX_Size() int { 80 return m.Size() 81 } 82 func (m *ManifestRequest) XXX_DiscardUnknown() { 83 xxx_messageInfo_ManifestRequest.DiscardUnknown(m) 84 } 85 86 var xxx_messageInfo_ManifestRequest proto.InternalMessageInfo 87 88 func (m *ManifestRequest) GetRepo() *v1alpha1.Repository { 89 if m != nil { 90 return m.Repo 91 } 92 return nil 93 } 94 95 func (m *ManifestRequest) GetRevision() string { 96 if m != nil { 97 return m.Revision 98 } 99 return "" 100 } 101 102 func (m *ManifestRequest) GetNoCache() bool { 103 if m != nil { 104 return m.NoCache 105 } 106 return false 107 } 108 109 func (m *ManifestRequest) GetAppLabelKey() string { 110 if m != nil { 111 return m.AppLabelKey 112 } 113 return "" 114 } 115 116 func (m *ManifestRequest) GetAppLabelValue() string { 117 if m != nil { 118 return m.AppLabelValue 119 } 120 return "" 121 } 122 123 func (m *ManifestRequest) GetNamespace() string { 124 if m != nil { 125 return m.Namespace 126 } 127 return "" 128 } 129 130 func (m *ManifestRequest) GetApplicationSource() *v1alpha1.ApplicationSource { 131 if m != nil { 132 return m.ApplicationSource 133 } 134 return nil 135 } 136 137 func (m *ManifestRequest) GetRepos() []*v1alpha1.Repository { 138 if m != nil { 139 return m.Repos 140 } 141 return nil 142 } 143 144 func (m *ManifestRequest) GetPlugins() []*v1alpha1.ConfigManagementPlugin { 145 if m != nil { 146 return m.Plugins 147 } 148 return nil 149 } 150 151 func (m *ManifestRequest) GetKustomizeOptions() *v1alpha1.KustomizeOptions { 152 if m != nil { 153 return m.KustomizeOptions 154 } 155 return nil 156 } 157 158 func (m *ManifestRequest) GetKubeVersion() string { 159 if m != nil { 160 return m.KubeVersion 161 } 162 return "" 163 } 164 165 func (m *ManifestRequest) GetApiVersions() []string { 166 if m != nil { 167 return m.ApiVersions 168 } 169 return nil 170 } 171 172 func (m *ManifestRequest) GetVerifySignature() bool { 173 if m != nil { 174 return m.VerifySignature 175 } 176 return false 177 } 178 179 type ManifestResponse struct { 180 Manifests []string `protobuf:"bytes,1,rep,name=manifests,proto3" json:"manifests,omitempty"` 181 Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` 182 Server string `protobuf:"bytes,3,opt,name=server,proto3" json:"server,omitempty"` 183 // resolved revision 184 Revision string `protobuf:"bytes,4,opt,name=revision,proto3" json:"revision,omitempty"` 185 SourceType string `protobuf:"bytes,6,opt,name=sourceType,proto3" json:"sourceType,omitempty"` 186 // Raw response of git verify-commit operation (always the empty string for Helm) 187 VerifyResult string `protobuf:"bytes,7,opt,name=verifyResult,proto3" json:"verifyResult,omitempty"` 188 XXX_NoUnkeyedLiteral struct{} `json:"-"` 189 XXX_unrecognized []byte `json:"-"` 190 XXX_sizecache int32 `json:"-"` 191 } 192 193 func (m *ManifestResponse) Reset() { *m = ManifestResponse{} } 194 func (m *ManifestResponse) String() string { return proto.CompactTextString(m) } 195 func (*ManifestResponse) ProtoMessage() {} 196 func (*ManifestResponse) Descriptor() ([]byte, []int) { 197 return fileDescriptor_dd8723cfcc820480, []int{1} 198 } 199 func (m *ManifestResponse) XXX_Unmarshal(b []byte) error { 200 return m.Unmarshal(b) 201 } 202 func (m *ManifestResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 203 if deterministic { 204 return xxx_messageInfo_ManifestResponse.Marshal(b, m, deterministic) 205 } else { 206 b = b[:cap(b)] 207 n, err := m.MarshalToSizedBuffer(b) 208 if err != nil { 209 return nil, err 210 } 211 return b[:n], nil 212 } 213 } 214 func (m *ManifestResponse) XXX_Merge(src proto.Message) { 215 xxx_messageInfo_ManifestResponse.Merge(m, src) 216 } 217 func (m *ManifestResponse) XXX_Size() int { 218 return m.Size() 219 } 220 func (m *ManifestResponse) XXX_DiscardUnknown() { 221 xxx_messageInfo_ManifestResponse.DiscardUnknown(m) 222 } 223 224 var xxx_messageInfo_ManifestResponse proto.InternalMessageInfo 225 226 func (m *ManifestResponse) GetManifests() []string { 227 if m != nil { 228 return m.Manifests 229 } 230 return nil 231 } 232 233 func (m *ManifestResponse) GetNamespace() string { 234 if m != nil { 235 return m.Namespace 236 } 237 return "" 238 } 239 240 func (m *ManifestResponse) GetServer() string { 241 if m != nil { 242 return m.Server 243 } 244 return "" 245 } 246 247 func (m *ManifestResponse) GetRevision() string { 248 if m != nil { 249 return m.Revision 250 } 251 return "" 252 } 253 254 func (m *ManifestResponse) GetSourceType() string { 255 if m != nil { 256 return m.SourceType 257 } 258 return "" 259 } 260 261 func (m *ManifestResponse) GetVerifyResult() string { 262 if m != nil { 263 return m.VerifyResult 264 } 265 return "" 266 } 267 268 type ListRefsRequest struct { 269 Repo *v1alpha1.Repository `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` 270 XXX_NoUnkeyedLiteral struct{} `json:"-"` 271 XXX_unrecognized []byte `json:"-"` 272 XXX_sizecache int32 `json:"-"` 273 } 274 275 func (m *ListRefsRequest) Reset() { *m = ListRefsRequest{} } 276 func (m *ListRefsRequest) String() string { return proto.CompactTextString(m) } 277 func (*ListRefsRequest) ProtoMessage() {} 278 func (*ListRefsRequest) Descriptor() ([]byte, []int) { 279 return fileDescriptor_dd8723cfcc820480, []int{2} 280 } 281 func (m *ListRefsRequest) XXX_Unmarshal(b []byte) error { 282 return m.Unmarshal(b) 283 } 284 func (m *ListRefsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 285 if deterministic { 286 return xxx_messageInfo_ListRefsRequest.Marshal(b, m, deterministic) 287 } else { 288 b = b[:cap(b)] 289 n, err := m.MarshalToSizedBuffer(b) 290 if err != nil { 291 return nil, err 292 } 293 return b[:n], nil 294 } 295 } 296 func (m *ListRefsRequest) XXX_Merge(src proto.Message) { 297 xxx_messageInfo_ListRefsRequest.Merge(m, src) 298 } 299 func (m *ListRefsRequest) XXX_Size() int { 300 return m.Size() 301 } 302 func (m *ListRefsRequest) XXX_DiscardUnknown() { 303 xxx_messageInfo_ListRefsRequest.DiscardUnknown(m) 304 } 305 306 var xxx_messageInfo_ListRefsRequest proto.InternalMessageInfo 307 308 func (m *ListRefsRequest) GetRepo() *v1alpha1.Repository { 309 if m != nil { 310 return m.Repo 311 } 312 return nil 313 } 314 315 // A subset of the repository's named refs 316 type Refs struct { 317 Branches []string `protobuf:"bytes,1,rep,name=branches,proto3" json:"branches,omitempty"` 318 Tags []string `protobuf:"bytes,2,rep,name=tags,proto3" json:"tags,omitempty"` 319 XXX_NoUnkeyedLiteral struct{} `json:"-"` 320 XXX_unrecognized []byte `json:"-"` 321 XXX_sizecache int32 `json:"-"` 322 } 323 324 func (m *Refs) Reset() { *m = Refs{} } 325 func (m *Refs) String() string { return proto.CompactTextString(m) } 326 func (*Refs) ProtoMessage() {} 327 func (*Refs) Descriptor() ([]byte, []int) { 328 return fileDescriptor_dd8723cfcc820480, []int{3} 329 } 330 func (m *Refs) XXX_Unmarshal(b []byte) error { 331 return m.Unmarshal(b) 332 } 333 func (m *Refs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 334 if deterministic { 335 return xxx_messageInfo_Refs.Marshal(b, m, deterministic) 336 } else { 337 b = b[:cap(b)] 338 n, err := m.MarshalToSizedBuffer(b) 339 if err != nil { 340 return nil, err 341 } 342 return b[:n], nil 343 } 344 } 345 func (m *Refs) XXX_Merge(src proto.Message) { 346 xxx_messageInfo_Refs.Merge(m, src) 347 } 348 func (m *Refs) XXX_Size() int { 349 return m.Size() 350 } 351 func (m *Refs) XXX_DiscardUnknown() { 352 xxx_messageInfo_Refs.DiscardUnknown(m) 353 } 354 355 var xxx_messageInfo_Refs proto.InternalMessageInfo 356 357 func (m *Refs) GetBranches() []string { 358 if m != nil { 359 return m.Branches 360 } 361 return nil 362 } 363 364 func (m *Refs) GetTags() []string { 365 if m != nil { 366 return m.Tags 367 } 368 return nil 369 } 370 371 // ListAppsRequest requests a repository directory structure 372 type ListAppsRequest struct { 373 Repo *v1alpha1.Repository `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` 374 Revision string `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` 375 XXX_NoUnkeyedLiteral struct{} `json:"-"` 376 XXX_unrecognized []byte `json:"-"` 377 XXX_sizecache int32 `json:"-"` 378 } 379 380 func (m *ListAppsRequest) Reset() { *m = ListAppsRequest{} } 381 func (m *ListAppsRequest) String() string { return proto.CompactTextString(m) } 382 func (*ListAppsRequest) ProtoMessage() {} 383 func (*ListAppsRequest) Descriptor() ([]byte, []int) { 384 return fileDescriptor_dd8723cfcc820480, []int{4} 385 } 386 func (m *ListAppsRequest) XXX_Unmarshal(b []byte) error { 387 return m.Unmarshal(b) 388 } 389 func (m *ListAppsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 390 if deterministic { 391 return xxx_messageInfo_ListAppsRequest.Marshal(b, m, deterministic) 392 } else { 393 b = b[:cap(b)] 394 n, err := m.MarshalToSizedBuffer(b) 395 if err != nil { 396 return nil, err 397 } 398 return b[:n], nil 399 } 400 } 401 func (m *ListAppsRequest) XXX_Merge(src proto.Message) { 402 xxx_messageInfo_ListAppsRequest.Merge(m, src) 403 } 404 func (m *ListAppsRequest) XXX_Size() int { 405 return m.Size() 406 } 407 func (m *ListAppsRequest) XXX_DiscardUnknown() { 408 xxx_messageInfo_ListAppsRequest.DiscardUnknown(m) 409 } 410 411 var xxx_messageInfo_ListAppsRequest proto.InternalMessageInfo 412 413 func (m *ListAppsRequest) GetRepo() *v1alpha1.Repository { 414 if m != nil { 415 return m.Repo 416 } 417 return nil 418 } 419 420 func (m *ListAppsRequest) GetRevision() string { 421 if m != nil { 422 return m.Revision 423 } 424 return "" 425 } 426 427 // AppList returns the contents of the repo of a ListApps request 428 type AppList struct { 429 Apps map[string]string `protobuf:"bytes,1,rep,name=apps,proto3" json:"apps,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 430 XXX_NoUnkeyedLiteral struct{} `json:"-"` 431 XXX_unrecognized []byte `json:"-"` 432 XXX_sizecache int32 `json:"-"` 433 } 434 435 func (m *AppList) Reset() { *m = AppList{} } 436 func (m *AppList) String() string { return proto.CompactTextString(m) } 437 func (*AppList) ProtoMessage() {} 438 func (*AppList) Descriptor() ([]byte, []int) { 439 return fileDescriptor_dd8723cfcc820480, []int{5} 440 } 441 func (m *AppList) XXX_Unmarshal(b []byte) error { 442 return m.Unmarshal(b) 443 } 444 func (m *AppList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 445 if deterministic { 446 return xxx_messageInfo_AppList.Marshal(b, m, deterministic) 447 } else { 448 b = b[:cap(b)] 449 n, err := m.MarshalToSizedBuffer(b) 450 if err != nil { 451 return nil, err 452 } 453 return b[:n], nil 454 } 455 } 456 func (m *AppList) XXX_Merge(src proto.Message) { 457 xxx_messageInfo_AppList.Merge(m, src) 458 } 459 func (m *AppList) XXX_Size() int { 460 return m.Size() 461 } 462 func (m *AppList) XXX_DiscardUnknown() { 463 xxx_messageInfo_AppList.DiscardUnknown(m) 464 } 465 466 var xxx_messageInfo_AppList proto.InternalMessageInfo 467 468 func (m *AppList) GetApps() map[string]string { 469 if m != nil { 470 return m.Apps 471 } 472 return nil 473 } 474 475 // RepoServerAppDetailsQuery contains query information for app details request 476 type RepoServerAppDetailsQuery struct { 477 Repo *v1alpha1.Repository `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` 478 Source *v1alpha1.ApplicationSource `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` 479 Repos []*v1alpha1.Repository `protobuf:"bytes,3,rep,name=repos,proto3" json:"repos,omitempty"` 480 KustomizeOptions *v1alpha1.KustomizeOptions `protobuf:"bytes,4,opt,name=kustomizeOptions,proto3" json:"kustomizeOptions,omitempty"` 481 XXX_NoUnkeyedLiteral struct{} `json:"-"` 482 XXX_unrecognized []byte `json:"-"` 483 XXX_sizecache int32 `json:"-"` 484 } 485 486 func (m *RepoServerAppDetailsQuery) Reset() { *m = RepoServerAppDetailsQuery{} } 487 func (m *RepoServerAppDetailsQuery) String() string { return proto.CompactTextString(m) } 488 func (*RepoServerAppDetailsQuery) ProtoMessage() {} 489 func (*RepoServerAppDetailsQuery) Descriptor() ([]byte, []int) { 490 return fileDescriptor_dd8723cfcc820480, []int{6} 491 } 492 func (m *RepoServerAppDetailsQuery) XXX_Unmarshal(b []byte) error { 493 return m.Unmarshal(b) 494 } 495 func (m *RepoServerAppDetailsQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 496 if deterministic { 497 return xxx_messageInfo_RepoServerAppDetailsQuery.Marshal(b, m, deterministic) 498 } else { 499 b = b[:cap(b)] 500 n, err := m.MarshalToSizedBuffer(b) 501 if err != nil { 502 return nil, err 503 } 504 return b[:n], nil 505 } 506 } 507 func (m *RepoServerAppDetailsQuery) XXX_Merge(src proto.Message) { 508 xxx_messageInfo_RepoServerAppDetailsQuery.Merge(m, src) 509 } 510 func (m *RepoServerAppDetailsQuery) XXX_Size() int { 511 return m.Size() 512 } 513 func (m *RepoServerAppDetailsQuery) XXX_DiscardUnknown() { 514 xxx_messageInfo_RepoServerAppDetailsQuery.DiscardUnknown(m) 515 } 516 517 var xxx_messageInfo_RepoServerAppDetailsQuery proto.InternalMessageInfo 518 519 func (m *RepoServerAppDetailsQuery) GetRepo() *v1alpha1.Repository { 520 if m != nil { 521 return m.Repo 522 } 523 return nil 524 } 525 526 func (m *RepoServerAppDetailsQuery) GetSource() *v1alpha1.ApplicationSource { 527 if m != nil { 528 return m.Source 529 } 530 return nil 531 } 532 533 func (m *RepoServerAppDetailsQuery) GetRepos() []*v1alpha1.Repository { 534 if m != nil { 535 return m.Repos 536 } 537 return nil 538 } 539 540 func (m *RepoServerAppDetailsQuery) GetKustomizeOptions() *v1alpha1.KustomizeOptions { 541 if m != nil { 542 return m.KustomizeOptions 543 } 544 return nil 545 } 546 547 // RepoAppDetailsResponse application details 548 type RepoAppDetailsResponse struct { 549 Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` 550 Ksonnet *KsonnetAppSpec `protobuf:"bytes,2,opt,name=ksonnet,proto3" json:"ksonnet,omitempty"` 551 Helm *HelmAppSpec `protobuf:"bytes,3,opt,name=helm,proto3" json:"helm,omitempty"` 552 Kustomize *KustomizeAppSpec `protobuf:"bytes,4,opt,name=kustomize,proto3" json:"kustomize,omitempty"` 553 Directory *DirectoryAppSpec `protobuf:"bytes,5,opt,name=directory,proto3" json:"directory,omitempty"` 554 XXX_NoUnkeyedLiteral struct{} `json:"-"` 555 XXX_unrecognized []byte `json:"-"` 556 XXX_sizecache int32 `json:"-"` 557 } 558 559 func (m *RepoAppDetailsResponse) Reset() { *m = RepoAppDetailsResponse{} } 560 func (m *RepoAppDetailsResponse) String() string { return proto.CompactTextString(m) } 561 func (*RepoAppDetailsResponse) ProtoMessage() {} 562 func (*RepoAppDetailsResponse) Descriptor() ([]byte, []int) { 563 return fileDescriptor_dd8723cfcc820480, []int{7} 564 } 565 func (m *RepoAppDetailsResponse) XXX_Unmarshal(b []byte) error { 566 return m.Unmarshal(b) 567 } 568 func (m *RepoAppDetailsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 569 if deterministic { 570 return xxx_messageInfo_RepoAppDetailsResponse.Marshal(b, m, deterministic) 571 } else { 572 b = b[:cap(b)] 573 n, err := m.MarshalToSizedBuffer(b) 574 if err != nil { 575 return nil, err 576 } 577 return b[:n], nil 578 } 579 } 580 func (m *RepoAppDetailsResponse) XXX_Merge(src proto.Message) { 581 xxx_messageInfo_RepoAppDetailsResponse.Merge(m, src) 582 } 583 func (m *RepoAppDetailsResponse) XXX_Size() int { 584 return m.Size() 585 } 586 func (m *RepoAppDetailsResponse) XXX_DiscardUnknown() { 587 xxx_messageInfo_RepoAppDetailsResponse.DiscardUnknown(m) 588 } 589 590 var xxx_messageInfo_RepoAppDetailsResponse proto.InternalMessageInfo 591 592 func (m *RepoAppDetailsResponse) GetType() string { 593 if m != nil { 594 return m.Type 595 } 596 return "" 597 } 598 599 func (m *RepoAppDetailsResponse) GetKsonnet() *KsonnetAppSpec { 600 if m != nil { 601 return m.Ksonnet 602 } 603 return nil 604 } 605 606 func (m *RepoAppDetailsResponse) GetHelm() *HelmAppSpec { 607 if m != nil { 608 return m.Helm 609 } 610 return nil 611 } 612 613 func (m *RepoAppDetailsResponse) GetKustomize() *KustomizeAppSpec { 614 if m != nil { 615 return m.Kustomize 616 } 617 return nil 618 } 619 620 func (m *RepoAppDetailsResponse) GetDirectory() *DirectoryAppSpec { 621 if m != nil { 622 return m.Directory 623 } 624 return nil 625 } 626 627 type RepoServerRevisionMetadataRequest struct { 628 // the repo 629 Repo *v1alpha1.Repository `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` 630 // the revision within the repo 631 Revision string `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` 632 // whether to check signature on revision 633 CheckSignature bool `protobuf:"varint,3,opt,name=checkSignature,proto3" json:"checkSignature,omitempty"` 634 XXX_NoUnkeyedLiteral struct{} `json:"-"` 635 XXX_unrecognized []byte `json:"-"` 636 XXX_sizecache int32 `json:"-"` 637 } 638 639 func (m *RepoServerRevisionMetadataRequest) Reset() { *m = RepoServerRevisionMetadataRequest{} } 640 func (m *RepoServerRevisionMetadataRequest) String() string { return proto.CompactTextString(m) } 641 func (*RepoServerRevisionMetadataRequest) ProtoMessage() {} 642 func (*RepoServerRevisionMetadataRequest) Descriptor() ([]byte, []int) { 643 return fileDescriptor_dd8723cfcc820480, []int{8} 644 } 645 func (m *RepoServerRevisionMetadataRequest) XXX_Unmarshal(b []byte) error { 646 return m.Unmarshal(b) 647 } 648 func (m *RepoServerRevisionMetadataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 649 if deterministic { 650 return xxx_messageInfo_RepoServerRevisionMetadataRequest.Marshal(b, m, deterministic) 651 } else { 652 b = b[:cap(b)] 653 n, err := m.MarshalToSizedBuffer(b) 654 if err != nil { 655 return nil, err 656 } 657 return b[:n], nil 658 } 659 } 660 func (m *RepoServerRevisionMetadataRequest) XXX_Merge(src proto.Message) { 661 xxx_messageInfo_RepoServerRevisionMetadataRequest.Merge(m, src) 662 } 663 func (m *RepoServerRevisionMetadataRequest) XXX_Size() int { 664 return m.Size() 665 } 666 func (m *RepoServerRevisionMetadataRequest) XXX_DiscardUnknown() { 667 xxx_messageInfo_RepoServerRevisionMetadataRequest.DiscardUnknown(m) 668 } 669 670 var xxx_messageInfo_RepoServerRevisionMetadataRequest proto.InternalMessageInfo 671 672 func (m *RepoServerRevisionMetadataRequest) GetRepo() *v1alpha1.Repository { 673 if m != nil { 674 return m.Repo 675 } 676 return nil 677 } 678 679 func (m *RepoServerRevisionMetadataRequest) GetRevision() string { 680 if m != nil { 681 return m.Revision 682 } 683 return "" 684 } 685 686 func (m *RepoServerRevisionMetadataRequest) GetCheckSignature() bool { 687 if m != nil { 688 return m.CheckSignature 689 } 690 return false 691 } 692 693 // KsonnetAppSpec contains Ksonnet app response 694 // This roughly reflects: ksonnet/ksonnet/metadata/app/schema.go 695 type KsonnetAppSpec struct { 696 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 697 Environments map[string]*KsonnetEnvironment `protobuf:"bytes,3,rep,name=environments,proto3" json:"environments,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 698 Parameters []*v1alpha1.KsonnetParameter `protobuf:"bytes,4,rep,name=parameters,proto3" json:"parameters,omitempty"` 699 XXX_NoUnkeyedLiteral struct{} `json:"-"` 700 XXX_unrecognized []byte `json:"-"` 701 XXX_sizecache int32 `json:"-"` 702 } 703 704 func (m *KsonnetAppSpec) Reset() { *m = KsonnetAppSpec{} } 705 func (m *KsonnetAppSpec) String() string { return proto.CompactTextString(m) } 706 func (*KsonnetAppSpec) ProtoMessage() {} 707 func (*KsonnetAppSpec) Descriptor() ([]byte, []int) { 708 return fileDescriptor_dd8723cfcc820480, []int{9} 709 } 710 func (m *KsonnetAppSpec) XXX_Unmarshal(b []byte) error { 711 return m.Unmarshal(b) 712 } 713 func (m *KsonnetAppSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 714 if deterministic { 715 return xxx_messageInfo_KsonnetAppSpec.Marshal(b, m, deterministic) 716 } else { 717 b = b[:cap(b)] 718 n, err := m.MarshalToSizedBuffer(b) 719 if err != nil { 720 return nil, err 721 } 722 return b[:n], nil 723 } 724 } 725 func (m *KsonnetAppSpec) XXX_Merge(src proto.Message) { 726 xxx_messageInfo_KsonnetAppSpec.Merge(m, src) 727 } 728 func (m *KsonnetAppSpec) XXX_Size() int { 729 return m.Size() 730 } 731 func (m *KsonnetAppSpec) XXX_DiscardUnknown() { 732 xxx_messageInfo_KsonnetAppSpec.DiscardUnknown(m) 733 } 734 735 var xxx_messageInfo_KsonnetAppSpec proto.InternalMessageInfo 736 737 func (m *KsonnetAppSpec) GetName() string { 738 if m != nil { 739 return m.Name 740 } 741 return "" 742 } 743 744 func (m *KsonnetAppSpec) GetEnvironments() map[string]*KsonnetEnvironment { 745 if m != nil { 746 return m.Environments 747 } 748 return nil 749 } 750 751 func (m *KsonnetAppSpec) GetParameters() []*v1alpha1.KsonnetParameter { 752 if m != nil { 753 return m.Parameters 754 } 755 return nil 756 } 757 758 // HelmAppSpec contains helm app name in source repo 759 type HelmAppSpec struct { 760 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 761 ValueFiles []string `protobuf:"bytes,3,rep,name=valueFiles,proto3" json:"valueFiles,omitempty"` 762 // the output of `helm inspect values` 763 Parameters []*v1alpha1.HelmParameter `protobuf:"bytes,4,rep,name=parameters,proto3" json:"parameters,omitempty"` 764 // the contents of values.yaml 765 Values string `protobuf:"bytes,5,opt,name=values,proto3" json:"values,omitempty"` 766 // helm file parameters 767 FileParameters []*v1alpha1.HelmFileParameter `protobuf:"bytes,6,rep,name=fileParameters,proto3" json:"fileParameters,omitempty"` 768 XXX_NoUnkeyedLiteral struct{} `json:"-"` 769 XXX_unrecognized []byte `json:"-"` 770 XXX_sizecache int32 `json:"-"` 771 } 772 773 func (m *HelmAppSpec) Reset() { *m = HelmAppSpec{} } 774 func (m *HelmAppSpec) String() string { return proto.CompactTextString(m) } 775 func (*HelmAppSpec) ProtoMessage() {} 776 func (*HelmAppSpec) Descriptor() ([]byte, []int) { 777 return fileDescriptor_dd8723cfcc820480, []int{10} 778 } 779 func (m *HelmAppSpec) XXX_Unmarshal(b []byte) error { 780 return m.Unmarshal(b) 781 } 782 func (m *HelmAppSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 783 if deterministic { 784 return xxx_messageInfo_HelmAppSpec.Marshal(b, m, deterministic) 785 } else { 786 b = b[:cap(b)] 787 n, err := m.MarshalToSizedBuffer(b) 788 if err != nil { 789 return nil, err 790 } 791 return b[:n], nil 792 } 793 } 794 func (m *HelmAppSpec) XXX_Merge(src proto.Message) { 795 xxx_messageInfo_HelmAppSpec.Merge(m, src) 796 } 797 func (m *HelmAppSpec) XXX_Size() int { 798 return m.Size() 799 } 800 func (m *HelmAppSpec) XXX_DiscardUnknown() { 801 xxx_messageInfo_HelmAppSpec.DiscardUnknown(m) 802 } 803 804 var xxx_messageInfo_HelmAppSpec proto.InternalMessageInfo 805 806 func (m *HelmAppSpec) GetName() string { 807 if m != nil { 808 return m.Name 809 } 810 return "" 811 } 812 813 func (m *HelmAppSpec) GetValueFiles() []string { 814 if m != nil { 815 return m.ValueFiles 816 } 817 return nil 818 } 819 820 func (m *HelmAppSpec) GetParameters() []*v1alpha1.HelmParameter { 821 if m != nil { 822 return m.Parameters 823 } 824 return nil 825 } 826 827 func (m *HelmAppSpec) GetValues() string { 828 if m != nil { 829 return m.Values 830 } 831 return "" 832 } 833 834 func (m *HelmAppSpec) GetFileParameters() []*v1alpha1.HelmFileParameter { 835 if m != nil { 836 return m.FileParameters 837 } 838 return nil 839 } 840 841 // KustomizeAppSpec contains kustomize images 842 type KustomizeAppSpec struct { 843 // images is a list of available images. 844 Images []string `protobuf:"bytes,3,rep,name=images,proto3" json:"images,omitempty"` 845 XXX_NoUnkeyedLiteral struct{} `json:"-"` 846 XXX_unrecognized []byte `json:"-"` 847 XXX_sizecache int32 `json:"-"` 848 } 849 850 func (m *KustomizeAppSpec) Reset() { *m = KustomizeAppSpec{} } 851 func (m *KustomizeAppSpec) String() string { return proto.CompactTextString(m) } 852 func (*KustomizeAppSpec) ProtoMessage() {} 853 func (*KustomizeAppSpec) Descriptor() ([]byte, []int) { 854 return fileDescriptor_dd8723cfcc820480, []int{11} 855 } 856 func (m *KustomizeAppSpec) XXX_Unmarshal(b []byte) error { 857 return m.Unmarshal(b) 858 } 859 func (m *KustomizeAppSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 860 if deterministic { 861 return xxx_messageInfo_KustomizeAppSpec.Marshal(b, m, deterministic) 862 } else { 863 b = b[:cap(b)] 864 n, err := m.MarshalToSizedBuffer(b) 865 if err != nil { 866 return nil, err 867 } 868 return b[:n], nil 869 } 870 } 871 func (m *KustomizeAppSpec) XXX_Merge(src proto.Message) { 872 xxx_messageInfo_KustomizeAppSpec.Merge(m, src) 873 } 874 func (m *KustomizeAppSpec) XXX_Size() int { 875 return m.Size() 876 } 877 func (m *KustomizeAppSpec) XXX_DiscardUnknown() { 878 xxx_messageInfo_KustomizeAppSpec.DiscardUnknown(m) 879 } 880 881 var xxx_messageInfo_KustomizeAppSpec proto.InternalMessageInfo 882 883 func (m *KustomizeAppSpec) GetImages() []string { 884 if m != nil { 885 return m.Images 886 } 887 return nil 888 } 889 890 type KsonnetEnvironment struct { 891 // Name is the user defined name of an environment 892 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 893 // KubernetesVersion is the kubernetes version the targeted cluster is running on. 894 K8SVersion string `protobuf:"bytes,2,opt,name=k8sVersion,proto3" json:"k8sVersion,omitempty"` 895 // Destination stores the cluster address that this environment points to. 896 Destination *KsonnetEnvironmentDestination `protobuf:"bytes,4,opt,name=destination,proto3" json:"destination,omitempty"` 897 XXX_NoUnkeyedLiteral struct{} `json:"-"` 898 XXX_unrecognized []byte `json:"-"` 899 XXX_sizecache int32 `json:"-"` 900 } 901 902 func (m *KsonnetEnvironment) Reset() { *m = KsonnetEnvironment{} } 903 func (m *KsonnetEnvironment) String() string { return proto.CompactTextString(m) } 904 func (*KsonnetEnvironment) ProtoMessage() {} 905 func (*KsonnetEnvironment) Descriptor() ([]byte, []int) { 906 return fileDescriptor_dd8723cfcc820480, []int{12} 907 } 908 func (m *KsonnetEnvironment) XXX_Unmarshal(b []byte) error { 909 return m.Unmarshal(b) 910 } 911 func (m *KsonnetEnvironment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 912 if deterministic { 913 return xxx_messageInfo_KsonnetEnvironment.Marshal(b, m, deterministic) 914 } else { 915 b = b[:cap(b)] 916 n, err := m.MarshalToSizedBuffer(b) 917 if err != nil { 918 return nil, err 919 } 920 return b[:n], nil 921 } 922 } 923 func (m *KsonnetEnvironment) XXX_Merge(src proto.Message) { 924 xxx_messageInfo_KsonnetEnvironment.Merge(m, src) 925 } 926 func (m *KsonnetEnvironment) XXX_Size() int { 927 return m.Size() 928 } 929 func (m *KsonnetEnvironment) XXX_DiscardUnknown() { 930 xxx_messageInfo_KsonnetEnvironment.DiscardUnknown(m) 931 } 932 933 var xxx_messageInfo_KsonnetEnvironment proto.InternalMessageInfo 934 935 func (m *KsonnetEnvironment) GetName() string { 936 if m != nil { 937 return m.Name 938 } 939 return "" 940 } 941 942 func (m *KsonnetEnvironment) GetK8SVersion() string { 943 if m != nil { 944 return m.K8SVersion 945 } 946 return "" 947 } 948 949 func (m *KsonnetEnvironment) GetDestination() *KsonnetEnvironmentDestination { 950 if m != nil { 951 return m.Destination 952 } 953 return nil 954 } 955 956 type KsonnetEnvironmentDestination struct { 957 // Server is the Kubernetes server that the cluster is running on. 958 Server string `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"` 959 // Namespace is the namespace of the Kubernetes server that targets should be deployed to 960 Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` 961 XXX_NoUnkeyedLiteral struct{} `json:"-"` 962 XXX_unrecognized []byte `json:"-"` 963 XXX_sizecache int32 `json:"-"` 964 } 965 966 func (m *KsonnetEnvironmentDestination) Reset() { *m = KsonnetEnvironmentDestination{} } 967 func (m *KsonnetEnvironmentDestination) String() string { return proto.CompactTextString(m) } 968 func (*KsonnetEnvironmentDestination) ProtoMessage() {} 969 func (*KsonnetEnvironmentDestination) Descriptor() ([]byte, []int) { 970 return fileDescriptor_dd8723cfcc820480, []int{13} 971 } 972 func (m *KsonnetEnvironmentDestination) XXX_Unmarshal(b []byte) error { 973 return m.Unmarshal(b) 974 } 975 func (m *KsonnetEnvironmentDestination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 976 if deterministic { 977 return xxx_messageInfo_KsonnetEnvironmentDestination.Marshal(b, m, deterministic) 978 } else { 979 b = b[:cap(b)] 980 n, err := m.MarshalToSizedBuffer(b) 981 if err != nil { 982 return nil, err 983 } 984 return b[:n], nil 985 } 986 } 987 func (m *KsonnetEnvironmentDestination) XXX_Merge(src proto.Message) { 988 xxx_messageInfo_KsonnetEnvironmentDestination.Merge(m, src) 989 } 990 func (m *KsonnetEnvironmentDestination) XXX_Size() int { 991 return m.Size() 992 } 993 func (m *KsonnetEnvironmentDestination) XXX_DiscardUnknown() { 994 xxx_messageInfo_KsonnetEnvironmentDestination.DiscardUnknown(m) 995 } 996 997 var xxx_messageInfo_KsonnetEnvironmentDestination proto.InternalMessageInfo 998 999 func (m *KsonnetEnvironmentDestination) GetServer() string { 1000 if m != nil { 1001 return m.Server 1002 } 1003 return "" 1004 } 1005 1006 func (m *KsonnetEnvironmentDestination) GetNamespace() string { 1007 if m != nil { 1008 return m.Namespace 1009 } 1010 return "" 1011 } 1012 1013 // DirectoryAppSpec contains directory 1014 type DirectoryAppSpec struct { 1015 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1016 XXX_unrecognized []byte `json:"-"` 1017 XXX_sizecache int32 `json:"-"` 1018 } 1019 1020 func (m *DirectoryAppSpec) Reset() { *m = DirectoryAppSpec{} } 1021 func (m *DirectoryAppSpec) String() string { return proto.CompactTextString(m) } 1022 func (*DirectoryAppSpec) ProtoMessage() {} 1023 func (*DirectoryAppSpec) Descriptor() ([]byte, []int) { 1024 return fileDescriptor_dd8723cfcc820480, []int{14} 1025 } 1026 func (m *DirectoryAppSpec) XXX_Unmarshal(b []byte) error { 1027 return m.Unmarshal(b) 1028 } 1029 func (m *DirectoryAppSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1030 if deterministic { 1031 return xxx_messageInfo_DirectoryAppSpec.Marshal(b, m, deterministic) 1032 } else { 1033 b = b[:cap(b)] 1034 n, err := m.MarshalToSizedBuffer(b) 1035 if err != nil { 1036 return nil, err 1037 } 1038 return b[:n], nil 1039 } 1040 } 1041 func (m *DirectoryAppSpec) XXX_Merge(src proto.Message) { 1042 xxx_messageInfo_DirectoryAppSpec.Merge(m, src) 1043 } 1044 func (m *DirectoryAppSpec) XXX_Size() int { 1045 return m.Size() 1046 } 1047 func (m *DirectoryAppSpec) XXX_DiscardUnknown() { 1048 xxx_messageInfo_DirectoryAppSpec.DiscardUnknown(m) 1049 } 1050 1051 var xxx_messageInfo_DirectoryAppSpec proto.InternalMessageInfo 1052 1053 type HelmChartsRequest struct { 1054 Repo *v1alpha1.Repository `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` 1055 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1056 XXX_unrecognized []byte `json:"-"` 1057 XXX_sizecache int32 `json:"-"` 1058 } 1059 1060 func (m *HelmChartsRequest) Reset() { *m = HelmChartsRequest{} } 1061 func (m *HelmChartsRequest) String() string { return proto.CompactTextString(m) } 1062 func (*HelmChartsRequest) ProtoMessage() {} 1063 func (*HelmChartsRequest) Descriptor() ([]byte, []int) { 1064 return fileDescriptor_dd8723cfcc820480, []int{15} 1065 } 1066 func (m *HelmChartsRequest) XXX_Unmarshal(b []byte) error { 1067 return m.Unmarshal(b) 1068 } 1069 func (m *HelmChartsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1070 if deterministic { 1071 return xxx_messageInfo_HelmChartsRequest.Marshal(b, m, deterministic) 1072 } else { 1073 b = b[:cap(b)] 1074 n, err := m.MarshalToSizedBuffer(b) 1075 if err != nil { 1076 return nil, err 1077 } 1078 return b[:n], nil 1079 } 1080 } 1081 func (m *HelmChartsRequest) XXX_Merge(src proto.Message) { 1082 xxx_messageInfo_HelmChartsRequest.Merge(m, src) 1083 } 1084 func (m *HelmChartsRequest) XXX_Size() int { 1085 return m.Size() 1086 } 1087 func (m *HelmChartsRequest) XXX_DiscardUnknown() { 1088 xxx_messageInfo_HelmChartsRequest.DiscardUnknown(m) 1089 } 1090 1091 var xxx_messageInfo_HelmChartsRequest proto.InternalMessageInfo 1092 1093 func (m *HelmChartsRequest) GetRepo() *v1alpha1.Repository { 1094 if m != nil { 1095 return m.Repo 1096 } 1097 return nil 1098 } 1099 1100 type HelmChart struct { 1101 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 1102 Versions []string `protobuf:"bytes,2,rep,name=versions,proto3" json:"versions,omitempty"` 1103 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1104 XXX_unrecognized []byte `json:"-"` 1105 XXX_sizecache int32 `json:"-"` 1106 } 1107 1108 func (m *HelmChart) Reset() { *m = HelmChart{} } 1109 func (m *HelmChart) String() string { return proto.CompactTextString(m) } 1110 func (*HelmChart) ProtoMessage() {} 1111 func (*HelmChart) Descriptor() ([]byte, []int) { 1112 return fileDescriptor_dd8723cfcc820480, []int{16} 1113 } 1114 func (m *HelmChart) XXX_Unmarshal(b []byte) error { 1115 return m.Unmarshal(b) 1116 } 1117 func (m *HelmChart) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1118 if deterministic { 1119 return xxx_messageInfo_HelmChart.Marshal(b, m, deterministic) 1120 } else { 1121 b = b[:cap(b)] 1122 n, err := m.MarshalToSizedBuffer(b) 1123 if err != nil { 1124 return nil, err 1125 } 1126 return b[:n], nil 1127 } 1128 } 1129 func (m *HelmChart) XXX_Merge(src proto.Message) { 1130 xxx_messageInfo_HelmChart.Merge(m, src) 1131 } 1132 func (m *HelmChart) XXX_Size() int { 1133 return m.Size() 1134 } 1135 func (m *HelmChart) XXX_DiscardUnknown() { 1136 xxx_messageInfo_HelmChart.DiscardUnknown(m) 1137 } 1138 1139 var xxx_messageInfo_HelmChart proto.InternalMessageInfo 1140 1141 func (m *HelmChart) GetName() string { 1142 if m != nil { 1143 return m.Name 1144 } 1145 return "" 1146 } 1147 1148 func (m *HelmChart) GetVersions() []string { 1149 if m != nil { 1150 return m.Versions 1151 } 1152 return nil 1153 } 1154 1155 type HelmChartsResponse struct { 1156 Items []*HelmChart `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` 1157 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1158 XXX_unrecognized []byte `json:"-"` 1159 XXX_sizecache int32 `json:"-"` 1160 } 1161 1162 func (m *HelmChartsResponse) Reset() { *m = HelmChartsResponse{} } 1163 func (m *HelmChartsResponse) String() string { return proto.CompactTextString(m) } 1164 func (*HelmChartsResponse) ProtoMessage() {} 1165 func (*HelmChartsResponse) Descriptor() ([]byte, []int) { 1166 return fileDescriptor_dd8723cfcc820480, []int{17} 1167 } 1168 func (m *HelmChartsResponse) XXX_Unmarshal(b []byte) error { 1169 return m.Unmarshal(b) 1170 } 1171 func (m *HelmChartsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1172 if deterministic { 1173 return xxx_messageInfo_HelmChartsResponse.Marshal(b, m, deterministic) 1174 } else { 1175 b = b[:cap(b)] 1176 n, err := m.MarshalToSizedBuffer(b) 1177 if err != nil { 1178 return nil, err 1179 } 1180 return b[:n], nil 1181 } 1182 } 1183 func (m *HelmChartsResponse) XXX_Merge(src proto.Message) { 1184 xxx_messageInfo_HelmChartsResponse.Merge(m, src) 1185 } 1186 func (m *HelmChartsResponse) XXX_Size() int { 1187 return m.Size() 1188 } 1189 func (m *HelmChartsResponse) XXX_DiscardUnknown() { 1190 xxx_messageInfo_HelmChartsResponse.DiscardUnknown(m) 1191 } 1192 1193 var xxx_messageInfo_HelmChartsResponse proto.InternalMessageInfo 1194 1195 func (m *HelmChartsResponse) GetItems() []*HelmChart { 1196 if m != nil { 1197 return m.Items 1198 } 1199 return nil 1200 } 1201 1202 func init() { 1203 proto.RegisterType((*ManifestRequest)(nil), "repository.ManifestRequest") 1204 proto.RegisterType((*ManifestResponse)(nil), "repository.ManifestResponse") 1205 proto.RegisterType((*ListRefsRequest)(nil), "repository.ListRefsRequest") 1206 proto.RegisterType((*Refs)(nil), "repository.Refs") 1207 proto.RegisterType((*ListAppsRequest)(nil), "repository.ListAppsRequest") 1208 proto.RegisterType((*AppList)(nil), "repository.AppList") 1209 proto.RegisterMapType((map[string]string)(nil), "repository.AppList.AppsEntry") 1210 proto.RegisterType((*RepoServerAppDetailsQuery)(nil), "repository.RepoServerAppDetailsQuery") 1211 proto.RegisterType((*RepoAppDetailsResponse)(nil), "repository.RepoAppDetailsResponse") 1212 proto.RegisterType((*RepoServerRevisionMetadataRequest)(nil), "repository.RepoServerRevisionMetadataRequest") 1213 proto.RegisterType((*KsonnetAppSpec)(nil), "repository.KsonnetAppSpec") 1214 proto.RegisterMapType((map[string]*KsonnetEnvironment)(nil), "repository.KsonnetAppSpec.EnvironmentsEntry") 1215 proto.RegisterType((*HelmAppSpec)(nil), "repository.HelmAppSpec") 1216 proto.RegisterType((*KustomizeAppSpec)(nil), "repository.KustomizeAppSpec") 1217 proto.RegisterType((*KsonnetEnvironment)(nil), "repository.KsonnetEnvironment") 1218 proto.RegisterType((*KsonnetEnvironmentDestination)(nil), "repository.KsonnetEnvironmentDestination") 1219 proto.RegisterType((*DirectoryAppSpec)(nil), "repository.DirectoryAppSpec") 1220 proto.RegisterType((*HelmChartsRequest)(nil), "repository.HelmChartsRequest") 1221 proto.RegisterType((*HelmChart)(nil), "repository.HelmChart") 1222 proto.RegisterType((*HelmChartsResponse)(nil), "repository.HelmChartsResponse") 1223 } 1224 1225 func init() { 1226 proto.RegisterFile("reposerver/repository/repository.proto", fileDescriptor_dd8723cfcc820480) 1227 } 1228 1229 var fileDescriptor_dd8723cfcc820480 = []byte{ 1230 // 1292 bytes of a gzipped FileDescriptorProto 1231 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0x5b, 0x6f, 0x1b, 0x45, 1232 0x14, 0xce, 0xda, 0xce, 0xc5, 0xc7, 0x6d, 0xe2, 0x4c, 0x4b, 0x59, 0x4c, 0x6a, 0x85, 0x15, 0x54, 1233 0x81, 0x52, 0x9b, 0x86, 0x0a, 0xaa, 0x56, 0xaa, 0x14, 0x7a, 0x45, 0x49, 0xd5, 0x74, 0x03, 0x95, 1234 0xb8, 0x48, 0xd5, 0x64, 0x7d, 0xb2, 0x1e, 0xbc, 0xde, 0x1d, 0x76, 0xc6, 0x46, 0xe9, 0x1f, 0x80, 1235 0x77, 0xc4, 0x6f, 0xe0, 0x1d, 0x89, 0x07, 0x5e, 0x11, 0x42, 0x3c, 0xf2, 0x13, 0x50, 0x7f, 0x09, 1236 0x9a, 0xd9, 0xdb, 0x78, 0xed, 0xe4, 0xc5, 0xbd, 0xbc, 0x24, 0x33, 0x67, 0xce, 0x6d, 0xce, 0x7c, 1237 0xf3, 0xcd, 0xf1, 0xc2, 0xa5, 0x18, 0x79, 0x24, 0x30, 0x1e, 0x63, 0xdc, 0xd5, 0x43, 0x26, 0xa3, 1238 0xf8, 0xd8, 0x18, 0x76, 0x78, 0x1c, 0xc9, 0x88, 0x40, 0x21, 0x69, 0x9d, 0xf7, 0x23, 0x3f, 0xd2, 1239 0xe2, 0xae, 0x1a, 0x25, 0x1a, 0xad, 0x0d, 0x3f, 0x8a, 0xfc, 0x00, 0xbb, 0x94, 0xb3, 0x2e, 0x0d, 1240 0xc3, 0x48, 0x52, 0xc9, 0xa2, 0x50, 0xa4, 0xab, 0xce, 0xe0, 0xba, 0xe8, 0xb0, 0x48, 0xaf, 0x7a, 1241 0x51, 0x8c, 0xdd, 0xf1, 0xd5, 0xae, 0x8f, 0x21, 0xc6, 0x54, 0x62, 0x2f, 0xd5, 0xf9, 0xdc, 0x67, 1242 0xb2, 0x3f, 0x3a, 0xec, 0x78, 0xd1, 0xb0, 0x4b, 0x63, 0x1d, 0xe2, 0x3b, 0x3d, 0xb8, 0xe2, 0xf5, 1243 0xba, 0x7c, 0xe0, 0x2b, 0x63, 0xd1, 0xa5, 0x9c, 0x07, 0xcc, 0xd3, 0xce, 0xbb, 0xe3, 0xab, 0x34, 1244 0xe0, 0x7d, 0x3a, 0xe5, 0xca, 0xf9, 0x7d, 0x09, 0xd6, 0x1e, 0xd2, 0x90, 0x1d, 0xa1, 0x90, 0x2e, 1245 0x7e, 0x3f, 0x42, 0x21, 0xc9, 0x57, 0x50, 0x53, 0x9b, 0xb0, 0xad, 0x4d, 0x6b, 0xab, 0xb1, 0x7d, 1246 0xb7, 0x53, 0x44, 0xeb, 0x64, 0xd1, 0xf4, 0xe0, 0xa9, 0xd7, 0xeb, 0xf0, 0x81, 0xdf, 0x51, 0xd1, 1247 0x3a, 0x46, 0xb4, 0x4e, 0x16, 0xad, 0xe3, 0xe6, 0xb5, 0x70, 0xb5, 0x4b, 0xd2, 0x82, 0x95, 0x18, 1248 0xc7, 0x4c, 0xb0, 0x28, 0xb4, 0x2b, 0x9b, 0xd6, 0x56, 0xdd, 0xcd, 0xe7, 0xc4, 0x86, 0xe5, 0x30, 1249 0xba, 0x4d, 0xbd, 0x3e, 0xda, 0xd5, 0x4d, 0x6b, 0x6b, 0xc5, 0xcd, 0xa6, 0x64, 0x13, 0x1a, 0x94, 1250 0xf3, 0x3d, 0x7a, 0x88, 0xc1, 0x2e, 0x1e, 0xdb, 0x35, 0x6d, 0x68, 0x8a, 0xc8, 0xbb, 0x70, 0x36, 1251 0x9b, 0x3e, 0xa1, 0xc1, 0x08, 0xed, 0x45, 0xad, 0x33, 0x29, 0x24, 0x1b, 0x50, 0x0f, 0xe9, 0x10, 1252 0x05, 0xa7, 0x1e, 0xda, 0x2b, 0x5a, 0xa3, 0x10, 0x90, 0x67, 0xb0, 0x6e, 0x6c, 0xe2, 0x20, 0x1a, 1253 0xc5, 0x1e, 0xda, 0xa0, 0x6b, 0xb0, 0x37, 0x47, 0x0d, 0x76, 0xca, 0x3e, 0xdd, 0xe9, 0x30, 0xe4, 1254 0x1b, 0x58, 0xd4, 0xb8, 0xb1, 0x1b, 0x9b, 0xd5, 0x17, 0x57, 0xf3, 0xc4, 0x27, 0x19, 0xc0, 0x32, 1255 0x0f, 0x46, 0x3e, 0x0b, 0x85, 0x7d, 0x46, 0xbb, 0x7f, 0x3c, 0x87, 0xfb, 0xdb, 0x51, 0x78, 0xc4, 1256 0xfc, 0x87, 0x34, 0xa4, 0x3e, 0x0e, 0x31, 0x94, 0xfb, 0xda, 0xb3, 0x9b, 0x45, 0x20, 0x3f, 0x40, 1257 0x73, 0x30, 0x12, 0x32, 0x1a, 0xb2, 0x67, 0xf8, 0x88, 0x6b, 0x64, 0xdb, 0x67, 0x75, 0x11, 0x77, 1258 0xe7, 0x88, 0xba, 0x5b, 0x72, 0xe9, 0x4e, 0x05, 0x51, 0x20, 0x19, 0x8c, 0x0e, 0xf1, 0x09, 0xc6, 1259 0x1a, 0x5d, 0xab, 0x09, 0x48, 0x0c, 0x51, 0x02, 0x23, 0x96, 0xce, 0x84, 0xbd, 0xb6, 0x59, 0x4d, 1260 0x60, 0x94, 0x8b, 0xc8, 0x16, 0xac, 0x8d, 0x31, 0x66, 0x47, 0xc7, 0x07, 0xcc, 0x0f, 0xa9, 0x1c, 1261 0xc5, 0x68, 0x37, 0x35, 0x14, 0xcb, 0x62, 0xe7, 0x6f, 0x0b, 0x9a, 0xc5, 0xbd, 0x11, 0x3c, 0x0a, 1262 0x85, 0xc6, 0xd7, 0x30, 0x95, 0x09, 0xdb, 0xd2, 0xee, 0x0b, 0xc1, 0x24, 0xfa, 0x2a, 0x65, 0xf4, 1263 0x5d, 0x80, 0xa5, 0x84, 0x5d, 0x34, 0xf8, 0xeb, 0x6e, 0x3a, 0x9b, 0xb8, 0x31, 0xb5, 0xd2, 0x8d, 1264 0x69, 0x03, 0x08, 0x8d, 0x9f, 0x2f, 0x8e, 0x39, 0xda, 0x4b, 0x7a, 0xd5, 0x90, 0x10, 0x07, 0xce, 1265 0x24, 0x79, 0xbb, 0x28, 0x46, 0x81, 0xb4, 0x97, 0xb5, 0xc6, 0x84, 0xcc, 0x09, 0x60, 0x6d, 0x8f, 1266 0xa9, 0x3d, 0x1c, 0x89, 0x97, 0x7f, 0xff, 0x9d, 0x4f, 0xa0, 0xa6, 0x22, 0xa9, 0x5d, 0x1d, 0xc6, 1267 0x34, 0xf4, 0xfa, 0x98, 0x15, 0x2a, 0x9f, 0x13, 0x02, 0x35, 0x49, 0x7d, 0x61, 0x57, 0xb4, 0x5c, 1268 0x8f, 0x9d, 0x9f, 0xac, 0x24, 0xcd, 0x1d, 0xce, 0xc5, 0xeb, 0xa5, 0x29, 0x67, 0x04, 0xcb, 0x3b, 1269 0x9c, 0xab, 0x64, 0xc8, 0x55, 0xa8, 0x51, 0xce, 0x93, 0x1d, 0x34, 0xb6, 0x2f, 0x76, 0x8c, 0xc7, 1270 0x20, 0x55, 0x51, 0xff, 0xc5, 0xdd, 0x50, 0x2a, 0xcf, 0x4a, 0xb5, 0xf5, 0x29, 0xd4, 0x73, 0x11, 1271 0x69, 0x42, 0x75, 0x80, 0xc7, 0x7a, 0x03, 0x75, 0x57, 0x0d, 0xc9, 0x79, 0x58, 0x1c, 0x6b, 0xfe, 1272 0x4a, 0xa2, 0x26, 0x93, 0x1b, 0x95, 0xeb, 0x96, 0xf3, 0x5b, 0x15, 0xde, 0x52, 0x79, 0x1e, 0x68, 1273 0x58, 0xec, 0x70, 0x7e, 0x07, 0x25, 0x65, 0x81, 0x78, 0x3c, 0xc2, 0xf8, 0xf8, 0x65, 0xd6, 0xa2, 1274 0x07, 0x4b, 0x09, 0xa4, 0x74, 0x4e, 0x2f, 0x9a, 0x0b, 0x53, 0xdf, 0x05, 0x01, 0x56, 0x5f, 0x02, 1275 0x01, 0xce, 0xe2, 0xa4, 0xda, 0x2b, 0xe0, 0x24, 0xe7, 0xc7, 0x0a, 0x5c, 0x50, 0xe9, 0x14, 0xc7, 1276 0x95, 0x73, 0x85, 0x42, 0xb9, 0xba, 0xb5, 0xc9, 0xe1, 0xeb, 0x31, 0xb9, 0x06, 0xcb, 0x03, 0x11, 1277 0x85, 0x21, 0xca, 0xb4, 0xd6, 0x2d, 0x13, 0x52, 0xbb, 0xc9, 0xd2, 0x0e, 0xe7, 0x07, 0x1c, 0x3d, 1278 0x37, 0x53, 0x25, 0x97, 0xa1, 0xd6, 0xc7, 0x60, 0xa8, 0x79, 0xa3, 0xb1, 0xfd, 0xa6, 0x69, 0xf2, 1279 0x00, 0x83, 0x61, 0xa6, 0xaf, 0x95, 0xc8, 0x0d, 0xa8, 0xe7, 0x59, 0xa6, 0x35, 0xd8, 0x98, 0x08, 1280 0x92, 0x2d, 0x66, 0x66, 0x85, 0xba, 0xb2, 0xed, 0xb1, 0x18, 0x3d, 0xa5, 0xa8, 0x1f, 0xd8, 0x92, 1281 0xed, 0x9d, 0x6c, 0x31, 0xb7, 0xcd, 0xd5, 0x9d, 0x3f, 0x2d, 0x78, 0xa7, 0x80, 0xaf, 0x9b, 0x5e, 1282 0xa6, 0x87, 0x28, 0x69, 0x8f, 0x4a, 0xfa, 0x9a, 0x3b, 0x8f, 0x4b, 0xb0, 0xea, 0xf5, 0xd1, 0x1b, 1283 0x14, 0xac, 0x9f, 0x34, 0x20, 0x25, 0xa9, 0xf3, 0x57, 0x05, 0x56, 0x27, 0x4f, 0x41, 0x1d, 0xa3, 1284 0xe2, 0xf0, 0xec, 0x18, 0xd5, 0x98, 0xec, 0xc3, 0x19, 0x0c, 0xc7, 0x2c, 0x8e, 0x42, 0xf5, 0x40, 1285 0x66, 0x90, 0xfe, 0xf0, 0xe4, 0xb3, 0xec, 0xdc, 0x35, 0xd4, 0x13, 0xb6, 0x98, 0xf0, 0x40, 0x06, 1286 0x00, 0x9c, 0xc6, 0x74, 0x88, 0x12, 0x63, 0x05, 0xdd, 0xea, 0xbc, 0xd0, 0x4d, 0xc2, 0xef, 0x67, 1287 0x3e, 0x5d, 0xc3, 0x7d, 0xeb, 0x29, 0xac, 0x4f, 0xe5, 0x33, 0x83, 0xaa, 0xae, 0x99, 0x54, 0xd5, 1288 0xd8, 0x6e, 0xcf, 0xd8, 0x9e, 0xe1, 0xc6, 0xa4, 0xb2, 0x3f, 0x2a, 0xd0, 0x30, 0x90, 0x39, 0xb3, 1289 0x86, 0x6d, 0x00, 0x6d, 0x70, 0x8f, 0x05, 0x98, 0x54, 0xb0, 0xee, 0x1a, 0x12, 0xd2, 0x9f, 0x51, 1290 0x91, 0x07, 0x73, 0x54, 0x44, 0xe5, 0x33, 0xb3, 0x1c, 0xea, 0x61, 0xd6, 0x71, 0x45, 0xda, 0x53, 1291 0xa6, 0x33, 0x22, 0x61, 0xf5, 0x88, 0x05, 0xb8, 0x5f, 0x64, 0xb1, 0xa4, 0xb3, 0xd8, 0x9b, 0x33, 1292 0x8b, 0x7b, 0xa6, 0x53, 0xb7, 0x14, 0xc3, 0xf9, 0x00, 0x9a, 0xe5, 0x2b, 0xaa, 0x32, 0x64, 0x43, 1293 0xea, 0xe7, 0x75, 0x4a, 0x67, 0xce, 0x2f, 0x16, 0x90, 0xe9, 0x93, 0x38, 0xa9, 0xdc, 0x83, 0xeb, 1294 0x22, 0xeb, 0x9d, 0x92, 0xfb, 0x61, 0x48, 0xc8, 0x2e, 0x34, 0x7a, 0x28, 0x24, 0x0b, 0x75, 0xc2, 1295 0x29, 0x71, 0xbc, 0x7f, 0xfa, 0x91, 0xdf, 0x29, 0x0c, 0x5c, 0xd3, 0xda, 0xf9, 0x12, 0x2e, 0x9e, 1296 0xaa, 0x6d, 0xf4, 0x42, 0xd6, 0x44, 0x2f, 0x74, 0x6a, 0x07, 0xe5, 0x10, 0x68, 0x96, 0x19, 0xc8, 1297 0x09, 0x61, 0x5d, 0xd5, 0xf4, 0x76, 0x9f, 0xc6, 0xf2, 0x55, 0xf4, 0x37, 0x37, 0xa1, 0x9e, 0xc7, 1298 0x9b, 0x59, 0xe8, 0x16, 0xac, 0x8c, 0xb3, 0x06, 0x34, 0x69, 0x70, 0xf2, 0xb9, 0xb3, 0x03, 0xc4, 1299 0x4c, 0x36, 0x7d, 0x28, 0x2e, 0xc3, 0x22, 0x93, 0x38, 0xcc, 0xba, 0x8c, 0x37, 0xca, 0xfc, 0xae, 1300 0xd5, 0xdd, 0x44, 0x67, 0xfb, 0xd7, 0x1a, 0xac, 0x17, 0x34, 0xab, 0xfe, 0x32, 0x0f, 0xc9, 0x23, 1301 0x68, 0xde, 0x4f, 0x7f, 0xf7, 0x65, 0x3d, 0x2b, 0x79, 0xdb, 0xf4, 0x53, 0xfa, 0x05, 0xd8, 0xda, 1302 0x98, 0xbd, 0x98, 0x64, 0xe4, 0x2c, 0x90, 0x9b, 0xb0, 0x92, 0x35, 0x8d, 0x93, 0x8e, 0x4a, 0xad, 1303 0x64, 0xab, 0x69, 0x2e, 0xaa, 0x05, 0x67, 0x81, 0xdc, 0x4a, 0x8c, 0x55, 0x1b, 0x34, 0x6d, 0x6c, 1304 0x34, 0x78, 0xad, 0x73, 0x33, 0x1a, 0x2a, 0x67, 0x81, 0x7c, 0x0b, 0x67, 0xef, 0x6b, 0xea, 0x4c, 1305 0x9f, 0x54, 0xf2, 0xde, 0x64, 0x90, 0x13, 0x7a, 0xa4, 0x96, 0x53, 0x56, 0x9b, 0x7e, 0x95, 0x9d, 1306 0x05, 0xf2, 0xb3, 0x05, 0xe7, 0xee, 0xa3, 0x2c, 0xbf, 0x50, 0xe4, 0xca, 0xec, 0x20, 0x27, 0xbc, 1307 0x64, 0xad, 0xdd, 0xb9, 0x50, 0x35, 0xe9, 0xd3, 0x59, 0x20, 0xfb, 0x7a, 0xcf, 0x05, 0x3a, 0xc8, 1308 0xc5, 0x99, 0x30, 0xc8, 0x4b, 0xd7, 0x3e, 0x69, 0x39, 0xdb, 0xe7, 0x67, 0xb7, 0xfe, 0x79, 0xde, 1309 0xb6, 0xfe, 0x7d, 0xde, 0xb6, 0xfe, 0x7b, 0xde, 0xb6, 0xbe, 0xfe, 0xe8, 0xb4, 0x2f, 0x0a, 0xc6, 1310 0x97, 0x0f, 0xca, 0x99, 0x17, 0x30, 0x0c, 0xe5, 0xe1, 0x92, 0xfe, 0x7e, 0xf0, 0xf1, 0xff, 0x01, 1311 0x00, 0x00, 0xff, 0xff, 0xaa, 0x90, 0xca, 0xf2, 0x18, 0x11, 0x00, 0x00, 1312 } 1313 1314 // Reference imports to suppress errors if they are not otherwise used. 1315 var _ context.Context 1316 var _ grpc.ClientConn 1317 1318 // This is a compile-time assertion to ensure that this generated file 1319 // is compatible with the grpc package it is being compiled against. 1320 const _ = grpc.SupportPackageIsVersion4 1321 1322 // RepoServerServiceClient is the client API for RepoServerService service. 1323 // 1324 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 1325 type RepoServerServiceClient interface { 1326 // GenerateManifest generates manifest for application in specified repo name and revision 1327 GenerateManifest(ctx context.Context, in *ManifestRequest, opts ...grpc.CallOption) (*ManifestResponse, error) 1328 // Returns a list of refs (eg. branches and tags) in the repo 1329 ListRefs(ctx context.Context, in *ListRefsRequest, opts ...grpc.CallOption) (*Refs, error) 1330 // ListApps returns a list of apps in the repo 1331 ListApps(ctx context.Context, in *ListAppsRequest, opts ...grpc.CallOption) (*AppList, error) 1332 // Generate manifest for application in specified repo name and revision 1333 GetAppDetails(ctx context.Context, in *RepoServerAppDetailsQuery, opts ...grpc.CallOption) (*RepoAppDetailsResponse, error) 1334 // Get the meta-data (author, date, tags, message) for a specific revision of the repo 1335 GetRevisionMetadata(ctx context.Context, in *RepoServerRevisionMetadataRequest, opts ...grpc.CallOption) (*v1alpha1.RevisionMetadata, error) 1336 // GetHelmCharts returns list of helm charts in the specified repository 1337 GetHelmCharts(ctx context.Context, in *HelmChartsRequest, opts ...grpc.CallOption) (*HelmChartsResponse, error) 1338 } 1339 1340 type repoServerServiceClient struct { 1341 cc *grpc.ClientConn 1342 } 1343 1344 func NewRepoServerServiceClient(cc *grpc.ClientConn) RepoServerServiceClient { 1345 return &repoServerServiceClient{cc} 1346 } 1347 1348 func (c *repoServerServiceClient) GenerateManifest(ctx context.Context, in *ManifestRequest, opts ...grpc.CallOption) (*ManifestResponse, error) { 1349 out := new(ManifestResponse) 1350 err := c.cc.Invoke(ctx, "/repository.RepoServerService/GenerateManifest", in, out, opts...) 1351 if err != nil { 1352 return nil, err 1353 } 1354 return out, nil 1355 } 1356 1357 func (c *repoServerServiceClient) ListRefs(ctx context.Context, in *ListRefsRequest, opts ...grpc.CallOption) (*Refs, error) { 1358 out := new(Refs) 1359 err := c.cc.Invoke(ctx, "/repository.RepoServerService/ListRefs", in, out, opts...) 1360 if err != nil { 1361 return nil, err 1362 } 1363 return out, nil 1364 } 1365 1366 func (c *repoServerServiceClient) ListApps(ctx context.Context, in *ListAppsRequest, opts ...grpc.CallOption) (*AppList, error) { 1367 out := new(AppList) 1368 err := c.cc.Invoke(ctx, "/repository.RepoServerService/ListApps", in, out, opts...) 1369 if err != nil { 1370 return nil, err 1371 } 1372 return out, nil 1373 } 1374 1375 func (c *repoServerServiceClient) GetAppDetails(ctx context.Context, in *RepoServerAppDetailsQuery, opts ...grpc.CallOption) (*RepoAppDetailsResponse, error) { 1376 out := new(RepoAppDetailsResponse) 1377 err := c.cc.Invoke(ctx, "/repository.RepoServerService/GetAppDetails", in, out, opts...) 1378 if err != nil { 1379 return nil, err 1380 } 1381 return out, nil 1382 } 1383 1384 func (c *repoServerServiceClient) GetRevisionMetadata(ctx context.Context, in *RepoServerRevisionMetadataRequest, opts ...grpc.CallOption) (*v1alpha1.RevisionMetadata, error) { 1385 out := new(v1alpha1.RevisionMetadata) 1386 err := c.cc.Invoke(ctx, "/repository.RepoServerService/GetRevisionMetadata", in, out, opts...) 1387 if err != nil { 1388 return nil, err 1389 } 1390 return out, nil 1391 } 1392 1393 func (c *repoServerServiceClient) GetHelmCharts(ctx context.Context, in *HelmChartsRequest, opts ...grpc.CallOption) (*HelmChartsResponse, error) { 1394 out := new(HelmChartsResponse) 1395 err := c.cc.Invoke(ctx, "/repository.RepoServerService/GetHelmCharts", in, out, opts...) 1396 if err != nil { 1397 return nil, err 1398 } 1399 return out, nil 1400 } 1401 1402 // RepoServerServiceServer is the server API for RepoServerService service. 1403 type RepoServerServiceServer interface { 1404 // GenerateManifest generates manifest for application in specified repo name and revision 1405 GenerateManifest(context.Context, *ManifestRequest) (*ManifestResponse, error) 1406 // Returns a list of refs (eg. branches and tags) in the repo 1407 ListRefs(context.Context, *ListRefsRequest) (*Refs, error) 1408 // ListApps returns a list of apps in the repo 1409 ListApps(context.Context, *ListAppsRequest) (*AppList, error) 1410 // Generate manifest for application in specified repo name and revision 1411 GetAppDetails(context.Context, *RepoServerAppDetailsQuery) (*RepoAppDetailsResponse, error) 1412 // Get the meta-data (author, date, tags, message) for a specific revision of the repo 1413 GetRevisionMetadata(context.Context, *RepoServerRevisionMetadataRequest) (*v1alpha1.RevisionMetadata, error) 1414 // GetHelmCharts returns list of helm charts in the specified repository 1415 GetHelmCharts(context.Context, *HelmChartsRequest) (*HelmChartsResponse, error) 1416 } 1417 1418 // UnimplementedRepoServerServiceServer can be embedded to have forward compatible implementations. 1419 type UnimplementedRepoServerServiceServer struct { 1420 } 1421 1422 func (*UnimplementedRepoServerServiceServer) GenerateManifest(ctx context.Context, req *ManifestRequest) (*ManifestResponse, error) { 1423 return nil, status.Errorf(codes.Unimplemented, "method GenerateManifest not implemented") 1424 } 1425 func (*UnimplementedRepoServerServiceServer) ListRefs(ctx context.Context, req *ListRefsRequest) (*Refs, error) { 1426 return nil, status.Errorf(codes.Unimplemented, "method ListRefs not implemented") 1427 } 1428 func (*UnimplementedRepoServerServiceServer) ListApps(ctx context.Context, req *ListAppsRequest) (*AppList, error) { 1429 return nil, status.Errorf(codes.Unimplemented, "method ListApps not implemented") 1430 } 1431 func (*UnimplementedRepoServerServiceServer) GetAppDetails(ctx context.Context, req *RepoServerAppDetailsQuery) (*RepoAppDetailsResponse, error) { 1432 return nil, status.Errorf(codes.Unimplemented, "method GetAppDetails not implemented") 1433 } 1434 func (*UnimplementedRepoServerServiceServer) GetRevisionMetadata(ctx context.Context, req *RepoServerRevisionMetadataRequest) (*v1alpha1.RevisionMetadata, error) { 1435 return nil, status.Errorf(codes.Unimplemented, "method GetRevisionMetadata not implemented") 1436 } 1437 func (*UnimplementedRepoServerServiceServer) GetHelmCharts(ctx context.Context, req *HelmChartsRequest) (*HelmChartsResponse, error) { 1438 return nil, status.Errorf(codes.Unimplemented, "method GetHelmCharts not implemented") 1439 } 1440 1441 func RegisterRepoServerServiceServer(s *grpc.Server, srv RepoServerServiceServer) { 1442 s.RegisterService(&_RepoServerService_serviceDesc, srv) 1443 } 1444 1445 func _RepoServerService_GenerateManifest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1446 in := new(ManifestRequest) 1447 if err := dec(in); err != nil { 1448 return nil, err 1449 } 1450 if interceptor == nil { 1451 return srv.(RepoServerServiceServer).GenerateManifest(ctx, in) 1452 } 1453 info := &grpc.UnaryServerInfo{ 1454 Server: srv, 1455 FullMethod: "/repository.RepoServerService/GenerateManifest", 1456 } 1457 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1458 return srv.(RepoServerServiceServer).GenerateManifest(ctx, req.(*ManifestRequest)) 1459 } 1460 return interceptor(ctx, in, info, handler) 1461 } 1462 1463 func _RepoServerService_ListRefs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1464 in := new(ListRefsRequest) 1465 if err := dec(in); err != nil { 1466 return nil, err 1467 } 1468 if interceptor == nil { 1469 return srv.(RepoServerServiceServer).ListRefs(ctx, in) 1470 } 1471 info := &grpc.UnaryServerInfo{ 1472 Server: srv, 1473 FullMethod: "/repository.RepoServerService/ListRefs", 1474 } 1475 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1476 return srv.(RepoServerServiceServer).ListRefs(ctx, req.(*ListRefsRequest)) 1477 } 1478 return interceptor(ctx, in, info, handler) 1479 } 1480 1481 func _RepoServerService_ListApps_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1482 in := new(ListAppsRequest) 1483 if err := dec(in); err != nil { 1484 return nil, err 1485 } 1486 if interceptor == nil { 1487 return srv.(RepoServerServiceServer).ListApps(ctx, in) 1488 } 1489 info := &grpc.UnaryServerInfo{ 1490 Server: srv, 1491 FullMethod: "/repository.RepoServerService/ListApps", 1492 } 1493 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1494 return srv.(RepoServerServiceServer).ListApps(ctx, req.(*ListAppsRequest)) 1495 } 1496 return interceptor(ctx, in, info, handler) 1497 } 1498 1499 func _RepoServerService_GetAppDetails_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1500 in := new(RepoServerAppDetailsQuery) 1501 if err := dec(in); err != nil { 1502 return nil, err 1503 } 1504 if interceptor == nil { 1505 return srv.(RepoServerServiceServer).GetAppDetails(ctx, in) 1506 } 1507 info := &grpc.UnaryServerInfo{ 1508 Server: srv, 1509 FullMethod: "/repository.RepoServerService/GetAppDetails", 1510 } 1511 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1512 return srv.(RepoServerServiceServer).GetAppDetails(ctx, req.(*RepoServerAppDetailsQuery)) 1513 } 1514 return interceptor(ctx, in, info, handler) 1515 } 1516 1517 func _RepoServerService_GetRevisionMetadata_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1518 in := new(RepoServerRevisionMetadataRequest) 1519 if err := dec(in); err != nil { 1520 return nil, err 1521 } 1522 if interceptor == nil { 1523 return srv.(RepoServerServiceServer).GetRevisionMetadata(ctx, in) 1524 } 1525 info := &grpc.UnaryServerInfo{ 1526 Server: srv, 1527 FullMethod: "/repository.RepoServerService/GetRevisionMetadata", 1528 } 1529 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1530 return srv.(RepoServerServiceServer).GetRevisionMetadata(ctx, req.(*RepoServerRevisionMetadataRequest)) 1531 } 1532 return interceptor(ctx, in, info, handler) 1533 } 1534 1535 func _RepoServerService_GetHelmCharts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1536 in := new(HelmChartsRequest) 1537 if err := dec(in); err != nil { 1538 return nil, err 1539 } 1540 if interceptor == nil { 1541 return srv.(RepoServerServiceServer).GetHelmCharts(ctx, in) 1542 } 1543 info := &grpc.UnaryServerInfo{ 1544 Server: srv, 1545 FullMethod: "/repository.RepoServerService/GetHelmCharts", 1546 } 1547 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1548 return srv.(RepoServerServiceServer).GetHelmCharts(ctx, req.(*HelmChartsRequest)) 1549 } 1550 return interceptor(ctx, in, info, handler) 1551 } 1552 1553 var _RepoServerService_serviceDesc = grpc.ServiceDesc{ 1554 ServiceName: "repository.RepoServerService", 1555 HandlerType: (*RepoServerServiceServer)(nil), 1556 Methods: []grpc.MethodDesc{ 1557 { 1558 MethodName: "GenerateManifest", 1559 Handler: _RepoServerService_GenerateManifest_Handler, 1560 }, 1561 { 1562 MethodName: "ListRefs", 1563 Handler: _RepoServerService_ListRefs_Handler, 1564 }, 1565 { 1566 MethodName: "ListApps", 1567 Handler: _RepoServerService_ListApps_Handler, 1568 }, 1569 { 1570 MethodName: "GetAppDetails", 1571 Handler: _RepoServerService_GetAppDetails_Handler, 1572 }, 1573 { 1574 MethodName: "GetRevisionMetadata", 1575 Handler: _RepoServerService_GetRevisionMetadata_Handler, 1576 }, 1577 { 1578 MethodName: "GetHelmCharts", 1579 Handler: _RepoServerService_GetHelmCharts_Handler, 1580 }, 1581 }, 1582 Streams: []grpc.StreamDesc{}, 1583 Metadata: "reposerver/repository/repository.proto", 1584 } 1585 1586 func (m *ManifestRequest) Marshal() (dAtA []byte, err error) { 1587 size := m.Size() 1588 dAtA = make([]byte, size) 1589 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1590 if err != nil { 1591 return nil, err 1592 } 1593 return dAtA[:n], nil 1594 } 1595 1596 func (m *ManifestRequest) MarshalTo(dAtA []byte) (int, error) { 1597 size := m.Size() 1598 return m.MarshalToSizedBuffer(dAtA[:size]) 1599 } 1600 1601 func (m *ManifestRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1602 i := len(dAtA) 1603 _ = i 1604 var l int 1605 _ = l 1606 if m.XXX_unrecognized != nil { 1607 i -= len(m.XXX_unrecognized) 1608 copy(dAtA[i:], m.XXX_unrecognized) 1609 } 1610 if m.VerifySignature { 1611 i-- 1612 if m.VerifySignature { 1613 dAtA[i] = 1 1614 } else { 1615 dAtA[i] = 0 1616 } 1617 i-- 1618 dAtA[i] = 0x1 1619 i-- 1620 dAtA[i] = 0x80 1621 } 1622 if len(m.ApiVersions) > 0 { 1623 for iNdEx := len(m.ApiVersions) - 1; iNdEx >= 0; iNdEx-- { 1624 i -= len(m.ApiVersions[iNdEx]) 1625 copy(dAtA[i:], m.ApiVersions[iNdEx]) 1626 i = encodeVarintRepository(dAtA, i, uint64(len(m.ApiVersions[iNdEx]))) 1627 i-- 1628 dAtA[i] = 0x7a 1629 } 1630 } 1631 if len(m.KubeVersion) > 0 { 1632 i -= len(m.KubeVersion) 1633 copy(dAtA[i:], m.KubeVersion) 1634 i = encodeVarintRepository(dAtA, i, uint64(len(m.KubeVersion))) 1635 i-- 1636 dAtA[i] = 0x72 1637 } 1638 if m.KustomizeOptions != nil { 1639 { 1640 size, err := m.KustomizeOptions.MarshalToSizedBuffer(dAtA[:i]) 1641 if err != nil { 1642 return 0, err 1643 } 1644 i -= size 1645 i = encodeVarintRepository(dAtA, i, uint64(size)) 1646 } 1647 i-- 1648 dAtA[i] = 0x6a 1649 } 1650 if len(m.Plugins) > 0 { 1651 for iNdEx := len(m.Plugins) - 1; iNdEx >= 0; iNdEx-- { 1652 { 1653 size, err := m.Plugins[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 1654 if err != nil { 1655 return 0, err 1656 } 1657 i -= size 1658 i = encodeVarintRepository(dAtA, i, uint64(size)) 1659 } 1660 i-- 1661 dAtA[i] = 0x62 1662 } 1663 } 1664 if len(m.Repos) > 0 { 1665 for iNdEx := len(m.Repos) - 1; iNdEx >= 0; iNdEx-- { 1666 { 1667 size, err := m.Repos[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 1668 if err != nil { 1669 return 0, err 1670 } 1671 i -= size 1672 i = encodeVarintRepository(dAtA, i, uint64(size)) 1673 } 1674 i-- 1675 dAtA[i] = 0x5a 1676 } 1677 } 1678 if m.ApplicationSource != nil { 1679 { 1680 size, err := m.ApplicationSource.MarshalToSizedBuffer(dAtA[:i]) 1681 if err != nil { 1682 return 0, err 1683 } 1684 i -= size 1685 i = encodeVarintRepository(dAtA, i, uint64(size)) 1686 } 1687 i-- 1688 dAtA[i] = 0x52 1689 } 1690 if len(m.Namespace) > 0 { 1691 i -= len(m.Namespace) 1692 copy(dAtA[i:], m.Namespace) 1693 i = encodeVarintRepository(dAtA, i, uint64(len(m.Namespace))) 1694 i-- 1695 dAtA[i] = 0x42 1696 } 1697 if len(m.AppLabelValue) > 0 { 1698 i -= len(m.AppLabelValue) 1699 copy(dAtA[i:], m.AppLabelValue) 1700 i = encodeVarintRepository(dAtA, i, uint64(len(m.AppLabelValue))) 1701 i-- 1702 dAtA[i] = 0x2a 1703 } 1704 if len(m.AppLabelKey) > 0 { 1705 i -= len(m.AppLabelKey) 1706 copy(dAtA[i:], m.AppLabelKey) 1707 i = encodeVarintRepository(dAtA, i, uint64(len(m.AppLabelKey))) 1708 i-- 1709 dAtA[i] = 0x22 1710 } 1711 if m.NoCache { 1712 i-- 1713 if m.NoCache { 1714 dAtA[i] = 1 1715 } else { 1716 dAtA[i] = 0 1717 } 1718 i-- 1719 dAtA[i] = 0x18 1720 } 1721 if len(m.Revision) > 0 { 1722 i -= len(m.Revision) 1723 copy(dAtA[i:], m.Revision) 1724 i = encodeVarintRepository(dAtA, i, uint64(len(m.Revision))) 1725 i-- 1726 dAtA[i] = 0x12 1727 } 1728 if m.Repo != nil { 1729 { 1730 size, err := m.Repo.MarshalToSizedBuffer(dAtA[:i]) 1731 if err != nil { 1732 return 0, err 1733 } 1734 i -= size 1735 i = encodeVarintRepository(dAtA, i, uint64(size)) 1736 } 1737 i-- 1738 dAtA[i] = 0xa 1739 } 1740 return len(dAtA) - i, nil 1741 } 1742 1743 func (m *ManifestResponse) Marshal() (dAtA []byte, err error) { 1744 size := m.Size() 1745 dAtA = make([]byte, size) 1746 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1747 if err != nil { 1748 return nil, err 1749 } 1750 return dAtA[:n], nil 1751 } 1752 1753 func (m *ManifestResponse) MarshalTo(dAtA []byte) (int, error) { 1754 size := m.Size() 1755 return m.MarshalToSizedBuffer(dAtA[:size]) 1756 } 1757 1758 func (m *ManifestResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1759 i := len(dAtA) 1760 _ = i 1761 var l int 1762 _ = l 1763 if m.XXX_unrecognized != nil { 1764 i -= len(m.XXX_unrecognized) 1765 copy(dAtA[i:], m.XXX_unrecognized) 1766 } 1767 if len(m.VerifyResult) > 0 { 1768 i -= len(m.VerifyResult) 1769 copy(dAtA[i:], m.VerifyResult) 1770 i = encodeVarintRepository(dAtA, i, uint64(len(m.VerifyResult))) 1771 i-- 1772 dAtA[i] = 0x3a 1773 } 1774 if len(m.SourceType) > 0 { 1775 i -= len(m.SourceType) 1776 copy(dAtA[i:], m.SourceType) 1777 i = encodeVarintRepository(dAtA, i, uint64(len(m.SourceType))) 1778 i-- 1779 dAtA[i] = 0x32 1780 } 1781 if len(m.Revision) > 0 { 1782 i -= len(m.Revision) 1783 copy(dAtA[i:], m.Revision) 1784 i = encodeVarintRepository(dAtA, i, uint64(len(m.Revision))) 1785 i-- 1786 dAtA[i] = 0x22 1787 } 1788 if len(m.Server) > 0 { 1789 i -= len(m.Server) 1790 copy(dAtA[i:], m.Server) 1791 i = encodeVarintRepository(dAtA, i, uint64(len(m.Server))) 1792 i-- 1793 dAtA[i] = 0x1a 1794 } 1795 if len(m.Namespace) > 0 { 1796 i -= len(m.Namespace) 1797 copy(dAtA[i:], m.Namespace) 1798 i = encodeVarintRepository(dAtA, i, uint64(len(m.Namespace))) 1799 i-- 1800 dAtA[i] = 0x12 1801 } 1802 if len(m.Manifests) > 0 { 1803 for iNdEx := len(m.Manifests) - 1; iNdEx >= 0; iNdEx-- { 1804 i -= len(m.Manifests[iNdEx]) 1805 copy(dAtA[i:], m.Manifests[iNdEx]) 1806 i = encodeVarintRepository(dAtA, i, uint64(len(m.Manifests[iNdEx]))) 1807 i-- 1808 dAtA[i] = 0xa 1809 } 1810 } 1811 return len(dAtA) - i, nil 1812 } 1813 1814 func (m *ListRefsRequest) Marshal() (dAtA []byte, err error) { 1815 size := m.Size() 1816 dAtA = make([]byte, size) 1817 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1818 if err != nil { 1819 return nil, err 1820 } 1821 return dAtA[:n], nil 1822 } 1823 1824 func (m *ListRefsRequest) MarshalTo(dAtA []byte) (int, error) { 1825 size := m.Size() 1826 return m.MarshalToSizedBuffer(dAtA[:size]) 1827 } 1828 1829 func (m *ListRefsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1830 i := len(dAtA) 1831 _ = i 1832 var l int 1833 _ = l 1834 if m.XXX_unrecognized != nil { 1835 i -= len(m.XXX_unrecognized) 1836 copy(dAtA[i:], m.XXX_unrecognized) 1837 } 1838 if m.Repo != nil { 1839 { 1840 size, err := m.Repo.MarshalToSizedBuffer(dAtA[:i]) 1841 if err != nil { 1842 return 0, err 1843 } 1844 i -= size 1845 i = encodeVarintRepository(dAtA, i, uint64(size)) 1846 } 1847 i-- 1848 dAtA[i] = 0xa 1849 } 1850 return len(dAtA) - i, nil 1851 } 1852 1853 func (m *Refs) Marshal() (dAtA []byte, err error) { 1854 size := m.Size() 1855 dAtA = make([]byte, size) 1856 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1857 if err != nil { 1858 return nil, err 1859 } 1860 return dAtA[:n], nil 1861 } 1862 1863 func (m *Refs) MarshalTo(dAtA []byte) (int, error) { 1864 size := m.Size() 1865 return m.MarshalToSizedBuffer(dAtA[:size]) 1866 } 1867 1868 func (m *Refs) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1869 i := len(dAtA) 1870 _ = i 1871 var l int 1872 _ = l 1873 if m.XXX_unrecognized != nil { 1874 i -= len(m.XXX_unrecognized) 1875 copy(dAtA[i:], m.XXX_unrecognized) 1876 } 1877 if len(m.Tags) > 0 { 1878 for iNdEx := len(m.Tags) - 1; iNdEx >= 0; iNdEx-- { 1879 i -= len(m.Tags[iNdEx]) 1880 copy(dAtA[i:], m.Tags[iNdEx]) 1881 i = encodeVarintRepository(dAtA, i, uint64(len(m.Tags[iNdEx]))) 1882 i-- 1883 dAtA[i] = 0x12 1884 } 1885 } 1886 if len(m.Branches) > 0 { 1887 for iNdEx := len(m.Branches) - 1; iNdEx >= 0; iNdEx-- { 1888 i -= len(m.Branches[iNdEx]) 1889 copy(dAtA[i:], m.Branches[iNdEx]) 1890 i = encodeVarintRepository(dAtA, i, uint64(len(m.Branches[iNdEx]))) 1891 i-- 1892 dAtA[i] = 0xa 1893 } 1894 } 1895 return len(dAtA) - i, nil 1896 } 1897 1898 func (m *ListAppsRequest) Marshal() (dAtA []byte, err error) { 1899 size := m.Size() 1900 dAtA = make([]byte, size) 1901 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1902 if err != nil { 1903 return nil, err 1904 } 1905 return dAtA[:n], nil 1906 } 1907 1908 func (m *ListAppsRequest) MarshalTo(dAtA []byte) (int, error) { 1909 size := m.Size() 1910 return m.MarshalToSizedBuffer(dAtA[:size]) 1911 } 1912 1913 func (m *ListAppsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1914 i := len(dAtA) 1915 _ = i 1916 var l int 1917 _ = l 1918 if m.XXX_unrecognized != nil { 1919 i -= len(m.XXX_unrecognized) 1920 copy(dAtA[i:], m.XXX_unrecognized) 1921 } 1922 if len(m.Revision) > 0 { 1923 i -= len(m.Revision) 1924 copy(dAtA[i:], m.Revision) 1925 i = encodeVarintRepository(dAtA, i, uint64(len(m.Revision))) 1926 i-- 1927 dAtA[i] = 0x12 1928 } 1929 if m.Repo != nil { 1930 { 1931 size, err := m.Repo.MarshalToSizedBuffer(dAtA[:i]) 1932 if err != nil { 1933 return 0, err 1934 } 1935 i -= size 1936 i = encodeVarintRepository(dAtA, i, uint64(size)) 1937 } 1938 i-- 1939 dAtA[i] = 0xa 1940 } 1941 return len(dAtA) - i, nil 1942 } 1943 1944 func (m *AppList) Marshal() (dAtA []byte, err error) { 1945 size := m.Size() 1946 dAtA = make([]byte, size) 1947 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1948 if err != nil { 1949 return nil, err 1950 } 1951 return dAtA[:n], nil 1952 } 1953 1954 func (m *AppList) MarshalTo(dAtA []byte) (int, error) { 1955 size := m.Size() 1956 return m.MarshalToSizedBuffer(dAtA[:size]) 1957 } 1958 1959 func (m *AppList) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1960 i := len(dAtA) 1961 _ = i 1962 var l int 1963 _ = l 1964 if m.XXX_unrecognized != nil { 1965 i -= len(m.XXX_unrecognized) 1966 copy(dAtA[i:], m.XXX_unrecognized) 1967 } 1968 if len(m.Apps) > 0 { 1969 for k := range m.Apps { 1970 v := m.Apps[k] 1971 baseI := i 1972 i -= len(v) 1973 copy(dAtA[i:], v) 1974 i = encodeVarintRepository(dAtA, i, uint64(len(v))) 1975 i-- 1976 dAtA[i] = 0x12 1977 i -= len(k) 1978 copy(dAtA[i:], k) 1979 i = encodeVarintRepository(dAtA, i, uint64(len(k))) 1980 i-- 1981 dAtA[i] = 0xa 1982 i = encodeVarintRepository(dAtA, i, uint64(baseI-i)) 1983 i-- 1984 dAtA[i] = 0xa 1985 } 1986 } 1987 return len(dAtA) - i, nil 1988 } 1989 1990 func (m *RepoServerAppDetailsQuery) Marshal() (dAtA []byte, err error) { 1991 size := m.Size() 1992 dAtA = make([]byte, size) 1993 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1994 if err != nil { 1995 return nil, err 1996 } 1997 return dAtA[:n], nil 1998 } 1999 2000 func (m *RepoServerAppDetailsQuery) MarshalTo(dAtA []byte) (int, error) { 2001 size := m.Size() 2002 return m.MarshalToSizedBuffer(dAtA[:size]) 2003 } 2004 2005 func (m *RepoServerAppDetailsQuery) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2006 i := len(dAtA) 2007 _ = i 2008 var l int 2009 _ = l 2010 if m.XXX_unrecognized != nil { 2011 i -= len(m.XXX_unrecognized) 2012 copy(dAtA[i:], m.XXX_unrecognized) 2013 } 2014 if m.KustomizeOptions != nil { 2015 { 2016 size, err := m.KustomizeOptions.MarshalToSizedBuffer(dAtA[:i]) 2017 if err != nil { 2018 return 0, err 2019 } 2020 i -= size 2021 i = encodeVarintRepository(dAtA, i, uint64(size)) 2022 } 2023 i-- 2024 dAtA[i] = 0x22 2025 } 2026 if len(m.Repos) > 0 { 2027 for iNdEx := len(m.Repos) - 1; iNdEx >= 0; iNdEx-- { 2028 { 2029 size, err := m.Repos[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 2030 if err != nil { 2031 return 0, err 2032 } 2033 i -= size 2034 i = encodeVarintRepository(dAtA, i, uint64(size)) 2035 } 2036 i-- 2037 dAtA[i] = 0x1a 2038 } 2039 } 2040 if m.Source != nil { 2041 { 2042 size, err := m.Source.MarshalToSizedBuffer(dAtA[:i]) 2043 if err != nil { 2044 return 0, err 2045 } 2046 i -= size 2047 i = encodeVarintRepository(dAtA, i, uint64(size)) 2048 } 2049 i-- 2050 dAtA[i] = 0x12 2051 } 2052 if m.Repo != nil { 2053 { 2054 size, err := m.Repo.MarshalToSizedBuffer(dAtA[:i]) 2055 if err != nil { 2056 return 0, err 2057 } 2058 i -= size 2059 i = encodeVarintRepository(dAtA, i, uint64(size)) 2060 } 2061 i-- 2062 dAtA[i] = 0xa 2063 } 2064 return len(dAtA) - i, nil 2065 } 2066 2067 func (m *RepoAppDetailsResponse) Marshal() (dAtA []byte, err error) { 2068 size := m.Size() 2069 dAtA = make([]byte, size) 2070 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2071 if err != nil { 2072 return nil, err 2073 } 2074 return dAtA[:n], nil 2075 } 2076 2077 func (m *RepoAppDetailsResponse) MarshalTo(dAtA []byte) (int, error) { 2078 size := m.Size() 2079 return m.MarshalToSizedBuffer(dAtA[:size]) 2080 } 2081 2082 func (m *RepoAppDetailsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2083 i := len(dAtA) 2084 _ = i 2085 var l int 2086 _ = l 2087 if m.XXX_unrecognized != nil { 2088 i -= len(m.XXX_unrecognized) 2089 copy(dAtA[i:], m.XXX_unrecognized) 2090 } 2091 if m.Directory != nil { 2092 { 2093 size, err := m.Directory.MarshalToSizedBuffer(dAtA[:i]) 2094 if err != nil { 2095 return 0, err 2096 } 2097 i -= size 2098 i = encodeVarintRepository(dAtA, i, uint64(size)) 2099 } 2100 i-- 2101 dAtA[i] = 0x2a 2102 } 2103 if m.Kustomize != nil { 2104 { 2105 size, err := m.Kustomize.MarshalToSizedBuffer(dAtA[:i]) 2106 if err != nil { 2107 return 0, err 2108 } 2109 i -= size 2110 i = encodeVarintRepository(dAtA, i, uint64(size)) 2111 } 2112 i-- 2113 dAtA[i] = 0x22 2114 } 2115 if m.Helm != nil { 2116 { 2117 size, err := m.Helm.MarshalToSizedBuffer(dAtA[:i]) 2118 if err != nil { 2119 return 0, err 2120 } 2121 i -= size 2122 i = encodeVarintRepository(dAtA, i, uint64(size)) 2123 } 2124 i-- 2125 dAtA[i] = 0x1a 2126 } 2127 if m.Ksonnet != nil { 2128 { 2129 size, err := m.Ksonnet.MarshalToSizedBuffer(dAtA[:i]) 2130 if err != nil { 2131 return 0, err 2132 } 2133 i -= size 2134 i = encodeVarintRepository(dAtA, i, uint64(size)) 2135 } 2136 i-- 2137 dAtA[i] = 0x12 2138 } 2139 if len(m.Type) > 0 { 2140 i -= len(m.Type) 2141 copy(dAtA[i:], m.Type) 2142 i = encodeVarintRepository(dAtA, i, uint64(len(m.Type))) 2143 i-- 2144 dAtA[i] = 0xa 2145 } 2146 return len(dAtA) - i, nil 2147 } 2148 2149 func (m *RepoServerRevisionMetadataRequest) Marshal() (dAtA []byte, err error) { 2150 size := m.Size() 2151 dAtA = make([]byte, size) 2152 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2153 if err != nil { 2154 return nil, err 2155 } 2156 return dAtA[:n], nil 2157 } 2158 2159 func (m *RepoServerRevisionMetadataRequest) MarshalTo(dAtA []byte) (int, error) { 2160 size := m.Size() 2161 return m.MarshalToSizedBuffer(dAtA[:size]) 2162 } 2163 2164 func (m *RepoServerRevisionMetadataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2165 i := len(dAtA) 2166 _ = i 2167 var l int 2168 _ = l 2169 if m.XXX_unrecognized != nil { 2170 i -= len(m.XXX_unrecognized) 2171 copy(dAtA[i:], m.XXX_unrecognized) 2172 } 2173 if m.CheckSignature { 2174 i-- 2175 if m.CheckSignature { 2176 dAtA[i] = 1 2177 } else { 2178 dAtA[i] = 0 2179 } 2180 i-- 2181 dAtA[i] = 0x18 2182 } 2183 if len(m.Revision) > 0 { 2184 i -= len(m.Revision) 2185 copy(dAtA[i:], m.Revision) 2186 i = encodeVarintRepository(dAtA, i, uint64(len(m.Revision))) 2187 i-- 2188 dAtA[i] = 0x12 2189 } 2190 if m.Repo != nil { 2191 { 2192 size, err := m.Repo.MarshalToSizedBuffer(dAtA[:i]) 2193 if err != nil { 2194 return 0, err 2195 } 2196 i -= size 2197 i = encodeVarintRepository(dAtA, i, uint64(size)) 2198 } 2199 i-- 2200 dAtA[i] = 0xa 2201 } 2202 return len(dAtA) - i, nil 2203 } 2204 2205 func (m *KsonnetAppSpec) Marshal() (dAtA []byte, err error) { 2206 size := m.Size() 2207 dAtA = make([]byte, size) 2208 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2209 if err != nil { 2210 return nil, err 2211 } 2212 return dAtA[:n], nil 2213 } 2214 2215 func (m *KsonnetAppSpec) MarshalTo(dAtA []byte) (int, error) { 2216 size := m.Size() 2217 return m.MarshalToSizedBuffer(dAtA[:size]) 2218 } 2219 2220 func (m *KsonnetAppSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2221 i := len(dAtA) 2222 _ = i 2223 var l int 2224 _ = l 2225 if m.XXX_unrecognized != nil { 2226 i -= len(m.XXX_unrecognized) 2227 copy(dAtA[i:], m.XXX_unrecognized) 2228 } 2229 if len(m.Parameters) > 0 { 2230 for iNdEx := len(m.Parameters) - 1; iNdEx >= 0; iNdEx-- { 2231 { 2232 size, err := m.Parameters[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 2233 if err != nil { 2234 return 0, err 2235 } 2236 i -= size 2237 i = encodeVarintRepository(dAtA, i, uint64(size)) 2238 } 2239 i-- 2240 dAtA[i] = 0x22 2241 } 2242 } 2243 if len(m.Environments) > 0 { 2244 for k := range m.Environments { 2245 v := m.Environments[k] 2246 baseI := i 2247 if v != nil { 2248 { 2249 size, err := v.MarshalToSizedBuffer(dAtA[:i]) 2250 if err != nil { 2251 return 0, err 2252 } 2253 i -= size 2254 i = encodeVarintRepository(dAtA, i, uint64(size)) 2255 } 2256 i-- 2257 dAtA[i] = 0x12 2258 } 2259 i -= len(k) 2260 copy(dAtA[i:], k) 2261 i = encodeVarintRepository(dAtA, i, uint64(len(k))) 2262 i-- 2263 dAtA[i] = 0xa 2264 i = encodeVarintRepository(dAtA, i, uint64(baseI-i)) 2265 i-- 2266 dAtA[i] = 0x1a 2267 } 2268 } 2269 if len(m.Name) > 0 { 2270 i -= len(m.Name) 2271 copy(dAtA[i:], m.Name) 2272 i = encodeVarintRepository(dAtA, i, uint64(len(m.Name))) 2273 i-- 2274 dAtA[i] = 0xa 2275 } 2276 return len(dAtA) - i, nil 2277 } 2278 2279 func (m *HelmAppSpec) Marshal() (dAtA []byte, err error) { 2280 size := m.Size() 2281 dAtA = make([]byte, size) 2282 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2283 if err != nil { 2284 return nil, err 2285 } 2286 return dAtA[:n], nil 2287 } 2288 2289 func (m *HelmAppSpec) MarshalTo(dAtA []byte) (int, error) { 2290 size := m.Size() 2291 return m.MarshalToSizedBuffer(dAtA[:size]) 2292 } 2293 2294 func (m *HelmAppSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2295 i := len(dAtA) 2296 _ = i 2297 var l int 2298 _ = l 2299 if m.XXX_unrecognized != nil { 2300 i -= len(m.XXX_unrecognized) 2301 copy(dAtA[i:], m.XXX_unrecognized) 2302 } 2303 if len(m.FileParameters) > 0 { 2304 for iNdEx := len(m.FileParameters) - 1; iNdEx >= 0; iNdEx-- { 2305 { 2306 size, err := m.FileParameters[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 2307 if err != nil { 2308 return 0, err 2309 } 2310 i -= size 2311 i = encodeVarintRepository(dAtA, i, uint64(size)) 2312 } 2313 i-- 2314 dAtA[i] = 0x32 2315 } 2316 } 2317 if len(m.Values) > 0 { 2318 i -= len(m.Values) 2319 copy(dAtA[i:], m.Values) 2320 i = encodeVarintRepository(dAtA, i, uint64(len(m.Values))) 2321 i-- 2322 dAtA[i] = 0x2a 2323 } 2324 if len(m.Parameters) > 0 { 2325 for iNdEx := len(m.Parameters) - 1; iNdEx >= 0; iNdEx-- { 2326 { 2327 size, err := m.Parameters[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 2328 if err != nil { 2329 return 0, err 2330 } 2331 i -= size 2332 i = encodeVarintRepository(dAtA, i, uint64(size)) 2333 } 2334 i-- 2335 dAtA[i] = 0x22 2336 } 2337 } 2338 if len(m.ValueFiles) > 0 { 2339 for iNdEx := len(m.ValueFiles) - 1; iNdEx >= 0; iNdEx-- { 2340 i -= len(m.ValueFiles[iNdEx]) 2341 copy(dAtA[i:], m.ValueFiles[iNdEx]) 2342 i = encodeVarintRepository(dAtA, i, uint64(len(m.ValueFiles[iNdEx]))) 2343 i-- 2344 dAtA[i] = 0x1a 2345 } 2346 } 2347 if len(m.Name) > 0 { 2348 i -= len(m.Name) 2349 copy(dAtA[i:], m.Name) 2350 i = encodeVarintRepository(dAtA, i, uint64(len(m.Name))) 2351 i-- 2352 dAtA[i] = 0xa 2353 } 2354 return len(dAtA) - i, nil 2355 } 2356 2357 func (m *KustomizeAppSpec) Marshal() (dAtA []byte, err error) { 2358 size := m.Size() 2359 dAtA = make([]byte, size) 2360 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2361 if err != nil { 2362 return nil, err 2363 } 2364 return dAtA[:n], nil 2365 } 2366 2367 func (m *KustomizeAppSpec) MarshalTo(dAtA []byte) (int, error) { 2368 size := m.Size() 2369 return m.MarshalToSizedBuffer(dAtA[:size]) 2370 } 2371 2372 func (m *KustomizeAppSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2373 i := len(dAtA) 2374 _ = i 2375 var l int 2376 _ = l 2377 if m.XXX_unrecognized != nil { 2378 i -= len(m.XXX_unrecognized) 2379 copy(dAtA[i:], m.XXX_unrecognized) 2380 } 2381 if len(m.Images) > 0 { 2382 for iNdEx := len(m.Images) - 1; iNdEx >= 0; iNdEx-- { 2383 i -= len(m.Images[iNdEx]) 2384 copy(dAtA[i:], m.Images[iNdEx]) 2385 i = encodeVarintRepository(dAtA, i, uint64(len(m.Images[iNdEx]))) 2386 i-- 2387 dAtA[i] = 0x1a 2388 } 2389 } 2390 return len(dAtA) - i, nil 2391 } 2392 2393 func (m *KsonnetEnvironment) Marshal() (dAtA []byte, err error) { 2394 size := m.Size() 2395 dAtA = make([]byte, size) 2396 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2397 if err != nil { 2398 return nil, err 2399 } 2400 return dAtA[:n], nil 2401 } 2402 2403 func (m *KsonnetEnvironment) MarshalTo(dAtA []byte) (int, error) { 2404 size := m.Size() 2405 return m.MarshalToSizedBuffer(dAtA[:size]) 2406 } 2407 2408 func (m *KsonnetEnvironment) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2409 i := len(dAtA) 2410 _ = i 2411 var l int 2412 _ = l 2413 if m.XXX_unrecognized != nil { 2414 i -= len(m.XXX_unrecognized) 2415 copy(dAtA[i:], m.XXX_unrecognized) 2416 } 2417 if m.Destination != nil { 2418 { 2419 size, err := m.Destination.MarshalToSizedBuffer(dAtA[:i]) 2420 if err != nil { 2421 return 0, err 2422 } 2423 i -= size 2424 i = encodeVarintRepository(dAtA, i, uint64(size)) 2425 } 2426 i-- 2427 dAtA[i] = 0x22 2428 } 2429 if len(m.K8SVersion) > 0 { 2430 i -= len(m.K8SVersion) 2431 copy(dAtA[i:], m.K8SVersion) 2432 i = encodeVarintRepository(dAtA, i, uint64(len(m.K8SVersion))) 2433 i-- 2434 dAtA[i] = 0x12 2435 } 2436 if len(m.Name) > 0 { 2437 i -= len(m.Name) 2438 copy(dAtA[i:], m.Name) 2439 i = encodeVarintRepository(dAtA, i, uint64(len(m.Name))) 2440 i-- 2441 dAtA[i] = 0xa 2442 } 2443 return len(dAtA) - i, nil 2444 } 2445 2446 func (m *KsonnetEnvironmentDestination) Marshal() (dAtA []byte, err error) { 2447 size := m.Size() 2448 dAtA = make([]byte, size) 2449 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2450 if err != nil { 2451 return nil, err 2452 } 2453 return dAtA[:n], nil 2454 } 2455 2456 func (m *KsonnetEnvironmentDestination) MarshalTo(dAtA []byte) (int, error) { 2457 size := m.Size() 2458 return m.MarshalToSizedBuffer(dAtA[:size]) 2459 } 2460 2461 func (m *KsonnetEnvironmentDestination) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2462 i := len(dAtA) 2463 _ = i 2464 var l int 2465 _ = l 2466 if m.XXX_unrecognized != nil { 2467 i -= len(m.XXX_unrecognized) 2468 copy(dAtA[i:], m.XXX_unrecognized) 2469 } 2470 if len(m.Namespace) > 0 { 2471 i -= len(m.Namespace) 2472 copy(dAtA[i:], m.Namespace) 2473 i = encodeVarintRepository(dAtA, i, uint64(len(m.Namespace))) 2474 i-- 2475 dAtA[i] = 0x12 2476 } 2477 if len(m.Server) > 0 { 2478 i -= len(m.Server) 2479 copy(dAtA[i:], m.Server) 2480 i = encodeVarintRepository(dAtA, i, uint64(len(m.Server))) 2481 i-- 2482 dAtA[i] = 0xa 2483 } 2484 return len(dAtA) - i, nil 2485 } 2486 2487 func (m *DirectoryAppSpec) Marshal() (dAtA []byte, err error) { 2488 size := m.Size() 2489 dAtA = make([]byte, size) 2490 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2491 if err != nil { 2492 return nil, err 2493 } 2494 return dAtA[:n], nil 2495 } 2496 2497 func (m *DirectoryAppSpec) MarshalTo(dAtA []byte) (int, error) { 2498 size := m.Size() 2499 return m.MarshalToSizedBuffer(dAtA[:size]) 2500 } 2501 2502 func (m *DirectoryAppSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2503 i := len(dAtA) 2504 _ = i 2505 var l int 2506 _ = l 2507 if m.XXX_unrecognized != nil { 2508 i -= len(m.XXX_unrecognized) 2509 copy(dAtA[i:], m.XXX_unrecognized) 2510 } 2511 return len(dAtA) - i, nil 2512 } 2513 2514 func (m *HelmChartsRequest) Marshal() (dAtA []byte, err error) { 2515 size := m.Size() 2516 dAtA = make([]byte, size) 2517 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2518 if err != nil { 2519 return nil, err 2520 } 2521 return dAtA[:n], nil 2522 } 2523 2524 func (m *HelmChartsRequest) MarshalTo(dAtA []byte) (int, error) { 2525 size := m.Size() 2526 return m.MarshalToSizedBuffer(dAtA[:size]) 2527 } 2528 2529 func (m *HelmChartsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2530 i := len(dAtA) 2531 _ = i 2532 var l int 2533 _ = l 2534 if m.XXX_unrecognized != nil { 2535 i -= len(m.XXX_unrecognized) 2536 copy(dAtA[i:], m.XXX_unrecognized) 2537 } 2538 if m.Repo != nil { 2539 { 2540 size, err := m.Repo.MarshalToSizedBuffer(dAtA[:i]) 2541 if err != nil { 2542 return 0, err 2543 } 2544 i -= size 2545 i = encodeVarintRepository(dAtA, i, uint64(size)) 2546 } 2547 i-- 2548 dAtA[i] = 0xa 2549 } 2550 return len(dAtA) - i, nil 2551 } 2552 2553 func (m *HelmChart) Marshal() (dAtA []byte, err error) { 2554 size := m.Size() 2555 dAtA = make([]byte, size) 2556 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2557 if err != nil { 2558 return nil, err 2559 } 2560 return dAtA[:n], nil 2561 } 2562 2563 func (m *HelmChart) MarshalTo(dAtA []byte) (int, error) { 2564 size := m.Size() 2565 return m.MarshalToSizedBuffer(dAtA[:size]) 2566 } 2567 2568 func (m *HelmChart) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2569 i := len(dAtA) 2570 _ = i 2571 var l int 2572 _ = l 2573 if m.XXX_unrecognized != nil { 2574 i -= len(m.XXX_unrecognized) 2575 copy(dAtA[i:], m.XXX_unrecognized) 2576 } 2577 if len(m.Versions) > 0 { 2578 for iNdEx := len(m.Versions) - 1; iNdEx >= 0; iNdEx-- { 2579 i -= len(m.Versions[iNdEx]) 2580 copy(dAtA[i:], m.Versions[iNdEx]) 2581 i = encodeVarintRepository(dAtA, i, uint64(len(m.Versions[iNdEx]))) 2582 i-- 2583 dAtA[i] = 0x12 2584 } 2585 } 2586 if len(m.Name) > 0 { 2587 i -= len(m.Name) 2588 copy(dAtA[i:], m.Name) 2589 i = encodeVarintRepository(dAtA, i, uint64(len(m.Name))) 2590 i-- 2591 dAtA[i] = 0xa 2592 } 2593 return len(dAtA) - i, nil 2594 } 2595 2596 func (m *HelmChartsResponse) Marshal() (dAtA []byte, err error) { 2597 size := m.Size() 2598 dAtA = make([]byte, size) 2599 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2600 if err != nil { 2601 return nil, err 2602 } 2603 return dAtA[:n], nil 2604 } 2605 2606 func (m *HelmChartsResponse) MarshalTo(dAtA []byte) (int, error) { 2607 size := m.Size() 2608 return m.MarshalToSizedBuffer(dAtA[:size]) 2609 } 2610 2611 func (m *HelmChartsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2612 i := len(dAtA) 2613 _ = i 2614 var l int 2615 _ = l 2616 if m.XXX_unrecognized != nil { 2617 i -= len(m.XXX_unrecognized) 2618 copy(dAtA[i:], m.XXX_unrecognized) 2619 } 2620 if len(m.Items) > 0 { 2621 for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { 2622 { 2623 size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 2624 if err != nil { 2625 return 0, err 2626 } 2627 i -= size 2628 i = encodeVarintRepository(dAtA, i, uint64(size)) 2629 } 2630 i-- 2631 dAtA[i] = 0xa 2632 } 2633 } 2634 return len(dAtA) - i, nil 2635 } 2636 2637 func encodeVarintRepository(dAtA []byte, offset int, v uint64) int { 2638 offset -= sovRepository(v) 2639 base := offset 2640 for v >= 1<<7 { 2641 dAtA[offset] = uint8(v&0x7f | 0x80) 2642 v >>= 7 2643 offset++ 2644 } 2645 dAtA[offset] = uint8(v) 2646 return base 2647 } 2648 func (m *ManifestRequest) Size() (n int) { 2649 if m == nil { 2650 return 0 2651 } 2652 var l int 2653 _ = l 2654 if m.Repo != nil { 2655 l = m.Repo.Size() 2656 n += 1 + l + sovRepository(uint64(l)) 2657 } 2658 l = len(m.Revision) 2659 if l > 0 { 2660 n += 1 + l + sovRepository(uint64(l)) 2661 } 2662 if m.NoCache { 2663 n += 2 2664 } 2665 l = len(m.AppLabelKey) 2666 if l > 0 { 2667 n += 1 + l + sovRepository(uint64(l)) 2668 } 2669 l = len(m.AppLabelValue) 2670 if l > 0 { 2671 n += 1 + l + sovRepository(uint64(l)) 2672 } 2673 l = len(m.Namespace) 2674 if l > 0 { 2675 n += 1 + l + sovRepository(uint64(l)) 2676 } 2677 if m.ApplicationSource != nil { 2678 l = m.ApplicationSource.Size() 2679 n += 1 + l + sovRepository(uint64(l)) 2680 } 2681 if len(m.Repos) > 0 { 2682 for _, e := range m.Repos { 2683 l = e.Size() 2684 n += 1 + l + sovRepository(uint64(l)) 2685 } 2686 } 2687 if len(m.Plugins) > 0 { 2688 for _, e := range m.Plugins { 2689 l = e.Size() 2690 n += 1 + l + sovRepository(uint64(l)) 2691 } 2692 } 2693 if m.KustomizeOptions != nil { 2694 l = m.KustomizeOptions.Size() 2695 n += 1 + l + sovRepository(uint64(l)) 2696 } 2697 l = len(m.KubeVersion) 2698 if l > 0 { 2699 n += 1 + l + sovRepository(uint64(l)) 2700 } 2701 if len(m.ApiVersions) > 0 { 2702 for _, s := range m.ApiVersions { 2703 l = len(s) 2704 n += 1 + l + sovRepository(uint64(l)) 2705 } 2706 } 2707 if m.VerifySignature { 2708 n += 3 2709 } 2710 if m.XXX_unrecognized != nil { 2711 n += len(m.XXX_unrecognized) 2712 } 2713 return n 2714 } 2715 2716 func (m *ManifestResponse) Size() (n int) { 2717 if m == nil { 2718 return 0 2719 } 2720 var l int 2721 _ = l 2722 if len(m.Manifests) > 0 { 2723 for _, s := range m.Manifests { 2724 l = len(s) 2725 n += 1 + l + sovRepository(uint64(l)) 2726 } 2727 } 2728 l = len(m.Namespace) 2729 if l > 0 { 2730 n += 1 + l + sovRepository(uint64(l)) 2731 } 2732 l = len(m.Server) 2733 if l > 0 { 2734 n += 1 + l + sovRepository(uint64(l)) 2735 } 2736 l = len(m.Revision) 2737 if l > 0 { 2738 n += 1 + l + sovRepository(uint64(l)) 2739 } 2740 l = len(m.SourceType) 2741 if l > 0 { 2742 n += 1 + l + sovRepository(uint64(l)) 2743 } 2744 l = len(m.VerifyResult) 2745 if l > 0 { 2746 n += 1 + l + sovRepository(uint64(l)) 2747 } 2748 if m.XXX_unrecognized != nil { 2749 n += len(m.XXX_unrecognized) 2750 } 2751 return n 2752 } 2753 2754 func (m *ListRefsRequest) Size() (n int) { 2755 if m == nil { 2756 return 0 2757 } 2758 var l int 2759 _ = l 2760 if m.Repo != nil { 2761 l = m.Repo.Size() 2762 n += 1 + l + sovRepository(uint64(l)) 2763 } 2764 if m.XXX_unrecognized != nil { 2765 n += len(m.XXX_unrecognized) 2766 } 2767 return n 2768 } 2769 2770 func (m *Refs) Size() (n int) { 2771 if m == nil { 2772 return 0 2773 } 2774 var l int 2775 _ = l 2776 if len(m.Branches) > 0 { 2777 for _, s := range m.Branches { 2778 l = len(s) 2779 n += 1 + l + sovRepository(uint64(l)) 2780 } 2781 } 2782 if len(m.Tags) > 0 { 2783 for _, s := range m.Tags { 2784 l = len(s) 2785 n += 1 + l + sovRepository(uint64(l)) 2786 } 2787 } 2788 if m.XXX_unrecognized != nil { 2789 n += len(m.XXX_unrecognized) 2790 } 2791 return n 2792 } 2793 2794 func (m *ListAppsRequest) Size() (n int) { 2795 if m == nil { 2796 return 0 2797 } 2798 var l int 2799 _ = l 2800 if m.Repo != nil { 2801 l = m.Repo.Size() 2802 n += 1 + l + sovRepository(uint64(l)) 2803 } 2804 l = len(m.Revision) 2805 if l > 0 { 2806 n += 1 + l + sovRepository(uint64(l)) 2807 } 2808 if m.XXX_unrecognized != nil { 2809 n += len(m.XXX_unrecognized) 2810 } 2811 return n 2812 } 2813 2814 func (m *AppList) Size() (n int) { 2815 if m == nil { 2816 return 0 2817 } 2818 var l int 2819 _ = l 2820 if len(m.Apps) > 0 { 2821 for k, v := range m.Apps { 2822 _ = k 2823 _ = v 2824 mapEntrySize := 1 + len(k) + sovRepository(uint64(len(k))) + 1 + len(v) + sovRepository(uint64(len(v))) 2825 n += mapEntrySize + 1 + sovRepository(uint64(mapEntrySize)) 2826 } 2827 } 2828 if m.XXX_unrecognized != nil { 2829 n += len(m.XXX_unrecognized) 2830 } 2831 return n 2832 } 2833 2834 func (m *RepoServerAppDetailsQuery) Size() (n int) { 2835 if m == nil { 2836 return 0 2837 } 2838 var l int 2839 _ = l 2840 if m.Repo != nil { 2841 l = m.Repo.Size() 2842 n += 1 + l + sovRepository(uint64(l)) 2843 } 2844 if m.Source != nil { 2845 l = m.Source.Size() 2846 n += 1 + l + sovRepository(uint64(l)) 2847 } 2848 if len(m.Repos) > 0 { 2849 for _, e := range m.Repos { 2850 l = e.Size() 2851 n += 1 + l + sovRepository(uint64(l)) 2852 } 2853 } 2854 if m.KustomizeOptions != nil { 2855 l = m.KustomizeOptions.Size() 2856 n += 1 + l + sovRepository(uint64(l)) 2857 } 2858 if m.XXX_unrecognized != nil { 2859 n += len(m.XXX_unrecognized) 2860 } 2861 return n 2862 } 2863 2864 func (m *RepoAppDetailsResponse) Size() (n int) { 2865 if m == nil { 2866 return 0 2867 } 2868 var l int 2869 _ = l 2870 l = len(m.Type) 2871 if l > 0 { 2872 n += 1 + l + sovRepository(uint64(l)) 2873 } 2874 if m.Ksonnet != nil { 2875 l = m.Ksonnet.Size() 2876 n += 1 + l + sovRepository(uint64(l)) 2877 } 2878 if m.Helm != nil { 2879 l = m.Helm.Size() 2880 n += 1 + l + sovRepository(uint64(l)) 2881 } 2882 if m.Kustomize != nil { 2883 l = m.Kustomize.Size() 2884 n += 1 + l + sovRepository(uint64(l)) 2885 } 2886 if m.Directory != nil { 2887 l = m.Directory.Size() 2888 n += 1 + l + sovRepository(uint64(l)) 2889 } 2890 if m.XXX_unrecognized != nil { 2891 n += len(m.XXX_unrecognized) 2892 } 2893 return n 2894 } 2895 2896 func (m *RepoServerRevisionMetadataRequest) Size() (n int) { 2897 if m == nil { 2898 return 0 2899 } 2900 var l int 2901 _ = l 2902 if m.Repo != nil { 2903 l = m.Repo.Size() 2904 n += 1 + l + sovRepository(uint64(l)) 2905 } 2906 l = len(m.Revision) 2907 if l > 0 { 2908 n += 1 + l + sovRepository(uint64(l)) 2909 } 2910 if m.CheckSignature { 2911 n += 2 2912 } 2913 if m.XXX_unrecognized != nil { 2914 n += len(m.XXX_unrecognized) 2915 } 2916 return n 2917 } 2918 2919 func (m *KsonnetAppSpec) Size() (n int) { 2920 if m == nil { 2921 return 0 2922 } 2923 var l int 2924 _ = l 2925 l = len(m.Name) 2926 if l > 0 { 2927 n += 1 + l + sovRepository(uint64(l)) 2928 } 2929 if len(m.Environments) > 0 { 2930 for k, v := range m.Environments { 2931 _ = k 2932 _ = v 2933 l = 0 2934 if v != nil { 2935 l = v.Size() 2936 l += 1 + sovRepository(uint64(l)) 2937 } 2938 mapEntrySize := 1 + len(k) + sovRepository(uint64(len(k))) + l 2939 n += mapEntrySize + 1 + sovRepository(uint64(mapEntrySize)) 2940 } 2941 } 2942 if len(m.Parameters) > 0 { 2943 for _, e := range m.Parameters { 2944 l = e.Size() 2945 n += 1 + l + sovRepository(uint64(l)) 2946 } 2947 } 2948 if m.XXX_unrecognized != nil { 2949 n += len(m.XXX_unrecognized) 2950 } 2951 return n 2952 } 2953 2954 func (m *HelmAppSpec) Size() (n int) { 2955 if m == nil { 2956 return 0 2957 } 2958 var l int 2959 _ = l 2960 l = len(m.Name) 2961 if l > 0 { 2962 n += 1 + l + sovRepository(uint64(l)) 2963 } 2964 if len(m.ValueFiles) > 0 { 2965 for _, s := range m.ValueFiles { 2966 l = len(s) 2967 n += 1 + l + sovRepository(uint64(l)) 2968 } 2969 } 2970 if len(m.Parameters) > 0 { 2971 for _, e := range m.Parameters { 2972 l = e.Size() 2973 n += 1 + l + sovRepository(uint64(l)) 2974 } 2975 } 2976 l = len(m.Values) 2977 if l > 0 { 2978 n += 1 + l + sovRepository(uint64(l)) 2979 } 2980 if len(m.FileParameters) > 0 { 2981 for _, e := range m.FileParameters { 2982 l = e.Size() 2983 n += 1 + l + sovRepository(uint64(l)) 2984 } 2985 } 2986 if m.XXX_unrecognized != nil { 2987 n += len(m.XXX_unrecognized) 2988 } 2989 return n 2990 } 2991 2992 func (m *KustomizeAppSpec) Size() (n int) { 2993 if m == nil { 2994 return 0 2995 } 2996 var l int 2997 _ = l 2998 if len(m.Images) > 0 { 2999 for _, s := range m.Images { 3000 l = len(s) 3001 n += 1 + l + sovRepository(uint64(l)) 3002 } 3003 } 3004 if m.XXX_unrecognized != nil { 3005 n += len(m.XXX_unrecognized) 3006 } 3007 return n 3008 } 3009 3010 func (m *KsonnetEnvironment) Size() (n int) { 3011 if m == nil { 3012 return 0 3013 } 3014 var l int 3015 _ = l 3016 l = len(m.Name) 3017 if l > 0 { 3018 n += 1 + l + sovRepository(uint64(l)) 3019 } 3020 l = len(m.K8SVersion) 3021 if l > 0 { 3022 n += 1 + l + sovRepository(uint64(l)) 3023 } 3024 if m.Destination != nil { 3025 l = m.Destination.Size() 3026 n += 1 + l + sovRepository(uint64(l)) 3027 } 3028 if m.XXX_unrecognized != nil { 3029 n += len(m.XXX_unrecognized) 3030 } 3031 return n 3032 } 3033 3034 func (m *KsonnetEnvironmentDestination) Size() (n int) { 3035 if m == nil { 3036 return 0 3037 } 3038 var l int 3039 _ = l 3040 l = len(m.Server) 3041 if l > 0 { 3042 n += 1 + l + sovRepository(uint64(l)) 3043 } 3044 l = len(m.Namespace) 3045 if l > 0 { 3046 n += 1 + l + sovRepository(uint64(l)) 3047 } 3048 if m.XXX_unrecognized != nil { 3049 n += len(m.XXX_unrecognized) 3050 } 3051 return n 3052 } 3053 3054 func (m *DirectoryAppSpec) Size() (n int) { 3055 if m == nil { 3056 return 0 3057 } 3058 var l int 3059 _ = l 3060 if m.XXX_unrecognized != nil { 3061 n += len(m.XXX_unrecognized) 3062 } 3063 return n 3064 } 3065 3066 func (m *HelmChartsRequest) Size() (n int) { 3067 if m == nil { 3068 return 0 3069 } 3070 var l int 3071 _ = l 3072 if m.Repo != nil { 3073 l = m.Repo.Size() 3074 n += 1 + l + sovRepository(uint64(l)) 3075 } 3076 if m.XXX_unrecognized != nil { 3077 n += len(m.XXX_unrecognized) 3078 } 3079 return n 3080 } 3081 3082 func (m *HelmChart) Size() (n int) { 3083 if m == nil { 3084 return 0 3085 } 3086 var l int 3087 _ = l 3088 l = len(m.Name) 3089 if l > 0 { 3090 n += 1 + l + sovRepository(uint64(l)) 3091 } 3092 if len(m.Versions) > 0 { 3093 for _, s := range m.Versions { 3094 l = len(s) 3095 n += 1 + l + sovRepository(uint64(l)) 3096 } 3097 } 3098 if m.XXX_unrecognized != nil { 3099 n += len(m.XXX_unrecognized) 3100 } 3101 return n 3102 } 3103 3104 func (m *HelmChartsResponse) Size() (n int) { 3105 if m == nil { 3106 return 0 3107 } 3108 var l int 3109 _ = l 3110 if len(m.Items) > 0 { 3111 for _, e := range m.Items { 3112 l = e.Size() 3113 n += 1 + l + sovRepository(uint64(l)) 3114 } 3115 } 3116 if m.XXX_unrecognized != nil { 3117 n += len(m.XXX_unrecognized) 3118 } 3119 return n 3120 } 3121 3122 func sovRepository(x uint64) (n int) { 3123 return (math_bits.Len64(x|1) + 6) / 7 3124 } 3125 func sozRepository(x uint64) (n int) { 3126 return sovRepository(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 3127 } 3128 func (m *ManifestRequest) Unmarshal(dAtA []byte) error { 3129 l := len(dAtA) 3130 iNdEx := 0 3131 for iNdEx < l { 3132 preIndex := iNdEx 3133 var wire uint64 3134 for shift := uint(0); ; shift += 7 { 3135 if shift >= 64 { 3136 return ErrIntOverflowRepository 3137 } 3138 if iNdEx >= l { 3139 return io.ErrUnexpectedEOF 3140 } 3141 b := dAtA[iNdEx] 3142 iNdEx++ 3143 wire |= uint64(b&0x7F) << shift 3144 if b < 0x80 { 3145 break 3146 } 3147 } 3148 fieldNum := int32(wire >> 3) 3149 wireType := int(wire & 0x7) 3150 if wireType == 4 { 3151 return fmt.Errorf("proto: ManifestRequest: wiretype end group for non-group") 3152 } 3153 if fieldNum <= 0 { 3154 return fmt.Errorf("proto: ManifestRequest: illegal tag %d (wire type %d)", fieldNum, wire) 3155 } 3156 switch fieldNum { 3157 case 1: 3158 if wireType != 2 { 3159 return fmt.Errorf("proto: wrong wireType = %d for field Repo", wireType) 3160 } 3161 var msglen int 3162 for shift := uint(0); ; shift += 7 { 3163 if shift >= 64 { 3164 return ErrIntOverflowRepository 3165 } 3166 if iNdEx >= l { 3167 return io.ErrUnexpectedEOF 3168 } 3169 b := dAtA[iNdEx] 3170 iNdEx++ 3171 msglen |= int(b&0x7F) << shift 3172 if b < 0x80 { 3173 break 3174 } 3175 } 3176 if msglen < 0 { 3177 return ErrInvalidLengthRepository 3178 } 3179 postIndex := iNdEx + msglen 3180 if postIndex < 0 { 3181 return ErrInvalidLengthRepository 3182 } 3183 if postIndex > l { 3184 return io.ErrUnexpectedEOF 3185 } 3186 if m.Repo == nil { 3187 m.Repo = &v1alpha1.Repository{} 3188 } 3189 if err := m.Repo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3190 return err 3191 } 3192 iNdEx = postIndex 3193 case 2: 3194 if wireType != 2 { 3195 return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) 3196 } 3197 var stringLen uint64 3198 for shift := uint(0); ; shift += 7 { 3199 if shift >= 64 { 3200 return ErrIntOverflowRepository 3201 } 3202 if iNdEx >= l { 3203 return io.ErrUnexpectedEOF 3204 } 3205 b := dAtA[iNdEx] 3206 iNdEx++ 3207 stringLen |= uint64(b&0x7F) << shift 3208 if b < 0x80 { 3209 break 3210 } 3211 } 3212 intStringLen := int(stringLen) 3213 if intStringLen < 0 { 3214 return ErrInvalidLengthRepository 3215 } 3216 postIndex := iNdEx + intStringLen 3217 if postIndex < 0 { 3218 return ErrInvalidLengthRepository 3219 } 3220 if postIndex > l { 3221 return io.ErrUnexpectedEOF 3222 } 3223 m.Revision = string(dAtA[iNdEx:postIndex]) 3224 iNdEx = postIndex 3225 case 3: 3226 if wireType != 0 { 3227 return fmt.Errorf("proto: wrong wireType = %d for field NoCache", wireType) 3228 } 3229 var v int 3230 for shift := uint(0); ; shift += 7 { 3231 if shift >= 64 { 3232 return ErrIntOverflowRepository 3233 } 3234 if iNdEx >= l { 3235 return io.ErrUnexpectedEOF 3236 } 3237 b := dAtA[iNdEx] 3238 iNdEx++ 3239 v |= int(b&0x7F) << shift 3240 if b < 0x80 { 3241 break 3242 } 3243 } 3244 m.NoCache = bool(v != 0) 3245 case 4: 3246 if wireType != 2 { 3247 return fmt.Errorf("proto: wrong wireType = %d for field AppLabelKey", wireType) 3248 } 3249 var stringLen uint64 3250 for shift := uint(0); ; shift += 7 { 3251 if shift >= 64 { 3252 return ErrIntOverflowRepository 3253 } 3254 if iNdEx >= l { 3255 return io.ErrUnexpectedEOF 3256 } 3257 b := dAtA[iNdEx] 3258 iNdEx++ 3259 stringLen |= uint64(b&0x7F) << shift 3260 if b < 0x80 { 3261 break 3262 } 3263 } 3264 intStringLen := int(stringLen) 3265 if intStringLen < 0 { 3266 return ErrInvalidLengthRepository 3267 } 3268 postIndex := iNdEx + intStringLen 3269 if postIndex < 0 { 3270 return ErrInvalidLengthRepository 3271 } 3272 if postIndex > l { 3273 return io.ErrUnexpectedEOF 3274 } 3275 m.AppLabelKey = string(dAtA[iNdEx:postIndex]) 3276 iNdEx = postIndex 3277 case 5: 3278 if wireType != 2 { 3279 return fmt.Errorf("proto: wrong wireType = %d for field AppLabelValue", wireType) 3280 } 3281 var stringLen uint64 3282 for shift := uint(0); ; shift += 7 { 3283 if shift >= 64 { 3284 return ErrIntOverflowRepository 3285 } 3286 if iNdEx >= l { 3287 return io.ErrUnexpectedEOF 3288 } 3289 b := dAtA[iNdEx] 3290 iNdEx++ 3291 stringLen |= uint64(b&0x7F) << shift 3292 if b < 0x80 { 3293 break 3294 } 3295 } 3296 intStringLen := int(stringLen) 3297 if intStringLen < 0 { 3298 return ErrInvalidLengthRepository 3299 } 3300 postIndex := iNdEx + intStringLen 3301 if postIndex < 0 { 3302 return ErrInvalidLengthRepository 3303 } 3304 if postIndex > l { 3305 return io.ErrUnexpectedEOF 3306 } 3307 m.AppLabelValue = string(dAtA[iNdEx:postIndex]) 3308 iNdEx = postIndex 3309 case 8: 3310 if wireType != 2 { 3311 return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) 3312 } 3313 var stringLen uint64 3314 for shift := uint(0); ; shift += 7 { 3315 if shift >= 64 { 3316 return ErrIntOverflowRepository 3317 } 3318 if iNdEx >= l { 3319 return io.ErrUnexpectedEOF 3320 } 3321 b := dAtA[iNdEx] 3322 iNdEx++ 3323 stringLen |= uint64(b&0x7F) << shift 3324 if b < 0x80 { 3325 break 3326 } 3327 } 3328 intStringLen := int(stringLen) 3329 if intStringLen < 0 { 3330 return ErrInvalidLengthRepository 3331 } 3332 postIndex := iNdEx + intStringLen 3333 if postIndex < 0 { 3334 return ErrInvalidLengthRepository 3335 } 3336 if postIndex > l { 3337 return io.ErrUnexpectedEOF 3338 } 3339 m.Namespace = string(dAtA[iNdEx:postIndex]) 3340 iNdEx = postIndex 3341 case 10: 3342 if wireType != 2 { 3343 return fmt.Errorf("proto: wrong wireType = %d for field ApplicationSource", wireType) 3344 } 3345 var msglen int 3346 for shift := uint(0); ; shift += 7 { 3347 if shift >= 64 { 3348 return ErrIntOverflowRepository 3349 } 3350 if iNdEx >= l { 3351 return io.ErrUnexpectedEOF 3352 } 3353 b := dAtA[iNdEx] 3354 iNdEx++ 3355 msglen |= int(b&0x7F) << shift 3356 if b < 0x80 { 3357 break 3358 } 3359 } 3360 if msglen < 0 { 3361 return ErrInvalidLengthRepository 3362 } 3363 postIndex := iNdEx + msglen 3364 if postIndex < 0 { 3365 return ErrInvalidLengthRepository 3366 } 3367 if postIndex > l { 3368 return io.ErrUnexpectedEOF 3369 } 3370 if m.ApplicationSource == nil { 3371 m.ApplicationSource = &v1alpha1.ApplicationSource{} 3372 } 3373 if err := m.ApplicationSource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3374 return err 3375 } 3376 iNdEx = postIndex 3377 case 11: 3378 if wireType != 2 { 3379 return fmt.Errorf("proto: wrong wireType = %d for field Repos", wireType) 3380 } 3381 var msglen int 3382 for shift := uint(0); ; shift += 7 { 3383 if shift >= 64 { 3384 return ErrIntOverflowRepository 3385 } 3386 if iNdEx >= l { 3387 return io.ErrUnexpectedEOF 3388 } 3389 b := dAtA[iNdEx] 3390 iNdEx++ 3391 msglen |= int(b&0x7F) << shift 3392 if b < 0x80 { 3393 break 3394 } 3395 } 3396 if msglen < 0 { 3397 return ErrInvalidLengthRepository 3398 } 3399 postIndex := iNdEx + msglen 3400 if postIndex < 0 { 3401 return ErrInvalidLengthRepository 3402 } 3403 if postIndex > l { 3404 return io.ErrUnexpectedEOF 3405 } 3406 m.Repos = append(m.Repos, &v1alpha1.Repository{}) 3407 if err := m.Repos[len(m.Repos)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3408 return err 3409 } 3410 iNdEx = postIndex 3411 case 12: 3412 if wireType != 2 { 3413 return fmt.Errorf("proto: wrong wireType = %d for field Plugins", wireType) 3414 } 3415 var msglen int 3416 for shift := uint(0); ; shift += 7 { 3417 if shift >= 64 { 3418 return ErrIntOverflowRepository 3419 } 3420 if iNdEx >= l { 3421 return io.ErrUnexpectedEOF 3422 } 3423 b := dAtA[iNdEx] 3424 iNdEx++ 3425 msglen |= int(b&0x7F) << shift 3426 if b < 0x80 { 3427 break 3428 } 3429 } 3430 if msglen < 0 { 3431 return ErrInvalidLengthRepository 3432 } 3433 postIndex := iNdEx + msglen 3434 if postIndex < 0 { 3435 return ErrInvalidLengthRepository 3436 } 3437 if postIndex > l { 3438 return io.ErrUnexpectedEOF 3439 } 3440 m.Plugins = append(m.Plugins, &v1alpha1.ConfigManagementPlugin{}) 3441 if err := m.Plugins[len(m.Plugins)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3442 return err 3443 } 3444 iNdEx = postIndex 3445 case 13: 3446 if wireType != 2 { 3447 return fmt.Errorf("proto: wrong wireType = %d for field KustomizeOptions", wireType) 3448 } 3449 var msglen int 3450 for shift := uint(0); ; shift += 7 { 3451 if shift >= 64 { 3452 return ErrIntOverflowRepository 3453 } 3454 if iNdEx >= l { 3455 return io.ErrUnexpectedEOF 3456 } 3457 b := dAtA[iNdEx] 3458 iNdEx++ 3459 msglen |= int(b&0x7F) << shift 3460 if b < 0x80 { 3461 break 3462 } 3463 } 3464 if msglen < 0 { 3465 return ErrInvalidLengthRepository 3466 } 3467 postIndex := iNdEx + msglen 3468 if postIndex < 0 { 3469 return ErrInvalidLengthRepository 3470 } 3471 if postIndex > l { 3472 return io.ErrUnexpectedEOF 3473 } 3474 if m.KustomizeOptions == nil { 3475 m.KustomizeOptions = &v1alpha1.KustomizeOptions{} 3476 } 3477 if err := m.KustomizeOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3478 return err 3479 } 3480 iNdEx = postIndex 3481 case 14: 3482 if wireType != 2 { 3483 return fmt.Errorf("proto: wrong wireType = %d for field KubeVersion", wireType) 3484 } 3485 var stringLen uint64 3486 for shift := uint(0); ; shift += 7 { 3487 if shift >= 64 { 3488 return ErrIntOverflowRepository 3489 } 3490 if iNdEx >= l { 3491 return io.ErrUnexpectedEOF 3492 } 3493 b := dAtA[iNdEx] 3494 iNdEx++ 3495 stringLen |= uint64(b&0x7F) << shift 3496 if b < 0x80 { 3497 break 3498 } 3499 } 3500 intStringLen := int(stringLen) 3501 if intStringLen < 0 { 3502 return ErrInvalidLengthRepository 3503 } 3504 postIndex := iNdEx + intStringLen 3505 if postIndex < 0 { 3506 return ErrInvalidLengthRepository 3507 } 3508 if postIndex > l { 3509 return io.ErrUnexpectedEOF 3510 } 3511 m.KubeVersion = string(dAtA[iNdEx:postIndex]) 3512 iNdEx = postIndex 3513 case 15: 3514 if wireType != 2 { 3515 return fmt.Errorf("proto: wrong wireType = %d for field ApiVersions", wireType) 3516 } 3517 var stringLen uint64 3518 for shift := uint(0); ; shift += 7 { 3519 if shift >= 64 { 3520 return ErrIntOverflowRepository 3521 } 3522 if iNdEx >= l { 3523 return io.ErrUnexpectedEOF 3524 } 3525 b := dAtA[iNdEx] 3526 iNdEx++ 3527 stringLen |= uint64(b&0x7F) << shift 3528 if b < 0x80 { 3529 break 3530 } 3531 } 3532 intStringLen := int(stringLen) 3533 if intStringLen < 0 { 3534 return ErrInvalidLengthRepository 3535 } 3536 postIndex := iNdEx + intStringLen 3537 if postIndex < 0 { 3538 return ErrInvalidLengthRepository 3539 } 3540 if postIndex > l { 3541 return io.ErrUnexpectedEOF 3542 } 3543 m.ApiVersions = append(m.ApiVersions, string(dAtA[iNdEx:postIndex])) 3544 iNdEx = postIndex 3545 case 16: 3546 if wireType != 0 { 3547 return fmt.Errorf("proto: wrong wireType = %d for field VerifySignature", wireType) 3548 } 3549 var v int 3550 for shift := uint(0); ; shift += 7 { 3551 if shift >= 64 { 3552 return ErrIntOverflowRepository 3553 } 3554 if iNdEx >= l { 3555 return io.ErrUnexpectedEOF 3556 } 3557 b := dAtA[iNdEx] 3558 iNdEx++ 3559 v |= int(b&0x7F) << shift 3560 if b < 0x80 { 3561 break 3562 } 3563 } 3564 m.VerifySignature = bool(v != 0) 3565 default: 3566 iNdEx = preIndex 3567 skippy, err := skipRepository(dAtA[iNdEx:]) 3568 if err != nil { 3569 return err 3570 } 3571 if skippy < 0 { 3572 return ErrInvalidLengthRepository 3573 } 3574 if (iNdEx + skippy) < 0 { 3575 return ErrInvalidLengthRepository 3576 } 3577 if (iNdEx + skippy) > l { 3578 return io.ErrUnexpectedEOF 3579 } 3580 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 3581 iNdEx += skippy 3582 } 3583 } 3584 3585 if iNdEx > l { 3586 return io.ErrUnexpectedEOF 3587 } 3588 return nil 3589 } 3590 func (m *ManifestResponse) Unmarshal(dAtA []byte) error { 3591 l := len(dAtA) 3592 iNdEx := 0 3593 for iNdEx < l { 3594 preIndex := iNdEx 3595 var wire uint64 3596 for shift := uint(0); ; shift += 7 { 3597 if shift >= 64 { 3598 return ErrIntOverflowRepository 3599 } 3600 if iNdEx >= l { 3601 return io.ErrUnexpectedEOF 3602 } 3603 b := dAtA[iNdEx] 3604 iNdEx++ 3605 wire |= uint64(b&0x7F) << shift 3606 if b < 0x80 { 3607 break 3608 } 3609 } 3610 fieldNum := int32(wire >> 3) 3611 wireType := int(wire & 0x7) 3612 if wireType == 4 { 3613 return fmt.Errorf("proto: ManifestResponse: wiretype end group for non-group") 3614 } 3615 if fieldNum <= 0 { 3616 return fmt.Errorf("proto: ManifestResponse: illegal tag %d (wire type %d)", fieldNum, wire) 3617 } 3618 switch fieldNum { 3619 case 1: 3620 if wireType != 2 { 3621 return fmt.Errorf("proto: wrong wireType = %d for field Manifests", wireType) 3622 } 3623 var stringLen uint64 3624 for shift := uint(0); ; shift += 7 { 3625 if shift >= 64 { 3626 return ErrIntOverflowRepository 3627 } 3628 if iNdEx >= l { 3629 return io.ErrUnexpectedEOF 3630 } 3631 b := dAtA[iNdEx] 3632 iNdEx++ 3633 stringLen |= uint64(b&0x7F) << shift 3634 if b < 0x80 { 3635 break 3636 } 3637 } 3638 intStringLen := int(stringLen) 3639 if intStringLen < 0 { 3640 return ErrInvalidLengthRepository 3641 } 3642 postIndex := iNdEx + intStringLen 3643 if postIndex < 0 { 3644 return ErrInvalidLengthRepository 3645 } 3646 if postIndex > l { 3647 return io.ErrUnexpectedEOF 3648 } 3649 m.Manifests = append(m.Manifests, string(dAtA[iNdEx:postIndex])) 3650 iNdEx = postIndex 3651 case 2: 3652 if wireType != 2 { 3653 return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) 3654 } 3655 var stringLen uint64 3656 for shift := uint(0); ; shift += 7 { 3657 if shift >= 64 { 3658 return ErrIntOverflowRepository 3659 } 3660 if iNdEx >= l { 3661 return io.ErrUnexpectedEOF 3662 } 3663 b := dAtA[iNdEx] 3664 iNdEx++ 3665 stringLen |= uint64(b&0x7F) << shift 3666 if b < 0x80 { 3667 break 3668 } 3669 } 3670 intStringLen := int(stringLen) 3671 if intStringLen < 0 { 3672 return ErrInvalidLengthRepository 3673 } 3674 postIndex := iNdEx + intStringLen 3675 if postIndex < 0 { 3676 return ErrInvalidLengthRepository 3677 } 3678 if postIndex > l { 3679 return io.ErrUnexpectedEOF 3680 } 3681 m.Namespace = string(dAtA[iNdEx:postIndex]) 3682 iNdEx = postIndex 3683 case 3: 3684 if wireType != 2 { 3685 return fmt.Errorf("proto: wrong wireType = %d for field Server", wireType) 3686 } 3687 var stringLen uint64 3688 for shift := uint(0); ; shift += 7 { 3689 if shift >= 64 { 3690 return ErrIntOverflowRepository 3691 } 3692 if iNdEx >= l { 3693 return io.ErrUnexpectedEOF 3694 } 3695 b := dAtA[iNdEx] 3696 iNdEx++ 3697 stringLen |= uint64(b&0x7F) << shift 3698 if b < 0x80 { 3699 break 3700 } 3701 } 3702 intStringLen := int(stringLen) 3703 if intStringLen < 0 { 3704 return ErrInvalidLengthRepository 3705 } 3706 postIndex := iNdEx + intStringLen 3707 if postIndex < 0 { 3708 return ErrInvalidLengthRepository 3709 } 3710 if postIndex > l { 3711 return io.ErrUnexpectedEOF 3712 } 3713 m.Server = string(dAtA[iNdEx:postIndex]) 3714 iNdEx = postIndex 3715 case 4: 3716 if wireType != 2 { 3717 return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) 3718 } 3719 var stringLen uint64 3720 for shift := uint(0); ; shift += 7 { 3721 if shift >= 64 { 3722 return ErrIntOverflowRepository 3723 } 3724 if iNdEx >= l { 3725 return io.ErrUnexpectedEOF 3726 } 3727 b := dAtA[iNdEx] 3728 iNdEx++ 3729 stringLen |= uint64(b&0x7F) << shift 3730 if b < 0x80 { 3731 break 3732 } 3733 } 3734 intStringLen := int(stringLen) 3735 if intStringLen < 0 { 3736 return ErrInvalidLengthRepository 3737 } 3738 postIndex := iNdEx + intStringLen 3739 if postIndex < 0 { 3740 return ErrInvalidLengthRepository 3741 } 3742 if postIndex > l { 3743 return io.ErrUnexpectedEOF 3744 } 3745 m.Revision = string(dAtA[iNdEx:postIndex]) 3746 iNdEx = postIndex 3747 case 6: 3748 if wireType != 2 { 3749 return fmt.Errorf("proto: wrong wireType = %d for field SourceType", wireType) 3750 } 3751 var stringLen uint64 3752 for shift := uint(0); ; shift += 7 { 3753 if shift >= 64 { 3754 return ErrIntOverflowRepository 3755 } 3756 if iNdEx >= l { 3757 return io.ErrUnexpectedEOF 3758 } 3759 b := dAtA[iNdEx] 3760 iNdEx++ 3761 stringLen |= uint64(b&0x7F) << shift 3762 if b < 0x80 { 3763 break 3764 } 3765 } 3766 intStringLen := int(stringLen) 3767 if intStringLen < 0 { 3768 return ErrInvalidLengthRepository 3769 } 3770 postIndex := iNdEx + intStringLen 3771 if postIndex < 0 { 3772 return ErrInvalidLengthRepository 3773 } 3774 if postIndex > l { 3775 return io.ErrUnexpectedEOF 3776 } 3777 m.SourceType = string(dAtA[iNdEx:postIndex]) 3778 iNdEx = postIndex 3779 case 7: 3780 if wireType != 2 { 3781 return fmt.Errorf("proto: wrong wireType = %d for field VerifyResult", wireType) 3782 } 3783 var stringLen uint64 3784 for shift := uint(0); ; shift += 7 { 3785 if shift >= 64 { 3786 return ErrIntOverflowRepository 3787 } 3788 if iNdEx >= l { 3789 return io.ErrUnexpectedEOF 3790 } 3791 b := dAtA[iNdEx] 3792 iNdEx++ 3793 stringLen |= uint64(b&0x7F) << shift 3794 if b < 0x80 { 3795 break 3796 } 3797 } 3798 intStringLen := int(stringLen) 3799 if intStringLen < 0 { 3800 return ErrInvalidLengthRepository 3801 } 3802 postIndex := iNdEx + intStringLen 3803 if postIndex < 0 { 3804 return ErrInvalidLengthRepository 3805 } 3806 if postIndex > l { 3807 return io.ErrUnexpectedEOF 3808 } 3809 m.VerifyResult = string(dAtA[iNdEx:postIndex]) 3810 iNdEx = postIndex 3811 default: 3812 iNdEx = preIndex 3813 skippy, err := skipRepository(dAtA[iNdEx:]) 3814 if err != nil { 3815 return err 3816 } 3817 if skippy < 0 { 3818 return ErrInvalidLengthRepository 3819 } 3820 if (iNdEx + skippy) < 0 { 3821 return ErrInvalidLengthRepository 3822 } 3823 if (iNdEx + skippy) > l { 3824 return io.ErrUnexpectedEOF 3825 } 3826 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 3827 iNdEx += skippy 3828 } 3829 } 3830 3831 if iNdEx > l { 3832 return io.ErrUnexpectedEOF 3833 } 3834 return nil 3835 } 3836 func (m *ListRefsRequest) Unmarshal(dAtA []byte) error { 3837 l := len(dAtA) 3838 iNdEx := 0 3839 for iNdEx < l { 3840 preIndex := iNdEx 3841 var wire uint64 3842 for shift := uint(0); ; shift += 7 { 3843 if shift >= 64 { 3844 return ErrIntOverflowRepository 3845 } 3846 if iNdEx >= l { 3847 return io.ErrUnexpectedEOF 3848 } 3849 b := dAtA[iNdEx] 3850 iNdEx++ 3851 wire |= uint64(b&0x7F) << shift 3852 if b < 0x80 { 3853 break 3854 } 3855 } 3856 fieldNum := int32(wire >> 3) 3857 wireType := int(wire & 0x7) 3858 if wireType == 4 { 3859 return fmt.Errorf("proto: ListRefsRequest: wiretype end group for non-group") 3860 } 3861 if fieldNum <= 0 { 3862 return fmt.Errorf("proto: ListRefsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 3863 } 3864 switch fieldNum { 3865 case 1: 3866 if wireType != 2 { 3867 return fmt.Errorf("proto: wrong wireType = %d for field Repo", wireType) 3868 } 3869 var msglen int 3870 for shift := uint(0); ; shift += 7 { 3871 if shift >= 64 { 3872 return ErrIntOverflowRepository 3873 } 3874 if iNdEx >= l { 3875 return io.ErrUnexpectedEOF 3876 } 3877 b := dAtA[iNdEx] 3878 iNdEx++ 3879 msglen |= int(b&0x7F) << shift 3880 if b < 0x80 { 3881 break 3882 } 3883 } 3884 if msglen < 0 { 3885 return ErrInvalidLengthRepository 3886 } 3887 postIndex := iNdEx + msglen 3888 if postIndex < 0 { 3889 return ErrInvalidLengthRepository 3890 } 3891 if postIndex > l { 3892 return io.ErrUnexpectedEOF 3893 } 3894 if m.Repo == nil { 3895 m.Repo = &v1alpha1.Repository{} 3896 } 3897 if err := m.Repo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3898 return err 3899 } 3900 iNdEx = postIndex 3901 default: 3902 iNdEx = preIndex 3903 skippy, err := skipRepository(dAtA[iNdEx:]) 3904 if err != nil { 3905 return err 3906 } 3907 if skippy < 0 { 3908 return ErrInvalidLengthRepository 3909 } 3910 if (iNdEx + skippy) < 0 { 3911 return ErrInvalidLengthRepository 3912 } 3913 if (iNdEx + skippy) > l { 3914 return io.ErrUnexpectedEOF 3915 } 3916 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 3917 iNdEx += skippy 3918 } 3919 } 3920 3921 if iNdEx > l { 3922 return io.ErrUnexpectedEOF 3923 } 3924 return nil 3925 } 3926 func (m *Refs) Unmarshal(dAtA []byte) error { 3927 l := len(dAtA) 3928 iNdEx := 0 3929 for iNdEx < l { 3930 preIndex := iNdEx 3931 var wire uint64 3932 for shift := uint(0); ; shift += 7 { 3933 if shift >= 64 { 3934 return ErrIntOverflowRepository 3935 } 3936 if iNdEx >= l { 3937 return io.ErrUnexpectedEOF 3938 } 3939 b := dAtA[iNdEx] 3940 iNdEx++ 3941 wire |= uint64(b&0x7F) << shift 3942 if b < 0x80 { 3943 break 3944 } 3945 } 3946 fieldNum := int32(wire >> 3) 3947 wireType := int(wire & 0x7) 3948 if wireType == 4 { 3949 return fmt.Errorf("proto: Refs: wiretype end group for non-group") 3950 } 3951 if fieldNum <= 0 { 3952 return fmt.Errorf("proto: Refs: illegal tag %d (wire type %d)", fieldNum, wire) 3953 } 3954 switch fieldNum { 3955 case 1: 3956 if wireType != 2 { 3957 return fmt.Errorf("proto: wrong wireType = %d for field Branches", wireType) 3958 } 3959 var stringLen uint64 3960 for shift := uint(0); ; shift += 7 { 3961 if shift >= 64 { 3962 return ErrIntOverflowRepository 3963 } 3964 if iNdEx >= l { 3965 return io.ErrUnexpectedEOF 3966 } 3967 b := dAtA[iNdEx] 3968 iNdEx++ 3969 stringLen |= uint64(b&0x7F) << shift 3970 if b < 0x80 { 3971 break 3972 } 3973 } 3974 intStringLen := int(stringLen) 3975 if intStringLen < 0 { 3976 return ErrInvalidLengthRepository 3977 } 3978 postIndex := iNdEx + intStringLen 3979 if postIndex < 0 { 3980 return ErrInvalidLengthRepository 3981 } 3982 if postIndex > l { 3983 return io.ErrUnexpectedEOF 3984 } 3985 m.Branches = append(m.Branches, string(dAtA[iNdEx:postIndex])) 3986 iNdEx = postIndex 3987 case 2: 3988 if wireType != 2 { 3989 return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) 3990 } 3991 var stringLen uint64 3992 for shift := uint(0); ; shift += 7 { 3993 if shift >= 64 { 3994 return ErrIntOverflowRepository 3995 } 3996 if iNdEx >= l { 3997 return io.ErrUnexpectedEOF 3998 } 3999 b := dAtA[iNdEx] 4000 iNdEx++ 4001 stringLen |= uint64(b&0x7F) << shift 4002 if b < 0x80 { 4003 break 4004 } 4005 } 4006 intStringLen := int(stringLen) 4007 if intStringLen < 0 { 4008 return ErrInvalidLengthRepository 4009 } 4010 postIndex := iNdEx + intStringLen 4011 if postIndex < 0 { 4012 return ErrInvalidLengthRepository 4013 } 4014 if postIndex > l { 4015 return io.ErrUnexpectedEOF 4016 } 4017 m.Tags = append(m.Tags, string(dAtA[iNdEx:postIndex])) 4018 iNdEx = postIndex 4019 default: 4020 iNdEx = preIndex 4021 skippy, err := skipRepository(dAtA[iNdEx:]) 4022 if err != nil { 4023 return err 4024 } 4025 if skippy < 0 { 4026 return ErrInvalidLengthRepository 4027 } 4028 if (iNdEx + skippy) < 0 { 4029 return ErrInvalidLengthRepository 4030 } 4031 if (iNdEx + skippy) > l { 4032 return io.ErrUnexpectedEOF 4033 } 4034 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4035 iNdEx += skippy 4036 } 4037 } 4038 4039 if iNdEx > l { 4040 return io.ErrUnexpectedEOF 4041 } 4042 return nil 4043 } 4044 func (m *ListAppsRequest) Unmarshal(dAtA []byte) error { 4045 l := len(dAtA) 4046 iNdEx := 0 4047 for iNdEx < l { 4048 preIndex := iNdEx 4049 var wire uint64 4050 for shift := uint(0); ; shift += 7 { 4051 if shift >= 64 { 4052 return ErrIntOverflowRepository 4053 } 4054 if iNdEx >= l { 4055 return io.ErrUnexpectedEOF 4056 } 4057 b := dAtA[iNdEx] 4058 iNdEx++ 4059 wire |= uint64(b&0x7F) << shift 4060 if b < 0x80 { 4061 break 4062 } 4063 } 4064 fieldNum := int32(wire >> 3) 4065 wireType := int(wire & 0x7) 4066 if wireType == 4 { 4067 return fmt.Errorf("proto: ListAppsRequest: wiretype end group for non-group") 4068 } 4069 if fieldNum <= 0 { 4070 return fmt.Errorf("proto: ListAppsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 4071 } 4072 switch fieldNum { 4073 case 1: 4074 if wireType != 2 { 4075 return fmt.Errorf("proto: wrong wireType = %d for field Repo", wireType) 4076 } 4077 var msglen int 4078 for shift := uint(0); ; shift += 7 { 4079 if shift >= 64 { 4080 return ErrIntOverflowRepository 4081 } 4082 if iNdEx >= l { 4083 return io.ErrUnexpectedEOF 4084 } 4085 b := dAtA[iNdEx] 4086 iNdEx++ 4087 msglen |= int(b&0x7F) << shift 4088 if b < 0x80 { 4089 break 4090 } 4091 } 4092 if msglen < 0 { 4093 return ErrInvalidLengthRepository 4094 } 4095 postIndex := iNdEx + msglen 4096 if postIndex < 0 { 4097 return ErrInvalidLengthRepository 4098 } 4099 if postIndex > l { 4100 return io.ErrUnexpectedEOF 4101 } 4102 if m.Repo == nil { 4103 m.Repo = &v1alpha1.Repository{} 4104 } 4105 if err := m.Repo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4106 return err 4107 } 4108 iNdEx = postIndex 4109 case 2: 4110 if wireType != 2 { 4111 return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) 4112 } 4113 var stringLen uint64 4114 for shift := uint(0); ; shift += 7 { 4115 if shift >= 64 { 4116 return ErrIntOverflowRepository 4117 } 4118 if iNdEx >= l { 4119 return io.ErrUnexpectedEOF 4120 } 4121 b := dAtA[iNdEx] 4122 iNdEx++ 4123 stringLen |= uint64(b&0x7F) << shift 4124 if b < 0x80 { 4125 break 4126 } 4127 } 4128 intStringLen := int(stringLen) 4129 if intStringLen < 0 { 4130 return ErrInvalidLengthRepository 4131 } 4132 postIndex := iNdEx + intStringLen 4133 if postIndex < 0 { 4134 return ErrInvalidLengthRepository 4135 } 4136 if postIndex > l { 4137 return io.ErrUnexpectedEOF 4138 } 4139 m.Revision = string(dAtA[iNdEx:postIndex]) 4140 iNdEx = postIndex 4141 default: 4142 iNdEx = preIndex 4143 skippy, err := skipRepository(dAtA[iNdEx:]) 4144 if err != nil { 4145 return err 4146 } 4147 if skippy < 0 { 4148 return ErrInvalidLengthRepository 4149 } 4150 if (iNdEx + skippy) < 0 { 4151 return ErrInvalidLengthRepository 4152 } 4153 if (iNdEx + skippy) > l { 4154 return io.ErrUnexpectedEOF 4155 } 4156 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4157 iNdEx += skippy 4158 } 4159 } 4160 4161 if iNdEx > l { 4162 return io.ErrUnexpectedEOF 4163 } 4164 return nil 4165 } 4166 func (m *AppList) Unmarshal(dAtA []byte) error { 4167 l := len(dAtA) 4168 iNdEx := 0 4169 for iNdEx < l { 4170 preIndex := iNdEx 4171 var wire uint64 4172 for shift := uint(0); ; shift += 7 { 4173 if shift >= 64 { 4174 return ErrIntOverflowRepository 4175 } 4176 if iNdEx >= l { 4177 return io.ErrUnexpectedEOF 4178 } 4179 b := dAtA[iNdEx] 4180 iNdEx++ 4181 wire |= uint64(b&0x7F) << shift 4182 if b < 0x80 { 4183 break 4184 } 4185 } 4186 fieldNum := int32(wire >> 3) 4187 wireType := int(wire & 0x7) 4188 if wireType == 4 { 4189 return fmt.Errorf("proto: AppList: wiretype end group for non-group") 4190 } 4191 if fieldNum <= 0 { 4192 return fmt.Errorf("proto: AppList: illegal tag %d (wire type %d)", fieldNum, wire) 4193 } 4194 switch fieldNum { 4195 case 1: 4196 if wireType != 2 { 4197 return fmt.Errorf("proto: wrong wireType = %d for field Apps", wireType) 4198 } 4199 var msglen int 4200 for shift := uint(0); ; shift += 7 { 4201 if shift >= 64 { 4202 return ErrIntOverflowRepository 4203 } 4204 if iNdEx >= l { 4205 return io.ErrUnexpectedEOF 4206 } 4207 b := dAtA[iNdEx] 4208 iNdEx++ 4209 msglen |= int(b&0x7F) << shift 4210 if b < 0x80 { 4211 break 4212 } 4213 } 4214 if msglen < 0 { 4215 return ErrInvalidLengthRepository 4216 } 4217 postIndex := iNdEx + msglen 4218 if postIndex < 0 { 4219 return ErrInvalidLengthRepository 4220 } 4221 if postIndex > l { 4222 return io.ErrUnexpectedEOF 4223 } 4224 if m.Apps == nil { 4225 m.Apps = make(map[string]string) 4226 } 4227 var mapkey string 4228 var mapvalue string 4229 for iNdEx < postIndex { 4230 entryPreIndex := iNdEx 4231 var wire uint64 4232 for shift := uint(0); ; shift += 7 { 4233 if shift >= 64 { 4234 return ErrIntOverflowRepository 4235 } 4236 if iNdEx >= l { 4237 return io.ErrUnexpectedEOF 4238 } 4239 b := dAtA[iNdEx] 4240 iNdEx++ 4241 wire |= uint64(b&0x7F) << shift 4242 if b < 0x80 { 4243 break 4244 } 4245 } 4246 fieldNum := int32(wire >> 3) 4247 if fieldNum == 1 { 4248 var stringLenmapkey uint64 4249 for shift := uint(0); ; shift += 7 { 4250 if shift >= 64 { 4251 return ErrIntOverflowRepository 4252 } 4253 if iNdEx >= l { 4254 return io.ErrUnexpectedEOF 4255 } 4256 b := dAtA[iNdEx] 4257 iNdEx++ 4258 stringLenmapkey |= uint64(b&0x7F) << shift 4259 if b < 0x80 { 4260 break 4261 } 4262 } 4263 intStringLenmapkey := int(stringLenmapkey) 4264 if intStringLenmapkey < 0 { 4265 return ErrInvalidLengthRepository 4266 } 4267 postStringIndexmapkey := iNdEx + intStringLenmapkey 4268 if postStringIndexmapkey < 0 { 4269 return ErrInvalidLengthRepository 4270 } 4271 if postStringIndexmapkey > l { 4272 return io.ErrUnexpectedEOF 4273 } 4274 mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) 4275 iNdEx = postStringIndexmapkey 4276 } else if fieldNum == 2 { 4277 var stringLenmapvalue uint64 4278 for shift := uint(0); ; shift += 7 { 4279 if shift >= 64 { 4280 return ErrIntOverflowRepository 4281 } 4282 if iNdEx >= l { 4283 return io.ErrUnexpectedEOF 4284 } 4285 b := dAtA[iNdEx] 4286 iNdEx++ 4287 stringLenmapvalue |= uint64(b&0x7F) << shift 4288 if b < 0x80 { 4289 break 4290 } 4291 } 4292 intStringLenmapvalue := int(stringLenmapvalue) 4293 if intStringLenmapvalue < 0 { 4294 return ErrInvalidLengthRepository 4295 } 4296 postStringIndexmapvalue := iNdEx + intStringLenmapvalue 4297 if postStringIndexmapvalue < 0 { 4298 return ErrInvalidLengthRepository 4299 } 4300 if postStringIndexmapvalue > l { 4301 return io.ErrUnexpectedEOF 4302 } 4303 mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) 4304 iNdEx = postStringIndexmapvalue 4305 } else { 4306 iNdEx = entryPreIndex 4307 skippy, err := skipRepository(dAtA[iNdEx:]) 4308 if err != nil { 4309 return err 4310 } 4311 if skippy < 0 { 4312 return ErrInvalidLengthRepository 4313 } 4314 if (iNdEx + skippy) > postIndex { 4315 return io.ErrUnexpectedEOF 4316 } 4317 iNdEx += skippy 4318 } 4319 } 4320 m.Apps[mapkey] = mapvalue 4321 iNdEx = postIndex 4322 default: 4323 iNdEx = preIndex 4324 skippy, err := skipRepository(dAtA[iNdEx:]) 4325 if err != nil { 4326 return err 4327 } 4328 if skippy < 0 { 4329 return ErrInvalidLengthRepository 4330 } 4331 if (iNdEx + skippy) < 0 { 4332 return ErrInvalidLengthRepository 4333 } 4334 if (iNdEx + skippy) > l { 4335 return io.ErrUnexpectedEOF 4336 } 4337 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4338 iNdEx += skippy 4339 } 4340 } 4341 4342 if iNdEx > l { 4343 return io.ErrUnexpectedEOF 4344 } 4345 return nil 4346 } 4347 func (m *RepoServerAppDetailsQuery) Unmarshal(dAtA []byte) error { 4348 l := len(dAtA) 4349 iNdEx := 0 4350 for iNdEx < l { 4351 preIndex := iNdEx 4352 var wire uint64 4353 for shift := uint(0); ; shift += 7 { 4354 if shift >= 64 { 4355 return ErrIntOverflowRepository 4356 } 4357 if iNdEx >= l { 4358 return io.ErrUnexpectedEOF 4359 } 4360 b := dAtA[iNdEx] 4361 iNdEx++ 4362 wire |= uint64(b&0x7F) << shift 4363 if b < 0x80 { 4364 break 4365 } 4366 } 4367 fieldNum := int32(wire >> 3) 4368 wireType := int(wire & 0x7) 4369 if wireType == 4 { 4370 return fmt.Errorf("proto: RepoServerAppDetailsQuery: wiretype end group for non-group") 4371 } 4372 if fieldNum <= 0 { 4373 return fmt.Errorf("proto: RepoServerAppDetailsQuery: illegal tag %d (wire type %d)", fieldNum, wire) 4374 } 4375 switch fieldNum { 4376 case 1: 4377 if wireType != 2 { 4378 return fmt.Errorf("proto: wrong wireType = %d for field Repo", wireType) 4379 } 4380 var msglen int 4381 for shift := uint(0); ; shift += 7 { 4382 if shift >= 64 { 4383 return ErrIntOverflowRepository 4384 } 4385 if iNdEx >= l { 4386 return io.ErrUnexpectedEOF 4387 } 4388 b := dAtA[iNdEx] 4389 iNdEx++ 4390 msglen |= int(b&0x7F) << shift 4391 if b < 0x80 { 4392 break 4393 } 4394 } 4395 if msglen < 0 { 4396 return ErrInvalidLengthRepository 4397 } 4398 postIndex := iNdEx + msglen 4399 if postIndex < 0 { 4400 return ErrInvalidLengthRepository 4401 } 4402 if postIndex > l { 4403 return io.ErrUnexpectedEOF 4404 } 4405 if m.Repo == nil { 4406 m.Repo = &v1alpha1.Repository{} 4407 } 4408 if err := m.Repo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4409 return err 4410 } 4411 iNdEx = postIndex 4412 case 2: 4413 if wireType != 2 { 4414 return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) 4415 } 4416 var msglen int 4417 for shift := uint(0); ; shift += 7 { 4418 if shift >= 64 { 4419 return ErrIntOverflowRepository 4420 } 4421 if iNdEx >= l { 4422 return io.ErrUnexpectedEOF 4423 } 4424 b := dAtA[iNdEx] 4425 iNdEx++ 4426 msglen |= int(b&0x7F) << shift 4427 if b < 0x80 { 4428 break 4429 } 4430 } 4431 if msglen < 0 { 4432 return ErrInvalidLengthRepository 4433 } 4434 postIndex := iNdEx + msglen 4435 if postIndex < 0 { 4436 return ErrInvalidLengthRepository 4437 } 4438 if postIndex > l { 4439 return io.ErrUnexpectedEOF 4440 } 4441 if m.Source == nil { 4442 m.Source = &v1alpha1.ApplicationSource{} 4443 } 4444 if err := m.Source.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4445 return err 4446 } 4447 iNdEx = postIndex 4448 case 3: 4449 if wireType != 2 { 4450 return fmt.Errorf("proto: wrong wireType = %d for field Repos", wireType) 4451 } 4452 var msglen int 4453 for shift := uint(0); ; shift += 7 { 4454 if shift >= 64 { 4455 return ErrIntOverflowRepository 4456 } 4457 if iNdEx >= l { 4458 return io.ErrUnexpectedEOF 4459 } 4460 b := dAtA[iNdEx] 4461 iNdEx++ 4462 msglen |= int(b&0x7F) << shift 4463 if b < 0x80 { 4464 break 4465 } 4466 } 4467 if msglen < 0 { 4468 return ErrInvalidLengthRepository 4469 } 4470 postIndex := iNdEx + msglen 4471 if postIndex < 0 { 4472 return ErrInvalidLengthRepository 4473 } 4474 if postIndex > l { 4475 return io.ErrUnexpectedEOF 4476 } 4477 m.Repos = append(m.Repos, &v1alpha1.Repository{}) 4478 if err := m.Repos[len(m.Repos)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4479 return err 4480 } 4481 iNdEx = postIndex 4482 case 4: 4483 if wireType != 2 { 4484 return fmt.Errorf("proto: wrong wireType = %d for field KustomizeOptions", wireType) 4485 } 4486 var msglen int 4487 for shift := uint(0); ; shift += 7 { 4488 if shift >= 64 { 4489 return ErrIntOverflowRepository 4490 } 4491 if iNdEx >= l { 4492 return io.ErrUnexpectedEOF 4493 } 4494 b := dAtA[iNdEx] 4495 iNdEx++ 4496 msglen |= int(b&0x7F) << shift 4497 if b < 0x80 { 4498 break 4499 } 4500 } 4501 if msglen < 0 { 4502 return ErrInvalidLengthRepository 4503 } 4504 postIndex := iNdEx + msglen 4505 if postIndex < 0 { 4506 return ErrInvalidLengthRepository 4507 } 4508 if postIndex > l { 4509 return io.ErrUnexpectedEOF 4510 } 4511 if m.KustomizeOptions == nil { 4512 m.KustomizeOptions = &v1alpha1.KustomizeOptions{} 4513 } 4514 if err := m.KustomizeOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4515 return err 4516 } 4517 iNdEx = postIndex 4518 default: 4519 iNdEx = preIndex 4520 skippy, err := skipRepository(dAtA[iNdEx:]) 4521 if err != nil { 4522 return err 4523 } 4524 if skippy < 0 { 4525 return ErrInvalidLengthRepository 4526 } 4527 if (iNdEx + skippy) < 0 { 4528 return ErrInvalidLengthRepository 4529 } 4530 if (iNdEx + skippy) > l { 4531 return io.ErrUnexpectedEOF 4532 } 4533 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4534 iNdEx += skippy 4535 } 4536 } 4537 4538 if iNdEx > l { 4539 return io.ErrUnexpectedEOF 4540 } 4541 return nil 4542 } 4543 func (m *RepoAppDetailsResponse) Unmarshal(dAtA []byte) error { 4544 l := len(dAtA) 4545 iNdEx := 0 4546 for iNdEx < l { 4547 preIndex := iNdEx 4548 var wire uint64 4549 for shift := uint(0); ; shift += 7 { 4550 if shift >= 64 { 4551 return ErrIntOverflowRepository 4552 } 4553 if iNdEx >= l { 4554 return io.ErrUnexpectedEOF 4555 } 4556 b := dAtA[iNdEx] 4557 iNdEx++ 4558 wire |= uint64(b&0x7F) << shift 4559 if b < 0x80 { 4560 break 4561 } 4562 } 4563 fieldNum := int32(wire >> 3) 4564 wireType := int(wire & 0x7) 4565 if wireType == 4 { 4566 return fmt.Errorf("proto: RepoAppDetailsResponse: wiretype end group for non-group") 4567 } 4568 if fieldNum <= 0 { 4569 return fmt.Errorf("proto: RepoAppDetailsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 4570 } 4571 switch fieldNum { 4572 case 1: 4573 if wireType != 2 { 4574 return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) 4575 } 4576 var stringLen uint64 4577 for shift := uint(0); ; shift += 7 { 4578 if shift >= 64 { 4579 return ErrIntOverflowRepository 4580 } 4581 if iNdEx >= l { 4582 return io.ErrUnexpectedEOF 4583 } 4584 b := dAtA[iNdEx] 4585 iNdEx++ 4586 stringLen |= uint64(b&0x7F) << shift 4587 if b < 0x80 { 4588 break 4589 } 4590 } 4591 intStringLen := int(stringLen) 4592 if intStringLen < 0 { 4593 return ErrInvalidLengthRepository 4594 } 4595 postIndex := iNdEx + intStringLen 4596 if postIndex < 0 { 4597 return ErrInvalidLengthRepository 4598 } 4599 if postIndex > l { 4600 return io.ErrUnexpectedEOF 4601 } 4602 m.Type = string(dAtA[iNdEx:postIndex]) 4603 iNdEx = postIndex 4604 case 2: 4605 if wireType != 2 { 4606 return fmt.Errorf("proto: wrong wireType = %d for field Ksonnet", wireType) 4607 } 4608 var msglen int 4609 for shift := uint(0); ; shift += 7 { 4610 if shift >= 64 { 4611 return ErrIntOverflowRepository 4612 } 4613 if iNdEx >= l { 4614 return io.ErrUnexpectedEOF 4615 } 4616 b := dAtA[iNdEx] 4617 iNdEx++ 4618 msglen |= int(b&0x7F) << shift 4619 if b < 0x80 { 4620 break 4621 } 4622 } 4623 if msglen < 0 { 4624 return ErrInvalidLengthRepository 4625 } 4626 postIndex := iNdEx + msglen 4627 if postIndex < 0 { 4628 return ErrInvalidLengthRepository 4629 } 4630 if postIndex > l { 4631 return io.ErrUnexpectedEOF 4632 } 4633 if m.Ksonnet == nil { 4634 m.Ksonnet = &KsonnetAppSpec{} 4635 } 4636 if err := m.Ksonnet.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4637 return err 4638 } 4639 iNdEx = postIndex 4640 case 3: 4641 if wireType != 2 { 4642 return fmt.Errorf("proto: wrong wireType = %d for field Helm", wireType) 4643 } 4644 var msglen int 4645 for shift := uint(0); ; shift += 7 { 4646 if shift >= 64 { 4647 return ErrIntOverflowRepository 4648 } 4649 if iNdEx >= l { 4650 return io.ErrUnexpectedEOF 4651 } 4652 b := dAtA[iNdEx] 4653 iNdEx++ 4654 msglen |= int(b&0x7F) << shift 4655 if b < 0x80 { 4656 break 4657 } 4658 } 4659 if msglen < 0 { 4660 return ErrInvalidLengthRepository 4661 } 4662 postIndex := iNdEx + msglen 4663 if postIndex < 0 { 4664 return ErrInvalidLengthRepository 4665 } 4666 if postIndex > l { 4667 return io.ErrUnexpectedEOF 4668 } 4669 if m.Helm == nil { 4670 m.Helm = &HelmAppSpec{} 4671 } 4672 if err := m.Helm.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4673 return err 4674 } 4675 iNdEx = postIndex 4676 case 4: 4677 if wireType != 2 { 4678 return fmt.Errorf("proto: wrong wireType = %d for field Kustomize", wireType) 4679 } 4680 var msglen int 4681 for shift := uint(0); ; shift += 7 { 4682 if shift >= 64 { 4683 return ErrIntOverflowRepository 4684 } 4685 if iNdEx >= l { 4686 return io.ErrUnexpectedEOF 4687 } 4688 b := dAtA[iNdEx] 4689 iNdEx++ 4690 msglen |= int(b&0x7F) << shift 4691 if b < 0x80 { 4692 break 4693 } 4694 } 4695 if msglen < 0 { 4696 return ErrInvalidLengthRepository 4697 } 4698 postIndex := iNdEx + msglen 4699 if postIndex < 0 { 4700 return ErrInvalidLengthRepository 4701 } 4702 if postIndex > l { 4703 return io.ErrUnexpectedEOF 4704 } 4705 if m.Kustomize == nil { 4706 m.Kustomize = &KustomizeAppSpec{} 4707 } 4708 if err := m.Kustomize.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4709 return err 4710 } 4711 iNdEx = postIndex 4712 case 5: 4713 if wireType != 2 { 4714 return fmt.Errorf("proto: wrong wireType = %d for field Directory", wireType) 4715 } 4716 var msglen int 4717 for shift := uint(0); ; shift += 7 { 4718 if shift >= 64 { 4719 return ErrIntOverflowRepository 4720 } 4721 if iNdEx >= l { 4722 return io.ErrUnexpectedEOF 4723 } 4724 b := dAtA[iNdEx] 4725 iNdEx++ 4726 msglen |= int(b&0x7F) << shift 4727 if b < 0x80 { 4728 break 4729 } 4730 } 4731 if msglen < 0 { 4732 return ErrInvalidLengthRepository 4733 } 4734 postIndex := iNdEx + msglen 4735 if postIndex < 0 { 4736 return ErrInvalidLengthRepository 4737 } 4738 if postIndex > l { 4739 return io.ErrUnexpectedEOF 4740 } 4741 if m.Directory == nil { 4742 m.Directory = &DirectoryAppSpec{} 4743 } 4744 if err := m.Directory.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4745 return err 4746 } 4747 iNdEx = postIndex 4748 default: 4749 iNdEx = preIndex 4750 skippy, err := skipRepository(dAtA[iNdEx:]) 4751 if err != nil { 4752 return err 4753 } 4754 if skippy < 0 { 4755 return ErrInvalidLengthRepository 4756 } 4757 if (iNdEx + skippy) < 0 { 4758 return ErrInvalidLengthRepository 4759 } 4760 if (iNdEx + skippy) > l { 4761 return io.ErrUnexpectedEOF 4762 } 4763 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4764 iNdEx += skippy 4765 } 4766 } 4767 4768 if iNdEx > l { 4769 return io.ErrUnexpectedEOF 4770 } 4771 return nil 4772 } 4773 func (m *RepoServerRevisionMetadataRequest) Unmarshal(dAtA []byte) error { 4774 l := len(dAtA) 4775 iNdEx := 0 4776 for iNdEx < l { 4777 preIndex := iNdEx 4778 var wire uint64 4779 for shift := uint(0); ; shift += 7 { 4780 if shift >= 64 { 4781 return ErrIntOverflowRepository 4782 } 4783 if iNdEx >= l { 4784 return io.ErrUnexpectedEOF 4785 } 4786 b := dAtA[iNdEx] 4787 iNdEx++ 4788 wire |= uint64(b&0x7F) << shift 4789 if b < 0x80 { 4790 break 4791 } 4792 } 4793 fieldNum := int32(wire >> 3) 4794 wireType := int(wire & 0x7) 4795 if wireType == 4 { 4796 return fmt.Errorf("proto: RepoServerRevisionMetadataRequest: wiretype end group for non-group") 4797 } 4798 if fieldNum <= 0 { 4799 return fmt.Errorf("proto: RepoServerRevisionMetadataRequest: illegal tag %d (wire type %d)", fieldNum, wire) 4800 } 4801 switch fieldNum { 4802 case 1: 4803 if wireType != 2 { 4804 return fmt.Errorf("proto: wrong wireType = %d for field Repo", wireType) 4805 } 4806 var msglen int 4807 for shift := uint(0); ; shift += 7 { 4808 if shift >= 64 { 4809 return ErrIntOverflowRepository 4810 } 4811 if iNdEx >= l { 4812 return io.ErrUnexpectedEOF 4813 } 4814 b := dAtA[iNdEx] 4815 iNdEx++ 4816 msglen |= int(b&0x7F) << shift 4817 if b < 0x80 { 4818 break 4819 } 4820 } 4821 if msglen < 0 { 4822 return ErrInvalidLengthRepository 4823 } 4824 postIndex := iNdEx + msglen 4825 if postIndex < 0 { 4826 return ErrInvalidLengthRepository 4827 } 4828 if postIndex > l { 4829 return io.ErrUnexpectedEOF 4830 } 4831 if m.Repo == nil { 4832 m.Repo = &v1alpha1.Repository{} 4833 } 4834 if err := m.Repo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4835 return err 4836 } 4837 iNdEx = postIndex 4838 case 2: 4839 if wireType != 2 { 4840 return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) 4841 } 4842 var stringLen uint64 4843 for shift := uint(0); ; shift += 7 { 4844 if shift >= 64 { 4845 return ErrIntOverflowRepository 4846 } 4847 if iNdEx >= l { 4848 return io.ErrUnexpectedEOF 4849 } 4850 b := dAtA[iNdEx] 4851 iNdEx++ 4852 stringLen |= uint64(b&0x7F) << shift 4853 if b < 0x80 { 4854 break 4855 } 4856 } 4857 intStringLen := int(stringLen) 4858 if intStringLen < 0 { 4859 return ErrInvalidLengthRepository 4860 } 4861 postIndex := iNdEx + intStringLen 4862 if postIndex < 0 { 4863 return ErrInvalidLengthRepository 4864 } 4865 if postIndex > l { 4866 return io.ErrUnexpectedEOF 4867 } 4868 m.Revision = string(dAtA[iNdEx:postIndex]) 4869 iNdEx = postIndex 4870 case 3: 4871 if wireType != 0 { 4872 return fmt.Errorf("proto: wrong wireType = %d for field CheckSignature", wireType) 4873 } 4874 var v int 4875 for shift := uint(0); ; shift += 7 { 4876 if shift >= 64 { 4877 return ErrIntOverflowRepository 4878 } 4879 if iNdEx >= l { 4880 return io.ErrUnexpectedEOF 4881 } 4882 b := dAtA[iNdEx] 4883 iNdEx++ 4884 v |= int(b&0x7F) << shift 4885 if b < 0x80 { 4886 break 4887 } 4888 } 4889 m.CheckSignature = bool(v != 0) 4890 default: 4891 iNdEx = preIndex 4892 skippy, err := skipRepository(dAtA[iNdEx:]) 4893 if err != nil { 4894 return err 4895 } 4896 if skippy < 0 { 4897 return ErrInvalidLengthRepository 4898 } 4899 if (iNdEx + skippy) < 0 { 4900 return ErrInvalidLengthRepository 4901 } 4902 if (iNdEx + skippy) > l { 4903 return io.ErrUnexpectedEOF 4904 } 4905 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4906 iNdEx += skippy 4907 } 4908 } 4909 4910 if iNdEx > l { 4911 return io.ErrUnexpectedEOF 4912 } 4913 return nil 4914 } 4915 func (m *KsonnetAppSpec) Unmarshal(dAtA []byte) error { 4916 l := len(dAtA) 4917 iNdEx := 0 4918 for iNdEx < l { 4919 preIndex := iNdEx 4920 var wire uint64 4921 for shift := uint(0); ; shift += 7 { 4922 if shift >= 64 { 4923 return ErrIntOverflowRepository 4924 } 4925 if iNdEx >= l { 4926 return io.ErrUnexpectedEOF 4927 } 4928 b := dAtA[iNdEx] 4929 iNdEx++ 4930 wire |= uint64(b&0x7F) << shift 4931 if b < 0x80 { 4932 break 4933 } 4934 } 4935 fieldNum := int32(wire >> 3) 4936 wireType := int(wire & 0x7) 4937 if wireType == 4 { 4938 return fmt.Errorf("proto: KsonnetAppSpec: wiretype end group for non-group") 4939 } 4940 if fieldNum <= 0 { 4941 return fmt.Errorf("proto: KsonnetAppSpec: illegal tag %d (wire type %d)", fieldNum, wire) 4942 } 4943 switch fieldNum { 4944 case 1: 4945 if wireType != 2 { 4946 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 4947 } 4948 var stringLen uint64 4949 for shift := uint(0); ; shift += 7 { 4950 if shift >= 64 { 4951 return ErrIntOverflowRepository 4952 } 4953 if iNdEx >= l { 4954 return io.ErrUnexpectedEOF 4955 } 4956 b := dAtA[iNdEx] 4957 iNdEx++ 4958 stringLen |= uint64(b&0x7F) << shift 4959 if b < 0x80 { 4960 break 4961 } 4962 } 4963 intStringLen := int(stringLen) 4964 if intStringLen < 0 { 4965 return ErrInvalidLengthRepository 4966 } 4967 postIndex := iNdEx + intStringLen 4968 if postIndex < 0 { 4969 return ErrInvalidLengthRepository 4970 } 4971 if postIndex > l { 4972 return io.ErrUnexpectedEOF 4973 } 4974 m.Name = string(dAtA[iNdEx:postIndex]) 4975 iNdEx = postIndex 4976 case 3: 4977 if wireType != 2 { 4978 return fmt.Errorf("proto: wrong wireType = %d for field Environments", wireType) 4979 } 4980 var msglen int 4981 for shift := uint(0); ; shift += 7 { 4982 if shift >= 64 { 4983 return ErrIntOverflowRepository 4984 } 4985 if iNdEx >= l { 4986 return io.ErrUnexpectedEOF 4987 } 4988 b := dAtA[iNdEx] 4989 iNdEx++ 4990 msglen |= int(b&0x7F) << shift 4991 if b < 0x80 { 4992 break 4993 } 4994 } 4995 if msglen < 0 { 4996 return ErrInvalidLengthRepository 4997 } 4998 postIndex := iNdEx + msglen 4999 if postIndex < 0 { 5000 return ErrInvalidLengthRepository 5001 } 5002 if postIndex > l { 5003 return io.ErrUnexpectedEOF 5004 } 5005 if m.Environments == nil { 5006 m.Environments = make(map[string]*KsonnetEnvironment) 5007 } 5008 var mapkey string 5009 var mapvalue *KsonnetEnvironment 5010 for iNdEx < postIndex { 5011 entryPreIndex := iNdEx 5012 var wire uint64 5013 for shift := uint(0); ; shift += 7 { 5014 if shift >= 64 { 5015 return ErrIntOverflowRepository 5016 } 5017 if iNdEx >= l { 5018 return io.ErrUnexpectedEOF 5019 } 5020 b := dAtA[iNdEx] 5021 iNdEx++ 5022 wire |= uint64(b&0x7F) << shift 5023 if b < 0x80 { 5024 break 5025 } 5026 } 5027 fieldNum := int32(wire >> 3) 5028 if fieldNum == 1 { 5029 var stringLenmapkey uint64 5030 for shift := uint(0); ; shift += 7 { 5031 if shift >= 64 { 5032 return ErrIntOverflowRepository 5033 } 5034 if iNdEx >= l { 5035 return io.ErrUnexpectedEOF 5036 } 5037 b := dAtA[iNdEx] 5038 iNdEx++ 5039 stringLenmapkey |= uint64(b&0x7F) << shift 5040 if b < 0x80 { 5041 break 5042 } 5043 } 5044 intStringLenmapkey := int(stringLenmapkey) 5045 if intStringLenmapkey < 0 { 5046 return ErrInvalidLengthRepository 5047 } 5048 postStringIndexmapkey := iNdEx + intStringLenmapkey 5049 if postStringIndexmapkey < 0 { 5050 return ErrInvalidLengthRepository 5051 } 5052 if postStringIndexmapkey > l { 5053 return io.ErrUnexpectedEOF 5054 } 5055 mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) 5056 iNdEx = postStringIndexmapkey 5057 } else if fieldNum == 2 { 5058 var mapmsglen int 5059 for shift := uint(0); ; shift += 7 { 5060 if shift >= 64 { 5061 return ErrIntOverflowRepository 5062 } 5063 if iNdEx >= l { 5064 return io.ErrUnexpectedEOF 5065 } 5066 b := dAtA[iNdEx] 5067 iNdEx++ 5068 mapmsglen |= int(b&0x7F) << shift 5069 if b < 0x80 { 5070 break 5071 } 5072 } 5073 if mapmsglen < 0 { 5074 return ErrInvalidLengthRepository 5075 } 5076 postmsgIndex := iNdEx + mapmsglen 5077 if postmsgIndex < 0 { 5078 return ErrInvalidLengthRepository 5079 } 5080 if postmsgIndex > l { 5081 return io.ErrUnexpectedEOF 5082 } 5083 mapvalue = &KsonnetEnvironment{} 5084 if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { 5085 return err 5086 } 5087 iNdEx = postmsgIndex 5088 } else { 5089 iNdEx = entryPreIndex 5090 skippy, err := skipRepository(dAtA[iNdEx:]) 5091 if err != nil { 5092 return err 5093 } 5094 if skippy < 0 { 5095 return ErrInvalidLengthRepository 5096 } 5097 if (iNdEx + skippy) > postIndex { 5098 return io.ErrUnexpectedEOF 5099 } 5100 iNdEx += skippy 5101 } 5102 } 5103 m.Environments[mapkey] = mapvalue 5104 iNdEx = postIndex 5105 case 4: 5106 if wireType != 2 { 5107 return fmt.Errorf("proto: wrong wireType = %d for field Parameters", wireType) 5108 } 5109 var msglen int 5110 for shift := uint(0); ; shift += 7 { 5111 if shift >= 64 { 5112 return ErrIntOverflowRepository 5113 } 5114 if iNdEx >= l { 5115 return io.ErrUnexpectedEOF 5116 } 5117 b := dAtA[iNdEx] 5118 iNdEx++ 5119 msglen |= int(b&0x7F) << shift 5120 if b < 0x80 { 5121 break 5122 } 5123 } 5124 if msglen < 0 { 5125 return ErrInvalidLengthRepository 5126 } 5127 postIndex := iNdEx + msglen 5128 if postIndex < 0 { 5129 return ErrInvalidLengthRepository 5130 } 5131 if postIndex > l { 5132 return io.ErrUnexpectedEOF 5133 } 5134 m.Parameters = append(m.Parameters, &v1alpha1.KsonnetParameter{}) 5135 if err := m.Parameters[len(m.Parameters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5136 return err 5137 } 5138 iNdEx = postIndex 5139 default: 5140 iNdEx = preIndex 5141 skippy, err := skipRepository(dAtA[iNdEx:]) 5142 if err != nil { 5143 return err 5144 } 5145 if skippy < 0 { 5146 return ErrInvalidLengthRepository 5147 } 5148 if (iNdEx + skippy) < 0 { 5149 return ErrInvalidLengthRepository 5150 } 5151 if (iNdEx + skippy) > l { 5152 return io.ErrUnexpectedEOF 5153 } 5154 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5155 iNdEx += skippy 5156 } 5157 } 5158 5159 if iNdEx > l { 5160 return io.ErrUnexpectedEOF 5161 } 5162 return nil 5163 } 5164 func (m *HelmAppSpec) Unmarshal(dAtA []byte) error { 5165 l := len(dAtA) 5166 iNdEx := 0 5167 for iNdEx < l { 5168 preIndex := iNdEx 5169 var wire uint64 5170 for shift := uint(0); ; shift += 7 { 5171 if shift >= 64 { 5172 return ErrIntOverflowRepository 5173 } 5174 if iNdEx >= l { 5175 return io.ErrUnexpectedEOF 5176 } 5177 b := dAtA[iNdEx] 5178 iNdEx++ 5179 wire |= uint64(b&0x7F) << shift 5180 if b < 0x80 { 5181 break 5182 } 5183 } 5184 fieldNum := int32(wire >> 3) 5185 wireType := int(wire & 0x7) 5186 if wireType == 4 { 5187 return fmt.Errorf("proto: HelmAppSpec: wiretype end group for non-group") 5188 } 5189 if fieldNum <= 0 { 5190 return fmt.Errorf("proto: HelmAppSpec: illegal tag %d (wire type %d)", fieldNum, wire) 5191 } 5192 switch fieldNum { 5193 case 1: 5194 if wireType != 2 { 5195 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 5196 } 5197 var stringLen uint64 5198 for shift := uint(0); ; shift += 7 { 5199 if shift >= 64 { 5200 return ErrIntOverflowRepository 5201 } 5202 if iNdEx >= l { 5203 return io.ErrUnexpectedEOF 5204 } 5205 b := dAtA[iNdEx] 5206 iNdEx++ 5207 stringLen |= uint64(b&0x7F) << shift 5208 if b < 0x80 { 5209 break 5210 } 5211 } 5212 intStringLen := int(stringLen) 5213 if intStringLen < 0 { 5214 return ErrInvalidLengthRepository 5215 } 5216 postIndex := iNdEx + intStringLen 5217 if postIndex < 0 { 5218 return ErrInvalidLengthRepository 5219 } 5220 if postIndex > l { 5221 return io.ErrUnexpectedEOF 5222 } 5223 m.Name = string(dAtA[iNdEx:postIndex]) 5224 iNdEx = postIndex 5225 case 3: 5226 if wireType != 2 { 5227 return fmt.Errorf("proto: wrong wireType = %d for field ValueFiles", wireType) 5228 } 5229 var stringLen uint64 5230 for shift := uint(0); ; shift += 7 { 5231 if shift >= 64 { 5232 return ErrIntOverflowRepository 5233 } 5234 if iNdEx >= l { 5235 return io.ErrUnexpectedEOF 5236 } 5237 b := dAtA[iNdEx] 5238 iNdEx++ 5239 stringLen |= uint64(b&0x7F) << shift 5240 if b < 0x80 { 5241 break 5242 } 5243 } 5244 intStringLen := int(stringLen) 5245 if intStringLen < 0 { 5246 return ErrInvalidLengthRepository 5247 } 5248 postIndex := iNdEx + intStringLen 5249 if postIndex < 0 { 5250 return ErrInvalidLengthRepository 5251 } 5252 if postIndex > l { 5253 return io.ErrUnexpectedEOF 5254 } 5255 m.ValueFiles = append(m.ValueFiles, string(dAtA[iNdEx:postIndex])) 5256 iNdEx = postIndex 5257 case 4: 5258 if wireType != 2 { 5259 return fmt.Errorf("proto: wrong wireType = %d for field Parameters", wireType) 5260 } 5261 var msglen int 5262 for shift := uint(0); ; shift += 7 { 5263 if shift >= 64 { 5264 return ErrIntOverflowRepository 5265 } 5266 if iNdEx >= l { 5267 return io.ErrUnexpectedEOF 5268 } 5269 b := dAtA[iNdEx] 5270 iNdEx++ 5271 msglen |= int(b&0x7F) << shift 5272 if b < 0x80 { 5273 break 5274 } 5275 } 5276 if msglen < 0 { 5277 return ErrInvalidLengthRepository 5278 } 5279 postIndex := iNdEx + msglen 5280 if postIndex < 0 { 5281 return ErrInvalidLengthRepository 5282 } 5283 if postIndex > l { 5284 return io.ErrUnexpectedEOF 5285 } 5286 m.Parameters = append(m.Parameters, &v1alpha1.HelmParameter{}) 5287 if err := m.Parameters[len(m.Parameters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5288 return err 5289 } 5290 iNdEx = postIndex 5291 case 5: 5292 if wireType != 2 { 5293 return fmt.Errorf("proto: wrong wireType = %d for field Values", wireType) 5294 } 5295 var stringLen uint64 5296 for shift := uint(0); ; shift += 7 { 5297 if shift >= 64 { 5298 return ErrIntOverflowRepository 5299 } 5300 if iNdEx >= l { 5301 return io.ErrUnexpectedEOF 5302 } 5303 b := dAtA[iNdEx] 5304 iNdEx++ 5305 stringLen |= uint64(b&0x7F) << shift 5306 if b < 0x80 { 5307 break 5308 } 5309 } 5310 intStringLen := int(stringLen) 5311 if intStringLen < 0 { 5312 return ErrInvalidLengthRepository 5313 } 5314 postIndex := iNdEx + intStringLen 5315 if postIndex < 0 { 5316 return ErrInvalidLengthRepository 5317 } 5318 if postIndex > l { 5319 return io.ErrUnexpectedEOF 5320 } 5321 m.Values = string(dAtA[iNdEx:postIndex]) 5322 iNdEx = postIndex 5323 case 6: 5324 if wireType != 2 { 5325 return fmt.Errorf("proto: wrong wireType = %d for field FileParameters", wireType) 5326 } 5327 var msglen int 5328 for shift := uint(0); ; shift += 7 { 5329 if shift >= 64 { 5330 return ErrIntOverflowRepository 5331 } 5332 if iNdEx >= l { 5333 return io.ErrUnexpectedEOF 5334 } 5335 b := dAtA[iNdEx] 5336 iNdEx++ 5337 msglen |= int(b&0x7F) << shift 5338 if b < 0x80 { 5339 break 5340 } 5341 } 5342 if msglen < 0 { 5343 return ErrInvalidLengthRepository 5344 } 5345 postIndex := iNdEx + msglen 5346 if postIndex < 0 { 5347 return ErrInvalidLengthRepository 5348 } 5349 if postIndex > l { 5350 return io.ErrUnexpectedEOF 5351 } 5352 m.FileParameters = append(m.FileParameters, &v1alpha1.HelmFileParameter{}) 5353 if err := m.FileParameters[len(m.FileParameters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5354 return err 5355 } 5356 iNdEx = postIndex 5357 default: 5358 iNdEx = preIndex 5359 skippy, err := skipRepository(dAtA[iNdEx:]) 5360 if err != nil { 5361 return err 5362 } 5363 if skippy < 0 { 5364 return ErrInvalidLengthRepository 5365 } 5366 if (iNdEx + skippy) < 0 { 5367 return ErrInvalidLengthRepository 5368 } 5369 if (iNdEx + skippy) > l { 5370 return io.ErrUnexpectedEOF 5371 } 5372 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5373 iNdEx += skippy 5374 } 5375 } 5376 5377 if iNdEx > l { 5378 return io.ErrUnexpectedEOF 5379 } 5380 return nil 5381 } 5382 func (m *KustomizeAppSpec) Unmarshal(dAtA []byte) error { 5383 l := len(dAtA) 5384 iNdEx := 0 5385 for iNdEx < l { 5386 preIndex := iNdEx 5387 var wire uint64 5388 for shift := uint(0); ; shift += 7 { 5389 if shift >= 64 { 5390 return ErrIntOverflowRepository 5391 } 5392 if iNdEx >= l { 5393 return io.ErrUnexpectedEOF 5394 } 5395 b := dAtA[iNdEx] 5396 iNdEx++ 5397 wire |= uint64(b&0x7F) << shift 5398 if b < 0x80 { 5399 break 5400 } 5401 } 5402 fieldNum := int32(wire >> 3) 5403 wireType := int(wire & 0x7) 5404 if wireType == 4 { 5405 return fmt.Errorf("proto: KustomizeAppSpec: wiretype end group for non-group") 5406 } 5407 if fieldNum <= 0 { 5408 return fmt.Errorf("proto: KustomizeAppSpec: illegal tag %d (wire type %d)", fieldNum, wire) 5409 } 5410 switch fieldNum { 5411 case 3: 5412 if wireType != 2 { 5413 return fmt.Errorf("proto: wrong wireType = %d for field Images", wireType) 5414 } 5415 var stringLen uint64 5416 for shift := uint(0); ; shift += 7 { 5417 if shift >= 64 { 5418 return ErrIntOverflowRepository 5419 } 5420 if iNdEx >= l { 5421 return io.ErrUnexpectedEOF 5422 } 5423 b := dAtA[iNdEx] 5424 iNdEx++ 5425 stringLen |= uint64(b&0x7F) << shift 5426 if b < 0x80 { 5427 break 5428 } 5429 } 5430 intStringLen := int(stringLen) 5431 if intStringLen < 0 { 5432 return ErrInvalidLengthRepository 5433 } 5434 postIndex := iNdEx + intStringLen 5435 if postIndex < 0 { 5436 return ErrInvalidLengthRepository 5437 } 5438 if postIndex > l { 5439 return io.ErrUnexpectedEOF 5440 } 5441 m.Images = append(m.Images, string(dAtA[iNdEx:postIndex])) 5442 iNdEx = postIndex 5443 default: 5444 iNdEx = preIndex 5445 skippy, err := skipRepository(dAtA[iNdEx:]) 5446 if err != nil { 5447 return err 5448 } 5449 if skippy < 0 { 5450 return ErrInvalidLengthRepository 5451 } 5452 if (iNdEx + skippy) < 0 { 5453 return ErrInvalidLengthRepository 5454 } 5455 if (iNdEx + skippy) > l { 5456 return io.ErrUnexpectedEOF 5457 } 5458 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5459 iNdEx += skippy 5460 } 5461 } 5462 5463 if iNdEx > l { 5464 return io.ErrUnexpectedEOF 5465 } 5466 return nil 5467 } 5468 func (m *KsonnetEnvironment) Unmarshal(dAtA []byte) error { 5469 l := len(dAtA) 5470 iNdEx := 0 5471 for iNdEx < l { 5472 preIndex := iNdEx 5473 var wire uint64 5474 for shift := uint(0); ; shift += 7 { 5475 if shift >= 64 { 5476 return ErrIntOverflowRepository 5477 } 5478 if iNdEx >= l { 5479 return io.ErrUnexpectedEOF 5480 } 5481 b := dAtA[iNdEx] 5482 iNdEx++ 5483 wire |= uint64(b&0x7F) << shift 5484 if b < 0x80 { 5485 break 5486 } 5487 } 5488 fieldNum := int32(wire >> 3) 5489 wireType := int(wire & 0x7) 5490 if wireType == 4 { 5491 return fmt.Errorf("proto: KsonnetEnvironment: wiretype end group for non-group") 5492 } 5493 if fieldNum <= 0 { 5494 return fmt.Errorf("proto: KsonnetEnvironment: illegal tag %d (wire type %d)", fieldNum, wire) 5495 } 5496 switch fieldNum { 5497 case 1: 5498 if wireType != 2 { 5499 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 5500 } 5501 var stringLen uint64 5502 for shift := uint(0); ; shift += 7 { 5503 if shift >= 64 { 5504 return ErrIntOverflowRepository 5505 } 5506 if iNdEx >= l { 5507 return io.ErrUnexpectedEOF 5508 } 5509 b := dAtA[iNdEx] 5510 iNdEx++ 5511 stringLen |= uint64(b&0x7F) << shift 5512 if b < 0x80 { 5513 break 5514 } 5515 } 5516 intStringLen := int(stringLen) 5517 if intStringLen < 0 { 5518 return ErrInvalidLengthRepository 5519 } 5520 postIndex := iNdEx + intStringLen 5521 if postIndex < 0 { 5522 return ErrInvalidLengthRepository 5523 } 5524 if postIndex > l { 5525 return io.ErrUnexpectedEOF 5526 } 5527 m.Name = string(dAtA[iNdEx:postIndex]) 5528 iNdEx = postIndex 5529 case 2: 5530 if wireType != 2 { 5531 return fmt.Errorf("proto: wrong wireType = %d for field K8SVersion", wireType) 5532 } 5533 var stringLen uint64 5534 for shift := uint(0); ; shift += 7 { 5535 if shift >= 64 { 5536 return ErrIntOverflowRepository 5537 } 5538 if iNdEx >= l { 5539 return io.ErrUnexpectedEOF 5540 } 5541 b := dAtA[iNdEx] 5542 iNdEx++ 5543 stringLen |= uint64(b&0x7F) << shift 5544 if b < 0x80 { 5545 break 5546 } 5547 } 5548 intStringLen := int(stringLen) 5549 if intStringLen < 0 { 5550 return ErrInvalidLengthRepository 5551 } 5552 postIndex := iNdEx + intStringLen 5553 if postIndex < 0 { 5554 return ErrInvalidLengthRepository 5555 } 5556 if postIndex > l { 5557 return io.ErrUnexpectedEOF 5558 } 5559 m.K8SVersion = string(dAtA[iNdEx:postIndex]) 5560 iNdEx = postIndex 5561 case 4: 5562 if wireType != 2 { 5563 return fmt.Errorf("proto: wrong wireType = %d for field Destination", wireType) 5564 } 5565 var msglen int 5566 for shift := uint(0); ; shift += 7 { 5567 if shift >= 64 { 5568 return ErrIntOverflowRepository 5569 } 5570 if iNdEx >= l { 5571 return io.ErrUnexpectedEOF 5572 } 5573 b := dAtA[iNdEx] 5574 iNdEx++ 5575 msglen |= int(b&0x7F) << shift 5576 if b < 0x80 { 5577 break 5578 } 5579 } 5580 if msglen < 0 { 5581 return ErrInvalidLengthRepository 5582 } 5583 postIndex := iNdEx + msglen 5584 if postIndex < 0 { 5585 return ErrInvalidLengthRepository 5586 } 5587 if postIndex > l { 5588 return io.ErrUnexpectedEOF 5589 } 5590 if m.Destination == nil { 5591 m.Destination = &KsonnetEnvironmentDestination{} 5592 } 5593 if err := m.Destination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5594 return err 5595 } 5596 iNdEx = postIndex 5597 default: 5598 iNdEx = preIndex 5599 skippy, err := skipRepository(dAtA[iNdEx:]) 5600 if err != nil { 5601 return err 5602 } 5603 if skippy < 0 { 5604 return ErrInvalidLengthRepository 5605 } 5606 if (iNdEx + skippy) < 0 { 5607 return ErrInvalidLengthRepository 5608 } 5609 if (iNdEx + skippy) > l { 5610 return io.ErrUnexpectedEOF 5611 } 5612 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5613 iNdEx += skippy 5614 } 5615 } 5616 5617 if iNdEx > l { 5618 return io.ErrUnexpectedEOF 5619 } 5620 return nil 5621 } 5622 func (m *KsonnetEnvironmentDestination) Unmarshal(dAtA []byte) error { 5623 l := len(dAtA) 5624 iNdEx := 0 5625 for iNdEx < l { 5626 preIndex := iNdEx 5627 var wire uint64 5628 for shift := uint(0); ; shift += 7 { 5629 if shift >= 64 { 5630 return ErrIntOverflowRepository 5631 } 5632 if iNdEx >= l { 5633 return io.ErrUnexpectedEOF 5634 } 5635 b := dAtA[iNdEx] 5636 iNdEx++ 5637 wire |= uint64(b&0x7F) << shift 5638 if b < 0x80 { 5639 break 5640 } 5641 } 5642 fieldNum := int32(wire >> 3) 5643 wireType := int(wire & 0x7) 5644 if wireType == 4 { 5645 return fmt.Errorf("proto: KsonnetEnvironmentDestination: wiretype end group for non-group") 5646 } 5647 if fieldNum <= 0 { 5648 return fmt.Errorf("proto: KsonnetEnvironmentDestination: illegal tag %d (wire type %d)", fieldNum, wire) 5649 } 5650 switch fieldNum { 5651 case 1: 5652 if wireType != 2 { 5653 return fmt.Errorf("proto: wrong wireType = %d for field Server", wireType) 5654 } 5655 var stringLen uint64 5656 for shift := uint(0); ; shift += 7 { 5657 if shift >= 64 { 5658 return ErrIntOverflowRepository 5659 } 5660 if iNdEx >= l { 5661 return io.ErrUnexpectedEOF 5662 } 5663 b := dAtA[iNdEx] 5664 iNdEx++ 5665 stringLen |= uint64(b&0x7F) << shift 5666 if b < 0x80 { 5667 break 5668 } 5669 } 5670 intStringLen := int(stringLen) 5671 if intStringLen < 0 { 5672 return ErrInvalidLengthRepository 5673 } 5674 postIndex := iNdEx + intStringLen 5675 if postIndex < 0 { 5676 return ErrInvalidLengthRepository 5677 } 5678 if postIndex > l { 5679 return io.ErrUnexpectedEOF 5680 } 5681 m.Server = string(dAtA[iNdEx:postIndex]) 5682 iNdEx = postIndex 5683 case 2: 5684 if wireType != 2 { 5685 return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) 5686 } 5687 var stringLen uint64 5688 for shift := uint(0); ; shift += 7 { 5689 if shift >= 64 { 5690 return ErrIntOverflowRepository 5691 } 5692 if iNdEx >= l { 5693 return io.ErrUnexpectedEOF 5694 } 5695 b := dAtA[iNdEx] 5696 iNdEx++ 5697 stringLen |= uint64(b&0x7F) << shift 5698 if b < 0x80 { 5699 break 5700 } 5701 } 5702 intStringLen := int(stringLen) 5703 if intStringLen < 0 { 5704 return ErrInvalidLengthRepository 5705 } 5706 postIndex := iNdEx + intStringLen 5707 if postIndex < 0 { 5708 return ErrInvalidLengthRepository 5709 } 5710 if postIndex > l { 5711 return io.ErrUnexpectedEOF 5712 } 5713 m.Namespace = string(dAtA[iNdEx:postIndex]) 5714 iNdEx = postIndex 5715 default: 5716 iNdEx = preIndex 5717 skippy, err := skipRepository(dAtA[iNdEx:]) 5718 if err != nil { 5719 return err 5720 } 5721 if skippy < 0 { 5722 return ErrInvalidLengthRepository 5723 } 5724 if (iNdEx + skippy) < 0 { 5725 return ErrInvalidLengthRepository 5726 } 5727 if (iNdEx + skippy) > l { 5728 return io.ErrUnexpectedEOF 5729 } 5730 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5731 iNdEx += skippy 5732 } 5733 } 5734 5735 if iNdEx > l { 5736 return io.ErrUnexpectedEOF 5737 } 5738 return nil 5739 } 5740 func (m *DirectoryAppSpec) Unmarshal(dAtA []byte) error { 5741 l := len(dAtA) 5742 iNdEx := 0 5743 for iNdEx < l { 5744 preIndex := iNdEx 5745 var wire uint64 5746 for shift := uint(0); ; shift += 7 { 5747 if shift >= 64 { 5748 return ErrIntOverflowRepository 5749 } 5750 if iNdEx >= l { 5751 return io.ErrUnexpectedEOF 5752 } 5753 b := dAtA[iNdEx] 5754 iNdEx++ 5755 wire |= uint64(b&0x7F) << shift 5756 if b < 0x80 { 5757 break 5758 } 5759 } 5760 fieldNum := int32(wire >> 3) 5761 wireType := int(wire & 0x7) 5762 if wireType == 4 { 5763 return fmt.Errorf("proto: DirectoryAppSpec: wiretype end group for non-group") 5764 } 5765 if fieldNum <= 0 { 5766 return fmt.Errorf("proto: DirectoryAppSpec: illegal tag %d (wire type %d)", fieldNum, wire) 5767 } 5768 switch fieldNum { 5769 default: 5770 iNdEx = preIndex 5771 skippy, err := skipRepository(dAtA[iNdEx:]) 5772 if err != nil { 5773 return err 5774 } 5775 if skippy < 0 { 5776 return ErrInvalidLengthRepository 5777 } 5778 if (iNdEx + skippy) < 0 { 5779 return ErrInvalidLengthRepository 5780 } 5781 if (iNdEx + skippy) > l { 5782 return io.ErrUnexpectedEOF 5783 } 5784 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5785 iNdEx += skippy 5786 } 5787 } 5788 5789 if iNdEx > l { 5790 return io.ErrUnexpectedEOF 5791 } 5792 return nil 5793 } 5794 func (m *HelmChartsRequest) Unmarshal(dAtA []byte) error { 5795 l := len(dAtA) 5796 iNdEx := 0 5797 for iNdEx < l { 5798 preIndex := iNdEx 5799 var wire uint64 5800 for shift := uint(0); ; shift += 7 { 5801 if shift >= 64 { 5802 return ErrIntOverflowRepository 5803 } 5804 if iNdEx >= l { 5805 return io.ErrUnexpectedEOF 5806 } 5807 b := dAtA[iNdEx] 5808 iNdEx++ 5809 wire |= uint64(b&0x7F) << shift 5810 if b < 0x80 { 5811 break 5812 } 5813 } 5814 fieldNum := int32(wire >> 3) 5815 wireType := int(wire & 0x7) 5816 if wireType == 4 { 5817 return fmt.Errorf("proto: HelmChartsRequest: wiretype end group for non-group") 5818 } 5819 if fieldNum <= 0 { 5820 return fmt.Errorf("proto: HelmChartsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 5821 } 5822 switch fieldNum { 5823 case 1: 5824 if wireType != 2 { 5825 return fmt.Errorf("proto: wrong wireType = %d for field Repo", wireType) 5826 } 5827 var msglen int 5828 for shift := uint(0); ; shift += 7 { 5829 if shift >= 64 { 5830 return ErrIntOverflowRepository 5831 } 5832 if iNdEx >= l { 5833 return io.ErrUnexpectedEOF 5834 } 5835 b := dAtA[iNdEx] 5836 iNdEx++ 5837 msglen |= int(b&0x7F) << shift 5838 if b < 0x80 { 5839 break 5840 } 5841 } 5842 if msglen < 0 { 5843 return ErrInvalidLengthRepository 5844 } 5845 postIndex := iNdEx + msglen 5846 if postIndex < 0 { 5847 return ErrInvalidLengthRepository 5848 } 5849 if postIndex > l { 5850 return io.ErrUnexpectedEOF 5851 } 5852 if m.Repo == nil { 5853 m.Repo = &v1alpha1.Repository{} 5854 } 5855 if err := m.Repo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5856 return err 5857 } 5858 iNdEx = postIndex 5859 default: 5860 iNdEx = preIndex 5861 skippy, err := skipRepository(dAtA[iNdEx:]) 5862 if err != nil { 5863 return err 5864 } 5865 if skippy < 0 { 5866 return ErrInvalidLengthRepository 5867 } 5868 if (iNdEx + skippy) < 0 { 5869 return ErrInvalidLengthRepository 5870 } 5871 if (iNdEx + skippy) > l { 5872 return io.ErrUnexpectedEOF 5873 } 5874 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5875 iNdEx += skippy 5876 } 5877 } 5878 5879 if iNdEx > l { 5880 return io.ErrUnexpectedEOF 5881 } 5882 return nil 5883 } 5884 func (m *HelmChart) Unmarshal(dAtA []byte) error { 5885 l := len(dAtA) 5886 iNdEx := 0 5887 for iNdEx < l { 5888 preIndex := iNdEx 5889 var wire uint64 5890 for shift := uint(0); ; shift += 7 { 5891 if shift >= 64 { 5892 return ErrIntOverflowRepository 5893 } 5894 if iNdEx >= l { 5895 return io.ErrUnexpectedEOF 5896 } 5897 b := dAtA[iNdEx] 5898 iNdEx++ 5899 wire |= uint64(b&0x7F) << shift 5900 if b < 0x80 { 5901 break 5902 } 5903 } 5904 fieldNum := int32(wire >> 3) 5905 wireType := int(wire & 0x7) 5906 if wireType == 4 { 5907 return fmt.Errorf("proto: HelmChart: wiretype end group for non-group") 5908 } 5909 if fieldNum <= 0 { 5910 return fmt.Errorf("proto: HelmChart: illegal tag %d (wire type %d)", fieldNum, wire) 5911 } 5912 switch fieldNum { 5913 case 1: 5914 if wireType != 2 { 5915 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 5916 } 5917 var stringLen uint64 5918 for shift := uint(0); ; shift += 7 { 5919 if shift >= 64 { 5920 return ErrIntOverflowRepository 5921 } 5922 if iNdEx >= l { 5923 return io.ErrUnexpectedEOF 5924 } 5925 b := dAtA[iNdEx] 5926 iNdEx++ 5927 stringLen |= uint64(b&0x7F) << shift 5928 if b < 0x80 { 5929 break 5930 } 5931 } 5932 intStringLen := int(stringLen) 5933 if intStringLen < 0 { 5934 return ErrInvalidLengthRepository 5935 } 5936 postIndex := iNdEx + intStringLen 5937 if postIndex < 0 { 5938 return ErrInvalidLengthRepository 5939 } 5940 if postIndex > l { 5941 return io.ErrUnexpectedEOF 5942 } 5943 m.Name = string(dAtA[iNdEx:postIndex]) 5944 iNdEx = postIndex 5945 case 2: 5946 if wireType != 2 { 5947 return fmt.Errorf("proto: wrong wireType = %d for field Versions", wireType) 5948 } 5949 var stringLen uint64 5950 for shift := uint(0); ; shift += 7 { 5951 if shift >= 64 { 5952 return ErrIntOverflowRepository 5953 } 5954 if iNdEx >= l { 5955 return io.ErrUnexpectedEOF 5956 } 5957 b := dAtA[iNdEx] 5958 iNdEx++ 5959 stringLen |= uint64(b&0x7F) << shift 5960 if b < 0x80 { 5961 break 5962 } 5963 } 5964 intStringLen := int(stringLen) 5965 if intStringLen < 0 { 5966 return ErrInvalidLengthRepository 5967 } 5968 postIndex := iNdEx + intStringLen 5969 if postIndex < 0 { 5970 return ErrInvalidLengthRepository 5971 } 5972 if postIndex > l { 5973 return io.ErrUnexpectedEOF 5974 } 5975 m.Versions = append(m.Versions, string(dAtA[iNdEx:postIndex])) 5976 iNdEx = postIndex 5977 default: 5978 iNdEx = preIndex 5979 skippy, err := skipRepository(dAtA[iNdEx:]) 5980 if err != nil { 5981 return err 5982 } 5983 if skippy < 0 { 5984 return ErrInvalidLengthRepository 5985 } 5986 if (iNdEx + skippy) < 0 { 5987 return ErrInvalidLengthRepository 5988 } 5989 if (iNdEx + skippy) > l { 5990 return io.ErrUnexpectedEOF 5991 } 5992 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5993 iNdEx += skippy 5994 } 5995 } 5996 5997 if iNdEx > l { 5998 return io.ErrUnexpectedEOF 5999 } 6000 return nil 6001 } 6002 func (m *HelmChartsResponse) Unmarshal(dAtA []byte) error { 6003 l := len(dAtA) 6004 iNdEx := 0 6005 for iNdEx < l { 6006 preIndex := iNdEx 6007 var wire uint64 6008 for shift := uint(0); ; shift += 7 { 6009 if shift >= 64 { 6010 return ErrIntOverflowRepository 6011 } 6012 if iNdEx >= l { 6013 return io.ErrUnexpectedEOF 6014 } 6015 b := dAtA[iNdEx] 6016 iNdEx++ 6017 wire |= uint64(b&0x7F) << shift 6018 if b < 0x80 { 6019 break 6020 } 6021 } 6022 fieldNum := int32(wire >> 3) 6023 wireType := int(wire & 0x7) 6024 if wireType == 4 { 6025 return fmt.Errorf("proto: HelmChartsResponse: wiretype end group for non-group") 6026 } 6027 if fieldNum <= 0 { 6028 return fmt.Errorf("proto: HelmChartsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 6029 } 6030 switch fieldNum { 6031 case 1: 6032 if wireType != 2 { 6033 return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) 6034 } 6035 var msglen int 6036 for shift := uint(0); ; shift += 7 { 6037 if shift >= 64 { 6038 return ErrIntOverflowRepository 6039 } 6040 if iNdEx >= l { 6041 return io.ErrUnexpectedEOF 6042 } 6043 b := dAtA[iNdEx] 6044 iNdEx++ 6045 msglen |= int(b&0x7F) << shift 6046 if b < 0x80 { 6047 break 6048 } 6049 } 6050 if msglen < 0 { 6051 return ErrInvalidLengthRepository 6052 } 6053 postIndex := iNdEx + msglen 6054 if postIndex < 0 { 6055 return ErrInvalidLengthRepository 6056 } 6057 if postIndex > l { 6058 return io.ErrUnexpectedEOF 6059 } 6060 m.Items = append(m.Items, &HelmChart{}) 6061 if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6062 return err 6063 } 6064 iNdEx = postIndex 6065 default: 6066 iNdEx = preIndex 6067 skippy, err := skipRepository(dAtA[iNdEx:]) 6068 if err != nil { 6069 return err 6070 } 6071 if skippy < 0 { 6072 return ErrInvalidLengthRepository 6073 } 6074 if (iNdEx + skippy) < 0 { 6075 return ErrInvalidLengthRepository 6076 } 6077 if (iNdEx + skippy) > l { 6078 return io.ErrUnexpectedEOF 6079 } 6080 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 6081 iNdEx += skippy 6082 } 6083 } 6084 6085 if iNdEx > l { 6086 return io.ErrUnexpectedEOF 6087 } 6088 return nil 6089 } 6090 func skipRepository(dAtA []byte) (n int, err error) { 6091 l := len(dAtA) 6092 iNdEx := 0 6093 depth := 0 6094 for iNdEx < l { 6095 var wire uint64 6096 for shift := uint(0); ; shift += 7 { 6097 if shift >= 64 { 6098 return 0, ErrIntOverflowRepository 6099 } 6100 if iNdEx >= l { 6101 return 0, io.ErrUnexpectedEOF 6102 } 6103 b := dAtA[iNdEx] 6104 iNdEx++ 6105 wire |= (uint64(b) & 0x7F) << shift 6106 if b < 0x80 { 6107 break 6108 } 6109 } 6110 wireType := int(wire & 0x7) 6111 switch wireType { 6112 case 0: 6113 for shift := uint(0); ; shift += 7 { 6114 if shift >= 64 { 6115 return 0, ErrIntOverflowRepository 6116 } 6117 if iNdEx >= l { 6118 return 0, io.ErrUnexpectedEOF 6119 } 6120 iNdEx++ 6121 if dAtA[iNdEx-1] < 0x80 { 6122 break 6123 } 6124 } 6125 case 1: 6126 iNdEx += 8 6127 case 2: 6128 var length int 6129 for shift := uint(0); ; shift += 7 { 6130 if shift >= 64 { 6131 return 0, ErrIntOverflowRepository 6132 } 6133 if iNdEx >= l { 6134 return 0, io.ErrUnexpectedEOF 6135 } 6136 b := dAtA[iNdEx] 6137 iNdEx++ 6138 length |= (int(b) & 0x7F) << shift 6139 if b < 0x80 { 6140 break 6141 } 6142 } 6143 if length < 0 { 6144 return 0, ErrInvalidLengthRepository 6145 } 6146 iNdEx += length 6147 case 3: 6148 depth++ 6149 case 4: 6150 if depth == 0 { 6151 return 0, ErrUnexpectedEndOfGroupRepository 6152 } 6153 depth-- 6154 case 5: 6155 iNdEx += 4 6156 default: 6157 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 6158 } 6159 if iNdEx < 0 { 6160 return 0, ErrInvalidLengthRepository 6161 } 6162 if depth == 0 { 6163 return iNdEx, nil 6164 } 6165 } 6166 return 0, io.ErrUnexpectedEOF 6167 } 6168 6169 var ( 6170 ErrInvalidLengthRepository = fmt.Errorf("proto: negative length found during unmarshaling") 6171 ErrIntOverflowRepository = fmt.Errorf("proto: integer overflow") 6172 ErrUnexpectedEndOfGroupRepository = fmt.Errorf("proto: unexpected end of group") 6173 )