Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterDeployMountAgentApiServer(s grpc.ServiceRegistrar, srv DeployMountAgentApiServer)
- func RegisterDeployMountApiServer(s grpc.ServiceRegistrar, srv DeployMountApiServer)
- type AgentGetMountDataRequest
- func (*AgentGetMountDataRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AgentGetMountDataRequest) GetBlob() []byte
- func (x *AgentGetMountDataRequest) GetDeployPlanId() string
- func (x *AgentGetMountDataRequest) GetExecId() string
- func (x *AgentGetMountDataRequest) GetFormat() string
- func (x *AgentGetMountDataRequest) GetHostId() string
- func (x *AgentGetMountDataRequest) GetPreSignData() string
- func (x *AgentGetMountDataRequest) GetRest() []byte
- func (*AgentGetMountDataRequest) ProtoMessage()
- func (x *AgentGetMountDataRequest) ProtoReflect() protoreflect.Message
- func (x *AgentGetMountDataRequest) Reset()
- func (x *AgentGetMountDataRequest) String() string
- type AgentGetMountDataResponse
- func (*AgentGetMountDataResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AgentGetMountDataResponse) GetCode() AgentGetMountDataResponse_CODE
- func (x *AgentGetMountDataResponse) GetData() []byte
- func (x *AgentGetMountDataResponse) GetErrMsg() string
- func (*AgentGetMountDataResponse) ProtoMessage()
- func (x *AgentGetMountDataResponse) ProtoReflect() protoreflect.Message
- func (x *AgentGetMountDataResponse) Reset()
- func (x *AgentGetMountDataResponse) String() string
- type AgentGetMountDataResponse_CODE
- func (AgentGetMountDataResponse_CODE) Descriptor() protoreflect.EnumDescriptor
- func (x AgentGetMountDataResponse_CODE) Enum() *AgentGetMountDataResponse_CODE
- func (AgentGetMountDataResponse_CODE) EnumDescriptor() ([]byte, []int)deprecated
- func (x AgentGetMountDataResponse_CODE) Number() protoreflect.EnumNumber
- func (x AgentGetMountDataResponse_CODE) String() string
- func (AgentGetMountDataResponse_CODE) Type() protoreflect.EnumType
- type AgentGetMountHostDirRequest
- func (*AgentGetMountHostDirRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AgentGetMountHostDirRequest) GetBlob() []byte
- func (x *AgentGetMountHostDirRequest) GetDeployPlanId() string
- func (x *AgentGetMountHostDirRequest) GetExecId() string
- func (x *AgentGetMountHostDirRequest) GetFormat() string
- func (x *AgentGetMountHostDirRequest) GetHostId() string
- func (x *AgentGetMountHostDirRequest) GetPreSignData() string
- func (x *AgentGetMountHostDirRequest) GetRest() []byte
- func (*AgentGetMountHostDirRequest) ProtoMessage()
- func (x *AgentGetMountHostDirRequest) ProtoReflect() protoreflect.Message
- func (x *AgentGetMountHostDirRequest) Reset()
- func (x *AgentGetMountHostDirRequest) String() string
- type AgentGetMountHostDirResponse
- func (*AgentGetMountHostDirResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AgentGetMountHostDirResponse) GetCode() AgentGetMountHostDirResponse_CODE
- func (x *AgentGetMountHostDirResponse) GetDeployType() DEPLOY_TYPE
- func (x *AgentGetMountHostDirResponse) GetErrMsg() string
- func (x *AgentGetMountHostDirResponse) GetK8SNameSpace() string
- func (x *AgentGetMountHostDirResponse) GetMountHostDir() string
- func (*AgentGetMountHostDirResponse) ProtoMessage()
- func (x *AgentGetMountHostDirResponse) ProtoReflect() protoreflect.Message
- func (x *AgentGetMountHostDirResponse) Reset()
- func (x *AgentGetMountHostDirResponse) String() string
- type AgentGetMountHostDirResponse_CODE
- func (AgentGetMountHostDirResponse_CODE) Descriptor() protoreflect.EnumDescriptor
- func (x AgentGetMountHostDirResponse_CODE) Enum() *AgentGetMountHostDirResponse_CODE
- func (AgentGetMountHostDirResponse_CODE) EnumDescriptor() ([]byte, []int)deprecated
- func (x AgentGetMountHostDirResponse_CODE) Number() protoreflect.EnumNumber
- func (x AgentGetMountHostDirResponse_CODE) String() string
- func (AgentGetMountHostDirResponse_CODE) Type() protoreflect.EnumType
- type DEPLOY_TYPE
- func (DEPLOY_TYPE) Descriptor() protoreflect.EnumDescriptor
- func (x DEPLOY_TYPE) Enum() *DEPLOY_TYPE
- func (DEPLOY_TYPE) EnumDescriptor() ([]byte, []int)deprecated
- func (x DEPLOY_TYPE) Number() protoreflect.EnumNumber
- func (x DEPLOY_TYPE) String() string
- func (DEPLOY_TYPE) Type() protoreflect.EnumType
- type DeployMountAgentApiClient
- type DeployMountAgentApiServer
- type DeployMountAgentApi_GetMountDataClient
- type DeployMountAgentApi_GetMountDataServer
- type DeployMountApiClient
- type DeployMountApiServer
- type GetMountRequest
- func (*GetMountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetMountRequest) GetAccessToken() string
- func (x *GetMountRequest) GetDeployPlanId() string
- func (*GetMountRequest) ProtoMessage()
- func (x *GetMountRequest) ProtoReflect() protoreflect.Message
- func (x *GetMountRequest) Reset()
- func (x *GetMountRequest) String() string
- type GetMountResponse
- func (*GetMountResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetMountResponse) GetCode() GetMountResponse_CODE
- func (x *GetMountResponse) GetErrMsg() string
- func (x *GetMountResponse) GetMount() *MountInfo
- func (*GetMountResponse) ProtoMessage()
- func (x *GetMountResponse) ProtoReflect() protoreflect.Message
- func (x *GetMountResponse) Reset()
- func (x *GetMountResponse) String() string
- type GetMountResponse_CODE
- func (GetMountResponse_CODE) Descriptor() protoreflect.EnumDescriptor
- func (x GetMountResponse_CODE) Enum() *GetMountResponse_CODE
- func (GetMountResponse_CODE) EnumDescriptor() ([]byte, []int)deprecated
- func (x GetMountResponse_CODE) Number() protoreflect.EnumNumber
- func (x GetMountResponse_CODE) String() string
- func (GetMountResponse_CODE) Type() protoreflect.EnumType
- type MountInfo
- func (*MountInfo) Descriptor() ([]byte, []int)deprecated
- func (x *MountInfo) GetDeployType() DEPLOY_TYPE
- func (x *MountInfo) GetGitSubDir() string
- func (x *MountInfo) GetK8SNameSpace() string
- func (x *MountInfo) GetMountHostDir() string
- func (*MountInfo) ProtoMessage()
- func (x *MountInfo) ProtoReflect() protoreflect.Message
- func (x *MountInfo) Reset()
- func (x *MountInfo) String() string
- type SetMountRequest
- func (*SetMountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetMountRequest) GetAccessToken() string
- func (x *SetMountRequest) GetDeployPlanId() string
- func (x *SetMountRequest) GetDeployType() DEPLOY_TYPE
- func (x *SetMountRequest) GetGitSubDir() string
- func (x *SetMountRequest) GetK8SNameSpace() string
- func (x *SetMountRequest) GetMountHostDir() string
- func (*SetMountRequest) ProtoMessage()
- func (x *SetMountRequest) ProtoReflect() protoreflect.Message
- func (x *SetMountRequest) Reset()
- func (x *SetMountRequest) String() string
- type SetMountResponse
- func (*SetMountResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SetMountResponse) GetCode() SetMountResponse_CODE
- func (x *SetMountResponse) GetErrMsg() string
- func (*SetMountResponse) ProtoMessage()
- func (x *SetMountResponse) ProtoReflect() protoreflect.Message
- func (x *SetMountResponse) Reset()
- func (x *SetMountResponse) String() string
- type SetMountResponse_CODE
- func (SetMountResponse_CODE) Descriptor() protoreflect.EnumDescriptor
- func (x SetMountResponse_CODE) Enum() *SetMountResponse_CODE
- func (SetMountResponse_CODE) EnumDescriptor() ([]byte, []int)deprecated
- func (x SetMountResponse_CODE) Number() protoreflect.EnumNumber
- func (x SetMountResponse_CODE) String() string
- func (SetMountResponse_CODE) Type() protoreflect.EnumType
- type UnimplementedDeployMountAgentApiServer
- type UnimplementedDeployMountApiServer
- type UnsafeDeployMountAgentApiServer
- type UnsafeDeployMountApiServer
Constants ¶
const ( DeployMountApi_SetMount_FullMethodName = "/gitops_deploy_mount_api.DeployMountApi/setMount" DeployMountApi_GetMount_FullMethodName = "/gitops_deploy_mount_api.DeployMountApi/getMount" )
const ( DeployMountAgentApi_GetMountHostDir_FullMethodName = "/gitops_deploy_mount_api.DeployMountAgentApi/getMountHostDir" DeployMountAgentApi_GetMountData_FullMethodName = "/gitops_deploy_mount_api.DeployMountAgentApi/getMountData" )
Variables ¶
var ( DEPLOY_TYPE_name = map[int32]string{ 0: "DEPLOY_DOCKER_COMPOSE", 1: "DEPLOY_K8S", } DEPLOY_TYPE_value = map[string]int32{ "DEPLOY_DOCKER_COMPOSE": 0, "DEPLOY_K8S": 1, } )
Enum value maps for DEPLOY_TYPE.
var ( SetMountResponse_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_WRONG_GIT_SUB_DIR", 7: "CODE_WRONG_HOST_DIR", } SetMountResponse_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_WRONG_GIT_SUB_DIR": 6, "CODE_WRONG_HOST_DIR": 7, } )
Enum value maps for SetMountResponse_CODE.
var ( GetMountResponse_CODE_name = map[int32]string{ 0: "CODE_OK", 1: "CODE_WRONG_ACCESS_TOKEN", 2: "CODE_NO_PERMISSION", 3: "CODE_NO_PLAN", 4: "CODE_NO_MOUNT", } GetMountResponse_CODE_value = map[string]int32{ "CODE_OK": 0, "CODE_WRONG_ACCESS_TOKEN": 1, "CODE_NO_PERMISSION": 2, "CODE_NO_PLAN": 3, "CODE_NO_MOUNT": 4, } )
Enum value maps for GetMountResponse_CODE.
var ( AgentGetMountHostDirResponse_CODE_name = map[int32]string{ 0: "CODE_OK", 1: "CODE_WRONG_PRE_SIGN_DATA", 2: "CODE_WRONG_SIGN", 3: "CODE_NO_EXEC", 4: "CODE_NO_HOST", 5: "CODE_NO_PLAN", } AgentGetMountHostDirResponse_CODE_value = map[string]int32{ "CODE_OK": 0, "CODE_WRONG_PRE_SIGN_DATA": 1, "CODE_WRONG_SIGN": 2, "CODE_NO_EXEC": 3, "CODE_NO_HOST": 4, "CODE_NO_PLAN": 5, } )
Enum value maps for AgentGetMountHostDirResponse_CODE.
var ( AgentGetMountDataResponse_CODE_name = map[int32]string{ 0: "CODE_OK", 1: "CODE_WRONG_PRE_SIGN_DATA", 2: "CODE_WRONG_SIGN", 3: "CODE_NO_EXEC", 4: "CODE_NO_HOST", 5: "CODE_NO_PLAN", } AgentGetMountDataResponse_CODE_value = map[string]int32{ "CODE_OK": 0, "CODE_WRONG_PRE_SIGN_DATA": 1, "CODE_WRONG_SIGN": 2, "CODE_NO_EXEC": 3, "CODE_NO_HOST": 4, "CODE_NO_PLAN": 5, } )
Enum value maps for AgentGetMountDataResponse_CODE.
var DeployMountAgentApi_ServiceDesc = grpc.ServiceDesc{ ServiceName: "gitops_deploy_mount_api.DeployMountAgentApi", HandlerType: (*DeployMountAgentApiServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "getMountHostDir", Handler: _DeployMountAgentApi_GetMountHostDir_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "getMountData", Handler: _DeployMountAgentApi_GetMountData_Handler, ServerStreams: true, }, }, Metadata: "proto/deploy_mount_api.proto", }
DeployMountAgentApi_ServiceDesc is the grpc.ServiceDesc for DeployMountAgentApi service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var DeployMountApi_ServiceDesc = grpc.ServiceDesc{ ServiceName: "gitops_deploy_mount_api.DeployMountApi", HandlerType: (*DeployMountApiServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "setMount", Handler: _DeployMountApi_SetMount_Handler, }, { MethodName: "getMount", Handler: _DeployMountApi_GetMount_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/deploy_mount_api.proto", }
DeployMountApi_ServiceDesc is the grpc.ServiceDesc for DeployMountApi 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_mount_api_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDeployMountAgentApiServer ¶
func RegisterDeployMountAgentApiServer(s grpc.ServiceRegistrar, srv DeployMountAgentApiServer)
func RegisterDeployMountApiServer ¶
func RegisterDeployMountApiServer(s grpc.ServiceRegistrar, srv DeployMountApiServer)
Types ¶
type AgentGetMountDataRequest ¶
type AgentGetMountDataRequest struct { HostId string `protobuf:"bytes,1,opt,name=hostId,proto3" json:"hostId,omitempty"` PreSignData string `protobuf:"bytes,2,opt,name=preSignData,proto3" json:"preSignData,omitempty"` Format string `protobuf:"bytes,3,opt,name=format,proto3" json:"format,omitempty"` Blob []byte `protobuf:"bytes,4,opt,name=blob,proto3" json:"blob,omitempty"` Rest []byte `protobuf:"bytes,5,opt,name=rest,proto3" json:"rest,omitempty"` ExecId string `protobuf:"bytes,6,opt,name=execId,proto3" json:"execId,omitempty"` DeployPlanId string `protobuf:"bytes,7,opt,name=deployPlanId,proto3" json:"deployPlanId,omitempty"` // contains filtered or unexported fields }
func (*AgentGetMountDataRequest) Descriptor
deprecated
func (*AgentGetMountDataRequest) Descriptor() ([]byte, []int)
Deprecated: Use AgentGetMountDataRequest.ProtoReflect.Descriptor instead.
func (*AgentGetMountDataRequest) GetBlob ¶
func (x *AgentGetMountDataRequest) GetBlob() []byte
func (*AgentGetMountDataRequest) GetDeployPlanId ¶
func (x *AgentGetMountDataRequest) GetDeployPlanId() string
func (*AgentGetMountDataRequest) GetExecId ¶
func (x *AgentGetMountDataRequest) GetExecId() string
func (*AgentGetMountDataRequest) GetFormat ¶
func (x *AgentGetMountDataRequest) GetFormat() string
func (*AgentGetMountDataRequest) GetHostId ¶
func (x *AgentGetMountDataRequest) GetHostId() string
func (*AgentGetMountDataRequest) GetPreSignData ¶
func (x *AgentGetMountDataRequest) GetPreSignData() string
func (*AgentGetMountDataRequest) GetRest ¶
func (x *AgentGetMountDataRequest) GetRest() []byte
func (*AgentGetMountDataRequest) ProtoMessage ¶
func (*AgentGetMountDataRequest) ProtoMessage()
func (*AgentGetMountDataRequest) ProtoReflect ¶
func (x *AgentGetMountDataRequest) ProtoReflect() protoreflect.Message
func (*AgentGetMountDataRequest) Reset ¶
func (x *AgentGetMountDataRequest) Reset()
func (*AgentGetMountDataRequest) String ¶
func (x *AgentGetMountDataRequest) String() string
type AgentGetMountDataResponse ¶
type AgentGetMountDataResponse struct { Code AgentGetMountDataResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=gitops_deploy_mount_api.AgentGetMountDataResponse_CODE" json:"code,omitempty"` ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"` Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*AgentGetMountDataResponse) Descriptor
deprecated
func (*AgentGetMountDataResponse) Descriptor() ([]byte, []int)
Deprecated: Use AgentGetMountDataResponse.ProtoReflect.Descriptor instead.
func (*AgentGetMountDataResponse) GetCode ¶
func (x *AgentGetMountDataResponse) GetCode() AgentGetMountDataResponse_CODE
func (*AgentGetMountDataResponse) GetData ¶
func (x *AgentGetMountDataResponse) GetData() []byte
func (*AgentGetMountDataResponse) GetErrMsg ¶
func (x *AgentGetMountDataResponse) GetErrMsg() string
func (*AgentGetMountDataResponse) ProtoMessage ¶
func (*AgentGetMountDataResponse) ProtoMessage()
func (*AgentGetMountDataResponse) ProtoReflect ¶
func (x *AgentGetMountDataResponse) ProtoReflect() protoreflect.Message
func (*AgentGetMountDataResponse) Reset ¶
func (x *AgentGetMountDataResponse) Reset()
func (*AgentGetMountDataResponse) String ¶
func (x *AgentGetMountDataResponse) String() string
type AgentGetMountDataResponse_CODE ¶
type AgentGetMountDataResponse_CODE int32
const ( AgentGetMountDataResponse_CODE_OK AgentGetMountDataResponse_CODE = 0 AgentGetMountDataResponse_CODE_WRONG_PRE_SIGN_DATA AgentGetMountDataResponse_CODE = 1 AgentGetMountDataResponse_CODE_WRONG_SIGN AgentGetMountDataResponse_CODE = 2 AgentGetMountDataResponse_CODE_NO_EXEC AgentGetMountDataResponse_CODE = 3 AgentGetMountDataResponse_CODE_NO_HOST AgentGetMountDataResponse_CODE = 4 AgentGetMountDataResponse_CODE_NO_PLAN AgentGetMountDataResponse_CODE = 5 )
func (AgentGetMountDataResponse_CODE) Descriptor ¶
func (AgentGetMountDataResponse_CODE) Descriptor() protoreflect.EnumDescriptor
func (AgentGetMountDataResponse_CODE) Enum ¶
func (x AgentGetMountDataResponse_CODE) Enum() *AgentGetMountDataResponse_CODE
func (AgentGetMountDataResponse_CODE) EnumDescriptor
deprecated
func (AgentGetMountDataResponse_CODE) EnumDescriptor() ([]byte, []int)
Deprecated: Use AgentGetMountDataResponse_CODE.Descriptor instead.
func (AgentGetMountDataResponse_CODE) Number ¶
func (x AgentGetMountDataResponse_CODE) Number() protoreflect.EnumNumber
func (AgentGetMountDataResponse_CODE) String ¶
func (x AgentGetMountDataResponse_CODE) String() string
func (AgentGetMountDataResponse_CODE) Type ¶
func (AgentGetMountDataResponse_CODE) Type() protoreflect.EnumType
type AgentGetMountHostDirRequest ¶
type AgentGetMountHostDirRequest struct { HostId string `protobuf:"bytes,1,opt,name=hostId,proto3" json:"hostId,omitempty"` PreSignData string `protobuf:"bytes,2,opt,name=preSignData,proto3" json:"preSignData,omitempty"` Format string `protobuf:"bytes,3,opt,name=format,proto3" json:"format,omitempty"` Blob []byte `protobuf:"bytes,4,opt,name=blob,proto3" json:"blob,omitempty"` Rest []byte `protobuf:"bytes,5,opt,name=rest,proto3" json:"rest,omitempty"` ExecId string `protobuf:"bytes,6,opt,name=execId,proto3" json:"execId,omitempty"` DeployPlanId string `protobuf:"bytes,7,opt,name=deployPlanId,proto3" json:"deployPlanId,omitempty"` // contains filtered or unexported fields }
func (*AgentGetMountHostDirRequest) Descriptor
deprecated
func (*AgentGetMountHostDirRequest) Descriptor() ([]byte, []int)
Deprecated: Use AgentGetMountHostDirRequest.ProtoReflect.Descriptor instead.
func (*AgentGetMountHostDirRequest) GetBlob ¶
func (x *AgentGetMountHostDirRequest) GetBlob() []byte
func (*AgentGetMountHostDirRequest) GetDeployPlanId ¶
func (x *AgentGetMountHostDirRequest) GetDeployPlanId() string
func (*AgentGetMountHostDirRequest) GetExecId ¶
func (x *AgentGetMountHostDirRequest) GetExecId() string
func (*AgentGetMountHostDirRequest) GetFormat ¶
func (x *AgentGetMountHostDirRequest) GetFormat() string
func (*AgentGetMountHostDirRequest) GetHostId ¶
func (x *AgentGetMountHostDirRequest) GetHostId() string
func (*AgentGetMountHostDirRequest) GetPreSignData ¶
func (x *AgentGetMountHostDirRequest) GetPreSignData() string
func (*AgentGetMountHostDirRequest) GetRest ¶
func (x *AgentGetMountHostDirRequest) GetRest() []byte
func (*AgentGetMountHostDirRequest) ProtoMessage ¶
func (*AgentGetMountHostDirRequest) ProtoMessage()
func (*AgentGetMountHostDirRequest) ProtoReflect ¶
func (x *AgentGetMountHostDirRequest) ProtoReflect() protoreflect.Message
func (*AgentGetMountHostDirRequest) Reset ¶
func (x *AgentGetMountHostDirRequest) Reset()
func (*AgentGetMountHostDirRequest) String ¶
func (x *AgentGetMountHostDirRequest) String() string
type AgentGetMountHostDirResponse ¶
type AgentGetMountHostDirResponse struct { Code AgentGetMountHostDirResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=gitops_deploy_mount_api.AgentGetMountHostDirResponse_CODE" json:"code,omitempty"` ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"` MountHostDir string `protobuf:"bytes,3,opt,name=mountHostDir,proto3" json:"mountHostDir,omitempty"` DeployType DEPLOY_TYPE `protobuf:"varint,4,opt,name=deployType,proto3,enum=gitops_deploy_mount_api.DEPLOY_TYPE" json:"deployType,omitempty"` K8SNameSpace string `protobuf:"bytes,5,opt,name=k8sNameSpace,proto3" json:"k8sNameSpace,omitempty"` //只有部署类型为k8s时设置 // contains filtered or unexported fields }
func (*AgentGetMountHostDirResponse) Descriptor
deprecated
func (*AgentGetMountHostDirResponse) Descriptor() ([]byte, []int)
Deprecated: Use AgentGetMountHostDirResponse.ProtoReflect.Descriptor instead.
func (*AgentGetMountHostDirResponse) GetCode ¶
func (x *AgentGetMountHostDirResponse) GetCode() AgentGetMountHostDirResponse_CODE
func (*AgentGetMountHostDirResponse) GetDeployType ¶
func (x *AgentGetMountHostDirResponse) GetDeployType() DEPLOY_TYPE
func (*AgentGetMountHostDirResponse) GetErrMsg ¶
func (x *AgentGetMountHostDirResponse) GetErrMsg() string
func (*AgentGetMountHostDirResponse) GetK8SNameSpace ¶
func (x *AgentGetMountHostDirResponse) GetK8SNameSpace() string
func (*AgentGetMountHostDirResponse) GetMountHostDir ¶
func (x *AgentGetMountHostDirResponse) GetMountHostDir() string
func (*AgentGetMountHostDirResponse) ProtoMessage ¶
func (*AgentGetMountHostDirResponse) ProtoMessage()
func (*AgentGetMountHostDirResponse) ProtoReflect ¶
func (x *AgentGetMountHostDirResponse) ProtoReflect() protoreflect.Message
func (*AgentGetMountHostDirResponse) Reset ¶
func (x *AgentGetMountHostDirResponse) Reset()
func (*AgentGetMountHostDirResponse) String ¶
func (x *AgentGetMountHostDirResponse) String() string
type AgentGetMountHostDirResponse_CODE ¶
type AgentGetMountHostDirResponse_CODE int32
const ( AgentGetMountHostDirResponse_CODE_OK AgentGetMountHostDirResponse_CODE = 0 AgentGetMountHostDirResponse_CODE_WRONG_PRE_SIGN_DATA AgentGetMountHostDirResponse_CODE = 1 AgentGetMountHostDirResponse_CODE_WRONG_SIGN AgentGetMountHostDirResponse_CODE = 2 AgentGetMountHostDirResponse_CODE_NO_EXEC AgentGetMountHostDirResponse_CODE = 3 AgentGetMountHostDirResponse_CODE_NO_HOST AgentGetMountHostDirResponse_CODE = 4 AgentGetMountHostDirResponse_CODE_NO_PLAN AgentGetMountHostDirResponse_CODE = 5 )
func (AgentGetMountHostDirResponse_CODE) Descriptor ¶
func (AgentGetMountHostDirResponse_CODE) Descriptor() protoreflect.EnumDescriptor
func (AgentGetMountHostDirResponse_CODE) Enum ¶
func (x AgentGetMountHostDirResponse_CODE) Enum() *AgentGetMountHostDirResponse_CODE
func (AgentGetMountHostDirResponse_CODE) EnumDescriptor
deprecated
func (AgentGetMountHostDirResponse_CODE) EnumDescriptor() ([]byte, []int)
Deprecated: Use AgentGetMountHostDirResponse_CODE.Descriptor instead.
func (AgentGetMountHostDirResponse_CODE) Number ¶
func (x AgentGetMountHostDirResponse_CODE) Number() protoreflect.EnumNumber
func (AgentGetMountHostDirResponse_CODE) String ¶
func (x AgentGetMountHostDirResponse_CODE) String() string
func (AgentGetMountHostDirResponse_CODE) Type ¶
func (AgentGetMountHostDirResponse_CODE) Type() protoreflect.EnumType
type DEPLOY_TYPE ¶
type DEPLOY_TYPE int32
const ( DEPLOY_TYPE_DEPLOY_DOCKER_COMPOSE DEPLOY_TYPE = 0 DEPLOY_TYPE_DEPLOY_K8S DEPLOY_TYPE = 1 )
func (DEPLOY_TYPE) Descriptor ¶
func (DEPLOY_TYPE) Descriptor() protoreflect.EnumDescriptor
func (DEPLOY_TYPE) Enum ¶
func (x DEPLOY_TYPE) Enum() *DEPLOY_TYPE
func (DEPLOY_TYPE) EnumDescriptor
deprecated
func (DEPLOY_TYPE) EnumDescriptor() ([]byte, []int)
Deprecated: Use DEPLOY_TYPE.Descriptor instead.
func (DEPLOY_TYPE) Number ¶
func (x DEPLOY_TYPE) Number() protoreflect.EnumNumber
func (DEPLOY_TYPE) String ¶
func (x DEPLOY_TYPE) String() string
func (DEPLOY_TYPE) Type ¶
func (DEPLOY_TYPE) Type() protoreflect.EnumType
type DeployMountAgentApiClient ¶
type DeployMountAgentApiClient interface { // 获取挂载目录 GetMountHostDir(ctx context.Context, in *AgentGetMountHostDirRequest, opts ...grpc.CallOption) (*AgentGetMountHostDirResponse, error) // 获取挂载数据 GetMountData(ctx context.Context, in *AgentGetMountDataRequest, opts ...grpc.CallOption) (DeployMountAgentApi_GetMountDataClient, error) }
DeployMountAgentApiClient is the client API for DeployMountAgentApi 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 NewDeployMountAgentApiClient ¶
func NewDeployMountAgentApiClient(cc grpc.ClientConnInterface) DeployMountAgentApiClient
type DeployMountAgentApiServer ¶
type DeployMountAgentApiServer interface { // 获取挂载目录 GetMountHostDir(context.Context, *AgentGetMountHostDirRequest) (*AgentGetMountHostDirResponse, error) // 获取挂载数据 GetMountData(*AgentGetMountDataRequest, DeployMountAgentApi_GetMountDataServer) error // contains filtered or unexported methods }
DeployMountAgentApiServer is the server API for DeployMountAgentApi service. All implementations must embed UnimplementedDeployMountAgentApiServer for forward compatibility
type DeployMountAgentApi_GetMountDataClient ¶
type DeployMountAgentApi_GetMountDataClient interface { Recv() (*AgentGetMountDataResponse, error) grpc.ClientStream }
type DeployMountAgentApi_GetMountDataServer ¶
type DeployMountAgentApi_GetMountDataServer interface { Send(*AgentGetMountDataResponse) error grpc.ServerStream }
type DeployMountApiClient ¶
type DeployMountApiClient interface { // 设置挂载路径 SetMount(ctx context.Context, in *SetMountRequest, opts ...grpc.CallOption) (*SetMountResponse, error) // 获取挂载路径 GetMount(ctx context.Context, in *GetMountRequest, opts ...grpc.CallOption) (*GetMountResponse, error) }
DeployMountApiClient is the client API for DeployMountApi 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 NewDeployMountApiClient ¶
func NewDeployMountApiClient(cc grpc.ClientConnInterface) DeployMountApiClient
type DeployMountApiServer ¶
type DeployMountApiServer interface { // 设置挂载路径 SetMount(context.Context, *SetMountRequest) (*SetMountResponse, error) // 获取挂载路径 GetMount(context.Context, *GetMountRequest) (*GetMountResponse, error) // contains filtered or unexported methods }
DeployMountApiServer is the server API for DeployMountApi service. All implementations must embed UnimplementedDeployMountApiServer for forward compatibility
type GetMountRequest ¶
type GetMountRequest 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 (*GetMountRequest) Descriptor
deprecated
func (*GetMountRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetMountRequest.ProtoReflect.Descriptor instead.
func (*GetMountRequest) GetAccessToken ¶
func (x *GetMountRequest) GetAccessToken() string
func (*GetMountRequest) GetDeployPlanId ¶
func (x *GetMountRequest) GetDeployPlanId() string
func (*GetMountRequest) ProtoMessage ¶
func (*GetMountRequest) ProtoMessage()
func (*GetMountRequest) ProtoReflect ¶
func (x *GetMountRequest) ProtoReflect() protoreflect.Message
func (*GetMountRequest) Reset ¶
func (x *GetMountRequest) Reset()
func (*GetMountRequest) String ¶
func (x *GetMountRequest) String() string
type GetMountResponse ¶
type GetMountResponse struct { Code GetMountResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=gitops_deploy_mount_api.GetMountResponse_CODE" json:"code,omitempty"` ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"` Mount *MountInfo `protobuf:"bytes,3,opt,name=mount,proto3" json:"mount,omitempty"` // contains filtered or unexported fields }
func (*GetMountResponse) Descriptor
deprecated
func (*GetMountResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetMountResponse.ProtoReflect.Descriptor instead.
func (*GetMountResponse) GetCode ¶
func (x *GetMountResponse) GetCode() GetMountResponse_CODE
func (*GetMountResponse) GetErrMsg ¶
func (x *GetMountResponse) GetErrMsg() string
func (*GetMountResponse) GetMount ¶
func (x *GetMountResponse) GetMount() *MountInfo
func (*GetMountResponse) ProtoMessage ¶
func (*GetMountResponse) ProtoMessage()
func (*GetMountResponse) ProtoReflect ¶
func (x *GetMountResponse) ProtoReflect() protoreflect.Message
func (*GetMountResponse) Reset ¶
func (x *GetMountResponse) Reset()
func (*GetMountResponse) String ¶
func (x *GetMountResponse) String() string
type GetMountResponse_CODE ¶
type GetMountResponse_CODE int32
const ( GetMountResponse_CODE_OK GetMountResponse_CODE = 0 GetMountResponse_CODE_WRONG_ACCESS_TOKEN GetMountResponse_CODE = 1 GetMountResponse_CODE_NO_PERMISSION GetMountResponse_CODE = 2 GetMountResponse_CODE_NO_PLAN GetMountResponse_CODE = 3 GetMountResponse_CODE_NO_MOUNT GetMountResponse_CODE = 4 )
func (GetMountResponse_CODE) Descriptor ¶
func (GetMountResponse_CODE) Descriptor() protoreflect.EnumDescriptor
func (GetMountResponse_CODE) Enum ¶
func (x GetMountResponse_CODE) Enum() *GetMountResponse_CODE
func (GetMountResponse_CODE) EnumDescriptor
deprecated
func (GetMountResponse_CODE) EnumDescriptor() ([]byte, []int)
Deprecated: Use GetMountResponse_CODE.Descriptor instead.
func (GetMountResponse_CODE) Number ¶
func (x GetMountResponse_CODE) Number() protoreflect.EnumNumber
func (GetMountResponse_CODE) String ¶
func (x GetMountResponse_CODE) String() string
func (GetMountResponse_CODE) Type ¶
func (GetMountResponse_CODE) Type() protoreflect.EnumType
type MountInfo ¶
type MountInfo struct { GitSubDir string `protobuf:"bytes,1,opt,name=GitSubDir,proto3" json:"GitSubDir,omitempty"` MountHostDir string `protobuf:"bytes,2,opt,name=mountHostDir,proto3" json:"mountHostDir,omitempty"` DeployType DEPLOY_TYPE `protobuf:"varint,3,opt,name=deployType,proto3,enum=gitops_deploy_mount_api.DEPLOY_TYPE" json:"deployType,omitempty"` K8SNameSpace string `protobuf:"bytes,4,opt,name=k8sNameSpace,proto3" json:"k8sNameSpace,omitempty"` //只有部署类型为k8s时设置 // contains filtered or unexported fields }
func (*MountInfo) GetDeployType ¶
func (x *MountInfo) GetDeployType() DEPLOY_TYPE
func (*MountInfo) ProtoReflect ¶
func (x *MountInfo) ProtoReflect() protoreflect.Message
type SetMountRequest ¶
type SetMountRequest 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"` GitSubDir string `protobuf:"bytes,3,opt,name=GitSubDir,proto3" json:"GitSubDir,omitempty"` MountHostDir string `protobuf:"bytes,4,opt,name=mountHostDir,proto3" json:"mountHostDir,omitempty"` DeployType DEPLOY_TYPE `protobuf:"varint,5,opt,name=deployType,proto3,enum=gitops_deploy_mount_api.DEPLOY_TYPE" json:"deployType,omitempty"` K8SNameSpace string `protobuf:"bytes,6,opt,name=k8sNameSpace,proto3" json:"k8sNameSpace,omitempty"` // contains filtered or unexported fields }
func (*SetMountRequest) Descriptor
deprecated
func (*SetMountRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetMountRequest.ProtoReflect.Descriptor instead.
func (*SetMountRequest) GetAccessToken ¶
func (x *SetMountRequest) GetAccessToken() string
func (*SetMountRequest) GetDeployPlanId ¶
func (x *SetMountRequest) GetDeployPlanId() string
func (*SetMountRequest) GetDeployType ¶
func (x *SetMountRequest) GetDeployType() DEPLOY_TYPE
func (*SetMountRequest) GetGitSubDir ¶
func (x *SetMountRequest) GetGitSubDir() string
func (*SetMountRequest) GetK8SNameSpace ¶
func (x *SetMountRequest) GetK8SNameSpace() string
func (*SetMountRequest) GetMountHostDir ¶
func (x *SetMountRequest) GetMountHostDir() string
func (*SetMountRequest) ProtoMessage ¶
func (*SetMountRequest) ProtoMessage()
func (*SetMountRequest) ProtoReflect ¶
func (x *SetMountRequest) ProtoReflect() protoreflect.Message
func (*SetMountRequest) Reset ¶
func (x *SetMountRequest) Reset()
func (*SetMountRequest) String ¶
func (x *SetMountRequest) String() string
type SetMountResponse ¶
type SetMountResponse struct { Code SetMountResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=gitops_deploy_mount_api.SetMountResponse_CODE" json:"code,omitempty"` ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"` // contains filtered or unexported fields }
func (*SetMountResponse) Descriptor
deprecated
func (*SetMountResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetMountResponse.ProtoReflect.Descriptor instead.
func (*SetMountResponse) GetCode ¶
func (x *SetMountResponse) GetCode() SetMountResponse_CODE
func (*SetMountResponse) GetErrMsg ¶
func (x *SetMountResponse) GetErrMsg() string
func (*SetMountResponse) ProtoMessage ¶
func (*SetMountResponse) ProtoMessage()
func (*SetMountResponse) ProtoReflect ¶
func (x *SetMountResponse) ProtoReflect() protoreflect.Message
func (*SetMountResponse) Reset ¶
func (x *SetMountResponse) Reset()
func (*SetMountResponse) String ¶
func (x *SetMountResponse) String() string
type SetMountResponse_CODE ¶
type SetMountResponse_CODE int32
const ( SetMountResponse_CODE_OK SetMountResponse_CODE = 0 SetMountResponse_CODE_WRONG_ACCESS_TOKEN SetMountResponse_CODE = 1 SetMountResponse_CODE_NO_PERMISSION SetMountResponse_CODE = 2 SetMountResponse_CODE_NO_PLAN SetMountResponse_CODE = 3 SetMountResponse_CODE_NO_GIT_CONFIG SetMountResponse_CODE = 4 SetMountResponse_CODE_NO_GIT_CLONE SetMountResponse_CODE = 5 SetMountResponse_CODE_WRONG_GIT_SUB_DIR SetMountResponse_CODE = 6 SetMountResponse_CODE_WRONG_HOST_DIR SetMountResponse_CODE = 7 )
func (SetMountResponse_CODE) Descriptor ¶
func (SetMountResponse_CODE) Descriptor() protoreflect.EnumDescriptor
func (SetMountResponse_CODE) Enum ¶
func (x SetMountResponse_CODE) Enum() *SetMountResponse_CODE
func (SetMountResponse_CODE) EnumDescriptor
deprecated
func (SetMountResponse_CODE) EnumDescriptor() ([]byte, []int)
Deprecated: Use SetMountResponse_CODE.Descriptor instead.
func (SetMountResponse_CODE) Number ¶
func (x SetMountResponse_CODE) Number() protoreflect.EnumNumber
func (SetMountResponse_CODE) String ¶
func (x SetMountResponse_CODE) String() string
func (SetMountResponse_CODE) Type ¶
func (SetMountResponse_CODE) Type() protoreflect.EnumType
type UnimplementedDeployMountAgentApiServer ¶
type UnimplementedDeployMountAgentApiServer struct { }
UnimplementedDeployMountAgentApiServer must be embedded to have forward compatible implementations.
func (UnimplementedDeployMountAgentApiServer) GetMountData ¶
func (UnimplementedDeployMountAgentApiServer) GetMountHostDir ¶
func (UnimplementedDeployMountAgentApiServer) GetMountHostDir(context.Context, *AgentGetMountHostDirRequest) (*AgentGetMountHostDirResponse, error)
type UnimplementedDeployMountApiServer ¶
type UnimplementedDeployMountApiServer struct { }
UnimplementedDeployMountApiServer must be embedded to have forward compatible implementations.
func (UnimplementedDeployMountApiServer) GetMount ¶
func (UnimplementedDeployMountApiServer) GetMount(context.Context, *GetMountRequest) (*GetMountResponse, error)
func (UnimplementedDeployMountApiServer) SetMount ¶
func (UnimplementedDeployMountApiServer) SetMount(context.Context, *SetMountRequest) (*SetMountResponse, error)
type UnsafeDeployMountAgentApiServer ¶
type UnsafeDeployMountAgentApiServer interface {
// contains filtered or unexported methods
}
UnsafeDeployMountAgentApiServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DeployMountAgentApiServer will result in compilation errors.
type UnsafeDeployMountApiServer ¶
type UnsafeDeployMountApiServer interface {
// contains filtered or unexported methods
}
UnsafeDeployMountApiServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DeployMountApiServer will result in compilation errors.