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
Click to show internal directories.
Click to hide internal directories.