Documentation
¶
Overview ¶
Package marketplace provides access to the resources provided by service brokers for consumption by developers.
Index ¶
- type Client
- func (c *Client) BrokerName(service v1beta1.ServiceInstance) (string, error)
- func (c *Client) ListClusterPlans(filter ListPlanOptions) ([]servicecatalogv1beta1.ClusterServicePlan, error)
- func (c *Client) ListNamespacedPlans(namespace string, filter ListPlanOptions) ([]servicecatalogv1beta1.ServicePlan, error)
- func (c *Client) Marketplace(namespace string) (*KfMarketplace, error)
- type ClientInterface
- type KfMarketplace
- type ListPlanOptions
- type SClientFactory
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 an implementation of ClientInterface that works with the Service Catalog.
func (*Client) BrokerName ¶
func (c *Client) BrokerName(service v1beta1.ServiceInstance) (string, error)
BrokerName fetches the service broker name for a service.
func (*Client) ListClusterPlans ¶
func (c *Client) ListClusterPlans(filter ListPlanOptions) ([]servicecatalogv1beta1.ClusterServicePlan, error)
ListClusterPlans gets cluster-wide plans matching the given filter.
func (*Client) ListNamespacedPlans ¶
func (c *Client) ListNamespacedPlans(namespace string, filter ListPlanOptions) ([]servicecatalogv1beta1.ServicePlan, error)
ListNamespacedPlans gets namespaced plans matching the given filter.
func (*Client) Marketplace ¶
func (c *Client) Marketplace(namespace string) (*KfMarketplace, error)
Marketplace lists available services and plans in the marketplace.
type ClientInterface ¶
type ClientInterface interface {
// Marketplace lists available services and plans in the marketplace.
Marketplace(namespace string) (*KfMarketplace, error)
// BrokerName fetches the service broker name for a service.
BrokerName(service v1beta1.ServiceInstance) (string, error)
// ListClusterPlans gets cluster-wide plans matching the given filter.
ListClusterPlans(filter ListPlanOptions) ([]servicecatalogv1beta1.ClusterServicePlan, error)
// ListNamespacedPlans gets namespaced plans matching the given filter.
ListNamespacedPlans(namespace string, filter ListPlanOptions) ([]servicecatalogv1beta1.ServicePlan, error)
}
ClientInterface is a client capable of interacting with service catalog services and mapping the CF to Kubernetes concepts.
func NewClient ¶
func NewClient(sclient SClientFactory, kclient servicecatalogclient.Interface) ClientInterface
NewClient creates a new client capable of interacting siwht service catalog services.
type KfMarketplace ¶
type KfMarketplace struct {
Services []servicecatalog.Class
Plans []servicecatalog.Plan
}
KfMarketplace contains information to describe the services and plans available in the catalog.
type ListPlanOptions ¶
ListPlanOptions holds additional filtering options used when listing plans.
type SClientFactory ¶
type SClientFactory func(namespace string) servicecatalog.SvcatClient
SClientFactory creates a Service Catalog client.