models

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2017 License: Apache-2.0 Imports: 1 Imported by: 5

Documentation

Index

Constants

View Source
const (
	Started = "STARTED"
	Stopped = "STOPPED"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	ApplicationEntity   `json:"entity"`
	ApplicationMetadata `json:"metadata"`
}

type ApplicationEntity

type ApplicationEntity struct {
	Name string `json:"name"`
	//BuildpackUrl         string
	//Command              string
	Diego bool
	//DetectedStartCommand string
	//DiskQuota            int64 // in Megabytes
	//EnvironmentVars      map[string]interface{}
	//InstanceCount        int
	//Memory               int64 // in Megabytes
	//RunningInstances     int
	//HealthCheckTimeout   int
	State     string `json:"state"`
	SpaceGuid string `json:"space_guid"`
	//PackageUpdatedAt     *time.Time
	//PackageState         string
	//StagingFailedReason  string
	//AppPorts             []int
	//Stack                *GetApp_Stack
	//Instances            []GetApp_AppInstanceFields
	//Routes               []GetApp_RouteSummary
	//Services             []GetApp_ServiceSummary
	HasRoutes bool
}

type ApplicationMetadata

type ApplicationMetadata struct {
	Guid string `json:"guid"`
}

type Applications

type Applications []Application

type ApplicationsParser

type ApplicationsParser struct{}

func (ApplicationsParser) Parse

func (a ApplicationsParser) Parse(body []byte) (Applications, error)

type ApplicationsResponse

type ApplicationsResponse struct {
	Resources Applications `json:"resources"`
}

type Organization

type Organization struct {
	OrganizationEntity   `json:"entity"`
	OrganizationMetadata `json:"metadata"`
}

type OrganizationEntity

type OrganizationEntity struct {
	Name string `json:"name"`
}

type OrganizationMetadata

type OrganizationMetadata struct {
	Guid string `json:"guid"`
}

type Space

type Space struct {
	SpaceEntity   `json:"entity"`
	SpaceMetadata `json:"metadata"`
}

type SpaceEntity

type SpaceEntity struct {
	Name             string       `json:"name"`
	OrganizationGuid string       `json:"organization_guid"`
	Organization     Organization `json:"organization"`
}

type SpaceMetadata

type SpaceMetadata struct {
	Guid string `json:"guid"`
}

type Spaces

type Spaces []Space

type SpacesParser

type SpacesParser struct{}

func (SpacesParser) Parse

func (a SpacesParser) Parse(body []byte) (Spaces, error)

type SpacesResponse

type SpacesResponse struct {
	Resources Spaces `json:"resources"`
}

Jump to

Keyboard shortcuts

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