brokerstore

package
v0.92.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: Apache-2.0 Imports: 9 Imported by: 23

Documentation

Index

Constants

View Source
const HashKey = "paramsHash"

Utility methods for storing bindings with secrets stripped out

Variables

This section is empty.

Functions

This section is empty.

Types

type CredhubStore

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

func NewCredhubStore

func NewCredhubStore(logger lager.Logger, credhubShim credhub_shims.Credhub, storeID string) *CredhubStore

func (*CredhubStore) Activate

func (s *CredhubStore) Activate() error

func (*CredhubStore) Cleanup

func (s *CredhubStore) Cleanup() error

func (*CredhubStore) CreateBindingDetails

func (s *CredhubStore) CreateBindingDetails(id string, details domain.BindDetails) error

func (*CredhubStore) CreateInstanceDetails

func (s *CredhubStore) CreateInstanceDetails(id string, details ServiceInstance) error

func (*CredhubStore) DeleteBindingDetails

func (s *CredhubStore) DeleteBindingDetails(id string) error

func (*CredhubStore) DeleteInstanceDetails

func (s *CredhubStore) DeleteInstanceDetails(id string) error

func (*CredhubStore) IsActivated

func (s *CredhubStore) IsActivated() (bool, error)

func (*CredhubStore) IsBindingConflict

func (s *CredhubStore) IsBindingConflict(id string, details domain.BindDetails) bool

func (*CredhubStore) IsInstanceConflict

func (s *CredhubStore) IsInstanceConflict(id string, details ServiceInstance) bool

func (*CredhubStore) Restore

func (s *CredhubStore) Restore(logger lager.Logger) error

func (*CredhubStore) RetrieveAllBindingDetails

func (s *CredhubStore) RetrieveAllBindingDetails() (map[string]domain.BindDetails, error)

func (*CredhubStore) RetrieveAllInstanceDetails

func (s *CredhubStore) RetrieveAllInstanceDetails() (map[string]ServiceInstance, error)

func (*CredhubStore) RetrieveBindingDetails

func (s *CredhubStore) RetrieveBindingDetails(id string) (domain.BindDetails, error)

func (*CredhubStore) RetrieveInstanceDetails

func (s *CredhubStore) RetrieveInstanceDetails(id string) (ServiceInstance, error)

func (*CredhubStore) Save

func (s *CredhubStore) Save(logger lager.Logger) error

type ServiceInstance

type ServiceInstance struct {
	ServiceID          string `json:"service_id"`
	PlanID             string `json:"plan_id"`
	OrganizationGUID   string `json:"organization_guid"`
	SpaceGUID          string `json:"space_guid"`
	ServiceFingerPrint interface{}
}

type Store

type Store interface {
	RetrieveInstanceDetails(id string) (ServiceInstance, error)
	RetrieveBindingDetails(id string) (domain.BindDetails, error)

	RetrieveAllInstanceDetails() (map[string]ServiceInstance, error)
	RetrieveAllBindingDetails() (map[string]domain.BindDetails, error)

	CreateInstanceDetails(id string, details ServiceInstance) error
	CreateBindingDetails(id string, details domain.BindDetails) error

	DeleteInstanceDetails(id string) error
	DeleteBindingDetails(id string) error

	IsInstanceConflict(id string, details ServiceInstance) bool
	IsBindingConflict(id string, details domain.BindDetails) bool

	Restore(logger lager.Logger) error
	Save(logger lager.Logger) error
	Cleanup() error
}

func NewStore

func NewStore(
	logger lager.Logger,
	credhubURL,
	credhubCACert,
	clientID,
	clientSecret,
	uaaCACert string,
	storeID string,
) Store

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.
credhub_fakes
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