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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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