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.