Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterDeployGitApiServer(s grpc.ServiceRegistrar, srv DeployGitApiServer)
- type CheckPlanGitRequest
- func (*CheckPlanGitRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CheckPlanGitRequest) GetAccessToken() string
- func (x *CheckPlanGitRequest) GetDeployPlanId() string
- func (*CheckPlanGitRequest) ProtoMessage()
- func (x *CheckPlanGitRequest) ProtoReflect() protoreflect.Message
- func (x *CheckPlanGitRequest) Reset()
- func (x *CheckPlanGitRequest) String() string
- type CheckPlanGitResponse
- func (*CheckPlanGitResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CheckPlanGitResponse) GetCode() CheckPlanGitResponse_CODE
- func (x *CheckPlanGitResponse) GetErrMsg() string
- func (x *CheckPlanGitResponse) GetHasGitClone() bool
- func (x *CheckPlanGitResponse) GetHasGitConfig() bool
- func (*CheckPlanGitResponse) ProtoMessage()
- func (x *CheckPlanGitResponse) ProtoReflect() protoreflect.Message
- func (x *CheckPlanGitResponse) Reset()
- func (x *CheckPlanGitResponse) String() string
- type CheckPlanGitResponse_CODE
- func (CheckPlanGitResponse_CODE) Descriptor() protoreflect.EnumDescriptor
- func (x CheckPlanGitResponse_CODE) Enum() *CheckPlanGitResponse_CODE
- func (CheckPlanGitResponse_CODE) EnumDescriptor() ([]byte, []int)deprecated
- func (x CheckPlanGitResponse_CODE) Number() protoreflect.EnumNumber
- func (x CheckPlanGitResponse_CODE) String() string
- func (CheckPlanGitResponse_CODE) Type() protoreflect.EnumType
- type CheckoutRequest
- func (*CheckoutRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CheckoutRequest) GetAccessToken() string
- func (x *CheckoutRequest) GetDeployPlanId() string
- func (x *CheckoutRequest) GetTarget() string
- func (*CheckoutRequest) ProtoMessage()
- func (x *CheckoutRequest) ProtoReflect() protoreflect.Message
- func (x *CheckoutRequest) Reset()
- func (x *CheckoutRequest) String() string
- type CheckoutResponse
- func (*CheckoutResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CheckoutResponse) GetCode() CheckoutResponse_CODE
- func (x *CheckoutResponse) GetErrMsg() string
- func (*CheckoutResponse) ProtoMessage()
- func (x *CheckoutResponse) ProtoReflect() protoreflect.Message
- func (x *CheckoutResponse) Reset()
- func (x *CheckoutResponse) String() string
- type CheckoutResponse_CODE
- func (CheckoutResponse_CODE) Descriptor() protoreflect.EnumDescriptor
- func (x CheckoutResponse_CODE) Enum() *CheckoutResponse_CODE
- func (CheckoutResponse_CODE) EnumDescriptor() ([]byte, []int)deprecated
- func (x CheckoutResponse_CODE) Number() protoreflect.EnumNumber
- func (x CheckoutResponse_CODE) String() string
- func (CheckoutResponse_CODE) Type() protoreflect.EnumType
- type CommitInfo
- func (*CommitInfo) Descriptor() ([]byte, []int)deprecated
- func (x *CommitInfo) GetCommitEmail() string
- func (x *CommitInfo) GetCommitUserName() string
- func (x *CommitInfo) GetContent() string
- func (x *CommitInfo) GetSha() string
- func (x *CommitInfo) GetTimeStamp() int64
- func (*CommitInfo) ProtoMessage()
- func (x *CommitInfo) ProtoReflect() protoreflect.Message
- func (x *CommitInfo) Reset()
- func (x *CommitInfo) String() string
- type DeployGitApiClient
- type DeployGitApiServer
- type GetFileContentRequest
- func (*GetFileContentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetFileContentRequest) GetAccessToken() string
- func (x *GetFileContentRequest) GetDeployPlanId() string
- func (x *GetFileContentRequest) GetFilePath() string
- func (x *GetFileContentRequest) GetHostId() string
- func (*GetFileContentRequest) ProtoMessage()
- func (x *GetFileContentRequest) ProtoReflect() protoreflect.Message
- func (x *GetFileContentRequest) Reset()
- func (x *GetFileContentRequest) String() string
- type GetFileContentResponse
- func (*GetFileContentResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetFileContentResponse) GetCode() GetFileContentResponse_CODE
- func (x *GetFileContentResponse) GetContent() string
- func (x *GetFileContentResponse) GetErrMsg() string
- func (*GetFileContentResponse) ProtoMessage()
- func (x *GetFileContentResponse) ProtoReflect() protoreflect.Message
- func (x *GetFileContentResponse) Reset()
- func (x *GetFileContentResponse) String() string
- type GetFileContentResponse_CODE
- func (GetFileContentResponse_CODE) Descriptor() protoreflect.EnumDescriptor
- func (x GetFileContentResponse_CODE) Enum() *GetFileContentResponse_CODE
- func (GetFileContentResponse_CODE) EnumDescriptor() ([]byte, []int)deprecated
- func (x GetFileContentResponse_CODE) Number() protoreflect.EnumNumber
- func (x GetFileContentResponse_CODE) String() string
- func (GetFileContentResponse_CODE) Type() protoreflect.EnumType
- type ListBranchRequest
- func (*ListBranchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListBranchRequest) GetAccessToken() string
- func (x *ListBranchRequest) GetDeployPlanId() string
- func (*ListBranchRequest) ProtoMessage()
- func (x *ListBranchRequest) ProtoReflect() protoreflect.Message
- func (x *ListBranchRequest) Reset()
- func (x *ListBranchRequest) String() string
- type ListBranchResponse
- func (*ListBranchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListBranchResponse) GetBranchList() []string
- func (x *ListBranchResponse) GetCode() ListBranchResponse_CODE
- func (x *ListBranchResponse) GetErrMsg() string
- func (*ListBranchResponse) ProtoMessage()
- func (x *ListBranchResponse) ProtoReflect() protoreflect.Message
- func (x *ListBranchResponse) Reset()
- func (x *ListBranchResponse) String() string
- type ListBranchResponse_CODE
- func (ListBranchResponse_CODE) Descriptor() protoreflect.EnumDescriptor
- func (x ListBranchResponse_CODE) Enum() *ListBranchResponse_CODE
- func (ListBranchResponse_CODE) EnumDescriptor() ([]byte, []int)deprecated
- func (x ListBranchResponse_CODE) Number() protoreflect.EnumNumber
- func (x ListBranchResponse_CODE) String() string
- func (ListBranchResponse_CODE) Type() protoreflect.EnumType
- type ListCommitRequest
- func (*ListCommitRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListCommitRequest) GetAccessToken() string
- func (x *ListCommitRequest) GetDeployPlanId() string
- func (*ListCommitRequest) ProtoMessage()
- func (x *ListCommitRequest) ProtoReflect() protoreflect.Message
- func (x *ListCommitRequest) Reset()
- func (x *ListCommitRequest) String() string
- type ListCommitResponse
- func (*ListCommitResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListCommitResponse) GetCode() ListCommitResponse_CODE
- func (x *ListCommitResponse) GetCommitList() []*CommitInfo
- func (x *ListCommitResponse) GetErrMsg() string
- func (*ListCommitResponse) ProtoMessage()
- func (x *ListCommitResponse) ProtoReflect() protoreflect.Message
- func (x *ListCommitResponse) Reset()
- func (x *ListCommitResponse) String() string
- type ListCommitResponse_CODE
- func (ListCommitResponse_CODE) Descriptor() protoreflect.EnumDescriptor
- func (x ListCommitResponse_CODE) Enum() *ListCommitResponse_CODE
- func (ListCommitResponse_CODE) EnumDescriptor() ([]byte, []int)deprecated
- func (x ListCommitResponse_CODE) Number() protoreflect.EnumNumber
- func (x ListCommitResponse_CODE) String() string
- func (ListCommitResponse_CODE) Type() protoreflect.EnumType
- type ListTagRequest
- func (*ListTagRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListTagRequest) GetAccessToken() string
- func (x *ListTagRequest) GetDeployPlanId() string
- func (*ListTagRequest) ProtoMessage()
- func (x *ListTagRequest) ProtoReflect() protoreflect.Message
- func (x *ListTagRequest) Reset()
- func (x *ListTagRequest) String() string
- type ListTagResponse
- func (*ListTagResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListTagResponse) GetCode() ListTagResponse_CODE
- func (x *ListTagResponse) GetErrMsg() string
- func (x *ListTagResponse) GetTagList() []string
- func (*ListTagResponse) ProtoMessage()
- func (x *ListTagResponse) ProtoReflect() protoreflect.Message
- func (x *ListTagResponse) Reset()
- func (x *ListTagResponse) String() string
- type ListTagResponse_CODE
- func (ListTagResponse_CODE) Descriptor() protoreflect.EnumDescriptor
- func (x ListTagResponse_CODE) Enum() *ListTagResponse_CODE
- func (ListTagResponse_CODE) EnumDescriptor() ([]byte, []int)deprecated
- func (x ListTagResponse_CODE) Number() protoreflect.EnumNumber
- func (x ListTagResponse_CODE) String() string
- func (ListTagResponse_CODE) Type() protoreflect.EnumType
- type ListWorkDirRequest
- func (*ListWorkDirRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListWorkDirRequest) GetAccessToken() string
- func (x *ListWorkDirRequest) GetBaseDir() string
- func (x *ListWorkDirRequest) GetDeployPlanId() string
- func (*ListWorkDirRequest) ProtoMessage()
- func (x *ListWorkDirRequest) ProtoReflect() protoreflect.Message
- func (x *ListWorkDirRequest) Reset()
- func (x *ListWorkDirRequest) String() string
- type ListWorkDirResponse
- func (*ListWorkDirResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListWorkDirResponse) GetCode() ListWorkDirResponse_CODE
- func (x *ListWorkDirResponse) GetErrMsg() string
- func (x *ListWorkDirResponse) GetPathInfoList() []*PathInfo
- func (*ListWorkDirResponse) ProtoMessage()
- func (x *ListWorkDirResponse) ProtoReflect() protoreflect.Message
- func (x *ListWorkDirResponse) Reset()
- func (x *ListWorkDirResponse) String() string
- type ListWorkDirResponse_CODE
- func (ListWorkDirResponse_CODE) Descriptor() protoreflect.EnumDescriptor
- func (x ListWorkDirResponse_CODE) Enum() *ListWorkDirResponse_CODE
- func (ListWorkDirResponse_CODE) EnumDescriptor() ([]byte, []int)deprecated
- func (x ListWorkDirResponse_CODE) Number() protoreflect.EnumNumber
- func (x ListWorkDirResponse_CODE) String() string
- func (ListWorkDirResponse_CODE) Type() protoreflect.EnumType
- type PathInfo
- func (*PathInfo) Descriptor() ([]byte, []int)deprecated
- func (x *PathInfo) GetDir() bool
- func (x *PathInfo) GetFullName() string
- func (x *PathInfo) GetName() string
- func (*PathInfo) ProtoMessage()
- func (x *PathInfo) ProtoReflect() protoreflect.Message
- func (x *PathInfo) Reset()
- func (x *PathInfo) String() string
- type SetPlanGitRequest
- func (*SetPlanGitRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetPlanGitRequest) GetAccessToken() string
- func (x *SetPlanGitRequest) GetDeployPlanId() string
- func (x *SetPlanGitRequest) GetGitPassword() string
- func (x *SetPlanGitRequest) GetGitSshKey() string
- func (x *SetPlanGitRequest) GetGitUrl() string
- func (x *SetPlanGitRequest) GetGitUserName() string
- func (*SetPlanGitRequest) ProtoMessage()
- func (x *SetPlanGitRequest) ProtoReflect() protoreflect.Message
- func (x *SetPlanGitRequest) Reset()
- func (x *SetPlanGitRequest) String() string
- type SetPlanGitResponse
- func (*SetPlanGitResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SetPlanGitResponse) GetCode() SetPlanGitResponse_CODE
- func (x *SetPlanGitResponse) GetErrMsg() string
- func (*SetPlanGitResponse) ProtoMessage()
- func (x *SetPlanGitResponse) ProtoReflect() protoreflect.Message
- func (x *SetPlanGitResponse) Reset()
- func (x *SetPlanGitResponse) String() string
- type SetPlanGitResponse_CODE
- func (SetPlanGitResponse_CODE) Descriptor() protoreflect.EnumDescriptor
- func (x SetPlanGitResponse_CODE) Enum() *SetPlanGitResponse_CODE
- func (SetPlanGitResponse_CODE) EnumDescriptor() ([]byte, []int)deprecated
- func (x SetPlanGitResponse_CODE) Number() protoreflect.EnumNumber
- func (x SetPlanGitResponse_CODE) String() string
- func (SetPlanGitResponse_CODE) Type() protoreflect.EnumType
- type SyncPlanGitRequest
- func (*SyncPlanGitRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SyncPlanGitRequest) GetAccessToken() string
- func (x *SyncPlanGitRequest) GetDeployPlanId() string
- func (*SyncPlanGitRequest) ProtoMessage()
- func (x *SyncPlanGitRequest) ProtoReflect() protoreflect.Message
- func (x *SyncPlanGitRequest) Reset()
- func (x *SyncPlanGitRequest) String() string
- type SyncPlanGitResponse
- func (*SyncPlanGitResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SyncPlanGitResponse) GetCode() SyncPlanGitResponse_CODE
- func (x *SyncPlanGitResponse) GetErrMsg() string
- func (*SyncPlanGitResponse) ProtoMessage()
- func (x *SyncPlanGitResponse) ProtoReflect() protoreflect.Message
- func (x *SyncPlanGitResponse) Reset()
- func (x *SyncPlanGitResponse) String() string
- type SyncPlanGitResponse_CODE
- func (SyncPlanGitResponse_CODE) Descriptor() protoreflect.EnumDescriptor
- func (x SyncPlanGitResponse_CODE) Enum() *SyncPlanGitResponse_CODE
- func (SyncPlanGitResponse_CODE) EnumDescriptor() ([]byte, []int)deprecated
- func (x SyncPlanGitResponse_CODE) Number() protoreflect.EnumNumber
- func (x SyncPlanGitResponse_CODE) String() string
- func (SyncPlanGitResponse_CODE) Type() protoreflect.EnumType
- type UnimplementedDeployGitApiServer
- func (UnimplementedDeployGitApiServer) CheckPlanGit(context.Context, *CheckPlanGitRequest) (*CheckPlanGitResponse, error)
- func (UnimplementedDeployGitApiServer) Checkout(context.Context, *CheckoutRequest) (*CheckoutResponse, error)
- func (UnimplementedDeployGitApiServer) GetFileContent(context.Context, *GetFileContentRequest) (*GetFileContentResponse, error)
- func (UnimplementedDeployGitApiServer) ListBranch(context.Context, *ListBranchRequest) (*ListBranchResponse, error)
- func (UnimplementedDeployGitApiServer) ListCommit(context.Context, *ListCommitRequest) (*ListCommitResponse, error)
- func (UnimplementedDeployGitApiServer) ListTag(context.Context, *ListTagRequest) (*ListTagResponse, error)
- func (UnimplementedDeployGitApiServer) ListWorkDir(context.Context, *ListWorkDirRequest) (*ListWorkDirResponse, error)
- func (UnimplementedDeployGitApiServer) SetPlanGit(context.Context, *SetPlanGitRequest) (*SetPlanGitResponse, error)
- func (UnimplementedDeployGitApiServer) SyncPlanGit(context.Context, *SyncPlanGitRequest) (*SyncPlanGitResponse, error)
- type UnsafeDeployGitApiServer
Constants ¶
const ( DeployGitApi_SetPlanGit_FullMethodName = "/gitops_deploy_git_api.DeployGitApi/setPlanGit" DeployGitApi_CheckPlanGit_FullMethodName = "/gitops_deploy_git_api.DeployGitApi/checkPlanGit" DeployGitApi_SyncPlanGit_FullMethodName = "/gitops_deploy_git_api.DeployGitApi/syncPlanGit" DeployGitApi_ListBranch_FullMethodName = "/gitops_deploy_git_api.DeployGitApi/listBranch" DeployGitApi_ListTag_FullMethodName = "/gitops_deploy_git_api.DeployGitApi/listTag" DeployGitApi_ListCommit_FullMethodName = "/gitops_deploy_git_api.DeployGitApi/listCommit" DeployGitApi_Checkout_FullMethodName = "/gitops_deploy_git_api.DeployGitApi/checkout" DeployGitApi_ListWorkDir_FullMethodName = "/gitops_deploy_git_api.DeployGitApi/listWorkDir" DeployGitApi_GetFileContent_FullMethodName = "/gitops_deploy_git_api.DeployGitApi/getFileContent" )
Variables ¶
var ( SetPlanGitResponse_CODE_name = map[int32]string{ 0: "CODE_OK", 1: "CODE_WRONG_ACCESS_TOKEN", 2: "CODE_NO_PERMISSION", 3: "CODE_NO_PLAN", 4: "CODE_WRONG_SSH_KEY", } SetPlanGitResponse_CODE_value = map[string]int32{ "CODE_OK": 0, "CODE_WRONG_ACCESS_TOKEN": 1, "CODE_NO_PERMISSION": 2, "CODE_NO_PLAN": 3, "CODE_WRONG_SSH_KEY": 4, } )
Enum value maps for SetPlanGitResponse_CODE.
var ( CheckPlanGitResponse_CODE_name = map[int32]string{ 0: "CODE_OK", 1: "CODE_WRONG_ACCESS_TOKEN", 2: "CODE_NO_PERMISSION", 3: "CODE_NO_PLAN", } CheckPlanGitResponse_CODE_value = map[string]int32{ "CODE_OK": 0, "CODE_WRONG_ACCESS_TOKEN": 1, "CODE_NO_PERMISSION": 2, "CODE_NO_PLAN": 3, } )
Enum value maps for CheckPlanGitResponse_CODE.
var ( SyncPlanGitResponse_CODE_name = map[int32]string{ 0: "CODE_OK", 1: "CODE_WRONG_ACCESS_TOKEN", 2: "CODE_NO_PERMISSION", 3: "CODE_NO_PLAN", 4: "CODE_NO_GIT_CONFIG", 5: "CODE_GIT_PULL_ERROR", } SyncPlanGitResponse_CODE_value = map[string]int32{ "CODE_OK": 0, "CODE_WRONG_ACCESS_TOKEN": 1, "CODE_NO_PERMISSION": 2, "CODE_NO_PLAN": 3, "CODE_NO_GIT_CONFIG": 4, "CODE_GIT_PULL_ERROR": 5, } )
Enum value maps for SyncPlanGitResponse_CODE.
var ( ListBranchResponse_CODE_name = map[int32]string{ 0: "CODE_OK", 1: "CODE_WRONG_ACCESS_TOKEN", 2: "CODE_NO_PERMISSION", 3: "CODE_NO_PLAN", 4: "CODE_NO_GIT_CONFIG", 5: "CODE_NO_GIT_CLONE", } ListBranchResponse_CODE_value = map[string]int32{ "CODE_OK": 0, "CODE_WRONG_ACCESS_TOKEN": 1, "CODE_NO_PERMISSION": 2, "CODE_NO_PLAN": 3, "CODE_NO_GIT_CONFIG": 4, "CODE_NO_GIT_CLONE": 5, } )
Enum value maps for ListBranchResponse_CODE.
var ( ListTagResponse_CODE_name = map[int32]string{ 0: "CODE_OK", 1: "CODE_WRONG_ACCESS_TOKEN", 2: "CODE_NO_PERMISSION", 3: "CODE_NO_PLAN", 4: "CODE_NO_GIT_CONFIG", 5: "CODE_NO_GIT_CLONE", } ListTagResponse_CODE_value = map[string]int32{ "CODE_OK": 0, "CODE_WRONG_ACCESS_TOKEN": 1, "CODE_NO_PERMISSION": 2, "CODE_NO_PLAN": 3, "CODE_NO_GIT_CONFIG": 4, "CODE_NO_GIT_CLONE": 5, } )
Enum value maps for ListTagResponse_CODE.
var ( ListCommitResponse_CODE_name = map[int32]string{ 0: "CODE_OK", 1: "CODE_WRONG_ACCESS_TOKEN", 2: "CODE_NO_PERMISSION", 3: "CODE_NO_PLAN", 4: "CODE_NO_GIT_CONFIG", 5: "CODE_NO_GIT_CLONE", } ListCommitResponse_CODE_value = map[string]int32{ "CODE_OK": 0, "CODE_WRONG_ACCESS_TOKEN": 1, "CODE_NO_PERMISSION": 2, "CODE_NO_PLAN": 3, "CODE_NO_GIT_CONFIG": 4, "CODE_NO_GIT_CLONE": 5, } )
Enum value maps for ListCommitResponse_CODE.
var ( CheckoutResponse_CODE_name = map[int32]string{ 0: "CODE_OK", 1: "CODE_WRONG_ACCESS_TOKEN", 2: "CODE_NO_PERMISSION", 3: "CODE_NO_PLAN", 4: "CODE_NO_GIT_CONFIG", 5: "CODE_NO_GIT_CLONE", } CheckoutResponse_CODE_value = map[string]int32{ "CODE_OK": 0, "CODE_WRONG_ACCESS_TOKEN": 1, "CODE_NO_PERMISSION": 2, "CODE_NO_PLAN": 3, "CODE_NO_GIT_CONFIG": 4, "CODE_NO_GIT_CLONE": 5, } )
Enum value maps for CheckoutResponse_CODE.
var ( ListWorkDirResponse_CODE_name = map[int32]string{ 0: "CODE_OK", 1: "CODE_WRONG_ACCESS_TOKEN", 2: "CODE_NO_PERMISSION", 3: "CODE_NO_PLAN", 4: "CODE_NO_GIT_CONFIG", 5: "CODE_NO_GIT_CLONE", } ListWorkDirResponse_CODE_value = map[string]int32{ "CODE_OK": 0, "CODE_WRONG_ACCESS_TOKEN": 1, "CODE_NO_PERMISSION": 2, "CODE_NO_PLAN": 3, "CODE_NO_GIT_CONFIG": 4, "CODE_NO_GIT_CLONE": 5, } )
Enum value maps for ListWorkDirResponse_CODE.
var ( GetFileContentResponse_CODE_name = map[int32]string{ 0: "CODE_OK", 1: "CODE_WRONG_ACCESS_TOKEN", 2: "CODE_NO_PERMISSION", 3: "CODE_NO_PLAN", 4: "CODE_NO_GIT_CONFIG", 5: "CODE_NO_GIT_CLONE", 6: "CODE_NO_HOST", } GetFileContentResponse_CODE_value = map[string]int32{ "CODE_OK": 0, "CODE_WRONG_ACCESS_TOKEN": 1, "CODE_NO_PERMISSION": 2, "CODE_NO_PLAN": 3, "CODE_NO_GIT_CONFIG": 4, "CODE_NO_GIT_CLONE": 5, "CODE_NO_HOST": 6, } )
Enum value maps for GetFileContentResponse_CODE.
var DeployGitApi_ServiceDesc = grpc.ServiceDesc{ ServiceName: "gitops_deploy_git_api.DeployGitApi", HandlerType: (*DeployGitApiServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "setPlanGit", Handler: _DeployGitApi_SetPlanGit_Handler, }, { MethodName: "checkPlanGit", Handler: _DeployGitApi_CheckPlanGit_Handler, }, { MethodName: "syncPlanGit", Handler: _DeployGitApi_SyncPlanGit_Handler, }, { MethodName: "listBranch", Handler: _DeployGitApi_ListBranch_Handler, }, { MethodName: "listTag", Handler: _DeployGitApi_ListTag_Handler, }, { MethodName: "listCommit", Handler: _DeployGitApi_ListCommit_Handler, }, { MethodName: "checkout", Handler: _DeployGitApi_Checkout_Handler, }, { MethodName: "listWorkDir", Handler: _DeployGitApi_ListWorkDir_Handler, }, { MethodName: "getFileContent", Handler: _DeployGitApi_GetFileContent_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/deploy_git_api.proto", }
DeployGitApi_ServiceDesc is the grpc.ServiceDesc for DeployGitApi service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_proto_deploy_git_api_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDeployGitApiServer ¶
func RegisterDeployGitApiServer(s grpc.ServiceRegistrar, srv DeployGitApiServer)
Types ¶
type CheckPlanGitRequest ¶
type CheckPlanGitRequest struct { AccessToken string `protobuf:"bytes,1,opt,name=accessToken,proto3" json:"accessToken,omitempty"` DeployPlanId string `protobuf:"bytes,2,opt,name=deployPlanId,proto3" json:"deployPlanId,omitempty"` // contains filtered or unexported fields }
func (*CheckPlanGitRequest) Descriptor
deprecated
func (*CheckPlanGitRequest) Descriptor() ([]byte, []int)
Deprecated: Use CheckPlanGitRequest.ProtoReflect.Descriptor instead.
func (*CheckPlanGitRequest) GetAccessToken ¶
func (x *CheckPlanGitRequest) GetAccessToken() string
func (*CheckPlanGitRequest) GetDeployPlanId ¶
func (x *CheckPlanGitRequest) GetDeployPlanId() string
func (*CheckPlanGitRequest) ProtoMessage ¶
func (*CheckPlanGitRequest) ProtoMessage()
func (*CheckPlanGitRequest) ProtoReflect ¶
func (x *CheckPlanGitRequest) ProtoReflect() protoreflect.Message
func (*CheckPlanGitRequest) Reset ¶
func (x *CheckPlanGitRequest) Reset()
func (*CheckPlanGitRequest) String ¶
func (x *CheckPlanGitRequest) String() string
type CheckPlanGitResponse ¶
type CheckPlanGitResponse struct { Code CheckPlanGitResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=gitops_deploy_git_api.CheckPlanGitResponse_CODE" json:"code,omitempty"` ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"` HasGitConfig bool `protobuf:"varint,3,opt,name=hasGitConfig,proto3" json:"hasGitConfig,omitempty"` HasGitClone bool `protobuf:"varint,4,opt,name=hasGitClone,proto3" json:"hasGitClone,omitempty"` // contains filtered or unexported fields }
func (*CheckPlanGitResponse) Descriptor
deprecated
func (*CheckPlanGitResponse) Descriptor() ([]byte, []int)
Deprecated: Use CheckPlanGitResponse.ProtoReflect.Descriptor instead.
func (*CheckPlanGitResponse) GetCode ¶
func (x *CheckPlanGitResponse) GetCode() CheckPlanGitResponse_CODE
func (*CheckPlanGitResponse) GetErrMsg ¶
func (x *CheckPlanGitResponse) GetErrMsg() string
func (*CheckPlanGitResponse) GetHasGitClone ¶
func (x *CheckPlanGitResponse) GetHasGitClone() bool
func (*CheckPlanGitResponse) GetHasGitConfig ¶
func (x *CheckPlanGitResponse) GetHasGitConfig() bool
func (*CheckPlanGitResponse) ProtoMessage ¶
func (*CheckPlanGitResponse) ProtoMessage()
func (*CheckPlanGitResponse) ProtoReflect ¶
func (x *CheckPlanGitResponse) ProtoReflect() protoreflect.Message
func (*CheckPlanGitResponse) Reset ¶
func (x *CheckPlanGitResponse) Reset()
func (*CheckPlanGitResponse) String ¶
func (x *CheckPlanGitResponse) String() string
type CheckPlanGitResponse_CODE ¶
type CheckPlanGitResponse_CODE int32
const ( CheckPlanGitResponse_CODE_OK CheckPlanGitResponse_CODE = 0 CheckPlanGitResponse_CODE_WRONG_ACCESS_TOKEN CheckPlanGitResponse_CODE = 1 CheckPlanGitResponse_CODE_NO_PERMISSION CheckPlanGitResponse_CODE = 2 CheckPlanGitResponse_CODE_NO_PLAN CheckPlanGitResponse_CODE = 3 )
func (CheckPlanGitResponse_CODE) Descriptor ¶
func (CheckPlanGitResponse_CODE) Descriptor() protoreflect.EnumDescriptor
func (CheckPlanGitResponse_CODE) Enum ¶
func (x CheckPlanGitResponse_CODE) Enum() *CheckPlanGitResponse_CODE
func (CheckPlanGitResponse_CODE) EnumDescriptor
deprecated
func (CheckPlanGitResponse_CODE) EnumDescriptor() ([]byte, []int)
Deprecated: Use CheckPlanGitResponse_CODE.Descriptor instead.
func (CheckPlanGitResponse_CODE) Number ¶
func (x CheckPlanGitResponse_CODE) Number() protoreflect.EnumNumber
func (CheckPlanGitResponse_CODE) String ¶
func (x CheckPlanGitResponse_CODE) String() string
func (CheckPlanGitResponse_CODE) Type ¶
func (CheckPlanGitResponse_CODE) Type() protoreflect.EnumType
type CheckoutRequest ¶
type CheckoutRequest struct { AccessToken string `protobuf:"bytes,1,opt,name=accessToken,proto3" json:"accessToken,omitempty"` DeployPlanId string `protobuf:"bytes,2,opt,name=deployPlanId,proto3" json:"deployPlanId,omitempty"` Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` //分支,tag或commit id // contains filtered or unexported fields }
func (*CheckoutRequest) Descriptor
deprecated
func (*CheckoutRequest) Descriptor() ([]byte, []int)
Deprecated: Use CheckoutRequest.ProtoReflect.Descriptor instead.
func (*CheckoutRequest) GetAccessToken ¶
func (x *CheckoutRequest) GetAccessToken() string
func (*CheckoutRequest) GetDeployPlanId ¶
func (x *CheckoutRequest) GetDeployPlanId() string
func (*CheckoutRequest) GetTarget ¶
func (x *CheckoutRequest) GetTarget() string
func (*CheckoutRequest) ProtoMessage ¶
func (*CheckoutRequest) ProtoMessage()
func (*CheckoutRequest) ProtoReflect ¶
func (x *CheckoutRequest) ProtoReflect() protoreflect.Message
func (*CheckoutRequest) Reset ¶
func (x *CheckoutRequest) Reset()
func (*CheckoutRequest) String ¶
func (x *CheckoutRequest) String() string
type CheckoutResponse ¶
type CheckoutResponse struct { Code CheckoutResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=gitops_deploy_git_api.CheckoutResponse_CODE" json:"code,omitempty"` ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"` // contains filtered or unexported fields }
func (*CheckoutResponse) Descriptor
deprecated
func (*CheckoutResponse) Descriptor() ([]byte, []int)
Deprecated: Use CheckoutResponse.ProtoReflect.Descriptor instead.
func (*CheckoutResponse) GetCode ¶
func (x *CheckoutResponse) GetCode() CheckoutResponse_CODE
func (*CheckoutResponse) GetErrMsg ¶
func (x *CheckoutResponse) GetErrMsg() string
func (*CheckoutResponse) ProtoMessage ¶
func (*CheckoutResponse) ProtoMessage()
func (*CheckoutResponse) ProtoReflect ¶
func (x *CheckoutResponse) ProtoReflect() protoreflect.Message
func (*CheckoutResponse) Reset ¶
func (x *CheckoutResponse) Reset()
func (*CheckoutResponse) String ¶
func (x *CheckoutResponse) String() string
type CheckoutResponse_CODE ¶
type CheckoutResponse_CODE int32
const ( CheckoutResponse_CODE_OK CheckoutResponse_CODE = 0 CheckoutResponse_CODE_WRONG_ACCESS_TOKEN CheckoutResponse_CODE = 1 CheckoutResponse_CODE_NO_PERMISSION CheckoutResponse_CODE = 2 CheckoutResponse_CODE_NO_PLAN CheckoutResponse_CODE = 3 CheckoutResponse_CODE_NO_GIT_CONFIG CheckoutResponse_CODE = 4 CheckoutResponse_CODE_NO_GIT_CLONE CheckoutResponse_CODE = 5 )
func (CheckoutResponse_CODE) Descriptor ¶
func (CheckoutResponse_CODE) Descriptor() protoreflect.EnumDescriptor
func (CheckoutResponse_CODE) Enum ¶
func (x CheckoutResponse_CODE) Enum() *CheckoutResponse_CODE
func (CheckoutResponse_CODE) EnumDescriptor
deprecated
func (CheckoutResponse_CODE) EnumDescriptor() ([]byte, []int)
Deprecated: Use CheckoutResponse_CODE.Descriptor instead.
func (CheckoutResponse_CODE) Number ¶
func (x CheckoutResponse_CODE) Number() protoreflect.EnumNumber
func (CheckoutResponse_CODE) String ¶
func (x CheckoutResponse_CODE) String() string
func (CheckoutResponse_CODE) Type ¶
func (CheckoutResponse_CODE) Type() protoreflect.EnumType
type CommitInfo ¶
type CommitInfo struct { Sha string `protobuf:"bytes,1,opt,name=sha,proto3" json:"sha,omitempty"` CommitUserName string `protobuf:"bytes,2,opt,name=commitUserName,proto3" json:"commitUserName,omitempty"` CommitEmail string `protobuf:"bytes,3,opt,name=commitEmail,proto3" json:"commitEmail,omitempty"` Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"` TimeStamp int64 `protobuf:"varint,5,opt,name=timeStamp,proto3" json:"timeStamp,omitempty"` // contains filtered or unexported fields }
func (*CommitInfo) Descriptor
deprecated
func (*CommitInfo) Descriptor() ([]byte, []int)
Deprecated: Use CommitInfo.ProtoReflect.Descriptor instead.
func (*CommitInfo) GetCommitEmail ¶
func (x *CommitInfo) GetCommitEmail() string
func (*CommitInfo) GetCommitUserName ¶
func (x *CommitInfo) GetCommitUserName() string
func (*CommitInfo) GetContent ¶
func (x *CommitInfo) GetContent() string
func (*CommitInfo) GetSha ¶
func (x *CommitInfo) GetSha() string
func (*CommitInfo) GetTimeStamp ¶
func (x *CommitInfo) GetTimeStamp() int64
func (*CommitInfo) ProtoMessage ¶
func (*CommitInfo) ProtoMessage()
func (*CommitInfo) ProtoReflect ¶
func (x *CommitInfo) ProtoReflect() protoreflect.Message
func (*CommitInfo) Reset ¶
func (x *CommitInfo) Reset()
func (*CommitInfo) String ¶
func (x *CommitInfo) String() string
type DeployGitApiClient ¶
type DeployGitApiClient interface { // 设置Git仓库 SetPlanGit(ctx context.Context, in *SetPlanGitRequest, opts ...grpc.CallOption) (*SetPlanGitResponse, error) // 检查仓库是否克隆 CheckPlanGit(ctx context.Context, in *CheckPlanGitRequest, opts ...grpc.CallOption) (*CheckPlanGitResponse, error) // 同步Git仓库 SyncPlanGit(ctx context.Context, in *SyncPlanGitRequest, opts ...grpc.CallOption) (*SyncPlanGitResponse, error) // 列出分支 ListBranch(ctx context.Context, in *ListBranchRequest, opts ...grpc.CallOption) (*ListBranchResponse, error) // 列出Tag ListTag(ctx context.Context, in *ListTagRequest, opts ...grpc.CallOption) (*ListTagResponse, error) // 列出Commit ListCommit(ctx context.Context, in *ListCommitRequest, opts ...grpc.CallOption) (*ListCommitResponse, error) // 切换目标(分支,Tag或commit) Checkout(ctx context.Context, in *CheckoutRequest, opts ...grpc.CallOption) (*CheckoutResponse, error) // 列出目录文件 ListWorkDir(ctx context.Context, in *ListWorkDirRequest, opts ...grpc.CallOption) (*ListWorkDirResponse, error) // 查看目录文件 GetFileContent(ctx context.Context, in *GetFileContentRequest, opts ...grpc.CallOption) (*GetFileContentResponse, error) }
DeployGitApiClient is the client API for DeployGitApi service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewDeployGitApiClient ¶
func NewDeployGitApiClient(cc grpc.ClientConnInterface) DeployGitApiClient
type DeployGitApiServer ¶
type DeployGitApiServer interface { // 设置Git仓库 SetPlanGit(context.Context, *SetPlanGitRequest) (*SetPlanGitResponse, error) // 检查仓库是否克隆 CheckPlanGit(context.Context, *CheckPlanGitRequest) (*CheckPlanGitResponse, error) // 同步Git仓库 SyncPlanGit(context.Context, *SyncPlanGitRequest) (*SyncPlanGitResponse, error) // 列出分支 ListBranch(context.Context, *ListBranchRequest) (*ListBranchResponse, error) // 列出Tag ListTag(context.Context, *ListTagRequest) (*ListTagResponse, error) // 列出Commit ListCommit(context.Context, *ListCommitRequest) (*ListCommitResponse, error) // 切换目标(分支,Tag或commit) Checkout(context.Context, *CheckoutRequest) (*CheckoutResponse, error) // 列出目录文件 ListWorkDir(context.Context, *ListWorkDirRequest) (*ListWorkDirResponse, error) // 查看目录文件 GetFileContent(context.Context, *GetFileContentRequest) (*GetFileContentResponse, error) // contains filtered or unexported methods }
DeployGitApiServer is the server API for DeployGitApi service. All implementations must embed UnimplementedDeployGitApiServer for forward compatibility
type GetFileContentRequest ¶
type GetFileContentRequest struct { AccessToken string `protobuf:"bytes,1,opt,name=accessToken,proto3" json:"accessToken,omitempty"` DeployPlanId string `protobuf:"bytes,2,opt,name=deployPlanId,proto3" json:"deployPlanId,omitempty"` FilePath string `protobuf:"bytes,3,opt,name=filePath,proto3" json:"filePath,omitempty"` HostId string `protobuf:"bytes,4,opt,name=hostId,proto3" json:"hostId,omitempty"` // contains filtered or unexported fields }
func (*GetFileContentRequest) Descriptor
deprecated
func (*GetFileContentRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetFileContentRequest.ProtoReflect.Descriptor instead.
func (*GetFileContentRequest) GetAccessToken ¶
func (x *GetFileContentRequest) GetAccessToken() string
func (*GetFileContentRequest) GetDeployPlanId ¶
func (x *GetFileContentRequest) GetDeployPlanId() string
func (*GetFileContentRequest) GetFilePath ¶
func (x *GetFileContentRequest) GetFilePath() string
func (*GetFileContentRequest) GetHostId ¶
func (x *GetFileContentRequest) GetHostId() string
func (*GetFileContentRequest) ProtoMessage ¶
func (*GetFileContentRequest) ProtoMessage()
func (*GetFileContentRequest) ProtoReflect ¶
func (x *GetFileContentRequest) ProtoReflect() protoreflect.Message
func (*GetFileContentRequest) Reset ¶
func (x *GetFileContentRequest) Reset()
func (*GetFileContentRequest) String ¶
func (x *GetFileContentRequest) String() string
type GetFileContentResponse ¶
type GetFileContentResponse struct { Code GetFileContentResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=gitops_deploy_git_api.GetFileContentResponse_CODE" json:"code,omitempty"` ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"` Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*GetFileContentResponse) Descriptor
deprecated
func (*GetFileContentResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetFileContentResponse.ProtoReflect.Descriptor instead.
func (*GetFileContentResponse) GetCode ¶
func (x *GetFileContentResponse) GetCode() GetFileContentResponse_CODE
func (*GetFileContentResponse) GetContent ¶
func (x *GetFileContentResponse) GetContent() string
func (*GetFileContentResponse) GetErrMsg ¶
func (x *GetFileContentResponse) GetErrMsg() string
func (*GetFileContentResponse) ProtoMessage ¶
func (*GetFileContentResponse) ProtoMessage()
func (*GetFileContentResponse) ProtoReflect ¶
func (x *GetFileContentResponse) ProtoReflect() protoreflect.Message
func (*GetFileContentResponse) Reset ¶
func (x *GetFileContentResponse) Reset()
func (*GetFileContentResponse) String ¶
func (x *GetFileContentResponse) String() string
type GetFileContentResponse_CODE ¶
type GetFileContentResponse_CODE int32
const ( GetFileContentResponse_CODE_OK GetFileContentResponse_CODE = 0 GetFileContentResponse_CODE_WRONG_ACCESS_TOKEN GetFileContentResponse_CODE = 1 GetFileContentResponse_CODE_NO_PERMISSION GetFileContentResponse_CODE = 2 GetFileContentResponse_CODE_NO_PLAN GetFileContentResponse_CODE = 3 GetFileContentResponse_CODE_NO_GIT_CONFIG GetFileContentResponse_CODE = 4 GetFileContentResponse_CODE_NO_GIT_CLONE GetFileContentResponse_CODE = 5 GetFileContentResponse_CODE_NO_HOST GetFileContentResponse_CODE = 6 )
func (GetFileContentResponse_CODE) Descriptor ¶
func (GetFileContentResponse_CODE) Descriptor() protoreflect.EnumDescriptor
func (GetFileContentResponse_CODE) Enum ¶
func (x GetFileContentResponse_CODE) Enum() *GetFileContentResponse_CODE
func (GetFileContentResponse_CODE) EnumDescriptor
deprecated
func (GetFileContentResponse_CODE) EnumDescriptor() ([]byte, []int)
Deprecated: Use GetFileContentResponse_CODE.Descriptor instead.
func (GetFileContentResponse_CODE) Number ¶
func (x GetFileContentResponse_CODE) Number() protoreflect.EnumNumber
func (GetFileContentResponse_CODE) String ¶
func (x GetFileContentResponse_CODE) String() string
func (GetFileContentResponse_CODE) Type ¶
func (GetFileContentResponse_CODE) Type() protoreflect.EnumType
type ListBranchRequest ¶
type ListBranchRequest struct { AccessToken string `protobuf:"bytes,1,opt,name=accessToken,proto3" json:"accessToken,omitempty"` DeployPlanId string `protobuf:"bytes,2,opt,name=deployPlanId,proto3" json:"deployPlanId,omitempty"` // contains filtered or unexported fields }
func (*ListBranchRequest) Descriptor
deprecated
func (*ListBranchRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListBranchRequest.ProtoReflect.Descriptor instead.
func (*ListBranchRequest) GetAccessToken ¶
func (x *ListBranchRequest) GetAccessToken() string
func (*ListBranchRequest) GetDeployPlanId ¶
func (x *ListBranchRequest) GetDeployPlanId() string
func (*ListBranchRequest) ProtoMessage ¶
func (*ListBranchRequest) ProtoMessage()
func (*ListBranchRequest) ProtoReflect ¶
func (x *ListBranchRequest) ProtoReflect() protoreflect.Message
func (*ListBranchRequest) Reset ¶
func (x *ListBranchRequest) Reset()
func (*ListBranchRequest) String ¶
func (x *ListBranchRequest) String() string
type ListBranchResponse ¶
type ListBranchResponse struct { Code ListBranchResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=gitops_deploy_git_api.ListBranchResponse_CODE" json:"code,omitempty"` ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"` BranchList []string `protobuf:"bytes,3,rep,name=branchList,proto3" json:"branchList,omitempty"` // contains filtered or unexported fields }
func (*ListBranchResponse) Descriptor
deprecated
func (*ListBranchResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListBranchResponse.ProtoReflect.Descriptor instead.
func (*ListBranchResponse) GetBranchList ¶
func (x *ListBranchResponse) GetBranchList() []string
func (*ListBranchResponse) GetCode ¶
func (x *ListBranchResponse) GetCode() ListBranchResponse_CODE
func (*ListBranchResponse) GetErrMsg ¶
func (x *ListBranchResponse) GetErrMsg() string
func (*ListBranchResponse) ProtoMessage ¶
func (*ListBranchResponse) ProtoMessage()
func (*ListBranchResponse) ProtoReflect ¶
func (x *ListBranchResponse) ProtoReflect() protoreflect.Message
func (*ListBranchResponse) Reset ¶
func (x *ListBranchResponse) Reset()
func (*ListBranchResponse) String ¶
func (x *ListBranchResponse) String() string
type ListBranchResponse_CODE ¶
type ListBranchResponse_CODE int32
const ( ListBranchResponse_CODE_OK ListBranchResponse_CODE = 0 ListBranchResponse_CODE_WRONG_ACCESS_TOKEN ListBranchResponse_CODE = 1 ListBranchResponse_CODE_NO_PERMISSION ListBranchResponse_CODE = 2 ListBranchResponse_CODE_NO_PLAN ListBranchResponse_CODE = 3 ListBranchResponse_CODE_NO_GIT_CONFIG ListBranchResponse_CODE = 4 ListBranchResponse_CODE_NO_GIT_CLONE ListBranchResponse_CODE = 5 )
func (ListBranchResponse_CODE) Descriptor ¶
func (ListBranchResponse_CODE) Descriptor() protoreflect.EnumDescriptor
func (ListBranchResponse_CODE) Enum ¶
func (x ListBranchResponse_CODE) Enum() *ListBranchResponse_CODE
func (ListBranchResponse_CODE) EnumDescriptor
deprecated
func (ListBranchResponse_CODE) EnumDescriptor() ([]byte, []int)
Deprecated: Use ListBranchResponse_CODE.Descriptor instead.
func (ListBranchResponse_CODE) Number ¶
func (x ListBranchResponse_CODE) Number() protoreflect.EnumNumber
func (ListBranchResponse_CODE) String ¶
func (x ListBranchResponse_CODE) String() string
func (ListBranchResponse_CODE) Type ¶
func (ListBranchResponse_CODE) Type() protoreflect.EnumType
type ListCommitRequest ¶
type ListCommitRequest struct { AccessToken string `protobuf:"bytes,1,opt,name=accessToken,proto3" json:"accessToken,omitempty"` DeployPlanId string `protobuf:"bytes,2,opt,name=deployPlanId,proto3" json:"deployPlanId,omitempty"` // contains filtered or unexported fields }
func (*ListCommitRequest) Descriptor
deprecated
func (*ListCommitRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListCommitRequest.ProtoReflect.Descriptor instead.
func (*ListCommitRequest) GetAccessToken ¶
func (x *ListCommitRequest) GetAccessToken() string
func (*ListCommitRequest) GetDeployPlanId ¶
func (x *ListCommitRequest) GetDeployPlanId() string
func (*ListCommitRequest) ProtoMessage ¶
func (*ListCommitRequest) ProtoMessage()
func (*ListCommitRequest) ProtoReflect ¶
func (x *ListCommitRequest) ProtoReflect() protoreflect.Message
func (*ListCommitRequest) Reset ¶
func (x *ListCommitRequest) Reset()
func (*ListCommitRequest) String ¶
func (x *ListCommitRequest) String() string
type ListCommitResponse ¶
type ListCommitResponse struct { Code ListCommitResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=gitops_deploy_git_api.ListCommitResponse_CODE" json:"code,omitempty"` ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"` CommitList []*CommitInfo `protobuf:"bytes,3,rep,name=commitList,proto3" json:"commitList,omitempty"` // contains filtered or unexported fields }
func (*ListCommitResponse) Descriptor
deprecated
func (*ListCommitResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListCommitResponse.ProtoReflect.Descriptor instead.
func (*ListCommitResponse) GetCode ¶
func (x *ListCommitResponse) GetCode() ListCommitResponse_CODE
func (*ListCommitResponse) GetCommitList ¶
func (x *ListCommitResponse) GetCommitList() []*CommitInfo
func (*ListCommitResponse) GetErrMsg ¶
func (x *ListCommitResponse) GetErrMsg() string
func (*ListCommitResponse) ProtoMessage ¶
func (*ListCommitResponse) ProtoMessage()
func (*ListCommitResponse) ProtoReflect ¶
func (x *ListCommitResponse) ProtoReflect() protoreflect.Message
func (*ListCommitResponse) Reset ¶
func (x *ListCommitResponse) Reset()
func (*ListCommitResponse) String ¶
func (x *ListCommitResponse) String() string
type ListCommitResponse_CODE ¶
type ListCommitResponse_CODE int32
const ( ListCommitResponse_CODE_OK ListCommitResponse_CODE = 0 ListCommitResponse_CODE_WRONG_ACCESS_TOKEN ListCommitResponse_CODE = 1 ListCommitResponse_CODE_NO_PERMISSION ListCommitResponse_CODE = 2 ListCommitResponse_CODE_NO_PLAN ListCommitResponse_CODE = 3 ListCommitResponse_CODE_NO_GIT_CONFIG ListCommitResponse_CODE = 4 ListCommitResponse_CODE_NO_GIT_CLONE ListCommitResponse_CODE = 5 )
func (ListCommitResponse_CODE) Descriptor ¶
func (ListCommitResponse_CODE) Descriptor() protoreflect.EnumDescriptor
func (ListCommitResponse_CODE) Enum ¶
func (x ListCommitResponse_CODE) Enum() *ListCommitResponse_CODE
func (ListCommitResponse_CODE) EnumDescriptor
deprecated
func (ListCommitResponse_CODE) EnumDescriptor() ([]byte, []int)
Deprecated: Use ListCommitResponse_CODE.Descriptor instead.
func (ListCommitResponse_CODE) Number ¶
func (x ListCommitResponse_CODE) Number() protoreflect.EnumNumber
func (ListCommitResponse_CODE) String ¶
func (x ListCommitResponse_CODE) String() string
func (ListCommitResponse_CODE) Type ¶
func (ListCommitResponse_CODE) Type() protoreflect.EnumType
type ListTagRequest ¶
type ListTagRequest struct { AccessToken string `protobuf:"bytes,1,opt,name=accessToken,proto3" json:"accessToken,omitempty"` DeployPlanId string `protobuf:"bytes,2,opt,name=deployPlanId,proto3" json:"deployPlanId,omitempty"` // contains filtered or unexported fields }
func (*ListTagRequest) Descriptor
deprecated
func (*ListTagRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListTagRequest.ProtoReflect.Descriptor instead.
func (*ListTagRequest) GetAccessToken ¶
func (x *ListTagRequest) GetAccessToken() string
func (*ListTagRequest) GetDeployPlanId ¶
func (x *ListTagRequest) GetDeployPlanId() string
func (*ListTagRequest) ProtoMessage ¶
func (*ListTagRequest) ProtoMessage()
func (*ListTagRequest) ProtoReflect ¶
func (x *ListTagRequest) ProtoReflect() protoreflect.Message
func (*ListTagRequest) Reset ¶
func (x *ListTagRequest) Reset()
func (*ListTagRequest) String ¶
func (x *ListTagRequest) String() string
type ListTagResponse ¶
type ListTagResponse struct { Code ListTagResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=gitops_deploy_git_api.ListTagResponse_CODE" json:"code,omitempty"` ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"` TagList []string `protobuf:"bytes,3,rep,name=tagList,proto3" json:"tagList,omitempty"` // contains filtered or unexported fields }
func (*ListTagResponse) Descriptor
deprecated
func (*ListTagResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListTagResponse.ProtoReflect.Descriptor instead.
func (*ListTagResponse) GetCode ¶
func (x *ListTagResponse) GetCode() ListTagResponse_CODE
func (*ListTagResponse) GetErrMsg ¶
func (x *ListTagResponse) GetErrMsg() string
func (*ListTagResponse) GetTagList ¶
func (x *ListTagResponse) GetTagList() []string
func (*ListTagResponse) ProtoMessage ¶
func (*ListTagResponse) ProtoMessage()
func (*ListTagResponse) ProtoReflect ¶
func (x *ListTagResponse) ProtoReflect() protoreflect.Message
func (*ListTagResponse) Reset ¶
func (x *ListTagResponse) Reset()
func (*ListTagResponse) String ¶
func (x *ListTagResponse) String() string
type ListTagResponse_CODE ¶
type ListTagResponse_CODE int32
const ( ListTagResponse_CODE_OK ListTagResponse_CODE = 0 ListTagResponse_CODE_WRONG_ACCESS_TOKEN ListTagResponse_CODE = 1 ListTagResponse_CODE_NO_PERMISSION ListTagResponse_CODE = 2 ListTagResponse_CODE_NO_PLAN ListTagResponse_CODE = 3 ListTagResponse_CODE_NO_GIT_CONFIG ListTagResponse_CODE = 4 ListTagResponse_CODE_NO_GIT_CLONE ListTagResponse_CODE = 5 )
func (ListTagResponse_CODE) Descriptor ¶
func (ListTagResponse_CODE) Descriptor() protoreflect.EnumDescriptor
func (ListTagResponse_CODE) Enum ¶
func (x ListTagResponse_CODE) Enum() *ListTagResponse_CODE
func (ListTagResponse_CODE) EnumDescriptor
deprecated
func (ListTagResponse_CODE) EnumDescriptor() ([]byte, []int)
Deprecated: Use ListTagResponse_CODE.Descriptor instead.
func (ListTagResponse_CODE) Number ¶
func (x ListTagResponse_CODE) Number() protoreflect.EnumNumber
func (ListTagResponse_CODE) String ¶
func (x ListTagResponse_CODE) String() string
func (ListTagResponse_CODE) Type ¶
func (ListTagResponse_CODE) Type() protoreflect.EnumType
type ListWorkDirRequest ¶
type ListWorkDirRequest struct { AccessToken string `protobuf:"bytes,1,opt,name=accessToken,proto3" json:"accessToken,omitempty"` DeployPlanId string `protobuf:"bytes,2,opt,name=deployPlanId,proto3" json:"deployPlanId,omitempty"` BaseDir string `protobuf:"bytes,3,opt,name=baseDir,proto3" json:"baseDir,omitempty"` // contains filtered or unexported fields }
func (*ListWorkDirRequest) Descriptor
deprecated
func (*ListWorkDirRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListWorkDirRequest.ProtoReflect.Descriptor instead.
func (*ListWorkDirRequest) GetAccessToken ¶
func (x *ListWorkDirRequest) GetAccessToken() string
func (*ListWorkDirRequest) GetBaseDir ¶
func (x *ListWorkDirRequest) GetBaseDir() string
func (*ListWorkDirRequest) GetDeployPlanId ¶
func (x *ListWorkDirRequest) GetDeployPlanId() string
func (*ListWorkDirRequest) ProtoMessage ¶
func (*ListWorkDirRequest) ProtoMessage()
func (*ListWorkDirRequest) ProtoReflect ¶
func (x *ListWorkDirRequest) ProtoReflect() protoreflect.Message
func (*ListWorkDirRequest) Reset ¶
func (x *ListWorkDirRequest) Reset()
func (*ListWorkDirRequest) String ¶
func (x *ListWorkDirRequest) String() string
type ListWorkDirResponse ¶
type ListWorkDirResponse struct { Code ListWorkDirResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=gitops_deploy_git_api.ListWorkDirResponse_CODE" json:"code,omitempty"` ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"` PathInfoList []*PathInfo `protobuf:"bytes,3,rep,name=pathInfoList,proto3" json:"pathInfoList,omitempty"` // contains filtered or unexported fields }
func (*ListWorkDirResponse) Descriptor
deprecated
func (*ListWorkDirResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListWorkDirResponse.ProtoReflect.Descriptor instead.
func (*ListWorkDirResponse) GetCode ¶
func (x *ListWorkDirResponse) GetCode() ListWorkDirResponse_CODE
func (*ListWorkDirResponse) GetErrMsg ¶
func (x *ListWorkDirResponse) GetErrMsg() string
func (*ListWorkDirResponse) GetPathInfoList ¶
func (x *ListWorkDirResponse) GetPathInfoList() []*PathInfo
func (*ListWorkDirResponse) ProtoMessage ¶
func (*ListWorkDirResponse) ProtoMessage()
func (*ListWorkDirResponse) ProtoReflect ¶
func (x *ListWorkDirResponse) ProtoReflect() protoreflect.Message
func (*ListWorkDirResponse) Reset ¶
func (x *ListWorkDirResponse) Reset()
func (*ListWorkDirResponse) String ¶
func (x *ListWorkDirResponse) String() string
type ListWorkDirResponse_CODE ¶
type ListWorkDirResponse_CODE int32
const ( ListWorkDirResponse_CODE_OK ListWorkDirResponse_CODE = 0 ListWorkDirResponse_CODE_WRONG_ACCESS_TOKEN ListWorkDirResponse_CODE = 1 ListWorkDirResponse_CODE_NO_PERMISSION ListWorkDirResponse_CODE = 2 ListWorkDirResponse_CODE_NO_PLAN ListWorkDirResponse_CODE = 3 ListWorkDirResponse_CODE_NO_GIT_CONFIG ListWorkDirResponse_CODE = 4 ListWorkDirResponse_CODE_NO_GIT_CLONE ListWorkDirResponse_CODE = 5 )
func (ListWorkDirResponse_CODE) Descriptor ¶
func (ListWorkDirResponse_CODE) Descriptor() protoreflect.EnumDescriptor
func (ListWorkDirResponse_CODE) Enum ¶
func (x ListWorkDirResponse_CODE) Enum() *ListWorkDirResponse_CODE
func (ListWorkDirResponse_CODE) EnumDescriptor
deprecated
func (ListWorkDirResponse_CODE) EnumDescriptor() ([]byte, []int)
Deprecated: Use ListWorkDirResponse_CODE.Descriptor instead.
func (ListWorkDirResponse_CODE) Number ¶
func (x ListWorkDirResponse_CODE) Number() protoreflect.EnumNumber
func (ListWorkDirResponse_CODE) String ¶
func (x ListWorkDirResponse_CODE) String() string
func (ListWorkDirResponse_CODE) Type ¶
func (ListWorkDirResponse_CODE) Type() protoreflect.EnumType
type PathInfo ¶
type PathInfo struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` FullName string `protobuf:"bytes,2,opt,name=fullName,proto3" json:"fullName,omitempty"` Dir bool `protobuf:"varint,3,opt,name=dir,proto3" json:"dir,omitempty"` // contains filtered or unexported fields }
func (*PathInfo) ProtoReflect ¶
func (x *PathInfo) ProtoReflect() protoreflect.Message
type SetPlanGitRequest ¶
type SetPlanGitRequest struct { AccessToken string `protobuf:"bytes,1,opt,name=accessToken,proto3" json:"accessToken,omitempty"` DeployPlanId string `protobuf:"bytes,2,opt,name=deployPlanId,proto3" json:"deployPlanId,omitempty"` GitUrl string `protobuf:"bytes,3,opt,name=gitUrl,proto3" json:"gitUrl,omitempty"` GitUserName string `protobuf:"bytes,4,opt,name=gitUserName,proto3" json:"gitUserName,omitempty"` GitPassword string `protobuf:"bytes,5,opt,name=gitPassword,proto3" json:"gitPassword,omitempty"` GitSshKey string `protobuf:"bytes,6,opt,name=gitSshKey,proto3" json:"gitSshKey,omitempty"` // contains filtered or unexported fields }
func (*SetPlanGitRequest) Descriptor
deprecated
func (*SetPlanGitRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetPlanGitRequest.ProtoReflect.Descriptor instead.
func (*SetPlanGitRequest) GetAccessToken ¶
func (x *SetPlanGitRequest) GetAccessToken() string
func (*SetPlanGitRequest) GetDeployPlanId ¶
func (x *SetPlanGitRequest) GetDeployPlanId() string
func (*SetPlanGitRequest) GetGitPassword ¶
func (x *SetPlanGitRequest) GetGitPassword() string
func (*SetPlanGitRequest) GetGitSshKey ¶
func (x *SetPlanGitRequest) GetGitSshKey() string
func (*SetPlanGitRequest) GetGitUrl ¶
func (x *SetPlanGitRequest) GetGitUrl() string
func (*SetPlanGitRequest) GetGitUserName ¶
func (x *SetPlanGitRequest) GetGitUserName() string
func (*SetPlanGitRequest) ProtoMessage ¶
func (*SetPlanGitRequest) ProtoMessage()
func (*SetPlanGitRequest) ProtoReflect ¶
func (x *SetPlanGitRequest) ProtoReflect() protoreflect.Message
func (*SetPlanGitRequest) Reset ¶
func (x *SetPlanGitRequest) Reset()
func (*SetPlanGitRequest) String ¶
func (x *SetPlanGitRequest) String() string
type SetPlanGitResponse ¶
type SetPlanGitResponse struct { Code SetPlanGitResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=gitops_deploy_git_api.SetPlanGitResponse_CODE" json:"code,omitempty"` ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"` // contains filtered or unexported fields }
func (*SetPlanGitResponse) Descriptor
deprecated
func (*SetPlanGitResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetPlanGitResponse.ProtoReflect.Descriptor instead.
func (*SetPlanGitResponse) GetCode ¶
func (x *SetPlanGitResponse) GetCode() SetPlanGitResponse_CODE
func (*SetPlanGitResponse) GetErrMsg ¶
func (x *SetPlanGitResponse) GetErrMsg() string
func (*SetPlanGitResponse) ProtoMessage ¶
func (*SetPlanGitResponse) ProtoMessage()
func (*SetPlanGitResponse) ProtoReflect ¶
func (x *SetPlanGitResponse) ProtoReflect() protoreflect.Message
func (*SetPlanGitResponse) Reset ¶
func (x *SetPlanGitResponse) Reset()
func (*SetPlanGitResponse) String ¶
func (x *SetPlanGitResponse) String() string
type SetPlanGitResponse_CODE ¶
type SetPlanGitResponse_CODE int32
const ( SetPlanGitResponse_CODE_OK SetPlanGitResponse_CODE = 0 SetPlanGitResponse_CODE_WRONG_ACCESS_TOKEN SetPlanGitResponse_CODE = 1 SetPlanGitResponse_CODE_NO_PERMISSION SetPlanGitResponse_CODE = 2 SetPlanGitResponse_CODE_NO_PLAN SetPlanGitResponse_CODE = 3 SetPlanGitResponse_CODE_WRONG_SSH_KEY SetPlanGitResponse_CODE = 4 )
func (SetPlanGitResponse_CODE) Descriptor ¶
func (SetPlanGitResponse_CODE) Descriptor() protoreflect.EnumDescriptor
func (SetPlanGitResponse_CODE) Enum ¶
func (x SetPlanGitResponse_CODE) Enum() *SetPlanGitResponse_CODE
func (SetPlanGitResponse_CODE) EnumDescriptor
deprecated
func (SetPlanGitResponse_CODE) EnumDescriptor() ([]byte, []int)
Deprecated: Use SetPlanGitResponse_CODE.Descriptor instead.
func (SetPlanGitResponse_CODE) Number ¶
func (x SetPlanGitResponse_CODE) Number() protoreflect.EnumNumber
func (SetPlanGitResponse_CODE) String ¶
func (x SetPlanGitResponse_CODE) String() string
func (SetPlanGitResponse_CODE) Type ¶
func (SetPlanGitResponse_CODE) Type() protoreflect.EnumType
type SyncPlanGitRequest ¶
type SyncPlanGitRequest struct { AccessToken string `protobuf:"bytes,1,opt,name=accessToken,proto3" json:"accessToken,omitempty"` DeployPlanId string `protobuf:"bytes,2,opt,name=deployPlanId,proto3" json:"deployPlanId,omitempty"` // contains filtered or unexported fields }
func (*SyncPlanGitRequest) Descriptor
deprecated
func (*SyncPlanGitRequest) Descriptor() ([]byte, []int)
Deprecated: Use SyncPlanGitRequest.ProtoReflect.Descriptor instead.
func (*SyncPlanGitRequest) GetAccessToken ¶
func (x *SyncPlanGitRequest) GetAccessToken() string
func (*SyncPlanGitRequest) GetDeployPlanId ¶
func (x *SyncPlanGitRequest) GetDeployPlanId() string
func (*SyncPlanGitRequest) ProtoMessage ¶
func (*SyncPlanGitRequest) ProtoMessage()
func (*SyncPlanGitRequest) ProtoReflect ¶
func (x *SyncPlanGitRequest) ProtoReflect() protoreflect.Message
func (*SyncPlanGitRequest) Reset ¶
func (x *SyncPlanGitRequest) Reset()
func (*SyncPlanGitRequest) String ¶
func (x *SyncPlanGitRequest) String() string
type SyncPlanGitResponse ¶
type SyncPlanGitResponse struct { Code SyncPlanGitResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=gitops_deploy_git_api.SyncPlanGitResponse_CODE" json:"code,omitempty"` ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"` // contains filtered or unexported fields }
func (*SyncPlanGitResponse) Descriptor
deprecated
func (*SyncPlanGitResponse) Descriptor() ([]byte, []int)
Deprecated: Use SyncPlanGitResponse.ProtoReflect.Descriptor instead.
func (*SyncPlanGitResponse) GetCode ¶
func (x *SyncPlanGitResponse) GetCode() SyncPlanGitResponse_CODE
func (*SyncPlanGitResponse) GetErrMsg ¶
func (x *SyncPlanGitResponse) GetErrMsg() string
func (*SyncPlanGitResponse) ProtoMessage ¶
func (*SyncPlanGitResponse) ProtoMessage()
func (*SyncPlanGitResponse) ProtoReflect ¶
func (x *SyncPlanGitResponse) ProtoReflect() protoreflect.Message
func (*SyncPlanGitResponse) Reset ¶
func (x *SyncPlanGitResponse) Reset()
func (*SyncPlanGitResponse) String ¶
func (x *SyncPlanGitResponse) String() string
type SyncPlanGitResponse_CODE ¶
type SyncPlanGitResponse_CODE int32
const ( SyncPlanGitResponse_CODE_OK SyncPlanGitResponse_CODE = 0 SyncPlanGitResponse_CODE_WRONG_ACCESS_TOKEN SyncPlanGitResponse_CODE = 1 SyncPlanGitResponse_CODE_NO_PERMISSION SyncPlanGitResponse_CODE = 2 SyncPlanGitResponse_CODE_NO_PLAN SyncPlanGitResponse_CODE = 3 SyncPlanGitResponse_CODE_NO_GIT_CONFIG SyncPlanGitResponse_CODE = 4 SyncPlanGitResponse_CODE_GIT_PULL_ERROR SyncPlanGitResponse_CODE = 5 )
func (SyncPlanGitResponse_CODE) Descriptor ¶
func (SyncPlanGitResponse_CODE) Descriptor() protoreflect.EnumDescriptor
func (SyncPlanGitResponse_CODE) Enum ¶
func (x SyncPlanGitResponse_CODE) Enum() *SyncPlanGitResponse_CODE
func (SyncPlanGitResponse_CODE) EnumDescriptor
deprecated
func (SyncPlanGitResponse_CODE) EnumDescriptor() ([]byte, []int)
Deprecated: Use SyncPlanGitResponse_CODE.Descriptor instead.
func (SyncPlanGitResponse_CODE) Number ¶
func (x SyncPlanGitResponse_CODE) Number() protoreflect.EnumNumber
func (SyncPlanGitResponse_CODE) String ¶
func (x SyncPlanGitResponse_CODE) String() string
func (SyncPlanGitResponse_CODE) Type ¶
func (SyncPlanGitResponse_CODE) Type() protoreflect.EnumType
type UnimplementedDeployGitApiServer ¶
type UnimplementedDeployGitApiServer struct { }
UnimplementedDeployGitApiServer must be embedded to have forward compatible implementations.
func (UnimplementedDeployGitApiServer) CheckPlanGit ¶
func (UnimplementedDeployGitApiServer) CheckPlanGit(context.Context, *CheckPlanGitRequest) (*CheckPlanGitResponse, error)
func (UnimplementedDeployGitApiServer) Checkout ¶
func (UnimplementedDeployGitApiServer) Checkout(context.Context, *CheckoutRequest) (*CheckoutResponse, error)
func (UnimplementedDeployGitApiServer) GetFileContent ¶
func (UnimplementedDeployGitApiServer) GetFileContent(context.Context, *GetFileContentRequest) (*GetFileContentResponse, error)
func (UnimplementedDeployGitApiServer) ListBranch ¶
func (UnimplementedDeployGitApiServer) ListBranch(context.Context, *ListBranchRequest) (*ListBranchResponse, error)
func (UnimplementedDeployGitApiServer) ListCommit ¶
func (UnimplementedDeployGitApiServer) ListCommit(context.Context, *ListCommitRequest) (*ListCommitResponse, error)
func (UnimplementedDeployGitApiServer) ListTag ¶
func (UnimplementedDeployGitApiServer) ListTag(context.Context, *ListTagRequest) (*ListTagResponse, error)
func (UnimplementedDeployGitApiServer) ListWorkDir ¶
func (UnimplementedDeployGitApiServer) ListWorkDir(context.Context, *ListWorkDirRequest) (*ListWorkDirResponse, error)
func (UnimplementedDeployGitApiServer) SetPlanGit ¶
func (UnimplementedDeployGitApiServer) SetPlanGit(context.Context, *SetPlanGitRequest) (*SetPlanGitResponse, error)
func (UnimplementedDeployGitApiServer) SyncPlanGit ¶
func (UnimplementedDeployGitApiServer) SyncPlanGit(context.Context, *SyncPlanGitRequest) (*SyncPlanGitResponse, error)
type UnsafeDeployGitApiServer ¶
type UnsafeDeployGitApiServer interface {
// contains filtered or unexported methods
}
UnsafeDeployGitApiServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DeployGitApiServer will result in compilation errors.