-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtypes.go
45 lines (39 loc) · 884 Bytes
/
types.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
41
42
43
44
45
package main
import (
"github.com/drone/drone-go/drone"
)
type Params struct {
Services []string `json:services`
ApiServer string `json:apiserver`
Token string `json:token`
Namespace string `json:namespace`
Debug bool `json:debug`
Source string `json:source`
Tag string `json:tag`
ReplicationControllers []string `json:replicationcontrollers`
Secrets []string `json:secrets`
}
type Context struct {
System drone.System
Repo drone.Repo
Build drone.Build
Vargs Params
}
type ReqEnvelope struct {
Verb string
Token string
Json []byte
Url string
}
type Artifact struct {
ApiVersion string
Kind string
Data []byte
Metadata struct {
Name string
}
Url string
}
type DroneData struct {
TAG string
}