metadata

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2016 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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 GetStringValueByFieldName(n interface{}, field_name string) (string, bool)

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 AllApps

func AllApps() []App

func FindAppMetadata

func FindAppMetadata(appId string) App

type AppResource

type AppResource struct {
	Meta   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"`
}

type Meta

type Meta struct {
	Guid      string `json:"guid"`
	CreatedAt string `json:"created_at"`
	UpdatedAt string `json:"updated_at"`
}

type Org

type Org struct {
	Guid string `json:"guid"`
	Name string `json:"name"`
}

func FindOrgMetadata

func FindOrgMetadata(orgGuid string) Org

type OrgResource

type OrgResource struct {
	Meta   Meta `json:"metadata"`
	Entity Org  `json:"entity"`
}

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

func FindSpaceMetadata(spaceGuid string) Space

type SpaceResource

type SpaceResource struct {
	Meta   Meta  `json:"metadata"`
	Entity Space `json:"entity"`
}

type SpaceResponse

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

Jump to

Keyboard shortcuts

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