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
28d46246
Commit
28d46246
authored
Mar 21, 2016
by
Michelle Noorali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ref(*): fix comment style
parent
ee61c331
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
chart.go
pkg/chart/chart.go
+2
-1
types.go
pkg/repo/types.go
+2
-2
No files found.
pkg/chart/chart.go
View file @
28d46246
...
...
@@ -267,6 +267,7 @@ func Load(archive string) (*Chart, error) {
return
LoadDataFromReader
(
raw
)
}
// LoadDataFromReader loads a chart a reader
func
LoadDataFromReader
(
r
io
.
Reader
)
(
*
Chart
,
error
)
{
unzipped
,
err
:=
gzip
.
NewReader
(
r
)
if
err
!=
nil
{
...
...
@@ -397,7 +398,7 @@ func (c *Chart) loadDirectory(dir string) ([]*ChartMember, error) {
return
members
,
nil
}
//
path is from
the root of the chart.
//
LoadMember loads a chart member from a given path where path is
the root of the chart.
func
(
c
*
Chart
)
LoadMember
(
path
string
)
(
*
ChartMember
,
error
)
{
filename
:=
filepath
.
Join
(
c
.
loader
.
dir
(),
path
)
return
c
.
loadMember
(
filename
)
...
...
pkg/repo/types.go
View file @
28d46246
...
...
@@ -62,9 +62,9 @@ type RepoType string
type
RepoFormat
string
const
(
// PathRepo identfies a repository where charts are organized hierarchically.
// PathRepo
Format
identfies a repository where charts are organized hierarchically.
PathRepoFormat
=
RepoFormat
(
"path"
)
// FlatRepo identifies a repository where all charts appear at the top level.
// FlatRepo
Format
identifies a repository where all charts appear at the top level.
FlatRepoFormat
=
RepoFormat
(
"flat"
)
)
...
...
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