Documentation
¶
Index ¶
- type API
- func (api *API) Context() context.Context
- func (api *API) FetchPlan(label string, productID string) (*models.Plan, error)
- func (api *API) FetchPlans(productID string) ([]*models.Plan, error)
- func (api *API) FetchProduct(label string, providerID string) (*models.Product, error)
- func (api *API) FetchProducts(providerID string) ([]*models.Product, error)
- func (api *API) FetchProvider(label string) (*models.Provider, error)
- func (api *API) FetchProviders() ([]*models.Provider, error)
- func (api *API) FetchRegions() ([]*models.Region, error)
- type Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { Analytics *analytics.Analytics Billing *bClient.Billing Catalog *cClient.Catalog Identity *iClient.Identity Marketplace *mClient.Marketplace Provisioning *pClient.Provisioning Connector *conClient.Connector // contains filtered or unexported fields }
API is a composition of all clients generated from the spec. Use the `New` function to load the necessary clients for the operation.
func New ¶
New loads all clients passed on the list. If any of the clients fails to load an error is returned.
func (*API) FetchPlans ¶
FetchPlans returns a list of all plans for a product.
func (*API) FetchProduct ¶
FetchProduct returns a product based on a label.
func (*API) FetchProducts ¶
FetchProducts returns a list of all products for a provider.
func (*API) FetchProvider ¶
FetchProvider returns a provider based on a label.
func (*API) FetchProviders ¶
FetchProviders returns a list of all available providers.
type Client ¶
type Client int
Client represents one of the clients generated from the spec.
const ( // Analytics represents the analytics client Analytics Client = iota // Billing represents the billing client Billing // Catalog represents the catalog client Catalog // Identity represents the identity client Identity // Marketplace represents the marketplace client Marketplace // Provisioning represents the provisioning client Provisioning // Connector represents the connector client Connector )
Click to show internal directories.
Click to hide internal directories.