Skip to content

Commit

Permalink
Add updated field on package, rule, and trigger entity (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
upgle authored Feb 1, 2020
1 parent 049acfb commit a804fb8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions whisk/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ type Package struct {
Binding *Binding `json:"binding,omitempty"`
Actions []Action `json:"actions,omitempty"`
Feeds []Action `json:"feeds,omitempty"`
Updated int64 `json:"updated,omitempty"`
}

func (p *Package) GetName() string {
Expand Down
1 change: 1 addition & 0 deletions whisk/rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ type Rule struct {
Trigger interface{} `json:"trigger"`
Action interface{} `json:"action"`
Publish *bool `json:"publish,omitempty"`
Updated int64 `json:"updated,omitempty"`
}

type RuleListOptions struct {
Expand Down
1 change: 1 addition & 0 deletions whisk/trigger.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ type Trigger struct {
Limits *Limits `json:"limits,omitempty"`
Publish *bool `json:"publish,omitempty"`
Rules map[string]interface{} `json:"rules,omitempty"`
Updated int64 `json:"updated,omitempty"`
}

type TriggerListOptions struct {
Expand Down

0 comments on commit a804fb8

Please sign in to comment.