Documentation
¶
Index ¶
- type AppsV3Response
- type Client
- func (c *Client) GetAllAppGUIDs(token string) (map[string]struct{}, error)
- func (c *Client) GetAppSpaces(token string, appGUIDs []string) (map[string]string, error)
- func (c *Client) GetLiveAppGUIDs(token string, appGUIDs []string) (map[string]struct{}, error)
- func (c *Client) GetSpace(token, spaceGUID string) (*models.Space, error)
- func (c *Client) GetSpaceGUIDs(token string, appGUIDs []string) ([]string, error)
- func (c *Client) GetUserSpace(token, userGUID string, space models.Space) (*models.Space, error)
- func (c *Client) GetUserSpaces(token, userGUID string) (map[string]struct{}, error)
- type SpaceResponse
- type SpacesResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppsV3Response ¶
type AppsV3Response struct {
Pagination struct {
TotalPages int `json:"total_pages"`
First struct {
Href string `json:"href"`
} `json:"first"`
Last struct {
Href string `json:"href"`
} `json:"last"`
Next struct {
Href string `json:"href"`
} `json:"next"`
} `json:"pagination"`
Resources []struct {
GUID string `json:"guid"`
Links struct {
Space struct {
Href string `json:"href"`
} `json:"space"`
} `json:"links"`
} `json:"resources"`
}
type Client ¶
type Client struct {
Logger lager.Logger
JSONClient json_client.JsonClient
}
func (*Client) GetAllAppGUIDs ¶
func (*Client) GetAppSpaces ¶
func (*Client) GetLiveAppGUIDs ¶
func (*Client) GetSpaceGUIDs ¶
func (*Client) GetUserSpace ¶
type SpaceResponse ¶
type SpacesResponse ¶
Click to show internal directories.
Click to hide internal directories.