billing

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ServiceNotFound = errors.New("service not found")

Functions

func GetPricing

func GetPricing(ctx context.Context, billingService *billingv1.CloudCatalogClient, serviceName string) []*billingpb.Sku

GetPricing will collect all the pricing information for a given service and return a list of skus.

func GetServiceName

func GetServiceName(ctx context.Context, billingService *billingv1.CloudCatalogClient, name string) (string, error)

GetServiceName will search for a service by the display name and return the full name. The full name is need by the GetPricing method to collect all the pricing information for a given service.

Types

type FakeCloudCatalogServer

type FakeCloudCatalogServer struct {
	billingpb.UnimplementedCloudCatalogServer
}

func (*FakeCloudCatalogServer) ListServices

func (*FakeCloudCatalogServer) ListSkus

type FakeCloudCatalogServerSlimResults

type FakeCloudCatalogServerSlimResults struct {
	billingpb.UnimplementedCloudCatalogServer
}

func (*FakeCloudCatalogServerSlimResults) ListServices

func (*FakeCloudCatalogServerSlimResults) ListSkus

Jump to

Keyboard shortcuts

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