models

package
v0.0.0-...-dfd5709 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2022 License: Apache-2.0 Imports: 4 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 {
	Ram       int
	Instances int
	Running   bool
}

type Org

type Org struct {
	Name        string
	MemoryQuota int
	MemoryUsage int
	Spaces      []Space
}

func (*Org) AppsCount

func (org *Org) AppsCount() int

func (*Org) InstancesCount

func (org *Org) InstancesCount() int

type Report

type Report struct {
	Orgs []Org
}

func (*Report) CSV

func (report *Report) CSV() string

func (*Report) String

func (report *Report) String() string

type Space

type Space struct {
	Apps []App
	Name string
}

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

Jump to

Keyboard shortcuts

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