pbpod

package
v0.0.0-...-c951e55 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package pbpod is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var File_idl_pbpod_pod_proto protoreflect.FileDescriptor
View Source
var PodService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pbpod.PodService",
	HandlerType: (*PodServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreatePods",
			Handler:    _PodService_CreatePods_Handler,
		},
		{
			MethodName: "CreatePod",
			Handler:    _PodService_CreatePod_Handler,
		},
		{
			MethodName: "DeletePod",
			Handler:    _PodService_DeletePod_Handler,
		},
		{
			MethodName: "UpdatePod",
			Handler:    _PodService_UpdatePod_Handler,
		},
		{
			MethodName: "ListPodDetail",
			Handler:    _PodService_ListPodDetail_Handler,
		},
		{
			MethodName: "ListPod",
			Handler:    _PodService_ListPod_Handler,
		},
		{
			MethodName: "ListPodAll",
			Handler:    _PodService_ListPodAll_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "idl/pbpod/pod.proto",
}

PodService_ServiceDesc is the grpc.ServiceDesc for PodService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterPodServiceHandler

func RegisterPodServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterPodServiceHandler registers the http handlers for service PodService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterPodServiceHandlerClient

func RegisterPodServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PodServiceClient) error

RegisterPodServiceHandlerClient registers the http handlers for service PodService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "PodServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "PodServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "PodServiceClient" to call the correct interceptors.

func RegisterPodServiceHandlerFromEndpoint

func RegisterPodServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterPodServiceHandlerFromEndpoint is same as RegisterPodServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterPodServiceHandlerServer

func RegisterPodServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PodServiceServer) error

RegisterPodServiceHandlerServer registers the http handlers for service PodService to "mux". UnaryRPC :call PodServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterPodServiceHandlerFromEndpoint instead.

func RegisterPodServiceServer

func RegisterPodServiceServer(s grpc.ServiceRegistrar, srv PodServiceServer)

Types

type CreatePodReq

type CreatePodReq struct {

	// 云类型
	Provider pbtenant.CloudProvider `protobuf:"varint,1,opt,name=provider,proto3,enum=pbtenant.CloudProvider" json:"provider,omitempty"`
	// 账号名称
	AccountName string `protobuf:"bytes,2,opt,name=account_name,json=accountName,proto3" json:"account_name,omitempty"`
	// 实例id
	PodId string `protobuf:"bytes,3,opt,name=pod_id,json=podId,proto3" json:"pod_id,omitempty"`
	// 实例名称
	PodName string `protobuf:"bytes,4,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"`
	// 地域,数据中心
	RegionId int32 `protobuf:"varint,5,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"`
	// 镜像
	ContainerImage string `protobuf:"bytes,6,opt,name=container_image,json=containerImage,proto3" json:"container_image,omitempty"`
	// 容器名称
	ContainerName string `protobuf:"bytes,7,opt,name=container_name,json=containerName,proto3" json:"container_name,omitempty"`
	// v cpu数
	CpuPod string `protobuf:"bytes,8,opt,name=cpu_pod,json=cpuPod,proto3" json:"cpu_pod,omitempty"`
	// 内存MB
	MemoryPod string `protobuf:"bytes,9,opt,name=memory_pod,json=memoryPod,proto3" json:"memory_pod,omitempty"`
	//安全组ID                  对应腾讯 SecurityGroupIds(腾讯必需)
	SecurityGroupId string `protobuf:"bytes,10,opt,name=security_group_id,json=securityGroupId,proto3" json:"security_group_id,omitempty"`
	//子网ID                    对应腾讯 SubnetId(腾讯必需)
	SubnetId string `protobuf:"bytes,11,opt,name=subnet_id,json=subnetId,proto3" json:"subnet_id,omitempty"`
	//VPC ID                   对应腾讯 VpcId(腾讯必需)
	VpcId string `protobuf:"bytes,12,opt,name=vpc_id,json=vpcId,proto3" json:"vpc_id,omitempty"`
	//名空间
	Namespace string `protobuf:"bytes,13,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// contains filtered or unexported fields
}

func (*CreatePodReq) Descriptor deprecated

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

Deprecated: Use CreatePodReq.ProtoReflect.Descriptor instead.

func (*CreatePodReq) GetAccountName

func (x *CreatePodReq) GetAccountName() string

func (*CreatePodReq) GetContainerImage

func (x *CreatePodReq) GetContainerImage() string

func (*CreatePodReq) GetContainerName

func (x *CreatePodReq) GetContainerName() string

func (*CreatePodReq) GetCpuPod

func (x *CreatePodReq) GetCpuPod() string

func (*CreatePodReq) GetMemoryPod

func (x *CreatePodReq) GetMemoryPod() string

func (*CreatePodReq) GetNamespace

func (x *CreatePodReq) GetNamespace() string

func (*CreatePodReq) GetPodId

func (x *CreatePodReq) GetPodId() string

func (*CreatePodReq) GetPodName

func (x *CreatePodReq) GetPodName() string

func (*CreatePodReq) GetProvider

func (x *CreatePodReq) GetProvider() pbtenant.CloudProvider

func (*CreatePodReq) GetRegionId

func (x *CreatePodReq) GetRegionId() int32

func (*CreatePodReq) GetSecurityGroupId

func (x *CreatePodReq) GetSecurityGroupId() string

func (*CreatePodReq) GetSubnetId

func (x *CreatePodReq) GetSubnetId() string

func (*CreatePodReq) GetVpcId

func (x *CreatePodReq) GetVpcId() string

func (*CreatePodReq) ProtoMessage

func (*CreatePodReq) ProtoMessage()

func (*CreatePodReq) ProtoReflect

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

func (*CreatePodReq) Reset

func (x *CreatePodReq) Reset()

func (*CreatePodReq) String

func (x *CreatePodReq) String() string

type CreatePodResp

type CreatePodResp struct {

	// 查询是否完成,如果为否-false,则可以将下面三个分页参数填入到请求中,继续查询
	Finished bool `protobuf:"varint,1,opt,name=finished,proto3" json:"finished,omitempty"`
	// 请求id,出现问题后提供给云厂商,排查问题
	RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// podId
	PodId string `protobuf:"bytes,3,opt,name=pod_id,json=podId,proto3" json:"pod_id,omitempty"`
	// podName
	PodName string `protobuf:"bytes,4,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"`
	// contains filtered or unexported fields
}

func (*CreatePodResp) Descriptor deprecated

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

Deprecated: Use CreatePodResp.ProtoReflect.Descriptor instead.

func (*CreatePodResp) GetFinished

func (x *CreatePodResp) GetFinished() bool

func (*CreatePodResp) GetPodId

func (x *CreatePodResp) GetPodId() string

func (*CreatePodResp) GetPodName

func (x *CreatePodResp) GetPodName() string

func (*CreatePodResp) GetRequestId

func (x *CreatePodResp) GetRequestId() string

func (*CreatePodResp) ProtoMessage

func (*CreatePodResp) ProtoMessage()

func (*CreatePodResp) ProtoReflect

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

func (*CreatePodResp) Reset

func (x *CreatePodResp) Reset()

func (*CreatePodResp) String

func (x *CreatePodResp) String() string

type CreatePodsReq

type CreatePodsReq struct {

	// 创建请求集合
	CreatePodReq []*CreatePodReq `protobuf:"bytes,1,rep,name=createPodReq,proto3" json:"createPodReq,omitempty"`
	// contains filtered or unexported fields
}

func (*CreatePodsReq) Descriptor deprecated

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

Deprecated: Use CreatePodsReq.ProtoReflect.Descriptor instead.

func (*CreatePodsReq) GetCreatePodReq

func (x *CreatePodsReq) GetCreatePodReq() []*CreatePodReq

func (*CreatePodsReq) ProtoMessage

func (*CreatePodsReq) ProtoMessage()

func (*CreatePodsReq) ProtoReflect

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

func (*CreatePodsReq) Reset

func (x *CreatePodsReq) Reset()

func (*CreatePodsReq) String

func (x *CreatePodsReq) String() string

type CreatePodsResp

type CreatePodsResp struct {

	// 查询是否完成,如果为否-false,则可以将下面三个分页参数填入到请求中,继续查询
	Finished bool `protobuf:"varint,2,opt,name=finished,proto3" json:"finished,omitempty"`
	// 请求id,出现问题后提供给云厂商,排查问题
	RequestId []string `protobuf:"bytes,3,rep,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreatePodsResp) Descriptor deprecated

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

Deprecated: Use CreatePodsResp.ProtoReflect.Descriptor instead.

func (*CreatePodsResp) GetFinished

func (x *CreatePodsResp) GetFinished() bool

func (*CreatePodsResp) GetRequestId

func (x *CreatePodsResp) GetRequestId() []string

func (*CreatePodsResp) ProtoMessage

func (*CreatePodsResp) ProtoMessage()

func (*CreatePodsResp) ProtoReflect

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

func (*CreatePodsResp) Reset

func (x *CreatePodsResp) Reset()

func (*CreatePodsResp) String

func (x *CreatePodsResp) String() string

type DeletePodReq

type DeletePodReq struct {

	// 云类型
	Provider pbtenant.CloudProvider `protobuf:"varint,1,opt,name=provider,proto3,enum=pbtenant.CloudProvider" json:"provider,omitempty"`
	// 账号名称
	AccountName string `protobuf:"bytes,2,opt,name=account_name,json=accountName,proto3" json:"account_name,omitempty"`
	// 实例ID
	PodId string `protobuf:"bytes,3,opt,name=pod_id,json=podId,proto3" json:"pod_id,omitempty"`
	// 实例名称
	PodName string `protobuf:"bytes,4,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"`
	//namespace
	Namespace string `protobuf:"bytes,5,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// 地域,数据中心
	RegionId int32 `protobuf:"varint,6,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeletePodReq) Descriptor deprecated

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

Deprecated: Use DeletePodReq.ProtoReflect.Descriptor instead.

func (*DeletePodReq) GetAccountName

func (x *DeletePodReq) GetAccountName() string

func (*DeletePodReq) GetNamespace

func (x *DeletePodReq) GetNamespace() string

func (*DeletePodReq) GetPodId

func (x *DeletePodReq) GetPodId() string

func (*DeletePodReq) GetPodName

func (x *DeletePodReq) GetPodName() string

func (*DeletePodReq) GetProvider

func (x *DeletePodReq) GetProvider() pbtenant.CloudProvider

func (*DeletePodReq) GetRegionId

func (x *DeletePodReq) GetRegionId() int32

func (*DeletePodReq) ProtoMessage

func (*DeletePodReq) ProtoMessage()

func (*DeletePodReq) ProtoReflect

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

func (*DeletePodReq) Reset

func (x *DeletePodReq) Reset()

func (*DeletePodReq) String

func (x *DeletePodReq) String() string

type DeletePodResp

type DeletePodResp struct {

	// 查询是否完成,如果为否-false,则可以将下面三个分页参数填入到请求中,继续查询
	Finished bool `protobuf:"varint,1,opt,name=finished,proto3" json:"finished,omitempty"`
	// 请求id,出现问题后提供给云厂商,排查问题
	RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// podId
	PodId string `protobuf:"bytes,3,opt,name=pod_id,json=podId,proto3" json:"pod_id,omitempty"`
	// podName
	PodName string `protobuf:"bytes,4,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"`
	// contains filtered or unexported fields
}

func (*DeletePodResp) Descriptor deprecated

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

Deprecated: Use DeletePodResp.ProtoReflect.Descriptor instead.

func (*DeletePodResp) GetFinished

func (x *DeletePodResp) GetFinished() bool

func (*DeletePodResp) GetPodId

func (x *DeletePodResp) GetPodId() string

func (*DeletePodResp) GetPodName

func (x *DeletePodResp) GetPodName() string

func (*DeletePodResp) GetRequestId

func (x *DeletePodResp) GetRequestId() string

func (*DeletePodResp) ProtoMessage

func (*DeletePodResp) ProtoMessage()

func (*DeletePodResp) ProtoReflect

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

func (*DeletePodResp) Reset

func (x *DeletePodResp) Reset()

func (*DeletePodResp) String

func (x *DeletePodResp) String() string

type GetPodRegionReq

type GetPodRegionReq struct {

	// cloud name
	Provider pbtenant.CloudProvider `protobuf:"varint,1,opt,name=provider,proto3,enum=pbtenant.CloudProvider" json:"provider,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPodRegionReq) Descriptor deprecated

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

Deprecated: Use GetPodRegionReq.ProtoReflect.Descriptor instead.

func (*GetPodRegionReq) GetProvider

func (x *GetPodRegionReq) GetProvider() pbtenant.CloudProvider

func (*GetPodRegionReq) ProtoMessage

func (*GetPodRegionReq) ProtoMessage()

func (*GetPodRegionReq) ProtoReflect

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

func (*GetPodRegionReq) Reset

func (x *GetPodRegionReq) Reset()

func (*GetPodRegionReq) String

func (x *GetPodRegionReq) String() string

type GetPodRegionResp

type GetPodRegionResp struct {

	// region list
	Regions []*pbtenant.Region `protobuf:"bytes,1,rep,name=regions,proto3" json:"regions,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPodRegionResp) Descriptor deprecated

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

Deprecated: Use GetPodRegionResp.ProtoReflect.Descriptor instead.

func (*GetPodRegionResp) GetRegions

func (x *GetPodRegionResp) GetRegions() []*pbtenant.Region

func (*GetPodRegionResp) ProtoMessage

func (*GetPodRegionResp) ProtoMessage()

func (*GetPodRegionResp) ProtoReflect

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

func (*GetPodRegionResp) Reset

func (x *GetPodRegionResp) Reset()

func (*GetPodRegionResp) String

func (x *GetPodRegionResp) String() string

type ListPodAllReq

type ListPodAllReq struct {
	// contains filtered or unexported fields
}

func (*ListPodAllReq) Descriptor deprecated

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

Deprecated: Use ListPodAllReq.ProtoReflect.Descriptor instead.

func (*ListPodAllReq) ProtoMessage

func (*ListPodAllReq) ProtoMessage()

func (*ListPodAllReq) ProtoReflect

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

func (*ListPodAllReq) Reset

func (x *ListPodAllReq) Reset()

func (*ListPodAllReq) String

func (x *ListPodAllReq) String() string

type ListPodDetailReq

type ListPodDetailReq struct {

	// 云名称
	Provider pbtenant.CloudProvider `protobuf:"varint,1,opt,name=provider,proto3,enum=pbtenant.CloudProvider" json:"provider,omitempty"`
	// 账户名称,根据config.yaml中的配置,默认为第一个配置的账户
	AccountName string `protobuf:"bytes,2,opt,name=account_name,json=accountName,proto3" json:"account_name,omitempty"`
	// 区域Id,参考 tenant.proto 中的各个云的区域
	RegionId int32 `protobuf:"varint,3,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"`
	// 区域名称,各云厂商自定义的region name
	RegionName int32 `protobuf:"varint,4,opt,name=region_name,json=regionName,proto3" json:"region_name,omitempty"`
	// podID
	PodId int32 `protobuf:"varint,5,opt,name=pod_id,json=podId,proto3" json:"pod_id,omitempty"`
	// 分页相关参数,页码
	PageNumber int32 `protobuf:"varint,6,opt,name=page_number,json=pageNumber,proto3" json:"page_number,omitempty"`
	// 分页相关参数,每页数量
	PageSize int32 `protobuf:"varint,7,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// 分页相关参数,下一页的token
	NextToken string `protobuf:"bytes,8,opt,name=next_token,json=nextToken,proto3" json:"next_token,omitempty"`
	// namespace
	Namespace string `protobuf:"bytes,9,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPodDetailReq) Descriptor deprecated

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

Deprecated: Use ListPodDetailReq.ProtoReflect.Descriptor instead.

func (*ListPodDetailReq) GetAccountName

func (x *ListPodDetailReq) GetAccountName() string

func (*ListPodDetailReq) GetNamespace

func (x *ListPodDetailReq) GetNamespace() string

func (*ListPodDetailReq) GetNextToken

func (x *ListPodDetailReq) GetNextToken() string

func (*ListPodDetailReq) GetPageNumber

func (x *ListPodDetailReq) GetPageNumber() int32

func (*ListPodDetailReq) GetPageSize

func (x *ListPodDetailReq) GetPageSize() int32

func (*ListPodDetailReq) GetPodId

func (x *ListPodDetailReq) GetPodId() int32

func (*ListPodDetailReq) GetProvider

func (x *ListPodDetailReq) GetProvider() pbtenant.CloudProvider

func (*ListPodDetailReq) GetRegionId

func (x *ListPodDetailReq) GetRegionId() int32

func (*ListPodDetailReq) GetRegionName

func (x *ListPodDetailReq) GetRegionName() int32

func (*ListPodDetailReq) ProtoMessage

func (*ListPodDetailReq) ProtoMessage()

func (*ListPodDetailReq) ProtoReflect

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

func (*ListPodDetailReq) Reset

func (x *ListPodDetailReq) Reset()

func (*ListPodDetailReq) String

func (x *ListPodDetailReq) String() string

type ListPodDetailResp

type ListPodDetailResp struct {

	// Pod集合
	Pods []*PodInstance `protobuf:"bytes,1,rep,name=pods,proto3" json:"pods,omitempty"`
	// 查询是否完成,如果为否-false,则可以将下面三个分页参数填入到请求中,继续查询
	Finished bool `protobuf:"varint,2,opt,name=finished,proto3" json:"finished,omitempty"`
	// 分页相关参数,页码
	PageNumber int32 `protobuf:"varint,3,opt,name=page_number,json=pageNumber,proto3" json:"page_number,omitempty"`
	// 分页相关参数,每页数量
	PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// 分页相关参数,下一页的token
	NextToken string `protobuf:"bytes,5,opt,name=next_token,json=nextToken,proto3" json:"next_token,omitempty"`
	// 请求id,出现问题后提供给云厂商,排查问题
	RequestId string `protobuf:"bytes,6,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPodDetailResp) Descriptor deprecated

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

Deprecated: Use ListPodDetailResp.ProtoReflect.Descriptor instead.

func (*ListPodDetailResp) GetFinished

func (x *ListPodDetailResp) GetFinished() bool

func (*ListPodDetailResp) GetNextToken

func (x *ListPodDetailResp) GetNextToken() string

func (*ListPodDetailResp) GetPageNumber

func (x *ListPodDetailResp) GetPageNumber() int32

func (*ListPodDetailResp) GetPageSize

func (x *ListPodDetailResp) GetPageSize() int32

func (*ListPodDetailResp) GetPods

func (x *ListPodDetailResp) GetPods() []*PodInstance

func (*ListPodDetailResp) GetRequestId

func (x *ListPodDetailResp) GetRequestId() string

func (*ListPodDetailResp) ProtoMessage

func (*ListPodDetailResp) ProtoMessage()

func (*ListPodDetailResp) ProtoReflect

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

func (*ListPodDetailResp) Reset

func (x *ListPodDetailResp) Reset()

func (*ListPodDetailResp) String

func (x *ListPodDetailResp) String() string

type ListPodReq

type ListPodReq struct {

	// cloud name
	Provider pbtenant.CloudProvider `protobuf:"varint,1,opt,name=provider,proto3,enum=pbtenant.CloudProvider" json:"provider,omitempty"`
	//
	Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPodReq) Descriptor deprecated

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

Deprecated: Use ListPodReq.ProtoReflect.Descriptor instead.

func (*ListPodReq) GetNamespace

func (x *ListPodReq) GetNamespace() string

func (*ListPodReq) GetProvider

func (x *ListPodReq) GetProvider() pbtenant.CloudProvider

func (*ListPodReq) ProtoMessage

func (*ListPodReq) ProtoMessage()

func (*ListPodReq) ProtoReflect

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

func (*ListPodReq) Reset

func (x *ListPodReq) Reset()

func (*ListPodReq) String

func (x *ListPodReq) String() string

type ListPodResp

type ListPodResp struct {

	// pod list
	Pods []*PodInstance `protobuf:"bytes,1,rep,name=pods,proto3" json:"pods,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPodResp) Descriptor deprecated

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

Deprecated: Use ListPodResp.ProtoReflect.Descriptor instead.

func (*ListPodResp) GetPods

func (x *ListPodResp) GetPods() []*PodInstance

func (*ListPodResp) ProtoMessage

func (*ListPodResp) ProtoMessage()

func (*ListPodResp) ProtoReflect

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

func (*ListPodResp) Reset

func (x *ListPodResp) Reset()

func (*ListPodResp) String

func (x *ListPodResp) String() string

type PodInstance

type PodInstance struct {

	// 云类型
	Provider pbtenant.CloudProvider `protobuf:"varint,1,opt,name=provider,proto3,enum=pbtenant.CloudProvider" json:"provider,omitempty"`
	// 账号名称
	AccountName string `protobuf:"bytes,2,opt,name=account_name,json=accountName,proto3" json:"account_name,omitempty"`
	// 实例id
	PodId string `protobuf:"bytes,3,opt,name=pod_id,json=podId,proto3" json:"pod_id,omitempty"`
	// 实例名称
	PodName string `protobuf:"bytes,4,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"`
	// 地域ID
	RegionId int32 `protobuf:"varint,5,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"`
	// 地域Name
	RegionName string `protobuf:"bytes,6,opt,name=region_name,json=regionName,proto3" json:"region_name,omitempty"`
	// 镜像
	ContainerImage string `protobuf:"bytes,7,opt,name=container_image,json=containerImage,proto3" json:"container_image,omitempty"`
	// 容器名称
	ContainerName string `protobuf:"bytes,8,opt,name=container_name,json=containerName,proto3" json:"container_name,omitempty"`
	// vcpu数
	CpuPod string `protobuf:"bytes,9,opt,name=cpu_pod,json=cpuPod,proto3" json:"cpu_pod,omitempty"`
	// 内存MB
	MemoryPod string `protobuf:"bytes,10,opt,name=memory_pod,json=memoryPod,proto3" json:"memory_pod,omitempty"`
	//安全组ID                  对应腾讯 SecurityGroupIds(腾讯必需)
	SecurityGroupId string `protobuf:"bytes,11,opt,name=security_group_id,json=securityGroupId,proto3" json:"security_group_id,omitempty"`
	//子网ID                    对应腾讯 SubnetId(腾讯必需)
	SubnetId string `protobuf:"bytes,12,opt,name=subnet_id,json=subnetId,proto3" json:"subnet_id,omitempty"`
	//VPC ID                   对应腾讯 VpcId(腾讯必需)
	VpcId string `protobuf:"bytes,13,opt,name=vpc_id,json=vpcId,proto3" json:"vpc_id,omitempty"`
	//名空间
	Namespace string `protobuf:"bytes,14,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// 实例状态
	Status string `protobuf:"bytes,15,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*PodInstance) Descriptor deprecated

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

Deprecated: Use PodInstance.ProtoReflect.Descriptor instead.

func (*PodInstance) GetAccountName

func (x *PodInstance) GetAccountName() string

func (*PodInstance) GetContainerImage

func (x *PodInstance) GetContainerImage() string

func (*PodInstance) GetContainerName

func (x *PodInstance) GetContainerName() string

func (*PodInstance) GetCpuPod

func (x *PodInstance) GetCpuPod() string

func (*PodInstance) GetMemoryPod

func (x *PodInstance) GetMemoryPod() string

func (*PodInstance) GetNamespace

func (x *PodInstance) GetNamespace() string

func (*PodInstance) GetPodId

func (x *PodInstance) GetPodId() string

func (*PodInstance) GetPodName

func (x *PodInstance) GetPodName() string

func (*PodInstance) GetProvider

func (x *PodInstance) GetProvider() pbtenant.CloudProvider

func (*PodInstance) GetRegionId

func (x *PodInstance) GetRegionId() int32

func (*PodInstance) GetRegionName

func (x *PodInstance) GetRegionName() string

func (*PodInstance) GetSecurityGroupId

func (x *PodInstance) GetSecurityGroupId() string

func (*PodInstance) GetStatus

func (x *PodInstance) GetStatus() string

func (*PodInstance) GetSubnetId

func (x *PodInstance) GetSubnetId() string

func (*PodInstance) GetVpcId

func (x *PodInstance) GetVpcId() string

func (*PodInstance) ProtoMessage

func (*PodInstance) ProtoMessage()

func (*PodInstance) ProtoReflect

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

func (*PodInstance) Reset

func (x *PodInstance) Reset()

func (*PodInstance) String

func (x *PodInstance) String() string

type PodServiceClient

type PodServiceClient interface {
	// 创建Pods
	CreatePods(ctx context.Context, in *CreatePodsReq, opts ...grpc.CallOption) (*CreatePodsResp, error)
	// 创建Pod
	CreatePod(ctx context.Context, in *CreatePodReq, opts ...grpc.CallOption) (*CreatePodResp, error)
	// 删除Pod
	DeletePod(ctx context.Context, in *DeletePodReq, opts ...grpc.CallOption) (*DeletePodResp, error)
	// 更新Pod
	UpdatePod(ctx context.Context, in *UpdatePodReq, opts ...grpc.CallOption) (*UpdatePodResp, error)
	// 查询Pod明细
	ListPodDetail(ctx context.Context, in *ListPodDetailReq, opts ...grpc.CallOption) (*ListPodDetailResp, error)
	// 查询Pod全量 - 根据云类型
	ListPod(ctx context.Context, in *ListPodReq, opts ...grpc.CallOption) (*ListPodResp, error)
	// 查询所有云的Pod
	ListPodAll(ctx context.Context, in *ListPodAllReq, opts ...grpc.CallOption) (*ListPodResp, error)
}

PodServiceClient is the client API for PodService 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 NewPodServiceClient

func NewPodServiceClient(cc grpc.ClientConnInterface) PodServiceClient

type PodServiceServer

type PodServiceServer interface {
	// 创建Pods
	CreatePods(context.Context, *CreatePodsReq) (*CreatePodsResp, error)
	// 创建Pod
	CreatePod(context.Context, *CreatePodReq) (*CreatePodResp, error)
	// 删除Pod
	DeletePod(context.Context, *DeletePodReq) (*DeletePodResp, error)
	// 更新Pod
	UpdatePod(context.Context, *UpdatePodReq) (*UpdatePodResp, error)
	// 查询Pod明细
	ListPodDetail(context.Context, *ListPodDetailReq) (*ListPodDetailResp, error)
	// 查询Pod全量 - 根据云类型
	ListPod(context.Context, *ListPodReq) (*ListPodResp, error)
	// 查询所有云的Pod
	ListPodAll(context.Context, *ListPodAllReq) (*ListPodResp, error)
	// contains filtered or unexported methods
}

PodServiceServer is the server API for PodService service. All implementations must embed UnimplementedPodServiceServer for forward compatibility

type UnimplementedPodServiceServer

type UnimplementedPodServiceServer struct {
}

UnimplementedPodServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedPodServiceServer) CreatePod

func (UnimplementedPodServiceServer) CreatePods

func (UnimplementedPodServiceServer) DeletePod

func (UnimplementedPodServiceServer) ListPod

func (UnimplementedPodServiceServer) ListPodAll

func (UnimplementedPodServiceServer) ListPodDetail

func (UnimplementedPodServiceServer) UpdatePod

type UnsafePodServiceServer

type UnsafePodServiceServer interface {
	// contains filtered or unexported methods
}

UnsafePodServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PodServiceServer will result in compilation errors.

type UpdatePodReq

type UpdatePodReq struct {

	// 云类型
	Provider pbtenant.CloudProvider `protobuf:"varint,1,opt,name=provider,proto3,enum=pbtenant.CloudProvider" json:"provider,omitempty"`
	// 账号名称
	AccountName string `protobuf:"bytes,2,opt,name=account_name,json=accountName,proto3" json:"account_name,omitempty"`
	// 实例ID
	PodId string `protobuf:"bytes,3,opt,name=pod_id,json=podId,proto3" json:"pod_id,omitempty"`
	// 实例名称
	PodName string `protobuf:"bytes,4,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"`
	//namespace
	Namespace string `protobuf:"bytes,5,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// 地域,数据中心
	RegionId int32 `protobuf:"varint,6,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"`
	// 镜像
	ContainerImage string `protobuf:"bytes,7,opt,name=container_image,json=containerImage,proto3" json:"container_image,omitempty"`
	// 容器名称
	ContainerName string `protobuf:"bytes,8,opt,name=container_name,json=containerName,proto3" json:"container_name,omitempty"`
	// v cpu数
	CpuPod string `protobuf:"bytes,9,opt,name=cpu_pod,json=cpuPod,proto3" json:"cpu_pod,omitempty"`
	// 内存MB
	MemoryPod string `protobuf:"bytes,10,opt,name=memory_pod,json=memoryPod,proto3" json:"memory_pod,omitempty"`
	// 重启策略
	RestartPolicy string `protobuf:"bytes,11,opt,name=restart_policy,json=restartPolicy,proto3" json:"restart_policy,omitempty"`
	// labels
	Labels string `protobuf:"bytes,12,opt,name=labels,proto3" json:"labels,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdatePodReq) Descriptor deprecated

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

Deprecated: Use UpdatePodReq.ProtoReflect.Descriptor instead.

func (*UpdatePodReq) GetAccountName

func (x *UpdatePodReq) GetAccountName() string

func (*UpdatePodReq) GetContainerImage

func (x *UpdatePodReq) GetContainerImage() string

func (*UpdatePodReq) GetContainerName

func (x *UpdatePodReq) GetContainerName() string

func (*UpdatePodReq) GetCpuPod

func (x *UpdatePodReq) GetCpuPod() string

func (*UpdatePodReq) GetLabels

func (x *UpdatePodReq) GetLabels() string

func (*UpdatePodReq) GetMemoryPod

func (x *UpdatePodReq) GetMemoryPod() string

func (*UpdatePodReq) GetNamespace

func (x *UpdatePodReq) GetNamespace() string

func (*UpdatePodReq) GetPodId

func (x *UpdatePodReq) GetPodId() string

func (*UpdatePodReq) GetPodName

func (x *UpdatePodReq) GetPodName() string

func (*UpdatePodReq) GetProvider

func (x *UpdatePodReq) GetProvider() pbtenant.CloudProvider

func (*UpdatePodReq) GetRegionId

func (x *UpdatePodReq) GetRegionId() int32

func (*UpdatePodReq) GetRestartPolicy

func (x *UpdatePodReq) GetRestartPolicy() string

func (*UpdatePodReq) ProtoMessage

func (*UpdatePodReq) ProtoMessage()

func (*UpdatePodReq) ProtoReflect

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

func (*UpdatePodReq) Reset

func (x *UpdatePodReq) Reset()

func (*UpdatePodReq) String

func (x *UpdatePodReq) String() string

type UpdatePodResp

type UpdatePodResp struct {

	// 查询是否完成,如果为否-false,则可以将下面三个分页参数填入到请求中,继续查询
	Finished bool `protobuf:"varint,1,opt,name=finished,proto3" json:"finished,omitempty"`
	// 请求id,出现问题后提供给云厂商,排查问题
	RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// podId
	PodId string `protobuf:"bytes,3,opt,name=pod_id,json=podId,proto3" json:"pod_id,omitempty"`
	// podName
	PodName string `protobuf:"bytes,4,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdatePodResp) Descriptor deprecated

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

Deprecated: Use UpdatePodResp.ProtoReflect.Descriptor instead.

func (*UpdatePodResp) GetFinished

func (x *UpdatePodResp) GetFinished() bool

func (*UpdatePodResp) GetPodId

func (x *UpdatePodResp) GetPodId() string

func (*UpdatePodResp) GetPodName

func (x *UpdatePodResp) GetPodName() string

func (*UpdatePodResp) GetRequestId

func (x *UpdatePodResp) GetRequestId() string

func (*UpdatePodResp) ProtoMessage

func (*UpdatePodResp) ProtoMessage()

func (*UpdatePodResp) ProtoReflect

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

func (*UpdatePodResp) Reset

func (x *UpdatePodResp) Reset()

func (*UpdatePodResp) String

func (x *UpdatePodResp) String() string

Jump to

Keyboard shortcuts

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