cc_client

package
v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 11, 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

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

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

func (*Client) GetLiveAppGUIDs

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

func (*Client) GetSpace

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

func (*Client) GetSpaceGUIDs

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

func (*Client) GetUserSpace

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

func (*Client) GetUserSpaces

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

type SpaceResponse

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

type SpacesResponse

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