Documentation
¶
Overview ¶
Package plugin implements the FinFocus cost source service for Vantage.
Index ¶
- type Plugin
- func (p *Plugin) ConsumesPerRequestCredentials()
- func (p *Plugin) EstimateCost(ctx context.Context, _ *pbc.EstimateCostRequest) (*pbc.EstimateCostResponse, error)
- func (p *Plugin) GetActualCost(ctx context.Context, req *pbc.GetActualCostRequest) (*pbc.GetActualCostResponse, error)
- func (p *Plugin) GetPricingSpec(ctx context.Context, _ *pbc.GetPricingSpecRequest) (*pbc.GetPricingSpecResponse, error)
- func (p *Plugin) GetProjectedCost(ctx context.Context, _ *pbc.GetProjectedCostRequest) (*pbc.GetProjectedCostResponse, error)
- func (p *Plugin) Name() string
- func (p *Plugin) Supports(ctx context.Context, req *pbc.SupportsRequest) (*pbc.SupportsResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin is the Vantage cost source. Cost retrieval is implemented separately from the server skeleton so the API client can be injected and tested.
func (*Plugin) ConsumesPerRequestCredentials ¶
func (p *Plugin) ConsumesPerRequestCredentials()
ConsumesPerRequestCredentials opts into credentials in request metadata.
func (*Plugin) EstimateCost ¶
func (p *Plugin) EstimateCost(ctx context.Context, _ *pbc.EstimateCostRequest) (*pbc.EstimateCostResponse, error)
EstimateCost is unsupported because this plugin reports imported actuals.
func (*Plugin) GetActualCost ¶
func (p *Plugin) GetActualCost(ctx context.Context, req *pbc.GetActualCostRequest) (*pbc.GetActualCostResponse, error)
GetActualCost retrieves Vantage costs for the requested resource and period.
func (*Plugin) GetPricingSpec ¶
func (p *Plugin) GetPricingSpec( ctx context.Context, _ *pbc.GetPricingSpecRequest, ) (*pbc.GetPricingSpecResponse, error)
GetPricingSpec is unsupported because Vantage is not a pricing catalog.
func (*Plugin) GetProjectedCost ¶
func (p *Plugin) GetProjectedCost( ctx context.Context, _ *pbc.GetProjectedCostRequest, ) (*pbc.GetProjectedCostResponse, error)
GetProjectedCost is unsupported because Vantage provides actual billing data.
func (*Plugin) Supports ¶
func (p *Plugin) Supports(ctx context.Context, req *pbc.SupportsRequest) (*pbc.SupportsResponse, error)
Supports checks whether the resource provider can be represented in Vantage.