style(httpbackoff -> pkg): Adjusts package name to follow convention

This commit is contained in:
Camilo Aguilar
2014-05-22 14:37:19 -04:00
parent 2cedebb4eb
commit 8ca3c2ed1f
9 changed files with 24 additions and 22 deletions

View File

@@ -1,6 +1,6 @@
package datasource
import "github.com/coreos/coreos-cloudinit/httpbackoff"
import "github.com/coreos/coreos-cloudinit/pkg"
type metadataService struct {
url string
@@ -11,7 +11,7 @@ func NewMetadataService(url string) *metadataService {
}
func (ms *metadataService) Fetch() ([]byte, error) {
client := httpbackoff.NewHttpClient()
client := pkg.NewHttpClient()
return client.Get(ms.url)
}

View File

@@ -6,7 +6,7 @@ import (
"log"
"strings"
"github.com/coreos/coreos-cloudinit/httpbackoff"
"github.com/coreos/coreos-cloudinit/pkg"
)
const (
@@ -31,7 +31,7 @@ func (self *procCmdline) Fetch() ([]byte, error) {
return nil, err
}
client := httpbackoff.NewHttpClient()
client := pkg.NewHttpClient()
cfg, err := client.Get(url)
if err != nil {
return nil, err