Documentation ¶
Index ¶
- Constants
- func NewDirectoryServiceHandler(svc DirectoryServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- type DirectoryServiceClient
- type DirectoryServiceHandler
- type UnimplementedDirectoryServiceHandler
- func (UnimplementedDirectoryServiceHandler) DeleteUser(context.Context, *connect.Request[v1alpha1.DeleteUserRequest]) (*connect.Response[v1alpha1.DeleteUserResponse], error)
- func (UnimplementedDirectoryServiceHandler) GetGroup(context.Context, *connect.Request[v1alpha1.GetGroupRequest]) (*connect.Response[v1alpha1.GetGroupResponse], error)
- func (UnimplementedDirectoryServiceHandler) GetUser(context.Context, *connect.Request[v1alpha1.GetUserRequest]) (*connect.Response[v1alpha1.GetUserResponse], error)
- func (UnimplementedDirectoryServiceHandler) LookupUserAccount(context.Context, *connect.Request[v1alpha1.LookupUserAccountRequest]) (*connect.Response[v1alpha1.LookupUserAccountResponse], error)
- func (UnimplementedDirectoryServiceHandler) QueryChildGroups(context.Context, *connect.Request[v1alpha1.QueryChildGroupsRequest]) (*connect.Response[v1alpha1.QueryChildGroupsResponse], error)
- func (UnimplementedDirectoryServiceHandler) QueryGroupMembers(context.Context, *connect.Request[v1alpha1.QueryGroupMembersRequest]) (*connect.Response[v1alpha1.QueryGroupMembersResponse], error)
- func (UnimplementedDirectoryServiceHandler) QueryGroups(context.Context, *connect.Request[v1alpha1.QueryGroupsRequest]) (*connect.Response[v1alpha1.QueryGroupsResponse], error)
- func (UnimplementedDirectoryServiceHandler) QueryGroupsForUser(context.Context, *connect.Request[v1alpha1.QueryGroupsForUserRequest]) (*connect.Response[v1alpha1.QueryGroupsForUserResponse], error)
- func (UnimplementedDirectoryServiceHandler) QueryUsers(context.Context, *connect.Request[v1alpha1.QueryUsersRequest]) (*connect.Response[v1alpha1.QueryUsersResponse], error)
Constants ¶
const ( // DirectoryServiceQueryUsersProcedure is the fully-qualified name of the DirectoryService's // QueryUsers RPC. DirectoryServiceQueryUsersProcedure = "/commonfate.control.directory.v1alpha1.DirectoryService/QueryUsers" // DirectoryServiceGetUserProcedure is the fully-qualified name of the DirectoryService's GetUser // RPC. DirectoryServiceGetUserProcedure = "/commonfate.control.directory.v1alpha1.DirectoryService/GetUser" // DirectoryServiceQueryGroupsProcedure is the fully-qualified name of the DirectoryService's // QueryGroups RPC. DirectoryServiceQueryGroupsProcedure = "/commonfate.control.directory.v1alpha1.DirectoryService/QueryGroups" // DirectoryServiceGetGroupProcedure is the fully-qualified name of the DirectoryService's GetGroup // RPC. DirectoryServiceGetGroupProcedure = "/commonfate.control.directory.v1alpha1.DirectoryService/GetGroup" // DirectoryServiceQueryGroupMembersProcedure is the fully-qualified name of the DirectoryService's // QueryGroupMembers RPC. DirectoryServiceQueryGroupMembersProcedure = "/commonfate.control.directory.v1alpha1.DirectoryService/QueryGroupMembers" // DirectoryServiceQueryChildGroupsProcedure is the fully-qualified name of the DirectoryService's // QueryChildGroups RPC. DirectoryServiceQueryChildGroupsProcedure = "/commonfate.control.directory.v1alpha1.DirectoryService/QueryChildGroups" // DirectoryServiceQueryGroupsForUserProcedure is the fully-qualified name of the DirectoryService's // QueryGroupsForUser RPC. DirectoryServiceQueryGroupsForUserProcedure = "/commonfate.control.directory.v1alpha1.DirectoryService/QueryGroupsForUser" // DirectoryServiceLookupUserAccountProcedure is the fully-qualified name of the DirectoryService's // LookupUserAccount RPC. DirectoryServiceLookupUserAccountProcedure = "/commonfate.control.directory.v1alpha1.DirectoryService/LookupUserAccount" // DirectoryServiceDeleteUserProcedure is the fully-qualified name of the DirectoryService's // DeleteUser RPC. DirectoryServiceDeleteUserProcedure = "/commonfate.control.directory.v1alpha1.DirectoryService/DeleteUser" )
These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.
const (
// DirectoryServiceName is the fully-qualified name of the DirectoryService service.
DirectoryServiceName = "commonfate.control.directory.v1alpha1.DirectoryService"
)
Variables ¶
This section is empty.
Functions ¶
func NewDirectoryServiceHandler ¶
func NewDirectoryServiceHandler(svc DirectoryServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewDirectoryServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.
By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.
Types ¶
type DirectoryServiceClient ¶
type DirectoryServiceClient interface { QueryUsers(context.Context, *connect.Request[v1alpha1.QueryUsersRequest]) (*connect.Response[v1alpha1.QueryUsersResponse], error) GetUser(context.Context, *connect.Request[v1alpha1.GetUserRequest]) (*connect.Response[v1alpha1.GetUserResponse], error) QueryGroups(context.Context, *connect.Request[v1alpha1.QueryGroupsRequest]) (*connect.Response[v1alpha1.QueryGroupsResponse], error) GetGroup(context.Context, *connect.Request[v1alpha1.GetGroupRequest]) (*connect.Response[v1alpha1.GetGroupResponse], error) QueryGroupMembers(context.Context, *connect.Request[v1alpha1.QueryGroupMembersRequest]) (*connect.Response[v1alpha1.QueryGroupMembersResponse], error) QueryChildGroups(context.Context, *connect.Request[v1alpha1.QueryChildGroupsRequest]) (*connect.Response[v1alpha1.QueryChildGroupsResponse], error) // Lists the groups that a user is a member of. QueryGroupsForUser(context.Context, *connect.Request[v1alpha1.QueryGroupsForUserRequest]) (*connect.Response[v1alpha1.QueryGroupsForUserResponse], error) // Looks up the matching User for a particular // connected user account in an integration. LookupUserAccount(context.Context, *connect.Request[v1alpha1.LookupUserAccountRequest]) (*connect.Response[v1alpha1.LookupUserAccountResponse], error) DeleteUser(context.Context, *connect.Request[v1alpha1.DeleteUserRequest]) (*connect.Response[v1alpha1.DeleteUserResponse], error) }
DirectoryServiceClient is a client for the commonfate.control.directory.v1alpha1.DirectoryService service.
func NewDirectoryServiceClient ¶
func NewDirectoryServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) DirectoryServiceClient
NewDirectoryServiceClient constructs a client for the commonfate.control.directory.v1alpha1.DirectoryService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.
The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).
type DirectoryServiceHandler ¶
type DirectoryServiceHandler interface { QueryUsers(context.Context, *connect.Request[v1alpha1.QueryUsersRequest]) (*connect.Response[v1alpha1.QueryUsersResponse], error) GetUser(context.Context, *connect.Request[v1alpha1.GetUserRequest]) (*connect.Response[v1alpha1.GetUserResponse], error) QueryGroups(context.Context, *connect.Request[v1alpha1.QueryGroupsRequest]) (*connect.Response[v1alpha1.QueryGroupsResponse], error) GetGroup(context.Context, *connect.Request[v1alpha1.GetGroupRequest]) (*connect.Response[v1alpha1.GetGroupResponse], error) QueryGroupMembers(context.Context, *connect.Request[v1alpha1.QueryGroupMembersRequest]) (*connect.Response[v1alpha1.QueryGroupMembersResponse], error) QueryChildGroups(context.Context, *connect.Request[v1alpha1.QueryChildGroupsRequest]) (*connect.Response[v1alpha1.QueryChildGroupsResponse], error) // Lists the groups that a user is a member of. QueryGroupsForUser(context.Context, *connect.Request[v1alpha1.QueryGroupsForUserRequest]) (*connect.Response[v1alpha1.QueryGroupsForUserResponse], error) // Looks up the matching User for a particular // connected user account in an integration. LookupUserAccount(context.Context, *connect.Request[v1alpha1.LookupUserAccountRequest]) (*connect.Response[v1alpha1.LookupUserAccountResponse], error) DeleteUser(context.Context, *connect.Request[v1alpha1.DeleteUserRequest]) (*connect.Response[v1alpha1.DeleteUserResponse], error) }
DirectoryServiceHandler is an implementation of the commonfate.control.directory.v1alpha1.DirectoryService service.
type UnimplementedDirectoryServiceHandler ¶
type UnimplementedDirectoryServiceHandler struct{}
UnimplementedDirectoryServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedDirectoryServiceHandler) DeleteUser ¶ added in v1.59.0
func (UnimplementedDirectoryServiceHandler) DeleteUser(context.Context, *connect.Request[v1alpha1.DeleteUserRequest]) (*connect.Response[v1alpha1.DeleteUserResponse], error)
func (UnimplementedDirectoryServiceHandler) GetGroup ¶
func (UnimplementedDirectoryServiceHandler) GetGroup(context.Context, *connect.Request[v1alpha1.GetGroupRequest]) (*connect.Response[v1alpha1.GetGroupResponse], error)
func (UnimplementedDirectoryServiceHandler) GetUser ¶
func (UnimplementedDirectoryServiceHandler) GetUser(context.Context, *connect.Request[v1alpha1.GetUserRequest]) (*connect.Response[v1alpha1.GetUserResponse], error)
func (UnimplementedDirectoryServiceHandler) LookupUserAccount ¶
func (UnimplementedDirectoryServiceHandler) LookupUserAccount(context.Context, *connect.Request[v1alpha1.LookupUserAccountRequest]) (*connect.Response[v1alpha1.LookupUserAccountResponse], error)
func (UnimplementedDirectoryServiceHandler) QueryChildGroups ¶
func (UnimplementedDirectoryServiceHandler) QueryChildGroups(context.Context, *connect.Request[v1alpha1.QueryChildGroupsRequest]) (*connect.Response[v1alpha1.QueryChildGroupsResponse], error)
func (UnimplementedDirectoryServiceHandler) QueryGroupMembers ¶
func (UnimplementedDirectoryServiceHandler) QueryGroupMembers(context.Context, *connect.Request[v1alpha1.QueryGroupMembersRequest]) (*connect.Response[v1alpha1.QueryGroupMembersResponse], error)
func (UnimplementedDirectoryServiceHandler) QueryGroups ¶
func (UnimplementedDirectoryServiceHandler) QueryGroups(context.Context, *connect.Request[v1alpha1.QueryGroupsRequest]) (*connect.Response[v1alpha1.QueryGroupsResponse], error)
func (UnimplementedDirectoryServiceHandler) QueryGroupsForUser ¶
func (UnimplementedDirectoryServiceHandler) QueryGroupsForUser(context.Context, *connect.Request[v1alpha1.QueryGroupsForUserRequest]) (*connect.Response[v1alpha1.QueryGroupsForUserResponse], error)
func (UnimplementedDirectoryServiceHandler) QueryUsers ¶
func (UnimplementedDirectoryServiceHandler) QueryUsers(context.Context, *connect.Request[v1alpha1.QueryUsersRequest]) (*connect.Response[v1alpha1.QueryUsersResponse], error)