Documentation ¶
Index ¶
Constants ¶
const ( // NamespacedBrokerName name of the namespaced Service Broker NamespacedBrokerName = "helm-broker" // BrokerLabelKey key of the namespaced Service Broker label BrokerLabelKey = "namespaced-helm-broker" // BrokerLabelValue value of the namespaced Service Broker label BrokerLabelValue = "true" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterFacade ¶
type ClusterFacade struct {
// contains filtered or unexported fields
}
ClusterFacade is responsible for creation k8s objects for namespaced broker
func NewClusterBrokersFacade ¶
func NewClusterBrokersFacade(client client.Client, workingNamespace, serviceName, clusterBrokerName string, log logrus.FieldLogger) *ClusterFacade
NewClusterBrokersFacade returns facade
func (*ClusterFacade) Create ¶
func (f *ClusterFacade) Create() error
Create creates ClusterServiceBroker. Errors don't stop execution of method. AlreadyExist errors are ignored.
func (*ClusterFacade) Delete ¶
func (f *ClusterFacade) Delete() error
Delete removes ClusterServiceBroker. Errors don't stop execution of method. NotFound errors are ignored.
func (*ClusterFacade) Exist ¶
func (f *ClusterFacade) Exist() (bool, error)
Exist check if ClusterServiceBroker exists.
func (*ClusterFacade) SetNamespace ¶
func (f *ClusterFacade) SetNamespace(namespace string)
SetNamespace sets service's working namespace
type ClusterSyncer ¶
type ClusterSyncer struct {
// contains filtered or unexported fields
}
ClusterSyncer provide services to sync the ClusterServiceBroker
func NewClusterBrokerSyncer ¶
func NewClusterBrokerSyncer(cli client.Client, clusterBrokerName string, log logrus.FieldLogger) *ClusterSyncer
NewClusterBrokerSyncer allows to sync the ServiceBroker.
func (*ClusterSyncer) SetNamespace ¶
func (r *ClusterSyncer) SetNamespace(namespace string)
SetNamespace sets service's working namespace
func (*ClusterSyncer) Sync ¶
func (r *ClusterSyncer) Sync() error
Sync syncs the ServiceBrokers, does not fail if the broker does not exists
type Facade ¶
type Facade struct {
// contains filtered or unexported fields
}
Facade is responsible for creation k8s objects for namespaced broker. The Facade is not thread-safe.
func NewBrokersFacade ¶
func NewBrokersFacade(cli client.Client, systemNamespace, serviceName string, log logrus.FieldLogger) *Facade
NewBrokersFacade returns facade
func (*Facade) Create ¶
Create creates ServiceBroker. Errors don't stop execution of method. AlreadyExist errors are ignored.
func (*Facade) Delete ¶
Delete removes ServiceBroker. Errors don't stop execution of method. NotFound errors are ignored.
func (*Facade) SetNamespace ¶
SetNamespace sets service's working namespace
type Syncer ¶
type Syncer struct {
// contains filtered or unexported fields
}
Syncer provide services to sync the ServiceBroker
func NewBrokerSyncer ¶
func NewBrokerSyncer(cli client.Client, log logrus.FieldLogger) *Syncer
NewBrokerSyncer allows to sync the ServiceBroker.
func (*Syncer) SetNamespace ¶
SetNamespace sets service's working namespace