Skip to content

Commit

Permalink
moved to godep, replaced own api implemtation by go-ovirt
Browse files Browse the repository at this point in the history
  • Loading branch information
czerwonk committed Sep 28, 2017
1 parent ebe1bd6 commit 3edae84
Show file tree
Hide file tree
Showing 1,196 changed files with 557,833 additions and 630 deletions.
93 changes: 93 additions & 0 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@

# Gopkg.toml example
#
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
# name = "github.com/user/project"
# version = "1.0.0"
#
# [[constraint]]
# name = "github.com/user/project2"
# branch = "dev"
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"


[[constraint]]
name = "github.com/prometheus/client_golang"
version = "0.8.0"

[[constraint]]
branch = "master"
name = "github.com/prometheus/common"
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ go get -u github.com/czerwonk/ovirt_exporter
## Third Party Components
This software uses components of the following projects
* Prometheus Go client library (https://github.com/prometheus/client_golang)
* go-ovirt (https://github.com/imjoey/go-ovirt)

## License
(c) Daniel Czerwonk, 2017. Licensed under [MIT](LICENSE) license.
Expand Down
74 changes: 0 additions & 74 deletions api/api_client.go

This file was deleted.

7 changes: 0 additions & 7 deletions cluster/cluster.go

This file was deleted.

44 changes: 0 additions & 44 deletions cluster/cluster_retriever.go

This file was deleted.

17 changes: 17 additions & 0 deletions cluster/helper.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package cluster

import (
"github.com/imjoey/go-ovirt"
"github.com/prometheus/common/log"
)

func Follow(cl *ovirtsdk4.Cluster, conn *ovirtsdk4.Connection) (*ovirtsdk4.Cluster, error) {
x, err := conn.FollowLink(cl)
if err != nil {
log.Error(err)
return nil, err
}

cl = x.(*ovirtsdk4.Cluster)
return cl, nil
}
8 changes: 0 additions & 8 deletions datacenter/datacenter.go

This file was deleted.

44 changes: 0 additions & 44 deletions datacenter/datacenter_retriever.go

This file was deleted.

17 changes: 17 additions & 0 deletions datacenter/helper.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package datacenter

import (
"github.com/imjoey/go-ovirt"
"github.com/prometheus/common/log"
)

func Follow(d *ovirtsdk4.DataCenter, conn *ovirtsdk4.Connection) (*ovirtsdk4.DataCenter, error) {
x, err := conn.FollowLink(d)
if err != nil {
log.Error(err)
return nil, err
}

d = x.(*ovirtsdk4.DataCenter)
return d, nil
}
17 changes: 17 additions & 0 deletions host/helper.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package host

import (
"github.com/imjoey/go-ovirt"
"github.com/prometheus/common/log"
)

func Follow(h *ovirtsdk4.Host, conn *ovirtsdk4.Connection) (*ovirtsdk4.Host, error) {
x, err := conn.FollowLink(h)
if err != nil {
log.Error(err)
return nil, err
}

h = x.(*ovirtsdk4.Host)
return h, nil
}
23 changes: 0 additions & 23 deletions host/host.go

This file was deleted.

Loading

0 comments on commit 3edae84

Please sign in to comment.