Documentation ¶
Index ¶
- type SDK
- func (sdk *SDK) Bind(namespace, bindingName, instanceName, secretName string, ...) (*templates.TemplatedBinding, error)
- func (sdk *SDK) BindingCache() templateslisters.TemplatedBindingLister
- func (sdk *SDK) Cache() templatesinformer.Interface
- func (sdk *SDK) DeleteTemplatedBinding(ns, bindingName string) error
- func (sdk *SDK) Deprovision(namespace, instanceName string) error
- func (sdk *SDK) GetBindingFromCache(namespace, name string) (*templates.TemplatedBinding, error)
- func (sdk *SDK) GetBindingOwner(svcBnd *servicecatalog.ServiceBinding) (*templates.TemplatedBinding, error)
- func (sdk *SDK) GetBindingTemplate(ns string, cluster, broker bool, name string) (t templates.BindingTemplateInterface, err error)
- func (sdk *SDK) GetBindingTemplateByServiceType(serviceType, namespace string) (*templates.BindingTemplate, error)
- func (sdk *SDK) GetBindingTemplates(ns string, cluster, broker bool, serviceType string) ([]templates.BindingTemplateInterface, error)
- func (sdk *SDK) GetBrokerBindingTemplatesByServiceType(serviceType string) (*templates.BrokerBindingTemplateList, error)
- func (sdk *SDK) GetBrokerInstanceTemplatesByServiceType(serviceType string) (*templates.BrokerInstanceTemplateList, error)
- func (sdk *SDK) GetClusterBindingTemplateByServiceType(serviceType string) (*templates.ClusterBindingTemplate, error)
- func (sdk *SDK) GetClusterInstanceTemplateByServiceType(serviceType string) (*templates.ClusterInstanceTemplate, error)
- func (sdk *SDK) GetInstanceFromCache(namespace, name string) (*templates.TemplatedInstance, error)
- func (sdk *SDK) GetInstanceTemplate(ns string, cluster, broker bool, name string) (t templates.InstanceTemplateInterface, err error)
- func (sdk *SDK) GetInstanceTemplateByServiceType(serviceType, namespace string) (*templates.InstanceTemplate, error)
- func (sdk *SDK) GetInstanceTemplates(ns string, cluster, broker bool, serviceType string) ([]templates.InstanceTemplateInterface, error)
- func (sdk *SDK) GetManagedServiceBinding(tbnd *templates.TemplatedBinding) (bnd *servicecatalog.ServiceBinding, err error)
- func (sdk *SDK) GetManagedServiceInstance(tinst *templates.TemplatedInstance) (inst *servicecatalog.ServiceInstance, err error)
- func (sdk *SDK) Init(stopCh <-chan struct{}) error
- func (sdk *SDK) InstanceCache() templateslisters.TemplatedInstanceLister
- func (sdk *SDK) Provision(namespace, instanceName, serviceType, className, planName string, ...) (*templates.TemplatedInstance, error)
- func (sdk *SDK) RetrieveBindingTemplate(ns, name string) (*templates.BindingTemplate, error)
- func (sdk *SDK) RetrieveBindingTemplates(ns, serviceType string) (*templates.BindingTemplateList, error)
- func (sdk *SDK) RetrieveBrokerBindingTemplate(name string) (*templates.BrokerBindingTemplate, error)
- func (sdk *SDK) RetrieveBrokerBindingTemplates() (*templates.BrokerBindingTemplateList, error)
- func (sdk *SDK) RetrieveBrokerInstanceTemplate(name string) (*templates.BrokerInstanceTemplate, error)
- func (sdk *SDK) RetrieveBrokerInstanceTemplatesByServiceType() (*templates.BrokerInstanceTemplateList, error)
- func (sdk *SDK) RetrieveClusterBindingTemplate(name string) (*templates.ClusterBindingTemplate, error)
- func (sdk *SDK) RetrieveClusterBindingTemplates() (*templates.ClusterBindingTemplateList, error)
- func (sdk *SDK) RetrieveClusterInstanceTemplate(name string) (*templates.ClusterInstanceTemplate, error)
- func (sdk *SDK) RetrieveClusterInstanceTemplates() (*templates.ClusterInstanceTemplateList, error)
- func (sdk *SDK) RetrieveInstanceTemplate(ns, name string) (*templates.InstanceTemplate, error)
- func (sdk *SDK) RetrieveInstanceTemplates(ns, serviceType string) (*templates.InstanceTemplateList, error)
- func (sdk *SDK) RetrieveTemplatedBinding(ns, name string) (*templates.TemplatedBinding, error)
- func (sdk *SDK) RetrieveTemplatedBindings(ns string) (*templates.TemplatedBindingList, error)
- func (sdk *SDK) RetrieveTemplatedBindingsByInstance(instance *templates.TemplatedInstance) ([]templates.TemplatedBinding, error)
- func (sdk *SDK) RetrieveTemplatedInstance(ns, name string) (*templates.TemplatedInstance, error)
- func (sdk *SDK) RetrieveTemplatedInstanceByBinding(b *templates.TemplatedBinding) (*templates.TemplatedInstance, error)
- func (sdk *SDK) RetrieveTemplatedInstances(ns string) (*templates.TemplatedInstanceList, error)
- func (sdk *SDK) TemplatedBindingParentHierarchy(tbnd *templates.TemplatedBinding) (*templates.TemplatedInstance, *servicecatalog.ClusterServiceClass, ...)
- func (sdk *SDK) TemplatedInstanceParentHierarchy(tinst *templates.TemplatedInstance) (*servicecatalog.ClusterServiceClass, *servicecatalog.ClusterServicePlan, ...)
- func (sdk *SDK) Templates() templatesinterfaces.TemplatesExperimentalInterface
- func (sdk *SDK) TouchTemplatedInstance(ns, name string, retries int) error
- func (sdk *SDK) Unbind(ns, instanceName string) ([]templates.TemplatedBinding, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SDK ¶
type SDK struct { Client templatesclient.Interface Factory templatesfactory.SharedInformerFactory // contains filtered or unexported fields }
SDK wrapper around the generated Go client for the Service Catalog Templates API
func New ¶
func New(client templatesclient.Interface, factory templatesfactory.SharedInformerFactory, svcatSDK *servicecatalogsdk.SDK) *SDK
func (*SDK) Bind ¶
func (sdk *SDK) Bind(namespace, bindingName, instanceName, secretName string, params map[string]string, secrets map[string]string) (*templates.TemplatedBinding, error)
Bind an instance to a secret.
func (*SDK) BindingCache ¶
func (sdk *SDK) BindingCache() templateslisters.TemplatedBindingLister
func (*SDK) Cache ¶
func (sdk *SDK) Cache() templatesinformer.Interface
func (*SDK) DeleteTemplatedBinding ¶
DeleteBinding by name.
func (*SDK) Deprovision ¶
Deprovision deletes an instance.
func (*SDK) GetBindingFromCache ¶
func (sdk *SDK) GetBindingFromCache(namespace, name string) (*templates.TemplatedBinding, error)
GetTemplatedBindingFromCache retrieves a TemplatedBinding by name from the informer cache.
func (*SDK) GetBindingOwner ¶
func (sdk *SDK) GetBindingOwner(svcBnd *servicecatalog.ServiceBinding) (*templates.TemplatedBinding, error)
func (*SDK) GetBindingTemplate ¶
func (*SDK) GetBindingTemplateByServiceType ¶
func (sdk *SDK) GetBindingTemplateByServiceType(serviceType, namespace string) (*templates.BindingTemplate, error)
func (*SDK) GetBindingTemplates ¶
func (*SDK) GetBrokerBindingTemplatesByServiceType ¶
func (sdk *SDK) GetBrokerBindingTemplatesByServiceType(serviceType string) (*templates.BrokerBindingTemplateList, error)
func (*SDK) GetBrokerInstanceTemplatesByServiceType ¶
func (sdk *SDK) GetBrokerInstanceTemplatesByServiceType(serviceType string) (*templates.BrokerInstanceTemplateList, error)
func (*SDK) GetClusterBindingTemplateByServiceType ¶
func (sdk *SDK) GetClusterBindingTemplateByServiceType(serviceType string) (*templates.ClusterBindingTemplate, error)
func (*SDK) GetClusterInstanceTemplateByServiceType ¶
func (sdk *SDK) GetClusterInstanceTemplateByServiceType(serviceType string) (*templates.ClusterInstanceTemplate, error)
func (*SDK) GetInstanceFromCache ¶
func (sdk *SDK) GetInstanceFromCache(namespace, name string) (*templates.TemplatedInstance, error)
GetTemplatedInstanceFromCache retrieves a TemplatedInstance by name from the informer cache.
func (*SDK) GetInstanceTemplate ¶
func (*SDK) GetInstanceTemplateByServiceType ¶
func (sdk *SDK) GetInstanceTemplateByServiceType(serviceType, namespace string) (*templates.InstanceTemplate, error)
func (*SDK) GetInstanceTemplates ¶
func (*SDK) GetManagedServiceBinding ¶
func (sdk *SDK) GetManagedServiceBinding(tbnd *templates.TemplatedBinding) (bnd *servicecatalog.ServiceBinding, err error)
func (*SDK) GetManagedServiceInstance ¶
func (sdk *SDK) GetManagedServiceInstance(tinst *templates.TemplatedInstance) (inst *servicecatalog.ServiceInstance, err error)
func (*SDK) InstanceCache ¶
func (sdk *SDK) InstanceCache() templateslisters.TemplatedInstanceLister
func (*SDK) Provision ¶
func (sdk *SDK) Provision(namespace, instanceName, serviceType, className, planName string, params interface{}, secrets map[string]string) (*templates.TemplatedInstance, error)
Provision creates an instance of a service class and plan.
func (*SDK) RetrieveBindingTemplate ¶
func (sdk *SDK) RetrieveBindingTemplate(ns, name string) (*templates.BindingTemplate, error)
RetrieveTemplatedInstance gets an binding template by its name.
func (*SDK) RetrieveBindingTemplates ¶
func (sdk *SDK) RetrieveBindingTemplates(ns, serviceType string) (*templates.BindingTemplateList, error)
RetrieveBindingTemplates lists all binding templates in a namespace.
func (*SDK) RetrieveBrokerBindingTemplate ¶
func (sdk *SDK) RetrieveBrokerBindingTemplate(name string) (*templates.BrokerBindingTemplate, error)
RetrieveBrokerBindingTemplate gets a cluster binding template by its name.
func (*SDK) RetrieveBrokerBindingTemplates ¶
func (sdk *SDK) RetrieveBrokerBindingTemplates() (*templates.BrokerBindingTemplateList, error)
RetrieveBrokerBindingTemplates lists all binding templates in a namespace.
func (*SDK) RetrieveBrokerInstanceTemplate ¶
func (sdk *SDK) RetrieveBrokerInstanceTemplate(name string) (*templates.BrokerInstanceTemplate, error)
RetrieveBrokerInstanceTemplate gets a cluster instance template by its name.
func (*SDK) RetrieveBrokerInstanceTemplatesByServiceType ¶
func (sdk *SDK) RetrieveBrokerInstanceTemplatesByServiceType() (*templates.BrokerInstanceTemplateList, error)
RetrieveBrokerInstanceTemplates lists all instance templates in a namespace.
func (*SDK) RetrieveClusterBindingTemplate ¶
func (sdk *SDK) RetrieveClusterBindingTemplate(name string) (*templates.ClusterBindingTemplate, error)
RetrieveClusterBindingTemplate gets a cluster binding template by its name.
func (*SDK) RetrieveClusterBindingTemplates ¶
func (sdk *SDK) RetrieveClusterBindingTemplates() (*templates.ClusterBindingTemplateList, error)
RetrieveClusterBindingTemplates lists all binding templates in a namespace.
func (*SDK) RetrieveClusterInstanceTemplate ¶
func (sdk *SDK) RetrieveClusterInstanceTemplate(name string) (*templates.ClusterInstanceTemplate, error)
RetrieveClusterInstanceTemplate gets a cluster instance template by its name.
func (*SDK) RetrieveClusterInstanceTemplates ¶
func (sdk *SDK) RetrieveClusterInstanceTemplates() (*templates.ClusterInstanceTemplateList, error)
RetrieveClusterInstanceTemplates lists all instance templates in a namespace.
func (*SDK) RetrieveInstanceTemplate ¶
func (sdk *SDK) RetrieveInstanceTemplate(ns, name string) (*templates.InstanceTemplate, error)
RetrieveTemplatedInstance gets an instance template by its name.
func (*SDK) RetrieveInstanceTemplates ¶
func (sdk *SDK) RetrieveInstanceTemplates(ns, serviceType string) (*templates.InstanceTemplateList, error)
RetrieveInstanceTemplates lists all instance templates in a namespace.
func (*SDK) RetrieveTemplatedBinding ¶
func (sdk *SDK) RetrieveTemplatedBinding(ns, name string) (*templates.TemplatedBinding, error)
RetrieveBinding gets a binding by its name.
func (*SDK) RetrieveTemplatedBindings ¶
func (sdk *SDK) RetrieveTemplatedBindings(ns string) (*templates.TemplatedBindingList, error)
RetrieveBindings lists all bindings in a namespace.
func (*SDK) RetrieveTemplatedBindingsByInstance ¶
func (sdk *SDK) RetrieveTemplatedBindingsByInstance(instance *templates.TemplatedInstance, ) ([]templates.TemplatedBinding, error)
RetrieveBindingsByInstance gets all child bindings for an instance.
func (*SDK) RetrieveTemplatedInstance ¶
func (sdk *SDK) RetrieveTemplatedInstance(ns, name string) (*templates.TemplatedInstance, error)
RetrieveTemplatedInstance gets an instance by its name.
func (*SDK) RetrieveTemplatedInstanceByBinding ¶
func (sdk *SDK) RetrieveTemplatedInstanceByBinding(b *templates.TemplatedBinding, ) (*templates.TemplatedInstance, error)
RetrieveTemplatedInstanceByBinding retrieves the parent instance for a binding.
func (*SDK) RetrieveTemplatedInstances ¶
func (sdk *SDK) RetrieveTemplatedInstances(ns string) (*templates.TemplatedInstanceList, error)
RetrieveTemplatedInstances lists all instances in a namespace.
func (*SDK) TemplatedBindingParentHierarchy ¶
func (sdk *SDK) TemplatedBindingParentHierarchy(tbnd *templates.TemplatedBinding, ) (*templates.TemplatedInstance, *servicecatalog.ClusterServiceClass, *servicecatalog.ClusterServicePlan, *servicecatalog.ClusterServiceBroker, error)
BindingParentHierarchy retrieves all ancestor resources of a binding.
func (*SDK) TemplatedInstanceParentHierarchy ¶
func (sdk *SDK) TemplatedInstanceParentHierarchy(tinst *templates.TemplatedInstance, ) (*servicecatalog.ClusterServiceClass, *servicecatalog.ClusterServicePlan, *servicecatalog.ClusterServiceBroker, error)
TemplatedInstanceParentHierarchy retrieves all ancestor resources of a templated instance.
func (*SDK) Templates ¶
func (sdk *SDK) Templates() templatesinterfaces.TemplatesExperimentalInterface
Templates is the underlying generated Templates versioned interface It should be used instead of accessing the client directly.
func (*SDK) TouchTemplatedInstance ¶
TouchTemplatedInstance increments the updateRequests field on an instance to make service process it again (might be an update, delete, or noop)