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

import (
	sync "sync"

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

// maybe an interface someday?
type Forge struct {
	once     sync.Once     // one-time initialized data
	Config   *ForgeConfigs // config repos for readonly, private, etc
	Repos    *gitpb.Repos  // the repo protobufs
	Patches  *Patches      // patches that are in progress
	Sets     *Sets         // patches that are in progress
	hostname string        // your hostname
	goWork   bool          // means the user is currently using a go.work file
	Mode     ForgeMode     // what "mode" forge is in
}

func (f *Forge) IsGoWork() bool {
	return f.goWork
}