servicecatalogtempltesdk

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2018 License: MIT Imports: 19 Imported by: 4

Documentation

Index

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

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

DeleteBinding by name.

func (*SDK) Deprovision

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

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 *SDK) GetBindingTemplate(ns string, cluster, broker bool, name string) (t templates.BindingTemplateInterface, err error)

func (*SDK) GetBindingTemplateByServiceType

func (sdk *SDK) GetBindingTemplateByServiceType(serviceType, namespace string) (*templates.BindingTemplate, error)

func (*SDK) GetBindingTemplates

func (sdk *SDK) GetBindingTemplates(ns string, cluster, broker bool, serviceType string) ([]templates.BindingTemplateInterface, error)

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 *SDK) GetInstanceTemplate(ns string, cluster, broker bool, name string) (t templates.InstanceTemplateInterface, err error)

func (*SDK) GetInstanceTemplateByServiceType

func (sdk *SDK) GetInstanceTemplateByServiceType(serviceType, namespace string) (*templates.InstanceTemplate, error)

func (*SDK) GetInstanceTemplates

func (sdk *SDK) GetInstanceTemplates(ns string, cluster, broker bool, serviceType string) ([]templates.InstanceTemplateInterface, error)

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

func (sdk *SDK) Init(stopCh <-chan struct{}) 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

BindingParentHierarchy retrieves all ancestor resources of a binding.

func (*SDK) TemplatedInstanceParentHierarchy

TemplatedInstanceParentHierarchy retrieves all ancestor resources of a templated instance.

func (*SDK) Templates

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

func (*SDK) TouchTemplatedInstance

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

TouchTemplatedInstance increments the updateRequests field on an instance to make service process it again (might be an update, delete, or noop)

func (*SDK) Unbind

func (sdk *SDK) Unbind(ns, instanceName string) ([]templates.TemplatedBinding, error)

Unbind deletes all bindings associated to an instance.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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