plugin

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package plugin implements the FinFocus cost source service for Vantage.

Index

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 New

func New(version string) *Plugin

New creates a Vantage plugin instance.

func (*Plugin) ConsumesPerRequestCredentials

func (p *Plugin) ConsumesPerRequestCredentials()

ConsumesPerRequestCredentials opts into credentials in request metadata.

func (*Plugin) EstimateCost

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) Name

func (p *Plugin) Name() string

Name returns the plugin discovery name.

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.

Jump to

Keyboard shortcuts

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