Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
1eb4cf41
Commit
1eb4cf41
authored
Mar 30, 2016
by
Michelle Noorali
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #492 from michelleN/fix-style
chore(client): fix style errors
parents
6ec1c9e3
dbbb4933
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
11 deletions
+12
-11
client.go
pkg/client/client.go
+11
-10
deployments.go
pkg/client/deployments.go
+1
-1
No files found.
pkg/client/client.go
View file @
1eb4cf41
...
...
@@ -226,27 +226,28 @@ func (r *Response) HTTPError() error {
defer
r
.
Body
.
Close
()
body
,
err
:=
ioutil
.
ReadAll
(
r
.
Body
)
if
err
!=
nil
{
return
err
}
if
contentType
==
"application/json"
{
httpErr
:=
httputil
.
Error
{}
json
.
Unmarshal
(
body
,
&
httpErr
)
return
&
HTTPError
{
StatusCode
:
r
.
StatusCode
,
Message
:
httpErr
.
Msg
,
URL
:
r
.
Request
.
URL
,
}
}
else
{
if
err
!=
nil
{
if
err
:=
json
.
Unmarshal
(
body
,
&
httpErr
);
err
!=
nil
{
return
err
}
return
&
HTTPError
{
StatusCode
:
r
.
StatusCode
,
Message
:
string
(
body
)
,
Message
:
httpErr
.
Msg
,
URL
:
r
.
Request
.
URL
,
}
}
return
nil
return
&
HTTPError
{
StatusCode
:
r
.
StatusCode
,
Message
:
string
(
body
),
URL
:
r
.
Request
.
URL
,
}
}
// HTTPError is an error caused by an unexpected HTTP status code.
...
...
pkg/client/deployments.go
View file @
1eb4cf41
...
...
@@ -100,7 +100,7 @@ func (c *Client) DeleteDeployment(name string) (*common.Deployment, error) {
return
deployment
,
err
}
// DescribDeployment describes the kubernetes resources of the supplied deployment
// Describ
e
Deployment describes the kubernetes resources of the supplied deployment
func
(
c
*
Client
)
DescribeDeployment
(
name
string
)
(
*
common
.
Deployment
,
error
)
{
var
deployment
*
common
.
Deployment
//TODO: implement
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment