This is an automated email from the ASF dual-hosted git repository. dubeejw pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-client-go.git
The following commit(s) were added to refs/heads/master by this push: new 2ea476e Replace trigger service type with interface (#99) 2ea476e is described below commit 2ea476ee7b4a28d96b51fe6ac3488f06adbcaf6e Author: Vadim Raskin <raskinva...@gmail.com> AuthorDate: Fri Aug 10 05:32:28 2018 +0200 Replace trigger service type with interface (#99) --- whisk/client.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/whisk/client.go b/whisk/client.go index d6f2597..c1b3630 100644 --- a/whisk/client.go +++ b/whisk/client.go @@ -58,13 +58,21 @@ type ClientInterface interface { Do(req *http.Request, v interface{}, ExitWithErrorOnTimeout bool, secretToObfuscate ...ObfuscateSet) (*http.Response, error) } +type TriggerServiceInterface interface { + List(options *TriggerListOptions) ([]Trigger, *http.Response, error) + Insert(trigger *Trigger, overwrite bool) (*Trigger, *http.Response, error) + Get(triggerName string) (*Trigger, *http.Response, error) + Delete(triggerName string) (*Trigger, *http.Response, error) + Fire(triggerName string, payload interface{}) (*Trigger, *http.Response, error) +} + type Client struct { client *http.Client *Config Transport *http.Transport Sdks *SdkService - Triggers *TriggerService + Triggers TriggerServiceInterface Actions *ActionService Rules *RuleService Activations *ActivationService