serviceaccess

package
v1.0.106 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2025 License: Apache-2.0 Imports: 9 Imported by: 2 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CFClient

type CFClient interface {
	ListServicePlansByQuery(query url.Values) ([]cfclient.ServicePlan, error)
	MakeServicePlanPrivate(servicePlanGUID string) error
	MakeServicePlanPublic(servicePlanGUID string) error
	ListServiceBrokers() ([]cfclient.ServiceBroker, error)
	ListServicesByQuery(query url.Values) ([]cfclient.Service, error)
	ListServicePlanVisibilitiesByQuery(query url.Values) ([]cfclient.ServicePlanVisibility, error)
	CreateServicePlanVisibility(servicePlanGuid string, organizationGuid string) (cfclient.ServicePlanVisibility, error)
	DeleteServicePlanVisibilityByPlanAndOrg(servicePlanGuid string, organizationGuid string, async bool) error
	ListServices() ([]cfclient.Service, error)
}

type Manager

type Manager struct {
	Client    CFClient
	Cfg       config.Reader
	OrgReader organizationreader.Reader
	Peek      bool
	LegacyMgr *legacy.Manager
}

func NewManager

func NewManager(client CFClient,
	orgReader organizationreader.Reader,
	cfg config.Reader, peek bool) *Manager

func (*Manager) Apply

func (m *Manager) Apply() error

func (*Manager) CreatePlanVisibility added in v1.0.31

func (m *Manager) CreatePlanVisibility(servicePlan *ServicePlanInfo, orgName string) error

func (*Manager) EnsureLimitedAccess added in v1.0.31

func (m *Manager) EnsureLimitedAccess(plan *ServicePlanInfo, orgs, protectedOrgs []string) error

func (*Manager) EnsureNoAccess added in v1.0.31

func (m *Manager) EnsureNoAccess(plan *ServicePlanInfo) error

func (*Manager) EnsurePublicAccess added in v1.0.31

func (m *Manager) EnsurePublicAccess(plan *ServicePlanInfo) error

func (*Manager) ListServiceInfo

func (m *Manager) ListServiceInfo() (*ServiceInfo, error)

func (*Manager) MakePrivate added in v1.0.31

func (m *Manager) MakePrivate(servicePlan *ServicePlanInfo) error

func (*Manager) MakePublic added in v1.0.31

func (m *Manager) MakePublic(servicePlan *ServicePlanInfo) error

func (*Manager) ProtectedOrgList added in v1.0.31

func (m *Manager) ProtectedOrgList() ([]string, error)

func (*Manager) RemoveVisibilities added in v1.0.31

func (m *Manager) RemoveVisibilities(servicePlan *ServicePlanInfo) error

func (*Manager) UpdateServiceAccess added in v1.0.31

func (m *Manager) UpdateServiceAccess(globalCfg *config.GlobalConfig, serviceInfo *ServiceInfo, protectedOrgs []string) error

type Service added in v1.0.31

type Service struct {
	Name string
	// contains filtered or unexported fields
}

func (*Service) AddPlan added in v1.0.31

func (s *Service) AddPlan(servicePlan *ServicePlanInfo)

func (*Service) GetPlan added in v1.0.31

func (s *Service) GetPlan(plan string) (*ServicePlanInfo, error)

func (*Service) GetPlanNames added in v1.0.31

func (s *Service) GetPlanNames() ([]string, error)

func (*Service) GetPlans added in v1.0.31

func (s *Service) GetPlans(planNames []string) ([]*ServicePlanInfo, error)

func (*Service) Plans added in v1.0.31

func (s *Service) Plans() []*ServicePlanInfo

type ServiceBroker added in v1.0.31

type ServiceBroker struct {
	Name      string
	SpaceGUID string
	// contains filtered or unexported fields
}

func (*ServiceBroker) AddService added in v1.0.31

func (s *ServiceBroker) AddService(service *Service)

func (*ServiceBroker) GetService added in v1.0.31

func (s *ServiceBroker) GetService(serviceName string) (*Service, error)

func (*ServiceBroker) Services added in v1.0.31

func (s *ServiceBroker) Services() []*Service

type ServiceInfo

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

func GetServiceInfo added in v1.0.31

func GetServiceInfo(client CFClient) (*ServiceInfo, error)

GetServiceInfo - returns broker, it's services and their plans

func (*ServiceInfo) AddBroker added in v1.0.31

func (s *ServiceInfo) AddBroker(serviceBroker *ServiceBroker)

func (*ServiceInfo) GetBroker added in v1.0.31

func (s *ServiceInfo) GetBroker(brokerName string) (*ServiceBroker, error)

func (*ServiceInfo) GetServicePlans added in v1.0.31

func (s *ServiceInfo) GetServicePlans(brokerName, serviceName string, plans []string) ([]*ServicePlanInfo, error)

func (*ServiceInfo) StandardBrokers added in v1.0.46

func (s *ServiceInfo) StandardBrokers() []*ServiceBroker

type ServicePlanInfo

type ServicePlanInfo struct {
	GUID        string
	Name        string
	ServiceName string
	Public      bool
	// contains filtered or unexported fields
}

func (*ServicePlanInfo) AddOrg

func (s *ServicePlanInfo) AddOrg(visibility *Visibility)

func (*ServicePlanInfo) ListVisibilities

func (s *ServicePlanInfo) ListVisibilities() []Visibility

func (*ServicePlanInfo) OrgHasAccess

func (s *ServicePlanInfo) OrgHasAccess(orgGUID string) bool

func (*ServicePlanInfo) RemoveOrg

func (s *ServicePlanInfo) RemoveOrg(orgGUID string)

type Visibility added in v1.0.31

type Visibility struct {
	OrgGUID         string
	ServicePlanGUID string
}

Directories

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