cc_client

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppsV3Response added in v0.12.0

type AppsV3Response struct {
	Pagination struct {
		TotalPages int `json:"total_pages"`
	} `json:"pagination"`
	Resources []struct {
		GUID  string `json:"guid"`
		Links struct {
			Space struct {
				Href string `json:"href"`
			} `json:"space"`
		} `json:"links"`
	} `json:"resources"`
}

type BadCCResponse

type BadCCResponse struct {
	StatusCode     int
	CCResponseBody string
}

func (BadCCResponse) Error

func (r BadCCResponse) Error() string

type Client

type Client struct {
	Host       string
	HTTPClient httpClient
	Logger     lager.Logger
}

func (*Client) GetAllAppGUIDs

func (c *Client) GetAllAppGUIDs(token string) (map[string]interface{}, error)

func (*Client) GetSpace added in v0.12.0

func (c *Client) GetSpace(token, spaceGUID string) (*models.Space, error)

func (*Client) GetSpaceGUIDs added in v0.12.0

func (c *Client) GetSpaceGUIDs(token string, appGUIDs []string) ([]string, error)

func (*Client) GetUserSpace added in v0.12.0

func (c *Client) GetUserSpace(token, userGUID string, space models.Space) (*models.Space, error)

type SpaceResponse added in v0.12.0

type SpaceResponse struct {
	Entity struct {
		Name             string `json:"name"`
		OrganizationGUID string `json:"organization_guid"`
	} `json:"entity"`
}

type SpacesResponse added in v0.12.0

type SpacesResponse struct {
	Resources []struct {
		Entity struct {
			Name             string `json:"name"`
			OrganizationGUID string `json:"organization_guid"`
		} `json:"entity"`
	} `json:"resources"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL