node

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Node.ProtoReflect.Descriptor instead.

func (*Node) GetAccount

func (x *Node) GetAccount() string

func (*Node) GetChain

func (x *Node) GetChain() string

func (*Node) GetCluster

func (x *Node) GetCluster() string

func (*Node) GetCpuLimit added in v0.0.3

func (x *Node) GetCpuLimit() string

func (*Node) GetCpuRequest added in v0.0.3

func (x *Node) GetCpuRequest() string

func (*Node) GetExternalIp

func (x *Node) GetExternalIp() string

func (*Node) GetLogLevel

func (x *Node) GetLogLevel() string

func (*Node) GetMemLimit added in v0.0.3

func (x *Node) GetMemLimit() string

func (*Node) GetMemRequest added in v0.0.3

func (x *Node) GetMemRequest() string

func (*Node) GetName

func (x *Node) GetName() string

func (*Node) GetNamespace

func (x *Node) GetNamespace() string

func (*Node) GetPort

func (x *Node) GetPort() int32

func (*Node) GetStatus

func (x *Node) GetStatus() Status

func (*Node) GetStorageClassName

func (x *Node) GetStorageClassName() string

func (*Node) GetStorageSize

func (x *Node) GetStorageSize() int64

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) ProtoReflect

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

func (*Node) Reset

func (x *Node) Reset()

func (*Node) String

func (x *Node) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use NodeList.ProtoReflect.Descriptor instead.

func (*NodeList) GetNodes

func (x *NodeList) GetNodes() []*Node

func (*NodeList) ProtoMessage

func (*NodeList) ProtoMessage()

func (*NodeList) ProtoReflect

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

func (*NodeList) Reset

func (x *NodeList) Reset()

func (*NodeList) String

func (x *NodeList) String() string

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.

type NodeServiceServer

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
const (
	Status_Unknown         Status = 0
	Status_WaitChainOnline Status = 1
	Status_Initialized     Status = 2
	Status_Starting        Status = 3
	Status_Running         Status = 4
	Status_Warning         Status = 5
	Status_Error           Status = 6
	Status_Updating        Status = 7
	Status_Stopping        Status = 8
	Status_Stopped         Status = 9
)

func (Status) Descriptor

func (Status) Descriptor() protoreflect.EnumDescriptor

func (Status) Enum

func (x Status) Enum() *Status

func (Status) EnumDescriptor deprecated

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

Deprecated: Use Status.Descriptor instead.

func (Status) Number

func (x Status) Number() protoreflect.EnumNumber

func (Status) String

func (x Status) String() string

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

func (*UnimplementedNodeServiceServer) List

func (*UnimplementedNodeServiceServer) ReloadConfig

func (*UnimplementedNodeServiceServer) Start

func (*UnimplementedNodeServiceServer) Stop

Jump to

Keyboard shortcuts

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