Documentation ¶
Overview ¶
Package proto is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterAccountsServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn grpc.ClientConnInterface) error
- func RegisterAccountsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AccountsServiceClient) error
- func RegisterAccountsServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterAccountsServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AccountsServiceServer) error
- func RegisterAccountsServiceServer(s grpc.ServiceRegistrar, srv AccountsServiceServer)
- func RegisterNamespacesServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn grpc.ClientConnInterface) error
- func RegisterNamespacesServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client NamespacesServiceClient) error
- func RegisterNamespacesServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterNamespacesServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server NamespacesServiceServer) error
- func RegisterNamespacesServiceServer(s grpc.ServiceRegistrar, srv NamespacesServiceServer)
- type AccountsServiceClient
- type AccountsServiceServer
- type NamespacesServiceClient
- type NamespacesServiceServer
- type UnimplementedAccountsServiceServer
- func (UnimplementedAccountsServiceServer) Create(context.Context, *accounts.CreateRequest) (*accounts.CreateResponse, error)
- func (UnimplementedAccountsServiceServer) Delete(context.Context, *accounts.DeleteRequest) (*accounts.DeleteResponse, error)
- func (UnimplementedAccountsServiceServer) Get(context.Context, *accounts.GetRequest) (*accounts.Account, error)
- func (UnimplementedAccountsServiceServer) List(context.Context, *accounts.ListRequest) (*accounts.ListResponse, error)
- func (UnimplementedAccountsServiceServer) SetCredentials(context.Context, *accounts.SetCredentialsRequest) (*accounts.SetCredentialsResponse, error)
- func (UnimplementedAccountsServiceServer) Token(context.Context, *accounts.TokenRequest) (*accounts.TokenResponse, error)
- func (UnimplementedAccountsServiceServer) Update(context.Context, *accounts.Account) (*accounts.UpdateResponse, error)
- type UnimplementedNamespacesServiceServer
- func (UnimplementedNamespacesServiceServer) Create(context.Context, *namespaces.CreateRequest) (*namespaces.CreateResponse, error)
- func (UnimplementedNamespacesServiceServer) Delete(context.Context, *namespaces.DeleteRequest) (*namespaces.DeleteResponse, error)
- func (UnimplementedNamespacesServiceServer) Join(context.Context, *namespaces.JoinRequest) (*namespaces.JoinResponse, error)
- func (UnimplementedNamespacesServiceServer) Link(context.Context, *namespaces.LinkRequest) (*namespaces.LinkResponse, error)
- func (UnimplementedNamespacesServiceServer) List(context.Context, *namespaces.ListRequest) (*namespaces.ListResponse, error)
- type UnsafeAccountsServiceServer
- type UnsafeNamespacesServiceServer
Constants ¶
This section is empty.
Variables ¶
var AccountsService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "nocloud.registry.AccountsService", HandlerType: (*AccountsServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Token", Handler: _AccountsService_Token_Handler, }, { MethodName: "SetCredentials", Handler: _AccountsService_SetCredentials_Handler, }, { MethodName: "Create", Handler: _AccountsService_Create_Handler, }, { MethodName: "Update", Handler: _AccountsService_Update_Handler, }, { MethodName: "Get", Handler: _AccountsService_Get_Handler, }, { MethodName: "List", Handler: _AccountsService_List_Handler, }, { MethodName: "Delete", Handler: _AccountsService_Delete_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/registry/proto/registry.proto", }
AccountsService_ServiceDesc is the grpc.ServiceDesc for AccountsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_pkg_registry_proto_registry_proto protoreflect.FileDescriptor
var NamespacesService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "nocloud.registry.NamespacesService", HandlerType: (*NamespacesServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Create", Handler: _NamespacesService_Create_Handler, }, { MethodName: "List", Handler: _NamespacesService_List_Handler, }, { MethodName: "Join", Handler: _NamespacesService_Join_Handler, }, { MethodName: "Link", Handler: _NamespacesService_Link_Handler, }, { MethodName: "Delete", Handler: _NamespacesService_Delete_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/registry/proto/registry.proto", }
NamespacesService_ServiceDesc is the grpc.ServiceDesc for NamespacesService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterAccountsServiceHandler ¶
func RegisterAccountsServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn grpc.ClientConnInterface) error
RegisterAccountsServiceHandler registers the http handlers for service AccountsService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterAccountsServiceHandlerClient ¶
func RegisterAccountsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AccountsServiceClient) error
RegisterAccountsServiceHandlerClient registers the http handlers for service AccountsService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AccountsServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AccountsServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AccountsServiceClient" to call the correct interceptors.
func RegisterAccountsServiceHandlerFromEndpoint ¶
func RegisterAccountsServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterAccountsServiceHandlerFromEndpoint is same as RegisterAccountsServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterAccountsServiceHandlerServer ¶
func RegisterAccountsServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AccountsServiceServer) error
RegisterAccountsServiceHandlerServer registers the http handlers for service AccountsService to "mux". UnaryRPC :call AccountsServiceServer 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 RegisterAccountsServiceHandlerFromEndpoint instead.
func RegisterAccountsServiceServer ¶
func RegisterAccountsServiceServer(s grpc.ServiceRegistrar, srv AccountsServiceServer)
func RegisterNamespacesServiceHandler ¶
func RegisterNamespacesServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn grpc.ClientConnInterface) error
RegisterNamespacesServiceHandler registers the http handlers for service NamespacesService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterNamespacesServiceHandlerClient ¶
func RegisterNamespacesServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client NamespacesServiceClient) error
RegisterNamespacesServiceHandlerClient registers the http handlers for service NamespacesService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "NamespacesServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "NamespacesServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "NamespacesServiceClient" to call the correct interceptors.
func RegisterNamespacesServiceHandlerFromEndpoint ¶
func RegisterNamespacesServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterNamespacesServiceHandlerFromEndpoint is same as RegisterNamespacesServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterNamespacesServiceHandlerServer ¶
func RegisterNamespacesServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server NamespacesServiceServer) error
RegisterNamespacesServiceHandlerServer registers the http handlers for service NamespacesService to "mux". UnaryRPC :call NamespacesServiceServer 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 RegisterNamespacesServiceHandlerFromEndpoint instead.
func RegisterNamespacesServiceServer ¶
func RegisterNamespacesServiceServer(s grpc.ServiceRegistrar, srv NamespacesServiceServer)
Types ¶
type AccountsServiceClient ¶
type AccountsServiceClient interface { Token(ctx context.Context, in *accounts.TokenRequest, opts ...grpc.CallOption) (*accounts.TokenResponse, error) SetCredentials(ctx context.Context, in *accounts.SetCredentialsRequest, opts ...grpc.CallOption) (*accounts.SetCredentialsResponse, error) Create(ctx context.Context, in *accounts.CreateRequest, opts ...grpc.CallOption) (*accounts.CreateResponse, error) Update(ctx context.Context, in *accounts.Account, opts ...grpc.CallOption) (*accounts.UpdateResponse, error) Get(ctx context.Context, in *accounts.GetRequest, opts ...grpc.CallOption) (*accounts.Account, error) List(ctx context.Context, in *accounts.ListRequest, opts ...grpc.CallOption) (*accounts.ListResponse, error) Delete(ctx context.Context, in *accounts.DeleteRequest, opts ...grpc.CallOption) (*accounts.DeleteResponse, error) }
AccountsServiceClient is the client API for AccountsService 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 NewAccountsServiceClient ¶
func NewAccountsServiceClient(cc grpc.ClientConnInterface) AccountsServiceClient
type AccountsServiceServer ¶
type AccountsServiceServer interface { Token(context.Context, *accounts.TokenRequest) (*accounts.TokenResponse, error) SetCredentials(context.Context, *accounts.SetCredentialsRequest) (*accounts.SetCredentialsResponse, error) Create(context.Context, *accounts.CreateRequest) (*accounts.CreateResponse, error) Update(context.Context, *accounts.Account) (*accounts.UpdateResponse, error) Get(context.Context, *accounts.GetRequest) (*accounts.Account, error) List(context.Context, *accounts.ListRequest) (*accounts.ListResponse, error) Delete(context.Context, *accounts.DeleteRequest) (*accounts.DeleteResponse, error) // contains filtered or unexported methods }
AccountsServiceServer is the server API for AccountsService service. All implementations must embed UnimplementedAccountsServiceServer for forward compatibility
type NamespacesServiceClient ¶
type NamespacesServiceClient interface { Create(ctx context.Context, in *namespaces.CreateRequest, opts ...grpc.CallOption) (*namespaces.CreateResponse, error) List(ctx context.Context, in *namespaces.ListRequest, opts ...grpc.CallOption) (*namespaces.ListResponse, error) Join(ctx context.Context, in *namespaces.JoinRequest, opts ...grpc.CallOption) (*namespaces.JoinResponse, error) Link(ctx context.Context, in *namespaces.LinkRequest, opts ...grpc.CallOption) (*namespaces.LinkResponse, error) Delete(ctx context.Context, in *namespaces.DeleteRequest, opts ...grpc.CallOption) (*namespaces.DeleteResponse, error) }
NamespacesServiceClient is the client API for NamespacesService 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 NewNamespacesServiceClient ¶
func NewNamespacesServiceClient(cc grpc.ClientConnInterface) NamespacesServiceClient
type NamespacesServiceServer ¶
type NamespacesServiceServer interface { Create(context.Context, *namespaces.CreateRequest) (*namespaces.CreateResponse, error) List(context.Context, *namespaces.ListRequest) (*namespaces.ListResponse, error) Join(context.Context, *namespaces.JoinRequest) (*namespaces.JoinResponse, error) Link(context.Context, *namespaces.LinkRequest) (*namespaces.LinkResponse, error) Delete(context.Context, *namespaces.DeleteRequest) (*namespaces.DeleteResponse, error) // contains filtered or unexported methods }
NamespacesServiceServer is the server API for NamespacesService service. All implementations must embed UnimplementedNamespacesServiceServer for forward compatibility
type UnimplementedAccountsServiceServer ¶
type UnimplementedAccountsServiceServer struct { }
UnimplementedAccountsServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAccountsServiceServer) Create ¶
func (UnimplementedAccountsServiceServer) Create(context.Context, *accounts.CreateRequest) (*accounts.CreateResponse, error)
func (UnimplementedAccountsServiceServer) Delete ¶
func (UnimplementedAccountsServiceServer) Delete(context.Context, *accounts.DeleteRequest) (*accounts.DeleteResponse, error)
func (UnimplementedAccountsServiceServer) Get ¶
func (UnimplementedAccountsServiceServer) Get(context.Context, *accounts.GetRequest) (*accounts.Account, error)
func (UnimplementedAccountsServiceServer) List ¶
func (UnimplementedAccountsServiceServer) List(context.Context, *accounts.ListRequest) (*accounts.ListResponse, error)
func (UnimplementedAccountsServiceServer) SetCredentials ¶
func (UnimplementedAccountsServiceServer) SetCredentials(context.Context, *accounts.SetCredentialsRequest) (*accounts.SetCredentialsResponse, error)
func (UnimplementedAccountsServiceServer) Token ¶
func (UnimplementedAccountsServiceServer) Token(context.Context, *accounts.TokenRequest) (*accounts.TokenResponse, error)
func (UnimplementedAccountsServiceServer) Update ¶
func (UnimplementedAccountsServiceServer) Update(context.Context, *accounts.Account) (*accounts.UpdateResponse, error)
type UnimplementedNamespacesServiceServer ¶
type UnimplementedNamespacesServiceServer struct { }
UnimplementedNamespacesServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedNamespacesServiceServer) Create ¶
func (UnimplementedNamespacesServiceServer) Create(context.Context, *namespaces.CreateRequest) (*namespaces.CreateResponse, error)
func (UnimplementedNamespacesServiceServer) Delete ¶
func (UnimplementedNamespacesServiceServer) Delete(context.Context, *namespaces.DeleteRequest) (*namespaces.DeleteResponse, error)
func (UnimplementedNamespacesServiceServer) Join ¶
func (UnimplementedNamespacesServiceServer) Join(context.Context, *namespaces.JoinRequest) (*namespaces.JoinResponse, error)
func (UnimplementedNamespacesServiceServer) Link ¶
func (UnimplementedNamespacesServiceServer) Link(context.Context, *namespaces.LinkRequest) (*namespaces.LinkResponse, error)
func (UnimplementedNamespacesServiceServer) List ¶
func (UnimplementedNamespacesServiceServer) List(context.Context, *namespaces.ListRequest) (*namespaces.ListResponse, error)
type UnsafeAccountsServiceServer ¶
type UnsafeAccountsServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAccountsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AccountsServiceServer will result in compilation errors.
type UnsafeNamespacesServiceServer ¶
type UnsafeNamespacesServiceServer interface {
// contains filtered or unexported methods
}
UnsafeNamespacesServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NamespacesServiceServer will result in compilation errors.