Refactor kubewatcher/webhook publisher

Create a Publisher interface. Refactor webhook publisher to satisfy
that interface.

Add some limited retries to webhook publisher.
This commit is contained in:
Soam Vasani
2016-12-19 14:38:44 -08:00
parent dddb50c00f
commit 0456df0d63
7 changed files with 181 additions and 115 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ type (
Function Metadata `json:"function"`
Url string `json:"url"` // POST request made to this URL.
Target string `json:"target"` // Watch publish target (URL, NATS stream, etc)
}
// Errors returned by the Fission API.