Versions in this module Expand all Collapse all v1 v1.1.0 Jan 22, 2019 Changes in this version + const AggregatedMetricPath type APIHelper + func (helper *APIHelper) GetAggregatedMetrics(metricName string, startTime, endTime int64, desc bool, page uint64) (bool, [][]string, error) v1.0.0 Apr 17, 2018 Changes in this version + const HealthPath + const HistoryPath + const MetricPath + const PolicyPath + var ConfigFile = func() string + func SetEndpoint(url string, skipSSLValidation bool) error + func UnsetEndpoint() error + type APIEndpoint struct + SkipSSLValidation bool + URL string + func GetEndpoint() (*APIEndpoint, error) + type APIHelper struct + Client *CFClient + Endpoint *APIEndpoint + Logger trace.Printer + func NewAPIHelper(endpoint *APIEndpoint, cfclient *CFClient, traceEnabled string) *APIHelper + func (helper *APIHelper) CheckHealth() error + func (helper *APIHelper) CreatePolicy(data interface{}) error + func (helper *APIHelper) DeletePolicy() error + func (helper *APIHelper) DoRequest(req *http.Request) (*http.Response, error) + func (helper *APIHelper) GetHistory(startTime, endTime int64, desc bool, page uint64) (bool, [][]string, error) + func (helper *APIHelper) GetMetrics(metricName string, startTime, endTime int64, desc bool, page uint64) (bool, [][]string, error) + func (helper *APIHelper) GetPolicy() ([]byte, error) + type CFClient struct + AppId string + AppName string + AuthToken string + CCAPIEndpoint string + IsSSLDisabled bool + func NewCFClient(connection Connection) (*CFClient, error) + func (client *CFClient) Configure(appName string) error + type Connection interface + AccessToken func() (string, error) + ApiEndpoint func() (string, error) + GetApp func(string) (plugin_models.GetAppModel, error) + IsLoggedIn func() (bool, error) + IsSSLDisabled func() (bool, error) Incompatible versions in this module v3.0.0+incompatible Nov 8, 2019