Documentation ¶
Index ¶
- type API
- func (api *API) AcceptInvite(token string) error
- func (api *API) Context() context.Context
- func (api *API) Events(scopeID manifold.ID) ([]*events.Event, error)
- 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)
- func (api *API) Roles(teamID *manifold.ID) ([]models.RoleLabel, error)
- type Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { Activity *activity.Activity Analytics *analytics.Analytics Billing *billing.Billing Catalog *catalog.Catalog Identity *identity.Identity Marketplace *marketplace.Marketplace Provisioning *provisioning.Provisioning Connector *connector.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) AcceptInvite ¶ added in v0.11.0
AcceptInvite accepts an invitation to join a team. A nil error means the invitation was accepted correctly.
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.
func (*API) FetchRegions ¶
FetchRegions returns a list of all available regions.
type Client ¶
type Client int
Client represents one of the clients generated from the spec.
const ( // Activity represents the analytics client Activity Client = iota // Analytics represents the analytics client Analytics // Billing represents the billing client Billing // Catalog represents the catalog client Catalog // Connector represents the connector client Connector // Identity represents the identity client Identity // Marketplace represents the marketplace client Marketplace // Provisioning represents the provisioning client Provisioning )