Documentation
¶
Overview ¶
Package user provides the gRPC service for user and group management.
Index ¶
- type Service
- func (s Service) CheckGlobalAccess(ctx context.Context, method string) error
- func (s Service) GetGroupByID(ctx context.Context, req *authd.GetGroupByIDRequest) (*authd.Group, error)
- func (s Service) GetGroupByName(ctx context.Context, req *authd.GetGroupByNameRequest) (*authd.Group, error)
- func (s Service) GetUserByID(ctx context.Context, req *authd.GetUserByIDRequest) (*authd.User, error)
- func (s Service) GetUserByName(ctx context.Context, req *authd.GetUserByNameRequest) (*authd.User, error)
- func (s Service) ListGroups(ctx context.Context, req *authd.Empty) (*authd.Groups, error)
- func (s Service) ListUsers(ctx context.Context, req *authd.Empty) (*authd.Users, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
authd.UnimplementedUserServiceServer
// contains filtered or unexported fields
}
Service is the implementation of the gRPC user service.
func NewService ¶
func NewService(ctx context.Context, userManager *users.Manager, brokerManager *brokers.Manager, permissionManager *permissions.Manager) Service
NewService returns a new gRPC user service.
func (Service) CheckGlobalAccess ¶
CheckGlobalAccess always return access, then individual calls are filtered.
func (Service) GetGroupByID ¶
func (s Service) GetGroupByID(ctx context.Context, req *authd.GetGroupByIDRequest) (*authd.Group, error)
GetGroupByID returns the group entry for the given group ID.
func (Service) GetGroupByName ¶
func (s Service) GetGroupByName(ctx context.Context, req *authd.GetGroupByNameRequest) (*authd.Group, error)
GetGroupByName returns the group entry for the given group name.
func (Service) GetUserByID ¶
func (s Service) GetUserByID(ctx context.Context, req *authd.GetUserByIDRequest) (*authd.User, error)
GetUserByID returns the user entry for the given user ID.
func (Service) GetUserByName ¶
func (s Service) GetUserByName(ctx context.Context, req *authd.GetUserByNameRequest) (*authd.User, error)
GetUserByName returns the user entry for the given username.
func (Service) ListGroups ¶
ListGroups returns all authd groups.
Click to show internal directories.
Click to hide internal directories.