registrar

package
v0.0.0-...-fb356ce Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudFoundryClient

type CloudFoundryClient interface {
	GetServiceOfferingGUID(string, *log.Logger) (string, error)
	DeregisterBroker(string, *log.Logger) error
}

type Config

type Config struct {
	DisableSSLCertVerification bool `yaml:"disable_ssl_cert_verification"`
	CF                         config.CF
}

type Deregistrar

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

func New

func New(client CloudFoundryClient, logger *log.Logger) *Deregistrar

func (*Deregistrar) Deregister

func (r *Deregistrar) Deregister(brokerName string) error

type RegisterBrokerCFClient

type RegisterBrokerCFClient interface {
	ServiceBrokers() ([]cf.ServiceBroker, error)
	CreateServiceBroker(name, username, password, url string) error
	UpdateServiceBroker(guid, name, username, password, url string) error
	EnableServiceAccess(serviceOfferingID, planName string, logger *log.Logger) error
	DisableServiceAccess(serviceOfferingID, planName string, logger *log.Logger) error
	CreateServicePlanVisibility(orgName, serviceOfferingID, planName string, logger *log.Logger) error
}

type RegisterBrokerRunner

type RegisterBrokerRunner struct {
	Config   config.RegisterBrokerErrandConfig
	CFClient RegisterBrokerCFClient
	Logger   *log.Logger
}

func (*RegisterBrokerRunner) Run

func (r *RegisterBrokerRunner) Run() error

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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