_pricing

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package _pricing provides AWS client management functions for the pricing AWS service.

The Client() is a wrapper on pricing.NewFromConfig(), which creates & caches the client.

The Delete() clears the cached client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client

func Client(provider providers.CredsProvider, optFns ...func(*pricing.Options)) (*pricing.Client, error)

Client builds or returns the singleton pricing client for the supplied provider If functional options are supplied, they are passed as-is to the underlying NewFromConfig(...) for the corresponding client

func Delete

func Delete(provider providers.CredsProvider) error

Delete removes the cached pricing client for the supplied provider; This foreces the subsequent calls to Client() for the same provider to recreate & return a new instnce.

func Must added in v0.0.3

func Must(provider providers.CredsProvider, optFns ...func(*pricing.Options)) *pricing.Client

Must wraps the _pricing.Client( ) function & panics if a non-nil error is returned.

func Refresh added in v0.0.3

func Refresh(provider providers.CredsProvider, optFns ...func(*pricing.Options)) (*pricing.Client, error)

Refresh discards the cached pricing client if it exists, builds & returns a new singleton instance

Types

This section is empty.

Jump to

Keyboard shortcuts

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