usages

package
v2.0.33+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddUsageHandler

func AddUsageHandler(prefix string, app *appsrv.Application)

Types

type Usage

type Usage map[string]interface{}

func BaremetalUsage

func BaremetalUsage(userCred mcclient.TokenCredential, rangeObj db.IStandaloneModel, hostTypes []string) Usage

func GuestNormalUsage

func GuestNormalUsage(prefix string, cred mcclient.TokenCredential, rangeObj db.IStandaloneModel, hostTypes []string) Usage

func GuestPendingDeleteUsage

func GuestPendingDeleteUsage(prefix string, cred mcclient.TokenCredential, rangeObj db.IStandaloneModel, hostTypes []string) Usage

func GuestReadyUsage

func GuestReadyUsage(prefix string, cred mcclient.TokenCredential, rangeObj db.IStandaloneModel, hostTypes []string) Usage

func GuestRunningUsage

func GuestRunningUsage(prefix string, cred mcclient.TokenCredential, rangeObj db.IStandaloneModel, hostTypes []string) Usage

func HostAllUsage

func HostAllUsage(userCred mcclient.TokenCredential, rangeObj db.IStandaloneModel, hostTypes []string) Usage

func HostEnabledUsage

func HostEnabledUsage(userCred mcclient.TokenCredential, rangeObj db.IStandaloneModel, hostTypes []string) Usage

func IsolatedDeviceUsage

func IsolatedDeviceUsage(rangeObj db.IStandaloneModel, hostType []string) Usage

func NetworkUsage

func NetworkUsage(userCred mcclient.TokenCredential, rangeObj db.IStandaloneModel) Usage

func ReportGeneralUsage

func ReportGeneralUsage(userCred mcclient.TokenCredential, rangeObj db.IStandaloneModel, hostTypes []string) (count Usage, err error)

func ReportHostUsage

func ReportHostUsage(userCred mcclient.TokenCredential, host db.IStandaloneModel, hostTypes []string) (Usage, error)

func ReportSchedtagUsage

func ReportSchedtagUsage(userCred mcclient.TokenCredential, schedtag db.IStandaloneModel, hostTypes []string) (Usage, error)

func ReportVCenterUsage

func ReportVCenterUsage(userCred mcclient.TokenCredential, vcenter db.IStandaloneModel, hostTypes []string) (Usage, error)

func ReportWireUsage

func ReportWireUsage(userCred mcclient.TokenCredential, wire db.IStandaloneModel, hostTypes []string) (Usage, error)

func ReportZoneUsage

func ReportZoneUsage(userCred mcclient.TokenCredential, zone db.IStandaloneModel, hostTypes []string) (Usage, error)

func StorageUsage

func StorageUsage(rangeObj db.IStandaloneModel, hostTypes []string) Usage

func WireUsage

func WireUsage(rangeObj db.IStandaloneModel, hostTypes []string) Usage

func ZoneUsage

func ZoneUsage() Usage

func (Usage) Add

func (u Usage) Add(key string, value interface{}) Usage

func (Usage) Get

func (u Usage) Get(key string) interface{}

func (Usage) Include

func (u Usage) Include(nus ...Usage) Usage

Jump to

Keyboard shortcuts

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