models

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: Apache-2.0 Imports: 0 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 {
	Name             string
	URLs             []string `json:"urls"`
	Memory           int64    `json:"memory"`
	TotalInstances   int      `json:"instances"`
	RunningInstances int      `json:"running_instances"`
	IsDiego          bool     `json:"diego"`
	State            string
}

type AppsAndServices

type AppsAndServices struct {
	Apps     []App
	Services []ServiceInstance
}

type Container

type Container struct {
	Name    string
	Group   ContainerGroup
	Memory  int64
	Created int64
	Image   string
	State   string `json:"ContainerState"`
}

type ContainerGroup

type ContainerGroup struct {
	Name string
}

type ContainersQuota

type ContainersQuota struct {
	InstancesCountLimit  int   `json:"containers"`
	CPUCountLimit        int   `json:"vcpu"`
	MemoryLimitInMB      int64 `json:"memory_MB"`
	FloatingIpCountLimit int   `json:"floating_ips"`
}

type ContainersQuotaAndUsage

type ContainersQuotaAndUsage struct {
	Limits ContainersQuota `json:"Limits"`
	Usage  ContainersUsage `json:"Usage"`
}

type ContainersUsage

type ContainersUsage struct {
	TotalInstances        int   `json:"containers"`
	RunningInstances      int   `json:"running"`
	CPUCount              int   `json:"vcpu"`
	MemoryInMB            int64 `json:"memory_MB"`
	FloatingIpsCount      int   `json:"floating_ips"`
	BoundFloatingIpsCount int   `json:"floating_ips_bound"`
}

type OrgUsage

type OrgUsage struct {
	Org    string `json:"name"`
	Spaces []SpaceUsage
}

func (OrgUsage) AppsCount

func (o OrgUsage) AppsCount() int

func (OrgUsage) ServicesCount

func (o OrgUsage) ServicesCount() int

func (OrgUsage) TotalMemoryUsed

func (o OrgUsage) TotalMemoryUsed() int64

type ServiceInstance

type ServiceInstance struct {
	Name        string
	ServicePlan ServicePlan `json:"service_plan"`
}

type ServiceOffering

type ServiceOffering struct {
	Label string
}

type ServicePlan

type ServicePlan struct {
	Name            string
	ServiceOffering ServiceOffering `json:"service"`
}

type SpaceUsage

type SpaceUsage struct {
	Space        string `json:"name"`
	Apps         int    `json:"app_count"`
	Services     int    `json:"service_count"`
	MemoryInDev  int64  `json:"mem_dev_total"`
	MemoryInProd int64  `json:"mem_prod_total"`
}

Jump to

Keyboard shortcuts

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