Documentation ¶
Overview ¶
Package pb is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterCaserverHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterCaserverHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CaserverClient) error
- func RegisterCaserverHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterCaserverServer(s *grpc.Server, srv CaserverServer)
- type CaserverClient
- type CaserverServer
- type CurrentCertRequest
- func (*CurrentCertRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CurrentCertRequest) GetAddress() string
- func (x *CurrentCertRequest) GetLogid() string
- func (x *CurrentCertRequest) GetNet() string
- func (x *CurrentCertRequest) GetSign() *Sign
- func (*CurrentCertRequest) ProtoMessage()
- func (x *CurrentCertRequest) ProtoReflect() protoreflect.Message
- func (x *CurrentCertRequest) Reset()
- func (x *CurrentCertRequest) String() string
- type CurrentCertResponse
- func (*CurrentCertResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CurrentCertResponse) GetCaCert() string
- func (x *CurrentCertResponse) GetCert() string
- func (x *CurrentCertResponse) GetLogid() string
- func (x *CurrentCertResponse) GetNodeHdPriKey() string
- func (x *CurrentCertResponse) GetPrivateKey() string
- func (*CurrentCertResponse) ProtoMessage()
- func (x *CurrentCertResponse) ProtoReflect() protoreflect.Message
- func (x *CurrentCertResponse) Reset()
- func (x *CurrentCertResponse) String() string
- type EnrollNetRequest
- func (*EnrollNetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EnrollNetRequest) GetAddress() string
- func (x *EnrollNetRequest) GetLogid() string
- func (x *EnrollNetRequest) GetNet() string
- func (x *EnrollNetRequest) GetSign() *Sign
- func (*EnrollNetRequest) ProtoMessage()
- func (x *EnrollNetRequest) ProtoReflect() protoreflect.Message
- func (x *EnrollNetRequest) Reset()
- func (x *EnrollNetRequest) String() string
- type EnrollNodeRequest
- func (*EnrollNodeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EnrollNodeRequest) GetAddress() string
- func (x *EnrollNodeRequest) GetAdminAddress() string
- func (x *EnrollNodeRequest) GetLogid() string
- func (x *EnrollNodeRequest) GetNet() string
- func (x *EnrollNodeRequest) GetSign() *Sign
- func (*EnrollNodeRequest) ProtoMessage()
- func (x *EnrollNodeRequest) ProtoReflect() protoreflect.Message
- func (x *EnrollNodeRequest) Reset()
- func (x *EnrollNodeRequest) String() string
- type EnrollResponse
- type RevokeListRequest
- func (*RevokeListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RevokeListRequest) GetLogid() string
- func (x *RevokeListRequest) GetNet() string
- func (x *RevokeListRequest) GetSerialNum() string
- func (x *RevokeListRequest) GetSign() *Sign
- func (*RevokeListRequest) ProtoMessage()
- func (x *RevokeListRequest) ProtoReflect() protoreflect.Message
- func (x *RevokeListRequest) Reset()
- func (x *RevokeListRequest) String() string
- type RevokeListResponse
- func (*RevokeListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RevokeListResponse) GetList() []*RevokeNode
- func (x *RevokeListResponse) GetLogid() string
- func (*RevokeListResponse) ProtoMessage()
- func (x *RevokeListResponse) ProtoReflect() protoreflect.Message
- func (x *RevokeListResponse) Reset()
- func (x *RevokeListResponse) String() string
- type RevokeNode
- func (*RevokeNode) Descriptor() ([]byte, []int)deprecated
- func (x *RevokeNode) GetAddress() string
- func (x *RevokeNode) GetCreateTime() int64
- func (x *RevokeNode) GetId() int64
- func (x *RevokeNode) GetPublicKey() string
- func (x *RevokeNode) GetSerialNum() string
- func (x *RevokeNode) GetSign() []byte
- func (*RevokeNode) ProtoMessage()
- func (x *RevokeNode) ProtoReflect() protoreflect.Message
- func (x *RevokeNode) Reset()
- func (x *RevokeNode) String() string
- type RevokeNodeRequest
- func (*RevokeNodeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RevokeNodeRequest) GetAddress() string
- func (x *RevokeNodeRequest) GetLogid() string
- func (x *RevokeNodeRequest) GetNet() string
- func (x *RevokeNodeRequest) GetSign() *Sign
- func (*RevokeNodeRequest) ProtoMessage()
- func (x *RevokeNodeRequest) ProtoReflect() protoreflect.Message
- func (x *RevokeNodeRequest) Reset()
- func (x *RevokeNodeRequest) String() string
- type RevokeNodeResponse
- func (*RevokeNodeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RevokeNodeResponse) GetLogid() string
- func (*RevokeNodeResponse) ProtoMessage()
- func (x *RevokeNodeResponse) ProtoReflect() protoreflect.Message
- func (x *RevokeNodeResponse) Reset()
- func (x *RevokeNodeResponse) String() string
- type Sign
- func (*Sign) Descriptor() ([]byte, []int)deprecated
- func (x *Sign) GetAddress() string
- func (x *Sign) GetNonce() string
- func (x *Sign) GetPublicKey() string
- func (x *Sign) GetSign() []byte
- func (*Sign) ProtoMessage()
- func (x *Sign) ProtoReflect() protoreflect.Message
- func (x *Sign) Reset()
- func (x *Sign) String() string
- type UnimplementedCaserverServer
- func (*UnimplementedCaserverServer) GetCurrentCert(context.Context, *CurrentCertRequest) (*CurrentCertResponse, error)
- func (*UnimplementedCaserverServer) GetRevokeList(context.Context, *RevokeListRequest) (*RevokeListResponse, error)
- func (*UnimplementedCaserverServer) NetAdminEnroll(context.Context, *EnrollNetRequest) (*EnrollResponse, error)
- func (*UnimplementedCaserverServer) NodeEnroll(context.Context, *EnrollNodeRequest) (*EnrollResponse, error)
- func (*UnimplementedCaserverServer) RevokeCert(context.Context, *RevokeNodeRequest) (*RevokeNodeResponse, error)
Constants ¶
This section is empty.
Variables ¶
var File_caserver_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCaserverHandler ¶
func RegisterCaserverHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterCaserverHandler registers the http handlers for service Caserver to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterCaserverHandlerClient ¶
func RegisterCaserverHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CaserverClient) error
RegisterCaserverHandler registers the http handlers for service Caserver to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "CaserverClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "CaserverClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "CaserverClient" to call the correct interceptors.
func RegisterCaserverHandlerFromEndpoint ¶
func RegisterCaserverHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterCaserverHandlerFromEndpoint is same as RegisterCaserverHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterCaserverServer ¶
func RegisterCaserverServer(s *grpc.Server, srv CaserverServer)
Types ¶
type CaserverClient ¶
type CaserverClient interface { // Net Admin Enroll NetAdminEnroll(ctx context.Context, in *EnrollNetRequest, opts ...grpc.CallOption) (*EnrollResponse, error) // Node Enroll NodeEnroll(ctx context.Context, in *EnrollNodeRequest, opts ...grpc.CallOption) (*EnrollResponse, error) // Get Current Cert GetCurrentCert(ctx context.Context, in *CurrentCertRequest, opts ...grpc.CallOption) (*CurrentCertResponse, error) // Get Revoke List GetRevokeList(ctx context.Context, in *RevokeListRequest, opts ...grpc.CallOption) (*RevokeListResponse, error) // Revoke a node RevokeCert(ctx context.Context, in *RevokeNodeRequest, opts ...grpc.CallOption) (*RevokeNodeResponse, error) }
CaserverClient is the client API for Caserver service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCaserverClient ¶
func NewCaserverClient(cc grpc.ClientConnInterface) CaserverClient
type CaserverServer ¶
type CaserverServer interface { // Net Admin Enroll NetAdminEnroll(context.Context, *EnrollNetRequest) (*EnrollResponse, error) // Node Enroll NodeEnroll(context.Context, *EnrollNodeRequest) (*EnrollResponse, error) // Get Current Cert GetCurrentCert(context.Context, *CurrentCertRequest) (*CurrentCertResponse, error) // Get Revoke List GetRevokeList(context.Context, *RevokeListRequest) (*RevokeListResponse, error) // Revoke a node RevokeCert(context.Context, *RevokeNodeRequest) (*RevokeNodeResponse, error) }
CaserverServer is the server API for Caserver service.
type CurrentCertRequest ¶
type CurrentCertRequest struct { Logid string `protobuf:"bytes,1,opt,name=logid,proto3" json:"logid,omitempty"` Sign *Sign `protobuf:"bytes,2,opt,name=sign,proto3" json:"sign,omitempty"` Net string `protobuf:"bytes,3,opt,name=net,proto3" json:"net,omitempty"` Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
The request message of Get Current Cert
func (*CurrentCertRequest) Descriptor
deprecated
func (*CurrentCertRequest) Descriptor() ([]byte, []int)
Deprecated: Use CurrentCertRequest.ProtoReflect.Descriptor instead.
func (*CurrentCertRequest) GetAddress ¶
func (x *CurrentCertRequest) GetAddress() string
func (*CurrentCertRequest) GetLogid ¶
func (x *CurrentCertRequest) GetLogid() string
func (*CurrentCertRequest) GetNet ¶
func (x *CurrentCertRequest) GetNet() string
func (*CurrentCertRequest) GetSign ¶
func (x *CurrentCertRequest) GetSign() *Sign
func (*CurrentCertRequest) ProtoMessage ¶
func (*CurrentCertRequest) ProtoMessage()
func (*CurrentCertRequest) ProtoReflect ¶
func (x *CurrentCertRequest) ProtoReflect() protoreflect.Message
func (*CurrentCertRequest) Reset ¶
func (x *CurrentCertRequest) Reset()
func (*CurrentCertRequest) String ¶
func (x *CurrentCertRequest) String() string
type CurrentCertResponse ¶
type CurrentCertResponse struct { Logid string `protobuf:"bytes,1,opt,name=logid,proto3" json:"logid,omitempty"` CaCert string `protobuf:"bytes,2,opt,name=caCert,proto3" json:"caCert,omitempty"` Cert string `protobuf:"bytes,3,opt,name=cert,proto3" json:"cert,omitempty"` PrivateKey string `protobuf:"bytes,4,opt,name=privateKey,proto3" json:"privateKey,omitempty"` NodeHdPriKey string `protobuf:"bytes,5,opt,name=nodeHdPriKey,proto3" json:"nodeHdPriKey,omitempty"` // contains filtered or unexported fields }
func (*CurrentCertResponse) Descriptor
deprecated
func (*CurrentCertResponse) Descriptor() ([]byte, []int)
Deprecated: Use CurrentCertResponse.ProtoReflect.Descriptor instead.
func (*CurrentCertResponse) GetCaCert ¶
func (x *CurrentCertResponse) GetCaCert() string
func (*CurrentCertResponse) GetCert ¶
func (x *CurrentCertResponse) GetCert() string
func (*CurrentCertResponse) GetLogid ¶
func (x *CurrentCertResponse) GetLogid() string
func (*CurrentCertResponse) GetNodeHdPriKey ¶
func (x *CurrentCertResponse) GetNodeHdPriKey() string
func (*CurrentCertResponse) GetPrivateKey ¶
func (x *CurrentCertResponse) GetPrivateKey() string
func (*CurrentCertResponse) ProtoMessage ¶
func (*CurrentCertResponse) ProtoMessage()
func (*CurrentCertResponse) ProtoReflect ¶
func (x *CurrentCertResponse) ProtoReflect() protoreflect.Message
func (*CurrentCertResponse) Reset ¶
func (x *CurrentCertResponse) Reset()
func (*CurrentCertResponse) String ¶
func (x *CurrentCertResponse) String() string
type EnrollNetRequest ¶
type EnrollNetRequest struct { Logid string `protobuf:"bytes,1,opt,name=logid,proto3" json:"logid,omitempty"` Sign *Sign `protobuf:"bytes,2,opt,name=sign,proto3" json:"sign,omitempty"` Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` Net string `protobuf:"bytes,4,opt,name=net,proto3" json:"net,omitempty"` // contains filtered or unexported fields }
func (*EnrollNetRequest) Descriptor
deprecated
func (*EnrollNetRequest) Descriptor() ([]byte, []int)
Deprecated: Use EnrollNetRequest.ProtoReflect.Descriptor instead.
func (*EnrollNetRequest) GetAddress ¶
func (x *EnrollNetRequest) GetAddress() string
func (*EnrollNetRequest) GetLogid ¶
func (x *EnrollNetRequest) GetLogid() string
func (*EnrollNetRequest) GetNet ¶
func (x *EnrollNetRequest) GetNet() string
func (*EnrollNetRequest) GetSign ¶
func (x *EnrollNetRequest) GetSign() *Sign
func (*EnrollNetRequest) ProtoMessage ¶
func (*EnrollNetRequest) ProtoMessage()
func (*EnrollNetRequest) ProtoReflect ¶
func (x *EnrollNetRequest) ProtoReflect() protoreflect.Message
func (*EnrollNetRequest) Reset ¶
func (x *EnrollNetRequest) Reset()
func (*EnrollNetRequest) String ¶
func (x *EnrollNetRequest) String() string
type EnrollNodeRequest ¶
type EnrollNodeRequest struct { Logid string `protobuf:"bytes,1,opt,name=logid,proto3" json:"logid,omitempty"` Sign *Sign `protobuf:"bytes,2,opt,name=sign,proto3" json:"sign,omitempty"` Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` Net string `protobuf:"bytes,4,opt,name=net,proto3" json:"net,omitempty"` AdminAddress string `protobuf:"bytes,5,opt,name=adminAddress,proto3" json:"adminAddress,omitempty"` // contains filtered or unexported fields }
func (*EnrollNodeRequest) Descriptor
deprecated
func (*EnrollNodeRequest) Descriptor() ([]byte, []int)
Deprecated: Use EnrollNodeRequest.ProtoReflect.Descriptor instead.
func (*EnrollNodeRequest) GetAddress ¶
func (x *EnrollNodeRequest) GetAddress() string
func (*EnrollNodeRequest) GetAdminAddress ¶
func (x *EnrollNodeRequest) GetAdminAddress() string
func (*EnrollNodeRequest) GetLogid ¶
func (x *EnrollNodeRequest) GetLogid() string
func (*EnrollNodeRequest) GetNet ¶
func (x *EnrollNodeRequest) GetNet() string
func (*EnrollNodeRequest) GetSign ¶
func (x *EnrollNodeRequest) GetSign() *Sign
func (*EnrollNodeRequest) ProtoMessage ¶
func (*EnrollNodeRequest) ProtoMessage()
func (*EnrollNodeRequest) ProtoReflect ¶
func (x *EnrollNodeRequest) ProtoReflect() protoreflect.Message
func (*EnrollNodeRequest) Reset ¶
func (x *EnrollNodeRequest) Reset()
func (*EnrollNodeRequest) String ¶
func (x *EnrollNodeRequest) String() string
type EnrollResponse ¶
type EnrollResponse struct { Logid string `protobuf:"bytes,1,opt,name=logid,proto3" json:"logid,omitempty"` // contains filtered or unexported fields }
func (*EnrollResponse) Descriptor
deprecated
func (*EnrollResponse) Descriptor() ([]byte, []int)
Deprecated: Use EnrollResponse.ProtoReflect.Descriptor instead.
func (*EnrollResponse) GetLogid ¶
func (x *EnrollResponse) GetLogid() string
func (*EnrollResponse) ProtoMessage ¶
func (*EnrollResponse) ProtoMessage()
func (*EnrollResponse) ProtoReflect ¶
func (x *EnrollResponse) ProtoReflect() protoreflect.Message
func (*EnrollResponse) Reset ¶
func (x *EnrollResponse) Reset()
func (*EnrollResponse) String ¶
func (x *EnrollResponse) String() string
type RevokeListRequest ¶
type RevokeListRequest struct { Logid string `protobuf:"bytes,1,opt,name=logid,proto3" json:"logid,omitempty"` Sign *Sign `protobuf:"bytes,2,opt,name=sign,proto3" json:"sign,omitempty"` Net string `protobuf:"bytes,3,opt,name=net,proto3" json:"net,omitempty"` SerialNum string `protobuf:"bytes,4,opt,name=serial_num,json=serialNum,proto3" json:"serial_num,omitempty"` // contains filtered or unexported fields }
func (*RevokeListRequest) Descriptor
deprecated
func (*RevokeListRequest) Descriptor() ([]byte, []int)
Deprecated: Use RevokeListRequest.ProtoReflect.Descriptor instead.
func (*RevokeListRequest) GetLogid ¶
func (x *RevokeListRequest) GetLogid() string
func (*RevokeListRequest) GetNet ¶
func (x *RevokeListRequest) GetNet() string
func (*RevokeListRequest) GetSerialNum ¶
func (x *RevokeListRequest) GetSerialNum() string
func (*RevokeListRequest) GetSign ¶
func (x *RevokeListRequest) GetSign() *Sign
func (*RevokeListRequest) ProtoMessage ¶
func (*RevokeListRequest) ProtoMessage()
func (*RevokeListRequest) ProtoReflect ¶
func (x *RevokeListRequest) ProtoReflect() protoreflect.Message
func (*RevokeListRequest) Reset ¶
func (x *RevokeListRequest) Reset()
func (*RevokeListRequest) String ¶
func (x *RevokeListRequest) String() string
type RevokeListResponse ¶
type RevokeListResponse struct { Logid string `protobuf:"bytes,1,opt,name=logid,proto3" json:"logid,omitempty"` List []*RevokeNode `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*RevokeListResponse) Descriptor
deprecated
func (*RevokeListResponse) Descriptor() ([]byte, []int)
Deprecated: Use RevokeListResponse.ProtoReflect.Descriptor instead.
func (*RevokeListResponse) GetList ¶
func (x *RevokeListResponse) GetList() []*RevokeNode
func (*RevokeListResponse) GetLogid ¶
func (x *RevokeListResponse) GetLogid() string
func (*RevokeListResponse) ProtoMessage ¶
func (*RevokeListResponse) ProtoMessage()
func (*RevokeListResponse) ProtoReflect ¶
func (x *RevokeListResponse) ProtoReflect() protoreflect.Message
func (*RevokeListResponse) Reset ¶
func (x *RevokeListResponse) Reset()
func (*RevokeListResponse) String ¶
func (x *RevokeListResponse) String() string
type RevokeNode ¶
type RevokeNode struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` SerialNum string `protobuf:"bytes,2,opt,name=serialNum,proto3" json:"serialNum,omitempty"` CreateTime int64 `protobuf:"varint,3,opt,name=createTime,proto3" json:"createTime,omitempty"` Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` PublicKey string `protobuf:"bytes,5,opt,name=publicKey,proto3" json:"publicKey,omitempty"` Sign []byte `protobuf:"bytes,6,opt,name=sign,proto3" json:"sign,omitempty"` // contains filtered or unexported fields }
func (*RevokeNode) Descriptor
deprecated
func (*RevokeNode) Descriptor() ([]byte, []int)
Deprecated: Use RevokeNode.ProtoReflect.Descriptor instead.
func (*RevokeNode) GetAddress ¶
func (x *RevokeNode) GetAddress() string
func (*RevokeNode) GetCreateTime ¶
func (x *RevokeNode) GetCreateTime() int64
func (*RevokeNode) GetId ¶
func (x *RevokeNode) GetId() int64
func (*RevokeNode) GetPublicKey ¶
func (x *RevokeNode) GetPublicKey() string
func (*RevokeNode) GetSerialNum ¶
func (x *RevokeNode) GetSerialNum() string
func (*RevokeNode) GetSign ¶
func (x *RevokeNode) GetSign() []byte
func (*RevokeNode) ProtoMessage ¶
func (*RevokeNode) ProtoMessage()
func (*RevokeNode) ProtoReflect ¶
func (x *RevokeNode) ProtoReflect() protoreflect.Message
func (*RevokeNode) Reset ¶
func (x *RevokeNode) Reset()
func (*RevokeNode) String ¶
func (x *RevokeNode) String() string
type RevokeNodeRequest ¶
type RevokeNodeRequest struct { Logid string `protobuf:"bytes,1,opt,name=logid,proto3" json:"logid,omitempty"` Sign *Sign `protobuf:"bytes,2,opt,name=sign,proto3" json:"sign,omitempty"` Net string `protobuf:"bytes,3,opt,name=net,proto3" json:"net,omitempty"` Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*RevokeNodeRequest) Descriptor
deprecated
func (*RevokeNodeRequest) Descriptor() ([]byte, []int)
Deprecated: Use RevokeNodeRequest.ProtoReflect.Descriptor instead.
func (*RevokeNodeRequest) GetAddress ¶
func (x *RevokeNodeRequest) GetAddress() string
func (*RevokeNodeRequest) GetLogid ¶
func (x *RevokeNodeRequest) GetLogid() string
func (*RevokeNodeRequest) GetNet ¶
func (x *RevokeNodeRequest) GetNet() string
func (*RevokeNodeRequest) GetSign ¶
func (x *RevokeNodeRequest) GetSign() *Sign
func (*RevokeNodeRequest) ProtoMessage ¶
func (*RevokeNodeRequest) ProtoMessage()
func (*RevokeNodeRequest) ProtoReflect ¶
func (x *RevokeNodeRequest) ProtoReflect() protoreflect.Message
func (*RevokeNodeRequest) Reset ¶
func (x *RevokeNodeRequest) Reset()
func (*RevokeNodeRequest) String ¶
func (x *RevokeNodeRequest) String() string
type RevokeNodeResponse ¶
type RevokeNodeResponse struct { Logid string `protobuf:"bytes,1,opt,name=logid,proto3" json:"logid,omitempty"` // contains filtered or unexported fields }
func (*RevokeNodeResponse) Descriptor
deprecated
func (*RevokeNodeResponse) Descriptor() ([]byte, []int)
Deprecated: Use RevokeNodeResponse.ProtoReflect.Descriptor instead.
func (*RevokeNodeResponse) GetLogid ¶
func (x *RevokeNodeResponse) GetLogid() string
func (*RevokeNodeResponse) ProtoMessage ¶
func (*RevokeNodeResponse) ProtoMessage()
func (*RevokeNodeResponse) ProtoReflect ¶
func (x *RevokeNodeResponse) ProtoReflect() protoreflect.Message
func (*RevokeNodeResponse) Reset ¶
func (x *RevokeNodeResponse) Reset()
func (*RevokeNodeResponse) String ¶
func (x *RevokeNodeResponse) String() string
type Sign ¶
type Sign struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` PublicKey string `protobuf:"bytes,2,opt,name=publicKey,proto3" json:"publicKey,omitempty"` Sign []byte `protobuf:"bytes,3,opt,name=sign,proto3" json:"sign,omitempty"` Nonce string `protobuf:"bytes,5,opt,name=nonce,proto3" json:"nonce,omitempty"` // contains filtered or unexported fields }
func (*Sign) Descriptor
deprecated
func (*Sign) GetAddress ¶
func (*Sign) GetPublicKey ¶
func (*Sign) ProtoMessage ¶
func (*Sign) ProtoMessage()
func (*Sign) ProtoReflect ¶
func (x *Sign) ProtoReflect() protoreflect.Message
type UnimplementedCaserverServer ¶
type UnimplementedCaserverServer struct { }
UnimplementedCaserverServer can be embedded to have forward compatible implementations.
func (*UnimplementedCaserverServer) GetCurrentCert ¶
func (*UnimplementedCaserverServer) GetCurrentCert(context.Context, *CurrentCertRequest) (*CurrentCertResponse, error)
func (*UnimplementedCaserverServer) GetRevokeList ¶
func (*UnimplementedCaserverServer) GetRevokeList(context.Context, *RevokeListRequest) (*RevokeListResponse, error)
func (*UnimplementedCaserverServer) NetAdminEnroll ¶
func (*UnimplementedCaserverServer) NetAdminEnroll(context.Context, *EnrollNetRequest) (*EnrollResponse, error)
func (*UnimplementedCaserverServer) NodeEnroll ¶
func (*UnimplementedCaserverServer) NodeEnroll(context.Context, *EnrollNodeRequest) (*EnrollResponse, error)
func (*UnimplementedCaserverServer) RevokeCert ¶
func (*UnimplementedCaserverServer) RevokeCert(context.Context, *RevokeNodeRequest) (*RevokeNodeResponse, error)