Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterManagementServiceServer(s grpc.ServiceRegistrar, srv ManagementServiceServer)
- type Certificate
- type GetCertCARequest
- type GetCertCAResponse
- func (*GetCertCAResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCertCAResponse) GetCertificate() *Certificate
- func (*GetCertCAResponse) ProtoMessage()
- func (x *GetCertCAResponse) ProtoReflect() protoreflect.Message
- func (x *GetCertCAResponse) Reset()
- func (x *GetCertCAResponse) String() string
- type GetCertListenerRequest
- type GetCertListenerResponse
- func (*GetCertListenerResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCertListenerResponse) GetCertificate() *Certificate
- func (*GetCertListenerResponse) ProtoMessage()
- func (x *GetCertListenerResponse) ProtoReflect() protoreflect.Message
- func (x *GetCertListenerResponse) Reset()
- func (x *GetCertListenerResponse) String() string
- type GetCertOperatorRequest
- type GetCertOperatorResponse
- func (*GetCertOperatorResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCertOperatorResponse) GetCertificate() *Certificate
- func (*GetCertOperatorResponse) ProtoMessage()
- func (x *GetCertOperatorResponse) ProtoReflect() protoreflect.Message
- func (x *GetCertOperatorResponse) Reset()
- func (x *GetCertOperatorResponse) String() string
- type GetListenersRequest
- type GetListenersResponse
- func (*GetListenersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetListenersResponse) GetListeners() []*Listener
- func (*GetListenersResponse) ProtoMessage()
- func (x *GetListenersResponse) ProtoReflect() protoreflect.Message
- func (x *GetListenersResponse) Reset()
- func (x *GetListenersResponse) String() string
- type GetOperatorsRequest
- type GetOperatorsResponse
- func (*GetOperatorsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetOperatorsResponse) GetOperators() []*Operator
- func (*GetOperatorsResponse) ProtoMessage()
- func (x *GetOperatorsResponse) ProtoReflect() protoreflect.Message
- func (x *GetOperatorsResponse) Reset()
- func (x *GetOperatorsResponse) String() string
- type Listener
- func (*Listener) Descriptor() ([]byte, []int)deprecated
- func (x *Listener) GetIp() *wrapperspb.StringValue
- func (x *Listener) GetLast() *timestamppb.Timestamp
- func (x *Listener) GetLid() int64
- func (x *Listener) GetName() *wrapperspb.StringValue
- func (x *Listener) GetPort() *wrapperspb.UInt32Value
- func (x *Listener) GetToken() *wrapperspb.StringValue
- func (*Listener) ProtoMessage()
- func (x *Listener) ProtoReflect() protoreflect.Message
- func (x *Listener) Reset()
- func (x *Listener) String() string
- type ManagementServiceClient
- type ManagementServiceServer
- type NewListenerRequest
- type NewListenerResponse
- func (*NewListenerResponse) Descriptor() ([]byte, []int)deprecated
- func (x *NewListenerResponse) GetListener() *Listener
- func (*NewListenerResponse) ProtoMessage()
- func (x *NewListenerResponse) ProtoReflect() protoreflect.Message
- func (x *NewListenerResponse) Reset()
- func (x *NewListenerResponse) String() string
- type NewOperatorRequest
- func (*NewOperatorRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NewOperatorRequest) GetUsername() string
- func (*NewOperatorRequest) ProtoMessage()
- func (x *NewOperatorRequest) ProtoReflect() protoreflect.Message
- func (x *NewOperatorRequest) Reset()
- func (x *NewOperatorRequest) String() string
- type NewOperatorResponse
- func (*NewOperatorResponse) Descriptor() ([]byte, []int)deprecated
- func (x *NewOperatorResponse) GetOperator() *Operator
- func (*NewOperatorResponse) ProtoMessage()
- func (x *NewOperatorResponse) ProtoReflect() protoreflect.Message
- func (x *NewOperatorResponse) Reset()
- func (x *NewOperatorResponse) String() string
- type Operator
- func (*Operator) Descriptor() ([]byte, []int)deprecated
- func (x *Operator) GetLast() *timestamppb.Timestamp
- func (x *Operator) GetToken() *wrapperspb.StringValue
- func (x *Operator) GetUsername() string
- func (*Operator) ProtoMessage()
- func (x *Operator) ProtoReflect() protoreflect.Message
- func (x *Operator) Reset()
- func (x *Operator) String() string
- type RegenerateListenerRequest
- func (*RegenerateListenerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegenerateListenerRequest) GetLid() int64
- func (*RegenerateListenerRequest) ProtoMessage()
- func (x *RegenerateListenerRequest) ProtoReflect() protoreflect.Message
- func (x *RegenerateListenerRequest) Reset()
- func (x *RegenerateListenerRequest) String() string
- type RegenerateListenerResponse
- func (*RegenerateListenerResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegenerateListenerResponse) GetListener() *Listener
- func (*RegenerateListenerResponse) ProtoMessage()
- func (x *RegenerateListenerResponse) ProtoReflect() protoreflect.Message
- func (x *RegenerateListenerResponse) Reset()
- func (x *RegenerateListenerResponse) String() string
- type RegenerateOperatorRequest
- func (*RegenerateOperatorRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegenerateOperatorRequest) GetUsername() string
- func (*RegenerateOperatorRequest) ProtoMessage()
- func (x *RegenerateOperatorRequest) ProtoReflect() protoreflect.Message
- func (x *RegenerateOperatorRequest) Reset()
- func (x *RegenerateOperatorRequest) String() string
- type RegenerateOperatorResponse
- func (*RegenerateOperatorResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegenerateOperatorResponse) GetOperator() *Operator
- func (*RegenerateOperatorResponse) ProtoMessage()
- func (x *RegenerateOperatorResponse) ProtoReflect() protoreflect.Message
- func (x *RegenerateOperatorResponse) Reset()
- func (x *RegenerateOperatorResponse) String() string
- type RevokeListenerRequest
- func (*RevokeListenerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RevokeListenerRequest) GetLid() int64
- func (*RevokeListenerRequest) ProtoMessage()
- func (x *RevokeListenerRequest) ProtoReflect() protoreflect.Message
- func (x *RevokeListenerRequest) Reset()
- func (x *RevokeListenerRequest) String() string
- type RevokeListenerResponse
- type RevokeOperatorRequest
- func (*RevokeOperatorRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RevokeOperatorRequest) GetUsername() string
- func (*RevokeOperatorRequest) ProtoMessage()
- func (x *RevokeOperatorRequest) ProtoReflect() protoreflect.Message
- func (x *RevokeOperatorRequest) Reset()
- func (x *RevokeOperatorRequest) String() string
- type RevokeOperatorResponse
- type UnimplementedManagementServiceServer
- func (UnimplementedManagementServiceServer) GetCertCA(context.Context, *GetCertCARequest) (*GetCertCAResponse, error)
- func (UnimplementedManagementServiceServer) GetCertListener(context.Context, *GetCertListenerRequest) (*GetCertListenerResponse, error)
- func (UnimplementedManagementServiceServer) GetCertOperator(context.Context, *GetCertOperatorRequest) (*GetCertOperatorResponse, error)
- func (UnimplementedManagementServiceServer) GetListeners(context.Context, *GetListenersRequest) (*GetListenersResponse, error)
- func (UnimplementedManagementServiceServer) GetOperators(context.Context, *GetOperatorsRequest) (*GetOperatorsResponse, error)
- func (UnimplementedManagementServiceServer) NewListener(context.Context, *NewListenerRequest) (*NewListenerResponse, error)
- func (UnimplementedManagementServiceServer) NewOperator(context.Context, *NewOperatorRequest) (*NewOperatorResponse, error)
- func (UnimplementedManagementServiceServer) RegenerateListener(context.Context, *RegenerateListenerRequest) (*RegenerateListenerResponse, error)
- func (UnimplementedManagementServiceServer) RegenerateOperator(context.Context, *RegenerateOperatorRequest) (*RegenerateOperatorResponse, error)
- func (UnimplementedManagementServiceServer) RevokeListener(context.Context, *RevokeListenerRequest) (*RevokeListenerResponse, error)
- func (UnimplementedManagementServiceServer) RevokeOperator(context.Context, *RevokeOperatorRequest) (*RevokeOperatorResponse, error)
- type UnsafeManagementServiceServer
Constants ¶
const ( ManagementService_GetOperators_FullMethodName = "/management.v1.ManagementService/GetOperators" ManagementService_NewOperator_FullMethodName = "/management.v1.ManagementService/NewOperator" ManagementService_RevokeOperator_FullMethodName = "/management.v1.ManagementService/RevokeOperator" ManagementService_RegenerateOperator_FullMethodName = "/management.v1.ManagementService/RegenerateOperator" ManagementService_GetListeners_FullMethodName = "/management.v1.ManagementService/GetListeners" ManagementService_NewListener_FullMethodName = "/management.v1.ManagementService/NewListener" ManagementService_RevokeListener_FullMethodName = "/management.v1.ManagementService/RevokeListener" ManagementService_RegenerateListener_FullMethodName = "/management.v1.ManagementService/RegenerateListener" ManagementService_GetCertCA_FullMethodName = "/management.v1.ManagementService/GetCertCA" ManagementService_GetCertOperator_FullMethodName = "/management.v1.ManagementService/GetCertOperator" ManagementService_GetCertListener_FullMethodName = "/management.v1.ManagementService/GetCertListener" )
Variables ¶
var File_management_v1_management_proto protoreflect.FileDescriptor
var ManagementService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "management.v1.ManagementService", HandlerType: (*ManagementServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetOperators", Handler: _ManagementService_GetOperators_Handler, }, { MethodName: "NewOperator", Handler: _ManagementService_NewOperator_Handler, }, { MethodName: "RevokeOperator", Handler: _ManagementService_RevokeOperator_Handler, }, { MethodName: "RegenerateOperator", Handler: _ManagementService_RegenerateOperator_Handler, }, { MethodName: "GetListeners", Handler: _ManagementService_GetListeners_Handler, }, { MethodName: "NewListener", Handler: _ManagementService_NewListener_Handler, }, { MethodName: "RevokeListener", Handler: _ManagementService_RevokeListener_Handler, }, { MethodName: "RegenerateListener", Handler: _ManagementService_RegenerateListener_Handler, }, { MethodName: "GetCertCA", Handler: _ManagementService_GetCertCA_Handler, }, { MethodName: "GetCertOperator", Handler: _ManagementService_GetCertOperator_Handler, }, { MethodName: "GetCertListener", Handler: _ManagementService_GetCertListener_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "management/v1/management.proto", }
ManagementService_ServiceDesc is the grpc.ServiceDesc for ManagementService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterManagementServiceServer ¶
func RegisterManagementServiceServer(s grpc.ServiceRegistrar, srv ManagementServiceServer)
Types ¶
type Certificate ¶
type Certificate struct { Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
сообщение, в котором хранятся данные о сертификате
func (*Certificate) Descriptor
deprecated
func (*Certificate) Descriptor() ([]byte, []int)
Deprecated: Use Certificate.ProtoReflect.Descriptor instead.
func (*Certificate) GetData ¶
func (x *Certificate) GetData() string
func (*Certificate) ProtoMessage ¶
func (*Certificate) ProtoMessage()
func (*Certificate) ProtoReflect ¶
func (x *Certificate) ProtoReflect() protoreflect.Message
func (*Certificate) Reset ¶
func (x *Certificate) Reset()
func (*Certificate) String ¶
func (x *Certificate) String() string
type GetCertCARequest ¶
type GetCertCARequest struct {
// contains filtered or unexported fields
}
--> GetCertCA
func (*GetCertCARequest) Descriptor
deprecated
func (*GetCertCARequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCertCARequest.ProtoReflect.Descriptor instead.
func (*GetCertCARequest) ProtoMessage ¶
func (*GetCertCARequest) ProtoMessage()
func (*GetCertCARequest) ProtoReflect ¶
func (x *GetCertCARequest) ProtoReflect() protoreflect.Message
func (*GetCertCARequest) Reset ¶
func (x *GetCertCARequest) Reset()
func (*GetCertCARequest) String ¶
func (x *GetCertCARequest) String() string
type GetCertCAResponse ¶
type GetCertCAResponse struct { Certificate *Certificate `protobuf:"bytes,1,opt,name=certificate,proto3" json:"certificate,omitempty"` // contains filtered or unexported fields }
func (*GetCertCAResponse) Descriptor
deprecated
func (*GetCertCAResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCertCAResponse.ProtoReflect.Descriptor instead.
func (*GetCertCAResponse) GetCertificate ¶
func (x *GetCertCAResponse) GetCertificate() *Certificate
func (*GetCertCAResponse) ProtoMessage ¶
func (*GetCertCAResponse) ProtoMessage()
func (*GetCertCAResponse) ProtoReflect ¶
func (x *GetCertCAResponse) ProtoReflect() protoreflect.Message
func (*GetCertCAResponse) Reset ¶
func (x *GetCertCAResponse) Reset()
func (*GetCertCAResponse) String ¶
func (x *GetCertCAResponse) String() string
type GetCertListenerRequest ¶
type GetCertListenerRequest struct {
// contains filtered or unexported fields
}
--> GetCertListener
func (*GetCertListenerRequest) Descriptor
deprecated
func (*GetCertListenerRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCertListenerRequest.ProtoReflect.Descriptor instead.
func (*GetCertListenerRequest) ProtoMessage ¶
func (*GetCertListenerRequest) ProtoMessage()
func (*GetCertListenerRequest) ProtoReflect ¶
func (x *GetCertListenerRequest) ProtoReflect() protoreflect.Message
func (*GetCertListenerRequest) Reset ¶
func (x *GetCertListenerRequest) Reset()
func (*GetCertListenerRequest) String ¶
func (x *GetCertListenerRequest) String() string
type GetCertListenerResponse ¶
type GetCertListenerResponse struct { Certificate *Certificate `protobuf:"bytes,1,opt,name=certificate,proto3" json:"certificate,omitempty"` // contains filtered or unexported fields }
func (*GetCertListenerResponse) Descriptor
deprecated
func (*GetCertListenerResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCertListenerResponse.ProtoReflect.Descriptor instead.
func (*GetCertListenerResponse) GetCertificate ¶
func (x *GetCertListenerResponse) GetCertificate() *Certificate
func (*GetCertListenerResponse) ProtoMessage ¶
func (*GetCertListenerResponse) ProtoMessage()
func (*GetCertListenerResponse) ProtoReflect ¶
func (x *GetCertListenerResponse) ProtoReflect() protoreflect.Message
func (*GetCertListenerResponse) Reset ¶
func (x *GetCertListenerResponse) Reset()
func (*GetCertListenerResponse) String ¶
func (x *GetCertListenerResponse) String() string
type GetCertOperatorRequest ¶
type GetCertOperatorRequest struct {
// contains filtered or unexported fields
}
--> GetCertOperator
func (*GetCertOperatorRequest) Descriptor
deprecated
func (*GetCertOperatorRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCertOperatorRequest.ProtoReflect.Descriptor instead.
func (*GetCertOperatorRequest) ProtoMessage ¶
func (*GetCertOperatorRequest) ProtoMessage()
func (*GetCertOperatorRequest) ProtoReflect ¶
func (x *GetCertOperatorRequest) ProtoReflect() protoreflect.Message
func (*GetCertOperatorRequest) Reset ¶
func (x *GetCertOperatorRequest) Reset()
func (*GetCertOperatorRequest) String ¶
func (x *GetCertOperatorRequest) String() string
type GetCertOperatorResponse ¶
type GetCertOperatorResponse struct { Certificate *Certificate `protobuf:"bytes,1,opt,name=certificate,proto3" json:"certificate,omitempty"` // contains filtered or unexported fields }
func (*GetCertOperatorResponse) Descriptor
deprecated
func (*GetCertOperatorResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCertOperatorResponse.ProtoReflect.Descriptor instead.
func (*GetCertOperatorResponse) GetCertificate ¶
func (x *GetCertOperatorResponse) GetCertificate() *Certificate
func (*GetCertOperatorResponse) ProtoMessage ¶
func (*GetCertOperatorResponse) ProtoMessage()
func (*GetCertOperatorResponse) ProtoReflect ¶
func (x *GetCertOperatorResponse) ProtoReflect() protoreflect.Message
func (*GetCertOperatorResponse) Reset ¶
func (x *GetCertOperatorResponse) Reset()
func (*GetCertOperatorResponse) String ¶
func (x *GetCertOperatorResponse) String() string
type GetListenersRequest ¶
type GetListenersRequest struct {
// contains filtered or unexported fields
}
--> GetListeners
func (*GetListenersRequest) Descriptor
deprecated
func (*GetListenersRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetListenersRequest.ProtoReflect.Descriptor instead.
func (*GetListenersRequest) ProtoMessage ¶
func (*GetListenersRequest) ProtoMessage()
func (*GetListenersRequest) ProtoReflect ¶
func (x *GetListenersRequest) ProtoReflect() protoreflect.Message
func (*GetListenersRequest) Reset ¶
func (x *GetListenersRequest) Reset()
func (*GetListenersRequest) String ¶
func (x *GetListenersRequest) String() string
type GetListenersResponse ¶
type GetListenersResponse struct { Listeners []*Listener `protobuf:"bytes,1,rep,name=listeners,proto3" json:"listeners,omitempty"` // contains filtered or unexported fields }
func (*GetListenersResponse) Descriptor
deprecated
func (*GetListenersResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetListenersResponse.ProtoReflect.Descriptor instead.
func (*GetListenersResponse) GetListeners ¶
func (x *GetListenersResponse) GetListeners() []*Listener
func (*GetListenersResponse) ProtoMessage ¶
func (*GetListenersResponse) ProtoMessage()
func (*GetListenersResponse) ProtoReflect ¶
func (x *GetListenersResponse) ProtoReflect() protoreflect.Message
func (*GetListenersResponse) Reset ¶
func (x *GetListenersResponse) Reset()
func (*GetListenersResponse) String ¶
func (x *GetListenersResponse) String() string
type GetOperatorsRequest ¶
type GetOperatorsRequest struct {
// contains filtered or unexported fields
}
--> GetOperators
func (*GetOperatorsRequest) Descriptor
deprecated
func (*GetOperatorsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetOperatorsRequest.ProtoReflect.Descriptor instead.
func (*GetOperatorsRequest) ProtoMessage ¶
func (*GetOperatorsRequest) ProtoMessage()
func (*GetOperatorsRequest) ProtoReflect ¶
func (x *GetOperatorsRequest) ProtoReflect() protoreflect.Message
func (*GetOperatorsRequest) Reset ¶
func (x *GetOperatorsRequest) Reset()
func (*GetOperatorsRequest) String ¶
func (x *GetOperatorsRequest) String() string
type GetOperatorsResponse ¶
type GetOperatorsResponse struct { Operators []*Operator `protobuf:"bytes,1,rep,name=operators,proto3" json:"operators,omitempty"` // contains filtered or unexported fields }
func (*GetOperatorsResponse) Descriptor
deprecated
func (*GetOperatorsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetOperatorsResponse.ProtoReflect.Descriptor instead.
func (*GetOperatorsResponse) GetOperators ¶
func (x *GetOperatorsResponse) GetOperators() []*Operator
func (*GetOperatorsResponse) ProtoMessage ¶
func (*GetOperatorsResponse) ProtoMessage()
func (*GetOperatorsResponse) ProtoReflect ¶
func (x *GetOperatorsResponse) ProtoReflect() protoreflect.Message
func (*GetOperatorsResponse) Reset ¶
func (x *GetOperatorsResponse) Reset()
func (*GetOperatorsResponse) String ¶
func (x *GetOperatorsResponse) String() string
type Listener ¶
type Listener struct { // [ОБЯЗАТЕЛЬНОЕ] ID листенера Lid int64 `protobuf:"varint,1,opt,name=lid,proto3" json:"lid,omitempty"` // access токен листенера Token *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` // имя листенера Name *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // IP адрес листенера Ip *wrapperspb.StringValue `protobuf:"bytes,4,opt,name=ip,proto3" json:"ip,omitempty"` // порт листенера Port *wrapperspb.UInt32Value `protobuf:"bytes,5,opt,name=port,proto3" json:"port,omitempty"` // время последней активности листенера Last *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=last,proto3" json:"last,omitempty"` // contains filtered or unexported fields }
сообщение, в котором хранятся данные об отдельном листенере
func (*Listener) Descriptor
deprecated
func (*Listener) GetIp ¶
func (x *Listener) GetIp() *wrapperspb.StringValue
func (*Listener) GetLast ¶
func (x *Listener) GetLast() *timestamppb.Timestamp
func (*Listener) GetName ¶
func (x *Listener) GetName() *wrapperspb.StringValue
func (*Listener) GetPort ¶
func (x *Listener) GetPort() *wrapperspb.UInt32Value
func (*Listener) GetToken ¶
func (x *Listener) GetToken() *wrapperspb.StringValue
func (*Listener) ProtoMessage ¶
func (*Listener) ProtoMessage()
func (*Listener) ProtoReflect ¶
func (x *Listener) ProtoReflect() protoreflect.Message
type ManagementServiceClient ¶
type ManagementServiceClient interface { // получение зарегистрированных операторов GetOperators(ctx context.Context, in *GetOperatorsRequest, opts ...grpc.CallOption) (*GetOperatorsResponse, error) // создание нового оператора NewOperator(ctx context.Context, in *NewOperatorRequest, opts ...grpc.CallOption) (*NewOperatorResponse, error) // удаление access токена у оператора RevokeOperator(ctx context.Context, in *RevokeOperatorRequest, opts ...grpc.CallOption) (*RevokeOperatorResponse, error) // регенерация access токена оператора RegenerateOperator(ctx context.Context, in *RegenerateOperatorRequest, opts ...grpc.CallOption) (*RegenerateOperatorResponse, error) // получение зарегистрированных листенеров GetListeners(ctx context.Context, in *GetListenersRequest, opts ...grpc.CallOption) (*GetListenersResponse, error) // создание нового листенера NewListener(ctx context.Context, in *NewListenerRequest, opts ...grpc.CallOption) (*NewListenerResponse, error) // удаление access токена у листенера RevokeListener(ctx context.Context, in *RevokeListenerRequest, opts ...grpc.CallOption) (*RevokeListenerResponse, error) // регенерация access токена для листенера RegenerateListener(ctx context.Context, in *RegenerateListenerRequest, opts ...grpc.CallOption) (*RegenerateListenerResponse, error) // получение CA сертификата PKI (GRPC) GetCertCA(ctx context.Context, in *GetCertCARequest, opts ...grpc.CallOption) (*GetCertCAResponse, error) // получение сертификата операторского GRPC GetCertOperator(ctx context.Context, in *GetCertOperatorRequest, opts ...grpc.CallOption) (*GetCertOperatorResponse, error) // получение сертификата листенерового GRPC GetCertListener(ctx context.Context, in *GetCertListenerRequest, opts ...grpc.CallOption) (*GetCertListenerResponse, error) }
ManagementServiceClient is the client API for ManagementService 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 NewManagementServiceClient ¶
func NewManagementServiceClient(cc grpc.ClientConnInterface) ManagementServiceClient
type ManagementServiceServer ¶
type ManagementServiceServer interface { // получение зарегистрированных операторов GetOperators(context.Context, *GetOperatorsRequest) (*GetOperatorsResponse, error) // создание нового оператора NewOperator(context.Context, *NewOperatorRequest) (*NewOperatorResponse, error) // удаление access токена у оператора RevokeOperator(context.Context, *RevokeOperatorRequest) (*RevokeOperatorResponse, error) // регенерация access токена оператора RegenerateOperator(context.Context, *RegenerateOperatorRequest) (*RegenerateOperatorResponse, error) // получение зарегистрированных листенеров GetListeners(context.Context, *GetListenersRequest) (*GetListenersResponse, error) // создание нового листенера NewListener(context.Context, *NewListenerRequest) (*NewListenerResponse, error) // удаление access токена у листенера RevokeListener(context.Context, *RevokeListenerRequest) (*RevokeListenerResponse, error) // регенерация access токена для листенера RegenerateListener(context.Context, *RegenerateListenerRequest) (*RegenerateListenerResponse, error) // получение CA сертификата PKI (GRPC) GetCertCA(context.Context, *GetCertCARequest) (*GetCertCAResponse, error) // получение сертификата операторского GRPC GetCertOperator(context.Context, *GetCertOperatorRequest) (*GetCertOperatorResponse, error) // получение сертификата листенерового GRPC GetCertListener(context.Context, *GetCertListenerRequest) (*GetCertListenerResponse, error) // contains filtered or unexported methods }
ManagementServiceServer is the server API for ManagementService service. All implementations must embed UnimplementedManagementServiceServer for forward compatibility.
type NewListenerRequest ¶
type NewListenerRequest struct {
// contains filtered or unexported fields
}
--> NewListener
func (*NewListenerRequest) Descriptor
deprecated
func (*NewListenerRequest) Descriptor() ([]byte, []int)
Deprecated: Use NewListenerRequest.ProtoReflect.Descriptor instead.
func (*NewListenerRequest) ProtoMessage ¶
func (*NewListenerRequest) ProtoMessage()
func (*NewListenerRequest) ProtoReflect ¶
func (x *NewListenerRequest) ProtoReflect() protoreflect.Message
func (*NewListenerRequest) Reset ¶
func (x *NewListenerRequest) Reset()
func (*NewListenerRequest) String ¶
func (x *NewListenerRequest) String() string
type NewListenerResponse ¶
type NewListenerResponse struct { Listener *Listener `protobuf:"bytes,1,opt,name=listener,proto3" json:"listener,omitempty"` // contains filtered or unexported fields }
func (*NewListenerResponse) Descriptor
deprecated
func (*NewListenerResponse) Descriptor() ([]byte, []int)
Deprecated: Use NewListenerResponse.ProtoReflect.Descriptor instead.
func (*NewListenerResponse) GetListener ¶
func (x *NewListenerResponse) GetListener() *Listener
func (*NewListenerResponse) ProtoMessage ¶
func (*NewListenerResponse) ProtoMessage()
func (*NewListenerResponse) ProtoReflect ¶
func (x *NewListenerResponse) ProtoReflect() protoreflect.Message
func (*NewListenerResponse) Reset ¶
func (x *NewListenerResponse) Reset()
func (*NewListenerResponse) String ¶
func (x *NewListenerResponse) String() string
type NewOperatorRequest ¶
type NewOperatorRequest struct { // [ОБЯЗАТЕЛЬНОЕ] имя оператора Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
--> NewOperator
func (*NewOperatorRequest) Descriptor
deprecated
func (*NewOperatorRequest) Descriptor() ([]byte, []int)
Deprecated: Use NewOperatorRequest.ProtoReflect.Descriptor instead.
func (*NewOperatorRequest) GetUsername ¶
func (x *NewOperatorRequest) GetUsername() string
func (*NewOperatorRequest) ProtoMessage ¶
func (*NewOperatorRequest) ProtoMessage()
func (*NewOperatorRequest) ProtoReflect ¶
func (x *NewOperatorRequest) ProtoReflect() protoreflect.Message
func (*NewOperatorRequest) Reset ¶
func (x *NewOperatorRequest) Reset()
func (*NewOperatorRequest) String ¶
func (x *NewOperatorRequest) String() string
type NewOperatorResponse ¶
type NewOperatorResponse struct { Operator *Operator `protobuf:"bytes,1,opt,name=operator,proto3" json:"operator,omitempty"` // contains filtered or unexported fields }
func (*NewOperatorResponse) Descriptor
deprecated
func (*NewOperatorResponse) Descriptor() ([]byte, []int)
Deprecated: Use NewOperatorResponse.ProtoReflect.Descriptor instead.
func (*NewOperatorResponse) GetOperator ¶
func (x *NewOperatorResponse) GetOperator() *Operator
func (*NewOperatorResponse) ProtoMessage ¶
func (*NewOperatorResponse) ProtoMessage()
func (*NewOperatorResponse) ProtoReflect ¶
func (x *NewOperatorResponse) ProtoReflect() protoreflect.Message
func (*NewOperatorResponse) Reset ¶
func (x *NewOperatorResponse) Reset()
func (*NewOperatorResponse) String ¶
func (x *NewOperatorResponse) String() string
type Operator ¶
type Operator struct { // [ОБЯЗАТЕЛЬНОЕ] имя оператора Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // access токен оператора Token *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` // время последней активности оператора Last *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=last,proto3" json:"last,omitempty"` // contains filtered or unexported fields }
сообщение, в котором хранятся данные об отдельном операторе
func (*Operator) Descriptor
deprecated
func (*Operator) GetLast ¶
func (x *Operator) GetLast() *timestamppb.Timestamp
func (*Operator) GetToken ¶
func (x *Operator) GetToken() *wrapperspb.StringValue
func (*Operator) GetUsername ¶
func (*Operator) ProtoMessage ¶
func (*Operator) ProtoMessage()
func (*Operator) ProtoReflect ¶
func (x *Operator) ProtoReflect() protoreflect.Message
type RegenerateListenerRequest ¶
type RegenerateListenerRequest struct { // [ОБЯЗАТЕЛЬНОЕ] ID листенера Lid int64 `protobuf:"varint,1,opt,name=lid,proto3" json:"lid,omitempty"` // contains filtered or unexported fields }
--> RegenerateListener
func (*RegenerateListenerRequest) Descriptor
deprecated
func (*RegenerateListenerRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegenerateListenerRequest.ProtoReflect.Descriptor instead.
func (*RegenerateListenerRequest) GetLid ¶
func (x *RegenerateListenerRequest) GetLid() int64
func (*RegenerateListenerRequest) ProtoMessage ¶
func (*RegenerateListenerRequest) ProtoMessage()
func (*RegenerateListenerRequest) ProtoReflect ¶
func (x *RegenerateListenerRequest) ProtoReflect() protoreflect.Message
func (*RegenerateListenerRequest) Reset ¶
func (x *RegenerateListenerRequest) Reset()
func (*RegenerateListenerRequest) String ¶
func (x *RegenerateListenerRequest) String() string
type RegenerateListenerResponse ¶
type RegenerateListenerResponse struct { Listener *Listener `protobuf:"bytes,1,opt,name=listener,proto3" json:"listener,omitempty"` // contains filtered or unexported fields }
func (*RegenerateListenerResponse) Descriptor
deprecated
func (*RegenerateListenerResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegenerateListenerResponse.ProtoReflect.Descriptor instead.
func (*RegenerateListenerResponse) GetListener ¶
func (x *RegenerateListenerResponse) GetListener() *Listener
func (*RegenerateListenerResponse) ProtoMessage ¶
func (*RegenerateListenerResponse) ProtoMessage()
func (*RegenerateListenerResponse) ProtoReflect ¶
func (x *RegenerateListenerResponse) ProtoReflect() protoreflect.Message
func (*RegenerateListenerResponse) Reset ¶
func (x *RegenerateListenerResponse) Reset()
func (*RegenerateListenerResponse) String ¶
func (x *RegenerateListenerResponse) String() string
type RegenerateOperatorRequest ¶
type RegenerateOperatorRequest struct { // [ОБЯЗАТЕЛЬНОЕ] имя оператора Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
--> RegenerateOperator
func (*RegenerateOperatorRequest) Descriptor
deprecated
func (*RegenerateOperatorRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegenerateOperatorRequest.ProtoReflect.Descriptor instead.
func (*RegenerateOperatorRequest) GetUsername ¶
func (x *RegenerateOperatorRequest) GetUsername() string
func (*RegenerateOperatorRequest) ProtoMessage ¶
func (*RegenerateOperatorRequest) ProtoMessage()
func (*RegenerateOperatorRequest) ProtoReflect ¶
func (x *RegenerateOperatorRequest) ProtoReflect() protoreflect.Message
func (*RegenerateOperatorRequest) Reset ¶
func (x *RegenerateOperatorRequest) Reset()
func (*RegenerateOperatorRequest) String ¶
func (x *RegenerateOperatorRequest) String() string
type RegenerateOperatorResponse ¶
type RegenerateOperatorResponse struct { Operator *Operator `protobuf:"bytes,1,opt,name=operator,proto3" json:"operator,omitempty"` // contains filtered or unexported fields }
func (*RegenerateOperatorResponse) Descriptor
deprecated
func (*RegenerateOperatorResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegenerateOperatorResponse.ProtoReflect.Descriptor instead.
func (*RegenerateOperatorResponse) GetOperator ¶
func (x *RegenerateOperatorResponse) GetOperator() *Operator
func (*RegenerateOperatorResponse) ProtoMessage ¶
func (*RegenerateOperatorResponse) ProtoMessage()
func (*RegenerateOperatorResponse) ProtoReflect ¶
func (x *RegenerateOperatorResponse) ProtoReflect() protoreflect.Message
func (*RegenerateOperatorResponse) Reset ¶
func (x *RegenerateOperatorResponse) Reset()
func (*RegenerateOperatorResponse) String ¶
func (x *RegenerateOperatorResponse) String() string
type RevokeListenerRequest ¶
type RevokeListenerRequest struct { // [ОБЯЗАТЕЛЬНОЕ] ID листенера Lid int64 `protobuf:"varint,1,opt,name=lid,proto3" json:"lid,omitempty"` // contains filtered or unexported fields }
--> RevokeListener
func (*RevokeListenerRequest) Descriptor
deprecated
func (*RevokeListenerRequest) Descriptor() ([]byte, []int)
Deprecated: Use RevokeListenerRequest.ProtoReflect.Descriptor instead.
func (*RevokeListenerRequest) GetLid ¶
func (x *RevokeListenerRequest) GetLid() int64
func (*RevokeListenerRequest) ProtoMessage ¶
func (*RevokeListenerRequest) ProtoMessage()
func (*RevokeListenerRequest) ProtoReflect ¶
func (x *RevokeListenerRequest) ProtoReflect() protoreflect.Message
func (*RevokeListenerRequest) Reset ¶
func (x *RevokeListenerRequest) Reset()
func (*RevokeListenerRequest) String ¶
func (x *RevokeListenerRequest) String() string
type RevokeListenerResponse ¶
type RevokeListenerResponse struct {
// contains filtered or unexported fields
}
func (*RevokeListenerResponse) Descriptor
deprecated
func (*RevokeListenerResponse) Descriptor() ([]byte, []int)
Deprecated: Use RevokeListenerResponse.ProtoReflect.Descriptor instead.
func (*RevokeListenerResponse) ProtoMessage ¶
func (*RevokeListenerResponse) ProtoMessage()
func (*RevokeListenerResponse) ProtoReflect ¶
func (x *RevokeListenerResponse) ProtoReflect() protoreflect.Message
func (*RevokeListenerResponse) Reset ¶
func (x *RevokeListenerResponse) Reset()
func (*RevokeListenerResponse) String ¶
func (x *RevokeListenerResponse) String() string
type RevokeOperatorRequest ¶
type RevokeOperatorRequest struct { // [ОБЯЗАТЕЛЬНОЕ] имя оператора Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
--> RevokeOperator
func (*RevokeOperatorRequest) Descriptor
deprecated
func (*RevokeOperatorRequest) Descriptor() ([]byte, []int)
Deprecated: Use RevokeOperatorRequest.ProtoReflect.Descriptor instead.
func (*RevokeOperatorRequest) GetUsername ¶
func (x *RevokeOperatorRequest) GetUsername() string
func (*RevokeOperatorRequest) ProtoMessage ¶
func (*RevokeOperatorRequest) ProtoMessage()
func (*RevokeOperatorRequest) ProtoReflect ¶
func (x *RevokeOperatorRequest) ProtoReflect() protoreflect.Message
func (*RevokeOperatorRequest) Reset ¶
func (x *RevokeOperatorRequest) Reset()
func (*RevokeOperatorRequest) String ¶
func (x *RevokeOperatorRequest) String() string
type RevokeOperatorResponse ¶
type RevokeOperatorResponse struct {
// contains filtered or unexported fields
}
func (*RevokeOperatorResponse) Descriptor
deprecated
func (*RevokeOperatorResponse) Descriptor() ([]byte, []int)
Deprecated: Use RevokeOperatorResponse.ProtoReflect.Descriptor instead.
func (*RevokeOperatorResponse) ProtoMessage ¶
func (*RevokeOperatorResponse) ProtoMessage()
func (*RevokeOperatorResponse) ProtoReflect ¶
func (x *RevokeOperatorResponse) ProtoReflect() protoreflect.Message
func (*RevokeOperatorResponse) Reset ¶
func (x *RevokeOperatorResponse) Reset()
func (*RevokeOperatorResponse) String ¶
func (x *RevokeOperatorResponse) String() string
type UnimplementedManagementServiceServer ¶
type UnimplementedManagementServiceServer struct{}
UnimplementedManagementServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedManagementServiceServer) GetCertCA ¶
func (UnimplementedManagementServiceServer) GetCertCA(context.Context, *GetCertCARequest) (*GetCertCAResponse, error)
func (UnimplementedManagementServiceServer) GetCertListener ¶
func (UnimplementedManagementServiceServer) GetCertListener(context.Context, *GetCertListenerRequest) (*GetCertListenerResponse, error)
func (UnimplementedManagementServiceServer) GetCertOperator ¶
func (UnimplementedManagementServiceServer) GetCertOperator(context.Context, *GetCertOperatorRequest) (*GetCertOperatorResponse, error)
func (UnimplementedManagementServiceServer) GetListeners ¶
func (UnimplementedManagementServiceServer) GetListeners(context.Context, *GetListenersRequest) (*GetListenersResponse, error)
func (UnimplementedManagementServiceServer) GetOperators ¶
func (UnimplementedManagementServiceServer) GetOperators(context.Context, *GetOperatorsRequest) (*GetOperatorsResponse, error)
func (UnimplementedManagementServiceServer) NewListener ¶
func (UnimplementedManagementServiceServer) NewListener(context.Context, *NewListenerRequest) (*NewListenerResponse, error)
func (UnimplementedManagementServiceServer) NewOperator ¶
func (UnimplementedManagementServiceServer) NewOperator(context.Context, *NewOperatorRequest) (*NewOperatorResponse, error)
func (UnimplementedManagementServiceServer) RegenerateListener ¶
func (UnimplementedManagementServiceServer) RegenerateListener(context.Context, *RegenerateListenerRequest) (*RegenerateListenerResponse, error)
func (UnimplementedManagementServiceServer) RegenerateOperator ¶
func (UnimplementedManagementServiceServer) RegenerateOperator(context.Context, *RegenerateOperatorRequest) (*RegenerateOperatorResponse, error)
func (UnimplementedManagementServiceServer) RevokeListener ¶
func (UnimplementedManagementServiceServer) RevokeListener(context.Context, *RevokeListenerRequest) (*RevokeListenerResponse, error)
func (UnimplementedManagementServiceServer) RevokeOperator ¶
func (UnimplementedManagementServiceServer) RevokeOperator(context.Context, *RevokeOperatorRequest) (*RevokeOperatorResponse, error)
type UnsafeManagementServiceServer ¶
type UnsafeManagementServiceServer interface {
// contains filtered or unexported methods
}
UnsafeManagementServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ManagementServiceServer will result in compilation errors.