cloudinfo

package
v0.0.0-...-e7c744b Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a custom client for cloudinfo endpoints.

func NewClient

func NewClient(apiClient *cloudinfo.APIClient) *Client

NewClient returns a new Client.

func (*Client) GetProductDetails

func (c *Client) GetProductDetails(
	ctx context.Context,
	cloud string,
	service string,
	region string,
	productType string,
) (cloudinfo.ProductDetails, error)

GetProductDetails returns details for a single product.

func (*Client) GetServiceRegions

func (c *Client) GetServiceRegions(ctx context.Context, cloudProvider string, service string) ([]string, error)

GetServiceRegions returns the cloud provider regions where the specified service is available.

Jump to

Keyboard shortcuts

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