services

package
v2.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandExecutor

type CommandExecutor interface {
	Run(ctx context.Context, name string, args ...string) (exitCode int, output string, err error)
	RunAsUser(ctx context.Context, username string, name string, args ...string) (exitCode int, output string, err error)
	RunWithInput(ctx context.Context, input string, name string, args ...string) (exitCode int, output string, err error)
}

CommandExecutor interface defines the contract for executing system commands This is duplicated here to avoid circular dependency with handlers package

type DefaultGroupService

type DefaultGroupService struct {
	// contains filtered or unexported fields
}

DefaultGroupService is the default implementation of GroupService

func NewDefaultGroupService

func NewDefaultGroupService(executor CommandExecutor) *DefaultGroupService

NewDefaultGroupService creates a new DefaultGroupService

func (*DefaultGroupService) AddUserToGroups

func (s *DefaultGroupService) AddUserToGroups(ctx context.Context, username string, gids []uint64) error

AddUserToGroups adds a user to one or more groups by GID

type GroupService

type GroupService interface {
	// AddUserToGroups adds a user to one or more groups by GID
	AddUserToGroups(ctx context.Context, username string, gids []uint64) error
}

GroupService provides group management operations for use by other handlers

Jump to

Keyboard shortcuts

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