cc_client

package
v1.8.5 Latest Latest
Warning

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

Go to latest
Published: May 23, 2018 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"`
		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 (c *Client) GetAllAppGUIDs(token string) (map[string]struct{}, error)

func (*Client) GetAppSpaces added in v0.13.0

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

func (*Client) GetLiveAppGUIDs added in v0.16.0

func (c *Client) GetLiveAppGUIDs(token string, appGUIDs []string) (map[string]struct{}, error)

func (*Client) GetSpace added in v0.12.0

func (c *Client) GetSpace(token, spaceGUID string) (*api.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 api.Space) (*api.Space, error)

func (*Client) GetUserSpaces added in v0.13.0

func (c *Client) GetUserSpaces(token, userGUID string) (map[string]struct{}, 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 {
		Metadata struct {
			GUID string `json:"guid"`
		}
		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