Versions in this module Expand all Collapse all v0 v0.0.1 May 31, 2016 Changes in this version + var NotLoggedInError = errors.New("You must be logged in") + func NewHttpClient(cliConnection Connection) (*http.Client, error) + type Client struct + AuthToken string + BaseUrl *url.URL + func NewClient(connection Connection) (*Client, error) + func (c *Client) Authorize(next func() (*http.Request, error)) func() (*http.Request, error) + func (c *Client) HandleFiltersAndParameters(next func() (*http.Request, error)) func(filter Filter, params map[string]interface{}) (*http.Request, error) + func (c *Client) NewGetAppsRequest() (*http.Request, error) + func (c *Client) NewGetSpacesRequest() (*http.Request, error) + type CloudControllerClient interface + Do func(*http.Request) (*http.Response, error) + type Connection interface + AccessToken func() (string, error) + ApiEndpoint func() (string, error) + CliCommandWithoutTerminalOutput func(args ...string) ([]string, error) + GetApp func(string) (plugin_models.GetAppModel, error) + GetOrg func(string) (plugin_models.GetOrg_Model, error) + GetSpace func(string) (plugin_models.GetSpace_Model, error) + IsLoggedIn func() (bool, error) + IsSSLDisabled func() (bool, error) + Username func() (string, error) + type EqualFilter struct + Name string + Value interface{} + func (f EqualFilter) ToFilterQueryParam() string + type Filter interface + ToFilterQueryParam func() string + type Filters []Filter + func (f Filters) ToFilterQueryParam() string + type InclusionFilter struct + Name string + Values []interface{} + func (f InclusionFilter) ToFilterQueryParam() string + type PageParser struct + func (p PageParser) Parse(body []byte) (PaginatedResponse, error) + type PaginatedParser interface + Parse func([]byte) (PaginatedResponse, error) + type PaginatedRequester struct + Client CloudControllerClient + PageParser PaginatedParser + RequestFactory RequestFactory + func NewPaginatedRequester(cliConnection Connection, requestFactory RequestFactory) (*PaginatedRequester, error) + func (p *PaginatedRequester) Do(filter Filter, params map[string]interface{}) ([][]byte, error) + type PaginatedResponse struct + TotalPages int + type RequestFactory func(Filter, map[string]interface{}) (*http.Request, error)