Documentation ¶
Index ¶
- Variables
- func RegisterNodeServiceServer(s *grpc.Server, srv NodeServiceServer)
- type ListNodeRequest
- func (*ListNodeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListNodeRequest) GetChain() string
- func (x *ListNodeRequest) GetNamespace() string
- func (*ListNodeRequest) ProtoMessage()
- func (x *ListNodeRequest) ProtoReflect() protoreflect.Message
- func (x *ListNodeRequest) Reset()
- func (x *ListNodeRequest) String() string
- type Node
- func (*Node) Descriptor() ([]byte, []int)deprecated
- func (x *Node) GetAccount() string
- func (x *Node) GetChain() string
- func (x *Node) GetCluster() string
- func (x *Node) GetCpuLimit() string
- func (x *Node) GetCpuRequest() string
- func (x *Node) GetExternalIp() string
- func (x *Node) GetLogLevel() string
- func (x *Node) GetMemLimit() string
- func (x *Node) GetMemRequest() string
- func (x *Node) GetName() string
- func (x *Node) GetNamespace() string
- func (x *Node) GetPort() int32
- func (x *Node) GetStatus() Status
- func (x *Node) GetStorageClassName() string
- func (x *Node) GetStorageSize() int64
- func (*Node) ProtoMessage()
- func (x *Node) ProtoReflect() protoreflect.Message
- func (x *Node) Reset()
- func (x *Node) String() string
- type NodeDeleteRequest
- func (*NodeDeleteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NodeDeleteRequest) GetName() string
- func (x *NodeDeleteRequest) GetNamespace() string
- func (*NodeDeleteRequest) ProtoMessage()
- func (x *NodeDeleteRequest) ProtoReflect() protoreflect.Message
- func (x *NodeDeleteRequest) Reset()
- func (x *NodeDeleteRequest) String() string
- type NodeList
- type NodeServiceClient
- type NodeServiceServer
- type NodeSimpleResponse
- func (*NodeSimpleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *NodeSimpleResponse) GetName() string
- func (x *NodeSimpleResponse) GetNamespace() string
- func (x *NodeSimpleResponse) GetStatus() Status
- func (*NodeSimpleResponse) ProtoMessage()
- func (x *NodeSimpleResponse) ProtoReflect() protoreflect.Message
- func (x *NodeSimpleResponse) Reset()
- func (x *NodeSimpleResponse) String() string
- type NodeStartRequest
- func (*NodeStartRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NodeStartRequest) GetName() string
- func (x *NodeStartRequest) GetNamespace() string
- func (*NodeStartRequest) ProtoMessage()
- func (x *NodeStartRequest) ProtoReflect() protoreflect.Message
- func (x *NodeStartRequest) Reset()
- func (x *NodeStartRequest) String() string
- type NodeStopRequest
- func (*NodeStopRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NodeStopRequest) GetName() string
- func (x *NodeStopRequest) GetNamespace() string
- func (*NodeStopRequest) ProtoMessage()
- func (x *NodeStopRequest) ProtoReflect() protoreflect.Message
- func (x *NodeStopRequest) Reset()
- func (x *NodeStopRequest) String() string
- type ReloadConfigRequest
- func (*ReloadConfigRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReloadConfigRequest) GetName() string
- func (x *ReloadConfigRequest) GetNamespace() string
- func (*ReloadConfigRequest) ProtoMessage()
- func (x *ReloadConfigRequest) ProtoReflect() protoreflect.Message
- func (x *ReloadConfigRequest) Reset()
- func (x *ReloadConfigRequest) String() string
- type Status
- type UnimplementedNodeServiceServer
- func (*UnimplementedNodeServiceServer) Delete(context.Context, *NodeDeleteRequest) (*emptypb.Empty, error)
- func (*UnimplementedNodeServiceServer) Init(context.Context, *Node) (*NodeSimpleResponse, error)
- func (*UnimplementedNodeServiceServer) List(context.Context, *ListNodeRequest) (*NodeList, error)
- func (*UnimplementedNodeServiceServer) ReloadConfig(context.Context, *ReloadConfigRequest) (*emptypb.Empty, error)
- func (*UnimplementedNodeServiceServer) Start(context.Context, *NodeStartRequest) (*NodeSimpleResponse, error)
- func (*UnimplementedNodeServiceServer) Stop(context.Context, *NodeStopRequest) (*emptypb.Empty, error)
Constants ¶
This section is empty.
Variables ¶
var ( Status_name = map[int32]string{ 0: "Unknown", 1: "WaitChainOnline", 2: "Initialized", 3: "Starting", 4: "Running", 5: "Warning", 6: "Error", 7: "Updating", 8: "Stopping", 9: "Stopped", } Status_value = map[string]int32{ "Unknown": 0, "WaitChainOnline": 1, "Initialized": 2, "Starting": 3, "Running": 4, "Warning": 5, "Error": 6, "Updating": 7, "Stopping": 8, "Stopped": 9, } )
Enum value maps for Status.
var File_api_node_node_proto protoreflect.FileDescriptor
Functions ¶
func RegisterNodeServiceServer ¶
func RegisterNodeServiceServer(s *grpc.Server, srv NodeServiceServer)
Types ¶
type ListNodeRequest ¶
type ListNodeRequest struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` Chain string `protobuf:"bytes,2,opt,name=chain,proto3" json:"chain,omitempty"` // contains filtered or unexported fields }
func (*ListNodeRequest) Descriptor
deprecated
func (*ListNodeRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListNodeRequest.ProtoReflect.Descriptor instead.
func (*ListNodeRequest) GetChain ¶
func (x *ListNodeRequest) GetChain() string
func (*ListNodeRequest) GetNamespace ¶
func (x *ListNodeRequest) GetNamespace() string
func (*ListNodeRequest) ProtoMessage ¶
func (*ListNodeRequest) ProtoMessage()
func (*ListNodeRequest) ProtoReflect ¶
func (x *ListNodeRequest) ProtoReflect() protoreflect.Message
func (*ListNodeRequest) Reset ¶
func (x *ListNodeRequest) Reset()
func (*ListNodeRequest) String ¶
func (x *ListNodeRequest) String() string
type Node ¶
type Node struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` Cluster string `protobuf:"bytes,3,opt,name=cluster,proto3" json:"cluster,omitempty"` Account string `protobuf:"bytes,4,opt,name=account,proto3" json:"account,omitempty"` ExternalIp string `protobuf:"bytes,5,opt,name=externalIp,proto3" json:"externalIp,omitempty"` Port int32 `protobuf:"varint,6,opt,name=port,proto3" json:"port,omitempty"` Chain string `protobuf:"bytes,7,opt,name=chain,proto3" json:"chain,omitempty"` StorageSize int64 `protobuf:"varint,13,opt,name=storageSize,proto3" json:"storageSize,omitempty"` StorageClassName string `protobuf:"bytes,14,opt,name=storageClassName,proto3" json:"storageClassName,omitempty"` LogLevel string `protobuf:"bytes,15,opt,name=logLevel,proto3" json:"logLevel,omitempty"` Status Status `protobuf:"varint,16,opt,name=status,proto3,enum=node.Status" json:"status,omitempty"` CpuRequest string `protobuf:"bytes,17,opt,name=cpuRequest,proto3" json:"cpuRequest,omitempty"` CpuLimit string `protobuf:"bytes,18,opt,name=cpuLimit,proto3" json:"cpuLimit,omitempty"` MemRequest string `protobuf:"bytes,19,opt,name=memRequest,proto3" json:"memRequest,omitempty"` MemLimit string `protobuf:"bytes,20,opt,name=memLimit,proto3" json:"memLimit,omitempty"` // contains filtered or unexported fields }
func (*Node) Descriptor
deprecated
func (*Node) GetAccount ¶
func (*Node) GetCluster ¶
func (*Node) GetCpuLimit ¶ added in v0.0.3
func (*Node) GetCpuRequest ¶ added in v0.0.3
func (*Node) GetExternalIp ¶
func (*Node) GetLogLevel ¶
func (*Node) GetMemLimit ¶ added in v0.0.3
func (*Node) GetMemRequest ¶ added in v0.0.3
func (*Node) GetNamespace ¶
func (*Node) GetStorageClassName ¶
func (*Node) GetStorageSize ¶
func (*Node) ProtoMessage ¶
func (*Node) ProtoMessage()
func (*Node) ProtoReflect ¶
func (x *Node) ProtoReflect() protoreflect.Message
type NodeDeleteRequest ¶
type NodeDeleteRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` // contains filtered or unexported fields }
func (*NodeDeleteRequest) Descriptor
deprecated
func (*NodeDeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use NodeDeleteRequest.ProtoReflect.Descriptor instead.
func (*NodeDeleteRequest) GetName ¶
func (x *NodeDeleteRequest) GetName() string
func (*NodeDeleteRequest) GetNamespace ¶
func (x *NodeDeleteRequest) GetNamespace() string
func (*NodeDeleteRequest) ProtoMessage ¶
func (*NodeDeleteRequest) ProtoMessage()
func (*NodeDeleteRequest) ProtoReflect ¶
func (x *NodeDeleteRequest) ProtoReflect() protoreflect.Message
func (*NodeDeleteRequest) Reset ¶
func (x *NodeDeleteRequest) Reset()
func (*NodeDeleteRequest) String ¶
func (x *NodeDeleteRequest) String() string
type NodeList ¶
type NodeList struct { Nodes []*Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"` // contains filtered or unexported fields }
func (*NodeList) Descriptor
deprecated
func (*NodeList) ProtoMessage ¶
func (*NodeList) ProtoMessage()
func (*NodeList) ProtoReflect ¶
func (x *NodeList) ProtoReflect() protoreflect.Message
type NodeServiceClient ¶
type NodeServiceClient interface { Init(ctx context.Context, in *Node, opts ...grpc.CallOption) (*NodeSimpleResponse, error) List(ctx context.Context, in *ListNodeRequest, opts ...grpc.CallOption) (*NodeList, error) Start(ctx context.Context, in *NodeStartRequest, opts ...grpc.CallOption) (*NodeSimpleResponse, error) Stop(ctx context.Context, in *NodeStopRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) ReloadConfig(ctx context.Context, in *ReloadConfigRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) Delete(ctx context.Context, in *NodeDeleteRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
NodeServiceClient is the client API for NodeService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewNodeServiceClient ¶
func NewNodeServiceClient(cc grpc.ClientConnInterface) NodeServiceClient
type NodeServiceServer ¶
type NodeServiceServer interface { Init(context.Context, *Node) (*NodeSimpleResponse, error) List(context.Context, *ListNodeRequest) (*NodeList, error) Start(context.Context, *NodeStartRequest) (*NodeSimpleResponse, error) Stop(context.Context, *NodeStopRequest) (*emptypb.Empty, error) ReloadConfig(context.Context, *ReloadConfigRequest) (*emptypb.Empty, error) Delete(context.Context, *NodeDeleteRequest) (*emptypb.Empty, error) }
NodeServiceServer is the server API for NodeService service.
type NodeSimpleResponse ¶
type NodeSimpleResponse struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` Status Status `protobuf:"varint,3,opt,name=status,proto3,enum=node.Status" json:"status,omitempty"` // contains filtered or unexported fields }
func (*NodeSimpleResponse) Descriptor
deprecated
func (*NodeSimpleResponse) Descriptor() ([]byte, []int)
Deprecated: Use NodeSimpleResponse.ProtoReflect.Descriptor instead.
func (*NodeSimpleResponse) GetName ¶
func (x *NodeSimpleResponse) GetName() string
func (*NodeSimpleResponse) GetNamespace ¶
func (x *NodeSimpleResponse) GetNamespace() string
func (*NodeSimpleResponse) GetStatus ¶
func (x *NodeSimpleResponse) GetStatus() Status
func (*NodeSimpleResponse) ProtoMessage ¶
func (*NodeSimpleResponse) ProtoMessage()
func (*NodeSimpleResponse) ProtoReflect ¶
func (x *NodeSimpleResponse) ProtoReflect() protoreflect.Message
func (*NodeSimpleResponse) Reset ¶
func (x *NodeSimpleResponse) Reset()
func (*NodeSimpleResponse) String ¶
func (x *NodeSimpleResponse) String() string
type NodeStartRequest ¶
type NodeStartRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` // contains filtered or unexported fields }
func (*NodeStartRequest) Descriptor
deprecated
func (*NodeStartRequest) Descriptor() ([]byte, []int)
Deprecated: Use NodeStartRequest.ProtoReflect.Descriptor instead.
func (*NodeStartRequest) GetName ¶
func (x *NodeStartRequest) GetName() string
func (*NodeStartRequest) GetNamespace ¶
func (x *NodeStartRequest) GetNamespace() string
func (*NodeStartRequest) ProtoMessage ¶
func (*NodeStartRequest) ProtoMessage()
func (*NodeStartRequest) ProtoReflect ¶
func (x *NodeStartRequest) ProtoReflect() protoreflect.Message
func (*NodeStartRequest) Reset ¶
func (x *NodeStartRequest) Reset()
func (*NodeStartRequest) String ¶
func (x *NodeStartRequest) String() string
type NodeStopRequest ¶
type NodeStopRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` // contains filtered or unexported fields }
func (*NodeStopRequest) Descriptor
deprecated
func (*NodeStopRequest) Descriptor() ([]byte, []int)
Deprecated: Use NodeStopRequest.ProtoReflect.Descriptor instead.
func (*NodeStopRequest) GetName ¶
func (x *NodeStopRequest) GetName() string
func (*NodeStopRequest) GetNamespace ¶
func (x *NodeStopRequest) GetNamespace() string
func (*NodeStopRequest) ProtoMessage ¶
func (*NodeStopRequest) ProtoMessage()
func (*NodeStopRequest) ProtoReflect ¶
func (x *NodeStopRequest) ProtoReflect() protoreflect.Message
func (*NodeStopRequest) Reset ¶
func (x *NodeStopRequest) Reset()
func (*NodeStopRequest) String ¶
func (x *NodeStopRequest) String() string
type ReloadConfigRequest ¶
type ReloadConfigRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` // contains filtered or unexported fields }
func (*ReloadConfigRequest) Descriptor
deprecated
func (*ReloadConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReloadConfigRequest.ProtoReflect.Descriptor instead.
func (*ReloadConfigRequest) GetName ¶
func (x *ReloadConfigRequest) GetName() string
func (*ReloadConfigRequest) GetNamespace ¶
func (x *ReloadConfigRequest) GetNamespace() string
func (*ReloadConfigRequest) ProtoMessage ¶
func (*ReloadConfigRequest) ProtoMessage()
func (*ReloadConfigRequest) ProtoReflect ¶
func (x *ReloadConfigRequest) ProtoReflect() protoreflect.Message
func (*ReloadConfigRequest) Reset ¶
func (x *ReloadConfigRequest) Reset()
func (*ReloadConfigRequest) String ¶
func (x *ReloadConfigRequest) String() string
type Status ¶
type Status int32
func (Status) Descriptor ¶
func (Status) Descriptor() protoreflect.EnumDescriptor
func (Status) EnumDescriptor
deprecated
func (Status) Number ¶
func (x Status) Number() protoreflect.EnumNumber
func (Status) Type ¶
func (Status) Type() protoreflect.EnumType
type UnimplementedNodeServiceServer ¶
type UnimplementedNodeServiceServer struct { }
UnimplementedNodeServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedNodeServiceServer) Delete ¶
func (*UnimplementedNodeServiceServer) Delete(context.Context, *NodeDeleteRequest) (*emptypb.Empty, error)
func (*UnimplementedNodeServiceServer) Init ¶
func (*UnimplementedNodeServiceServer) Init(context.Context, *Node) (*NodeSimpleResponse, error)
func (*UnimplementedNodeServiceServer) List ¶
func (*UnimplementedNodeServiceServer) List(context.Context, *ListNodeRequest) (*NodeList, error)
func (*UnimplementedNodeServiceServer) ReloadConfig ¶
func (*UnimplementedNodeServiceServer) ReloadConfig(context.Context, *ReloadConfigRequest) (*emptypb.Empty, error)
func (*UnimplementedNodeServiceServer) Start ¶
func (*UnimplementedNodeServiceServer) Start(context.Context, *NodeStartRequest) (*NodeSimpleResponse, error)
func (*UnimplementedNodeServiceServer) Stop ¶
func (*UnimplementedNodeServiceServer) Stop(context.Context, *NodeStopRequest) (*emptypb.Empty, error)