blameplugin

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2016 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallAppsAPI added in v1.0.1

func CallAppsAPI(endpoint string, cli plugin.CliConnection) (res []string)

func PrettyColumnPrint added in v1.0.1

func PrettyColumnPrint(appStatusArray []AppStat, cli plugin.CliConnection, writer io.Writer)

Types

type AppEntity added in v1.0.1

type AppEntity struct {
	Name     string `json:"name"`
	SpaceUrl string `json:"space_url"`
}

type AppLocation added in v1.0.1

type AppLocation struct {
	Org   string
	Space string
}

func GetLocation added in v1.0.1

func GetLocation(guid string, cli plugin.CliConnection) (loc AppLocation)

type AppRecord added in v1.0.1

type AppRecord struct {
	Location     AppLocation
	AppInstances []AppStat
}

type AppResource added in v1.0.1

type AppResource struct {
	Metadata Metadata  `json:"metadata"`
	Entity   AppEntity `json:"entity"`
}

type AppStat

type AppStat struct {
	AppGUID     string
	AppInstance string
	State       string `json:"state"`
	Stats       Stats  `json:"stats"`
}

func CallStatsAPI added in v1.0.1

func CallStatsAPI(guid string, cli plugin.CliConnection, hostSelector string) (res []AppStat)

type Apps

type Apps struct {
	Total      float64       `json:"total_results"`
	TotalPages float64       `json:"total_pages"`
	NextURL    string        `json:"next_url"`
	Resources  []AppResource `json:"resources"`
}

type DiegoBlame

type DiegoBlame struct {
	Version string
	Writer  io.Writer
}

func (*DiegoBlame) GetMetadata

func (c *DiegoBlame) GetMetadata() plugin.PluginMetadata

func (*DiegoBlame) GetVersionType

func (c *DiegoBlame) GetVersionType() plugin.VersionType

func (*DiegoBlame) Run

func (c *DiegoBlame) Run(cli plugin.CliConnection, args []string)

type Entity added in v1.0.1

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

type Metadata

type Metadata struct {
	GUID string `json:"guid"`
}

type Resource

type Resource struct {
	Metadata Metadata `json:"metadata"`
	Entity   Entity   `json:"entity"`
}

type SpaceEntity added in v1.0.1

type SpaceEntity struct {
	Name            string `json:"name"`
	OrganizationUrl string `json:"organization_url"`
}

type SpaceResource added in v1.0.1

type SpaceResource struct {
	Metadata Metadata    `json:"metadata"`
	Entity   SpaceEntity `json:"entity"`
}

type Stats

type Stats struct {
	Usage     Usage    `json:"usage"`
	Name      string   `json:"name"`
	URIs      []string `json:"uris"`
	Host      string   `json:"host"`
	Port      float64  `json:"port"`
	Uptime    float64  `json:"uptime"`
	MemQuota  float64  `json:"mem_quota"`
	DiskQuota float64  `json:"disk_quota"`
	FDSQuota  float64  `json:"fds_quota"`
}

type Usage

type Usage struct {
	Disk float64   `json:"disk"`
	Mem  float64   `json:"mem"`
	CPU  float64   `json:"cpu"`
	Time time.Time `json:"time"`
}

Jump to

Keyboard shortcuts

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