Documentation ¶
Index ¶
- Constants
- Variables
- func FindApp(orgName string, spaceName string, appName string) map[string]string
- func ScaleApp(appName string, instances int)
- func UAAToken() string
- type AppDetail
- type AppStat
- type AppStatsResponse
- type AppSummaryResponse
- type ErrorResponse
- type GenericDomain
- type GenericResponse
- type GenericRoute
- type GenericUri
- type GenericUsage
- type QueryResponse
- type ServiceDetail
- type ServicePlanDetail
- type ServicePlanProviderDetail
- type SpaceAppQueryResponse
- type SpaceAppResponse
- type SpaceResponse
- type SpaceSummaryResponse
Constants ¶
View Source
const TOKEN_VALIDITY_DURATION int64 = 1800
Variables ¶
View Source
var (
DEBUG = false
)
Functions ¶
Types ¶
type AppDetail ¶
type AppDetail struct { Guid string `json:"guid"` Urls []string `json:"urls"` Routes []GenericRoute `json:"routes"` Services []string `json:"service_names"` Running int `json:"running_instances"` Name string `json:"name"` Detected_buildpack string `json:"detected_buildpack"` State string `json:"state"` Memory int `json:"memory"` Instances int `json:"instances"` Disk int `json:"disk_quota"` Environment_json string `json:"environment_json"` Command string `json:"command"` Detected_start_command string `json:"detected_start_command"` }
type AppStatsResponse ¶
type AppSummaryResponse ¶
type AppSummaryResponse struct { Metadata struct { Guid string `json:"guid"` Url string `json:"url"` } `json:"metadata"` Entity struct { Name string `json:"name"` //Urls []GenericUrl `json:"urls"` //Routes []GenericRoute `json:"routes"` //Running int `json:"running_instances"` Buildpack string `json:"buildpack"` Detected_buildpack string `json:"detected_buildpack"` Environment_json string `json:"environment_json"` Memory int `json:"memory"` Instances int `json:"instances"` Disk int `json:"disk_quota"` State string `json:"state"` Command string `json:"command"` Detected_start_command string `json:"detected_start_command"` } `json:"entity"` }
type ErrorResponse ¶
type GenericDomain ¶
type GenericDomain struct {
Name string `json:"name"`
}
type GenericResponse ¶
type GenericRoute ¶
type GenericRoute struct { Host string `json:"host"` Domain GenericDomain `struct:"domain"` }
type GenericUri ¶
type GenericUri struct {
Uri string `json:"uri"`
}
type GenericUsage ¶
type QueryResponse ¶
type QueryResponse struct {
Resources []GenericResponse `struct:"resources"`
}
type ServiceDetail ¶
type ServiceDetail struct { Guid string `json:"guid"` Name string `json:"name"` Bound_App_Count int `json:"bound_app_count"` Plan ServicePlanDetail `json:"service_plan"` }
type ServicePlanDetail ¶
type ServicePlanDetail struct { Guid string `json:"guid"` Name string `json:"name"` ServiceProvider ServicePlanProviderDetail `json:"service"` }
type SpaceAppQueryResponse ¶
type SpaceAppQueryResponse struct {
Resources []SpaceAppResponse `struct:"resources"`
}
type SpaceAppResponse ¶
type SpaceResponse ¶
type SpaceSummaryResponse ¶
type SpaceSummaryResponse struct { Guid string `json:"guid"` Name string `json:"name"` Apps []AppDetail `struct:"apps"` Services []ServiceDetail `struct:"services"` }
Click to show internal directories.
Click to hide internal directories.