group

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 DeleteGroupData

type DeleteGroupData struct {
	Groupname string `validate:"required"`
}

DeleteGroupData contains data for group deletion

type GroupData

type GroupData struct {
	Groupname string `validate:"required"`
	GID       uint64 `validate:"required,min=1"`
}

GroupData contains data for group operations

type GroupHandler

type GroupHandler struct {
	*common.BaseHandler
	// contains filtered or unexported fields
}

GroupHandler handles group management commands

func NewGroupHandler

func NewGroupHandler(cmdExecutor common.CommandExecutor, syncManager common.SystemInfoManager) *GroupHandler

NewGroupHandler creates a new group handler

func (*GroupHandler) Execute

func (h *GroupHandler) Execute(ctx context.Context, cmd string, args *common.CommandArgs) (int, string, error)

Execute runs the group management command

func (*GroupHandler) Validate

func (h *GroupHandler) Validate(cmd string, args *common.CommandArgs) error

Validate checks if the arguments are valid for the command

Jump to

Keyboard shortcuts

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