Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
e07863e2
Commit
e07863e2
authored
Oct 24, 2016
by
Humble Chirammal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update heketi dependency to release3.
commit hash#28b5cc4cc6d2b9bdfa91ed1b93efaab4931aa697 Signed-off-by:
Humble Chirammal
<
hchiramm@redhat.com
>
parent
33ebe1f1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
8 deletions
+18
-8
Godeps.json
Godeps/Godeps.json
+3
-6
types.go
vendor/github.com/heketi/heketi/pkg/glusterfs/api/types.go
+1
-0
bodystring.go
vendor/github.com/heketi/heketi/pkg/utils/bodystring.go
+2
-1
log.go
vendor/github.com/heketi/heketi/pkg/utils/log.go
+12
-1
No files found.
Godeps/Godeps.json
View file @
e07863e2
...
...
@@ -1418,18 +1418,15 @@
},
{
"ImportPath"
:
"github.com/heketi/heketi/client/api/go-client"
,
"Comment"
:
"v2.1.0-dev-2-gcb07059"
,
"Rev"
:
"cb07059aed8760ef857a58d37598b9e51c36a9ae"
"Rev"
:
"28b5cc4cc6d2b9bdfa91ed1b93efaab4931aa697"
},
{
"ImportPath"
:
"github.com/heketi/heketi/pkg/glusterfs/api"
,
"Comment"
:
"v2.1.0-dev-2-gcb07059"
,
"Rev"
:
"cb07059aed8760ef857a58d37598b9e51c36a9ae"
"Rev"
:
"28b5cc4cc6d2b9bdfa91ed1b93efaab4931aa697"
},
{
"ImportPath"
:
"github.com/heketi/heketi/pkg/utils"
,
"Comment"
:
"v2.1.0-dev-2-gcb07059"
,
"Rev"
:
"cb07059aed8760ef857a58d37598b9e51c36a9ae"
"Rev"
:
"28b5cc4cc6d2b9bdfa91ed1b93efaab4931aa697"
},
{
"ImportPath"
:
"github.com/howeyc/gopass"
,
...
...
vendor/github.com/heketi/heketi/pkg/glusterfs/api/types.go
View file @
e07863e2
...
...
@@ -155,6 +155,7 @@ type VolumeCreateRequest struct {
Clusters
[]
string
`json:"clusters,omitempty"`
Name
string
`json:"name"`
Durability
VolumeDurabilityInfo
`json:"durability,omitempty"`
Gid
int64
`json:"gid,omitempty"`
Snapshot
struct
{
Enable
bool
`json:"enable"`
Factor
float32
`json:"factor"`
...
...
vendor/github.com/heketi/heketi/pkg/utils/bodystring.go
View file @
e07863e2
...
...
@@ -21,6 +21,7 @@ import (
"io"
"io/ioutil"
"net/http"
"strings"
)
// Return the body from a response as a string
...
...
@@ -39,5 +40,5 @@ func GetErrorFromResponse(r *http.Response) error {
if
err
!=
nil
{
return
err
}
return
errors
.
New
(
s
)
return
errors
.
New
(
s
trings
.
TrimSpace
(
s
)
)
}
vendor/github.com/heketi/heketi/pkg/utils/log.go
View file @
e07863e2
...
...
@@ -114,10 +114,12 @@ func (l *Logger) Critical(format string, v ...interface{}) {
}
// Log error string
func
(
l
*
Logger
)
LogError
(
format
string
,
v
...
interface
{})
{
func
(
l
*
Logger
)
LogError
(
format
string
,
v
...
interface
{})
error
{
if
l
.
level
>=
LEVEL_ERROR
{
logWithLongFile
(
l
.
errorlog
,
format
,
v
...
)
}
return
fmt
.
Errorf
(
format
,
v
...
)
}
// Log error variable
...
...
@@ -136,6 +138,15 @@ func (l *Logger) Warning(format string, v ...interface{}) {
}
}
// Log error variable as a warning
func
(
l
*
Logger
)
WarnErr
(
err
error
)
error
{
if
l
.
level
>=
LEVEL_WARNING
{
logWithLongFile
(
l
.
warninglog
,
"%v"
,
err
)
}
return
err
}
// Log string
func
(
l
*
Logger
)
Info
(
format
string
,
v
...
interface
{})
{
if
l
.
level
>=
LEVEL_INFO
{
...
...
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