models

package
v0.0.0-...-2bde035 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Actual int
	Desire int
	RAM    int
}

App representation

type Apps

type Apps []App

type Org

type Org struct {
	Name        string
	MemoryQuota int
	MemoryUsage int
	Spaces      Spaces
}

func (*Org) AppsCount

func (org *Org) AppsCount() int

func (*Org) InstancesCount

func (org *Org) InstancesCount() int

func (*Org) RunningAppsCount

func (org *Org) RunningAppsCount() int

func (*Org) RunningInstancesCount

func (org *Org) RunningInstancesCount() int

func (*Org) ServicesCount

func (org *Org) ServicesCount() int

type OrgStats

type OrgStats struct {
	Name                      string
	MemoryQuota               int
	MemoryUsage               int
	Spaces                    Spaces
	DeployedAppsCount         int
	RunningAppsCount          int
	StoppedAppsCount          int
	DeployedAppInstancesCount int
	RunningAppInstancesCount  int
	StoppedAppInstancesCount  int
	ServicesCount             int
}

type Orgs

type Orgs []Org

func (Orgs) Stats

func (orgs Orgs) Stats(c chan OrgStats)

type Report

type Report struct {
	Orgs Orgs
}

func (*Report) CSV

func (report *Report) CSV(apiep string) string

func (*Report) String

func (report *Report) String() string

type Service

type Service struct {
	Label       string
	ServicePlan string
}

Service representation

type Services

type Services []Service

type Space

type Space struct {
	Name     string
	Apps     Apps
	Services Services
}

func (*Space) ConsumedMemory

func (space *Space) ConsumedMemory() int

func (*Space) InstancesCount

func (space *Space) InstancesCount() int

func (*Space) RunningAppsCount

func (space *Space) RunningAppsCount() int

func (*Space) RunningInstancesCount

func (space *Space) RunningInstancesCount() int

func (*Space) ServiceInstancesCount

func (space *Space) ServiceInstancesCount(serviceType string) int

func (*Space) ServicesCount

func (space *Space) ServicesCount() int

type SpaceStats

type SpaceStats struct {
	Name                      string
	DeployedAppsCount         int
	RunningAppsCount          int
	StoppedAppsCount          int
	DeployedAppInstancesCount int
	RunningAppInstancesCount  int
	StoppedAppInstancesCount  int
	ServicesCount             int
	ConsumedMemory            int
}

type Spaces

type Spaces []Space

func (Spaces) Stats

func (spaces Spaces) Stats(c chan SpaceStats, skipSIcount bool)

Jump to

Keyboard shortcuts

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