api: update intention struct for precedence

This commit is contained in:
Mitchell Hashimoto 2018-06-06 21:23:27 -07:00 committed by Jack Pearkes
parent dc7d662731
commit 7e796fd07b
1 changed files with 5 additions and 0 deletions

View File

@ -43,6 +43,11 @@ type Intention struct {
// opaque to Consul but is served in API responses.
Meta map[string]string
// Precedence is the order that the intention will be applied, with
// larger numbers being applied first. This is a read-only field, on
// any intention update it is updated.
Precedence int
// CreatedAt and UpdatedAt keep track of when this record was created
// or modified.
CreatedAt, UpdatedAt time.Time