Documentation ¶
Index ¶
- type APIHelper
- func (api *APIHelper) GetOrgMemoryUsage(cli plugin.CliConnection, org Organization) (float64, error)
- func (api *APIHelper) GetOrgSpaces(cli plugin.CliConnection, spacesURL string) ([]Space, error)
- func (api *APIHelper) GetOrgs(cli plugin.CliConnection) ([]Organization, error)
- func (api *APIHelper) GetQuotaMemoryLimit(cli plugin.CliConnection, quotaURL string) (float64, error)
- func (api *APIHelper) GetSpaceApps(cli plugin.CliConnection, appsURL string) ([]App, error)
- type App
- type CFAPIHelper
- type Organization
- type Space
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIHelper ¶
type APIHelper struct{}
APIHelper implementation
func (*APIHelper) GetOrgMemoryUsage ¶
func (api *APIHelper) GetOrgMemoryUsage(cli plugin.CliConnection, org Organization) (float64, error)
GetOrgMemoryUsage returns the amount of memory (in MB) that the org is consuming
func (*APIHelper) GetOrgSpaces ¶
GetOrgSpaces returns the spaces in an org.
func (*APIHelper) GetOrgs ¶
func (api *APIHelper) GetOrgs(cli plugin.CliConnection) ([]Organization, error)
GetOrgs returns a struct that represents critical fields in the JSON
func (*APIHelper) GetQuotaMemoryLimit ¶
func (api *APIHelper) GetQuotaMemoryLimit(cli plugin.CliConnection, quotaURL string) (float64, error)
GetQuotaMemoryLimit retruns the amount of memory (in MB) that the org is allowed
func (*APIHelper) GetSpaceApps ¶
GetSpaceApps returns the apps in a space
type CFAPIHelper ¶
type CFAPIHelper interface { GetOrgs(plugin.CliConnection) ([]Organization, error) GetQuotaMemoryLimit(plugin.CliConnection, string) (float64, error) GetOrgMemoryUsage(plugin.CliConnection, Organization) (float64, error) GetOrgSpaces(plugin.CliConnection, string) ([]Space, error) GetSpaceApps(plugin.CliConnection, string) ([]App, error) }
CFAPIHelper to wrap cf curl results
type Organization ¶
Organization representation
Click to show internal directories.
Click to hide internal directories.