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
c849c705
Commit
c849c705
authored
Mar 14, 2016
by
Matt Butcher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(test-style): fix formatting and comments
This fixes a number of formatting and style issues. Closes #370
parent
187f6e05
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
8 deletions
+9
-8
helm.go
cmd/helm/helm.go
+1
-0
main.go
cmd/resourcifier/main.go
+2
-3
client.go
pkg/client/client.go
+2
-2
registryprovider.go
pkg/registry/registryprovider.go
+3
-3
httputil.go
pkg/util/httputil.go
+1
-0
No files found.
cmd/helm/helm.go
View file @
c849c705
...
...
@@ -78,6 +78,7 @@ func run(c *cli.Context, f func(c *cli.Context) error) {
}
}
// NewClient creates a new client instance preconfigured for CLI usage.
func
NewClient
(
c
*
cli
.
Context
)
*
client
.
Client
{
host
:=
c
.
GlobalString
(
"host"
)
debug
:=
c
.
GlobalBool
(
"debug"
)
...
...
cmd/resourcifier/main.go
View file @
c849c705
...
...
@@ -17,9 +17,6 @@ limitations under the License.
package
main
import
(
"github.com/kubernetes/deployment-manager/pkg/util"
"github.com/kubernetes/deployment-manager/pkg/version"
"flag"
"fmt"
"log"
...
...
@@ -28,6 +25,8 @@ import (
"github.com/gorilla/handlers"
"github.com/gorilla/mux"
"github.com/kubernetes/deployment-manager/pkg/util"
"github.com/kubernetes/deployment-manager/pkg/version"
)
// Route defines a routing table entry to be registered with gorilla/mux.
...
...
pkg/client/client.go
View file @
c849c705
...
...
@@ -32,10 +32,10 @@ import (
"github.com/kubernetes/deployment-manager/pkg/common"
)
//
The default HTTP timeout
//
DefaultHTTPTimeout is the default HTTP timeout.
var
DefaultHTTPTimeout
=
time
.
Second
*
10
//
The default HTTP Protocol
//
DefaultHTTPProtocol is the default HTTP Protocol (http, https).
var
DefaultHTTPProtocol
=
"http"
// Client is a DM client.
...
...
pkg/registry/registryprovider.go
View file @
c849c705
...
...
@@ -280,13 +280,13 @@ func (gcsrp gcsRegistryProvider) createGCSClient(credentialName string) (*http.C
return
config
.
Client
(
oauth2
.
NoContext
),
nil
}
// RE for a registry type that does support versions and has collections.
//
TemplateRegistryMatcher is an
RE for a registry type that does support versions and has collections.
var
TemplateRegistryMatcher
=
regexp
.
MustCompile
(
"github.com/(.*)/(.*)/(.*)/(.*):(.*)"
)
// RE for a registry type that does not support versions and does not have collections.
//
PackageRegistryMatcher is an
RE for a registry type that does not support versions and does not have collections.
var
PackageRegistryMatcher
=
regexp
.
MustCompile
(
"github.com/(.*)/(.*)/(.*)"
)
// RE for GCS storage
//
GCSRegistryMatcher is an
RE for GCS storage
var
GCSRegistryMatcher
=
regexp
.
MustCompile
(
"gs://(.*)/(.*)"
)
// IsGithubShortType returns whether a given type is a type description in a short format to a github repository type.
...
...
pkg/util/httputil.go
View file @
c849c705
...
...
@@ -114,6 +114,7 @@ func TestHandlerWithURL(handler http.Handler, method, urlString string) (*httpte
return
NewHandlerTester
(
handler
)
.
TestWithURL
(
method
,
urlString
)
}
// LogHandlerText logs a line of text for a handler.
func
LogHandlerText
(
handler
string
,
v
string
)
{
log
.
Printf
(
"%s: %s
\n
"
,
handler
,
v
)
}
...
...
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