Documentation ¶
Index ¶
- Constants
- func BuildParameters(params map[string]string) *runtime.RawExtension
- func BuildParametersFrom(secrets map[string]string) []v1beta1.ParametersFromSource
- type SDK
- func (sdk *SDK) Bind(namespace, bindingName, instanceName, secretName string, ...) (*v1beta1.ServiceBinding, error)
- func (sdk *SDK) BindingParentHierarchy(binding *v1beta1.ServiceBinding) (*v1beta1.ServiceInstance, *v1beta1.ClusterServiceClass, ...)
- func (sdk *SDK) DeleteBinding(ns, bindingName string) error
- func (sdk *SDK) Deprovision(namespace, instanceName string) error
- func (sdk *SDK) InstanceParentHierarchy(instance *v1beta1.ServiceInstance) (*v1beta1.ClusterServiceClass, *v1beta1.ClusterServicePlan, ...)
- func (sdk *SDK) InstanceToServiceClassAndPlan(instance *v1beta1.ServiceInstance) (*v1beta1.ClusterServiceClass, *v1beta1.ClusterServicePlan, error)
- func (sdk *SDK) Provision(namespace, instanceName, className, planName string, params map[string]string, ...) (*v1beta1.ServiceInstance, error)
- func (sdk *SDK) RetrieveBinding(ns, name string) (*v1beta1.ServiceBinding, error)
- func (sdk *SDK) RetrieveBindings(ns string) (*v1beta1.ServiceBindingList, error)
- func (sdk *SDK) RetrieveBindingsByInstance(instance *v1beta1.ServiceInstance) ([]v1beta1.ServiceBinding, error)
- func (sdk *SDK) RetrieveBroker(name string) (*v1beta1.ClusterServiceBroker, error)
- func (sdk *SDK) RetrieveBrokerByClass(class *v1beta1.ClusterServiceClass) (*v1beta1.ClusterServiceBroker, error)
- func (sdk *SDK) RetrieveBrokers() ([]v1beta1.ClusterServiceBroker, error)
- func (sdk *SDK) RetrieveClassByID(uuid string) (*v1beta1.ClusterServiceClass, error)
- func (sdk *SDK) RetrieveClassByName(name string) (*v1beta1.ClusterServiceClass, error)
- func (sdk *SDK) RetrieveClassByPlan(plan *v1beta1.ClusterServicePlan) (*v1beta1.ClusterServiceClass, error)
- func (sdk *SDK) RetrieveClasses() ([]v1beta1.ClusterServiceClass, error)
- func (sdk *SDK) RetrieveInstance(ns, name string) (*v1beta1.ServiceInstance, error)
- func (sdk *SDK) RetrieveInstanceByBinding(b *v1beta1.ServiceBinding) (*v1beta1.ServiceInstance, error)
- func (sdk *SDK) RetrieveInstances(ns string) (*v1beta1.ServiceInstanceList, error)
- func (sdk *SDK) RetrieveInstancesByPlan(plan *v1beta1.ClusterServicePlan) ([]v1beta1.ServiceInstance, error)
- func (sdk *SDK) RetrievePlanByID(uuid string) (*v1beta1.ClusterServicePlan, error)
- func (sdk *SDK) RetrievePlanByName(name string) (*v1beta1.ClusterServicePlan, error)
- func (sdk *SDK) RetrievePlans() ([]v1beta1.ClusterServicePlan, error)
- func (sdk *SDK) RetrievePlansByClass(class *v1beta1.ClusterServiceClass) ([]v1beta1.ClusterServicePlan, error)
- func (sdk *SDK) ServiceCatalog() v1beta1.ServicecatalogV1beta1Interface
- func (sdk *SDK) Sync(name string, retries int) error
- func (sdk *SDK) Unbind(ns, instanceName string) error
Constants ¶
const ( FieldExternalPlanName = "spec.externalName" FieldServiceClassRef = "spec.clusterServiceClassRef.name" )
const (
FieldExternalClassName = "spec.externalName"
)
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 ¶
SDK wrapper around the generated Go client for the Kubernetes Service Catalog
func (*SDK) BindingParentHierarchy ¶
func (sdk *SDK) BindingParentHierarchy(binding *v1beta1.ServiceBinding, ) (*v1beta1.ServiceInstance, *v1beta1.ClusterServiceClass, *v1beta1.ClusterServicePlan, *v1beta1.ClusterServiceBroker, error)
BindingParentHierarchy retrieves all ancestor resources of a binding.
func (*SDK) DeleteBinding ¶
func (*SDK) Deprovision ¶
func (*SDK) InstanceParentHierarchy ¶
func (sdk *SDK) InstanceParentHierarchy(instance *v1beta1.ServiceInstance, ) (*v1beta1.ClusterServiceClass, *v1beta1.ClusterServicePlan, *v1beta1.ClusterServiceBroker, error)
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) 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.