forked from akuity/kargo-render
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontext.go
40 lines (33 loc) · 811 Bytes
/
context.go
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package render
import (
log "github.com/sirupsen/logrus"
"github.com/akuity/kargo-render/pkg/git"
)
type requestContext struct {
logger *log.Entry
request Request
repo git.Repo
source sourceContext
intermediate intermediateContext
target targetContext
}
type sourceContext struct {
commit string
}
type intermediateContext struct {
branchMetadata *branchMetadata
}
type targetContext struct {
branchConfig branchConfig
oldBranchMetadata branchMetadata
newBranchMetadata branchMetadata
prerenderedManifests map[string][]byte
renderedManifests map[string][]byte
commit commitContext
}
type commitContext struct {
branch string
oldBranchMetadata *branchMetadata
id string
message string
}