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 ba3bbee Remove client code that will be removed from the API. (#58) ba3bbee is described below commit ba3bbee442357a239667ef6de378d5b7d33e0ceb Author: rodric rabbah <rod...@gmail.com> AuthorDate: Wed Jan 10 20:03:24 2018 -0500 Remove client code that will be removed from the API. (#58) --- whisk/namespace.go | 38 -------------------------------------- 1 file changed, 38 deletions(-) diff --git a/whisk/namespace.go b/whisk/namespace.go index 0fc2403..03b77c0 100644 --- a/whisk/namespace.go +++ b/whisk/namespace.go @@ -27,14 +27,6 @@ import ( type Namespace struct { Name string `json:"name"` - Contents `json:"contents,omitempty"` -} - -type Contents struct { - Actions []Action `json:"actions"` - Packages []Package `json:"packages"` - Triggers []Trigger `json:"triggers"` - Rules []Rule `json:"rules"` } type NamespaceService struct { @@ -102,33 +94,3 @@ func (s *NamespaceService) List() ([]Namespace, *http.Response, error) { Debug(DbgInfo, "Returning []namespaces: %#v\n", namespaces) return namespaces, resp, nil } - -func (s *NamespaceService) Get(namespace string) (*Namespace, *http.Response, error) { - - if len(namespace) == 0 { - namespace = s.client.Config.Namespace - } - - s.client.Namespace = namespace - resNamespace := &Namespace{ - Name: namespace, - } - - req, err := s.client.NewRequest("GET", "", nil, IncludeNamespaceInUrl) - if err != nil { - Debug(DbgError, "s.client.NewRequest(GET) error: %s\n", err) - errStr := wski18n.T("Unable to create HTTP request for GET: {{.err}}", map[string]interface{}{"err": err}) - werr := MakeWskErrorFromWskError(errors.New(errStr), err, EXIT_CODE_ERR_GENERAL, DISPLAY_MSG, NO_DISPLAY_USAGE) - return resNamespace, nil, werr - } - - resp, err := s.client.Do(req, &resNamespace.Contents, ExitWithSuccessOnTimeout) - if err != nil { - Debug(DbgError, "s.client.Do() error - HTTP req %s; error '%s'\n", req.URL.String(), err) - return resNamespace, resp, err - } - - Debug(DbgInfo, "Returning namespace: %#v\n", resNamespace) - - return resNamespace, resp, nil -} -- To stop receiving notification emails like this one, please contact ['"commits@openwhisk.apache.org" <commits@openwhisk.apache.org>'].