api

package
v0.0.0-...-19c687c Latest Latest
Warning

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

Go to latest
Published: May 25, 2017 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Services = ResourceType("services")
	Apps     = ResourceType("apps")
)

Variables

This section is empty.

Functions

func Router

func Router(m *mux.Router, tsuruAPI tsuru.TsuruAPI)

Types

type AppUsage

type AppUsage struct {
	Plan  string
	Usage float64
	Cost  UsageCost
}

type PoolUsage

type PoolUsage struct {
	Pool  string
	Month string `json:",omitempty"`
	Usage float64
}

type ResourceType

type ResourceType string

type ServiceUsage

type ServiceUsage struct {
	Service string
	Plan    string
	Usage   float64
	Cost    UsageCost
}

type TeamAppUsage

type TeamAppUsage struct {
	Team  string
	Month string
	Usage []AppUsage
}

type TeamGroup

type TeamGroup struct {
	Name  string
	Teams []string
	Pools []string
}

func FindTeamGroup

func FindTeamGroup(name string) (*TeamGroup, error)

type TeamPoolUsage

type TeamPoolUsage struct {
	Month string
	Usage []PoolUsage
}

type TeamServiceUsage

type TeamServiceUsage struct {
	Team  string
	Month string
	Usage []ServiceUsage
}

type UsageCost

type UsageCost struct {
	MeasureUnit string
	UnitCost    float64
	TotalCost   float64
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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