metadata

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppMetadataSize

func AppMetadataSize() int

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"`
	//Environment map[string]interface{} `json:"environment_json"`
	SpaceGuid string `json:"space_guid"`
	SpaceName string
	OrgGuid   string
	OrgName   string
}

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