organizationreader

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: 8 Imported by: 2 modules, 11 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 {
	ListOrgs() ([]cfclient.Org, error)
	DeleteOrg(guid string, recursive, async bool) error
	GetOrgByGuid(guid string) (cfclient.Org, error)
}

type CFOrgClient added in v1.0.68

type CFOrgClient interface {
	ListAll(ctx context.Context, opts *v3cfclient.OrganizationListOptions) ([]*resource.Organization, error)
	GetDefaultIsolationSegment(ctx context.Context, guid string) (string, error)
}

type DefaultReader

type DefaultReader struct {
	Cfg       config.Reader
	OrgClient CFOrgClient
	Peek      bool
	// contains filtered or unexported fields
}

DefaultManager -

func (*DefaultReader) AddOrgToList

func (m *DefaultReader) AddOrgToList(org *resource.Organization)

func (*DefaultReader) ClearOrgList

func (m *DefaultReader) ClearOrgList()

func (*DefaultReader) FindOrg

func (m *DefaultReader) FindOrg(orgName string) (*resource.Organization, error)

FindOrg -

func (*DefaultReader) FindOrgByGUID

func (m *DefaultReader) FindOrgByGUID(orgGUID string) (*resource.Organization, error)

FindOrgByGUID -

func (*DefaultReader) GetDefaultIsolationSegment added in v1.0.68

func (m *DefaultReader) GetDefaultIsolationSegment(org *resource.Organization) (string, error)

func (*DefaultReader) GetOrgGUID

func (m *DefaultReader) GetOrgGUID(orgName string) (string, error)

func (*DefaultReader) ListOrgs

func (m *DefaultReader) ListOrgs() ([]*resource.Organization, error)

ListOrgs : Returns all orgs in the given foundation

type Reader

type Reader interface {
	ListOrgs() ([]*resource.Organization, error)
	FindOrg(orgName string) (*resource.Organization, error)
	FindOrgByGUID(orgGUID string) (*resource.Organization, error)
	GetOrgGUID(orgName string) (string, error)
	ClearOrgList()
	AddOrgToList(org *resource.Organization)
	GetDefaultIsolationSegment(org *resource.Organization) (string, error)
}

Reader -

func NewReader

func NewReader(client CFClient, orgClient CFOrgClient, cfg config.Reader, peek bool) Reader

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