-
Notifications
You must be signed in to change notification settings - Fork 0
/
cluster_object_regex.go
37 lines (30 loc) · 1.1 KB
/
cluster_object_regex.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
package types
import "time"
type ClusterObjectRegex struct {
ID string `json:"id" yaml:"id" db:"id"`
PipelineID string `json:"pipelineID" yaml:"pipelineID" db:"pipeline_id"`
Regex string `json:"regex" yaml:"regex" db:"regex"`
Description string `json:"description" yaml:"description" db:"description"`
CreatedAt time.Time `json:"createdAt" yaml:"createdAt" db:"created_at"`
UpdatedAt time.Time `json:"updatedAt" yaml:"updatedAt" db:"updated_at"`
ClusterObjects *[]ClusterObject `json:"clusterObjects,omitempty" yaml:"clusterObjects,omitempty" db:"-"`
}
type CreateClusterObjectRegex struct {
PipelineID string `json:"-"`
Regex string `json:"regex"`
Description string `json:"description"`
}
type ListClusterObjectRegexes struct {
PipelineID string
Last *uint
Before *string
}
type ClusterObjectRegexes struct {
Items []ClusterObjectRegex `json:"items"`
EndCursor *string `json:"endCursor"`
}
type UpdateClusterObjectRegex struct {
RegexID string `json:"-"`
Regex *string `json:"regex"`
Description *string `json:"description"`
}