app

package
v0.9.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2019 License: Apache-2.0 Imports: 2 Imported by: 27

Documentation

Index

Constants

View Source
const MEGABYTE = (1024 * 1024)

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	common.EntityCommon

	//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"`
	DockerImage         string `json:"docker_image,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 {
	//*common.BaseMetadataItem
	*common.Metadata
	*App
}

func NewAppMetadata

func NewAppMetadata(app App) *AppMetadata

func NewAppMetadataById

func NewAppMetadataById(appId string) *AppMetadata

func (*AppMetadata) GetName added in v0.9.0

func (metadataItem *AppMetadata) GetName() string

type AppMetadataManager

type AppMetadataManager struct {
	*common.CommonV2ResponseManager
}

func NewAppMetadataManager

func NewAppMetadataManager(mdGlobalManager common.MdGlobalManagerInterface) *AppMetadataManager

func (*AppMetadataManager) AllApps

func (mdMgr *AppMetadataManager) AllApps() []*AppMetadata

func (*AppMetadataManager) CreateMetadataEntityObject added in v0.9.0

func (mdMgr *AppMetadataManager) CreateMetadataEntityObject(guid string) common.IMetadata

func (*AppMetadataManager) CreateResourceObject added in v0.9.0

func (mdMgr *AppMetadataManager) CreateResourceObject() common.IResource

func (*AppMetadataManager) CreateResponseObject added in v0.9.0

func (mdMgr *AppMetadataManager) CreateResponseObject() common.IResponse

func (*AppMetadataManager) CreateTestData added in v0.8.8

func (mdMgr *AppMetadataManager) CreateTestData(dataSize int)

func (*AppMetadataManager) FindItem added in v0.9.0

func (mdMgr *AppMetadataManager) FindItem(guid string) *AppMetadata

func (*AppMetadataManager) NewItemById added in v0.9.0

func (mdMgr *AppMetadataManager) NewItemById(guid string) common.IMetadata

func (*AppMetadataManager) ProcessResource added in v0.9.0

func (mdMgr *AppMetadataManager) ProcessResource(resource common.IResource) common.IMetadata

func (*AppMetadataManager) ProcessResponse added in v0.9.0

func (mdMgr *AppMetadataManager) ProcessResponse(response common.IResponse, metadataArray []common.IMetadata) []common.IMetadata

type AppResource

type AppResource struct {
	Meta   common.Meta `json:"metadata"`
	Entity App         `json:"entity"`
}

type AppResponse

type AppResponse struct {
	Count     int           `json:"total_results"`
	Pages     int           `json:"total_pages"`
	NextUrl   string        `json:"next_url"`
	Resources []AppResource `json:"resources"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL