Documentation
¶
Index ¶
- Variables
- type APIHelper
- func (api *APIHelper) GetOrg(name string) (Organization, error)
- func (api *APIHelper) GetOrgMemoryUsage(org Organization) (float64, error)
- func (api *APIHelper) GetOrgSpaces(spacesURL string) ([]Space, error)
- func (api *APIHelper) GetOrgs() ([]Organization, error)
- func (api *APIHelper) GetQuotaMemoryLimit(quotaURL string) (float64, error)
- func (api *APIHelper) GetSpaceApps(appsURL string) ([]App, error)
- type App
- type CFAPIHelper
- type Organization
- type Space
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrOrgNotFound = errors.New("organization not found")
)
Functions ¶
This section is empty.
Types ¶
type APIHelper ¶
type APIHelper struct {
// contains filtered or unexported fields
}
APIHelper implementation
func (*APIHelper) GetOrg ¶
func (api *APIHelper) GetOrg(name string) (Organization, error)
GetOrg returns a struct that represents critical fields in the JSON
func (*APIHelper) GetOrgMemoryUsage ¶
func (api *APIHelper) GetOrgMemoryUsage(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() ([]Organization, error)
GetOrgs returns a struct that represents critical fields in the JSON
func (*APIHelper) GetQuotaMemoryLimit ¶
GetQuotaMemoryLimit retruns the amount of memory (in MB) that the org is allowed
type CFAPIHelper ¶
type CFAPIHelper interface {
GetOrgs() ([]Organization, error)
GetOrg(string) (Organization, error)
GetQuotaMemoryLimit(string) (float64, error)
GetOrgMemoryUsage(Organization) (float64, error)
GetOrgSpaces(string) ([]Space, error)
GetSpaceApps(string) ([]App, error)
}
CFAPIHelper to wrap cf curl results
func New ¶
func New(cli plugin.CliConnection) CFAPIHelper
type Organization ¶
Organization representation
Click to show internal directories.
Click to hide internal directories.