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) (Spaces, error)
- func (api *APIHelper) GetOrgs() (Orgs, error)
- func (api *APIHelper) GetQuotaMemoryLimit(quotaURL string) (float64, error)
- func (api *APIHelper) GetSpaceAppsAndServices(summaryURL string) (Apps, Services, error)
- func (api *APIHelper) GetTarget() string
- type App
- type Apps
- type CFAPIHelper
- type Organization
- type Orgs
- type Service
- type Services
- type Space
- type Spaces
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) GetQuotaMemoryLimit ¶
GetQuotaMemoryLimit retruns the amount of memory (in MB) that the org is allowed
func (*APIHelper) GetSpaceAppsAndServices ¶
GetSpaceAppsAndServices returns the apps and the services in a space
type CFAPIHelper ¶
type CFAPIHelper interface { GetTarget() string GetOrgs() (Orgs, error) GetOrg(string) (Organization, error) GetQuotaMemoryLimit(string) (float64, error) GetOrgMemoryUsage(Organization) (float64, error) GetOrgSpaces(string) (Spaces, error) GetSpaceAppsAndServices(string) (Apps, Services, error) }
CFAPIHelper to wrap cf curl results
func New ¶
func New(cli plugin.CliConnection) CFAPIHelper
type Organization ¶
Organization representation
type Orgs ¶
type Orgs []Organization
Click to show internal directories.
Click to hide internal directories.