diff options
| author | Jeff Carr <[email protected]> | 2025-03-22 08:30:27 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-22 08:30:27 -0500 |
| commit | 88e87f5c1a3b208afdf505145fff406167411c0e (patch) | |
| tree | e521c22b3279d356b5d3245e1577423b30f43780 /structs.go | |
| parent | b2ed4102763421924b29ab4bb6be1a1e5b4b9647 (diff) | |
use hostname.Get()v0.0.102
Diffstat (limited to 'structs.go')
| -rw-r--r-- | structs.go | 21 |
1 files changed, 11 insertions, 10 deletions
@@ -10,17 +10,18 @@ import ( // maybe an interface someday? type Forge struct { // one-time initialized data - initOnce sync.Once - initErr error // init error, if any - goSrc string // the path to go/src - configDir string // normally ~/.config/forge - goWork bool // means the user is currently using a go.work file - Config *ForgeConfigs // config repos for readonly, private, etc - Repos *gitpb.Repos // the repo protobufs + initOnce sync.Once + initErr error // init error, if any + goSrc string // the path to go/src + configDir string // normally ~/.config/forge + goWork bool // means the user is currently using a go.work file + Config *ForgeConfigs // config repos for readonly, private, etc + Repos *gitpb.Repos // the repo protobufs + configSave bool // if you need to save the config because things changed + hasFullScan bool // track last scan so it can be throttled + fullscan time.Time // time of the last scan so it can be throttled + hostname string // your hostname // Machine *zoopb.Machine // things for virtigo to track vm's - configSave bool // if you need to save the config because things changed - hasFullScan bool // track last scan so it can be throttled - fullscan time.Time // time of the last scan so it can be throttled } func (f *Forge) GetGoSrc() string { |
