nsbroker

package
v0.0.0-...-91a9a81 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// NamespacedBrokerName name of the namespaced Service Broker
	NamespacedBrokerName = "application-broker"
	// BrokerLabelKey key of the namespaced Service Broker label
	BrokerLabelKey = "namespaced-application-broker"
	// BrokerLabelValue value of the namespaced Service Broker label
	BrokerLabelValue = "true"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Facade

type Facade struct {
	// contains filtered or unexported fields
}

Facade is responsible for creation k8s objects for namespaced broker

func NewFacade

func NewFacade(brokerGetter scbeta.ServiceBrokersGetter,
	servicesGetter typedCorev1.ServicesGetter,
	brokerSyncer brokerSyncer,
	workingNamespace, abSelectorKey, abSelectorValue string, serviceName string,
	abTargetPort int32, log logrus.FieldLogger) *Facade

NewFacade returns facade

func (*Facade) Create

func (f *Facade) Create(destinationNs string) error

Create creates ServiceBroker. Errors don't stop execution of method. AlreadyExist errors are ignored.

func (*Facade) Delete

func (f *Facade) Delete(destinationNs string) error

Delete removes ServiceBroker and Facade. Errors don't stop execution of method. NotFound errors are ignored.

func (*Facade) Exist

func (f *Facade) Exist(destinationNs string) (bool, error)

Exist check if ServiceBroker exists.

Directories

Path Synopsis
Code generated by mockery v1.0.0 Code generated by mockery v1.0.0
Code generated by mockery v1.0.0 Code generated by mockery v1.0.0

Jump to

Keyboard shortcuts

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