capi

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(host string, client *http.Client) *Client

func (*Client) GetOrgGUIDs

func (c *Client) GetOrgGUIDs(logger lager.Logger) ([]string, error)

func (*Client) GetOrgRoleAssignments

func (c *Client) GetOrgRoleAssignments(logger lager.Logger, orgGUID string) ([]models.RoleAssignment, error)

func (*Client) GetSpaceGUIDs

func (c *Client) GetSpaceGUIDs(logger lager.Logger, orgGUID string) ([]string, error)

func (*Client) GetSpaceRoleAssignments

func (c *Client) GetSpaceRoleAssignments(logger lager.Logger, spaceGUID string) ([]models.RoleAssignment, error)

type RequestGenerator

type RequestGenerator struct {
	Host string
}

func NewRequestGenerator

func NewRequestGenerator(host string) *RequestGenerator

func (*RequestGenerator) NewGetRequest

func (rg *RequestGenerator) NewGetRequest(logger lager.Logger, route string) (*http.Request, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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