Documentation ¶
Index ¶
- Variables
- func NewHttpClient(cliConnection Connection) (*http.Client, error)
- type Client
- 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
- type Connection
- type EqualFilter
- type Filter
- type Filters
- type InclusionFilter
- type PageParser
- type PaginatedParser
- type PaginatedRequester
- type PaginatedResponse
- type RequestFactory
Constants ¶
This section is empty.
Variables ¶
View Source
var NotLoggedInError = errors.New("You must be logged in")
Functions ¶
func NewHttpClient ¶
func NewHttpClient(cliConnection Connection) (*http.Client, error)
Types ¶
type Client ¶
func NewClient ¶
func NewClient(connection Connection) (*Client, error)
func (*Client) HandleFiltersAndParameters ¶
type CloudControllerClient ¶
type Connection ¶
type Connection interface { IsLoggedIn() (bool, error) IsSSLDisabled() (bool, error) ApiEndpoint() (string, error) AccessToken() (string, error) Username() (string, error) CliCommandWithoutTerminalOutput(args ...string) ([]string, error) GetApp(string) (plugin_models.GetAppModel, error) GetOrg(string) (plugin_models.GetOrg_Model, error) GetSpace(string) (plugin_models.GetSpace_Model, error) GetCurrentSpace() (plugin_models.Space, error) }
type EqualFilter ¶
type EqualFilter struct { Name string Value interface{} }
func (EqualFilter) ToFilterQueryParam ¶
func (f EqualFilter) ToFilterQueryParam() string
type InclusionFilter ¶
type InclusionFilter struct { Name string Values []interface{} }
func (InclusionFilter) ToFilterQueryParam ¶
func (f InclusionFilter) ToFilterQueryParam() string
type PageParser ¶
type PageParser struct{}
func (PageParser) Parse ¶
func (p PageParser) Parse(body []byte) (PaginatedResponse, error)
type PaginatedParser ¶
type PaginatedParser interface {
Parse([]byte) (PaginatedResponse, error)
}
type PaginatedRequester ¶
type PaginatedRequester struct { RequestFactory RequestFactory Client CloudControllerClient PageParser PaginatedParser }
func NewPaginatedRequester ¶
func NewPaginatedRequester(cliConnection Connection, requestFactory RequestFactory) (*PaginatedRequester, error)
type PaginatedResponse ¶
type PaginatedResponse struct {
TotalPages int `json:"total_pages"`
}
Directories ¶
Path | Synopsis |
---|---|
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter
|
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter |
Click to show internal directories.
Click to hide internal directories.