mirror of
https://github.com/argoproj/argo-cd
synced 2026-04-21 17:07:16 +00:00
3218 lines
87 KiB
Go
3218 lines
87 KiB
Go
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
// source: server/project/project.proto
|
|
|
|
// Project Service
|
|
//
|
|
// Project Service API performs CRUD actions against project resources
|
|
|
|
package project
|
|
|
|
import (
|
|
context "context"
|
|
fmt "fmt"
|
|
v1alpha1 "github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1"
|
|
_ "github.com/gogo/protobuf/gogoproto"
|
|
proto "github.com/gogo/protobuf/proto"
|
|
_ "google.golang.org/genproto/googleapis/api/annotations"
|
|
grpc "google.golang.org/grpc"
|
|
codes "google.golang.org/grpc/codes"
|
|
status "google.golang.org/grpc/status"
|
|
io "io"
|
|
v1 "k8s.io/api/core/v1"
|
|
_ "k8s.io/apimachinery/pkg/apis/meta/v1"
|
|
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
|
|
|
|
// ProjectCreateRequest defines project creation parameters.
|
|
type ProjectCreateRequest struct {
|
|
Project *v1alpha1.AppProject `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
|
|
Upsert bool `protobuf:"varint,2,opt,name=upsert,proto3" json:"upsert,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ProjectCreateRequest) Reset() { *m = ProjectCreateRequest{} }
|
|
func (m *ProjectCreateRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*ProjectCreateRequest) ProtoMessage() {}
|
|
func (*ProjectCreateRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_5f0a51496972c9e2, []int{0}
|
|
}
|
|
func (m *ProjectCreateRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *ProjectCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_ProjectCreateRequest.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 *ProjectCreateRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ProjectCreateRequest.Merge(m, src)
|
|
}
|
|
func (m *ProjectCreateRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *ProjectCreateRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ProjectCreateRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ProjectCreateRequest proto.InternalMessageInfo
|
|
|
|
func (m *ProjectCreateRequest) GetProject() *v1alpha1.AppProject {
|
|
if m != nil {
|
|
return m.Project
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ProjectCreateRequest) GetUpsert() bool {
|
|
if m != nil {
|
|
return m.Upsert
|
|
}
|
|
return false
|
|
}
|
|
|
|
// ProjectTokenCreateRequest defines project token deletion parameters.
|
|
type ProjectTokenDeleteRequest struct {
|
|
Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
|
|
Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
|
|
Iat int64 `protobuf:"varint,3,opt,name=iat,proto3" json:"iat,omitempty"`
|
|
Id string `protobuf:"bytes,4,opt,name=id,proto3" json:"id,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ProjectTokenDeleteRequest) Reset() { *m = ProjectTokenDeleteRequest{} }
|
|
func (m *ProjectTokenDeleteRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*ProjectTokenDeleteRequest) ProtoMessage() {}
|
|
func (*ProjectTokenDeleteRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_5f0a51496972c9e2, []int{1}
|
|
}
|
|
func (m *ProjectTokenDeleteRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *ProjectTokenDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_ProjectTokenDeleteRequest.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 *ProjectTokenDeleteRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ProjectTokenDeleteRequest.Merge(m, src)
|
|
}
|
|
func (m *ProjectTokenDeleteRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *ProjectTokenDeleteRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ProjectTokenDeleteRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ProjectTokenDeleteRequest proto.InternalMessageInfo
|
|
|
|
func (m *ProjectTokenDeleteRequest) GetProject() string {
|
|
if m != nil {
|
|
return m.Project
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ProjectTokenDeleteRequest) GetRole() string {
|
|
if m != nil {
|
|
return m.Role
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ProjectTokenDeleteRequest) GetIat() int64 {
|
|
if m != nil {
|
|
return m.Iat
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *ProjectTokenDeleteRequest) GetId() string {
|
|
if m != nil {
|
|
return m.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// ProjectTokenCreateRequest defines project token creation parameters.
|
|
type ProjectTokenCreateRequest struct {
|
|
Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
|
|
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
|
|
Role string `protobuf:"bytes,3,opt,name=role,proto3" json:"role,omitempty"`
|
|
// expiresIn represents a duration in seconds
|
|
ExpiresIn int64 `protobuf:"varint,4,opt,name=expiresIn,proto3" json:"expiresIn,omitempty"`
|
|
Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ProjectTokenCreateRequest) Reset() { *m = ProjectTokenCreateRequest{} }
|
|
func (m *ProjectTokenCreateRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*ProjectTokenCreateRequest) ProtoMessage() {}
|
|
func (*ProjectTokenCreateRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_5f0a51496972c9e2, []int{2}
|
|
}
|
|
func (m *ProjectTokenCreateRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *ProjectTokenCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_ProjectTokenCreateRequest.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 *ProjectTokenCreateRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ProjectTokenCreateRequest.Merge(m, src)
|
|
}
|
|
func (m *ProjectTokenCreateRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *ProjectTokenCreateRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ProjectTokenCreateRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ProjectTokenCreateRequest proto.InternalMessageInfo
|
|
|
|
func (m *ProjectTokenCreateRequest) GetProject() string {
|
|
if m != nil {
|
|
return m.Project
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ProjectTokenCreateRequest) GetDescription() string {
|
|
if m != nil {
|
|
return m.Description
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ProjectTokenCreateRequest) GetRole() string {
|
|
if m != nil {
|
|
return m.Role
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ProjectTokenCreateRequest) GetExpiresIn() int64 {
|
|
if m != nil {
|
|
return m.ExpiresIn
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *ProjectTokenCreateRequest) GetId() string {
|
|
if m != nil {
|
|
return m.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// ProjectTokenResponse wraps the created token or returns an empty string if deleted.
|
|
type ProjectTokenResponse struct {
|
|
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ProjectTokenResponse) Reset() { *m = ProjectTokenResponse{} }
|
|
func (m *ProjectTokenResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*ProjectTokenResponse) ProtoMessage() {}
|
|
func (*ProjectTokenResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_5f0a51496972c9e2, []int{3}
|
|
}
|
|
func (m *ProjectTokenResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *ProjectTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_ProjectTokenResponse.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 *ProjectTokenResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ProjectTokenResponse.Merge(m, src)
|
|
}
|
|
func (m *ProjectTokenResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *ProjectTokenResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ProjectTokenResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ProjectTokenResponse proto.InternalMessageInfo
|
|
|
|
func (m *ProjectTokenResponse) GetToken() string {
|
|
if m != nil {
|
|
return m.Token
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// ProjectQuery is a query for Project resources
|
|
type ProjectQuery struct {
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ProjectQuery) Reset() { *m = ProjectQuery{} }
|
|
func (m *ProjectQuery) String() string { return proto.CompactTextString(m) }
|
|
func (*ProjectQuery) ProtoMessage() {}
|
|
func (*ProjectQuery) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_5f0a51496972c9e2, []int{4}
|
|
}
|
|
func (m *ProjectQuery) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *ProjectQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_ProjectQuery.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 *ProjectQuery) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ProjectQuery.Merge(m, src)
|
|
}
|
|
func (m *ProjectQuery) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *ProjectQuery) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ProjectQuery.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ProjectQuery proto.InternalMessageInfo
|
|
|
|
func (m *ProjectQuery) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ProjectUpdateRequest struct {
|
|
Project *v1alpha1.AppProject `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ProjectUpdateRequest) Reset() { *m = ProjectUpdateRequest{} }
|
|
func (m *ProjectUpdateRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*ProjectUpdateRequest) ProtoMessage() {}
|
|
func (*ProjectUpdateRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_5f0a51496972c9e2, []int{5}
|
|
}
|
|
func (m *ProjectUpdateRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *ProjectUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_ProjectUpdateRequest.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 *ProjectUpdateRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ProjectUpdateRequest.Merge(m, src)
|
|
}
|
|
func (m *ProjectUpdateRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *ProjectUpdateRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ProjectUpdateRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ProjectUpdateRequest proto.InternalMessageInfo
|
|
|
|
func (m *ProjectUpdateRequest) GetProject() *v1alpha1.AppProject {
|
|
if m != nil {
|
|
return m.Project
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type EmptyResponse struct {
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *EmptyResponse) Reset() { *m = EmptyResponse{} }
|
|
func (m *EmptyResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*EmptyResponse) ProtoMessage() {}
|
|
func (*EmptyResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_5f0a51496972c9e2, []int{6}
|
|
}
|
|
func (m *EmptyResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *EmptyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_EmptyResponse.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 *EmptyResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_EmptyResponse.Merge(m, src)
|
|
}
|
|
func (m *EmptyResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *EmptyResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_EmptyResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_EmptyResponse proto.InternalMessageInfo
|
|
|
|
type SyncWindowsQuery struct {
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *SyncWindowsQuery) Reset() { *m = SyncWindowsQuery{} }
|
|
func (m *SyncWindowsQuery) String() string { return proto.CompactTextString(m) }
|
|
func (*SyncWindowsQuery) ProtoMessage() {}
|
|
func (*SyncWindowsQuery) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_5f0a51496972c9e2, []int{7}
|
|
}
|
|
func (m *SyncWindowsQuery) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *SyncWindowsQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_SyncWindowsQuery.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 *SyncWindowsQuery) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_SyncWindowsQuery.Merge(m, src)
|
|
}
|
|
func (m *SyncWindowsQuery) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *SyncWindowsQuery) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_SyncWindowsQuery.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_SyncWindowsQuery proto.InternalMessageInfo
|
|
|
|
func (m *SyncWindowsQuery) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SyncWindowsResponse struct {
|
|
Windows []*v1alpha1.SyncWindow `protobuf:"bytes,1,rep,name=windows,proto3" json:"windows,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *SyncWindowsResponse) Reset() { *m = SyncWindowsResponse{} }
|
|
func (m *SyncWindowsResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*SyncWindowsResponse) ProtoMessage() {}
|
|
func (*SyncWindowsResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_5f0a51496972c9e2, []int{8}
|
|
}
|
|
func (m *SyncWindowsResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *SyncWindowsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_SyncWindowsResponse.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 *SyncWindowsResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_SyncWindowsResponse.Merge(m, src)
|
|
}
|
|
func (m *SyncWindowsResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *SyncWindowsResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_SyncWindowsResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_SyncWindowsResponse proto.InternalMessageInfo
|
|
|
|
func (m *SyncWindowsResponse) GetWindows() []*v1alpha1.SyncWindow {
|
|
if m != nil {
|
|
return m.Windows
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GlobalProjectsResponse struct {
|
|
Items []*v1alpha1.AppProject `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *GlobalProjectsResponse) Reset() { *m = GlobalProjectsResponse{} }
|
|
func (m *GlobalProjectsResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*GlobalProjectsResponse) ProtoMessage() {}
|
|
func (*GlobalProjectsResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_5f0a51496972c9e2, []int{9}
|
|
}
|
|
func (m *GlobalProjectsResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *GlobalProjectsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_GlobalProjectsResponse.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 *GlobalProjectsResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_GlobalProjectsResponse.Merge(m, src)
|
|
}
|
|
func (m *GlobalProjectsResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *GlobalProjectsResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_GlobalProjectsResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_GlobalProjectsResponse proto.InternalMessageInfo
|
|
|
|
func (m *GlobalProjectsResponse) GetItems() []*v1alpha1.AppProject {
|
|
if m != nil {
|
|
return m.Items
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DetailedProjectsResponse struct {
|
|
GlobalProjects []*v1alpha1.AppProject `protobuf:"bytes,1,rep,name=globalProjects,proto3" json:"globalProjects,omitempty"`
|
|
Project *v1alpha1.AppProject `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
|
|
Repositories []*v1alpha1.Repository `protobuf:"bytes,3,rep,name=repositories,proto3" json:"repositories,omitempty"`
|
|
Clusters []*v1alpha1.Cluster `protobuf:"bytes,4,rep,name=clusters,proto3" json:"clusters,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *DetailedProjectsResponse) Reset() { *m = DetailedProjectsResponse{} }
|
|
func (m *DetailedProjectsResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*DetailedProjectsResponse) ProtoMessage() {}
|
|
func (*DetailedProjectsResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_5f0a51496972c9e2, []int{10}
|
|
}
|
|
func (m *DetailedProjectsResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *DetailedProjectsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_DetailedProjectsResponse.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 *DetailedProjectsResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_DetailedProjectsResponse.Merge(m, src)
|
|
}
|
|
func (m *DetailedProjectsResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *DetailedProjectsResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_DetailedProjectsResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_DetailedProjectsResponse proto.InternalMessageInfo
|
|
|
|
func (m *DetailedProjectsResponse) GetGlobalProjects() []*v1alpha1.AppProject {
|
|
if m != nil {
|
|
return m.GlobalProjects
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *DetailedProjectsResponse) GetProject() *v1alpha1.AppProject {
|
|
if m != nil {
|
|
return m.Project
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *DetailedProjectsResponse) GetRepositories() []*v1alpha1.Repository {
|
|
if m != nil {
|
|
return m.Repositories
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *DetailedProjectsResponse) GetClusters() []*v1alpha1.Cluster {
|
|
if m != nil {
|
|
return m.Clusters
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*ProjectCreateRequest)(nil), "project.ProjectCreateRequest")
|
|
proto.RegisterType((*ProjectTokenDeleteRequest)(nil), "project.ProjectTokenDeleteRequest")
|
|
proto.RegisterType((*ProjectTokenCreateRequest)(nil), "project.ProjectTokenCreateRequest")
|
|
proto.RegisterType((*ProjectTokenResponse)(nil), "project.ProjectTokenResponse")
|
|
proto.RegisterType((*ProjectQuery)(nil), "project.ProjectQuery")
|
|
proto.RegisterType((*ProjectUpdateRequest)(nil), "project.ProjectUpdateRequest")
|
|
proto.RegisterType((*EmptyResponse)(nil), "project.EmptyResponse")
|
|
proto.RegisterType((*SyncWindowsQuery)(nil), "project.SyncWindowsQuery")
|
|
proto.RegisterType((*SyncWindowsResponse)(nil), "project.SyncWindowsResponse")
|
|
proto.RegisterType((*GlobalProjectsResponse)(nil), "project.GlobalProjectsResponse")
|
|
proto.RegisterType((*DetailedProjectsResponse)(nil), "project.DetailedProjectsResponse")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("server/project/project.proto", fileDescriptor_5f0a51496972c9e2) }
|
|
|
|
var fileDescriptor_5f0a51496972c9e2 = []byte{
|
|
// 977 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x97, 0xcf, 0x6f, 0x23, 0x35,
|
|
0x14, 0xc7, 0x35, 0x49, 0x9b, 0xdd, 0x3a, 0x4b, 0x29, 0xde, 0x6e, 0x99, 0x86, 0x6e, 0x37, 0x18,
|
|
0x51, 0x45, 0x85, 0x7a, 0xd4, 0x74, 0x91, 0x56, 0x70, 0x62, 0x77, 0xab, 0x80, 0xd4, 0x03, 0x4c,
|
|
0x41, 0x20, 0x0e, 0x20, 0x67, 0xe6, 0x29, 0x75, 0x33, 0x19, 0x0f, 0x63, 0x27, 0xdb, 0x10, 0xf5,
|
|
0x82, 0x04, 0x48, 0x1c, 0x38, 0xc0, 0x89, 0x7f, 0x80, 0x13, 0xff, 0x04, 0x37, 0x8e, 0x48, 0xfc,
|
|
0x03, 0xa8, 0xe2, 0x0f, 0x41, 0xf6, 0xfc, 0x48, 0x26, 0xe9, 0x20, 0x50, 0x03, 0xa7, 0x78, 0xde,
|
|
0xbc, 0x79, 0xdf, 0xcf, 0x7b, 0xb6, 0x9f, 0x1d, 0xb4, 0x23, 0x21, 0x1e, 0x41, 0xec, 0x44, 0xb1,
|
|
0x38, 0x07, 0x4f, 0x65, 0xbf, 0x34, 0x8a, 0x85, 0x12, 0xf8, 0x56, 0xfa, 0xd8, 0xd8, 0xec, 0x89,
|
|
0x9e, 0x30, 0x36, 0x47, 0x8f, 0x92, 0xd7, 0x8d, 0x9d, 0x9e, 0x10, 0xbd, 0x00, 0x1c, 0x16, 0x71,
|
|
0x87, 0x85, 0xa1, 0x50, 0x4c, 0x71, 0x11, 0xca, 0xf4, 0x2d, 0xe9, 0x3f, 0x92, 0x94, 0x0b, 0xf3,
|
|
0xd6, 0x13, 0x31, 0x38, 0xa3, 0x43, 0xa7, 0x07, 0x21, 0xc4, 0x4c, 0x81, 0x9f, 0xfa, 0x3c, 0x9c,
|
|
0xfa, 0x0c, 0x98, 0x77, 0xc6, 0x43, 0x88, 0xc7, 0x4e, 0xd4, 0xef, 0x69, 0x83, 0x74, 0x06, 0xa0,
|
|
0xd8, 0x75, 0x5f, 0x9d, 0xf4, 0xb8, 0x3a, 0x1b, 0x76, 0xa9, 0x27, 0x06, 0x0e, 0x8b, 0x0d, 0xd8,
|
|
0xb9, 0x19, 0x1c, 0x78, 0xbe, 0x33, 0x6a, 0x4f, 0x03, 0xb0, 0x28, 0x0a, 0xb8, 0x67, 0xa8, 0x9c,
|
|
0xd1, 0x21, 0x0b, 0xa2, 0x33, 0xb6, 0x10, 0x8d, 0x7c, 0x6f, 0xa1, 0xcd, 0xf7, 0x92, 0x3c, 0x9f,
|
|
0xc4, 0xc0, 0x14, 0xb8, 0xf0, 0xf9, 0x10, 0xa4, 0xc2, 0x5d, 0x94, 0xe5, 0x6f, 0x5b, 0x4d, 0xab,
|
|
0x55, 0x6f, 0xbf, 0x43, 0xa7, 0xc2, 0x34, 0x13, 0x36, 0x83, 0xcf, 0x3c, 0x9f, 0x8e, 0xda, 0x34,
|
|
0xea, 0xf7, 0xa8, 0x16, 0xa6, 0x33, 0xc2, 0x34, 0x13, 0xa6, 0x6f, 0x47, 0x51, 0xaa, 0xe3, 0x66,
|
|
0x81, 0xf1, 0x16, 0xaa, 0x0d, 0x23, 0x09, 0xb1, 0xb2, 0x2b, 0x4d, 0xab, 0x75, 0xdb, 0x4d, 0x9f,
|
|
0x48, 0x1f, 0x6d, 0xa7, 0xbe, 0x1f, 0x88, 0x3e, 0x84, 0x4f, 0x21, 0x80, 0x29, 0x98, 0x5d, 0x04,
|
|
0x5b, 0x9b, 0x86, 0xc3, 0x68, 0x25, 0x16, 0x01, 0x98, 0x60, 0x6b, 0xae, 0x19, 0xe3, 0x0d, 0x54,
|
|
0xe5, 0x4c, 0xd9, 0xd5, 0xa6, 0xd5, 0xaa, 0xba, 0x7a, 0x88, 0xd7, 0x51, 0x85, 0xfb, 0xf6, 0x8a,
|
|
0xf1, 0xa9, 0x70, 0x9f, 0xfc, 0x68, 0x15, 0xd5, 0x8a, 0x65, 0x28, 0x57, 0x6b, 0xa2, 0xba, 0x0f,
|
|
0xd2, 0x8b, 0x79, 0xa4, 0x13, 0x4d, 0x45, 0x67, 0x4d, 0x39, 0x4f, 0x75, 0x86, 0x67, 0x07, 0xad,
|
|
0xc1, 0x45, 0xc4, 0x63, 0x90, 0xef, 0x86, 0x06, 0xa2, 0xea, 0x4e, 0x0d, 0x29, 0xdb, 0x6a, 0xce,
|
|
0xf6, 0x7a, 0x3e, 0x39, 0x06, 0xcd, 0x05, 0x19, 0x89, 0x50, 0x02, 0xde, 0x44, 0xab, 0x4a, 0x1b,
|
|
0x52, 0xa6, 0xe4, 0x81, 0x10, 0x74, 0x27, 0xf5, 0x7e, 0x7f, 0x08, 0xf1, 0x58, 0xeb, 0x87, 0x6c,
|
|
0x00, 0xa9, 0x93, 0x19, 0x93, 0x2f, 0xf2, 0x88, 0x1f, 0x46, 0xfe, 0xff, 0x3b, 0xdd, 0xe4, 0x79,
|
|
0xf4, 0xdc, 0xf1, 0x20, 0x52, 0xe3, 0x2c, 0x0d, 0xb2, 0x87, 0x36, 0x4e, 0xc7, 0xa1, 0xf7, 0x11,
|
|
0x0f, 0x7d, 0xf1, 0x4c, 0x96, 0x43, 0x8f, 0xd1, 0xdd, 0x19, 0xbf, 0xbc, 0x0a, 0x5d, 0x74, 0xeb,
|
|
0x59, 0x62, 0xb2, 0xad, 0x66, 0xf5, 0xe6, 0xcc, 0x53, 0x0d, 0x37, 0x0b, 0x4c, 0x2e, 0xd0, 0x56,
|
|
0x27, 0x10, 0x5d, 0x16, 0xa4, 0xd9, 0x4c, 0xd5, 0x3f, 0x45, 0xab, 0x5c, 0xc1, 0x60, 0x49, 0xda,
|
|
0x33, 0xf5, 0x4a, 0xc2, 0x92, 0x5f, 0xaa, 0xc8, 0x7e, 0x0a, 0x8a, 0xf1, 0x00, 0xfc, 0x05, 0xf1,
|
|
0x08, 0xad, 0xf7, 0x0a, 0x58, 0x4b, 0xa7, 0x98, 0x8b, 0x3f, 0xbb, 0x40, 0x2a, 0xff, 0x55, 0x3f,
|
|
0x08, 0xd0, 0x9d, 0x18, 0x22, 0x21, 0xb9, 0x12, 0x31, 0x07, 0x69, 0x57, 0x97, 0x91, 0x93, 0x9b,
|
|
0x45, 0x1c, 0xbb, 0x85, 0xe8, 0x98, 0xa1, 0xdb, 0x5e, 0x30, 0x94, 0x0a, 0x62, 0x69, 0xaf, 0x18,
|
|
0xa5, 0xe3, 0x9b, 0x29, 0x3d, 0x49, 0xa2, 0xb9, 0x79, 0xd8, 0xf6, 0xcf, 0x75, 0xb4, 0x9e, 0x66,
|
|
0x79, 0x0a, 0xf1, 0x88, 0x7b, 0x80, 0xbf, 0xb5, 0x50, 0x3d, 0x69, 0x31, 0x66, 0x4b, 0x63, 0x42,
|
|
0xb3, 0x53, 0xa7, 0xb4, 0x09, 0x35, 0xee, 0x5f, 0xeb, 0x93, 0x6f, 0xa3, 0x47, 0x5f, 0xfe, 0xfe,
|
|
0xe7, 0x0f, 0x95, 0x36, 0x39, 0x30, 0xa7, 0xcd, 0xe8, 0x30, 0x3b, 0xc7, 0xa4, 0x33, 0x49, 0x47,
|
|
0x97, 0x8e, 0x6e, 0x3e, 0xd2, 0x99, 0xe8, 0x9f, 0x4b, 0xc7, 0xb4, 0x8b, 0x37, 0xad, 0x7d, 0xfc,
|
|
0xb5, 0x85, 0xea, 0x49, 0x77, 0xfd, 0x3b, 0x98, 0x42, 0xff, 0x6d, 0x6c, 0xe5, 0x3e, 0xc5, 0xcd,
|
|
0xfc, 0x96, 0xa1, 0x78, 0x63, 0xff, 0xe8, 0x5f, 0x51, 0x38, 0x13, 0xce, 0xd4, 0x25, 0xfe, 0xce,
|
|
0x42, 0xb5, 0x24, 0x67, 0xbc, 0x90, 0x6c, 0xb1, 0x16, 0x4b, 0x5b, 0x76, 0xe4, 0x25, 0x03, 0x7c,
|
|
0x8f, 0x6c, 0xcc, 0x03, 0xeb, 0xca, 0x7c, 0x65, 0xa1, 0x95, 0x13, 0x2e, 0x15, 0xbe, 0x37, 0x8f,
|
|
0x63, 0xda, 0x54, 0xe3, 0x64, 0x59, 0x18, 0x5a, 0x84, 0xd8, 0x06, 0x05, 0xe3, 0x05, 0x14, 0x7c,
|
|
0x81, 0x70, 0x07, 0xd4, 0x5c, 0x1f, 0x28, 0x83, 0x7a, 0x39, 0x37, 0x97, 0x35, 0x0e, 0xd2, 0x32,
|
|
0x4a, 0x04, 0x37, 0x17, 0x67, 0x49, 0xb7, 0xda, 0x4b, 0xc7, 0x4f, 0xbf, 0xc4, 0xdf, 0x58, 0xa8,
|
|
0xda, 0x81, 0x52, 0xad, 0xe5, 0xcd, 0xc3, 0x03, 0x83, 0xb4, 0x8d, 0x5f, 0x2c, 0x41, 0xc2, 0x13,
|
|
0xf4, 0x42, 0x07, 0x54, 0xb1, 0x0d, 0x97, 0x61, 0x3d, 0xc8, 0xcd, 0xd7, 0xb7, 0x6d, 0x42, 0x8d,
|
|
0x5a, 0x0b, 0xef, 0x95, 0x15, 0x20, 0xe9, 0x7b, 0xf9, 0x04, 0xfc, 0x64, 0xa1, 0x5a, 0x72, 0x54,
|
|
0x2e, 0xae, 0xcc, 0xc2, 0x11, 0xba, 0xc4, 0x8a, 0x1c, 0x19, 0xc6, 0x83, 0x46, 0xab, 0x74, 0x2b,
|
|
0x51, 0x7d, 0x3b, 0xf4, 0x99, 0x62, 0xd4, 0x40, 0xeb, 0x15, 0xfb, 0x31, 0xaa, 0x25, 0x1b, 0xb5,
|
|
0xac, 0x34, 0x65, 0x1b, 0x37, 0xad, 0xff, 0x7e, 0x69, 0xfd, 0xcf, 0x11, 0xd2, 0xab, 0xf4, 0x78,
|
|
0x04, 0x61, 0x79, 0xe1, 0xef, 0xd3, 0xe4, 0x36, 0xab, 0x33, 0xa4, 0xfa, 0xc6, 0x4b, 0x47, 0x87,
|
|
0xd4, 0x7c, 0x62, 0x56, 0xf8, 0x9e, 0x11, 0x69, 0xe2, 0xdd, 0xb2, 0xb2, 0x43, 0x12, 0x7d, 0x82,
|
|
0xee, 0x76, 0x40, 0xcd, 0x9c, 0xf6, 0xa7, 0x4a, 0x97, 0x7e, 0x3b, 0x17, 0x9d, 0xbf, 0x30, 0x34,
|
|
0x76, 0xae, 0x7b, 0x95, 0x27, 0xf7, 0x9a, 0xd1, 0x7d, 0x15, 0xbf, 0x52, 0xa6, 0x2b, 0xc7, 0xa1,
|
|
0x97, 0x1e, 0xf6, 0x8f, 0x1f, 0xff, 0x7a, 0xb5, 0x6b, 0xfd, 0x76, 0xb5, 0x6b, 0xfd, 0x71, 0xb5,
|
|
0x6b, 0x7d, 0xf2, 0xf0, 0x9f, 0x5d, 0xb4, 0xbd, 0x80, 0x43, 0x98, 0xff, 0x77, 0xe8, 0xd6, 0xcc,
|
|
0xbd, 0xfa, 0xe8, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x5b, 0x43, 0xdb, 0x65, 0x5c, 0x0c, 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
|
|
|
|
// ProjectServiceClient is the client API for ProjectService service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type ProjectServiceClient interface {
|
|
// Create a new project token
|
|
CreateToken(ctx context.Context, in *ProjectTokenCreateRequest, opts ...grpc.CallOption) (*ProjectTokenResponse, error)
|
|
// Delete a new project token
|
|
DeleteToken(ctx context.Context, in *ProjectTokenDeleteRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
|
|
// Create a new project
|
|
Create(ctx context.Context, in *ProjectCreateRequest, opts ...grpc.CallOption) (*v1alpha1.AppProject, error)
|
|
// List returns list of projects
|
|
List(ctx context.Context, in *ProjectQuery, opts ...grpc.CallOption) (*v1alpha1.AppProjectList, error)
|
|
// GetDetailedProject returns a project that include project, global project and scoped resources by name
|
|
GetDetailedProject(ctx context.Context, in *ProjectQuery, opts ...grpc.CallOption) (*DetailedProjectsResponse, error)
|
|
// Get returns a project by name
|
|
Get(ctx context.Context, in *ProjectQuery, opts ...grpc.CallOption) (*v1alpha1.AppProject, error)
|
|
// Get returns a virtual project by name
|
|
GetGlobalProjects(ctx context.Context, in *ProjectQuery, opts ...grpc.CallOption) (*GlobalProjectsResponse, error)
|
|
// Update updates a project
|
|
Update(ctx context.Context, in *ProjectUpdateRequest, opts ...grpc.CallOption) (*v1alpha1.AppProject, error)
|
|
// Delete deletes a project
|
|
Delete(ctx context.Context, in *ProjectQuery, opts ...grpc.CallOption) (*EmptyResponse, error)
|
|
// ListEvents returns a list of project events
|
|
ListEvents(ctx context.Context, in *ProjectQuery, opts ...grpc.CallOption) (*v1.EventList, error)
|
|
// GetSchedulesState returns true if there are any active sync syncWindows
|
|
GetSyncWindowsState(ctx context.Context, in *SyncWindowsQuery, opts ...grpc.CallOption) (*SyncWindowsResponse, error)
|
|
}
|
|
|
|
type projectServiceClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewProjectServiceClient(cc *grpc.ClientConn) ProjectServiceClient {
|
|
return &projectServiceClient{cc}
|
|
}
|
|
|
|
func (c *projectServiceClient) CreateToken(ctx context.Context, in *ProjectTokenCreateRequest, opts ...grpc.CallOption) (*ProjectTokenResponse, error) {
|
|
out := new(ProjectTokenResponse)
|
|
err := c.cc.Invoke(ctx, "/project.ProjectService/CreateToken", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *projectServiceClient) DeleteToken(ctx context.Context, in *ProjectTokenDeleteRequest, opts ...grpc.CallOption) (*EmptyResponse, error) {
|
|
out := new(EmptyResponse)
|
|
err := c.cc.Invoke(ctx, "/project.ProjectService/DeleteToken", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *projectServiceClient) Create(ctx context.Context, in *ProjectCreateRequest, opts ...grpc.CallOption) (*v1alpha1.AppProject, error) {
|
|
out := new(v1alpha1.AppProject)
|
|
err := c.cc.Invoke(ctx, "/project.ProjectService/Create", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *projectServiceClient) List(ctx context.Context, in *ProjectQuery, opts ...grpc.CallOption) (*v1alpha1.AppProjectList, error) {
|
|
out := new(v1alpha1.AppProjectList)
|
|
err := c.cc.Invoke(ctx, "/project.ProjectService/List", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *projectServiceClient) GetDetailedProject(ctx context.Context, in *ProjectQuery, opts ...grpc.CallOption) (*DetailedProjectsResponse, error) {
|
|
out := new(DetailedProjectsResponse)
|
|
err := c.cc.Invoke(ctx, "/project.ProjectService/GetDetailedProject", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *projectServiceClient) Get(ctx context.Context, in *ProjectQuery, opts ...grpc.CallOption) (*v1alpha1.AppProject, error) {
|
|
out := new(v1alpha1.AppProject)
|
|
err := c.cc.Invoke(ctx, "/project.ProjectService/Get", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *projectServiceClient) GetGlobalProjects(ctx context.Context, in *ProjectQuery, opts ...grpc.CallOption) (*GlobalProjectsResponse, error) {
|
|
out := new(GlobalProjectsResponse)
|
|
err := c.cc.Invoke(ctx, "/project.ProjectService/GetGlobalProjects", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *projectServiceClient) Update(ctx context.Context, in *ProjectUpdateRequest, opts ...grpc.CallOption) (*v1alpha1.AppProject, error) {
|
|
out := new(v1alpha1.AppProject)
|
|
err := c.cc.Invoke(ctx, "/project.ProjectService/Update", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *projectServiceClient) Delete(ctx context.Context, in *ProjectQuery, opts ...grpc.CallOption) (*EmptyResponse, error) {
|
|
out := new(EmptyResponse)
|
|
err := c.cc.Invoke(ctx, "/project.ProjectService/Delete", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *projectServiceClient) ListEvents(ctx context.Context, in *ProjectQuery, opts ...grpc.CallOption) (*v1.EventList, error) {
|
|
out := new(v1.EventList)
|
|
err := c.cc.Invoke(ctx, "/project.ProjectService/ListEvents", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *projectServiceClient) GetSyncWindowsState(ctx context.Context, in *SyncWindowsQuery, opts ...grpc.CallOption) (*SyncWindowsResponse, error) {
|
|
out := new(SyncWindowsResponse)
|
|
err := c.cc.Invoke(ctx, "/project.ProjectService/GetSyncWindowsState", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// ProjectServiceServer is the server API for ProjectService service.
|
|
type ProjectServiceServer interface {
|
|
// Create a new project token
|
|
CreateToken(context.Context, *ProjectTokenCreateRequest) (*ProjectTokenResponse, error)
|
|
// Delete a new project token
|
|
DeleteToken(context.Context, *ProjectTokenDeleteRequest) (*EmptyResponse, error)
|
|
// Create a new project
|
|
Create(context.Context, *ProjectCreateRequest) (*v1alpha1.AppProject, error)
|
|
// List returns list of projects
|
|
List(context.Context, *ProjectQuery) (*v1alpha1.AppProjectList, error)
|
|
// GetDetailedProject returns a project that include project, global project and scoped resources by name
|
|
GetDetailedProject(context.Context, *ProjectQuery) (*DetailedProjectsResponse, error)
|
|
// Get returns a project by name
|
|
Get(context.Context, *ProjectQuery) (*v1alpha1.AppProject, error)
|
|
// Get returns a virtual project by name
|
|
GetGlobalProjects(context.Context, *ProjectQuery) (*GlobalProjectsResponse, error)
|
|
// Update updates a project
|
|
Update(context.Context, *ProjectUpdateRequest) (*v1alpha1.AppProject, error)
|
|
// Delete deletes a project
|
|
Delete(context.Context, *ProjectQuery) (*EmptyResponse, error)
|
|
// ListEvents returns a list of project events
|
|
ListEvents(context.Context, *ProjectQuery) (*v1.EventList, error)
|
|
// GetSchedulesState returns true if there are any active sync syncWindows
|
|
GetSyncWindowsState(context.Context, *SyncWindowsQuery) (*SyncWindowsResponse, error)
|
|
}
|
|
|
|
// UnimplementedProjectServiceServer can be embedded to have forward compatible implementations.
|
|
type UnimplementedProjectServiceServer struct {
|
|
}
|
|
|
|
func (*UnimplementedProjectServiceServer) CreateToken(ctx context.Context, req *ProjectTokenCreateRequest) (*ProjectTokenResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method CreateToken not implemented")
|
|
}
|
|
func (*UnimplementedProjectServiceServer) DeleteToken(ctx context.Context, req *ProjectTokenDeleteRequest) (*EmptyResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method DeleteToken not implemented")
|
|
}
|
|
func (*UnimplementedProjectServiceServer) Create(ctx context.Context, req *ProjectCreateRequest) (*v1alpha1.AppProject, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
|
|
}
|
|
func (*UnimplementedProjectServiceServer) List(ctx context.Context, req *ProjectQuery) (*v1alpha1.AppProjectList, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
|
|
}
|
|
func (*UnimplementedProjectServiceServer) GetDetailedProject(ctx context.Context, req *ProjectQuery) (*DetailedProjectsResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetDetailedProject not implemented")
|
|
}
|
|
func (*UnimplementedProjectServiceServer) Get(ctx context.Context, req *ProjectQuery) (*v1alpha1.AppProject, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
|
|
}
|
|
func (*UnimplementedProjectServiceServer) GetGlobalProjects(ctx context.Context, req *ProjectQuery) (*GlobalProjectsResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetGlobalProjects not implemented")
|
|
}
|
|
func (*UnimplementedProjectServiceServer) Update(ctx context.Context, req *ProjectUpdateRequest) (*v1alpha1.AppProject, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Update not implemented")
|
|
}
|
|
func (*UnimplementedProjectServiceServer) Delete(ctx context.Context, req *ProjectQuery) (*EmptyResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
|
|
}
|
|
func (*UnimplementedProjectServiceServer) ListEvents(ctx context.Context, req *ProjectQuery) (*v1.EventList, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ListEvents not implemented")
|
|
}
|
|
func (*UnimplementedProjectServiceServer) GetSyncWindowsState(ctx context.Context, req *SyncWindowsQuery) (*SyncWindowsResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetSyncWindowsState not implemented")
|
|
}
|
|
|
|
func RegisterProjectServiceServer(s *grpc.Server, srv ProjectServiceServer) {
|
|
s.RegisterService(&_ProjectService_serviceDesc, srv)
|
|
}
|
|
|
|
func _ProjectService_CreateToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ProjectTokenCreateRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ProjectServiceServer).CreateToken(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/project.ProjectService/CreateToken",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ProjectServiceServer).CreateToken(ctx, req.(*ProjectTokenCreateRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ProjectService_DeleteToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ProjectTokenDeleteRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ProjectServiceServer).DeleteToken(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/project.ProjectService/DeleteToken",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ProjectServiceServer).DeleteToken(ctx, req.(*ProjectTokenDeleteRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ProjectService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ProjectCreateRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ProjectServiceServer).Create(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/project.ProjectService/Create",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ProjectServiceServer).Create(ctx, req.(*ProjectCreateRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ProjectService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ProjectQuery)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ProjectServiceServer).List(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/project.ProjectService/List",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ProjectServiceServer).List(ctx, req.(*ProjectQuery))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ProjectService_GetDetailedProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ProjectQuery)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ProjectServiceServer).GetDetailedProject(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/project.ProjectService/GetDetailedProject",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ProjectServiceServer).GetDetailedProject(ctx, req.(*ProjectQuery))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ProjectService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ProjectQuery)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ProjectServiceServer).Get(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/project.ProjectService/Get",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ProjectServiceServer).Get(ctx, req.(*ProjectQuery))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ProjectService_GetGlobalProjects_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ProjectQuery)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ProjectServiceServer).GetGlobalProjects(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/project.ProjectService/GetGlobalProjects",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ProjectServiceServer).GetGlobalProjects(ctx, req.(*ProjectQuery))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ProjectService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ProjectUpdateRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ProjectServiceServer).Update(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/project.ProjectService/Update",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ProjectServiceServer).Update(ctx, req.(*ProjectUpdateRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ProjectService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ProjectQuery)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ProjectServiceServer).Delete(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/project.ProjectService/Delete",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ProjectServiceServer).Delete(ctx, req.(*ProjectQuery))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ProjectService_ListEvents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ProjectQuery)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ProjectServiceServer).ListEvents(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/project.ProjectService/ListEvents",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ProjectServiceServer).ListEvents(ctx, req.(*ProjectQuery))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ProjectService_GetSyncWindowsState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(SyncWindowsQuery)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ProjectServiceServer).GetSyncWindowsState(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/project.ProjectService/GetSyncWindowsState",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ProjectServiceServer).GetSyncWindowsState(ctx, req.(*SyncWindowsQuery))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _ProjectService_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "project.ProjectService",
|
|
HandlerType: (*ProjectServiceServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "CreateToken",
|
|
Handler: _ProjectService_CreateToken_Handler,
|
|
},
|
|
{
|
|
MethodName: "DeleteToken",
|
|
Handler: _ProjectService_DeleteToken_Handler,
|
|
},
|
|
{
|
|
MethodName: "Create",
|
|
Handler: _ProjectService_Create_Handler,
|
|
},
|
|
{
|
|
MethodName: "List",
|
|
Handler: _ProjectService_List_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetDetailedProject",
|
|
Handler: _ProjectService_GetDetailedProject_Handler,
|
|
},
|
|
{
|
|
MethodName: "Get",
|
|
Handler: _ProjectService_Get_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetGlobalProjects",
|
|
Handler: _ProjectService_GetGlobalProjects_Handler,
|
|
},
|
|
{
|
|
MethodName: "Update",
|
|
Handler: _ProjectService_Update_Handler,
|
|
},
|
|
{
|
|
MethodName: "Delete",
|
|
Handler: _ProjectService_Delete_Handler,
|
|
},
|
|
{
|
|
MethodName: "ListEvents",
|
|
Handler: _ProjectService_ListEvents_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetSyncWindowsState",
|
|
Handler: _ProjectService_GetSyncWindowsState_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "server/project/project.proto",
|
|
}
|
|
|
|
func (m *ProjectCreateRequest) 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 *ProjectCreateRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *ProjectCreateRequest) 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 m.Upsert {
|
|
i--
|
|
if m.Upsert {
|
|
dAtA[i] = 1
|
|
} else {
|
|
dAtA[i] = 0
|
|
}
|
|
i--
|
|
dAtA[i] = 0x10
|
|
}
|
|
if m.Project != nil {
|
|
{
|
|
size, err := m.Project.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProject(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *ProjectTokenDeleteRequest) 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 *ProjectTokenDeleteRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *ProjectTokenDeleteRequest) 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.Id) > 0 {
|
|
i -= len(m.Id)
|
|
copy(dAtA[i:], m.Id)
|
|
i = encodeVarintProject(dAtA, i, uint64(len(m.Id)))
|
|
i--
|
|
dAtA[i] = 0x22
|
|
}
|
|
if m.Iat != 0 {
|
|
i = encodeVarintProject(dAtA, i, uint64(m.Iat))
|
|
i--
|
|
dAtA[i] = 0x18
|
|
}
|
|
if len(m.Role) > 0 {
|
|
i -= len(m.Role)
|
|
copy(dAtA[i:], m.Role)
|
|
i = encodeVarintProject(dAtA, i, uint64(len(m.Role)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(m.Project) > 0 {
|
|
i -= len(m.Project)
|
|
copy(dAtA[i:], m.Project)
|
|
i = encodeVarintProject(dAtA, i, uint64(len(m.Project)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *ProjectTokenCreateRequest) 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 *ProjectTokenCreateRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *ProjectTokenCreateRequest) 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.Id) > 0 {
|
|
i -= len(m.Id)
|
|
copy(dAtA[i:], m.Id)
|
|
i = encodeVarintProject(dAtA, i, uint64(len(m.Id)))
|
|
i--
|
|
dAtA[i] = 0x2a
|
|
}
|
|
if m.ExpiresIn != 0 {
|
|
i = encodeVarintProject(dAtA, i, uint64(m.ExpiresIn))
|
|
i--
|
|
dAtA[i] = 0x20
|
|
}
|
|
if len(m.Role) > 0 {
|
|
i -= len(m.Role)
|
|
copy(dAtA[i:], m.Role)
|
|
i = encodeVarintProject(dAtA, i, uint64(len(m.Role)))
|
|
i--
|
|
dAtA[i] = 0x1a
|
|
}
|
|
if len(m.Description) > 0 {
|
|
i -= len(m.Description)
|
|
copy(dAtA[i:], m.Description)
|
|
i = encodeVarintProject(dAtA, i, uint64(len(m.Description)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(m.Project) > 0 {
|
|
i -= len(m.Project)
|
|
copy(dAtA[i:], m.Project)
|
|
i = encodeVarintProject(dAtA, i, uint64(len(m.Project)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *ProjectTokenResponse) 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 *ProjectTokenResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *ProjectTokenResponse) 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.Token) > 0 {
|
|
i -= len(m.Token)
|
|
copy(dAtA[i:], m.Token)
|
|
i = encodeVarintProject(dAtA, i, uint64(len(m.Token)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *ProjectQuery) 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 *ProjectQuery) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *ProjectQuery) 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.Name) > 0 {
|
|
i -= len(m.Name)
|
|
copy(dAtA[i:], m.Name)
|
|
i = encodeVarintProject(dAtA, i, uint64(len(m.Name)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *ProjectUpdateRequest) 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 *ProjectUpdateRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *ProjectUpdateRequest) 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 m.Project != nil {
|
|
{
|
|
size, err := m.Project.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProject(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *EmptyResponse) 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 *EmptyResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *EmptyResponse) 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)
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *SyncWindowsQuery) 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 *SyncWindowsQuery) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *SyncWindowsQuery) 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.Name) > 0 {
|
|
i -= len(m.Name)
|
|
copy(dAtA[i:], m.Name)
|
|
i = encodeVarintProject(dAtA, i, uint64(len(m.Name)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *SyncWindowsResponse) 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 *SyncWindowsResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *SyncWindowsResponse) 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.Windows) > 0 {
|
|
for iNdEx := len(m.Windows) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.Windows[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProject(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *GlobalProjectsResponse) 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 *GlobalProjectsResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *GlobalProjectsResponse) 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.Items) > 0 {
|
|
for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProject(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *DetailedProjectsResponse) 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 *DetailedProjectsResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *DetailedProjectsResponse) 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.Clusters) > 0 {
|
|
for iNdEx := len(m.Clusters) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.Clusters[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProject(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x22
|
|
}
|
|
}
|
|
if len(m.Repositories) > 0 {
|
|
for iNdEx := len(m.Repositories) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.Repositories[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProject(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x1a
|
|
}
|
|
}
|
|
if m.Project != nil {
|
|
{
|
|
size, err := m.Project.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProject(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(m.GlobalProjects) > 0 {
|
|
for iNdEx := len(m.GlobalProjects) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.GlobalProjects[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintProject(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func encodeVarintProject(dAtA []byte, offset int, v uint64) int {
|
|
offset -= sovProject(v)
|
|
base := offset
|
|
for v >= 1<<7 {
|
|
dAtA[offset] = uint8(v&0x7f | 0x80)
|
|
v >>= 7
|
|
offset++
|
|
}
|
|
dAtA[offset] = uint8(v)
|
|
return base
|
|
}
|
|
func (m *ProjectCreateRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.Project != nil {
|
|
l = m.Project.Size()
|
|
n += 1 + l + sovProject(uint64(l))
|
|
}
|
|
if m.Upsert {
|
|
n += 2
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *ProjectTokenDeleteRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Project)
|
|
if l > 0 {
|
|
n += 1 + l + sovProject(uint64(l))
|
|
}
|
|
l = len(m.Role)
|
|
if l > 0 {
|
|
n += 1 + l + sovProject(uint64(l))
|
|
}
|
|
if m.Iat != 0 {
|
|
n += 1 + sovProject(uint64(m.Iat))
|
|
}
|
|
l = len(m.Id)
|
|
if l > 0 {
|
|
n += 1 + l + sovProject(uint64(l))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *ProjectTokenCreateRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Project)
|
|
if l > 0 {
|
|
n += 1 + l + sovProject(uint64(l))
|
|
}
|
|
l = len(m.Description)
|
|
if l > 0 {
|
|
n += 1 + l + sovProject(uint64(l))
|
|
}
|
|
l = len(m.Role)
|
|
if l > 0 {
|
|
n += 1 + l + sovProject(uint64(l))
|
|
}
|
|
if m.ExpiresIn != 0 {
|
|
n += 1 + sovProject(uint64(m.ExpiresIn))
|
|
}
|
|
l = len(m.Id)
|
|
if l > 0 {
|
|
n += 1 + l + sovProject(uint64(l))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *ProjectTokenResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Token)
|
|
if l > 0 {
|
|
n += 1 + l + sovProject(uint64(l))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *ProjectQuery) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Name)
|
|
if l > 0 {
|
|
n += 1 + l + sovProject(uint64(l))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *ProjectUpdateRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.Project != nil {
|
|
l = m.Project.Size()
|
|
n += 1 + l + sovProject(uint64(l))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *EmptyResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *SyncWindowsQuery) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Name)
|
|
if l > 0 {
|
|
n += 1 + l + sovProject(uint64(l))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *SyncWindowsResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if len(m.Windows) > 0 {
|
|
for _, e := range m.Windows {
|
|
l = e.Size()
|
|
n += 1 + l + sovProject(uint64(l))
|
|
}
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *GlobalProjectsResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if len(m.Items) > 0 {
|
|
for _, e := range m.Items {
|
|
l = e.Size()
|
|
n += 1 + l + sovProject(uint64(l))
|
|
}
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *DetailedProjectsResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if len(m.GlobalProjects) > 0 {
|
|
for _, e := range m.GlobalProjects {
|
|
l = e.Size()
|
|
n += 1 + l + sovProject(uint64(l))
|
|
}
|
|
}
|
|
if m.Project != nil {
|
|
l = m.Project.Size()
|
|
n += 1 + l + sovProject(uint64(l))
|
|
}
|
|
if len(m.Repositories) > 0 {
|
|
for _, e := range m.Repositories {
|
|
l = e.Size()
|
|
n += 1 + l + sovProject(uint64(l))
|
|
}
|
|
}
|
|
if len(m.Clusters) > 0 {
|
|
for _, e := range m.Clusters {
|
|
l = e.Size()
|
|
n += 1 + l + sovProject(uint64(l))
|
|
}
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func sovProject(x uint64) (n int) {
|
|
return (math_bits.Len64(x|1) + 6) / 7
|
|
}
|
|
func sozProject(x uint64) (n int) {
|
|
return sovProject(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
|
}
|
|
func (m *ProjectCreateRequest) 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 ErrIntOverflowProject
|
|
}
|
|
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: ProjectCreateRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: ProjectCreateRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Project", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProject
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Project == nil {
|
|
m.Project = &v1alpha1.AppProject{}
|
|
}
|
|
if err := m.Project.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Upsert", wireType)
|
|
}
|
|
var v int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProject
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
v |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
m.Upsert = bool(v != 0)
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProject(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
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 *ProjectTokenDeleteRequest) 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 ErrIntOverflowProject
|
|
}
|
|
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: ProjectTokenDeleteRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: ProjectTokenDeleteRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Project", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProject
|
|
}
|
|
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 ErrInvalidLengthProject
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Project = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProject
|
|
}
|
|
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 ErrInvalidLengthProject
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Role = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Iat", wireType)
|
|
}
|
|
m.Iat = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProject
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.Iat |= int64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 4:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProject
|
|
}
|
|
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 ErrInvalidLengthProject
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Id = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProject(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
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 *ProjectTokenCreateRequest) 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 ErrIntOverflowProject
|
|
}
|
|
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: ProjectTokenCreateRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: ProjectTokenCreateRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Project", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProject
|
|
}
|
|
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 ErrInvalidLengthProject
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Project = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProject
|
|
}
|
|
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 ErrInvalidLengthProject
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Description = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProject
|
|
}
|
|
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 ErrInvalidLengthProject
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Role = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 4:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ExpiresIn", wireType)
|
|
}
|
|
m.ExpiresIn = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProject
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.ExpiresIn |= int64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 5:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProject
|
|
}
|
|
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 ErrInvalidLengthProject
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Id = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProject(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
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 *ProjectTokenResponse) 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 ErrIntOverflowProject
|
|
}
|
|
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: ProjectTokenResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: ProjectTokenResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProject
|
|
}
|
|
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 ErrInvalidLengthProject
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Token = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProject(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
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 *ProjectQuery) 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 ErrIntOverflowProject
|
|
}
|
|
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: ProjectQuery: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: ProjectQuery: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProject
|
|
}
|
|
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 ErrInvalidLengthProject
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Name = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProject(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
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 *ProjectUpdateRequest) 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 ErrIntOverflowProject
|
|
}
|
|
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: ProjectUpdateRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: ProjectUpdateRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Project", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProject
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Project == nil {
|
|
m.Project = &v1alpha1.AppProject{}
|
|
}
|
|
if err := m.Project.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProject(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
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 *EmptyResponse) 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 ErrIntOverflowProject
|
|
}
|
|
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: EmptyResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: EmptyResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProject(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
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 *SyncWindowsQuery) 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 ErrIntOverflowProject
|
|
}
|
|
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: SyncWindowsQuery: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: SyncWindowsQuery: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProject
|
|
}
|
|
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 ErrInvalidLengthProject
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Name = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProject(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
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 *SyncWindowsResponse) 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 ErrIntOverflowProject
|
|
}
|
|
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: SyncWindowsResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: SyncWindowsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Windows", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProject
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Windows = append(m.Windows, &v1alpha1.SyncWindow{})
|
|
if err := m.Windows[len(m.Windows)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProject(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
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 *GlobalProjectsResponse) 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 ErrIntOverflowProject
|
|
}
|
|
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: GlobalProjectsResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: GlobalProjectsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProject
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Items = append(m.Items, &v1alpha1.AppProject{})
|
|
if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProject(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
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 *DetailedProjectsResponse) 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 ErrIntOverflowProject
|
|
}
|
|
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: DetailedProjectsResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: DetailedProjectsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field GlobalProjects", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProject
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.GlobalProjects = append(m.GlobalProjects, &v1alpha1.AppProject{})
|
|
if err := m.GlobalProjects[len(m.GlobalProjects)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Project", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProject
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Project == nil {
|
|
m.Project = &v1alpha1.AppProject{}
|
|
}
|
|
if err := m.Project.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Repositories", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProject
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Repositories = append(m.Repositories, &v1alpha1.Repository{})
|
|
if err := m.Repositories[len(m.Repositories)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 4:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Clusters", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowProject
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Clusters = append(m.Clusters, &v1alpha1.Cluster{})
|
|
if err := m.Clusters[len(m.Clusters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipProject(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthProject
|
|
}
|
|
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 skipProject(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, ErrIntOverflowProject
|
|
}
|
|
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, ErrIntOverflowProject
|
|
}
|
|
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, ErrIntOverflowProject
|
|
}
|
|
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, ErrInvalidLengthProject
|
|
}
|
|
iNdEx += length
|
|
case 3:
|
|
depth++
|
|
case 4:
|
|
if depth == 0 {
|
|
return 0, ErrUnexpectedEndOfGroupProject
|
|
}
|
|
depth--
|
|
case 5:
|
|
iNdEx += 4
|
|
default:
|
|
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
|
}
|
|
if iNdEx < 0 {
|
|
return 0, ErrInvalidLengthProject
|
|
}
|
|
if depth == 0 {
|
|
return iNdEx, nil
|
|
}
|
|
}
|
|
return 0, io.ErrUnexpectedEOF
|
|
}
|
|
|
|
var (
|
|
ErrInvalidLengthProject = fmt.Errorf("proto: negative length found during unmarshaling")
|
|
ErrIntOverflowProject = fmt.Errorf("proto: integer overflow")
|
|
ErrUnexpectedEndOfGroupProject = fmt.Errorf("proto: unexpected end of group")
|
|
)
|