Documentation ¶
Index ¶
- Constants
- func AppMetadataSize() int
- func GetStringValueByFieldName(n interface{}, field_name string) (string, bool)
- func GetTotalDiskAllStartedApps() float64
- func GetTotalMemoryAllStartedApps() float64
- func LoadAppCache(cliConnection plugin.CliConnection)
- func LoadOrgCache(cliConnection plugin.CliConnection)
- func LoadSpaceCache(cliConnection plugin.CliConnection)
- type App
- type AppResource
- type AppResponse
- type Meta
- type Org
- type OrgResource
- type OrgResponse
- type Space
- type SpaceResource
- type SpaceResponse
Constants ¶
View Source
const MEGABYTE = (1024 * 1024)
Variables ¶
This section is empty.
Functions ¶
func AppMetadataSize ¶
func AppMetadataSize() int
func GetStringValueByFieldName ¶ added in v0.5.8
func GetTotalDiskAllStartedApps ¶ added in v0.5.5
func GetTotalDiskAllStartedApps() float64
func GetTotalMemoryAllStartedApps ¶ added in v0.5.4
func GetTotalMemoryAllStartedApps() float64
func LoadAppCache ¶
func LoadAppCache(cliConnection plugin.CliConnection)
func LoadOrgCache ¶
func LoadOrgCache(cliConnection plugin.CliConnection)
func LoadSpaceCache ¶
func LoadSpaceCache(cliConnection plugin.CliConnection)
Types ¶
type App ¶
type App struct { Guid string `json:"guid"` Name string `json:"name,omitempty"` SpaceGuid string `json:"space_guid,omitempty"` SpaceName string OrgGuid string OrgName string StackGuid string `json:"stack_guid,omitempty"` MemoryMB float64 `json:"memory,omitempty"` DiskQuotaMB float64 `json:"disk_quota,omitempty"` Environment map[string]interface{} `json:"environment_json,omitempty"` Instances float64 `json:"instances,omitempty"` State string `json:"state,omitempty"` EnableSsh bool `json:"enable_ssh,omitempty"` PackageState string `json:"package_state,omitempty"` StagingFailedReason string `json:"staging_failed_reason,omitempty"` StagingFailedDesc string `json:"staging_failed_description,omitempty"` DetectedStartCmd string `json:"detected_start_command,omitempty"` //DockerCredentials string `json:"docker_credentials_json,omitempty"` //audit.app.create event fields Console bool `json:"console,omitempty"` Buildpack string `json:"buildpack,omitempty"` DetectedBuildpack string `json:"detected_buildpack,omitempty"` HealthcheckType string `json:"health_check_type,omitempty"` HealthcheckTimeout float64 `json:"health_check_timeout,omitempty"` Production bool `json:"production,omitempty"` }
func FindAppMetadata ¶
type AppResource ¶
type AppResponse ¶
type AppResponse struct { Count int `json:"total_results"` Pages int `json:"total_pages"` NextUrl string `json:"next_url"` Resources []AppResource `json:"resources"` }
type Org ¶
func FindOrgMetadata ¶
type OrgResource ¶
type OrgResponse ¶
type OrgResponse struct { Count int `json:"total_results"` Pages int `json:"total_pages"` Resources []OrgResource `json:"resources"` }
type Space ¶
type Space struct { Guid string `json:"guid"` Name string `json:"name"` OrgGuid string `json:"organization_guid"` OrgName string }
func FindSpaceMetadata ¶
type SpaceResource ¶
type SpaceResponse ¶
type SpaceResponse struct { Count int `json:"total_results"` Pages int `json:"total_pages"` NextUrl string `json:"next_url"` Resources []SpaceResource `json:"resources"` }
Click to show internal directories.
Click to hide internal directories.