Documentation ¶
Overview ¶
Package discoveryv1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package discoveryv1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package discoveryv1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package discoveryv1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterNamespaceAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterNamespaceAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client NamespaceAPIClient) error
- func RegisterNamespaceAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterNamespaceAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server NamespaceAPIServer) error
- func RegisterNamespaceAPIServer(s grpc.ServiceRegistrar, srv NamespaceAPIServer)
- func RegisterServerAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterServerAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ServerAPIClient) error
- func RegisterServerAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterServerAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ServerAPIServer) error
- func RegisterServerAPIServer(s grpc.ServiceRegistrar, srv ServerAPIServer)
- func RegisterServiceAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterServiceAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ServiceAPIClient) error
- func RegisterServiceAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterServiceAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ServiceAPIServer) error
- func RegisterServiceAPIServer(s grpc.ServiceRegistrar, srv ServiceAPIServer)
- func RegisterTokenAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterTokenAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TokenAPIClient) error
- func RegisterTokenAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterTokenAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TokenAPIServer) error
- func RegisterTokenAPIServer(s grpc.ServiceRegistrar, srv TokenAPIServer)
- type CreateRequest
- func (*CreateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRequest) GetExpires() string
- func (x *CreateRequest) GetId() string
- func (x *CreateRequest) GetNamespaces() []string
- func (*CreateRequest) ProtoMessage()
- func (x *CreateRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRequest) Reset()
- func (x *CreateRequest) String() string
- type CreateResponse
- type InfoRequest
- type InfoResponse
- type ListNamespaceRequest
- type ListNamespaceResponse
- func (*ListNamespaceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListNamespaceResponse) GetNamespaces() []*Namespace
- func (*ListNamespaceResponse) ProtoMessage()
- func (x *ListNamespaceResponse) ProtoReflect() protoreflect.Message
- func (x *ListNamespaceResponse) Reset()
- func (x *ListNamespaceResponse) String() string
- type ListServerRequest
- type ListServerResponse
- func (*ListServerResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListServerResponse) GetServers() []*Server
- func (*ListServerResponse) ProtoMessage()
- func (x *ListServerResponse) ProtoReflect() protoreflect.Message
- func (x *ListServerResponse) Reset()
- func (x *ListServerResponse) String() string
- type ListServiceRequest
- func (*ListServiceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListServiceRequest) GetNamespace() string
- func (*ListServiceRequest) ProtoMessage()
- func (x *ListServiceRequest) ProtoReflect() protoreflect.Message
- func (x *ListServiceRequest) Reset()
- func (x *ListServiceRequest) String() string
- type ListServiceResponse
- func (*ListServiceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListServiceResponse) GetServices() []*Service
- func (*ListServiceResponse) ProtoMessage()
- func (x *ListServiceResponse) ProtoReflect() protoreflect.Message
- func (x *ListServiceResponse) Reset()
- func (x *ListServiceResponse) String() string
- type ListTargetGroupRequest
- func (*ListTargetGroupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListTargetGroupRequest) GetConfig() string
- func (x *ListTargetGroupRequest) GetNamespace() string
- func (x *ListTargetGroupRequest) GetServer() string
- func (*ListTargetGroupRequest) ProtoMessage()
- func (x *ListTargetGroupRequest) ProtoReflect() protoreflect.Message
- func (x *ListTargetGroupRequest) Reset()
- func (x *ListTargetGroupRequest) String() string
- type ListTargetGroupResponse
- func (*ListTargetGroupResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListTargetGroupResponse) GetTargetgroups() []*TargetGroup
- func (*ListTargetGroupResponse) ProtoMessage()
- func (x *ListTargetGroupResponse) ProtoReflect() protoreflect.Message
- func (x *ListTargetGroupResponse) Reset()
- func (x *ListTargetGroupResponse) String() string
- type Namespace
- func (*Namespace) Descriptor() ([]byte, []int)deprecated
- func (x *Namespace) GetExport() int32
- func (x *Namespace) GetModified() *timestamppb.Timestamp
- func (x *Namespace) GetName() string
- func (*Namespace) ProtoMessage()
- func (x *Namespace) ProtoReflect() protoreflect.Message
- func (x *Namespace) Reset()
- func (x *Namespace) String() string
- type NamespaceAPIClient
- type NamespaceAPIServer
- type RegisterNamespaceRequest
- func (*RegisterNamespaceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterNamespaceRequest) GetExport() int32
- func (x *RegisterNamespaceRequest) GetName() string
- func (*RegisterNamespaceRequest) ProtoMessage()
- func (x *RegisterNamespaceRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterNamespaceRequest) Reset()
- func (x *RegisterNamespaceRequest) String() string
- type RegisterNamespaceResponse
- func (*RegisterNamespaceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterNamespaceResponse) GetNamespace() *Namespace
- func (*RegisterNamespaceResponse) ProtoMessage()
- func (x *RegisterNamespaceResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterNamespaceResponse) Reset()
- func (x *RegisterNamespaceResponse) String() string
- type RegisterServerRequest
- func (*RegisterServerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterServerRequest) GetLabels() map[string]string
- func (x *RegisterServerRequest) GetName() string
- func (*RegisterServerRequest) ProtoMessage()
- func (x *RegisterServerRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterServerRequest) Reset()
- func (x *RegisterServerRequest) String() string
- type RegisterServerResponse
- func (*RegisterServerResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterServerResponse) GetServer() *Server
- func (*RegisterServerResponse) ProtoMessage()
- func (x *RegisterServerResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterServerResponse) Reset()
- func (x *RegisterServerResponse) String() string
- type RegisterServiceRequest
- func (*RegisterServiceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterServiceRequest) GetDescription() string
- func (x *RegisterServiceRequest) GetEndpoint() string
- func (x *RegisterServiceRequest) GetLabels() map[string]string
- func (x *RegisterServiceRequest) GetName() string
- func (x *RegisterServiceRequest) GetNamespace() string
- func (x *RegisterServiceRequest) GetSelector() string
- func (*RegisterServiceRequest) ProtoMessage()
- func (x *RegisterServiceRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterServiceRequest) Reset()
- func (x *RegisterServiceRequest) String() string
- type RegisterServiceResponse
- func (*RegisterServiceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterServiceResponse) GetService() *Service
- func (*RegisterServiceResponse) ProtoMessage()
- func (x *RegisterServiceResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterServiceResponse) Reset()
- func (x *RegisterServiceResponse) String() string
- type Server
- func (*Server) Descriptor() ([]byte, []int)deprecated
- func (x *Server) GetLabels() map[string]string
- func (x *Server) GetModified() *timestamppb.Timestamp
- func (x *Server) GetName() string
- func (x *Server) GetState() int64
- func (*Server) ProtoMessage()
- func (x *Server) ProtoReflect() protoreflect.Message
- func (x *Server) Reset()
- func (x *Server) String() string
- type ServerAPIClient
- type ServerAPIServer
- type Service
- func (*Service) Descriptor() ([]byte, []int)deprecated
- func (x *Service) GetDescription() string
- func (x *Service) GetEndpoint() string
- func (x *Service) GetId() string
- func (x *Service) GetLabels() map[string]string
- func (x *Service) GetModified() *timestamppb.Timestamp
- func (x *Service) GetName() string
- func (x *Service) GetNamespace() string
- func (x *Service) GetSelector() string
- func (x *Service) GetServers() []string
- func (*Service) ProtoMessage()
- func (x *Service) ProtoReflect() protoreflect.Message
- func (x *Service) Reset()
- func (x *Service) String() string
- type ServiceAPIClient
- type ServiceAPIServer
- type TargetGroup
- func (*TargetGroup) Descriptor() ([]byte, []int)deprecated
- func (x *TargetGroup) GetLabels() map[string]string
- func (x *TargetGroup) GetTargets() []string
- func (*TargetGroup) ProtoMessage()
- func (x *TargetGroup) ProtoReflect() protoreflect.Message
- func (x *TargetGroup) Reset()
- func (x *TargetGroup) String() string
- type TokenAPIClient
- type TokenAPIServer
- type TokenInfo
- func (*TokenInfo) Descriptor() ([]byte, []int)deprecated
- func (x *TokenInfo) GetExpiresAt() *timestamppb.Timestamp
- func (x *TokenInfo) GetId() string
- func (x *TokenInfo) GetNamespaces() []string
- func (*TokenInfo) ProtoMessage()
- func (x *TokenInfo) ProtoReflect() protoreflect.Message
- func (x *TokenInfo) Reset()
- func (x *TokenInfo) String() string
- type UnRegisterServiceRequest
- func (*UnRegisterServiceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UnRegisterServiceRequest) GetId() string
- func (x *UnRegisterServiceRequest) GetNamespace() string
- func (*UnRegisterServiceRequest) ProtoMessage()
- func (x *UnRegisterServiceRequest) ProtoReflect() protoreflect.Message
- func (x *UnRegisterServiceRequest) Reset()
- func (x *UnRegisterServiceRequest) String() string
- type UnRegisterServiceResponse
- type UnimplementedNamespaceAPIServer
- func (UnimplementedNamespaceAPIServer) ListNamespace(context.Context, *ListNamespaceRequest) (*ListNamespaceResponse, error)
- func (UnimplementedNamespaceAPIServer) RegisterNamespace(context.Context, *RegisterNamespaceRequest) (*RegisterNamespaceResponse, error)
- func (UnimplementedNamespaceAPIServer) UnregisterNamespace(context.Context, *UnregisterNamespaceRequest) (*UnregisterNamespaceResponse, error)
- type UnimplementedServerAPIServer
- func (UnimplementedServerAPIServer) ListServer(context.Context, *ListServerRequest) (*ListServerResponse, error)
- func (UnimplementedServerAPIServer) RegisterServer(context.Context, *RegisterServerRequest) (*RegisterServerResponse, error)
- func (UnimplementedServerAPIServer) UnregisterServer(context.Context, *UnregisterServerRequest) (*UnregisterServerResponse, error)
- type UnimplementedServiceAPIServer
- func (UnimplementedServiceAPIServer) ListService(context.Context, *ListServiceRequest) (*ListServiceResponse, error)
- func (UnimplementedServiceAPIServer) ListTargetGroup(context.Context, *ListTargetGroupRequest) (*ListTargetGroupResponse, error)
- func (UnimplementedServiceAPIServer) RegisterService(context.Context, *RegisterServiceRequest) (*RegisterServiceResponse, error)
- func (UnimplementedServiceAPIServer) UnRegisterService(context.Context, *UnRegisterServiceRequest) (*UnRegisterServiceResponse, error)
- type UnimplementedTokenAPIServer
- type UnregisterNamespaceRequest
- func (*UnregisterNamespaceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UnregisterNamespaceRequest) GetName() string
- func (*UnregisterNamespaceRequest) ProtoMessage()
- func (x *UnregisterNamespaceRequest) ProtoReflect() protoreflect.Message
- func (x *UnregisterNamespaceRequest) Reset()
- func (x *UnregisterNamespaceRequest) String() string
- type UnregisterNamespaceResponse
- type UnregisterServerRequest
- func (*UnregisterServerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UnregisterServerRequest) GetName() string
- func (*UnregisterServerRequest) ProtoMessage()
- func (x *UnregisterServerRequest) ProtoReflect() protoreflect.Message
- func (x *UnregisterServerRequest) Reset()
- func (x *UnregisterServerRequest) String() string
- type UnregisterServerResponse
- type UnsafeNamespaceAPIServer
- type UnsafeServerAPIServer
- type UnsafeServiceAPIServer
- type UnsafeTokenAPIServer
Constants ¶
This section is empty.
Variables ¶
var File_postfinance_discovery_v1_namespace_api_proto protoreflect.FileDescriptor
var File_postfinance_discovery_v1_namespace_proto protoreflect.FileDescriptor
var File_postfinance_discovery_v1_server_api_proto protoreflect.FileDescriptor
var File_postfinance_discovery_v1_server_proto protoreflect.FileDescriptor
var File_postfinance_discovery_v1_service_api_proto protoreflect.FileDescriptor
var File_postfinance_discovery_v1_service_proto protoreflect.FileDescriptor
var File_postfinance_discovery_v1_targetgroup_proto protoreflect.FileDescriptor
var File_postfinance_discovery_v1_token_api_proto protoreflect.FileDescriptor
var File_postfinance_discovery_v1_tokeninfo_proto protoreflect.FileDescriptor
var NamespaceAPI_ServiceDesc = grpc.ServiceDesc{ ServiceName: "postfinance.discovery.v1.NamespaceAPI", HandlerType: (*NamespaceAPIServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RegisterNamespace", Handler: _NamespaceAPI_RegisterNamespace_Handler, }, { MethodName: "UnregisterNamespace", Handler: _NamespaceAPI_UnregisterNamespace_Handler, }, { MethodName: "ListNamespace", Handler: _NamespaceAPI_ListNamespace_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "postfinance/discovery/v1/namespace_api.proto", }
NamespaceAPI_ServiceDesc is the grpc.ServiceDesc for NamespaceAPI service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var ServerAPI_ServiceDesc = grpc.ServiceDesc{ ServiceName: "postfinance.discovery.v1.ServerAPI", HandlerType: (*ServerAPIServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RegisterServer", Handler: _ServerAPI_RegisterServer_Handler, }, { MethodName: "UnregisterServer", Handler: _ServerAPI_UnregisterServer_Handler, }, { MethodName: "ListServer", Handler: _ServerAPI_ListServer_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "postfinance/discovery/v1/server_api.proto", }
ServerAPI_ServiceDesc is the grpc.ServiceDesc for ServerAPI service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var ServiceAPI_ServiceDesc = grpc.ServiceDesc{ ServiceName: "postfinance.discovery.v1.ServiceAPI", HandlerType: (*ServiceAPIServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RegisterService", Handler: _ServiceAPI_RegisterService_Handler, }, { MethodName: "UnRegisterService", Handler: _ServiceAPI_UnRegisterService_Handler, }, { MethodName: "ListService", Handler: _ServiceAPI_ListService_Handler, }, { MethodName: "ListTargetGroup", Handler: _ServiceAPI_ListTargetGroup_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "postfinance/discovery/v1/service_api.proto", }
ServiceAPI_ServiceDesc is the grpc.ServiceDesc for ServiceAPI service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var TokenAPI_ServiceDesc = grpc.ServiceDesc{ ServiceName: "postfinance.discovery.v1.TokenAPI", HandlerType: (*TokenAPIServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Create", Handler: _TokenAPI_Create_Handler, }, { MethodName: "Info", Handler: _TokenAPI_Info_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "postfinance/discovery/v1/token_api.proto", }
TokenAPI_ServiceDesc is the grpc.ServiceDesc for TokenAPI service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterNamespaceAPIHandler ¶
func RegisterNamespaceAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterNamespaceAPIHandler registers the http handlers for service NamespaceAPI to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterNamespaceAPIHandlerClient ¶
func RegisterNamespaceAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client NamespaceAPIClient) error
RegisterNamespaceAPIHandlerClient registers the http handlers for service NamespaceAPI to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "NamespaceAPIClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "NamespaceAPIClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "NamespaceAPIClient" to call the correct interceptors.
func RegisterNamespaceAPIHandlerFromEndpoint ¶
func RegisterNamespaceAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterNamespaceAPIHandlerFromEndpoint is same as RegisterNamespaceAPIHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterNamespaceAPIHandlerServer ¶
func RegisterNamespaceAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server NamespaceAPIServer) error
RegisterNamespaceAPIHandlerServer registers the http handlers for service NamespaceAPI to "mux". UnaryRPC :call NamespaceAPIServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterNamespaceAPIHandlerFromEndpoint instead.
func RegisterNamespaceAPIServer ¶
func RegisterNamespaceAPIServer(s grpc.ServiceRegistrar, srv NamespaceAPIServer)
func RegisterServerAPIHandler ¶
func RegisterServerAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterServerAPIHandler registers the http handlers for service ServerAPI to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterServerAPIHandlerClient ¶
func RegisterServerAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ServerAPIClient) error
RegisterServerAPIHandlerClient registers the http handlers for service ServerAPI to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ServerAPIClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ServerAPIClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ServerAPIClient" to call the correct interceptors.
func RegisterServerAPIHandlerFromEndpoint ¶
func RegisterServerAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterServerAPIHandlerFromEndpoint is same as RegisterServerAPIHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterServerAPIHandlerServer ¶
func RegisterServerAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ServerAPIServer) error
RegisterServerAPIHandlerServer registers the http handlers for service ServerAPI to "mux". UnaryRPC :call ServerAPIServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterServerAPIHandlerFromEndpoint instead.
func RegisterServerAPIServer ¶
func RegisterServerAPIServer(s grpc.ServiceRegistrar, srv ServerAPIServer)
func RegisterServiceAPIHandler ¶
func RegisterServiceAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterServiceAPIHandler registers the http handlers for service ServiceAPI to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterServiceAPIHandlerClient ¶
func RegisterServiceAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ServiceAPIClient) error
RegisterServiceAPIHandlerClient registers the http handlers for service ServiceAPI to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ServiceAPIClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ServiceAPIClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ServiceAPIClient" to call the correct interceptors.
func RegisterServiceAPIHandlerFromEndpoint ¶
func RegisterServiceAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterServiceAPIHandlerFromEndpoint is same as RegisterServiceAPIHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterServiceAPIHandlerServer ¶
func RegisterServiceAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ServiceAPIServer) error
RegisterServiceAPIHandlerServer registers the http handlers for service ServiceAPI to "mux". UnaryRPC :call ServiceAPIServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterServiceAPIHandlerFromEndpoint instead.
func RegisterServiceAPIServer ¶
func RegisterServiceAPIServer(s grpc.ServiceRegistrar, srv ServiceAPIServer)
func RegisterTokenAPIHandler ¶
func RegisterTokenAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterTokenAPIHandler registers the http handlers for service TokenAPI to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterTokenAPIHandlerClient ¶
func RegisterTokenAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TokenAPIClient) error
RegisterTokenAPIHandlerClient registers the http handlers for service TokenAPI to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "TokenAPIClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "TokenAPIClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "TokenAPIClient" to call the correct interceptors.
func RegisterTokenAPIHandlerFromEndpoint ¶
func RegisterTokenAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterTokenAPIHandlerFromEndpoint is same as RegisterTokenAPIHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterTokenAPIHandlerServer ¶
func RegisterTokenAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TokenAPIServer) error
RegisterTokenAPIHandlerServer registers the http handlers for service TokenAPI to "mux". UnaryRPC :call TokenAPIServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterTokenAPIHandlerFromEndpoint instead.
func RegisterTokenAPIServer ¶
func RegisterTokenAPIServer(s grpc.ServiceRegistrar, srv TokenAPIServer)
Types ¶
type CreateRequest ¶
type CreateRequest struct { // id is an id to identify the token. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Namespaces []string `protobuf:"bytes,2,rep,name=namespaces,proto3" json:"namespaces,omitempty"` Expires string `protobuf:"bytes,3,opt,name=expires,proto3" json:"expires,omitempty"` // contains filtered or unexported fields }
func (*CreateRequest) Descriptor
deprecated
func (*CreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.
func (*CreateRequest) GetExpires ¶
func (x *CreateRequest) GetExpires() string
func (*CreateRequest) GetId ¶
func (x *CreateRequest) GetId() string
func (*CreateRequest) GetNamespaces ¶
func (x *CreateRequest) GetNamespaces() []string
func (*CreateRequest) ProtoMessage ¶
func (*CreateRequest) ProtoMessage()
func (*CreateRequest) ProtoReflect ¶
func (x *CreateRequest) ProtoReflect() protoreflect.Message
func (*CreateRequest) Reset ¶
func (x *CreateRequest) Reset()
func (*CreateRequest) String ¶
func (x *CreateRequest) String() string
type CreateResponse ¶
type CreateResponse struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*CreateResponse) Descriptor
deprecated
func (*CreateResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.
func (*CreateResponse) GetToken ¶
func (x *CreateResponse) GetToken() string
func (*CreateResponse) ProtoMessage ¶
func (*CreateResponse) ProtoMessage()
func (*CreateResponse) ProtoReflect ¶
func (x *CreateResponse) ProtoReflect() protoreflect.Message
func (*CreateResponse) Reset ¶
func (x *CreateResponse) Reset()
func (*CreateResponse) String ¶
func (x *CreateResponse) String() string
type InfoRequest ¶
type InfoRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*InfoRequest) Descriptor
deprecated
func (*InfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use InfoRequest.ProtoReflect.Descriptor instead.
func (*InfoRequest) GetToken ¶
func (x *InfoRequest) GetToken() string
func (*InfoRequest) ProtoMessage ¶
func (*InfoRequest) ProtoMessage()
func (*InfoRequest) ProtoReflect ¶
func (x *InfoRequest) ProtoReflect() protoreflect.Message
func (*InfoRequest) Reset ¶
func (x *InfoRequest) Reset()
func (*InfoRequest) String ¶
func (x *InfoRequest) String() string
type InfoResponse ¶
type InfoResponse struct { Tokeninfo *TokenInfo `protobuf:"bytes,1,opt,name=tokeninfo,proto3" json:"tokeninfo,omitempty"` // contains filtered or unexported fields }
func (*InfoResponse) Descriptor
deprecated
func (*InfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use InfoResponse.ProtoReflect.Descriptor instead.
func (*InfoResponse) GetTokeninfo ¶
func (x *InfoResponse) GetTokeninfo() *TokenInfo
func (*InfoResponse) ProtoMessage ¶
func (*InfoResponse) ProtoMessage()
func (*InfoResponse) ProtoReflect ¶
func (x *InfoResponse) ProtoReflect() protoreflect.Message
func (*InfoResponse) Reset ¶
func (x *InfoResponse) Reset()
func (*InfoResponse) String ¶
func (x *InfoResponse) String() string
type ListNamespaceRequest ¶
type ListNamespaceRequest struct {
// contains filtered or unexported fields
}
func (*ListNamespaceRequest) Descriptor
deprecated
func (*ListNamespaceRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListNamespaceRequest.ProtoReflect.Descriptor instead.
func (*ListNamespaceRequest) ProtoMessage ¶
func (*ListNamespaceRequest) ProtoMessage()
func (*ListNamespaceRequest) ProtoReflect ¶
func (x *ListNamespaceRequest) ProtoReflect() protoreflect.Message
func (*ListNamespaceRequest) Reset ¶
func (x *ListNamespaceRequest) Reset()
func (*ListNamespaceRequest) String ¶
func (x *ListNamespaceRequest) String() string
type ListNamespaceResponse ¶
type ListNamespaceResponse struct { Namespaces []*Namespace `protobuf:"bytes,1,rep,name=namespaces,proto3" json:"namespaces,omitempty"` // contains filtered or unexported fields }
func (*ListNamespaceResponse) Descriptor
deprecated
func (*ListNamespaceResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListNamespaceResponse.ProtoReflect.Descriptor instead.
func (*ListNamespaceResponse) GetNamespaces ¶
func (x *ListNamespaceResponse) GetNamespaces() []*Namespace
func (*ListNamespaceResponse) ProtoMessage ¶
func (*ListNamespaceResponse) ProtoMessage()
func (*ListNamespaceResponse) ProtoReflect ¶
func (x *ListNamespaceResponse) ProtoReflect() protoreflect.Message
func (*ListNamespaceResponse) Reset ¶
func (x *ListNamespaceResponse) Reset()
func (*ListNamespaceResponse) String ¶
func (x *ListNamespaceResponse) String() string
type ListServerRequest ¶
type ListServerRequest struct {
// contains filtered or unexported fields
}
func (*ListServerRequest) Descriptor
deprecated
func (*ListServerRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListServerRequest.ProtoReflect.Descriptor instead.
func (*ListServerRequest) ProtoMessage ¶
func (*ListServerRequest) ProtoMessage()
func (*ListServerRequest) ProtoReflect ¶
func (x *ListServerRequest) ProtoReflect() protoreflect.Message
func (*ListServerRequest) Reset ¶
func (x *ListServerRequest) Reset()
func (*ListServerRequest) String ¶
func (x *ListServerRequest) String() string
type ListServerResponse ¶
type ListServerResponse struct { Servers []*Server `protobuf:"bytes,1,rep,name=servers,proto3" json:"servers,omitempty"` // contains filtered or unexported fields }
func (*ListServerResponse) Descriptor
deprecated
func (*ListServerResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListServerResponse.ProtoReflect.Descriptor instead.
func (*ListServerResponse) GetServers ¶
func (x *ListServerResponse) GetServers() []*Server
func (*ListServerResponse) ProtoMessage ¶
func (*ListServerResponse) ProtoMessage()
func (*ListServerResponse) ProtoReflect ¶
func (x *ListServerResponse) ProtoReflect() protoreflect.Message
func (*ListServerResponse) Reset ¶
func (x *ListServerResponse) Reset()
func (*ListServerResponse) String ¶
func (x *ListServerResponse) String() string
type ListServiceRequest ¶
type ListServiceRequest struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // contains filtered or unexported fields }
func (*ListServiceRequest) Descriptor
deprecated
func (*ListServiceRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListServiceRequest.ProtoReflect.Descriptor instead.
func (*ListServiceRequest) GetNamespace ¶
func (x *ListServiceRequest) GetNamespace() string
func (*ListServiceRequest) ProtoMessage ¶
func (*ListServiceRequest) ProtoMessage()
func (*ListServiceRequest) ProtoReflect ¶
func (x *ListServiceRequest) ProtoReflect() protoreflect.Message
func (*ListServiceRequest) Reset ¶
func (x *ListServiceRequest) Reset()
func (*ListServiceRequest) String ¶
func (x *ListServiceRequest) String() string
type ListServiceResponse ¶
type ListServiceResponse struct { Services []*Service `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"` // contains filtered or unexported fields }
func (*ListServiceResponse) Descriptor
deprecated
func (*ListServiceResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListServiceResponse.ProtoReflect.Descriptor instead.
func (*ListServiceResponse) GetServices ¶
func (x *ListServiceResponse) GetServices() []*Service
func (*ListServiceResponse) ProtoMessage ¶
func (*ListServiceResponse) ProtoMessage()
func (*ListServiceResponse) ProtoReflect ¶
func (x *ListServiceResponse) ProtoReflect() protoreflect.Message
func (*ListServiceResponse) Reset ¶
func (x *ListServiceResponse) Reset()
func (*ListServiceResponse) String ¶
func (x *ListServiceResponse) String() string
type ListTargetGroupRequest ¶ added in v0.8.0
type ListTargetGroupRequest struct { Server string `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"` Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` Config string `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"` // contains filtered or unexported fields }
func (*ListTargetGroupRequest) Descriptor
deprecated
added in
v0.8.0
func (*ListTargetGroupRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListTargetGroupRequest.ProtoReflect.Descriptor instead.
func (*ListTargetGroupRequest) GetConfig ¶ added in v0.8.0
func (x *ListTargetGroupRequest) GetConfig() string
func (*ListTargetGroupRequest) GetNamespace ¶ added in v0.8.0
func (x *ListTargetGroupRequest) GetNamespace() string
func (*ListTargetGroupRequest) GetServer ¶ added in v0.8.0
func (x *ListTargetGroupRequest) GetServer() string
func (*ListTargetGroupRequest) ProtoMessage ¶ added in v0.8.0
func (*ListTargetGroupRequest) ProtoMessage()
func (*ListTargetGroupRequest) ProtoReflect ¶ added in v0.8.0
func (x *ListTargetGroupRequest) ProtoReflect() protoreflect.Message
func (*ListTargetGroupRequest) Reset ¶ added in v0.8.0
func (x *ListTargetGroupRequest) Reset()
func (*ListTargetGroupRequest) String ¶ added in v0.8.0
func (x *ListTargetGroupRequest) String() string
type ListTargetGroupResponse ¶ added in v0.8.0
type ListTargetGroupResponse struct { Targetgroups []*TargetGroup `protobuf:"bytes,1,rep,name=targetgroups,proto3" json:"targetgroups,omitempty"` // contains filtered or unexported fields }
func (*ListTargetGroupResponse) Descriptor
deprecated
added in
v0.8.0
func (*ListTargetGroupResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListTargetGroupResponse.ProtoReflect.Descriptor instead.
func (*ListTargetGroupResponse) GetTargetgroups ¶ added in v0.8.0
func (x *ListTargetGroupResponse) GetTargetgroups() []*TargetGroup
func (*ListTargetGroupResponse) ProtoMessage ¶ added in v0.8.0
func (*ListTargetGroupResponse) ProtoMessage()
func (*ListTargetGroupResponse) ProtoReflect ¶ added in v0.8.0
func (x *ListTargetGroupResponse) ProtoReflect() protoreflect.Message
func (*ListTargetGroupResponse) Reset ¶ added in v0.8.0
func (x *ListTargetGroupResponse) Reset()
func (*ListTargetGroupResponse) String ¶ added in v0.8.0
func (x *ListTargetGroupResponse) String() string
type Namespace ¶
type Namespace struct { // name is the namespace name. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // export configures how the services in namespaces gets exported. Export int32 `protobuf:"varint,2,opt,name=export,proto3" json:"export,omitempty"` // modified is the the time when the service is created or modified. Modified *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=modified,proto3" json:"modified,omitempty"` // contains filtered or unexported fields }
Namespace represents a namespace.
func (*Namespace) Descriptor
deprecated
func (*Namespace) GetModified ¶
func (x *Namespace) GetModified() *timestamppb.Timestamp
func (*Namespace) ProtoMessage ¶
func (*Namespace) ProtoMessage()
func (*Namespace) ProtoReflect ¶
func (x *Namespace) ProtoReflect() protoreflect.Message
type NamespaceAPIClient ¶
type NamespaceAPIClient interface { // RegisterNamespace registers a namespace. RegisterNamespace(ctx context.Context, in *RegisterNamespaceRequest, opts ...grpc.CallOption) (*RegisterNamespaceResponse, error) // UnRegisterNamespace unregisters a namespace. UnregisterNamespace(ctx context.Context, in *UnregisterNamespaceRequest, opts ...grpc.CallOption) (*UnregisterNamespaceResponse, error) // ListNamespace lists all namespaces. ListNamespace(ctx context.Context, in *ListNamespaceRequest, opts ...grpc.CallOption) (*ListNamespaceResponse, error) }
NamespaceAPIClient is the client API for NamespaceAPI 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 NewNamespaceAPIClient ¶
func NewNamespaceAPIClient(cc grpc.ClientConnInterface) NamespaceAPIClient
type NamespaceAPIServer ¶
type NamespaceAPIServer interface { // RegisterNamespace registers a namespace. RegisterNamespace(context.Context, *RegisterNamespaceRequest) (*RegisterNamespaceResponse, error) // UnRegisterNamespace unregisters a namespace. UnregisterNamespace(context.Context, *UnregisterNamespaceRequest) (*UnregisterNamespaceResponse, error) // ListNamespace lists all namespaces. ListNamespace(context.Context, *ListNamespaceRequest) (*ListNamespaceResponse, error) // contains filtered or unexported methods }
NamespaceAPIServer is the server API for NamespaceAPI service. All implementations must embed UnimplementedNamespaceAPIServer for forward compatibility
type RegisterNamespaceRequest ¶
type RegisterNamespaceRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Export int32 `protobuf:"varint,2,opt,name=export,proto3" json:"export,omitempty"` // contains filtered or unexported fields }
func (*RegisterNamespaceRequest) Descriptor
deprecated
func (*RegisterNamespaceRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterNamespaceRequest.ProtoReflect.Descriptor instead.
func (*RegisterNamespaceRequest) GetExport ¶
func (x *RegisterNamespaceRequest) GetExport() int32
func (*RegisterNamespaceRequest) GetName ¶
func (x *RegisterNamespaceRequest) GetName() string
func (*RegisterNamespaceRequest) ProtoMessage ¶
func (*RegisterNamespaceRequest) ProtoMessage()
func (*RegisterNamespaceRequest) ProtoReflect ¶
func (x *RegisterNamespaceRequest) ProtoReflect() protoreflect.Message
func (*RegisterNamespaceRequest) Reset ¶
func (x *RegisterNamespaceRequest) Reset()
func (*RegisterNamespaceRequest) String ¶
func (x *RegisterNamespaceRequest) String() string
type RegisterNamespaceResponse ¶
type RegisterNamespaceResponse struct { Namespace *Namespace `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // contains filtered or unexported fields }
func (*RegisterNamespaceResponse) Descriptor
deprecated
func (*RegisterNamespaceResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterNamespaceResponse.ProtoReflect.Descriptor instead.
func (*RegisterNamespaceResponse) GetNamespace ¶
func (x *RegisterNamespaceResponse) GetNamespace() *Namespace
func (*RegisterNamespaceResponse) ProtoMessage ¶
func (*RegisterNamespaceResponse) ProtoMessage()
func (*RegisterNamespaceResponse) ProtoReflect ¶
func (x *RegisterNamespaceResponse) ProtoReflect() protoreflect.Message
func (*RegisterNamespaceResponse) Reset ¶
func (x *RegisterNamespaceResponse) Reset()
func (*RegisterNamespaceResponse) String ¶
func (x *RegisterNamespaceResponse) String() string
type RegisterServerRequest ¶
type RegisterServerRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Labels map[string]string `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
func (*RegisterServerRequest) Descriptor
deprecated
func (*RegisterServerRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterServerRequest.ProtoReflect.Descriptor instead.
func (*RegisterServerRequest) GetLabels ¶
func (x *RegisterServerRequest) GetLabels() map[string]string
func (*RegisterServerRequest) GetName ¶
func (x *RegisterServerRequest) GetName() string
func (*RegisterServerRequest) ProtoMessage ¶
func (*RegisterServerRequest) ProtoMessage()
func (*RegisterServerRequest) ProtoReflect ¶
func (x *RegisterServerRequest) ProtoReflect() protoreflect.Message
func (*RegisterServerRequest) Reset ¶
func (x *RegisterServerRequest) Reset()
func (*RegisterServerRequest) String ¶
func (x *RegisterServerRequest) String() string
type RegisterServerResponse ¶
type RegisterServerResponse struct { Server *Server `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"` // contains filtered or unexported fields }
func (*RegisterServerResponse) Descriptor
deprecated
func (*RegisterServerResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterServerResponse.ProtoReflect.Descriptor instead.
func (*RegisterServerResponse) GetServer ¶
func (x *RegisterServerResponse) GetServer() *Server
func (*RegisterServerResponse) ProtoMessage ¶
func (*RegisterServerResponse) ProtoMessage()
func (*RegisterServerResponse) ProtoReflect ¶
func (x *RegisterServerResponse) ProtoReflect() protoreflect.Message
func (*RegisterServerResponse) Reset ¶
func (x *RegisterServerResponse) Reset()
func (*RegisterServerResponse) String ¶
func (x *RegisterServerResponse) String() string
type RegisterServiceRequest ¶
type RegisterServiceRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Endpoint string `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"` Labels map[string]string `` /* 153-byte string literal not displayed */ Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` Namespace string `protobuf:"bytes,5,opt,name=namespace,proto3" json:"namespace,omitempty"` Selector string `protobuf:"bytes,6,opt,name=selector,proto3" json:"selector,omitempty"` // contains filtered or unexported fields }
func (*RegisterServiceRequest) Descriptor
deprecated
func (*RegisterServiceRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterServiceRequest.ProtoReflect.Descriptor instead.
func (*RegisterServiceRequest) GetDescription ¶
func (x *RegisterServiceRequest) GetDescription() string
func (*RegisterServiceRequest) GetEndpoint ¶
func (x *RegisterServiceRequest) GetEndpoint() string
func (*RegisterServiceRequest) GetLabels ¶
func (x *RegisterServiceRequest) GetLabels() map[string]string
func (*RegisterServiceRequest) GetName ¶
func (x *RegisterServiceRequest) GetName() string
func (*RegisterServiceRequest) GetNamespace ¶
func (x *RegisterServiceRequest) GetNamespace() string
func (*RegisterServiceRequest) GetSelector ¶
func (x *RegisterServiceRequest) GetSelector() string
func (*RegisterServiceRequest) ProtoMessage ¶
func (*RegisterServiceRequest) ProtoMessage()
func (*RegisterServiceRequest) ProtoReflect ¶
func (x *RegisterServiceRequest) ProtoReflect() protoreflect.Message
func (*RegisterServiceRequest) Reset ¶
func (x *RegisterServiceRequest) Reset()
func (*RegisterServiceRequest) String ¶
func (x *RegisterServiceRequest) String() string
type RegisterServiceResponse ¶
type RegisterServiceResponse struct { Service *Service `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` // contains filtered or unexported fields }
func (*RegisterServiceResponse) Descriptor
deprecated
func (*RegisterServiceResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterServiceResponse.ProtoReflect.Descriptor instead.
func (*RegisterServiceResponse) GetService ¶
func (x *RegisterServiceResponse) GetService() *Service
func (*RegisterServiceResponse) ProtoMessage ¶
func (*RegisterServiceResponse) ProtoMessage()
func (*RegisterServiceResponse) ProtoReflect ¶
func (x *RegisterServiceResponse) ProtoReflect() protoreflect.Message
func (*RegisterServiceResponse) Reset ¶
func (x *RegisterServiceResponse) Reset()
func (*RegisterServiceResponse) String ¶
func (x *RegisterServiceResponse) String() string
type Server ¶
type Server struct { // name is the server's name. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // labels are key/value pairs that can attached to a service. it provides the possibility // to choose servers during service registration via selector. Labels map[string]string `` /* 153-byte string literal not displayed */ // modified is the the time when the service is created or modified. Modified *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=modified,proto3" json:"modified,omitempty"` // state defines the server state. State int64 `protobuf:"varint,4,opt,name=state,proto3" json:"state,omitempty"` // contains filtered or unexported fields }
Server represents a server.
func (*Server) Descriptor
deprecated
func (*Server) GetModified ¶
func (x *Server) GetModified() *timestamppb.Timestamp
func (*Server) ProtoMessage ¶
func (*Server) ProtoMessage()
func (*Server) ProtoReflect ¶
func (x *Server) ProtoReflect() protoreflect.Message
type ServerAPIClient ¶
type ServerAPIClient interface { // RegisterServer registers a server. RegisterServer(ctx context.Context, in *RegisterServerRequest, opts ...grpc.CallOption) (*RegisterServerResponse, error) // UnRegisterServer unregisters a server. UnregisterServer(ctx context.Context, in *UnregisterServerRequest, opts ...grpc.CallOption) (*UnregisterServerResponse, error) // ListServer lists all servers. ListServer(ctx context.Context, in *ListServerRequest, opts ...grpc.CallOption) (*ListServerResponse, error) }
ServerAPIClient is the client API for ServerAPI 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 NewServerAPIClient ¶
func NewServerAPIClient(cc grpc.ClientConnInterface) ServerAPIClient
type ServerAPIServer ¶
type ServerAPIServer interface { // RegisterServer registers a server. RegisterServer(context.Context, *RegisterServerRequest) (*RegisterServerResponse, error) // UnRegisterServer unregisters a server. UnregisterServer(context.Context, *UnregisterServerRequest) (*UnregisterServerResponse, error) // ListServer lists all servers. ListServer(context.Context, *ListServerRequest) (*ListServerResponse, error) // contains filtered or unexported methods }
ServerAPIServer is the server API for ServerAPI service. All implementations must embed UnimplementedServerAPIServer for forward compatibility
type Service ¶
type Service struct { // id is the generated ID of the registered service. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // name is the name of the service. This name is used to group the registered services. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // endpoint is the URL under which the service can be reached. Endpoint string `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // namespace is the namespace where the service is registered. A service can only exist once per namespace. Namespace string `protobuf:"bytes,4,opt,name=namespace,proto3" json:"namespace,omitempty"` // selector is an optional k8s style selector to choose a group of servers a service is distributed to. Selector string `protobuf:"bytes,5,opt,name=selector,proto3" json:"selector,omitempty"` // servers is the list of servers responsible for scraping that service. Servers []string `protobuf:"bytes,6,rep,name=servers,proto3" json:"servers,omitempty"` // labels are key/value pairs that can attached to a service. Labels map[string]string `` /* 153-byte string literal not displayed */ // describtion can be used to descrive the service. Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"` // modified is the the time when the service is created or modified. Modified *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=modified,proto3" json:"modified,omitempty"` // contains filtered or unexported fields }
Service represents a service.
func (*Service) Descriptor
deprecated
func (*Service) GetDescription ¶
func (*Service) GetEndpoint ¶
func (*Service) GetModified ¶
func (x *Service) GetModified() *timestamppb.Timestamp
func (*Service) GetNamespace ¶
func (*Service) GetSelector ¶
func (*Service) GetServers ¶
func (*Service) ProtoMessage ¶
func (*Service) ProtoMessage()
func (*Service) ProtoReflect ¶
func (x *Service) ProtoReflect() protoreflect.Message
type ServiceAPIClient ¶
type ServiceAPIClient interface { // RegisterService registers a service. RegisterService(ctx context.Context, in *RegisterServiceRequest, opts ...grpc.CallOption) (*RegisterServiceResponse, error) // UnRegisterService unregisters a service. UnRegisterService(ctx context.Context, in *UnRegisterServiceRequest, opts ...grpc.CallOption) (*UnRegisterServiceResponse, error) // ListService lists all services. ListService(ctx context.Context, in *ListServiceRequest, opts ...grpc.CallOption) (*ListServiceResponse, error) // ListTargetGroup converts services to prometheus target groups. Those can // be used for http_sd (see: https://prometheus.io/docs/prometheus/latest/http_sd/ // for more information). ListTargetGroup(ctx context.Context, in *ListTargetGroupRequest, opts ...grpc.CallOption) (*ListTargetGroupResponse, error) }
ServiceAPIClient is the client API for ServiceAPI 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 NewServiceAPIClient ¶
func NewServiceAPIClient(cc grpc.ClientConnInterface) ServiceAPIClient
type ServiceAPIServer ¶
type ServiceAPIServer interface { // RegisterService registers a service. RegisterService(context.Context, *RegisterServiceRequest) (*RegisterServiceResponse, error) // UnRegisterService unregisters a service. UnRegisterService(context.Context, *UnRegisterServiceRequest) (*UnRegisterServiceResponse, error) // ListService lists all services. ListService(context.Context, *ListServiceRequest) (*ListServiceResponse, error) // ListTargetGroup converts services to prometheus target groups. Those can // be used for http_sd (see: https://prometheus.io/docs/prometheus/latest/http_sd/ // for more information). ListTargetGroup(context.Context, *ListTargetGroupRequest) (*ListTargetGroupResponse, error) // contains filtered or unexported methods }
ServiceAPIServer is the server API for ServiceAPI service. All implementations must embed UnimplementedServiceAPIServer for forward compatibility
type TargetGroup ¶ added in v0.8.0
type TargetGroup struct { // targets is a list of scrape targets Targets []string `protobuf:"bytes,1,rep,name=targets,proto3" json:"targets,omitempty"` // labesl are the corresponding labels Labels map[string]string `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
TargetGrroup represents a prometheus target group.
func (*TargetGroup) Descriptor
deprecated
added in
v0.8.0
func (*TargetGroup) Descriptor() ([]byte, []int)
Deprecated: Use TargetGroup.ProtoReflect.Descriptor instead.
func (*TargetGroup) GetLabels ¶ added in v0.8.0
func (x *TargetGroup) GetLabels() map[string]string
func (*TargetGroup) GetTargets ¶ added in v0.8.0
func (x *TargetGroup) GetTargets() []string
func (*TargetGroup) ProtoMessage ¶ added in v0.8.0
func (*TargetGroup) ProtoMessage()
func (*TargetGroup) ProtoReflect ¶ added in v0.8.0
func (x *TargetGroup) ProtoReflect() protoreflect.Message
func (*TargetGroup) Reset ¶ added in v0.8.0
func (x *TargetGroup) Reset()
func (*TargetGroup) String ¶ added in v0.8.0
func (x *TargetGroup) String() string
type TokenAPIClient ¶
type TokenAPIClient interface { // Create creates a token. Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) // Info gives token information. Info(ctx context.Context, in *InfoRequest, opts ...grpc.CallOption) (*InfoResponse, error) }
TokenAPIClient is the client API for TokenAPI 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 NewTokenAPIClient ¶
func NewTokenAPIClient(cc grpc.ClientConnInterface) TokenAPIClient
type TokenAPIServer ¶
type TokenAPIServer interface { // Create creates a token. Create(context.Context, *CreateRequest) (*CreateResponse, error) // Info gives token information. Info(context.Context, *InfoRequest) (*InfoResponse, error) // contains filtered or unexported methods }
TokenAPIServer is the server API for TokenAPI service. All implementations must embed UnimplementedTokenAPIServer for forward compatibility
type TokenInfo ¶
type TokenInfo struct { // id is the id of the token. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // namespaces defines which namespaces the token has access to. Namespaces []string `protobuf:"bytes,2,rep,name=namespaces,proto3" json:"namespaces,omitempty"` // expires_at shows the expiry time ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` // contains filtered or unexported fields }
TokenInfo represents a machine token.
func (*TokenInfo) Descriptor
deprecated
func (*TokenInfo) GetExpiresAt ¶
func (x *TokenInfo) GetExpiresAt() *timestamppb.Timestamp
func (*TokenInfo) GetNamespaces ¶
func (*TokenInfo) ProtoMessage ¶
func (*TokenInfo) ProtoMessage()
func (*TokenInfo) ProtoReflect ¶
func (x *TokenInfo) ProtoReflect() protoreflect.Message
type UnRegisterServiceRequest ¶
type UnRegisterServiceRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` // contains filtered or unexported fields }
func (*UnRegisterServiceRequest) Descriptor
deprecated
func (*UnRegisterServiceRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnRegisterServiceRequest.ProtoReflect.Descriptor instead.
func (*UnRegisterServiceRequest) GetId ¶
func (x *UnRegisterServiceRequest) GetId() string
func (*UnRegisterServiceRequest) GetNamespace ¶
func (x *UnRegisterServiceRequest) GetNamespace() string
func (*UnRegisterServiceRequest) ProtoMessage ¶
func (*UnRegisterServiceRequest) ProtoMessage()
func (*UnRegisterServiceRequest) ProtoReflect ¶
func (x *UnRegisterServiceRequest) ProtoReflect() protoreflect.Message
func (*UnRegisterServiceRequest) Reset ¶
func (x *UnRegisterServiceRequest) Reset()
func (*UnRegisterServiceRequest) String ¶
func (x *UnRegisterServiceRequest) String() string
type UnRegisterServiceResponse ¶
type UnRegisterServiceResponse struct {
// contains filtered or unexported fields
}
func (*UnRegisterServiceResponse) Descriptor
deprecated
func (*UnRegisterServiceResponse) Descriptor() ([]byte, []int)
Deprecated: Use UnRegisterServiceResponse.ProtoReflect.Descriptor instead.
func (*UnRegisterServiceResponse) ProtoMessage ¶
func (*UnRegisterServiceResponse) ProtoMessage()
func (*UnRegisterServiceResponse) ProtoReflect ¶
func (x *UnRegisterServiceResponse) ProtoReflect() protoreflect.Message
func (*UnRegisterServiceResponse) Reset ¶
func (x *UnRegisterServiceResponse) Reset()
func (*UnRegisterServiceResponse) String ¶
func (x *UnRegisterServiceResponse) String() string
type UnimplementedNamespaceAPIServer ¶
type UnimplementedNamespaceAPIServer struct { }
UnimplementedNamespaceAPIServer must be embedded to have forward compatible implementations.
func (UnimplementedNamespaceAPIServer) ListNamespace ¶
func (UnimplementedNamespaceAPIServer) ListNamespace(context.Context, *ListNamespaceRequest) (*ListNamespaceResponse, error)
func (UnimplementedNamespaceAPIServer) RegisterNamespace ¶
func (UnimplementedNamespaceAPIServer) RegisterNamespace(context.Context, *RegisterNamespaceRequest) (*RegisterNamespaceResponse, error)
func (UnimplementedNamespaceAPIServer) UnregisterNamespace ¶
func (UnimplementedNamespaceAPIServer) UnregisterNamespace(context.Context, *UnregisterNamespaceRequest) (*UnregisterNamespaceResponse, error)
type UnimplementedServerAPIServer ¶
type UnimplementedServerAPIServer struct { }
UnimplementedServerAPIServer must be embedded to have forward compatible implementations.
func (UnimplementedServerAPIServer) ListServer ¶
func (UnimplementedServerAPIServer) ListServer(context.Context, *ListServerRequest) (*ListServerResponse, error)
func (UnimplementedServerAPIServer) RegisterServer ¶
func (UnimplementedServerAPIServer) RegisterServer(context.Context, *RegisterServerRequest) (*RegisterServerResponse, error)
func (UnimplementedServerAPIServer) UnregisterServer ¶
func (UnimplementedServerAPIServer) UnregisterServer(context.Context, *UnregisterServerRequest) (*UnregisterServerResponse, error)
type UnimplementedServiceAPIServer ¶
type UnimplementedServiceAPIServer struct { }
UnimplementedServiceAPIServer must be embedded to have forward compatible implementations.
func (UnimplementedServiceAPIServer) ListService ¶
func (UnimplementedServiceAPIServer) ListService(context.Context, *ListServiceRequest) (*ListServiceResponse, error)
func (UnimplementedServiceAPIServer) ListTargetGroup ¶ added in v0.8.0
func (UnimplementedServiceAPIServer) ListTargetGroup(context.Context, *ListTargetGroupRequest) (*ListTargetGroupResponse, error)
func (UnimplementedServiceAPIServer) RegisterService ¶
func (UnimplementedServiceAPIServer) RegisterService(context.Context, *RegisterServiceRequest) (*RegisterServiceResponse, error)
func (UnimplementedServiceAPIServer) UnRegisterService ¶
func (UnimplementedServiceAPIServer) UnRegisterService(context.Context, *UnRegisterServiceRequest) (*UnRegisterServiceResponse, error)
type UnimplementedTokenAPIServer ¶
type UnimplementedTokenAPIServer struct { }
UnimplementedTokenAPIServer must be embedded to have forward compatible implementations.
func (UnimplementedTokenAPIServer) Create ¶
func (UnimplementedTokenAPIServer) Create(context.Context, *CreateRequest) (*CreateResponse, error)
func (UnimplementedTokenAPIServer) Info ¶
func (UnimplementedTokenAPIServer) Info(context.Context, *InfoRequest) (*InfoResponse, error)
type UnregisterNamespaceRequest ¶
type UnregisterNamespaceRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*UnregisterNamespaceRequest) Descriptor
deprecated
func (*UnregisterNamespaceRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnregisterNamespaceRequest.ProtoReflect.Descriptor instead.
func (*UnregisterNamespaceRequest) GetName ¶
func (x *UnregisterNamespaceRequest) GetName() string
func (*UnregisterNamespaceRequest) ProtoMessage ¶
func (*UnregisterNamespaceRequest) ProtoMessage()
func (*UnregisterNamespaceRequest) ProtoReflect ¶
func (x *UnregisterNamespaceRequest) ProtoReflect() protoreflect.Message
func (*UnregisterNamespaceRequest) Reset ¶
func (x *UnregisterNamespaceRequest) Reset()
func (*UnregisterNamespaceRequest) String ¶
func (x *UnregisterNamespaceRequest) String() string
type UnregisterNamespaceResponse ¶
type UnregisterNamespaceResponse struct {
// contains filtered or unexported fields
}
func (*UnregisterNamespaceResponse) Descriptor
deprecated
func (*UnregisterNamespaceResponse) Descriptor() ([]byte, []int)
Deprecated: Use UnregisterNamespaceResponse.ProtoReflect.Descriptor instead.
func (*UnregisterNamespaceResponse) ProtoMessage ¶
func (*UnregisterNamespaceResponse) ProtoMessage()
func (*UnregisterNamespaceResponse) ProtoReflect ¶
func (x *UnregisterNamespaceResponse) ProtoReflect() protoreflect.Message
func (*UnregisterNamespaceResponse) Reset ¶
func (x *UnregisterNamespaceResponse) Reset()
func (*UnregisterNamespaceResponse) String ¶
func (x *UnregisterNamespaceResponse) String() string
type UnregisterServerRequest ¶
type UnregisterServerRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*UnregisterServerRequest) Descriptor
deprecated
func (*UnregisterServerRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnregisterServerRequest.ProtoReflect.Descriptor instead.
func (*UnregisterServerRequest) GetName ¶
func (x *UnregisterServerRequest) GetName() string
func (*UnregisterServerRequest) ProtoMessage ¶
func (*UnregisterServerRequest) ProtoMessage()
func (*UnregisterServerRequest) ProtoReflect ¶
func (x *UnregisterServerRequest) ProtoReflect() protoreflect.Message
func (*UnregisterServerRequest) Reset ¶
func (x *UnregisterServerRequest) Reset()
func (*UnregisterServerRequest) String ¶
func (x *UnregisterServerRequest) String() string
type UnregisterServerResponse ¶
type UnregisterServerResponse struct {
// contains filtered or unexported fields
}
func (*UnregisterServerResponse) Descriptor
deprecated
func (*UnregisterServerResponse) Descriptor() ([]byte, []int)
Deprecated: Use UnregisterServerResponse.ProtoReflect.Descriptor instead.
func (*UnregisterServerResponse) ProtoMessage ¶
func (*UnregisterServerResponse) ProtoMessage()
func (*UnregisterServerResponse) ProtoReflect ¶
func (x *UnregisterServerResponse) ProtoReflect() protoreflect.Message
func (*UnregisterServerResponse) Reset ¶
func (x *UnregisterServerResponse) Reset()
func (*UnregisterServerResponse) String ¶
func (x *UnregisterServerResponse) String() string
type UnsafeNamespaceAPIServer ¶
type UnsafeNamespaceAPIServer interface {
// contains filtered or unexported methods
}
UnsafeNamespaceAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NamespaceAPIServer will result in compilation errors.
type UnsafeServerAPIServer ¶
type UnsafeServerAPIServer interface {
// contains filtered or unexported methods
}
UnsafeServerAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServerAPIServer will result in compilation errors.
type UnsafeServiceAPIServer ¶
type UnsafeServiceAPIServer interface {
// contains filtered or unexported methods
}
UnsafeServiceAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceAPIServer will result in compilation errors.
type UnsafeTokenAPIServer ¶
type UnsafeTokenAPIServer interface {
// contains filtered or unexported methods
}
UnsafeTokenAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TokenAPIServer will result in compilation errors.
Source Files ¶
- namespace.pb.go
- namespace_api.pb.go
- namespace_api.pb.gw.go
- namespace_api_grpc.pb.go
- server.pb.go
- server_api.pb.go
- server_api.pb.gw.go
- server_api_grpc.pb.go
- service.pb.go
- service_api.pb.go
- service_api.pb.gw.go
- service_api_grpc.pb.go
- targetgroup.pb.go
- token_api.pb.go
- token_api.pb.gw.go
- token_api_grpc.pb.go
- tokeninfo.pb.go