user

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: GPL-3.0, LGPL-3.0 Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

func (Service) LockUser

func (s Service) LockUser(ctx context.Context, req *authd.LockUserRequest) (*authd.Empty, error)

LockUser marks a user as locked.

func (Service) SetGroupID

SetGroupID sets the GID of a group.

func (Service) SetUserID

SetUserID sets the UID of a user.

func (Service) UnlockUser

func (s Service) UnlockUser(ctx context.Context, req *authd.UnlockUserRequest) (*authd.Empty, error)

UnlockUser marks a user as unlocked.

Jump to

Keyboard shortcuts

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