You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by da...@apache.org on 2017/01/24 20:56:14 UTC

[03/13] incubator-trafficcontrol git commit: Replaced vendored traffic_ops with a symlink.

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/283d0dbf/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/cachegroup.go
----------------------------------------------------------------------
diff --git a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/cachegroup.go b/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/cachegroup.go
deleted file mode 100644
index bb21b72..0000000
--- a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/cachegroup.go
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
-
-   Licensed under the Apache License, Version 2.0 (the "License");
-   you may not use this file except in compliance with the License.
-   You may obtain a copy of the License at
-
-   http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-*/
-
-package client
-
-import "encoding/json"
-
-// CacheGroupResponse ...
-type CacheGroupResponse struct {
-	Response []CacheGroup `json:"response"`
-}
-
-// CacheGroup contains information about a given Cachegroup in Traffic Ops.
-type CacheGroup struct {
-	Name        string  `json:"name"`
-	ShortName   string  `json:"shortName"`
-	Latitude    float64 `json:"latitude"`
-	Longitude   float64 `json:"longitude"`
-	ParentName  string  `json:"parentCachegroupName,omitempty"`
-	Type        string  `json:"typeName,omitempty"`
-	LastUpdated string  `json:"lastUpdated,omitempty"`
-}
-
-// CacheGroups gets the CacheGroups in an array of CacheGroup structs
-// (note CacheGroup used to be called location)
-func (to *Session) CacheGroups() ([]CacheGroup, error) {
-	url := "/api/1.2/cachegroups.json"
-	resp, err := to.request("GET", url, nil)
-	if err != nil {
-		return nil, err
-	}
-	defer resp.Body.Close()
-
-	var data CacheGroupResponse
-	if err := json.NewDecoder(resp.Body).Decode(&data); err != nil {
-		return nil, err
-	}
-
-	return data.Response, nil
-}

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/283d0dbf/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/cdn.go
----------------------------------------------------------------------
diff --git a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/cdn.go b/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/cdn.go
deleted file mode 100644
index 187a190..0000000
--- a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/cdn.go
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
-
-   Licensed under the Apache License, Version 2.0 (the "License");
-   you may not use this file except in compliance with the License.
-   You may obtain a copy of the License at
-
-   http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-*/
-
-package client
-
-import (
-	"encoding/json"
-	"fmt"
-)
-
-// CDNResponse ...
-type CDNResponse struct {
-	Response []CDN `json:"response"`
-}
-
-// CDN ...
-type CDN struct {
-	ID          int    `json:"id"`
-	Name        string `json:"name"`
-	LastUpdated string `json:"lastUpdated"`
-}
-
-// CDNs gets an array of CDNs
-func (to *Session) CDNs() ([]CDN, error) {
-	url := "/api/1.2/cdns.json"
-	resp, err := to.request("GET", url, nil)
-	if err != nil {
-		return nil, err
-	}
-	defer resp.Body.Close()
-
-	var data CDNResponse
-	if err := json.NewDecoder(resp.Body).Decode(&data); err != nil {
-		return nil, err
-	}
-	return data.Response, nil
-}
-
-// CDNName gets an array of CDNs
-func (to *Session) CDNName(name string) ([]CDN, error) {
-	url := fmt.Sprintf("/api/1.2/cdns/name/%s.json", name)
-	resp, err := to.request("GET", url, nil)
-	if err != nil {
-		return nil, err
-	}
-	defer resp.Body.Close()
-
-	var data CDNResponse
-	if err := json.NewDecoder(resp.Body).Decode(&data); err != nil {
-		return nil, err
-	}
-
-	return data.Response, nil
-}

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/283d0dbf/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/crconfig.go
----------------------------------------------------------------------
diff --git a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/crconfig.go b/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/crconfig.go
deleted file mode 100644
index 56b079e..0000000
--- a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/crconfig.go
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
-
-   Licensed under the Apache License, Version 2.0 (the "License");
-   you may not use this file except in compliance with the License.
-   You may obtain a copy of the License at
-
-   http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-*/
-
-package client
-
-import "fmt"
-
-// CRConfigRaw Deprecated: use GetCRConfig instead
-func (to *Session) CRConfigRaw(cdn string) ([]byte, error) {
-	bytes, _, err := to.GetCRConfig(cdn)
-	return bytes, err
-}
-
-// GetCRConfig returns the raw JSON bytes of the CRConfig from Traffic Ops, and whether the bytes were from the client's internal cache.
-func (to *Session) GetCRConfig(cdn string) ([]byte, CacheHitStatus, error) {
-	url := fmt.Sprintf("/CRConfig-Snapshots/%s/CRConfig.json", cdn)
-	return to.getBytesWithTTL(url, tmPollingInterval)
-}

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/283d0dbf/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/delivery_service.go
----------------------------------------------------------------------
diff --git a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/delivery_service.go b/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/delivery_service.go
deleted file mode 100644
index db21b17..0000000
--- a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/delivery_service.go
+++ /dev/null
@@ -1,189 +0,0 @@
-/*
-
-   Licensed under the Apache License, Version 2.0 (the "License");
-   you may not use this file except in compliance with the License.
-   You may obtain a copy of the License at
-
-   http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-*/
-
-package client
-
-import "encoding/json"
-
-// DeliveryServices gets an array of DeliveryServices
-func (to *Session) DeliveryServices() ([]DeliveryService, error) {
-	var data GetDeliveryServiceResponse
-	err := get(to, deliveryServicesEp(), &data)
-	if err != nil {
-		return nil, err
-	}
-
-	return data.Response, nil
-}
-
-// DeliveryService gets the DeliveryService for the ID it's passed
-func (to *Session) DeliveryService(id string) (*DeliveryService, error) {
-	var data GetDeliveryServiceResponse
-	err := get(to, deliveryServiceEp(id), &data)
-	if err != nil {
-		return nil, err
-	}
-
-	return &data.Response[0], nil
-}
-
-// CreateDeliveryService creates the DeliveryService it's passed
-func (to *Session) CreateDeliveryService(ds *DeliveryService) (*CreateDeliveryServiceResponse, error) {
-	var data CreateDeliveryServiceResponse
-	jsonReq, err := json.Marshal(ds)
-	if err != nil {
-		return nil, err
-	}
-	err = post(to, deliveryServicesEp(), jsonReq, &data)
-	if err != nil {
-		return nil, err
-	}
-
-	return &data, nil
-}
-
-// UpdateDeliveryService updates the DeliveryService matching the ID it's passed with
-// the DeliveryService it is passed
-func (to *Session) UpdateDeliveryService(id string, ds *DeliveryService) (*UpdateDeliveryServiceResponse, error) {
-	var data UpdateDeliveryServiceResponse
-	jsonReq, err := json.Marshal(ds)
-	if err != nil {
-		return nil, err
-	}
-	err = put(to, deliveryServiceEp(id), jsonReq, &data)
-	if err != nil {
-		return nil, err
-	}
-
-	return &data, nil
-}
-
-// DeleteDeliveryService deletes the DeliveryService matching the ID it's passed
-func (to *Session) DeleteDeliveryService(id string) (*DeleteDeliveryServiceResponse, error) {
-	var data DeleteDeliveryServiceResponse
-	err := del(to, deliveryServiceEp(id), &data)
-	if err != nil {
-		return nil, err
-	}
-
-	return &data, nil
-}
-
-// DeliveryServiceState gets the DeliveryServiceState for the ID it's passed
-func (to *Session) DeliveryServiceState(id string) (*DeliveryServiceState, error) {
-	var data DeliveryServiceStateResponse
-	err := get(to, deliveryServiceStateEp(id), &data)
-	if err != nil {
-		return nil, err
-	}
-
-	return &data.Response, nil
-}
-
-// DeliveryServiceHealth gets the DeliveryServiceHealth for the ID it's passed
-func (to *Session) DeliveryServiceHealth(id string) (*DeliveryServiceHealth, error) {
-	var data DeliveryServiceHealthResponse
-	err := get(to, deliveryServiceHealthEp(id), &data)
-	if err != nil {
-		return nil, err
-	}
-
-	return &data.Response, nil
-}
-
-// DeliveryServiceCapacity gets the DeliveryServiceCapacity for the ID it's passed
-func (to *Session) DeliveryServiceCapacity(id string) (*DeliveryServiceCapacity, error) {
-	var data DeliveryServiceCapacityResponse
-	err := get(to, deliveryServiceCapacityEp(id), &data)
-	if err != nil {
-		return nil, err
-	}
-
-	return &data.Response, nil
-}
-
-// DeliveryServiceRouting gets the DeliveryServiceRouting for the ID it's passed
-func (to *Session) DeliveryServiceRouting(id string) (*DeliveryServiceRouting, error) {
-	var data DeliveryServiceRoutingResponse
-	err := get(to, deliveryServiceRoutingEp(id), &data)
-	if err != nil {
-		return nil, err
-	}
-
-	return &data.Response, nil
-}
-
-// DeliveryServiceServer gets the DeliveryServiceServer
-func (to *Session) DeliveryServiceServer(page, limit string) ([]DeliveryServiceServer, error) {
-	var data DeliveryServiceServerResponse
-	err := get(to, deliveryServiceServerEp(page, limit), &data)
-	if err != nil {
-		return nil, err
-	}
-
-	return data.Response, nil
-}
-
-// DeliveryServiceSSLKeysByID gets the DeliveryServiceSSLKeys by ID
-func (to *Session) DeliveryServiceSSLKeysByID(id string) (*DeliveryServiceSSLKeys, error) {
-	var data DeliveryServiceSSLKeysResponse
-	err := get(to, deliveryServiceSSLKeysByIDEp(id), &data)
-	if err != nil {
-		return nil, err
-	}
-
-	return &data.Response, nil
-}
-
-// DeliveryServiceSSLKeysByHostname gets the DeliveryServiceSSLKeys by Hostname
-func (to *Session) DeliveryServiceSSLKeysByHostname(hostname string) (*DeliveryServiceSSLKeys, error) {
-	var data DeliveryServiceSSLKeysResponse
-	err := get(to, deliveryServiceSSLKeysByHostnameEp(hostname), &data)
-	if err != nil {
-		return nil, err
-	}
-
-	return &data.Response, nil
-}
-
-func get(to *Session, endpoint string, respStruct interface{}) error {
-	return makeReq(to, "GET", endpoint, nil, respStruct)
-}
-
-func post(to *Session, endpoint string, body []byte, respStruct interface{}) error {
-	return makeReq(to, "POST", endpoint, body, respStruct)
-}
-
-func put(to *Session, endpoint string, body []byte, respStruct interface{}) error {
-	return makeReq(to, "PUT", endpoint, body, respStruct)
-}
-
-func del(to *Session, endpoint string, respStruct interface{}) error {
-	return makeReq(to, "DELETE", endpoint, nil, respStruct)
-}
-
-func makeReq(to *Session, method, endpoint string, body []byte, respStruct interface{}) error {
-	resp, err := to.request(method, endpoint, body)
-	if err != nil {
-		return err
-	}
-	defer resp.Body.Close()
-
-	if err := json.NewDecoder(resp.Body).Decode(respStruct); err != nil {
-		return err
-	}
-
-	return nil
-}

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/283d0dbf/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/delivery_service_endpoints.go
----------------------------------------------------------------------
diff --git a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/delivery_service_endpoints.go b/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/delivery_service_endpoints.go
deleted file mode 100644
index d07171f..0000000
--- a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/delivery_service_endpoints.go
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
-
-   Licensed under the Apache License, Version 2.0 (the "License");
-   you may not use this file except in compliance with the License.
-   You may obtain a copy of the License at
-
-   http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-*/
-
-package client
-
-const apiBase = "/api/1.2"
-const dsPath = "/deliveryservices"
-
-func deliveryServicesEp() string {
-	return apiBase + dsPath + ".json"
-}
-
-func deliveryServiceBaseEp(id string) string {
-	return apiBase + dsPath + "/" + id
-}
-
-func deliveryServiceEp(id string) string {
-	return deliveryServiceBaseEp(id) + ".json"
-}
-
-func deliveryServiceStateEp(id string) string {
-	return deliveryServiceBaseEp(id) + "/state.json"
-}
-
-func deliveryServiceHealthEp(id string) string {
-	return deliveryServiceBaseEp(id) + "/health.json"
-}
-
-func deliveryServiceCapacityEp(id string) string {
-	return deliveryServiceBaseEp(id) + "/capacity.json"
-}
-
-func deliveryServiceRoutingEp(id string) string {
-	return deliveryServiceBaseEp(id) + "/routing.json"
-}
-
-func deliveryServiceServerEp(page, limit string) string {
-	return apiBase + "/deliveryserviceserver.json?page=" + page + "&limit=" + limit
-}
-
-func deliveryServiceSSLKeysByIDEp(id string) string {
-	return apiBase + dsPath + "/xmlId/" + id + "/sslkeys.json"
-}
-
-func deliveryServiceSSLKeysByHostnameEp(hostname string) string {
-	return apiBase + dsPath + "/hostname/" + hostname + "/sslkeys.json"
-}

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/283d0dbf/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/delivery_service_resources.go
----------------------------------------------------------------------
diff --git a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/delivery_service_resources.go b/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/delivery_service_resources.go
deleted file mode 100644
index 26d64d8..0000000
--- a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/delivery_service_resources.go
+++ /dev/null
@@ -1,227 +0,0 @@
-/*
-   Copyright 2015 Comcast Cable Communications Management, LLC
-
-   Licensed under the Apache License, Version 2.0 (the "License");
-   you may not use this file except in compliance with the License.
-   You may obtain a copy of the License at
-
-   http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-*/
-
-package client
-
-// GetDeliveryServiceResponse ...
-type GetDeliveryServiceResponse struct {
-	Response []DeliveryService `json:"response"`
-}
-
-// CreateDeliveryServiceResponse ...
-type CreateDeliveryServiceResponse struct {
-	Response []DeliveryService      `json:"response"`
-	Alerts   []DeliveryServiceAlert `json:"alerts"`
-}
-
-// UpdateDeliveryServiceResponse ...
-type UpdateDeliveryServiceResponse struct {
-	Response []DeliveryService      `json:"response"`
-	Alerts   []DeliveryServiceAlert `json:"alerts"`
-}
-
-// DeliveryServiceResponse ...
-type DeliveryServiceResponse struct {
-	Response DeliveryService        `json:"response"`
-	Alerts   []DeliveryServiceAlert `json:"alerts"`
-}
-
-// DeleteDeliveryServiceResponse ...
-type DeleteDeliveryServiceResponse struct {
-	Alerts []DeliveryServiceAlert `json:"alerts"`
-}
-
-// DeliveryService ...
-type DeliveryService struct {
-	ID                   int                    `json:"id"`
-	XMLID                string                 `json:"xmlId"`
-	Active               bool                   `json:"active"`
-	DSCP                 int                    `json:"dscp"`
-	Signed               bool                   `json:"signed"`
-	QStringIgnore        int                    `json:"qstringIgnore"`
-	GeoLimit             int                    `json:"geoLimit"`
-	GeoProvider          int                    `json:"geoProvider"`
-	HTTPBypassFQDN       string                 `json:"httpBypassFqdn"`
-	DNSBypassIP          string                 `json:"dnsBypassIp"`
-	DNSBypassIP6         string                 `json:"dnsBypassIp6"`
-	DNSBypassCname       string                 `json:"dnsBypassCname"`
-	DNSBypassTTL         int                    `json:"dnsBypassTtl"`
-	OrgServerFQDN        string                 `json:"orgServerFqdn"`
-	TypeID               int                    `json:"typeId"`
-	Type                 string                 `json:"type"`
-	ProfileID            int                    `json:"profileId"`
-	ProfileName          string                 `json:"profileName"`
-	ProfileDesc          string                 `json:"profileDescription"`
-	CDNName              string                 `json:"cdnName"`
-	CDNID                int                    `json:"cdnId"`
-	CCRDNSTTL            int                    `json:"ccrDnsTtl"`
-	GlobalMaxMBPS        int                    `json:"globalMaxMbps"`
-	GlobalMaxTPS         int                    `json:"globalMaxTps"`
-	LongDesc             string                 `json:"longDesc"`
-	LongDesc1            string                 `json:"longDesc1"`
-	LongDesc2            string                 `json:"longDesc2"`
-	MaxDNSAnswers        int                    `json:"maxDnsAnswers"`
-	InfoURL              string                 `json:"infoUrl"`
-	MissLat              float64                `json:"missLat"`
-	MissLong             float64                `json:"missLong"`
-	CheckPath            string                 `json:"checkPath"`
-	LastUpdated          string                 `json:"lastUpdated"`
-	Protocol             int                    `json:"protocol"`
-	IPV6RoutingEnabled   bool                   `json:"ipv6RoutingEnabled"`
-	RangeRequestHandling int                    `json:"rangeRequestHandling"`
-	EdgeHeaderRewrite    string                 `json:"edgeHeaderRewrite"`
-	MidHeaderRewrite     string                 `json:"midHeaderRewrite"`
-	TRResponseHeaders    string                 `json:"trResponseHeaders"`
-	RegexRemap           string                 `json:"regexRemap"`
-	CacheURL             string                 `json:"cacheurl"`
-	RemapText            string                 `json:"remapText"`
-	MultiSiteOrigin      bool                   `json:"multiSiteOrigin"`
-	DisplayName          string                 `json:"displayName"`
-	InitialDispersion    int                    `json:"initialDispersion"`
-	MatchList            []DeliveryServiceMatch `json:"matchList,omitempty"`
-	RegionalGeoBlocking  bool                   `json:"regionalGeoBlocking"`
-	LogsEnabled          bool                   `json:"logsEnabled"`
-	ExampleURLs          []string               `json:"exampleURLs"`
-}
-
-// DeliveryServiceMatch ...
-type DeliveryServiceMatch struct {
-	Type      string `json:"type"`
-	SetNumber string `json:"setNumber"`
-	Pattern   string `json:"pattern"`
-}
-
-// DeliveryServiceAlert ...
-type DeliveryServiceAlert struct {
-	Level string `json:"level"`
-	Text  string `json:"text"`
-}
-
-// DeliveryServiceStateResponse ...
-type DeliveryServiceStateResponse struct {
-	Response DeliveryServiceState `json:"response"`
-}
-
-// DeliveryServiceState ...
-type DeliveryServiceState struct {
-	Enabled  bool                    `json:"enabled"`
-	Failover DeliveryServiceFailover `json:"failover"`
-}
-
-// DeliveryServiceFailover ...
-type DeliveryServiceFailover struct {
-	Locations   []string                   `json:"locations"`
-	Destination DeliveryServiceDestination `json:"destination"`
-	Configured  bool                       `json:"configured"`
-	Enabled     bool                       `json:"enabled"`
-}
-
-// DeliveryServiceDestination ...
-type DeliveryServiceDestination struct {
-	Location string `json:"location"`
-	Type     string `json:"type"`
-}
-
-// DeliveryServiceHealthResponse ...
-type DeliveryServiceHealthResponse struct {
-	Response DeliveryServiceHealth `json:"response"`
-}
-
-// DeliveryServiceHealth ...
-type DeliveryServiceHealth struct {
-	TotalOnline  int                         `json:"totalOnline"`
-	TotalOffline int                         `json:"totalOffline"`
-	CacheGroups  []DeliveryServiceCacheGroup `json:"cacheGroups"`
-}
-
-// DeliveryServiceCacheGroup ...
-type DeliveryServiceCacheGroup struct {
-	Online  int    `json:"online"`
-	Offline int    `json:"offline"`
-	Name    string `json:"name"`
-}
-
-// DeliveryServiceCapacityResponse ...
-type DeliveryServiceCapacityResponse struct {
-	Response DeliveryServiceCapacity `json:"response"`
-}
-
-// DeliveryServiceCapacity ...
-type DeliveryServiceCapacity struct {
-	AvailablePercent   float64 `json:"availablePercent"`
-	UnavailablePercent float64 `json:"unavailablePercent"`
-	UtilizedPercent    float64 `json:"utilizedPercent"`
-	MaintenancePercent float64 `json:"maintenancePercent"`
-}
-
-// DeliveryServiceRoutingResponse ...
-type DeliveryServiceRoutingResponse struct {
-	Response DeliveryServiceRouting `json:"response"`
-}
-
-// DeliveryServiceRouting ...
-type DeliveryServiceRouting struct {
-	StaticRoute       int     `json:"staticRoute"`
-	Miss              int     `json:"miss"`
-	Geo               float64 `json:"geo"`
-	Err               int     `json:"err"`
-	CZ                float64 `json:"cz"`
-	DSR               float64 `json:"dsr"`
-	Fed               int     `json:"fed"`
-	RegionalAlternate int     `json:"regionalAlternate"`
-	RegionalDenied    int     `json:"regionalDenied"`
-}
-
-// DeliveryServiceServerResponse ...
-type DeliveryServiceServerResponse struct {
-	Response []DeliveryServiceServer `json:"response"`
-	Size     int                     `json:"size"`
-	OrderBy  string                  `json:"orderby"`
-	Limit    int                     `json:"limit"`
-}
-
-// DeliveryServiceServer ...
-type DeliveryServiceServer struct {
-	LastUpdated     string `json:"lastUpdated"`
-	Server          int    `json:"server"`
-	DeliveryService int    `json:"deliveryService"`
-}
-
-// DeliveryServiceSSLKeysResponse ...
-type DeliveryServiceSSLKeysResponse struct {
-	Response DeliveryServiceSSLKeys `json:"response"`
-}
-
-// DeliveryServiceSSLKeys ...
-type DeliveryServiceSSLKeys struct {
-	CDN             string                            `json:"cdn"`
-	DeliveryService string                            `json:"DeliveryService"`
-	BusinessUnit    string                            `json:"businessUnit"`
-	City            string                            `json:"city"`
-	Organization    string                            `json:"organization"`
-	Hostname        string                            `json:"hostname"`
-	Country         string                            `json:"country"`
-	State           string                            `json:"state"`
-	Version         string                            `json:"version"`
-	Certificate     DeliveryServiceSSLKeysCertificate `json:"certificate"`
-}
-
-// DeliveryServiceSSLKeysCertificate ...
-type DeliveryServiceSSLKeysCertificate struct {
-	Crt string `json:"crt"`
-	Key string `json:"key"`
-	CSR string `json:"csr"`
-}

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/283d0dbf/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/cachegroup.go
----------------------------------------------------------------------
diff --git a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/cachegroup.go b/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/cachegroup.go
deleted file mode 100644
index ea0fd69..0000000
--- a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/cachegroup.go
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
-
-   Licensed under the Apache License, Version 2.0 (the "License");
-   you may not use this file except in compliance with the License.
-   You may obtain a copy of the License at
-
-   http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-*/
-
-package fixtures
-
-import "github.com/apache/incubator-trafficcontrol/traffic_ops/client"
-
-// Cachegroups returns a default CacheGroupResponse to be used for testing.
-func Cachegroups() *client.CacheGroupResponse {
-	return &client.CacheGroupResponse{
-		Response: []client.CacheGroup{
-			client.CacheGroup{
-				Name:        "edge-philadelphia",
-				ShortName:   "phila",
-				Type:        "EDGE_LOC",
-				Longitude:   -5.66,
-				Latitude:    55.67,
-				ParentName:  "mid-northeast",
-				LastUpdated: "2014-03-28 15:23:50",
-			},
-		},
-	}
-}

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/283d0dbf/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/cdn.go
----------------------------------------------------------------------
diff --git a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/cdn.go b/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/cdn.go
deleted file mode 100644
index 0349cbe..0000000
--- a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/cdn.go
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
-
-   Licensed under the Apache License, Version 2.0 (the "License");
-   you may not use this file except in compliance with the License.
-   You may obtain a copy of the License at
-
-   http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-*/
-
-package fixtures
-
-import "github.com/apache/incubator-trafficcontrol/traffic_ops/client"
-
-// CDNs returns a default CDNResponse to be used for testing.
-func CDNs() *client.CDNResponse {
-	return &client.CDNResponse{
-		Response: []client.CDN{
-			client.CDN{
-				ID:          1,
-				Name:        "CDN-1",
-				LastUpdated: "2016-03-22 17:00:30",
-			},
-		},
-	}
-}

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/283d0dbf/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/delivery_service.go
----------------------------------------------------------------------
diff --git a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/delivery_service.go b/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/delivery_service.go
deleted file mode 100644
index d48879b..0000000
--- a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/delivery_service.go
+++ /dev/null
@@ -1,210 +0,0 @@
-/*
-
-   Licensed under the Apache License, Version 2.0 (the "License");
-   you may not use this file except in compliance with the License.
-   You may obtain a copy of the License at
-
-   http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-*/
-
-package fixtures
-
-import "github.com/apache/incubator-trafficcontrol/traffic_ops/client"
-
-// DeliveryServices returns a default DeliveryServiceResponse to be used for testing.
-func DeliveryServices() *client.GetDeliveryServiceResponse {
-	return &client.GetDeliveryServiceResponse{
-		Response: []client.DeliveryService{
-			client.DeliveryService{
-				ID:                   001,
-				XMLID:                "ds-test",
-				Active:               true,
-				DSCP:                 40,
-				Signed:               false,
-				QStringIgnore:        1,
-				GeoLimit:             0,
-				GeoProvider:          0,
-				DNSBypassTTL:         30,
-				Type:                 "HTTP",
-				ProfileName:          "ds-123",
-				CDNName:              "test-cdn",
-				CCRDNSTTL:            3600,
-				GlobalMaxTPS:         0,
-				MaxDNSAnswers:        0,
-				MissLat:              44.654321,
-				MissLong:             -99.123456,
-				Protocol:             0,
-				IPV6RoutingEnabled:   true,
-				RangeRequestHandling: 0,
-				TRResponseHeaders:    "Access-Control-Allow-Origin: *",
-				MultiSiteOrigin:      false,
-				DisplayName:          "Testing",
-				InitialDispersion:    1,
-			},
-		},
-	}
-}
-
-func alerts() []client.DeliveryServiceAlert {
-	return []client.DeliveryServiceAlert{
-		client.DeliveryServiceAlert{
-			Level: "level",
-			Text:  "text",
-		},
-	}
-}
-
-// DeliveryService returns a default DeliveryServiceResponse to be used for testing.
-func DeliveryService() *client.DeliveryServiceResponse {
-	return &client.DeliveryServiceResponse{
-		Response: DeliveryServices().Response[0],
-		Alerts:   alerts(),
-	}
-}
-
-// CreateDeliveryService returns a default CreateDeliveryServiceResponse to be used for testing.
-func CreateDeliveryService() *client.CreateDeliveryServiceResponse {
-	return &client.CreateDeliveryServiceResponse{
-		Response: DeliveryServices().Response,
-		Alerts:   alerts(),
-	}
-}
-
-// UpdateDeliveryService returns a default UpdateDeliveryServiceResponse to be used for testing.
-func UpdateDeliveryService() *client.UpdateDeliveryServiceResponse {
-	return &client.UpdateDeliveryServiceResponse{
-		Response: DeliveryServices().Response,
-		Alerts:   alerts(),
-	}
-}
-
-// DeleteDeliveryService returns a default DeleteDeliveryServiceResponse to be used for testing.
-func DeleteDeliveryService() *client.DeleteDeliveryServiceResponse {
-	return &client.DeleteDeliveryServiceResponse{
-		Alerts: alerts(),
-	}
-}
-
-// DeliveryServiceState returns a default DeliveryServiceStateResponse to be used for testing.
-func DeliveryServiceState() *client.DeliveryServiceStateResponse {
-	dest := client.DeliveryServiceDestination{
-		Location: "someLocation",
-		Type:     "DNS",
-	}
-
-	failover := client.DeliveryServiceFailover{
-		Locations:   []string{"one", "two"},
-		Destination: dest,
-		Configured:  true,
-		Enabled:     true,
-	}
-
-	ds := client.DeliveryServiceState{
-		Enabled:  true,
-		Failover: failover,
-	}
-
-	return &client.DeliveryServiceStateResponse{
-		Response: ds,
-	}
-}
-
-// DeliveryServiceHealth returns a default DeliveryServiceHealthResponse to be used for testing.
-func DeliveryServiceHealth() *client.DeliveryServiceHealthResponse {
-	cacheGroup := client.DeliveryServiceCacheGroup{
-		Name:    "someCacheGroup",
-		Online:  2,
-		Offline: 3,
-	}
-
-	dsh := client.DeliveryServiceHealth{
-		TotalOnline:  2,
-		TotalOffline: 3,
-		CacheGroups:  []client.DeliveryServiceCacheGroup{cacheGroup},
-	}
-
-	return &client.DeliveryServiceHealthResponse{
-		Response: dsh,
-	}
-}
-
-// DeliveryServiceCapacity returns a default DeliveryServiceCapacityResponse to be used for testing.
-func DeliveryServiceCapacity() *client.DeliveryServiceCapacityResponse {
-	dsc := client.DeliveryServiceCapacity{
-		AvailablePercent:   90.12345,
-		UnavailablePercent: 90.12345,
-		UtilizedPercent:    90.12345,
-		MaintenancePercent: 90.12345,
-	}
-
-	return &client.DeliveryServiceCapacityResponse{
-		Response: dsc,
-	}
-}
-
-// DeliveryServiceRouting returns a default DeliveryServiceRoutingResponse to be used for testing.
-func DeliveryServiceRouting() *client.DeliveryServiceRoutingResponse {
-	dsr := client.DeliveryServiceRouting{
-		StaticRoute:       1,
-		Miss:              2,
-		Geo:               3.33,
-		Err:               4,
-		CZ:                5.55,
-		DSR:               6.66,
-		Fed:               1,
-		RegionalAlternate: 1,
-		RegionalDenied:    1,
-	}
-
-	return &client.DeliveryServiceRoutingResponse{
-		Response: dsr,
-	}
-}
-
-// DeliveryServiceServer returns a default DeliveryServiceServerResponse to be used for testing.
-func DeliveryServiceServer() *client.DeliveryServiceServerResponse {
-	dss := client.DeliveryServiceServer{
-		LastUpdated:     "lastUpdated",
-		Server:          1,
-		DeliveryService: 1,
-	}
-
-	return &client.DeliveryServiceServerResponse{
-		Response: []client.DeliveryServiceServer{dss},
-		Size:     1,
-		OrderBy:  "foo",
-		Limit:    1,
-	}
-}
-
-// DeliveryServiceSSLKeys returns a default DeliveryServiceSSLKeysResponse to be used for testing.
-func DeliveryServiceSSLKeys() *client.DeliveryServiceSSLKeysResponse {
-	crt := client.DeliveryServiceSSLKeysCertificate{
-		Crt: "crt",
-		Key: "key",
-		CSR: "someService",
-	}
-
-	sslKeys := client.DeliveryServiceSSLKeys{
-		CDN:             "cdn",
-		DeliveryService: "deliveryService",
-		Certificate:     crt,
-		BusinessUnit:    "businessUnit",
-		City:            "city",
-		Organization:    "Kabletown",
-		Hostname:        "hostname",
-		Country:         "country",
-		State:           "state",
-		Version:         "version",
-	}
-
-	return &client.DeliveryServiceSSLKeysResponse{
-		Response: sslKeys,
-	}
-}

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/283d0dbf/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/hardware.go
----------------------------------------------------------------------
diff --git a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/hardware.go b/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/hardware.go
deleted file mode 100644
index eb5f454..0000000
--- a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/hardware.go
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
-
-   Licensed under the Apache License, Version 2.0 (the "License");
-   you may not use this file except in compliance with the License.
-   You may obtain a copy of the License at
-
-   http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-*/
-
-package fixtures
-
-import "github.com/apache/incubator-trafficcontrol/traffic_ops/client"
-
-// Hardware returns a default HardwareResponse to be used for testing.
-func Hardware() *client.HardwareResponse {
-	return &client.HardwareResponse{
-		Response: []client.Hardware{
-			client.Hardware{
-				ID:          18,
-				HostName:    "edge-den-01",
-				LastUpdated: "2015-07-16 09:04:20",
-				Value:       "DIS1",
-				Description: "Phys Disk",
-			},
-			client.Hardware{
-				ID:          19,
-				HostName:    "edge-den-02",
-				LastUpdated: "2015-07-16 09:04:20",
-				Value:       "DIS2",
-				Description: "Physical Disk",
-			},
-		},
-	}
-}

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/283d0dbf/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/parameter.go
----------------------------------------------------------------------
diff --git a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/parameter.go b/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/parameter.go
deleted file mode 100644
index f946790..0000000
--- a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/parameter.go
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
-
-   Licensed under the Apache License, Version 2.0 (the "License");
-   you may not use this file except in compliance with the License.
-   You may obtain a copy of the License at
-
-   http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-*/
-
-package fixtures
-
-import "github.com/apache/incubator-trafficcontrol/traffic_ops/client"
-
-// Parameters returns a default ParamResponse to be used for testing.
-func Parameters() *client.ParamResponse {
-	return &client.ParamResponse{
-		Response: []client.Parameter{
-			client.Parameter{
-				Name:        "location",
-				Value:       "/foo/trafficserver/",
-				ConfigFile:  "parent.config",
-				LastUpdated: "2012-09-17 15:41:22",
-			},
-		},
-	}
-}

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/283d0dbf/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/profile.go
----------------------------------------------------------------------
diff --git a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/profile.go b/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/profile.go
deleted file mode 100644
index 8bf6be1..0000000
--- a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/profile.go
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
-
-   Licensed under the Apache License, Version 2.0 (the "License");
-   you may not use this file except in compliance with the License.
-   You may obtain a copy of the License at
-
-   http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-*/
-
-package fixtures
-
-import "github.com/apache/incubator-trafficcontrol/traffic_ops/client"
-
-// Profiles returns a default ProfileResponse to be used for testing.
-func Profiles() *client.ProfileResponse {
-	return &client.ProfileResponse{
-		Response: []client.Profile{
-			client.Profile{
-				ID:          1,
-				Name:        "TR_CDN2",
-				Description: "kabletown Content Router",
-				LastUpdated: "2012-10-08 13:34:45",
-			},
-		},
-	}
-}

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/283d0dbf/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/server.go
----------------------------------------------------------------------
diff --git a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/server.go b/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/server.go
deleted file mode 100644
index 4184ad1..0000000
--- a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/server.go
+++ /dev/null
@@ -1,151 +0,0 @@
-/*
-
-   Licensed under the Apache License, Version 2.0 (the "License");
-   you may not use this file except in compliance with the License.
-   You may obtain a copy of the License at
-
-   http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-*/
-
-package fixtures
-
-import "github.com/apache/incubator-trafficcontrol/traffic_ops/client"
-
-// Servers returns a default ServerResponse to be used for testing.
-func Servers() *client.ServerResponse {
-	return &client.ServerResponse{
-		Response: []client.Server{
-			{
-				ID:             001,
-				HostName:       "edge-alb-01",
-				DomainName:     "albuquerque.nm.albuq.kabletown.com",
-				CDNName:        "CDN-1",
-				Type:           "EDGE",
-				Profile:        "EDGE1_CDN_520",
-				TCPPort:        80,
-				Rack:           "F-4/35",
-				PhysLocation:   "Albuquerque",
-				Cachegroup:     "albuquerque",
-				IP6Address:     "2001:558:fe18:7::2/64",
-				IP6Gateway:     "2001:558:fe18:7::1",
-				IPAddress:      "10.10.10.10",
-				IPGateway:      "10.10.10.10",
-				IPNetmask:      "255.255.255.252",
-				MgmtIPAddress:  "",
-				MgmtIPNetmask:  "",
-				MgmtIPGateway:  "",
-				Status:         "REPORTED",
-				XMPPID:         "edge-alb-01",
-				XMPPPasswd:     "**********",
-				IloIPAddress:   "10.10.10.10",
-				IloUsername:    "vssilo",
-				IloPassword:    "password",
-				IloIPGateway:   "10.10.10.10",
-				IloIPNetmask:   "255.255.255.192",
-				InterfaceName:  "bond0",
-				InterfaceMtu:   9000,
-				RouterPortName: "TenGigE0/3/0/10\t|\tBundle-Ether1000\t|\tPHY|10G|AGG-MEMBER|dtype:IPCDN-EDGE|rhost:edge-alb-01|rport:eth1|lagg:1000",
-				RouterHostName: "ar01.albuquerque.nm.albuq.kabletown.com",
-				LastUpdated:    "2015-03-27 17:00:30",
-			},
-			{
-				ID:             002,
-				HostName:       "edge-alb-02",
-				DomainName:     "albuquerque.nm.albuq.kabletown.com",
-				CDNName:        "CDN-1",
-				Type:           "EDGE",
-				Profile:        "EDGE1_XCR_520",
-				TCPPort:        80,
-				Rack:           "F-4/38",
-				PhysLocation:   "Albuquerque",
-				Cachegroup:     "us-nm-albuquerque",
-				IP6Address:     "2001:558:FE18:8::2/64",
-				IP6Gateway:     "2001:558:fe18:8::1",
-				IPAddress:      "10.10.10.10",
-				IPGateway:      "10.10.10.10",
-				IPNetmask:      "255.255.255.252",
-				MgmtIPAddress:  "",
-				MgmtIPNetmask:  "",
-				MgmtIPGateway:  "",
-				Status:         "REPORTED",
-				XMPPID:         "edge-alb-02",
-				XMPPPasswd:     "**********",
-				IloIPAddress:   "10.10.10.10",
-				IloUsername:    "vssilo",
-				IloPassword:    "password",
-				IloIPGateway:   "10.10.10.10",
-				IloIPNetmask:   "255.255.255.192",
-				InterfaceName:  "bond0",
-				InterfaceMtu:   9000,
-				RouterPortName: "TenGigE0/3/0/10\t|\tBundle-Ether1000\t|\tPHY|10G|AGG-MEMBER|dtype:IPCDN-EDGE|rhost:edge-alb-02|rport:eth1|lagg:1000",
-				RouterHostName: "ar02.albuquerque.nm.albuq.kabletown.com",
-				LastUpdated:    "2015-03-27 17:00:34",
-			},
-			{
-				ID:             003,
-				HostName:       "atlanta-mid-01",
-				DomainName:     "ga.atlanta.kabletown.net",
-				CDNName:        "CDN-1",
-				Type:           "MID",
-				Profile:        "MID1",
-				TCPPort:        80,
-				Rack:           "F-4/38",
-				PhysLocation:   "Denver",
-				Cachegroup:     "mid-northeast-group",
-				IP6Address:     "2001:558:FE18:8::2/64",
-				IP6Gateway:     "2001:558:fe18:8::1",
-				IPAddress:      "12.12.12.12",
-				IPGateway:      "12.12.12.12",
-				IPNetmask:      "255.255.255.252",
-				MgmtIPAddress:  "",
-				MgmtIPNetmask:  "",
-				MgmtIPGateway:  "",
-				Status:         "ONLINE",
-				XMPPID:         "atlanta-mid-01",
-				XMPPPasswd:     "**********",
-				IloIPAddress:   "",
-				IloUsername:    "",
-				IloPassword:    "",
-				IloIPGateway:   "1",
-				IloIPNetmask:   "",
-				InterfaceName:  "bond0",
-				InterfaceMtu:   9000,
-				RouterPortName: "",
-				RouterHostName: "",
-				LastUpdated:    "2015-03-27 17:00:34",
-			},
-		},
-	}
-}
-
-// LogstashServers returns a default ServerResponse to be used for testing.
-func LogstashServers() *client.ServerResponse {
-	return &client.ServerResponse{
-		Response: []client.Server{
-			{
-				ID:         004,
-				HostName:   "logstash-01",
-				DomainName: "albuquerque.nm.albuq.kabletown.com",
-				CDNName:    "CDN-2",
-				Type:       "LOGSTASH",
-				Profile:    "LOGSTASH_ATS",
-				IPAddress:  "10.10.10.10",
-			},
-			{
-				ID:         005,
-				HostName:   "logstash-02",
-				DomainName: "albuquerque.nm.albuq.kabletown.com",
-				CDNName:    "CDN-2",
-				Type:       "LOGSTASH",
-				Profile:    "LOGSTASH_ATS",
-				IPAddress:  "10.10.10.10",
-			},
-		},
-	}
-}

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/283d0dbf/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/stats_summary.go
----------------------------------------------------------------------
diff --git a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/stats_summary.go b/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/stats_summary.go
deleted file mode 100644
index bcc7470..0000000
--- a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/stats_summary.go
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
-
-   Licensed under the Apache License, Version 2.0 (the "License");
-   you may not use this file except in compliance with the License.
-   You may obtain a copy of the License at
-
-   http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-*/
-
-package fixtures
-
-import "github.com/apache/incubator-trafficcontrol/traffic_ops/client"
-
-// StatsSummary returns a default StatsSummaryResponse to be used for testing.
-func StatsSummary() *client.StatsSummaryResponse {
-	return &client.StatsSummaryResponse{
-		Response: []client.StatsSummary{
-			client.StatsSummary{
-				SummaryTime:     "2015-05-14 14:39:47",
-				DeliveryService: "test-ds1",
-				StatName:        "test-stat",
-				StatValue:       "3.1415",
-				CDNName:         "test-cdn",
-			},
-		},
-	}
-}

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/283d0dbf/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/traffic_monitor_config.go
----------------------------------------------------------------------
diff --git a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/traffic_monitor_config.go b/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/traffic_monitor_config.go
deleted file mode 100644
index 76efc3d..0000000
--- a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/traffic_monitor_config.go
+++ /dev/null
@@ -1,116 +0,0 @@
-package fixtures
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- * 
- *   http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-
-import "github.com/apache/incubator-trafficcontrol/traffic_ops/client"
-
-// TrafficMonitorConfig returns a default TMConfigResponse to be used for testing.
-func TrafficMonitorConfig() *client.TMConfigResponse {
-	return &client.TMConfigResponse{
-		Response: client.TrafficMonitorConfig{
-			TrafficServers: []client.TrafficServer{
-				client.TrafficServer{
-					Profile:       "TR_CDN",
-					IP:            "10.10.10.10",
-					Status:        "OFFLINE",
-					CacheGroup:    "tr-chicago",
-					IP6:           "2001:123:abc12:64:22:::17/64",
-					Port:          80,
-					HostName:      "tr-chi-05",
-					FQDN:          "tr-chi-05.kabletown.com",
-					InterfaceName: "eth0",
-					Type:          "TR",
-					HashID:        "chi-tr-05",
-				},
-				client.TrafficServer{
-					Profile:       "EDGE1_CDN",
-					IP:            "3.3.3.3",
-					Status:        "OFFLINE",
-					CacheGroup:    "philadelphia",
-					IP6:           "2009:123:456::2/64",
-					Port:          80,
-					HostName:      "edge-test-01",
-					FQDN:          "edge-test-01.kabletown.com",
-					InterfaceName: "bond0",
-					Type:          "EDGE",
-					HashID:        "edge-test-01",
-				},
-			},
-			CacheGroups: []client.TMCacheGroup{
-				client.TMCacheGroup{
-					Name: "philadelphia",
-					Coordinates: client.Coordinates{
-						Longitude: 5,
-						Latitude:  55,
-					},
-				},
-				client.TMCacheGroup{
-					Name: "tr-chicago",
-					Coordinates: client.Coordinates{
-						Longitude: 9,
-						Latitude:  99,
-					},
-				},
-			},
-			Config: map[string]interface{}{
-				"health.event-count":     200,
-				"hack.ttl":               30,
-				"health.threadPool":      4,
-				"peers.polling.interval": 1000,
-			},
-			TrafficMonitors: []client.TrafficMonitor{
-				client.TrafficMonitor{
-					Port:     80,
-					IP6:      "",
-					IP:       "1.1.1.1",
-					HostName: "traffic-monitor-01",
-					FQDN:     "traffic-monitor-01@example.com",
-					Profile:  "tm-123",
-					Location: "philadelphia",
-					Status:   "ONLINE",
-				},
-			},
-			DeliveryServices: []client.TMDeliveryService{
-				client.TMDeliveryService{
-					XMLID:              "ds-05",
-					TotalTPSThreshold:  0,
-					Status:             "REPORTED",
-					TotalKbpsThreshold: 0,
-				},
-			},
-			Profiles: []client.TMProfile{
-				client.TMProfile{
-					Name: "tm-123",
-					Type: "TR",
-					Parameters: client.TMParameters{
-						HealthConnectionTimeout:                 2000,
-						HealthPollingURL:                        "http://${hostname}/_astats?application=&inf.name=${interface_name}",
-						HealthThresholdQueryTime:                1000,
-						HistoryCount:                            30,
-						HealthThresholdAvailableBandwidthInKbps: ">1750000",
-						HealthThresholdLoadAvg:                  25.0,
-						MinFreeKbps:                             11500000,
-					},
-				},
-			},
-		},
-	}
-}

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/283d0dbf/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/traffic_router_config.go
----------------------------------------------------------------------
diff --git a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/traffic_router_config.go b/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/traffic_router_config.go
deleted file mode 100644
index b0cac6d..0000000
--- a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/traffic_router_config.go
+++ /dev/null
@@ -1,162 +0,0 @@
-package fixtures
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- * 
- *   http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-
-import "github.com/apache/incubator-trafficcontrol/traffic_ops/client"
-
-// TrafficRouterConfig returns a default TRConfigResponse to be used for testing.
-func TrafficRouterConfig() *client.TRConfigResponse {
-	return &client.TRConfigResponse{
-		Response: client.TrafficRouterConfig{
-			TrafficServers: []client.TrafficServer{
-				client.TrafficServer{
-					Profile:       "TR_CDN",
-					IP:            "10.10.10.10",
-					Status:        "OFFLINE",
-					CacheGroup:    "tr-chicago",
-					IP6:           "2001:123:abc12:64:22:::17/64",
-					Port:          80,
-					HostName:      "tr-chi-05",
-					FQDN:          "tr-chi-05.kabletown.com",
-					InterfaceName: "eth0",
-					Type:          "TR",
-					HashID:        "chi-tr-05",
-				},
-				client.TrafficServer{
-					Profile:       "EDGE1_CDN",
-					IP:            "3.3.3.3",
-					Status:        "OFFLINE",
-					CacheGroup:    "philadelphia",
-					IP6:           "2009:123:456::2/64",
-					Port:          80,
-					HostName:      "edge-test-01",
-					FQDN:          "edge-test-01.kabletown.com",
-					InterfaceName: "bond0",
-					Type:          "EDGE",
-					HashID:        "edge-test-01",
-				},
-			},
-			TrafficMonitors: []client.TrafficMonitor{
-				client.TrafficMonitor{
-					Port:     80,
-					IP6:      "",
-					IP:       "1.1.1.1",
-					HostName: "traffic-monitor-01",
-					FQDN:     "traffic-monitor-01@example.com",
-					Profile:  "tr-123",
-					Location: "philadelphia",
-					Status:   "ONLINE",
-				},
-			},
-			CacheGroups: []client.TMCacheGroup{
-				client.TMCacheGroup{
-					Name: "philadelphia",
-					Coordinates: client.Coordinates{
-						Longitude: 88,
-						Latitude:  99,
-					},
-				},
-				client.TMCacheGroup{
-					Name: "tr-chicago",
-					Coordinates: client.Coordinates{
-						Longitude: 9,
-						Latitude:  99,
-					},
-				},
-			},
-			Config: map[string]interface{}{
-				"health.event-count":     200,
-				"hack.ttl":               30,
-				"health.threadPool":      4,
-				"peers.polling.interval": 1000,
-			},
-			Stats: map[string]interface{}{
-				"date":              1459371078,
-				"cdnName":           "test-cdn",
-				"trafficOpsHost":    "127.0.0.1:3000",
-				"trafficOpsPath":    "/api/1.2/cdns/title-vi/configs/routing.json",
-				"trafficOpsVersion": "__VERSION__",
-				"trafficOpsUser":    "bob",
-			},
-			TrafficRouters: []client.TrafficRouter{
-				client.TrafficRouter{
-					Port:     6789,
-					IP6:      "2345:1234:12:8::2/64",
-					IP:       "127.0.0.1",
-					FQDN:     "tr-01@ga.atlanta.kabletown.net",
-					Profile:  "tr-123",
-					Location: "tr-chicago",
-					Status:   "ONLINE",
-					APIPort:  3333,
-				},
-			},
-			DeliveryServices: []client.TRDeliveryService{
-				client.TRDeliveryService{
-					XMLID: "ds-06",
-					Domains: []string{
-						"ga.atlanta.kabletown.net",
-					},
-					MissLocation: client.MissLocation{
-						Latitude:  75,
-						Longitude: 65,
-					},
-					CoverageZoneOnly: true,
-					MatchSets: []client.MatchSet{
-						client.MatchSet{
-							Protocol: "HTTP",
-							MatchList: []client.MatchList{
-								client.MatchList{
-									Regex:     ".*\\.ds-06\\..*",
-									MatchType: "HOST",
-								},
-							},
-						},
-					},
-					TTL: 3600,
-					TTLs: client.TTLS{
-						Arecord:    3600,
-						SoaRecord:  86400,
-						NsRecord:   3600,
-						AaaaRecord: 3600,
-					},
-					BypassDestination: client.BypassDestination{
-						Type: "HTTP",
-					},
-					StatcDNSEntries: []client.StaticDNS{
-						client.StaticDNS{
-							Value: "1.1.1.1",
-							TTL:   30,
-							Name:  "mm",
-							Type:  "A",
-						},
-					},
-					Soa: client.SOA{
-						Admin:   "admin",
-						Retry:   7200,
-						Minimum: 30,
-						Refresh: 7200,
-						Expire:  604800,
-					},
-				},
-			},
-		},
-	}
-}

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/283d0dbf/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/types.go
----------------------------------------------------------------------
diff --git a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/types.go b/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/types.go
deleted file mode 100644
index ef77346..0000000
--- a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/types.go
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
-
-   Licensed under the Apache License, Version 2.0 (the "License");
-   you may not use this file except in compliance with the License.
-   You may obtain a copy of the License at
-
-   http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-*/
-
-package fixtures
-
-import "github.com/apache/incubator-trafficcontrol/traffic_ops/client"
-
-// Types returns a default TypeResponse to be used for testing.
-func Types() *client.TypeResponse {
-	return &client.TypeResponse{
-		Response: []client.Type{
-			client.Type{
-				ID:          1,
-				Name:        "EDGE",
-				Description: "edge cache",
-				UseInTable:  "server",
-			},
-		},
-	}
-}

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/283d0dbf/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/user.go
----------------------------------------------------------------------
diff --git a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/user.go b/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/user.go
deleted file mode 100644
index b70a3e8..0000000
--- a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/fixtures/user.go
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
-
-   Licensed under the Apache License, Version 2.0 (the "License");
-   you may not use this file except in compliance with the License.
-   You may obtain a copy of the License at
-
-   http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-*/
-
-package fixtures
-
-import "github.com/apache/incubator-trafficcontrol/traffic_ops/client"
-
-// Users returns a default UserResponse to be used for testing.
-func Users() *client.UserResponse {
-	return &client.UserResponse{
-		Response: []client.User{
-			client.User{
-				Username:     "bsmith",
-				PublicSSHKey: "some-ssh-key",
-				Role:         3,
-				RoleName:     "operations",
-				Email:        "bobsmith@email.com",
-				FullName:     "Bob Smith",
-			},
-		},
-	}
-}

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/283d0dbf/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/hardware.go
----------------------------------------------------------------------
diff --git a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/hardware.go b/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/hardware.go
deleted file mode 100644
index 1fef498..0000000
--- a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/hardware.go
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
-
-   Licensed under the Apache License, Version 2.0 (the "License");
-   you may not use this file except in compliance with the License.
-   You may obtain a copy of the License at
-
-   http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-*/
-
-package client
-
-import "encoding/json"
-import "fmt"
-
-// HardwareResponse ...
-type HardwareResponse struct {
-	Limit    int        `json:"limit"`
-	Response []Hardware `json:"response"`
-}
-
-// Hardware ...
-type Hardware struct {
-	ID          int    `json:"serverId"`
-	HostName    string `json:"serverHostName"`
-	LastUpdated string `json:"lastUpdated"`
-	Value       string `json:"val"`
-	Description string `json:"description"`
-}
-
-// Hardware gets an array of Hardware
-func (to *Session) Hardware(limit int) ([]Hardware, error) {
-	url := "/api/1.2/hwinfo.json"
-	if limit > 0 {
-		url += fmt.Sprintf("?limit=%v", limit)
-	}
-	resp, err := to.request("GET", url, nil)
-	if err != nil {
-		return nil, err
-	}
-	defer resp.Body.Close()
-
-	var data HardwareResponse
-	if err := json.NewDecoder(resp.Body).Decode(&data); err != nil {
-		return nil, err
-	}
-
-	return data.Response, nil
-}

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/283d0dbf/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/parameter.go
----------------------------------------------------------------------
diff --git a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/parameter.go b/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/parameter.go
deleted file mode 100644
index 34a805e..0000000
--- a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/parameter.go
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
-
-   Licensed under the Apache License, Version 2.0 (the "License");
-   you may not use this file except in compliance with the License.
-   You may obtain a copy of the License at
-
-   http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-*/
-
-package client
-
-import (
-	"encoding/json"
-	"fmt"
-)
-
-// ParamResponse ...
-type ParamResponse struct {
-	Response []Parameter `json:"response"`
-}
-
-// Parameter ...
-type Parameter struct {
-	Name        string `json:"name"`
-	ConfigFile  string `json:"configFile"`
-	Value       string `json:"Value"`
-	LastUpdated string `json:"lastUpdated"`
-}
-
-// Parameters gets an array of parameter structs for the profile given
-func (to *Session) Parameters(profileName string) ([]Parameter, error) {
-	url := fmt.Sprintf("/api/1.2/parameters/profile/%s.json", profileName)
-	resp, err := to.request("GET", url, nil)
-	if err != nil {
-		return nil, err
-	}
-	defer resp.Body.Close()
-
-	var data ParamResponse
-	if err := json.NewDecoder(resp.Body).Decode(&data); err != nil {
-		return nil, err
-	}
-
-	return data.Response, nil
-}

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/283d0dbf/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/profile.go
----------------------------------------------------------------------
diff --git a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/profile.go b/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/profile.go
deleted file mode 100644
index 90f3f4d..0000000
--- a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/profile.go
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
-
-   Licensed under the Apache License, Version 2.0 (the "License");
-   you may not use this file except in compliance with the License.
-   You may obtain a copy of the License at
-
-   http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-*/
-
-package client
-
-import "encoding/json"
-
-// ProfileResponse ...
-type ProfileResponse struct {
-	Response []Profile `json:"response"`
-}
-
-// Profile ...
-type Profile struct {
-	ID          int    `json:"id"`
-	Name        string `json:"name"`
-	Description string `json:"description"`
-	LastUpdated string `json:"lastUpdated"`
-}
-
-// Profiles gets an array of Profiles
-func (to *Session) Profiles() ([]Profile, error) {
-	url := "/api/1.2/profiles.json"
-	resp, err := to.request("GET", url, nil)
-	if err != nil {
-		return nil, err
-	}
-	defer resp.Body.Close()
-
-	var data ProfileResponse
-	if err := json.NewDecoder(resp.Body).Decode(&data); err != nil {
-		return nil, err
-	}
-
-	return data.Response, nil
-}

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/283d0dbf/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/server.go
----------------------------------------------------------------------
diff --git a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/server.go b/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/server.go
deleted file mode 100644
index 8dd0c1c..0000000
--- a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/server.go
+++ /dev/null
@@ -1,138 +0,0 @@
-/*
-
-   Licensed under the Apache License, Version 2.0 (the "License");
-   you may not use this file except in compliance with the License.
-   You may obtain a copy of the License at
-
-   http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-*/
-
-package client
-
-import (
-	"encoding/json"
-	"fmt"
-	"net/url"
-	"strings"
-)
-
-// ServerResponse ...
-type ServerResponse struct {
-	Response []Server `json:"response"`
-}
-
-// Server ...
-type Server struct {
-	DomainName    string `json:"domainName"`
-	HostName      string `json:"hostName"`
-	ID            int    `json:"id"`
-	IloIPAddress  string `json:"iloIpAddress"`
-	IloIPGateway  string `json:"iloIpGateway"`
-	IloIPNetmask  string `json:"iloIpNetmask"`
-	IloPassword   string `json:"iloPassword"`
-	IloUsername   string `json:"iloUsername"`
-	InterfaceMtu  int    `json:"interfaceMtu"`
-	InterfaceName string `json:"interfaceName"`
-	IP6Address    string `json:"ip6Address"`
-	IP6Gateway    string `json:"ip6Gateway"`
-	IPAddress     string `json:"ipAddress"`
-	IPGateway     string `json:"ipGateway"`
-	IPNetmask     string `json:"ipNetmask"`
-
-	LastUpdated    string `json:"lastUpdated"`
-	Cachegroup     string `json:"cachegroup"`
-	MgmtIPAddress  string `json:"mgmtIpAddress"`
-	MgmtIPGateway  string `json:"mgmtIpGateway"`
-	MgmtIPNetmask  string `json:"mgmtIpNetmask"`
-	PhysLocation   string `json:"physLocation"`
-	Profile        string `json:"profile"`
-	ProfileDesc    string `json:"profileDesc"`
-	CDNName        string `json:"cdnName"`
-	Rack           string `json:"rack"`
-	RouterHostName string `json:"routerHostName"`
-	RouterPortName string `json:"routerPortName"`
-	Status         string `json:"status"`
-	TCPPort        int    `json:"tcpPort"`
-	Type           string `json:"type"`
-	XMPPID         string `json:"xmppId"`
-	XMPPPasswd     string `json:"xmppPasswd"`
-}
-
-// Servers gets an array of servers
-func (to *Session) Servers() ([]Server, error) {
-	url := "/api/1.2/servers.json"
-	resp, err := to.request("GET", url, nil)
-	if err != nil {
-		return nil, err
-	}
-	defer resp.Body.Close()
-
-	var data ServerResponse
-	if err := json.NewDecoder(resp.Body).Decode(&data); err != nil {
-		return nil, err
-	}
-
-	return data.Response, nil
-}
-
-// ServersByType gets an array of serves of a specified type.
-func (to *Session) ServersByType(qparams url.Values) ([]Server, error) {
-	url := fmt.Sprintf("/api/1.2/servers.json?%s", qparams.Encode())
-	resp, err := to.request("GET", url, nil)
-	if err != nil {
-		return nil, err
-	}
-	defer resp.Body.Close()
-
-	var data ServerResponse
-	if err := json.NewDecoder(resp.Body).Decode(&data); err != nil {
-		return nil, err
-	}
-
-	return data.Response, nil
-}
-
-// ServersFqdn returns a the full domain name for the server short name passed in.
-func (to *Session) ServersFqdn(n string) (string, error) {
-	fdn := ""
-	servers, err := to.Servers()
-	if err != nil {
-		return "Error", err
-	}
-
-	for _, server := range servers {
-		if server.HostName == n {
-			fdn = fmt.Sprintf("%s.%s", server.HostName, server.DomainName)
-		}
-	}
-	if fdn == "" {
-		return "Error", fmt.Errorf("No Server %s found", n)
-	}
-	return fdn, nil
-}
-
-// ServersShortNameSearch returns a slice of short server names that match a greedy match.
-func (to *Session) ServersShortNameSearch(shortname string) ([]string, error) {
-	var serverlst []string
-	servers, err := to.Servers()
-	if err != nil {
-		serverlst = append(serverlst, "N/A")
-		return serverlst, err
-	}
-	for _, server := range servers {
-		if strings.Contains(server.HostName, shortname) {
-			serverlst = append(serverlst, server.HostName)
-		}
-	}
-	if len(serverlst) == 0 {
-		serverlst = append(serverlst, "N/A")
-		return serverlst, fmt.Errorf("No Servers Found")
-	}
-	return serverlst, nil
-}

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/283d0dbf/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/stats_summary.go
----------------------------------------------------------------------
diff --git a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/stats_summary.go b/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/stats_summary.go
deleted file mode 100644
index dcdfffa..0000000
--- a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/stats_summary.go
+++ /dev/null
@@ -1,126 +0,0 @@
-/*
-   Licensed under the Apache License, Version 2.0 (the "License");
-   you may not use this file except in compliance with the License.
-   You may obtain a copy of the License at
-   http://www.apache.org/licenses/LICENSE-2.0
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-*/
-
-package client
-
-import (
-	"encoding/json"
-	"fmt"
-	"strconv"
-)
-
-// StatsSummaryResponse ...
-type StatsSummaryResponse struct {
-	Response []StatsSummary `json:"response"`
-}
-
-// StatsSummary ...
-type StatsSummary struct {
-	CDNName         string `json:"cdnName"`
-	DeliveryService string `json:"deliveryServiceName"`
-	StatName        string `json:"statName"`
-	StatValue       string `json:"statValue"`
-	SummaryTime     string `json:"summaryTime"`
-	StatDate        string `json:"statDate"`
-}
-
-// LastUpdated ...
-type LastUpdated struct {
-	Version  string `json:"version"`
-	Response struct {
-		SummaryTime string `json:"summaryTime"`
-	} `json:"response"`
-}
-
-// SummaryStats ...
-func (to *Session) SummaryStats(cdn string, deliveryService string, statName string) ([]StatsSummary, error) {
-	var queryParams []string
-	if len(cdn) > 0 {
-		queryParams = append(queryParams, fmt.Sprintf("cdnName=%s", cdn))
-	}
-	if len(deliveryService) > 0 {
-		queryParams = append(queryParams, fmt.Sprintf("deliveryServiceName=%s", deliveryService))
-	}
-	if len(statName) > 0 {
-		queryParams = append(queryParams, fmt.Sprintf("statName=%s", statName))
-	}
-	queryURL := "/api/1.2/stats_summary.json"
-	queryParamString := "?"
-	if len(queryParams) > 0 {
-		for i, param := range queryParams {
-			if i == 0 {
-				queryParamString += param
-			} else {
-				queryParamString += fmt.Sprintf("&%s", param)
-			}
-		}
-		queryURL += queryParamString
-	}
-
-	resp, err := to.request("GET", queryURL, nil)
-	if err != nil {
-		return nil, err
-	}
-	defer resp.Body.Close()
-
-	var data StatsSummaryResponse
-	if err := json.NewDecoder(resp.Body).Decode(&data); err != nil {
-		return nil, err
-	}
-
-	return data.Response, nil
-}
-
-// SummaryStatsLastUpdated ...
-func (to *Session) SummaryStatsLastUpdated(statName string) (string, error) {
-	queryURL := "/api/1.2/stats_summary.json?lastSummaryDate=true"
-	if len(statName) > 0 {
-		queryURL += fmt.Sprintf("?statName=%s", statName)
-	}
-
-	resp, err := to.request("GET", queryURL, nil)
-	if err != nil {
-		return "", err
-	}
-	defer resp.Body.Close()
-
-	var data LastUpdated
-	if err := json.NewDecoder(resp.Body).Decode(&data); err != nil {
-		return "", err
-	}
-
-	if len(data.Response.SummaryTime) > 0 {
-		return data.Response.SummaryTime, nil
-	}
-	t := "1970-01-01 00:00:00"
-	return t, nil
-}
-
-// AddSummaryStats ...
-func (to *Session) AddSummaryStats(statsSummary StatsSummary) error {
-	reqBody, err := json.Marshal(statsSummary)
-	if err != nil {
-		return err
-	}
-
-	url := "/api/1.2/stats_summary/create"
-	resp, err := to.request("POST", url, reqBody)
-	if err != nil {
-		return err
-	}
-	defer resp.Body.Close()
-	if resp.StatusCode != 200 {
-		err := fmt.Errorf("Response code = %s and Status = %s", strconv.Itoa(resp.StatusCode), resp.Status)
-		return err
-	}
-	return nil
-}

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/283d0dbf/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/traffic_monitor_config.go
----------------------------------------------------------------------
diff --git a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/traffic_monitor_config.go b/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/traffic_monitor_config.go
deleted file mode 100644
index cf1208b..0000000
--- a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/traffic_monitor_config.go
+++ /dev/null
@@ -1,161 +0,0 @@
-/*
-
-   Licensed under the Apache License, Version 2.0 (the "License");
-   you may not use this file except in compliance with the License.
-   You may obtain a copy of the License at
-
-   http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-*/
-
-package client
-
-import (
-	"encoding/json"
-	"fmt"
-	"strconv"
-	"strings"
-)
-
-// TMConfigResponse ...
-type TMConfigResponse struct {
-	Response TrafficMonitorConfig `json:"response"`
-}
-
-// TrafficMonitorConfig ...
-type TrafficMonitorConfig struct {
-	TrafficServers   []TrafficServer        `json:"trafficServers,omitempty"`
-	CacheGroups      []TMCacheGroup         `json:"cacheGroups,omitempty"`
-	Config           map[string]interface{} `json:"config,omitempty"`
-	TrafficMonitors  []TrafficMonitor       `json:"trafficMonitors,omitempty"`
-	DeliveryServices []TMDeliveryService    `json:"deliveryServices,omitempty"`
-	Profiles         []TMProfile            `json:"profiles,omitempty"`
-}
-
-// TrafficMonitorConfigMap ...
-type TrafficMonitorConfigMap struct {
-	TrafficServer   map[string]TrafficServer
-	CacheGroup      map[string]TMCacheGroup
-	Config          map[string]interface{}
-	TrafficMonitor  map[string]TrafficMonitor
-	DeliveryService map[string]TMDeliveryService
-	Profile         map[string]TMProfile
-}
-
-// TrafficMonitor ...
-type TrafficMonitor struct {
-	Port     int    `json:"port"`
-	IP6      string `json:"ip6"`
-	IP       string `json:"ip"`
-	HostName string `json:"hostName"`
-	FQDN     string `json:"fqdn"`
-	Profile  string `json:"profile"`
-	Location string `json:"location"`
-	Status   string `json:"status"`
-}
-
-// TMDeliveryService ...
-type TMDeliveryService struct {
-	XMLID              string `json:"xmlId"`
-	TotalTPSThreshold  int64  `json:"TotalTpsThreshold"`
-	Status             string `json:"status"`
-	TotalKbpsThreshold int64  `json:"TotalKbpsThreshold"`
-}
-
-// TMProfile ...
-type TMProfile struct {
-	Parameters TMParameters `json:"parameters"`
-	Name       string       `json:"name"`
-	Type       string       `json:"type"`
-}
-
-// TMParameters ...
-type TMParameters struct {
-	HealthConnectionTimeout                 int     `json:"health.connection.timeout"`
-	HealthPollingURL                        string  `json:"health.polling.url"`
-	HealthThresholdQueryTime                int     `json:"health.threshold.queryTime"`
-	HistoryCount                            int     `json:"history.count"`
-	HealthThresholdAvailableBandwidthInKbps string  `json:"health.threshold.availableBandwidthInKbps"`
-	HealthThresholdLoadAvg                  float64 `json:"health.threshold.loadavg,string"`
-	MinFreeKbps                             int64
-}
-
-// TrafficMonitorConfigMap ...
-func (to *Session) TrafficMonitorConfigMap(cdn string) (*TrafficMonitorConfigMap, error) {
-	tmConfig, err := to.TrafficMonitorConfig(cdn)
-	if err != nil {
-		return nil, err
-	}
-	tmConfigMap, err := trafficMonitorTransformToMap(tmConfig)
-	if err != nil {
-		return nil, err
-	}
-	return tmConfigMap, nil
-}
-
-// TrafficMonitorConfig ...
-func (to *Session) TrafficMonitorConfig(cdn string) (*TrafficMonitorConfig, error) {
-	url := fmt.Sprintf("/api/1.2/cdns/%s/configs/monitoring.json", cdn)
-	resp, err := to.request("GET", url, nil)
-	if err != nil {
-		return nil, err
-	}
-	defer resp.Body.Close()
-
-	var data TMConfigResponse
-	if err := json.NewDecoder(resp.Body).Decode(&data); err != nil {
-		return nil, err
-	}
-
-	return &data.Response, nil
-}
-
-func trafficMonitorTransformToMap(tmConfig *TrafficMonitorConfig) (*TrafficMonitorConfigMap, error) {
-	var tm TrafficMonitorConfigMap
-
-	tm.TrafficServer = make(map[string]TrafficServer)
-	tm.CacheGroup = make(map[string]TMCacheGroup)
-	tm.Config = make(map[string]interface{})
-	tm.TrafficMonitor = make(map[string]TrafficMonitor)
-	tm.DeliveryService = make(map[string]TMDeliveryService)
-	tm.Profile = make(map[string]TMProfile)
-
-	for _, trafficServer := range tmConfig.TrafficServers {
-		tm.TrafficServer[trafficServer.HostName] = trafficServer
-	}
-
-	for _, cacheGroup := range tmConfig.CacheGroups {
-		tm.CacheGroup[cacheGroup.Name] = cacheGroup
-	}
-
-	for parameterKey, parameterVal := range tmConfig.Config {
-		tm.Config[parameterKey] = parameterVal
-	}
-
-	for _, trafficMonitor := range tmConfig.TrafficMonitors {
-		tm.TrafficMonitor[trafficMonitor.HostName] = trafficMonitor
-	}
-
-	for _, deliveryService := range tmConfig.DeliveryServices {
-		tm.DeliveryService[deliveryService.XMLID] = deliveryService
-	}
-
-	for _, profile := range tmConfig.Profiles {
-		bwThresholdString := profile.Parameters.HealthThresholdAvailableBandwidthInKbps
-		if strings.HasPrefix(bwThresholdString, ">") {
-			var err error
-			profile.Parameters.MinFreeKbps, err = strconv.ParseInt(bwThresholdString[1:len(bwThresholdString)], 10, 64)
-			if err != nil {
-				return nil, err
-			}
-		}
-		tm.Profile[profile.Name] = profile
-	}
-
-	return &tm, nil
-}

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/283d0dbf/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/traffic_ops.go
----------------------------------------------------------------------
diff --git a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/traffic_ops.go b/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/traffic_ops.go
deleted file mode 100644
index beb03ff..0000000
--- a/traffic_stats/vendor/github.com/apache/incubator-trafficcontrol/traffic_ops/client/traffic_ops.go
+++ /dev/null
@@ -1,305 +0,0 @@
-/*
-
-   Licensed under the Apache License, Version 2.0 (the "License");
-   you may not use this file except in compliance with the License.
-   You may obtain a copy of the License at
-
-   http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-*/
-
-package client
-
-import (
-	"bytes"
-	"crypto/tls"
-	"encoding/json"
-	"fmt"
-	"io/ioutil"
-	"net/http"
-	"strings"
-	"time"
-
-	"github.com/juju/persistent-cookiejar"
-	"golang.org/x/net/publicsuffix"
-)
-
-// Session ...
-type Session struct {
-	UserName  string
-	Password  string
-	URL       string
-	UserAgent *http.Client
-	Cache     map[string]CacheEntry
-}
-
-// HTTPError is returned on Update Session failure.
-type HTTPError struct {
-	HTTPStatusCode int
-	HTTPStatus     string
-	URL            string
-}
-
-// Error implements the error interface for our customer error type.
-func (e *HTTPError) Error() string {
-	return fmt.Sprintf("%s[%d] - Error requesting Traffic Ops %s", e.HTTPStatus, e.HTTPStatusCode, e.URL)
-}
-
-// Result {"response":[{"level":"success","text":"Successfully logged in."}],"version":"1.1"}
-type Result struct {
-	Alerts []Alert
-}
-
-// Alert ...
-type Alert struct {
-	Level string `json:"level"`
-	Text  string `json:"text"`
-}
-
-// CacheEntry ...
-type CacheEntry struct {
-	Entered int64
-	Bytes   []byte
-}
-
-// Credentials contains Traffic Ops login credentials
-type Credentials struct {
-	Username string `json:"u"`
-	Password string `json:"p"`
-}
-
-// TODO JvD
-const tmPollingInterval = 60
-
-// loginCreds gathers login credentials for Traffic Ops.
-func loginCreds(toUser string, toPasswd string) ([]byte, error) {
-	credentials := Credentials{
-		Username: toUser,
-		Password: toPasswd,
-	}
-
-	js, err := json.Marshal(credentials)
-	if err != nil {
-		err := fmt.Errorf("Error creating login json: %v", err)
-		return nil, err
-	}
-	return js, nil
-}
-
-func ResumeSession(toURL string, insecure bool) (*Session, error) {
-	options := cookiejar.Options{
-		PublicSuffixList: publicsuffix.List,
-	}
-
-	jar, err := cookiejar.New(&options)
-
-	if err != nil {
-		return nil, err
-	}
-
-	to := Session{
-		UserAgent: &http.Client{
-			Transport: &http.Transport{
-				TLSClientConfig: &tls.Config{InsecureSkipVerify: insecure},
-			},
-			Jar: jar,
-		},
-		URL:   toURL,
-		Cache: make(map[string]CacheEntry),
-	}
-
-	resp, err := to.request("GET", "/api/1.2/user/current.json", nil)
-
-	if err != nil {
-		return nil, err
-	}
-
-	jar.Save()
-	fmt.Printf("Traffic Ops Session Resumed (%s)\n", resp.Status)
-
-	return &to, nil
-}
-
-// Login to traffic_ops, the response should set the cookie for this session
-// automatically. Start with
-//     to := traffic_ops.Login("user", "passwd", true)
-// subsequent calls like to.GetData("datadeliveryservice") will be authenticated.
-func Login(toURL string, toUser string, toPasswd string, insecure bool) (*Session, error) {
-	credentials, err := loginCreds(toUser, toPasswd)
-	if err != nil {
-		return nil, err
-	}
-
-	options := cookiejar.Options{
-		PublicSuffixList: publicsuffix.List,
-	}
-
-	jar, err := cookiejar.New(&options)
-	if err != nil {
-		return nil, err
-	}
-
-	to := Session{
-		UserAgent: &http.Client{
-			Transport: &http.Transport{
-				TLSClientConfig: &tls.Config{InsecureSkipVerify: insecure},
-			},
-			Jar: jar,
-		},
-		URL:      toURL,
-		UserName: toUser,
-		Password: toPasswd,
-		Cache:    make(map[string]CacheEntry),
-	}
-
-	path := "/api/1.2/user/login"
-	resp, err := to.request("POST", path, credentials)
-	if err != nil {
-		return nil, err
-	}
-	defer resp.Body.Close()
-
-	var result Result
-	if err := json.NewDecoder(resp.Body).Decode(&result); err != nil {
-		return nil, err
-	}
-
-	success := false
-	for _, alert := range result.Alerts {
-		if alert.Level == "success" && alert.Text == "Successfully logged in." {
-			success = true
-			break
-		}
-	}
-
-	if !success {
-		err := fmt.Errorf("Login failed, result string: %+v", result)
-		return nil, err
-	}
-
-	jar.Save()
-
-	return &to, nil
-}
-
-// request performs the actual HTTP request to Traffic Ops
-func (to *Session) request(method, path string, body []byte) (*http.Response, error) {
-	url := fmt.Sprintf("%s%s", to.URL, path)
-
-	var req *http.Request
-	var err error
-
-	if body != nil {
-		req, err = http.NewRequest(method, url, bytes.NewBuffer(body))
-		if err != nil {
-			return nil, err
-		}
-		req.Header.Set("Content-Type", "application/json")
-	} else {
-		req, err = http.NewRequest(method, url, nil)
-		if err != nil {
-			return nil, err
-		}
-	}
-
-	resp, err := to.UserAgent.Do(req)
-	if err != nil {
-		return nil, err
-	}
-
-	if resp.StatusCode != http.StatusOK {
-		e := HTTPError{
-			HTTPStatus:     resp.Status,
-			HTTPStatusCode: resp.StatusCode,
-			URL:            url,
-		}
-		return nil, &e
-	}
-
-	return resp, nil
-}
-
-type CacheHitStatus string
-
-const CacheHitStatusHit = CacheHitStatus("hit")
-const CacheHitStatusExpired = CacheHitStatus("expired")
-const CacheHitStatusMiss = CacheHitStatus("miss")
-const CacheHitStatusInvalid = CacheHitStatus("")
-
-func (s CacheHitStatus) String() string {
-	return string(s)
-}
-
-func StringToCacheHitStatus(s string) CacheHitStatus {
-	s = strings.ToLower(s)
-	switch s {
-	case "hit":
-		return CacheHitStatusHit
-	case "expired":
-		return CacheHitStatusExpired
-	case "miss":
-		return CacheHitStatusMiss
-	default:
-		return CacheHitStatusInvalid
-	}
-}
-
-// getBytesWithTTL - get the path, and cache in the session
-// return from cache is found and the ttl isn't expired, otherwise get it and
-// store it in cache
-func (to *Session) getBytesWithTTL(path string, ttl int64) ([]byte, CacheHitStatus, error) {
-	var body []byte
-	var err error
-	var cacheHitStatus CacheHitStatus
-	getFresh := false
-	if cacheEntry, ok := to.Cache[path]; ok {
-		if cacheEntry.Entered > time.Now().Unix()-ttl {
-			cacheHitStatus = CacheHitStatusHit
-			body = cacheEntry.Bytes
-		} else {
-			cacheHitStatus = CacheHitStatusExpired
-			getFresh = true
-		}
-	} else {
-		to.Cache = make(map[string]CacheEntry)
-		cacheHitStatus = CacheHitStatusMiss
-		getFresh = true
-	}
-
-	if getFresh {
-		body, err = to.getBytes(path)
-		if err != nil {
-			return nil, CacheHitStatusInvalid, err
-		}
-
-		newEntry := CacheEntry{
-			Entered: time.Now().Unix(),
-			Bytes:   body,
-		}
-		to.Cache[path] = newEntry
-	}
-
-	return body, cacheHitStatus, nil
-}
-
-// GetBytes - get []bytes array for a certain path on the to session.
-// returns the raw body
-func (to *Session) getBytes(path string) ([]byte, error) {
-	resp, err := to.request("GET", path, nil)
-	if err != nil {
-		return nil, err
-	}
-	defer resp.Body.Close()
-
-	body, err := ioutil.ReadAll(resp.Body)
-	if err != nil {
-		return nil, err
-	}
-
-	return body, nil
-}