providers

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: Apache-2.0 Imports: 16 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"`
}

func (*Config) ListFinopsPolicies

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

func (*Config) LoadAWS

func (c *Config) LoadAWS(level hclog.Level) (proto.ProviderServiceClient, func(), error)

func (*Config) LoadAzure

func (c *Config) LoadAzure(level hclog.Level) (proto.ProviderServiceClient, func(), error)

func (*Config) LoadGCP

func (c *Config) LoadGCP(level hclog.Level) (proto.ProviderServiceClient, func(), error)

func (*Config) Process

func (c *Config) Process(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)

Jump to

Keyboard shortcuts

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