summaryrefslogtreecommitdiff
path: root/structs.go
blob: 0bb770db9cff744b526ca8f7f342fdbd034387b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package forgepb

import (
	sync "sync"

	"go.wit.com/lib/protobuf/gitpb"
	"go.wit.com/lib/protobuf/zoopb"
)

// 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
	goWork  bool          // means the user is currently using a go.work file
	Config  *ForgeConfigs // config repos for readonly, private, etc
	Repos   *gitpb.Repos
	Machine *zoopb.Machine
}

func (f *Forge) GetGoSrc() string {
	return f.goSrc
}