Documentation ¶
Index ¶
- func GetPrefetchAllocationFunction(options opencost.AllocationOptions) func(c *Controller) error
- type Controller
- func (this *Controller) GetAllocation(options *opencost.AllocationOptions) (allocation opencost.AllocationResponse, err error)
- func (this *Controller) GetCachedAllocation(options opencost.AllocationOptions) (allocation opencost.AllocationResponse, err error)
- func (c *Controller) GetCostContainers(userid string, costType model.CostType, controllerName string) (res model.CostContainers, err error)
- func (c *Controller) GetCostControllers(userid string, costType model.CostType) (res model.CostControllers, err error)
- func (c *Controller) GetCostControllersWithFilter(filter FilterFuncType) (res model.CostControllers, err error)
- func (c *Controller) GetCostOverview(userid string) (res model.CostOverview, err error)
- func (c *Controller) GetCostTree(userid string) (res model.CostTree, err error)
- func (c *Controller) GetFlowEstimation(authorization string, userid string, flowId string) (estimation *model.Estimation, err error)
- func (c *Controller) GetImportEstimation(authorization string, userid string, importTypeId string) (estimation *model.Estimation, err error)
- func (c *Controller) GetProcessTree(userId string) (result model.CostTree, err error)
- type FilterFuncType
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)
Click to show internal directories.
Click to hide internal directories.