Documentation ¶
Index ¶
- Constants
- type App
- type AppMetadata
- type AppMetadataManager
- func (mdMgr *AppMetadataManager) AllApps() []*AppMetadata
- func (mdMgr *AppMetadataManager) AppMetadataSize() int
- func (mdMgr *AppMetadataManager) FindAppMetadata(appId string) *AppMetadata
- func (mdMgr *AppMetadataManager) FindAppMetadataInternal(appId string, requestLoadIfNotFound bool) *AppMetadata
- func (mdMgr *AppMetadataManager) GetAppMetadataInternal(cliConnection plugin.CliConnection, appId string) (*AppMetadata, error)
- func (mdMgr *AppMetadataManager) GetAppMetadataMap() map[string]*AppMetadata
- func (mdMgr *AppMetadataManager) LoadAppCache(cliConnection plugin.CliConnection)
- type AppResource
- type AppResponse
Constants ¶
View Source
const MEGABYTE = (1024 * 1024)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { Guid string `json:"guid"` Name string `json:"name,omitempty"` SpaceGuid string `json:"space_guid,omitempty"` 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"` //app.crash event fields //Index float64 `json:"index,omitempty"` //ExitStatus string `json:"exit_status,omitempty"` //ExitDescription string `json:"exit_description,omitempty"` //ExitReason string `json:"reason,omitempty"` // "package_updated_at": "2016-11-15T19:56:52Z", PackageUpdatedAt string `json:"package_updated_at,omitempty"` }
type AppMetadata ¶
type AppMetadata struct { *App //IsolationSegmentGuid string // TODO: Make this private CacheTime time.Time }
func GetAppsMetadataFromUrl ¶
func GetAppsMetadataFromUrl(cliConnection plugin.CliConnection, url string) ([]*AppMetadata, error)
func NewAppMetadata ¶
func NewAppMetadata(app App) *AppMetadata
func NewAppMetadataById ¶
func NewAppMetadataById(appId string) *AppMetadata
type AppMetadataManager ¶
type AppMetadataManager struct {
// contains filtered or unexported fields
}
func NewAppMetadataManager ¶
func NewAppMetadataManager() *AppMetadataManager
func (*AppMetadataManager) AllApps ¶
func (mdMgr *AppMetadataManager) AllApps() []*AppMetadata
func (*AppMetadataManager) AppMetadataSize ¶
func (mdMgr *AppMetadataManager) AppMetadataSize() int
func (*AppMetadataManager) FindAppMetadata ¶
func (mdMgr *AppMetadataManager) FindAppMetadata(appId string) *AppMetadata
func (*AppMetadataManager) FindAppMetadataInternal ¶
func (mdMgr *AppMetadataManager) FindAppMetadataInternal(appId string, requestLoadIfNotFound bool) *AppMetadata
func (*AppMetadataManager) GetAppMetadataInternal ¶
func (mdMgr *AppMetadataManager) GetAppMetadataInternal(cliConnection plugin.CliConnection, appId string) (*AppMetadata, error)
func (*AppMetadataManager) GetAppMetadataMap ¶
func (mdMgr *AppMetadataManager) GetAppMetadataMap() map[string]*AppMetadata
func (*AppMetadataManager) LoadAppCache ¶
func (mdMgr *AppMetadataManager) LoadAppCache(cliConnection plugin.CliConnection)
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"` }
Click to show internal directories.
Click to hide internal directories.