summaryrefslogtreecommitdiff
path: root/structs.go
blob: 34550b52ee412bf9fd3d66c6eb3a9e2fad024b16 (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
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
	Config  *ForgeConfigs // config repos for readonly, private, etc
	Repos   *gitpb.Repos
	Machine *zoopb.Machine
}

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