controller

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPrefetchAllocationFunction added in v0.0.7

func GetPrefetchAllocationFunction(options opencost.AllocationOptions) func(c *Controller) error

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func NewController

func NewController(ctx context.Context, conf configuration.Config, fatal func(err error)) (*Controller, error)

func (*Controller) GetAllocation added in v0.0.7

func (this *Controller) GetAllocation(options *opencost.AllocationOptions) (allocation opencost.AllocationResponse, err error)

func (*Controller) GetCachedAllocation added in v0.0.7

func (this *Controller) GetCachedAllocation(options opencost.AllocationOptions) (allocation opencost.AllocationResponse, err error)

func (*Controller) GetCostContainers

func (c *Controller) GetCostContainers(userid string, costType model.CostType, controllerName string) (res model.CostContainers, err error)

func (*Controller) GetCostControllers

func (c *Controller) GetCostControllers(userid string, costType model.CostType) (res model.CostControllers, err error)

func (*Controller) GetCostControllersWithFilter added in v0.0.7

func (c *Controller) GetCostControllersWithFilter(filter FilterFuncType) (res model.CostControllers, err error)

func (*Controller) GetCostOverview

func (c *Controller) GetCostOverview(userid string) (res model.CostOverview, err error)

func (*Controller) GetCostTree

func (c *Controller) GetCostTree(userid string) (res model.CostTree, err error)

func (*Controller) GetFlowEstimation

func (c *Controller) GetFlowEstimation(authorization string, userid string, flowId string) (estimation *model.Estimation, err error)

func (*Controller) GetImportEstimation added in v0.0.5

func (c *Controller) GetImportEstimation(authorization string, userid string, importTypeId string) (estimation *model.Estimation, err error)

func (*Controller) GetProcessTree added in v0.0.7

func (c *Controller) GetProcessTree(userId string) (result model.CostTree, err error)

type FilterFuncType added in v0.0.7

type FilterFuncType = func(key string, allo opencost.AllocationEntry) (use bool, newName string)

Jump to

Keyboard shortcuts

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