user

package
v0.5.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2026 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package user provides the gRPC service for user and group management.

Index

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

func (s Service) CheckGlobalAccess(ctx context.Context, method string) error

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

func (s Service) ListGroups(ctx context.Context, req *authd.Empty) (*authd.Groups, error)

ListGroups returns all authd groups.

func (Service) ListUsers

func (s Service) ListUsers(ctx context.Context, req *authd.Empty) (*authd.Users, error)

ListUsers returns all authd users.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL