user

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: GPL-3.0, LGPL-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) DeleteGroup added in v0.7.0

func (s Service) DeleteGroup(ctx context.Context, req *authd.DeleteGroupRequest) (*authd.Empty, error)

DeleteGroup removes the group with the given name from the authd database.

func (Service) DeleteUser added in v0.7.0

DeleteUser removes the user with the given name from the authd database.

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) SetHomeDir added in v0.7.0

SetHomeDir sets the home directory of a user.

func (Service) SetShell added in v0.7.0

SetShell sets the shell of a user.

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