mirror of
https://github.com/hanzoai/cd.git
synced 2026-10-30 14:56:45 +00:00
repository.proto and 11 sibling hand-written .proto files referenced generated.proto's application/v1alpha1 types under the pre-fork package path (github.com.argoproj.argo_cd.v3...); protoc silently kept compiling because generated.proto still carried that same stale package too. Point both at the real, mechanically-derived path (github.com.hanzoai.cd.pkg.apis.application.v1alpha1, no v3 segment) and regenerate everything protoc/go-to-protobuf own: generated.proto/pb.go, every pkg/apiclient and reposerver/cmpserver/commitserver *.pb.go, assets/swagger.json, and the CRD manifests. That regeneration surfaced a second, unrelated bug: hack/gen-crd-spec stamped app.kubernetes.io/part-of: cd on the CRDs, but util/settings.isSettingsObject (and the ConfigMap informer built on it) only ever recognizes part-of=hanzocd. The same wrong "cd" value was baked into cmd/cd/commands/admin/settings.go's setSettingsMeta and the shared test/testdata.go fixtures ~30 files import — util/settings' own test suite was panicking on an empty slice because its fixture was invisible to the informer it was supposedly seeding. Fixed the label everywhere it's produced or asserted in the settings path; left the ~90 unrelated part-of:"cd" literals in other packages' local test fixtures alone since they never touch this selector. Also dropped 25 "TODO: Remove deprecated <dead upstream issue link>" comments that duplicated the real explanation already sitting one line away (a proper `Deprecated:` godoc, a cobra Deprecated field, or a nolint:staticcheck marker) — kept the explanation, dropped the link, per the standing rule for these citations. And repointed the two Grafana dashboards' job selector from argocd-server-metrics, a Service the manifests never create, to hanzocd-server-metrics, the one they do.
1604 lines
42 KiB
Go
Generated
1604 lines
42 KiB
Go
Generated
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
// source: commitserver/commit/commit.proto
|
|
|
|
package apiclient
|
|
|
|
import (
|
|
context "context"
|
|
fmt "fmt"
|
|
proto "github.com/gogo/protobuf/proto"
|
|
v1alpha1 "github.com/hanzoai/cd/pkg/apis/application/v1alpha1"
|
|
grpc "google.golang.org/grpc"
|
|
codes "google.golang.org/grpc/codes"
|
|
status "google.golang.org/grpc/status"
|
|
io "io"
|
|
math "math"
|
|
math_bits "math/bits"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
// CommitHydratedManifestsRequest is the request to commit hydrated manifests to a repository.
|
|
type CommitHydratedManifestsRequest struct {
|
|
// Repo contains repository information including, at minimum, the URL of the repository. Generally it will contain
|
|
// repo credentials.
|
|
Repo *v1alpha1.Repository `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
|
|
// SyncBranch is the branch Hanzo CD syncs from, i.e. the hydrated branch.
|
|
SyncBranch string `protobuf:"bytes,2,opt,name=syncBranch,proto3" json:"syncBranch,omitempty"`
|
|
// TargetBranch is the branch Hanzo CD is committing to, i.e. the branch that will be updated.
|
|
TargetBranch string `protobuf:"bytes,3,opt,name=targetBranch,proto3" json:"targetBranch,omitempty"`
|
|
// DrySha is the commit SHA from the dry branch, i.e. pre-rendered manifest branch.
|
|
DrySha string `protobuf:"bytes,4,opt,name=drySha,proto3" json:"drySha,omitempty"`
|
|
// CommitMessage is the commit message to use when committing changes.
|
|
CommitMessage string `protobuf:"bytes,5,opt,name=commitMessage,proto3" json:"commitMessage,omitempty"`
|
|
// Paths contains the paths to write hydrated manifests to, along with the manifests and commands to execute.
|
|
Paths []*PathDetails `protobuf:"bytes,6,rep,name=paths,proto3" json:"paths,omitempty"`
|
|
// DryCommitMetadata contains metadata about the DRY commit, such as the author and committer.
|
|
DryCommitMetadata *v1alpha1.RevisionMetadata `protobuf:"bytes,7,opt,name=dryCommitMetadata,proto3" json:"dryCommitMetadata,omitempty"`
|
|
// AuthorName is the author name to use for the commit. If empty, defaults to "Hanzo CD".
|
|
AuthorName string `protobuf:"bytes,8,opt,name=authorName,proto3" json:"authorName,omitempty"`
|
|
// AuthorEmail is the author email to use for the commit. If empty, defaults to "[email protected]".
|
|
AuthorEmail string `protobuf:"bytes,9,opt,name=authorEmail,proto3" json:"authorEmail,omitempty"`
|
|
// ReadmeMessage is the message content for README template updates.
|
|
ReadmeMessage string `protobuf:"bytes,10,opt,name=readmeMessage,proto3" json:"readmeMessage,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *CommitHydratedManifestsRequest) Reset() { *m = CommitHydratedManifestsRequest{} }
|
|
func (m *CommitHydratedManifestsRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*CommitHydratedManifestsRequest) ProtoMessage() {}
|
|
func (*CommitHydratedManifestsRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_cf3a3abbc35e3069, []int{0}
|
|
}
|
|
func (m *CommitHydratedManifestsRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *CommitHydratedManifestsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_CommitHydratedManifestsRequest.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *CommitHydratedManifestsRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_CommitHydratedManifestsRequest.Merge(m, src)
|
|
}
|
|
func (m *CommitHydratedManifestsRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *CommitHydratedManifestsRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_CommitHydratedManifestsRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_CommitHydratedManifestsRequest proto.InternalMessageInfo
|
|
|
|
func (m *CommitHydratedManifestsRequest) GetRepo() *v1alpha1.Repository {
|
|
if m != nil {
|
|
return m.Repo
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *CommitHydratedManifestsRequest) GetSyncBranch() string {
|
|
if m != nil {
|
|
return m.SyncBranch
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *CommitHydratedManifestsRequest) GetTargetBranch() string {
|
|
if m != nil {
|
|
return m.TargetBranch
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *CommitHydratedManifestsRequest) GetDrySha() string {
|
|
if m != nil {
|
|
return m.DrySha
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *CommitHydratedManifestsRequest) GetCommitMessage() string {
|
|
if m != nil {
|
|
return m.CommitMessage
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *CommitHydratedManifestsRequest) GetPaths() []*PathDetails {
|
|
if m != nil {
|
|
return m.Paths
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *CommitHydratedManifestsRequest) GetDryCommitMetadata() *v1alpha1.RevisionMetadata {
|
|
if m != nil {
|
|
return m.DryCommitMetadata
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *CommitHydratedManifestsRequest) GetAuthorName() string {
|
|
if m != nil {
|
|
return m.AuthorName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *CommitHydratedManifestsRequest) GetAuthorEmail() string {
|
|
if m != nil {
|
|
return m.AuthorEmail
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *CommitHydratedManifestsRequest) GetReadmeMessage() string {
|
|
if m != nil {
|
|
return m.ReadmeMessage
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// PathDetails holds information about hydrated manifests to be written to a particular path in the hydrated manifests
|
|
// commit.
|
|
type PathDetails struct {
|
|
// Path is the path to write the hydrated manifests to.
|
|
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
|
|
// Manifests contains the manifests to write to the path.
|
|
Manifests []*HydratedManifestDetails `protobuf:"bytes,2,rep,name=manifests,proto3" json:"manifests,omitempty"`
|
|
// Commands contains the commands executed when hydrating the manifests.
|
|
Commands []string `protobuf:"bytes,3,rep,name=commands,proto3" json:"commands,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *PathDetails) Reset() { *m = PathDetails{} }
|
|
func (m *PathDetails) String() string { return proto.CompactTextString(m) }
|
|
func (*PathDetails) ProtoMessage() {}
|
|
func (*PathDetails) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_cf3a3abbc35e3069, []int{1}
|
|
}
|
|
func (m *PathDetails) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *PathDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_PathDetails.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *PathDetails) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_PathDetails.Merge(m, src)
|
|
}
|
|
func (m *PathDetails) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *PathDetails) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_PathDetails.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_PathDetails proto.InternalMessageInfo
|
|
|
|
func (m *PathDetails) GetPath() string {
|
|
if m != nil {
|
|
return m.Path
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *PathDetails) GetManifests() []*HydratedManifestDetails {
|
|
if m != nil {
|
|
return m.Manifests
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *PathDetails) GetCommands() []string {
|
|
if m != nil {
|
|
return m.Commands
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// ManifestDetails contains the hydrated manifests.
|
|
type HydratedManifestDetails struct {
|
|
// ManifestJSON is the hydrated manifest as JSON.
|
|
ManifestJSON string `protobuf:"bytes,1,opt,name=manifestJSON,proto3" json:"manifestJSON,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *HydratedManifestDetails) Reset() { *m = HydratedManifestDetails{} }
|
|
func (m *HydratedManifestDetails) String() string { return proto.CompactTextString(m) }
|
|
func (*HydratedManifestDetails) ProtoMessage() {}
|
|
func (*HydratedManifestDetails) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_cf3a3abbc35e3069, []int{2}
|
|
}
|
|
func (m *HydratedManifestDetails) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *HydratedManifestDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_HydratedManifestDetails.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *HydratedManifestDetails) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_HydratedManifestDetails.Merge(m, src)
|
|
}
|
|
func (m *HydratedManifestDetails) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *HydratedManifestDetails) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_HydratedManifestDetails.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_HydratedManifestDetails proto.InternalMessageInfo
|
|
|
|
func (m *HydratedManifestDetails) GetManifestJSON() string {
|
|
if m != nil {
|
|
return m.ManifestJSON
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// ManifestsResponse is the response to the ManifestsRequest.
|
|
type CommitHydratedManifestsResponse struct {
|
|
// HydratedSha is the commit SHA of the hydrated manifests commit.
|
|
HydratedSha string `protobuf:"bytes,1,opt,name=hydratedSha,proto3" json:"hydratedSha,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *CommitHydratedManifestsResponse) Reset() { *m = CommitHydratedManifestsResponse{} }
|
|
func (m *CommitHydratedManifestsResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*CommitHydratedManifestsResponse) ProtoMessage() {}
|
|
func (*CommitHydratedManifestsResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_cf3a3abbc35e3069, []int{3}
|
|
}
|
|
func (m *CommitHydratedManifestsResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *CommitHydratedManifestsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_CommitHydratedManifestsResponse.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *CommitHydratedManifestsResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_CommitHydratedManifestsResponse.Merge(m, src)
|
|
}
|
|
func (m *CommitHydratedManifestsResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *CommitHydratedManifestsResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_CommitHydratedManifestsResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_CommitHydratedManifestsResponse proto.InternalMessageInfo
|
|
|
|
func (m *CommitHydratedManifestsResponse) GetHydratedSha() string {
|
|
if m != nil {
|
|
return m.HydratedSha
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*CommitHydratedManifestsRequest)(nil), "CommitHydratedManifestsRequest")
|
|
proto.RegisterType((*PathDetails)(nil), "PathDetails")
|
|
proto.RegisterType((*HydratedManifestDetails)(nil), "HydratedManifestDetails")
|
|
proto.RegisterType((*CommitHydratedManifestsResponse)(nil), "CommitHydratedManifestsResponse")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("commitserver/commit/commit.proto", fileDescriptor_cf3a3abbc35e3069) }
|
|
|
|
var fileDescriptor_cf3a3abbc35e3069 = []byte{
|
|
// 509 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0x41, 0x6f, 0xd3, 0x30,
|
|
0x14, 0xc7, 0x95, 0xb5, 0x2b, 0xab, 0xbb, 0x1d, 0xf0, 0x81, 0x59, 0x3d, 0x74, 0x51, 0xc4, 0xa1,
|
|
0x07, 0xe4, 0x68, 0x45, 0xe2, 0x80, 0x84, 0x90, 0x56, 0x26, 0x21, 0xa4, 0x0d, 0x94, 0xde, 0x10,
|
|
0x97, 0xb7, 0xe4, 0x91, 0x58, 0x6b, 0x6c, 0x63, 0xbb, 0x95, 0xca, 0x27, 0xe4, 0xc8, 0x47, 0x40,
|
|
0xfd, 0x14, 0x1c, 0x51, 0x9c, 0x84, 0x36, 0x40, 0x41, 0xe2, 0xd4, 0xbe, 0xff, 0x7b, 0xf9, 0x3f,
|
|
0xfb, 0xe7, 0xf7, 0x48, 0x98, 0xaa, 0xb2, 0x14, 0xce, 0xa2, 0x59, 0xa3, 0x89, 0xeb, 0xa0, 0xf9,
|
|
0xe1, 0xda, 0x28, 0xa7, 0xc6, 0xf3, 0x5c, 0xb8, 0x62, 0x75, 0xc7, 0x53, 0x55, 0xc6, 0x05, 0xc8,
|
|
0xcf, 0x0a, 0x44, 0x9c, 0x66, 0xb1, 0xbe, 0xcf, 0x63, 0xd0, 0xc2, 0xc6, 0xa0, 0xf5, 0x52, 0xa4,
|
|
0xe0, 0x84, 0x92, 0xf1, 0xfa, 0x12, 0x96, 0xba, 0x80, 0xcb, 0x38, 0x47, 0x89, 0x06, 0x1c, 0x66,
|
|
0xb5, 0x49, 0xf4, 0xbd, 0x47, 0x26, 0x73, 0xef, 0xfa, 0x7a, 0x93, 0xf9, 0xc4, 0x0d, 0x48, 0xf1,
|
|
0x11, 0xad, 0xb3, 0x09, 0x7e, 0x5a, 0xa1, 0x75, 0x74, 0x41, 0xfa, 0x06, 0xb5, 0x62, 0x41, 0x18,
|
|
0x4c, 0x47, 0xb3, 0x97, 0x7c, 0xd7, 0x96, 0x37, 0x6d, 0x79, 0x9a, 0x71, 0x7d, 0x9f, 0xf3, 0xaa,
|
|
0x2d, 0xdf, 0x6b, 0xcb, 0xdb, 0xb6, 0x3c, 0x41, 0xad, 0xac, 0x70, 0xca, 0x6c, 0x12, 0x6f, 0x46,
|
|
0x27, 0x84, 0xd8, 0x8d, 0x4c, 0xaf, 0x0c, 0xc8, 0xb4, 0x60, 0x47, 0x61, 0x30, 0x1d, 0x26, 0x7b,
|
|
0x0a, 0x8d, 0xc8, 0xa9, 0x03, 0x93, 0xa3, 0x6b, 0x2a, 0x7a, 0xbe, 0xa2, 0xa3, 0xd1, 0x47, 0x64,
|
|
0x90, 0x99, 0xcd, 0xa2, 0x00, 0xd6, 0xf7, 0xd9, 0x26, 0xa2, 0x8f, 0xc9, 0x59, 0x0d, 0xea, 0x06,
|
|
0xad, 0x85, 0x1c, 0xd9, 0xb1, 0x4f, 0x77, 0x45, 0x1a, 0x91, 0x63, 0x0d, 0xae, 0xb0, 0x6c, 0x10,
|
|
0xf6, 0xa6, 0xa3, 0xd9, 0x29, 0x7f, 0x07, 0xae, 0x78, 0x85, 0x0e, 0xc4, 0xd2, 0x26, 0x75, 0x8a,
|
|
0x5a, 0xf2, 0x30, 0x33, 0x9b, 0x79, 0xf3, 0x9d, 0x83, 0x0c, 0x1c, 0xb0, 0x07, 0x9e, 0xc3, 0xf5,
|
|
0x7f, 0x72, 0x58, 0x0b, 0x2b, 0x94, 0x6c, 0xcd, 0x92, 0xdf, 0xfd, 0x2b, 0x34, 0xb0, 0x72, 0x85,
|
|
0x32, 0xb7, 0x50, 0x22, 0x3b, 0xa9, 0xd1, 0xec, 0x14, 0x1a, 0x92, 0x51, 0x1d, 0x5d, 0x97, 0x20,
|
|
0x96, 0x6c, 0xe8, 0x0b, 0xf6, 0xa5, 0x0a, 0x80, 0x41, 0xc8, 0x4a, 0x6c, 0x01, 0x90, 0x1a, 0x40,
|
|
0x47, 0x8c, 0x56, 0x64, 0xb4, 0x77, 0x65, 0x4a, 0x49, 0xbf, 0xba, 0xb4, 0x7f, 0xe6, 0x61, 0xe2,
|
|
0xff, 0xd3, 0x67, 0x64, 0x58, 0xb6, 0xe3, 0xc0, 0x8e, 0x3c, 0x27, 0xc6, 0x7f, 0x1d, 0x94, 0x96,
|
|
0xd9, 0xae, 0x94, 0x8e, 0xc9, 0x49, 0x05, 0x1b, 0x64, 0x66, 0x59, 0x2f, 0xec, 0x4d, 0x87, 0xc9,
|
|
0xcf, 0x38, 0x7a, 0x41, 0xce, 0x0f, 0x38, 0x54, 0x8f, 0xde, 0x7a, 0xbc, 0x59, 0xbc, 0xbd, 0x6d,
|
|
0x8e, 0xd2, 0xd1, 0xa2, 0x39, 0xb9, 0x38, 0x38, 0xaf, 0x56, 0x2b, 0x69, 0x3d, 0xa0, 0xa2, 0x49,
|
|
0x56, 0xc3, 0x51, 0xbb, 0xec, 0x4b, 0xb3, 0x92, 0x9c, 0xd5, 0x26, 0x0b, 0x34, 0x6b, 0x91, 0x22,
|
|
0xfd, 0x40, 0xce, 0x0f, 0xb8, 0xd2, 0x0b, 0xfe, 0xf7, 0xfd, 0x18, 0x87, 0xfc, 0x1f, 0x07, 0xba,
|
|
0x7a, 0xfe, 0x65, 0x3b, 0x09, 0xbe, 0x6e, 0x27, 0xc1, 0xb7, 0xed, 0x24, 0x78, 0xff, 0xe4, 0xcf,
|
|
0x7b, 0xdb, 0xd9, 0x77, 0xd0, 0x22, 0x5d, 0x0a, 0x94, 0xee, 0x6e, 0xe0, 0xf7, 0xf4, 0xe9, 0x8f,
|
|
0x00, 0x00, 0x00, 0xff, 0xff, 0xd0, 0x9b, 0x0c, 0x10, 0x10, 0x04, 0x00, 0x00,
|
|
}
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ context.Context
|
|
var _ grpc.ClientConn
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the grpc package it is being compiled against.
|
|
const _ = grpc.SupportPackageIsVersion4
|
|
|
|
// CommitServiceClient is the client API for CommitService service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type CommitServiceClient interface {
|
|
// Commit commits hydrated manifests to a repository.
|
|
CommitHydratedManifests(ctx context.Context, in *CommitHydratedManifestsRequest, opts ...grpc.CallOption) (*CommitHydratedManifestsResponse, error)
|
|
}
|
|
|
|
type commitServiceClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewCommitServiceClient(cc *grpc.ClientConn) CommitServiceClient {
|
|
return &commitServiceClient{cc}
|
|
}
|
|
|
|
func (c *commitServiceClient) CommitHydratedManifests(ctx context.Context, in *CommitHydratedManifestsRequest, opts ...grpc.CallOption) (*CommitHydratedManifestsResponse, error) {
|
|
out := new(CommitHydratedManifestsResponse)
|
|
err := c.cc.Invoke(ctx, "/CommitService/CommitHydratedManifests", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// CommitServiceServer is the server API for CommitService service.
|
|
type CommitServiceServer interface {
|
|
// Commit commits hydrated manifests to a repository.
|
|
CommitHydratedManifests(context.Context, *CommitHydratedManifestsRequest) (*CommitHydratedManifestsResponse, error)
|
|
}
|
|
|
|
// UnimplementedCommitServiceServer can be embedded to have forward compatible implementations.
|
|
type UnimplementedCommitServiceServer struct {
|
|
}
|
|
|
|
func (*UnimplementedCommitServiceServer) CommitHydratedManifests(ctx context.Context, req *CommitHydratedManifestsRequest) (*CommitHydratedManifestsResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method CommitHydratedManifests not implemented")
|
|
}
|
|
|
|
func RegisterCommitServiceServer(s *grpc.Server, srv CommitServiceServer) {
|
|
s.RegisterService(&_CommitService_serviceDesc, srv)
|
|
}
|
|
|
|
func _CommitService_CommitHydratedManifests_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(CommitHydratedManifestsRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(CommitServiceServer).CommitHydratedManifests(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/CommitService/CommitHydratedManifests",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(CommitServiceServer).CommitHydratedManifests(ctx, req.(*CommitHydratedManifestsRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _CommitService_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "CommitService",
|
|
HandlerType: (*CommitServiceServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "CommitHydratedManifests",
|
|
Handler: _CommitService_CommitHydratedManifests_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "commitserver/commit/commit.proto",
|
|
}
|
|
|
|
func (m *CommitHydratedManifestsRequest) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *CommitHydratedManifestsRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *CommitHydratedManifestsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.XXX_unrecognized != nil {
|
|
i -= len(m.XXX_unrecognized)
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
}
|
|
if len(m.ReadmeMessage) > 0 {
|
|
i -= len(m.ReadmeMessage)
|
|
copy(dAtA[i:], m.ReadmeMessage)
|
|
i = encodeVarintCommit(dAtA, i, uint64(len(m.ReadmeMessage)))
|
|
i--
|
|
dAtA[i] = 0x52
|
|
}
|
|
if len(m.AuthorEmail) > 0 {
|
|
i -= len(m.AuthorEmail)
|
|
copy(dAtA[i:], m.AuthorEmail)
|
|
i = encodeVarintCommit(dAtA, i, uint64(len(m.AuthorEmail)))
|
|
i--
|
|
dAtA[i] = 0x4a
|
|
}
|
|
if len(m.AuthorName) > 0 {
|
|
i -= len(m.AuthorName)
|
|
copy(dAtA[i:], m.AuthorName)
|
|
i = encodeVarintCommit(dAtA, i, uint64(len(m.AuthorName)))
|
|
i--
|
|
dAtA[i] = 0x42
|
|
}
|
|
if m.DryCommitMetadata != nil {
|
|
{
|
|
size, err := m.DryCommitMetadata.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintCommit(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x3a
|
|
}
|
|
if len(m.Paths) > 0 {
|
|
for iNdEx := len(m.Paths) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.Paths[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintCommit(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x32
|
|
}
|
|
}
|
|
if len(m.CommitMessage) > 0 {
|
|
i -= len(m.CommitMessage)
|
|
copy(dAtA[i:], m.CommitMessage)
|
|
i = encodeVarintCommit(dAtA, i, uint64(len(m.CommitMessage)))
|
|
i--
|
|
dAtA[i] = 0x2a
|
|
}
|
|
if len(m.DrySha) > 0 {
|
|
i -= len(m.DrySha)
|
|
copy(dAtA[i:], m.DrySha)
|
|
i = encodeVarintCommit(dAtA, i, uint64(len(m.DrySha)))
|
|
i--
|
|
dAtA[i] = 0x22
|
|
}
|
|
if len(m.TargetBranch) > 0 {
|
|
i -= len(m.TargetBranch)
|
|
copy(dAtA[i:], m.TargetBranch)
|
|
i = encodeVarintCommit(dAtA, i, uint64(len(m.TargetBranch)))
|
|
i--
|
|
dAtA[i] = 0x1a
|
|
}
|
|
if len(m.SyncBranch) > 0 {
|
|
i -= len(m.SyncBranch)
|
|
copy(dAtA[i:], m.SyncBranch)
|
|
i = encodeVarintCommit(dAtA, i, uint64(len(m.SyncBranch)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if m.Repo != nil {
|
|
{
|
|
size, err := m.Repo.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintCommit(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *PathDetails) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *PathDetails) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *PathDetails) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.XXX_unrecognized != nil {
|
|
i -= len(m.XXX_unrecognized)
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
}
|
|
if len(m.Commands) > 0 {
|
|
for iNdEx := len(m.Commands) - 1; iNdEx >= 0; iNdEx-- {
|
|
i -= len(m.Commands[iNdEx])
|
|
copy(dAtA[i:], m.Commands[iNdEx])
|
|
i = encodeVarintCommit(dAtA, i, uint64(len(m.Commands[iNdEx])))
|
|
i--
|
|
dAtA[i] = 0x1a
|
|
}
|
|
}
|
|
if len(m.Manifests) > 0 {
|
|
for iNdEx := len(m.Manifests) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.Manifests[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintCommit(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
}
|
|
if len(m.Path) > 0 {
|
|
i -= len(m.Path)
|
|
copy(dAtA[i:], m.Path)
|
|
i = encodeVarintCommit(dAtA, i, uint64(len(m.Path)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *HydratedManifestDetails) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *HydratedManifestDetails) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *HydratedManifestDetails) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.XXX_unrecognized != nil {
|
|
i -= len(m.XXX_unrecognized)
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
}
|
|
if len(m.ManifestJSON) > 0 {
|
|
i -= len(m.ManifestJSON)
|
|
copy(dAtA[i:], m.ManifestJSON)
|
|
i = encodeVarintCommit(dAtA, i, uint64(len(m.ManifestJSON)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *CommitHydratedManifestsResponse) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *CommitHydratedManifestsResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *CommitHydratedManifestsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.XXX_unrecognized != nil {
|
|
i -= len(m.XXX_unrecognized)
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
}
|
|
if len(m.HydratedSha) > 0 {
|
|
i -= len(m.HydratedSha)
|
|
copy(dAtA[i:], m.HydratedSha)
|
|
i = encodeVarintCommit(dAtA, i, uint64(len(m.HydratedSha)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func encodeVarintCommit(dAtA []byte, offset int, v uint64) int {
|
|
offset -= sovCommit(v)
|
|
base := offset
|
|
for v >= 1<<7 {
|
|
dAtA[offset] = uint8(v&0x7f | 0x80)
|
|
v >>= 7
|
|
offset++
|
|
}
|
|
dAtA[offset] = uint8(v)
|
|
return base
|
|
}
|
|
func (m *CommitHydratedManifestsRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.Repo != nil {
|
|
l = m.Repo.Size()
|
|
n += 1 + l + sovCommit(uint64(l))
|
|
}
|
|
l = len(m.SyncBranch)
|
|
if l > 0 {
|
|
n += 1 + l + sovCommit(uint64(l))
|
|
}
|
|
l = len(m.TargetBranch)
|
|
if l > 0 {
|
|
n += 1 + l + sovCommit(uint64(l))
|
|
}
|
|
l = len(m.DrySha)
|
|
if l > 0 {
|
|
n += 1 + l + sovCommit(uint64(l))
|
|
}
|
|
l = len(m.CommitMessage)
|
|
if l > 0 {
|
|
n += 1 + l + sovCommit(uint64(l))
|
|
}
|
|
if len(m.Paths) > 0 {
|
|
for _, e := range m.Paths {
|
|
l = e.Size()
|
|
n += 1 + l + sovCommit(uint64(l))
|
|
}
|
|
}
|
|
if m.DryCommitMetadata != nil {
|
|
l = m.DryCommitMetadata.Size()
|
|
n += 1 + l + sovCommit(uint64(l))
|
|
}
|
|
l = len(m.AuthorName)
|
|
if l > 0 {
|
|
n += 1 + l + sovCommit(uint64(l))
|
|
}
|
|
l = len(m.AuthorEmail)
|
|
if l > 0 {
|
|
n += 1 + l + sovCommit(uint64(l))
|
|
}
|
|
l = len(m.ReadmeMessage)
|
|
if l > 0 {
|
|
n += 1 + l + sovCommit(uint64(l))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *PathDetails) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Path)
|
|
if l > 0 {
|
|
n += 1 + l + sovCommit(uint64(l))
|
|
}
|
|
if len(m.Manifests) > 0 {
|
|
for _, e := range m.Manifests {
|
|
l = e.Size()
|
|
n += 1 + l + sovCommit(uint64(l))
|
|
}
|
|
}
|
|
if len(m.Commands) > 0 {
|
|
for _, s := range m.Commands {
|
|
l = len(s)
|
|
n += 1 + l + sovCommit(uint64(l))
|
|
}
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *HydratedManifestDetails) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.ManifestJSON)
|
|
if l > 0 {
|
|
n += 1 + l + sovCommit(uint64(l))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *CommitHydratedManifestsResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.HydratedSha)
|
|
if l > 0 {
|
|
n += 1 + l + sovCommit(uint64(l))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func sovCommit(x uint64) (n int) {
|
|
return (math_bits.Len64(x|1) + 6) / 7
|
|
}
|
|
func sozCommit(x uint64) (n int) {
|
|
return sovCommit(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
|
}
|
|
func (m *CommitHydratedManifestsRequest) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowCommit
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: CommitHydratedManifestsRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: CommitHydratedManifestsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Repo", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowCommit
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthCommit
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthCommit
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Repo == nil {
|
|
m.Repo = &v1alpha1.Repository{}
|
|
}
|
|
if err := m.Repo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field SyncBranch", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowCommit
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthCommit
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthCommit
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.SyncBranch = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field TargetBranch", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowCommit
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthCommit
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthCommit
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.TargetBranch = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 4:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field DrySha", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowCommit
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthCommit
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthCommit
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.DrySha = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 5:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field CommitMessage", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowCommit
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthCommit
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthCommit
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.CommitMessage = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 6:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Paths", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowCommit
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthCommit
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthCommit
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Paths = append(m.Paths, &PathDetails{})
|
|
if err := m.Paths[len(m.Paths)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 7:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field DryCommitMetadata", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowCommit
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthCommit
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthCommit
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.DryCommitMetadata == nil {
|
|
m.DryCommitMetadata = &v1alpha1.RevisionMetadata{}
|
|
}
|
|
if err := m.DryCommitMetadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 8:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field AuthorName", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowCommit
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthCommit
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthCommit
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.AuthorName = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 9:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field AuthorEmail", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowCommit
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthCommit
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthCommit
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.AuthorEmail = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 10:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ReadmeMessage", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowCommit
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthCommit
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthCommit
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.ReadmeMessage = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipCommit(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthCommit
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *PathDetails) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowCommit
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: PathDetails: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: PathDetails: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowCommit
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthCommit
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthCommit
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Path = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Manifests", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowCommit
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthCommit
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthCommit
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Manifests = append(m.Manifests, &HydratedManifestDetails{})
|
|
if err := m.Manifests[len(m.Manifests)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Commands", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowCommit
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthCommit
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthCommit
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Commands = append(m.Commands, string(dAtA[iNdEx:postIndex]))
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipCommit(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthCommit
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *HydratedManifestDetails) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowCommit
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: HydratedManifestDetails: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: HydratedManifestDetails: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ManifestJSON", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowCommit
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthCommit
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthCommit
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.ManifestJSON = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipCommit(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthCommit
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *CommitHydratedManifestsResponse) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowCommit
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: CommitHydratedManifestsResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: CommitHydratedManifestsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field HydratedSha", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowCommit
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthCommit
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthCommit
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.HydratedSha = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipCommit(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthCommit
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func skipCommit(dAtA []byte) (n int, err error) {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
depth := 0
|
|
for iNdEx < l {
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return 0, ErrIntOverflowCommit
|
|
}
|
|
if iNdEx >= l {
|
|
return 0, io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
wireType := int(wire & 0x7)
|
|
switch wireType {
|
|
case 0:
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return 0, ErrIntOverflowCommit
|
|
}
|
|
if iNdEx >= l {
|
|
return 0, io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx++
|
|
if dAtA[iNdEx-1] < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 1:
|
|
iNdEx += 8
|
|
case 2:
|
|
var length int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return 0, ErrIntOverflowCommit
|
|
}
|
|
if iNdEx >= l {
|
|
return 0, io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
length |= (int(b) & 0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if length < 0 {
|
|
return 0, ErrInvalidLengthCommit
|
|
}
|
|
iNdEx += length
|
|
case 3:
|
|
depth++
|
|
case 4:
|
|
if depth == 0 {
|
|
return 0, ErrUnexpectedEndOfGroupCommit
|
|
}
|
|
depth--
|
|
case 5:
|
|
iNdEx += 4
|
|
default:
|
|
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
|
}
|
|
if iNdEx < 0 {
|
|
return 0, ErrInvalidLengthCommit
|
|
}
|
|
if depth == 0 {
|
|
return iNdEx, nil
|
|
}
|
|
}
|
|
return 0, io.ErrUnexpectedEOF
|
|
}
|
|
|
|
var (
|
|
ErrInvalidLengthCommit = fmt.Errorf("proto: negative length found during unmarshaling")
|
|
ErrIntOverflowCommit = fmt.Errorf("proto: integer overflow")
|
|
ErrUnexpectedEndOfGroupCommit = fmt.Errorf("proto: unexpected end of group")
|
|
)
|