stubbing pdsh

This commit is contained in:
brent saner
2025-08-17 02:58:24 -04:00
parent e797a14911
commit 5a62622892
20 changed files with 432 additions and 130 deletions

18
pdsh/dshgroup/consts.go Normal file
View File

@@ -0,0 +1,18 @@
package dshgroup
import (
"regexp"
"r00t2.io/goutils/remap"
)
const (
dshGrpPathEnv string = "DSHGROUP_PATH"
)
// DSH Groups
var (
dshGrpDefGrpDir string = "/etc/dsh/group"
dshGrpInclPtrn *remap.ReMap = &remap.ReMap{Regexp: regexp.MustCompile(`^\s*#include\s+(?P<incl>.+)$`)}
dshGrpSubTokenPtrn *remap.ReMap = &remap.ReMap{Regexp: regexp.MustCompile(`^(?P<start_pad>0+)?(?P<start>[0-9]+)(-(?P<end_pad>0+)?(?P<end>[0-9]+))?$`)}
)