gitops_deploy_mount_api

package
v0.0.0-...-6d3c127 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DeployMountApi_SetMount_FullMethodName = "/gitops_deploy_mount_api.DeployMountApi/setMount"
	DeployMountApi_GetMount_FullMethodName = "/gitops_deploy_mount_api.DeployMountApi/getMount"
)
View Source
const (
	DeployMountAgentApi_GetMountHostDir_FullMethodName = "/gitops_deploy_mount_api.DeployMountAgentApi/getMountHostDir"
	DeployMountAgentApi_GetMountData_FullMethodName    = "/gitops_deploy_mount_api.DeployMountAgentApi/getMountData"
)

Variables

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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)

View Source
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)

View Source
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 (*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 (*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) Enum

func (AgentGetMountDataResponse_CODE) EnumDescriptor deprecated

func (AgentGetMountDataResponse_CODE) EnumDescriptor() ([]byte, []int)

Deprecated: Use AgentGetMountDataResponse_CODE.Descriptor instead.

func (AgentGetMountDataResponse_CODE) Number

func (AgentGetMountDataResponse_CODE) String

func (AgentGetMountDataResponse_CODE) Type

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 (*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 (*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 (*AgentGetMountHostDirResponse) Reset

func (x *AgentGetMountHostDirResponse) Reset()

func (*AgentGetMountHostDirResponse) 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) Enum

func (AgentGetMountHostDirResponse_CODE) EnumDescriptor deprecated

func (AgentGetMountHostDirResponse_CODE) EnumDescriptor() ([]byte, []int)

Deprecated: Use AgentGetMountHostDirResponse_CODE.Descriptor instead.

func (AgentGetMountHostDirResponse_CODE) Number

func (AgentGetMountHostDirResponse_CODE) String

func (AgentGetMountHostDirResponse_CODE) Type

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) 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

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 (*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) Enum

func (GetMountResponse_CODE) EnumDescriptor deprecated

func (GetMountResponse_CODE) EnumDescriptor() ([]byte, []int)

Deprecated: Use GetMountResponse_CODE.Descriptor instead.

func (GetMountResponse_CODE) Number

func (GetMountResponse_CODE) String

func (x GetMountResponse_CODE) String() string

func (GetMountResponse_CODE) Type

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) Descriptor deprecated

func (*MountInfo) Descriptor() ([]byte, []int)

Deprecated: Use MountInfo.ProtoReflect.Descriptor instead.

func (*MountInfo) GetDeployType

func (x *MountInfo) GetDeployType() DEPLOY_TYPE

func (*MountInfo) GetGitSubDir

func (x *MountInfo) GetGitSubDir() string

func (*MountInfo) GetK8SNameSpace

func (x *MountInfo) GetK8SNameSpace() string

func (*MountInfo) GetMountHostDir

func (x *MountInfo) GetMountHostDir() string

func (*MountInfo) ProtoMessage

func (*MountInfo) ProtoMessage()

func (*MountInfo) ProtoReflect

func (x *MountInfo) ProtoReflect() protoreflect.Message

func (*MountInfo) Reset

func (x *MountInfo) Reset()

func (*MountInfo) String

func (x *MountInfo) String() string

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 (*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) Enum

func (SetMountResponse_CODE) EnumDescriptor deprecated

func (SetMountResponse_CODE) EnumDescriptor() ([]byte, []int)

Deprecated: Use SetMountResponse_CODE.Descriptor instead.

func (SetMountResponse_CODE) Number

func (SetMountResponse_CODE) String

func (x SetMountResponse_CODE) String() string

func (SetMountResponse_CODE) Type

type UnimplementedDeployMountAgentApiServer

type UnimplementedDeployMountAgentApiServer struct {
}

UnimplementedDeployMountAgentApiServer must be embedded to have forward compatible implementations.

func (UnimplementedDeployMountAgentApiServer) GetMountData

func (UnimplementedDeployMountAgentApiServer) GetMountHostDir

type UnimplementedDeployMountApiServer

type UnimplementedDeployMountApiServer struct {
}

UnimplementedDeployMountApiServer must be embedded to have forward compatible implementations.

func (UnimplementedDeployMountApiServer) GetMount

func (UnimplementedDeployMountApiServer) SetMount

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL