models

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2016 License: Apache-2.0 Imports: 1 Imported by: 3

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"`
	Diego     bool
	State     string `json:"state"`
	SpaceGuid string `json:"space_guid"`
}

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