Versions in this module Expand all Collapse all v0 v0.1.3 May 16, 2022 Changes in this version + var ActionType_name = map[int32]string + var ActionType_value = map[string]int32 + var EcsService_ServiceDesc = grpc.ServiceDesc + var File_idl_pbecs_ecs_proto protoreflect.FileDescriptor + var InternetChargeType_name = map[int32]string + var InternetChargeType_value = map[string]int32 + func RegisterEcsServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error + func RegisterEcsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client EcsServiceClient) error + func RegisterEcsServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error) + func RegisterEcsServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server EcsServiceServer) error + func RegisterEcsServiceServer(s grpc.ServiceRegistrar, srv EcsServiceServer) + type ActionReq struct + AccountName string + ActionType ActionType + Namespace string + Provider pbtenant.CloudProvider + RegionId int32 + VmName string + func (*ActionReq) Descriptor() ([]byte, []int) + func (*ActionReq) ProtoMessage() + func (x *ActionReq) GetAccountName() string + func (x *ActionReq) GetActionType() ActionType + func (x *ActionReq) GetNamespace() string + func (x *ActionReq) GetProvider() pbtenant.CloudProvider + func (x *ActionReq) GetRegionId() int32 + func (x *ActionReq) GetVmName() string + func (x *ActionReq) ProtoReflect() protoreflect.Message + func (x *ActionReq) Reset() + func (x *ActionReq) String() string + type ActionResp struct + AccountName string + Ecses []*EcsInstance + Finished bool + Provider pbtenant.CloudProvider + Status string + func (*ActionResp) Descriptor() ([]byte, []int) + func (*ActionResp) ProtoMessage() + func (x *ActionResp) GetAccountName() string + func (x *ActionResp) GetEcses() []*EcsInstance + func (x *ActionResp) GetFinished() bool + func (x *ActionResp) GetProvider() pbtenant.CloudProvider + func (x *ActionResp) GetStatus() string + func (x *ActionResp) ProtoReflect() protoreflect.Message + func (x *ActionResp) Reset() + func (x *ActionResp) String() string + type ActionType int32 + const ActionType_restart + const ActionType_start + const ActionType_stop + func (ActionType) Descriptor() protoreflect.EnumDescriptor + func (ActionType) EnumDescriptor() ([]byte, []int) + func (ActionType) Type() protoreflect.EnumType + func (x ActionType) Enum() *ActionType + func (x ActionType) Number() protoreflect.EnumNumber + func (x ActionType) String() string + type CreateEcsMultipleReq struct + CreateEcsReqs []*CreateEcsReq + func (*CreateEcsMultipleReq) Descriptor() ([]byte, []int) + func (*CreateEcsMultipleReq) ProtoMessage() + func (x *CreateEcsMultipleReq) GetCreateEcsReqs() []*CreateEcsReq + func (x *CreateEcsMultipleReq) ProtoReflect() protoreflect.Message + func (x *CreateEcsMultipleReq) Reset() + func (x *CreateEcsMultipleReq) String() string + type CreateEcsMultipleResp struct + Finished bool + RequestId []string + func (*CreateEcsMultipleResp) Descriptor() ([]byte, []int) + func (*CreateEcsMultipleResp) ProtoMessage() + func (x *CreateEcsMultipleResp) GetFinished() bool + func (x *CreateEcsMultipleResp) GetRequestId() []string + func (x *CreateEcsMultipleResp) ProtoReflect() protoreflect.Message + func (x *CreateEcsMultipleResp) Reset() + func (x *CreateEcsMultipleResp) String() string + type CreateEcsReq struct + AccountName string + Amount int32 + Bus string + Category string + Cpu int32 + Description string + DiskName string + DiskSize string + DiskType string + DryRun string + ImageId string + InstanceChargeType string + InstanceName string + InstanceType string + InternetChargeType InternetChargeType + InternetMaxBandwidthOut int32 + MachineName string + MachineType string + Memory string + Namespace string + Network string + NetworkDataTemplate string + NetworkModel string + NetworkName string + NetworkType string + OsType string + Provider pbtenant.CloudProvider + RegionId int32 + SecurityGroupId string + SshKey string + SubnetId string + SystemDisk *SystemDisk + UserDataTemplate string + VSwitchId string + VmTemplateName string + VmTemplateVersion string + VpcId string + ZoneId string + func (*CreateEcsReq) Descriptor() ([]byte, []int) + func (*CreateEcsReq) ProtoMessage() + func (x *CreateEcsReq) GetAccountName() string + func (x *CreateEcsReq) GetAmount() int32 + func (x *CreateEcsReq) GetBus() string + func (x *CreateEcsReq) GetCategory() string + func (x *CreateEcsReq) GetCpu() int32 + func (x *CreateEcsReq) GetDescription() string + func (x *CreateEcsReq) GetDiskName() string + func (x *CreateEcsReq) GetDiskSize() string + func (x *CreateEcsReq) GetDiskType() string + func (x *CreateEcsReq) GetDryRun() string + func (x *CreateEcsReq) GetImageId() string + func (x *CreateEcsReq) GetInstanceChargeType() string + func (x *CreateEcsReq) GetInstanceName() string + func (x *CreateEcsReq) GetInstanceType() string + func (x *CreateEcsReq) GetInternetChargeType() InternetChargeType + func (x *CreateEcsReq) GetInternetMaxBandwidthOut() int32 + func (x *CreateEcsReq) GetMachineName() string + func (x *CreateEcsReq) GetMachineType() string + func (x *CreateEcsReq) GetMemory() string + func (x *CreateEcsReq) GetNamespace() string + func (x *CreateEcsReq) GetNetwork() string + func (x *CreateEcsReq) GetNetworkDataTemplate() string + func (x *CreateEcsReq) GetNetworkModel() string + func (x *CreateEcsReq) GetNetworkName() string + func (x *CreateEcsReq) GetNetworkType() string + func (x *CreateEcsReq) GetOsType() string + func (x *CreateEcsReq) GetProvider() pbtenant.CloudProvider + func (x *CreateEcsReq) GetRegionId() int32 + func (x *CreateEcsReq) GetSecurityGroupId() string + func (x *CreateEcsReq) GetSshKey() string + func (x *CreateEcsReq) GetSubnetId() string + func (x *CreateEcsReq) GetSystemDisk() *SystemDisk + func (x *CreateEcsReq) GetUserDataTemplate() string + func (x *CreateEcsReq) GetVSwitchId() string + func (x *CreateEcsReq) GetVmTemplateName() string + func (x *CreateEcsReq) GetVmTemplateVersion() string + func (x *CreateEcsReq) GetVpcId() string + func (x *CreateEcsReq) GetZoneId() string + func (x *CreateEcsReq) ProtoReflect() protoreflect.Message + func (x *CreateEcsReq) Reset() + func (x *CreateEcsReq) String() string + type CreateEcsResp struct + AccountName string + Finished bool + InstanceIdSets []string + OrderId string + Provider pbtenant.CloudProvider + RegionId int32 + RequestId string + TradePrice float32 + func (*CreateEcsResp) Descriptor() ([]byte, []int) + func (*CreateEcsResp) ProtoMessage() + func (x *CreateEcsResp) GetAccountName() string + func (x *CreateEcsResp) GetFinished() bool + func (x *CreateEcsResp) GetInstanceIdSets() []string + func (x *CreateEcsResp) GetOrderId() string + func (x *CreateEcsResp) GetProvider() pbtenant.CloudProvider + func (x *CreateEcsResp) GetRegionId() int32 + func (x *CreateEcsResp) GetRequestId() string + func (x *CreateEcsResp) GetTradePrice() float32 + func (x *CreateEcsResp) ProtoReflect() protoreflect.Message + func (x *CreateEcsResp) Reset() + func (x *CreateEcsResp) String() string + type DeleteEcsReq struct + AccountName string + DeletePublicip string + DeleteVolume string + DiskName string + DryRun string + Force string + InstanceIds string + InstanceName string + Namespace string + Provider pbtenant.CloudProvider + RegionId int32 + TerminateSubscription string + func (*DeleteEcsReq) Descriptor() ([]byte, []int) + func (*DeleteEcsReq) ProtoMessage() + func (x *DeleteEcsReq) GetAccountName() string + func (x *DeleteEcsReq) GetDeletePublicip() string + func (x *DeleteEcsReq) GetDeleteVolume() string + func (x *DeleteEcsReq) GetDiskName() string + func (x *DeleteEcsReq) GetDryRun() string + func (x *DeleteEcsReq) GetForce() string + func (x *DeleteEcsReq) GetInstanceIds() string + func (x *DeleteEcsReq) GetInstanceName() string + func (x *DeleteEcsReq) GetNamespace() string + func (x *DeleteEcsReq) GetProvider() pbtenant.CloudProvider + func (x *DeleteEcsReq) GetRegionId() int32 + func (x *DeleteEcsReq) GetTerminateSubscription() string + func (x *DeleteEcsReq) ProtoReflect() protoreflect.Message + func (x *DeleteEcsReq) Reset() + func (x *DeleteEcsReq) String() string + type DeleteEcsResp struct + AccountName string + Provider pbtenant.CloudProvider + RegionId int32 + RequestId string + func (*DeleteEcsResp) Descriptor() ([]byte, []int) + func (*DeleteEcsResp) ProtoMessage() + func (x *DeleteEcsResp) GetAccountName() string + func (x *DeleteEcsResp) GetProvider() pbtenant.CloudProvider + func (x *DeleteEcsResp) GetRegionId() int32 + func (x *DeleteEcsResp) GetRequestId() string + func (x *DeleteEcsResp) ProtoReflect() protoreflect.Message + func (x *DeleteEcsResp) Reset() + func (x *DeleteEcsResp) String() string + type EcsInstance struct + AccountName string + Cpu string + CreationTime string + Description string + ExpireTime string + InnerIps []string + InstanceChargeType string + InstanceId string + InstanceName string + InstanceType string + Memory string + Namespace string + Node string + Provider pbtenant.CloudProvider + PublicIps []string + RegionName string + ResourceGroupId string + Status string + VpcId string + func (*EcsInstance) Descriptor() ([]byte, []int) + func (*EcsInstance) ProtoMessage() + func (x *EcsInstance) GetAccountName() string + func (x *EcsInstance) GetCpu() string + func (x *EcsInstance) GetCreationTime() string + func (x *EcsInstance) GetDescription() string + func (x *EcsInstance) GetExpireTime() string + func (x *EcsInstance) GetInnerIps() []string + func (x *EcsInstance) GetInstanceChargeType() string + func (x *EcsInstance) GetInstanceId() string + func (x *EcsInstance) GetInstanceName() string + func (x *EcsInstance) GetInstanceType() string + func (x *EcsInstance) GetMemory() string + func (x *EcsInstance) GetNamespace() string + func (x *EcsInstance) GetNode() string + func (x *EcsInstance) GetProvider() pbtenant.CloudProvider + func (x *EcsInstance) GetPublicIps() []string + func (x *EcsInstance) GetRegionName() string + func (x *EcsInstance) GetResourceGroupId() string + func (x *EcsInstance) GetStatus() string + func (x *EcsInstance) GetVpcId() string + func (x *EcsInstance) ProtoReflect() protoreflect.Message + func (x *EcsInstance) Reset() + func (x *EcsInstance) String() string + type EcsServiceClient interface + ActionEcs func(ctx context.Context, in *ActionReq, opts ...grpc.CallOption) (*ActionResp, error) + CreateEcs func(ctx context.Context, in *CreateEcsReq, opts ...grpc.CallOption) (*CreateEcsResp, error) + CreateMultipleEcs func(ctx context.Context, in *CreateEcsMultipleReq, opts ...grpc.CallOption) (*CreateEcsMultipleResp, error) + DeleteEcs func(ctx context.Context, in *DeleteEcsReq, opts ...grpc.CallOption) (*DeleteEcsResp, error) + ListEcs func(ctx context.Context, in *ListReq, opts ...grpc.CallOption) (*ListResp, error) + ListEcsAll func(ctx context.Context, in *ListAllReq, opts ...grpc.CallOption) (*ListResp, error) + ListEcsDetail func(ctx context.Context, in *ListDetailReq, opts ...grpc.CallOption) (*ListDetailResp, error) + UpdateEcs func(ctx context.Context, in *UpdateEcsReq, opts ...grpc.CallOption) (*UpdateEcsResp, error) + func NewEcsServiceClient(cc grpc.ClientConnInterface) EcsServiceClient + type EcsServiceServer interface + ActionEcs func(context.Context, *ActionReq) (*ActionResp, error) + CreateEcs func(context.Context, *CreateEcsReq) (*CreateEcsResp, error) + CreateMultipleEcs func(context.Context, *CreateEcsMultipleReq) (*CreateEcsMultipleResp, error) + DeleteEcs func(context.Context, *DeleteEcsReq) (*DeleteEcsResp, error) + ListEcs func(context.Context, *ListReq) (*ListResp, error) + ListEcsAll func(context.Context, *ListAllReq) (*ListResp, error) + ListEcsDetail func(context.Context, *ListDetailReq) (*ListDetailResp, error) + UpdateEcs func(context.Context, *UpdateEcsReq) (*UpdateEcsResp, error) + type InternetChargeType int32 + const InternetChargeType_PayByBandwidth + const InternetChargeType_PayByTraffic + func (InternetChargeType) Descriptor() protoreflect.EnumDescriptor + func (InternetChargeType) EnumDescriptor() ([]byte, []int) + func (InternetChargeType) Type() protoreflect.EnumType + func (x InternetChargeType) Enum() *InternetChargeType + func (x InternetChargeType) Number() protoreflect.EnumNumber + func (x InternetChargeType) String() string + type ListAllReq struct + func (*ListAllReq) Descriptor() ([]byte, []int) + func (*ListAllReq) ProtoMessage() + func (x *ListAllReq) ProtoReflect() protoreflect.Message + func (x *ListAllReq) Reset() + func (x *ListAllReq) String() string + type ListDetailReq struct + AccountName string + Namespace string + NextToken string + PageNumber int32 + PageSize int32 + Provider pbtenant.CloudProvider + RegionId int32 + func (*ListDetailReq) Descriptor() ([]byte, []int) + func (*ListDetailReq) ProtoMessage() + func (x *ListDetailReq) GetAccountName() string + func (x *ListDetailReq) GetNamespace() string + func (x *ListDetailReq) GetNextToken() string + func (x *ListDetailReq) GetPageNumber() int32 + func (x *ListDetailReq) GetPageSize() int32 + func (x *ListDetailReq) GetProvider() pbtenant.CloudProvider + func (x *ListDetailReq) GetRegionId() int32 + func (x *ListDetailReq) ProtoReflect() protoreflect.Message + func (x *ListDetailReq) Reset() + func (x *ListDetailReq) String() string + type ListDetailResp struct + Ecses []*EcsInstance + Finished bool + NextToken string + PageNumber int32 + PageSize int32 + RequestId string + func (*ListDetailResp) Descriptor() ([]byte, []int) + func (*ListDetailResp) ProtoMessage() + func (x *ListDetailResp) GetEcses() []*EcsInstance + func (x *ListDetailResp) GetFinished() bool + func (x *ListDetailResp) GetNextToken() string + func (x *ListDetailResp) GetPageNumber() int32 + func (x *ListDetailResp) GetPageSize() int32 + func (x *ListDetailResp) GetRequestId() string + func (x *ListDetailResp) ProtoReflect() protoreflect.Message + func (x *ListDetailResp) Reset() + func (x *ListDetailResp) String() string + type ListReq struct + Provider pbtenant.CloudProvider + func (*ListReq) Descriptor() ([]byte, []int) + func (*ListReq) ProtoMessage() + func (x *ListReq) GetProvider() pbtenant.CloudProvider + func (x *ListReq) ProtoReflect() protoreflect.Message + func (x *ListReq) Reset() + func (x *ListReq) String() string + type ListResp struct + Ecses []*EcsInstance + func (*ListResp) Descriptor() ([]byte, []int) + func (*ListResp) ProtoMessage() + func (x *ListResp) GetEcses() []*EcsInstance + func (x *ListResp) ProtoReflect() protoreflect.Message + func (x *ListResp) Reset() + func (x *ListResp) String() string + type SystemDisk struct + AutoSnapshotPolicyId string + Category string + Description string + DiskName string + PerformanceLevel string + Size string + func (*SystemDisk) Descriptor() ([]byte, []int) + func (*SystemDisk) ProtoMessage() + func (x *SystemDisk) GetAutoSnapshotPolicyId() string + func (x *SystemDisk) GetCategory() string + func (x *SystemDisk) GetDescription() string + func (x *SystemDisk) GetDiskName() string + func (x *SystemDisk) GetPerformanceLevel() string + func (x *SystemDisk) GetSize() string + func (x *SystemDisk) ProtoReflect() protoreflect.Message + func (x *SystemDisk) Reset() + func (x *SystemDisk) String() string + type UnimplementedEcsServiceServer struct + func (UnimplementedEcsServiceServer) ActionEcs(context.Context, *ActionReq) (*ActionResp, error) + func (UnimplementedEcsServiceServer) CreateEcs(context.Context, *CreateEcsReq) (*CreateEcsResp, error) + func (UnimplementedEcsServiceServer) CreateMultipleEcs(context.Context, *CreateEcsMultipleReq) (*CreateEcsMultipleResp, error) + func (UnimplementedEcsServiceServer) DeleteEcs(context.Context, *DeleteEcsReq) (*DeleteEcsResp, error) + func (UnimplementedEcsServiceServer) ListEcs(context.Context, *ListReq) (*ListResp, error) + func (UnimplementedEcsServiceServer) ListEcsAll(context.Context, *ListAllReq) (*ListResp, error) + func (UnimplementedEcsServiceServer) ListEcsDetail(context.Context, *ListDetailReq) (*ListDetailResp, error) + func (UnimplementedEcsServiceServer) UpdateEcs(context.Context, *UpdateEcsReq) (*UpdateEcsResp, error) + type UnsafeEcsServiceServer interface + type UpdateEcsReq struct + AccountName string + Cpu string + Description string + HostName string + InstanceIds string + InstanceName string + IsRestart bool + Memory string + Namespace string + Password string + Provider pbtenant.CloudProvider + RegionId int32 + SecurityGroupIds string + func (*UpdateEcsReq) Descriptor() ([]byte, []int) + func (*UpdateEcsReq) ProtoMessage() + func (x *UpdateEcsReq) GetAccountName() string + func (x *UpdateEcsReq) GetCpu() string + func (x *UpdateEcsReq) GetDescription() string + func (x *UpdateEcsReq) GetHostName() string + func (x *UpdateEcsReq) GetInstanceIds() string + func (x *UpdateEcsReq) GetInstanceName() string + func (x *UpdateEcsReq) GetIsRestart() bool + func (x *UpdateEcsReq) GetMemory() string + func (x *UpdateEcsReq) GetNamespace() string + func (x *UpdateEcsReq) GetPassword() string + func (x *UpdateEcsReq) GetProvider() pbtenant.CloudProvider + func (x *UpdateEcsReq) GetRegionId() int32 + func (x *UpdateEcsReq) GetSecurityGroupIds() string + func (x *UpdateEcsReq) ProtoReflect() protoreflect.Message + func (x *UpdateEcsReq) Reset() + func (x *UpdateEcsReq) String() string + type UpdateEcsResp struct + AccountName string + Provider pbtenant.CloudProvider + RegionId int32 + RequestId string + func (*UpdateEcsResp) Descriptor() ([]byte, []int) + func (*UpdateEcsResp) ProtoMessage() + func (x *UpdateEcsResp) GetAccountName() string + func (x *UpdateEcsResp) GetProvider() pbtenant.CloudProvider + func (x *UpdateEcsResp) GetRegionId() int32 + func (x *UpdateEcsResp) GetRequestId() string + func (x *UpdateEcsResp) ProtoReflect() protoreflect.Message + func (x *UpdateEcsResp) Reset() + func (x *UpdateEcsResp) String() string