marketplace

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package marketplace provides access to the resources provided by service brokers for consumption by developers.

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 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

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

type ListPlanOptions struct {
	PlanName    string
	ServiceName string
	BrokerName  string
}

ListPlanOptions holds additional filtering options used when listing plans.

type SClientFactory

type SClientFactory func(namespace string) servicecatalog.SvcatClient

SClientFactory creates a Service Catalog client.

Directories

Path Synopsis
Package fake is a generated GoMock package.
Package fake is a generated GoMock package.

Jump to

Keyboard shortcuts

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