From 7e796fd07bf93aa598ca4048bc0c922144b128a3 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 6 Jun 2018 21:23:27 -0700 Subject: [PATCH] api: update intention struct for precedence --- api/connect_intention.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api/connect_intention.go b/api/connect_intention.go index eb7973100..d171d2289 100644 --- a/api/connect_intention.go +++ b/api/connect_intention.go @@ -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