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
30e75be5
Commit
30e75be5
authored
Feb 22, 2016
by
goltermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update flocker-go godep to pick up new LICENSE file.
parent
699c80b7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
3 deletions
+4
-3
Godeps.json
Godeps/Godeps.json
+1
-1
LICENSES.md
Godeps/LICENSES.md
+1
-1
LICENSE
...ps/_workspace/src/github.com/ClusterHQ/flocker-go/LICENSE
+0
-0
client.go
.../_workspace/src/github.com/ClusterHQ/flocker-go/client.go
+2
-1
No files found.
Godeps/Godeps.json
View file @
30e75be5
...
...
@@ -16,7 +16,7 @@
},
{
"ImportPath"
:
"github.com/ClusterHQ/flocker-go"
,
"Rev"
:
"
3f33ece70f6571f0ec45bfae2f243ab11fab6c52
"
"Rev"
:
"
1c0a791b33bdc01d062b376612aa04e27eed7eb3
"
},
{
"ImportPath"
:
"github.com/Sirupsen/logrus"
,
...
...
Godeps/LICENSES.md
View file @
30e75be5
...
...
@@ -14,7 +14,7 @@ github.com/beorn7/perks/quantile | MIT?
github.com/blang/semver | MITname
github.com/boltdb/bolt | MITname
github.com/camlistore/go4 | Apache-2
github.com/ClusterHQ/flocker-go |
UNKNOWN
github.com/ClusterHQ/flocker-go |
Apache-2
github.com/codegangsta/negroni | MITname
github.com/coreos/etcd | Apache-2
github.com/coreos/go-etcd | Apache-2
...
...
Godeps/_workspace/src/github.com/ClusterHQ/flocker-go/LICENSE
0 → 100644
View file @
30e75be5
This diff is collapsed.
Click to expand it.
Godeps/_workspace/src/github.com/ClusterHQ/flocker-go/client.go
View file @
30e75be5
...
...
@@ -121,6 +121,7 @@ func (c Client) getURL(path string) string {
}
type
configurationPayload
struct
{
Deleted
bool
`json:"deleted"`
Primary
string
`json:"primary"`
DatasetID
string
`json:"dataset_id,omitempty"`
MaximumSize
json
.
Number
`json:"maximum_size,omitempty"`
...
...
@@ -313,7 +314,7 @@ func (c Client) GetDatasetID(metaName string) (datasetID string, err error) {
var
configurations
[]
configurationPayload
if
err
=
json
.
NewDecoder
(
resp
.
Body
)
.
Decode
(
&
configurations
);
err
==
nil
{
for
_
,
c
:=
range
configurations
{
if
c
.
Metadata
.
Name
==
metaName
{
if
c
.
Metadata
.
Name
==
metaName
&&
c
.
Deleted
==
false
{
return
c
.
DatasetID
,
nil
}
}
...
...
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