providers

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(path string, level hclog.Level) (proto.ProviderServiceClient, func(), error)

Types

type Config

type Config struct {
	AWS    string `env:"INFRACOST_CLI_PROVIDER_PLUGIN_AWS"`
	Google string `env:"INFRACOST_CLI_PROVIDER_PLUGIN_GOOGLE"`
	Azure  string `env:"INFRACOST_CLI_PROVIDER_PLUGIN_AZURERM"`

	AWSVersion    string `env:"INFRACOST_CLI_PROVIDER_PLUGIN_AWS_VERSION"`
	AzureVersion  string `env:"INFRACOST_CLI_PROVIDER_PLUGIN_AZURE_VERSION"`
	GoogleVersion string `env:"INFRACOST_CLI_PROVIDER_PLUGIN_GOOGLE_VERSION"`

	LoadAWS     func(level hclog.Level) (proto.ProviderServiceClient, func(), error)
	LoadGoogle  func(level hclog.Level) (proto.ProviderServiceClient, func(), error)
	LoadAzurerm func(level hclog.Level) (proto.ProviderServiceClient, func(), error)
}

func (*Config) ListFinopsPolicies

func (c *Config) ListFinopsPolicies(ctx context.Context, fn func(hclog.Level) (proto.ProviderServiceClient, func(), error)) ([]*proto.FinopsPolicy, error)

func (*Config) Process

func (c *Config) Process()

func (*Config) ProcessInput added in v0.0.3

func (c *Config) ProcessInput(ctx context.Context, provider proto.Provider, input *proto.Input, fn func(hclog.Level) (proto.ProviderServiceClient, func(), error), level hclog.Level) ([]*proto.Resource, []*proto.FinopsPolicyResult, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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