servicecatalog

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FieldExternalPlanName = "spec.externalName"
	FieldServiceClassRef  = "spec.clusterServiceClassRef.name"
)
View Source
const (
	FieldExternalClassName = "spec.externalName"
)
View Source
const (
	FieldServicePlanRef = "spec.clusterServicePlanRef.name"
)

Variables

This section is empty.

Functions

func BuildParameters

func BuildParameters(params map[string]string) *runtime.RawExtension

BuildParameters converts a map of variable assignments to a byte encoded json document, which is what the ServiceCatalog API consumes.

func BuildParametersFrom

func BuildParametersFrom(secrets map[string]string) []v1beta1.ParametersFromSource

BuildParametersFrom converts a map of secrets names to secret keys to the type consumed by the ServiceCatalog API.

Types

type SDK

type SDK struct {
	ServiceCatalogClient *clientset.Clientset
}

SDK wrapper around the generated Go client for the Kubernetes Service Catalog

func (*SDK) Bind

func (sdk *SDK) Bind(namespace, bindingName, instanceName, secretName string,
	params map[string]string, secrets map[string]string) (*v1beta1.ServiceBinding, error)

func (*SDK) BindingParentHierarchy

BindingParentHierarchy retrieves all ancestor resources of a binding.

func (*SDK) DeleteBinding

func (sdk *SDK) DeleteBinding(ns, bindingName string) error

func (*SDK) Deprovision

func (sdk *SDK) Deprovision(namespace, instanceName string) error

func (*SDK) InstanceParentHierarchy

InstanceParentHierarchy retrieves all ancestor resources of an instance.

func (*SDK) InstanceToServiceClassAndPlan

func (sdk *SDK) InstanceToServiceClassAndPlan(instance *v1beta1.ServiceInstance,
) (*v1beta1.ClusterServiceClass, *v1beta1.ClusterServicePlan, error)

InstanceToServiceClassAndPlan retrieves the parent class and plan for an instance.

func (*SDK) Provision

func (sdk *SDK) Provision(namespace, instanceName, className, planName string,
	params map[string]string, secrets map[string]string) (*v1beta1.ServiceInstance, error)

func (*SDK) RetrieveBinding

func (sdk *SDK) RetrieveBinding(ns, name string) (*v1beta1.ServiceBinding, error)

func (*SDK) RetrieveBindings

func (sdk *SDK) RetrieveBindings(ns string) (*v1beta1.ServiceBindingList, error)

func (*SDK) RetrieveBindingsByInstance

func (sdk *SDK) RetrieveBindingsByInstance(instance *v1beta1.ServiceInstance,
) ([]v1beta1.ServiceBinding, error)

RetrieveBindingsByInstance retrieves all child bindings for an instance.

func (*SDK) RetrieveBroker

func (sdk *SDK) RetrieveBroker(name string) (*v1beta1.ClusterServiceBroker, error)

func (*SDK) RetrieveBrokerByClass

func (sdk *SDK) RetrieveBrokerByClass(class *v1beta1.ClusterServiceClass,
) (*v1beta1.ClusterServiceBroker, error)

RetrieveBrokerByClass retrieves the parent broker of a class.

func (*SDK) RetrieveBrokers

func (sdk *SDK) RetrieveBrokers() ([]v1beta1.ClusterServiceBroker, error)

func (*SDK) RetrieveClassByID

func (sdk *SDK) RetrieveClassByID(uuid string) (*v1beta1.ClusterServiceClass, error)

func (*SDK) RetrieveClassByName

func (sdk *SDK) RetrieveClassByName(name string) (*v1beta1.ClusterServiceClass, error)

func (*SDK) RetrieveClassByPlan

func (sdk *SDK) RetrieveClassByPlan(plan *v1beta1.ClusterServicePlan,
) (*v1beta1.ClusterServiceClass, error)

func (*SDK) RetrieveClasses

func (sdk *SDK) RetrieveClasses() ([]v1beta1.ClusterServiceClass, error)

func (*SDK) RetrieveInstance

func (sdk *SDK) RetrieveInstance(ns, name string) (*v1beta1.ServiceInstance, error)

func (*SDK) RetrieveInstanceByBinding

func (sdk *SDK) RetrieveInstanceByBinding(b *v1beta1.ServiceBinding,
) (*v1beta1.ServiceInstance, error)

RetrieveInstanceByBinding retrieves the parent instance for a binding.

func (*SDK) RetrieveInstances

func (sdk *SDK) RetrieveInstances(ns string) (*v1beta1.ServiceInstanceList, error)

func (*SDK) RetrieveInstancesByPlan

func (sdk *SDK) RetrieveInstancesByPlan(plan *v1beta1.ClusterServicePlan,
) ([]v1beta1.ServiceInstance, error)

RetrieveInstancesByPlan retrieves all instances of a plan.

func (*SDK) RetrievePlanByID

func (sdk *SDK) RetrievePlanByID(uuid string) (*v1beta1.ClusterServicePlan, error)

func (*SDK) RetrievePlanByName

func (sdk *SDK) RetrievePlanByName(name string) (*v1beta1.ClusterServicePlan, error)

func (*SDK) RetrievePlans

func (sdk *SDK) RetrievePlans() ([]v1beta1.ClusterServicePlan, error)

func (*SDK) RetrievePlansByClass

func (sdk *SDK) RetrievePlansByClass(class *v1beta1.ClusterServiceClass,
) ([]v1beta1.ClusterServicePlan, error)

RetrievePlansByClass retrieves all plans for a class.

func (*SDK) ServiceCatalog

func (sdk *SDK) ServiceCatalog() v1beta1.ServicecatalogV1beta1Interface

ServiceCatalog is the underlying generated Service Catalog versioned interface It should be used instead of accessing the client directly.

func (*SDK) Sync

func (sdk *SDK) Sync(name string, retries int) error

func (*SDK) Unbind

func (sdk *SDK) Unbind(ns, instanceName string) error

Jump to

Keyboard shortcuts

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